matrix_components 2.0.405 → 2.0.407
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/dist/ComponentDemo/FormDemo.vue +90 -19
- package/package.json +1 -1
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
import { h, onMounted, reactive, ref } from 'vue'
|
|
76
76
|
import { cloneDeep } from 'lodash-es'
|
|
77
77
|
import { nextTick } from 'vue'
|
|
78
|
-
import { ElMessage } from 'element-plus'
|
|
78
|
+
import { ElCascader, ElMessage } from 'element-plus'
|
|
79
79
|
|
|
80
80
|
// ------------全局的函数(不需要引入直接使用)------------
|
|
81
81
|
// import { getAllFormKvData, getAllFormNodeByKey, getAllFormNodeRefByKey } from "matrix_components";
|
|
@@ -102,7 +102,7 @@ import { ElMessage } from 'element-plus'
|
|
|
102
102
|
const props = defineProps({
|
|
103
103
|
readOnly: {
|
|
104
104
|
type: Boolean,
|
|
105
|
-
default:
|
|
105
|
+
default: true,
|
|
106
106
|
},
|
|
107
107
|
row: {
|
|
108
108
|
type: Object,
|
|
@@ -167,24 +167,88 @@ const state = reactive({
|
|
|
167
167
|
},
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
|
-
key:
|
|
171
|
-
label:
|
|
172
|
-
value:
|
|
173
|
-
component:
|
|
170
|
+
key: "stuck_threshold",
|
|
171
|
+
label: "所属工程",
|
|
172
|
+
value: "",
|
|
173
|
+
component: ElCascader,
|
|
174
174
|
params: {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
},
|
|
180
|
-
rules: [
|
|
181
|
-
{
|
|
182
|
-
required: true,
|
|
183
|
-
message: '请输入',
|
|
175
|
+
props: {
|
|
176
|
+
showPrefix: false,
|
|
177
|
+
checkStrictly: true,
|
|
178
|
+
checkOnClickNode: true,
|
|
184
179
|
},
|
|
185
|
-
|
|
180
|
+
options: [
|
|
181
|
+
{
|
|
182
|
+
value: "guide",
|
|
183
|
+
label: "Guide",
|
|
184
|
+
children: [
|
|
185
|
+
{
|
|
186
|
+
value: "disciplines",
|
|
187
|
+
label: "Disciplines",
|
|
188
|
+
children: [
|
|
189
|
+
{
|
|
190
|
+
value: "consistency",
|
|
191
|
+
label: "Consistency",
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
value: "navigation",
|
|
197
|
+
label: "Navigation",
|
|
198
|
+
children: [
|
|
199
|
+
{
|
|
200
|
+
value: "side nav",
|
|
201
|
+
label: "Side Navigation",
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
value: "component",
|
|
209
|
+
label: "测试",
|
|
210
|
+
children: [
|
|
211
|
+
{
|
|
212
|
+
value: "basic",
|
|
213
|
+
label: "Basic",
|
|
214
|
+
children: [
|
|
215
|
+
{
|
|
216
|
+
value: "layout",
|
|
217
|
+
label: "Layout",
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
value: "form",
|
|
223
|
+
label: "中文",
|
|
224
|
+
children: [
|
|
225
|
+
{
|
|
226
|
+
value: "radio",
|
|
227
|
+
label: "Radio",
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
value: "resource",
|
|
235
|
+
label: "Resource",
|
|
236
|
+
children: [
|
|
237
|
+
{
|
|
238
|
+
value: "axure",
|
|
239
|
+
label: "Axure Components",
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
rules: [
|
|
245
|
+
{
|
|
246
|
+
required: true,
|
|
247
|
+
message: "请选择",
|
|
248
|
+
},
|
|
249
|
+
],
|
|
186
250
|
},
|
|
187
|
-
}
|
|
251
|
+
}
|
|
188
252
|
],
|
|
189
253
|
[
|
|
190
254
|
{
|
|
@@ -492,7 +556,7 @@ async function getDetail() {
|
|
|
492
556
|
confidence: 'aaa1',
|
|
493
557
|
iou: '1',
|
|
494
558
|
timeInterval: '2',
|
|
495
|
-
stuck_threshold: '
|
|
559
|
+
stuck_threshold: ['component','form'],
|
|
496
560
|
max_retries: '4',
|
|
497
561
|
save_video: true,
|
|
498
562
|
pre_buffer_second: '5',
|
|
@@ -503,9 +567,16 @@ async function getDetail() {
|
|
|
503
567
|
single_level_cascader: 'shanghai',
|
|
504
568
|
}
|
|
505
569
|
row1Ref.value?.resetForm()
|
|
570
|
+
row2Ref.value?.resetForm()
|
|
571
|
+
row3Ref.value?.resetForm()
|
|
572
|
+
row4Ref.value?.resetForm()
|
|
506
573
|
setTimeout(() => {
|
|
507
574
|
row1Ref.value?.setFormData?.(res)
|
|
575
|
+
row2Ref.value?.setFormData?.(res)
|
|
576
|
+
row3Ref.value?.setFormData?.(res)
|
|
577
|
+
row4Ref.value?.setFormData?.(res)
|
|
508
578
|
}, 10)
|
|
579
|
+
return
|
|
509
580
|
// 特殊处理
|
|
510
581
|
// if (res.det_area_mode === 'abnormal') {
|
|
511
582
|
// detAreaModeChange('abnormal')
|
|
@@ -517,7 +588,7 @@ async function getDetail() {
|
|
|
517
588
|
confidence: 'aaa1',
|
|
518
589
|
iou: '1',
|
|
519
590
|
timeInterval: '2',
|
|
520
|
-
stuck_threshold: '
|
|
591
|
+
stuck_threshold: 'component,form',
|
|
521
592
|
max_retries: '4',
|
|
522
593
|
save_video: true,
|
|
523
594
|
pre_buffer_second: '5',
|