n20-common-lib 2.9.2 → 2.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -9,290 +9,289 @@
|
|
|
9
9
|
:disabled="disabled"
|
|
10
10
|
>
|
|
11
11
|
<slot name="top"></slot>
|
|
12
|
-
<cl-
|
|
13
|
-
<template v-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
:class="{ remote: formItem.remote, valuable: formItem.value }"
|
|
115
|
-
v-bind="formItem"
|
|
116
|
-
@focus="event => formItem.focus && formItem.focus(event)"
|
|
117
|
-
@change="value => $emit('valueChange', value, key)"
|
|
118
|
-
>
|
|
119
|
-
<el-option
|
|
120
|
-
v-for="(item, index) in (formItem.asyncOptions && formItem.asyncOptions()) ||
|
|
121
|
-
formItem.options ||
|
|
122
|
-
[]"
|
|
123
|
-
:key="index + '' + (formItem.option ? item[formItem.option.value] : item.value)"
|
|
124
|
-
:label="formItem.option ? item[formItem.option.label] : item.label || item.valueName"
|
|
125
|
-
:value="formItem.option ? item[formItem.option.value] : item.value"
|
|
126
|
-
@click.native="
|
|
127
|
-
$emit('formItemClick',key,item)
|
|
12
|
+
<cl-anchor-item v-for="(item, index) in model" :id="item.tabName" :key="index" :title="item.tabName">
|
|
13
|
+
<template v-if="item.slotName">
|
|
14
|
+
<slot :name="item.slotName" :list="item.list"></slot>
|
|
15
|
+
</template>
|
|
16
|
+
<div v-else>
|
|
17
|
+
<template v-for="(formItem, key) in item.list">
|
|
18
|
+
<!--只渲染明确输入类型的字段-->
|
|
19
|
+
<el-form-item
|
|
20
|
+
v-show="formItem.type"
|
|
21
|
+
:key="key"
|
|
22
|
+
:prop="key"
|
|
23
|
+
v-bind="formItem"
|
|
24
|
+
:class="{ 'col-span-24': formItem.type === 'textarea' || formItem.alone }"
|
|
25
|
+
>
|
|
26
|
+
<!--编辑状态-->
|
|
27
|
+
<template v-if="edit">
|
|
28
|
+
<div class="flex-box flex-v">
|
|
29
|
+
<template
|
|
30
|
+
:disabled="formItem.tooltip && !formItem.tooltip.disabled && String(formItem.value) ? false : true"
|
|
31
|
+
:content="(formItem.tooltip && formItem.tooltip.content) || String(formItem.value)"
|
|
32
|
+
placement="top"
|
|
33
|
+
>
|
|
34
|
+
<!-- 插槽 -->
|
|
35
|
+
<template v-if="formItem.type === 'slot'">
|
|
36
|
+
<slot :name="key" :formItem="formItem"></slot>
|
|
37
|
+
</template>
|
|
38
|
+
<!--判断字段输入类型 如:input元素、select元素-->
|
|
39
|
+
<!-- 输入框 -->
|
|
40
|
+
<template v-if="formItem.type === 'input'">
|
|
41
|
+
<el-input
|
|
42
|
+
v-model="value[key]"
|
|
43
|
+
v-title
|
|
44
|
+
type="text"
|
|
45
|
+
class="input-w"
|
|
46
|
+
:placeholder="formItem.placeholder || formItem.label"
|
|
47
|
+
:clearable="formItem.clearable === false ? false : true"
|
|
48
|
+
:maxlength="formItem.maxlength || inputMaxLength"
|
|
49
|
+
v-bind="formItem"
|
|
50
|
+
@change="(value) => $emit('valueChange', value, key)"
|
|
51
|
+
/>
|
|
52
|
+
</template>
|
|
53
|
+
<!-- 金额 -->
|
|
54
|
+
<template v-else-if="formItem.type === 'input-number'">
|
|
55
|
+
<cl-input-number
|
|
56
|
+
v-model="value[key]"
|
|
57
|
+
class="input-w"
|
|
58
|
+
:is-clearable="formItem.isClearable"
|
|
59
|
+
:clearable="formItem.clearable === false ? false : true"
|
|
60
|
+
:disabled="formItem.disabled"
|
|
61
|
+
:max="formItem.max || 9999999999.99"
|
|
62
|
+
:min="formItem.min || formItem.min === 0 ? formItem.min : 0"
|
|
63
|
+
@change="(value) => $emit('valueChange', value, key)"
|
|
64
|
+
/>
|
|
65
|
+
</template>
|
|
66
|
+
<!-- 金额区间 -->
|
|
67
|
+
<template v-else-if="formItem.type === 'input-number-range'">
|
|
68
|
+
<cl-input-number-range
|
|
69
|
+
class="input-w"
|
|
70
|
+
:is-clearable="formItem.isClearable === false ? false : true"
|
|
71
|
+
:disabled="formItem.disabled"
|
|
72
|
+
:start-value.sync="value[key][formItem['startKey'] || 'start']"
|
|
73
|
+
:end-value.sync="value[key][formItem['endKey'] || 'end']"
|
|
74
|
+
@change="
|
|
75
|
+
() =>
|
|
76
|
+
$emit(
|
|
77
|
+
'valueChange',
|
|
78
|
+
{ start: value[formItem['startKey']], end: value[formItem['endKey']] },
|
|
79
|
+
key
|
|
80
|
+
)
|
|
81
|
+
"
|
|
82
|
+
/>
|
|
83
|
+
</template>
|
|
84
|
+
<!-- 利率区间 -->
|
|
85
|
+
<template v-else-if="formItem.type === 'input-rate-range'">
|
|
86
|
+
<cl-input-number-range
|
|
87
|
+
class="input-w"
|
|
88
|
+
:disabled="formItem.disabled"
|
|
89
|
+
:is-clearable="formItem.isClearable === false ? false : true"
|
|
90
|
+
:start-value.sync="value[key][formItem['startKey'] || 'start']"
|
|
91
|
+
:end-value.sync="value[key][formItem['endKey'] || 'end']"
|
|
92
|
+
type="rate"
|
|
93
|
+
:min="0"
|
|
94
|
+
:max="100"
|
|
95
|
+
@change="
|
|
96
|
+
() =>
|
|
97
|
+
$emit(
|
|
98
|
+
'valueChange',
|
|
99
|
+
{ start: value[formItem['startKey']], end: value[formItem['endKey']] },
|
|
100
|
+
key
|
|
101
|
+
)
|
|
102
|
+
"
|
|
103
|
+
/>
|
|
104
|
+
</template>
|
|
105
|
+
<!-- 下拉框 -->
|
|
106
|
+
<template v-else-if="formItem.type === 'select'">
|
|
107
|
+
<el-select
|
|
108
|
+
v-model="value[key]"
|
|
109
|
+
v-title
|
|
110
|
+
class="input-w"
|
|
111
|
+
:placeholder="formItem.placeholder || (formItem.filterable ? '请输入关键词' : formItem.label)"
|
|
112
|
+
:remote-method="
|
|
113
|
+
(query) => formItem.remoteMethod && formItem.remoteMethod(query, { ...$attrs, item, value })
|
|
128
114
|
"
|
|
115
|
+
:clearable="formItem.clearable === false ? false : true"
|
|
116
|
+
:multiple="false"
|
|
117
|
+
collapse-tags
|
|
118
|
+
:class="{ remote: formItem.remote, valuable: formItem.value }"
|
|
119
|
+
v-bind="formItem"
|
|
120
|
+
@focus="(event) => formItem.focus && formItem.focus(event)"
|
|
121
|
+
@change="(value) => $emit('valueChange', value, key)"
|
|
129
122
|
>
|
|
130
|
-
<
|
|
131
|
-
(
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
<el-option
|
|
159
|
-
v-for="(item, index) in (formItem.asyncOptions && formItem.asyncOptions()) ||
|
|
160
|
-
formItem.options ||
|
|
161
|
-
[]"
|
|
162
|
-
:key="index + '' + (formItem.option ? item[formItem.option.value] : item.value)"
|
|
163
|
-
:label="formItem.option ? item[formItem.option.label] : item.label || item.valueName"
|
|
164
|
-
:value="formItem.option ? item[formItem.option.value] : item.value"
|
|
165
|
-
@click.native="
|
|
166
|
-
$emit('formItemClick',key,item)
|
|
123
|
+
<el-option
|
|
124
|
+
v-for="(item, index) in (formItem.asyncOptions && formItem.asyncOptions()) ||
|
|
125
|
+
formItem.options ||
|
|
126
|
+
[]"
|
|
127
|
+
:key="index + '' + (formItem.option ? item[formItem.option.value] : item.value)"
|
|
128
|
+
:label="formItem.option ? item[formItem.option.label] : item.label || item.valueName"
|
|
129
|
+
:value="formItem.option ? item[formItem.option.value] : item.value"
|
|
130
|
+
@click.native="$emit('formItemClick', key, item)"
|
|
131
|
+
>
|
|
132
|
+
<div v-if="formItem.isSlot">
|
|
133
|
+
({{ formItem.option ? item[formItem.option.value] : item.value }}){{
|
|
134
|
+
formItem.option ? item[formItem.option.label] : item.label
|
|
135
|
+
}}
|
|
136
|
+
</div>
|
|
137
|
+
</el-option>
|
|
138
|
+
<template v-if="formItem.remote" v-slot:prefix>
|
|
139
|
+
<i class="suffix-icon el-icon-search"></i>
|
|
140
|
+
</template>
|
|
141
|
+
</el-select>
|
|
142
|
+
</template>
|
|
143
|
+
<!-- 多选下拉框 -->
|
|
144
|
+
<template v-else-if="formItem.type === 'selectMultiple'">
|
|
145
|
+
<el-select
|
|
146
|
+
v-model="value[key]"
|
|
147
|
+
class="input-w"
|
|
148
|
+
:placeholder="formItem.placeholder || (formItem.filterable ? '请输入关键词' : formItem.label)"
|
|
149
|
+
:remote-method="
|
|
150
|
+
(query) => formItem.remoteMethod && formItem.remoteMethod(query, { ...$attrs, item, value })
|
|
167
151
|
"
|
|
152
|
+
:clearable="formItem.clearable === false ? false : true"
|
|
153
|
+
:multiple="true"
|
|
154
|
+
collapse-tags
|
|
155
|
+
:class="{ remote: formItem.remote, valuable: formItem.value }"
|
|
156
|
+
v-bind="formItem"
|
|
157
|
+
@focus="(event) => formItem.focus && formItem.focus(event)"
|
|
158
|
+
@change="(value) => $emit('valueChange', value, key)"
|
|
168
159
|
>
|
|
169
|
-
<
|
|
170
|
-
(
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
:
|
|
243
|
-
|
|
244
|
-
:value="formItem.option ? item[formItem.option.value] : item.value"
|
|
245
|
-
@click.native="
|
|
246
|
-
$emit('formItemClick',key,item)
|
|
160
|
+
<el-option
|
|
161
|
+
v-for="(item, index) in (formItem.asyncOptions && formItem.asyncOptions()) ||
|
|
162
|
+
formItem.options ||
|
|
163
|
+
[]"
|
|
164
|
+
:key="index + '' + (formItem.option ? item[formItem.option.value] : item.value)"
|
|
165
|
+
:label="formItem.option ? item[formItem.option.label] : item.label || item.valueName"
|
|
166
|
+
:value="formItem.option ? item[formItem.option.value] : item.value"
|
|
167
|
+
@click.native="$emit('formItemClick', key, item)"
|
|
168
|
+
>
|
|
169
|
+
<div v-if="formItem.isSlot">
|
|
170
|
+
({{ formItem.option ? item[formItem.option.value] : item.value }}){{
|
|
171
|
+
formItem.option ? item[formItem.option.label] : item.label
|
|
172
|
+
}}
|
|
173
|
+
</div>
|
|
174
|
+
</el-option>
|
|
175
|
+
<template v-if="formItem.remote" v-slot:prefix>
|
|
176
|
+
<i class="suffix-icon el-icon-search"></i>
|
|
177
|
+
</template>
|
|
178
|
+
</el-select>
|
|
179
|
+
</template>
|
|
180
|
+
<!-- 日期选择 -->
|
|
181
|
+
<template v-if="formItem.type === 'date-picker'">
|
|
182
|
+
<cl-date-picker
|
|
183
|
+
v-model="value[key]"
|
|
184
|
+
v-bind="formItem"
|
|
185
|
+
class="input-w"
|
|
186
|
+
type="date"
|
|
187
|
+
value-format="yyyy-MM-dd"
|
|
188
|
+
placeholder="请选择日期"
|
|
189
|
+
:clearable="formItem.clearable === false ? false : true"
|
|
190
|
+
@change="(value) => $emit('valueChange', value, key)"
|
|
191
|
+
/>
|
|
192
|
+
</template>
|
|
193
|
+
<!--日期时间段-->
|
|
194
|
+
<template v-else-if="formItem.type === 'daterange'">
|
|
195
|
+
<cl-date-picker-por
|
|
196
|
+
:start-date.sync="value[key][formItem['startKey'] || 'start']"
|
|
197
|
+
:end-date.sync="value[key][formItem['endKey'] || 'end']"
|
|
198
|
+
type="daterange"
|
|
199
|
+
start-stop
|
|
200
|
+
value-format="yyyy-MM-dd"
|
|
201
|
+
v-bind="formItem"
|
|
202
|
+
:clearable="formItem.clearable === false ? false : true"
|
|
203
|
+
@change="(value) => $emit('valueChange', value, key)"
|
|
204
|
+
/>
|
|
205
|
+
</template>
|
|
206
|
+
<!--大文本-->
|
|
207
|
+
<template v-else-if="formItem.type === 'textarea'">
|
|
208
|
+
<el-input
|
|
209
|
+
v-model="value[key]"
|
|
210
|
+
v-title
|
|
211
|
+
type="textarea"
|
|
212
|
+
placeholder="请输入内容"
|
|
213
|
+
:maxlength="formItem.maxlength || '150'"
|
|
214
|
+
show-word-limit
|
|
215
|
+
v-bind="{ rows: 4, ...formItem }"
|
|
216
|
+
:clearable="formItem.clearable === false ? false : true"
|
|
217
|
+
@change="(value) => $emit('valueChange', value, key)"
|
|
218
|
+
/>
|
|
219
|
+
</template>
|
|
220
|
+
<!--模糊搜索下拉-->
|
|
221
|
+
<template v-else-if="formItem.type === 'searchSelect'">
|
|
222
|
+
<el-select
|
|
223
|
+
v-model="value[key]"
|
|
224
|
+
:clearable="formItem.clearable === false ? false : true"
|
|
225
|
+
class="remote-icon input-w"
|
|
226
|
+
:multiple="formItem.isMultiple"
|
|
227
|
+
collapse-tags
|
|
228
|
+
filterable
|
|
229
|
+
remote
|
|
230
|
+
reserve-keyword
|
|
231
|
+
placeholder="请输入"
|
|
232
|
+
v-bind="formItem"
|
|
233
|
+
:remote-method="
|
|
234
|
+
(query) => formItem.remoteMethod && formItem.remoteMethod(query, { ...$attrs, item, value })
|
|
247
235
|
"
|
|
236
|
+
@change="(value) => $emit('valueChange', value, key)"
|
|
248
237
|
>
|
|
249
|
-
<
|
|
250
|
-
|
|
251
|
-
|
|
238
|
+
<el-option
|
|
239
|
+
v-for="(item, index) in (formItem.asyncOptions && formItem.asyncOptions()) ||
|
|
240
|
+
formItem.options ||
|
|
241
|
+
[]"
|
|
242
|
+
:key="index + '' + (formItem.option ? item[formItem.option.value] : item.value)"
|
|
243
|
+
:label="formItem.option ? item[formItem.option.label] : item.label || item.valueName"
|
|
244
|
+
:value="formItem.option ? item[formItem.option.value] : item.value"
|
|
245
|
+
@click.native="$emit('formItemClick', key, item)"
|
|
246
|
+
>
|
|
247
|
+
<slot :name="key" :option="item.label"></slot>
|
|
248
|
+
</el-option>
|
|
249
|
+
</el-select>
|
|
250
|
+
</template>
|
|
251
|
+
<!--带放大镜的输入框-->
|
|
252
|
+
<template v-else-if="formItem.type === 'searchinput'">
|
|
253
|
+
<cl-input-search
|
|
254
|
+
v-model="value[key]"
|
|
255
|
+
class="input-w"
|
|
256
|
+
:placeholder="formItem.placeholder || formItem.label"
|
|
257
|
+
:clearable="formItem.clearable === false ? false : true"
|
|
258
|
+
v-bind="formItem"
|
|
259
|
+
@search="$emit('formItemClick', key, 'search')"
|
|
260
|
+
@change="(value) => $emit('valueChange', value, key)"
|
|
261
|
+
/>
|
|
262
|
+
</template>
|
|
263
|
+
<!--自定义-->
|
|
264
|
+
<template v-else>
|
|
265
|
+
<slot :name="formItem.type"></slot>
|
|
266
|
+
</template>
|
|
267
|
+
<i
|
|
268
|
+
v-if="formItem.remark"
|
|
269
|
+
v-title="formItem.remark"
|
|
270
|
+
class="n20-icon-xinxitishi m-l-s"
|
|
271
|
+
style="color: var(--color-text-secondary)"
|
|
272
|
+
></i>
|
|
252
273
|
</template>
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
v-bind="formItem"
|
|
261
|
-
@search="$emit('formItemClick',key,'search')"
|
|
262
|
-
@change="value => $emit('valueChange', value, key)"
|
|
263
|
-
/>
|
|
274
|
+
</div>
|
|
275
|
+
</template>
|
|
276
|
+
<!--详情状态-->
|
|
277
|
+
<template v-else>
|
|
278
|
+
<slot :name="key" :value="formItem.value">
|
|
279
|
+
<template v-if="formItem.type === 'input-number'">
|
|
280
|
+
<span class="value">{{ formItem.value | toThousands }}</span>
|
|
264
281
|
</template>
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
<slot :name="formItem.type"></slot>
|
|
282
|
+
<template v-else-if="formItem.label === '子票区间'">
|
|
283
|
+
<span>{{ formItem.value | formatCdRange }}</span>
|
|
268
284
|
</template>
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
<template v-else>
|
|
280
|
-
<slot :name="key" :value="formItem.value">
|
|
281
|
-
<template v-if="formItem.type === 'input-number'">
|
|
282
|
-
<span class="value">{{ formItem.value | toThousands }}</span>
|
|
283
|
-
</template>
|
|
284
|
-
<template v-else-if="formItem.label === '子票区间'">
|
|
285
|
-
<span>{{ formItem.value | formatCdRange }}</span>
|
|
286
|
-
</template>
|
|
287
|
-
<span v-else class="value">
|
|
288
|
-
{{ formItem.value | formatValue(formItem) }}
|
|
289
|
-
</span>
|
|
290
|
-
</slot>
|
|
291
|
-
</template>
|
|
292
|
-
</el-form-item>
|
|
293
|
-
</template>
|
|
294
|
-
</cl-expandable-pane>
|
|
295
|
-
<slot name="bottom"></slot>
|
|
285
|
+
<span v-else class="value">
|
|
286
|
+
{{ formItem.value | formatValue(formItem) }}
|
|
287
|
+
</span>
|
|
288
|
+
</slot>
|
|
289
|
+
</template>
|
|
290
|
+
</el-form-item>
|
|
291
|
+
</template>
|
|
292
|
+
</div>
|
|
293
|
+
</cl-anchor-item>
|
|
294
|
+
<slot name="bottom"></slot>
|
|
296
295
|
</el-form>
|
|
297
296
|
</template>
|
|
298
297
|
|
|
@@ -311,7 +310,7 @@ export default {
|
|
|
311
310
|
case 'select':
|
|
312
311
|
// const options = row.asyncOptions && row.asyncOptions() && row.options
|
|
313
312
|
const options = row.options
|
|
314
|
-
options.some(option => {
|
|
313
|
+
options.some((option) => {
|
|
315
314
|
if (option.value == value) {
|
|
316
315
|
value = option.cname || option.valueName || option.label || value
|
|
317
316
|
return true
|
|
@@ -320,7 +319,7 @@ export default {
|
|
|
320
319
|
break
|
|
321
320
|
// 单选框
|
|
322
321
|
case 'radio':
|
|
323
|
-
row.group.some(item => {
|
|
322
|
+
row.group.some((item) => {
|
|
324
323
|
if (item.label == value) {
|
|
325
324
|
value = item.name
|
|
326
325
|
return true
|
|
@@ -334,20 +333,20 @@ export default {
|
|
|
334
333
|
}
|
|
335
334
|
},
|
|
336
335
|
props: {
|
|
337
|
-
inputMaxLength:{
|
|
338
|
-
type:String,
|
|
339
|
-
default:'100'
|
|
336
|
+
inputMaxLength: {
|
|
337
|
+
type: String,
|
|
338
|
+
default: '100'
|
|
340
339
|
},
|
|
341
340
|
value: {
|
|
342
341
|
type: Object
|
|
343
342
|
},
|
|
344
343
|
model: {
|
|
345
344
|
type: Array,
|
|
346
|
-
default: _ => []
|
|
345
|
+
default: (_) => []
|
|
347
346
|
},
|
|
348
347
|
rules: {
|
|
349
348
|
type: Object,
|
|
350
|
-
default: _ => ({})
|
|
349
|
+
default: (_) => ({})
|
|
351
350
|
},
|
|
352
351
|
edit: {
|
|
353
352
|
type: Boolean,
|
|
@@ -395,4 +394,3 @@ export default {
|
|
|
395
394
|
}
|
|
396
395
|
}
|
|
397
396
|
</script>
|
|
398
|
-
|