13
13
:data =" props.nodeModel.properties.user_input_field_list"
14
14
class =" mb-16"
15
15
>
16
- <el-table-column prop =" field" label =" 参数" show-overflow-tooltip />
17
- <el-table-column prop =" label" label =" 显示名称" show-overflow-tooltip >
16
+ <el-table-column prop =" field" label =" 参数" >
18
17
<template #default =" { row } " >
19
- <span v-if =" row.label && row.label.input_type === 'TooltipLabel'" >{{ row.label.label }}</span >
20
- <span v-else >{{ row.label }}</span >
18
+ <span :title =" row.field" class =" ellipsis-1" >{{ row.field }}</span >
19
+ </template >
20
+ </el-table-column >
21
+
22
+ <el-table-column prop =" label" label =" 显示名称" >
23
+ <template #default =" { row } " >
24
+ <span v-if =" row.label && row.label.input_type === 'TooltipLabel'" >
25
+ <span :title =" row.label.label" class =" ellipsis-1" >
26
+ {{ row.label.label }}
27
+ </span >
28
+ </span >
29
+ <span v-else >
30
+ <span :title =" row.label" class =" ellipsis-1" >
31
+ {{ row.label }}
32
+ </span ></span
33
+ >
21
34
</template >
22
35
</el-table-column >
23
36
<el-table-column label =" 组件类型" >
24
37
<template #default =" { row } " >
25
38
<el-tag type =" info" class =" info-tag" v-if =" row.input_type === 'TextInput'" >文本框</el-tag >
26
39
<el-tag type =" info" class =" info-tag" v-if =" row.input_type === 'Slider'" >滑块</el-tag >
27
40
<el-tag type =" info" class =" info-tag" v-if =" row.input_type === 'SwitchInput'" >开关</el-tag >
28
- <el-tag type =" info" class =" info-tag" v-if =" row.input_type === 'SingleSelect'" >单选框</el-tag >
41
+ <el-tag type =" info" class =" info-tag" v-if =" row.input_type === 'SingleSelect'"
42
+ >单选框</el-tag
43
+ >
29
44
<el-tag type =" info" class =" info-tag" v-if =" row.input_type === 'MultiSelect'" >多选框</el-tag >
30
45
<el-tag type =" info" class =" info-tag" v-if =" row.input_type === 'RadioCard'" >选项卡</el-tag >
31
46
<el-tag type =" info" class =" info-tag" v-if =" row.input_type === 'DatePicker'" >日期</el-tag >
32
47
</template >
33
48
</el-table-column >
34
- <el-table-column prop =" default_value" label =" 默认值" show-overflow-tooltip />
49
+
50
+ <el-table-column prop =" default_value" label =" 默认值" >
51
+ <template #default =" { row } " >
52
+ <span :title =" row.default_value" class =" ellipsis-1" >{{ row.default_value }}</span >
53
+ </template >
54
+ </el-table-column >
35
55
<el-table-column label =" 必填" >
36
56
<template #default =" { row } " >
37
57
<div @click.stop >
41
61
</el-table-column >
42
62
<el-table-column label =" 操作" align =" left" width =" 80" >
43
63
<template #default =" { row , $index } " >
44
- <span class =" mr-4" >
45
- <el-tooltip effect =" dark" content =" 修改" placement =" top" >
46
- <el-button type =" primary" text @click.stop =" openAddDialog(row, $index)" >
47
- <el-icon ><EditPen /></el-icon >
48
- </el-button >
49
- </el-tooltip >
50
- </span >
64
+ <span class =" mr-4" >
65
+ <el-tooltip effect =" dark" content =" 修改" placement =" top" >
66
+ <el-button type =" primary" text @click.stop =" openAddDialog(row, $index)" >
67
+ <el-icon ><EditPen /></el-icon >
68
+ </el-button >
69
+ </el-tooltip >
70
+ </span >
51
71
<el-tooltip effect =" dark" content =" 删除" placement =" top" >
52
72
<el-button type =" primary" text @click =" deleteField($index)" >
53
73
<el-icon >
60
80
</el-table >
61
81
62
82
<UserFieldFormDialog ref =" UserFieldFormDialogRef" @refresh =" refreshFieldList" />
63
-
64
83
</template >
65
84
66
85
<script setup lang="ts">
67
-
68
86
import { onMounted , ref } from ' vue'
69
87
import { set } from ' lodash'
70
88
import UserFieldFormDialog from ' ./UserFieldFormDialog.vue'
@@ -84,7 +102,6 @@ function deleteField(index: any) {
84
102
props .nodeModel .graphModel .eventCenter .emit (' refreshFieldList' )
85
103
}
86
104
87
-
88
105
function refreshFieldList(data : any , index : any ) {
89
106
for (let i = 0 ; i < inputFieldList .value .length ; i ++ ) {
90
107
if (inputFieldList .value [i ].field === data .field && index !== i ) {
@@ -142,10 +159,6 @@ onMounted(() => {
142
159
})
143
160
set (props .nodeModel .properties , ' user_input_field_list' , inputFieldList )
144
161
})
145
-
146
162
</script >
147
163
148
-
149
- <style scoped lang="scss">
150
-
151
- </style >
164
+ <style scoped lang="scss"></style >
0 commit comments