Skip to content

Commit f8a9da4

Browse files
fix: Optimize style
1 parent 982b34e commit f8a9da4

File tree

5 files changed

+26
-8
lines changed

5 files changed

+26
-8
lines changed

ui/src/styles/element-plus.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
.el-table {
185185
--el-table-header-bg-color: var(--app-layout-bg-color);
186186
--el-table-text-color: var(--app-text-color);
187-
--el-table-border-color: #DEE0E3;
187+
--el-table-border-color: #dee0e3;
188188
font-weight: 400;
189189
thead {
190190
color: var(--app-text-color-secondary);
@@ -302,6 +302,13 @@
302302
.el-select__selected-item {
303303
color: var(--el-text-color-primary);
304304
font-weight: 400;
305+
.el-tag {
306+
color: var(--el-text-color-primary);
307+
background-color: var(--app-text-color-light-1);
308+
height: 24px;
309+
font-size: 14px;
310+
font-weight: 400;
311+
}
305312
}
306313
.el-select__caret {
307314
color: var(--app-text-color-secondary);

ui/src/views/tool/component/ToolStoreDescDrawer.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@
4040
</div>
4141
</div>
4242
</div>
43+
44+
<div class="mt-16" v-if="toolDetail?.downloads != undefined">
45+
<el-text type="info">
46+
<div>
47+
{{ $t('views.document.upload.download') }}:
48+
{{ numberFormat(toolDetail?.downloads || 0) }}
49+
</div>
50+
</el-text>
51+
</div>
4352
</div>
4453
<MdPreview
4554
ref="editorRef"
@@ -55,7 +64,7 @@
5564
<script setup lang="ts">
5665
import { ref, watch } from 'vue'
5766
import { cloneDeep } from 'lodash'
58-
import { isAppIcon } from '@/utils/common'
67+
import { isAppIcon, numberFormat } from '@/utils/common'
5968
const emit = defineEmits(['refresh', 'addTool'])
6069
6170
const visibleInternalDesc = ref(false)
@@ -77,7 +86,7 @@ const open = (data: any, detail: any) => {
7786
}
7887
7988
defineExpose({
80-
open
89+
open,
8190
})
8291
</script>
8392
<style lang="scss"></style>

ui/src/views/tool/toolStore/InternalDescDrawer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<script setup lang="ts">
6161
import { ref, watch } from 'vue'
6262
import { cloneDeep } from 'lodash'
63-
import { isAppIcon } from '@/utils/common'
63+
import { isAppIcon, numberFormat } from '@/utils/common'
6464
const emit = defineEmits(['refresh', 'addTool'])
6565
6666
const visibleInternalDesc = ref(false)
@@ -87,7 +87,7 @@ const addInternalTool = (data: any) => {
8787
}
8888
8989
defineExpose({
90-
open
90+
open,
9191
})
9292
</script>
9393
<style lang="scss"></style>

ui/src/views/tool/toolStore/ToolCard.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
</el-text>
3232
</template>
3333
<template #footer>
34+
<span class="card-footer-left color-secondary" v-if="props.tool?.downloads!= undefined">
35+
{{ `${$t('views.document.upload.download')}: ${numberFormat(props.tool.downloads || 0)} ` }}
36+
</span>
3437
<div class="card-footer-operation mb-8" @click.stop>
3538
<el-button @click="emit('handleDetail')">
3639
{{ $t('common.detail') }}
@@ -45,8 +48,7 @@
4548

4649
<script setup lang="ts">
4750
import { ref } from 'vue'
48-
import { isAppIcon, resetUrl } from '@/utils/common'
49-
51+
import { isAppIcon, resetUrl, numberFormat } from '@/utils/common'
5052
const props = defineProps<{
5153
tool: any
5254
getSubTitle: (v: any) => string

ui/src/workflow/nodes/condition-node/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
</el-col>
126126
<el-col :span="1">
127127
<el-button
128-
:disabled="index === 0 && cIndex === 0"
128+
:disabled="form_data.branch.length === 2 && item.conditions.length === 1"
129129
link
130130
type="info"
131131
class="mt-4"

0 commit comments

Comments
 (0)