hy-dispatch-ui-v3 0.2.84 → 0.2.85
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/tailwind.css +54 -0
- package/es/bussiness/hyDeviceTree/deviceTree.vue.mjs +5 -0
- package/es/bussiness/hyDeviceTree/js/index.mjs +15 -5
- package/es/bussiness/hySelectDeviceTree/cpns/deviceItem.install.mjs +6 -0
- package/es/bussiness/hySelectDeviceTree/cpns/deviceItem.vue.mjs +113 -0
- package/es/bussiness/hySelectDeviceTree/index.mjs +7 -0
- package/es/bussiness/hySelectDeviceTree/js/index.mjs +35 -0
- package/es/bussiness/hySelectDeviceTree/selectDeviceTree.install.mjs +6 -0
- package/es/bussiness/hySelectDeviceTree/selectDeviceTree.vue.mjs +163 -0
- package/es/bussiness/hySelectDeviceTree/style/selectDeviceTree.scss +0 -0
- package/es/bussiness/index.mjs +1 -0
- package/es/components/hyForm/cpns/formItem.vue.mjs +493 -426
- package/es/components/hyForm/form.vue.mjs +12 -0
- package/es/components/hyIcon/icon.vue.mjs +10 -4
- package/es/components-map.mjs +1 -0
- package/es/index.mjs +2 -0
- package/es/utils/device.mjs +42 -0
- package/es/utils/index.mjs +1 -0
- package/es/version.mjs +1 -1
- package/lib/bussiness/hyDeviceTree/deviceTree.vue.js +5 -0
- package/lib/bussiness/hyDeviceTree/js/index.js +15 -5
- package/lib/bussiness/hySelectDeviceTree/cpns/deviceItem.install.js +6 -0
- package/lib/bussiness/hySelectDeviceTree/cpns/deviceItem.vue.js +117 -0
- package/lib/bussiness/hySelectDeviceTree/index.js +12 -0
- package/lib/bussiness/hySelectDeviceTree/js/index.js +37 -0
- package/lib/bussiness/hySelectDeviceTree/selectDeviceTree.install.js +6 -0
- package/lib/bussiness/hySelectDeviceTree/selectDeviceTree.vue.js +167 -0
- package/lib/bussiness/hySelectDeviceTree/style/selectDeviceTree.scss +0 -0
- package/lib/bussiness/index.js +4 -2
- package/lib/components/hyForm/cpns/formItem.vue.js +492 -425
- package/lib/components/hyForm/form.vue.js +12 -0
- package/lib/components/hyIcon/icon.vue.js +10 -4
- package/lib/components-map.js +1 -0
- package/lib/index.js +24 -20
- package/lib/utils/device.js +44 -0
- package/lib/utils/index.js +2 -0
- package/lib/version.js +1 -1
- package/package.json +1 -1
|
@@ -269,441 +269,508 @@ const _sfc_main = {
|
|
|
269
269
|
vue.createElementVNode(
|
|
270
270
|
"div",
|
|
271
271
|
{
|
|
272
|
-
class: vue.normalizeClass(["w-full flex
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
vue.createElementVNode("div", { class: "flex items-center" }, [
|
|
276
|
-
vue.createElementVNode("span", { class: "text-main whitespace-nowrap" }, [
|
|
277
|
-
vue.renderSlot(_ctx.$slots, __props.column.labelSlot, {
|
|
278
|
-
column: columnConfig.value,
|
|
279
|
-
model: __props.model,
|
|
280
|
-
required: vue.unref(index.isRequired)(props, __props.column)
|
|
281
|
-
}, () => [
|
|
282
|
-
vue.createTextVNode(
|
|
283
|
-
vue.toDisplayString(vue.unref(form.columnLabelHandler)(__props.column, props.model) || "\xA0"),
|
|
284
|
-
1
|
|
285
|
-
/* TEXT */
|
|
286
|
-
)
|
|
287
|
-
])
|
|
288
|
-
]),
|
|
289
|
-
vue.unref(index.isRequired)(props, __props.column) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
290
|
-
key: 0,
|
|
291
|
-
class: "label-required"
|
|
292
|
-
})) : vue.createCommentVNode("v-if", true),
|
|
293
|
-
vue.unref(form.columnHelpHandler)(props, __props.column) || __props.column.tooltipContentSlot ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyTooltip), {
|
|
294
|
-
key: 1,
|
|
295
|
-
"is-always": "",
|
|
296
|
-
overLine: 1
|
|
297
|
-
}, {
|
|
298
|
-
content: vue.withCtx(() => [
|
|
299
|
-
!__props.column.tooltipContentSlot ? (vue.openBlock(), vue.createElementBlock(
|
|
300
|
-
"span",
|
|
301
|
-
{ key: 0 },
|
|
302
|
-
vue.toDisplayString(vue.unref(form.columnHelpHandler)(props, __props.column)),
|
|
303
|
-
1
|
|
304
|
-
/* TEXT */
|
|
305
|
-
)) : vue.createCommentVNode("v-if", true),
|
|
306
|
-
vue.renderSlot(_ctx.$slots, __props.column.tooltipContentSlot, {
|
|
307
|
-
column: columnConfig.value,
|
|
308
|
-
model: __props.model,
|
|
309
|
-
required: vue.unref(index.isRequired)(props, __props.column)
|
|
310
|
-
})
|
|
311
|
-
]),
|
|
312
|
-
default: vue.withCtx(() => [
|
|
313
|
-
vue.createElementVNode("span", { class: "text-xs text-theme ml-2" }, [
|
|
314
|
-
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
315
|
-
"svg-name": "dispatch-share-v3-base-help",
|
|
316
|
-
class: "!w-3 !h-3 mr-1"
|
|
317
|
-
}),
|
|
318
|
-
vue.createElementVNode(
|
|
319
|
-
"span",
|
|
320
|
-
null,
|
|
321
|
-
vue.toDisplayString(vue.unref(useLocale.$t)("hy.help")),
|
|
322
|
-
1
|
|
323
|
-
/* TEXT */
|
|
324
|
-
)
|
|
325
|
-
])
|
|
326
|
-
]),
|
|
327
|
-
_: 3
|
|
328
|
-
/* FORWARDED */
|
|
329
|
-
})) : vue.createCommentVNode("v-if", true)
|
|
330
|
-
]),
|
|
331
|
-
__props.column.rightSlot && _ctx.$slots[__props.column.rightSlot] ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
332
|
-
key: 0,
|
|
333
|
-
class: "ml-2 flex items-center"
|
|
334
|
-
}, [
|
|
335
|
-
vue.renderSlot(_ctx.$slots, __props.column.rightSlot, {
|
|
336
|
-
column: columnConfig.value,
|
|
337
|
-
model: __props.model,
|
|
338
|
-
required: vue.unref(index.isRequired)(props, __props.column)
|
|
339
|
-
})
|
|
340
|
-
])) : vue.createCommentVNode("v-if", true)
|
|
341
|
-
],
|
|
342
|
-
2
|
|
343
|
-
/* CLASS */
|
|
344
|
-
),
|
|
345
|
-
vue.unref(index.isReadonly)(props, __props.column) || !__props.column.type && !__props.column.slot ? (vue.openBlock(), vue.createElementBlock(
|
|
346
|
-
"div",
|
|
347
|
-
{
|
|
348
|
-
key: 0,
|
|
349
|
-
class: vue.normalizeClass(["w-full flex items-center text-main px-2 box-border", {
|
|
350
|
-
"min-h-[40px]": __props.size === "large",
|
|
351
|
-
"min-h-[32px]": __props.size === "default",
|
|
352
|
-
"min-h-[24px]": __props.size === "small",
|
|
353
|
-
"bg-background": __props.level === 1,
|
|
354
|
-
"bg-background-2": __props.level === 2,
|
|
355
|
-
"bg-background-3": __props.level === 3,
|
|
356
|
-
"bg-background-4": __props.level === 4
|
|
272
|
+
class: vue.normalizeClass(["w-full flex relative", {
|
|
273
|
+
"flex-col": vue.unref(formContext).labelPosition === "top",
|
|
274
|
+
"items-center": vue.unref(formContext).labelPosition !== "top"
|
|
357
275
|
}])
|
|
358
276
|
},
|
|
359
277
|
[
|
|
360
|
-
vue.
|
|
361
|
-
|
|
278
|
+
vue.createCommentVNode(" \u8868\u5355\u9879label "),
|
|
279
|
+
vue.createElementVNode(
|
|
280
|
+
"div",
|
|
362
281
|
{
|
|
363
|
-
|
|
364
|
-
|
|
282
|
+
class: vue.normalizeClass(["flex justify-between text-main", [
|
|
283
|
+
{ "w-full": vue.unref(formContext).labelPosition === "top" },
|
|
284
|
+
{ "max-w-full mr-2": vue.unref(formContext).labelPosition !== "top" },
|
|
285
|
+
__props.column.labelClass
|
|
286
|
+
]]),
|
|
287
|
+
style: vue.normalizeStyle({ width: vue.unref(formContext).labelPosition !== "top" ? vue.unref(formContext).labelWidth || null : null })
|
|
365
288
|
},
|
|
366
|
-
vue.toDisplayString(vue.unref(index.renderText)(props, __props.column)),
|
|
367
|
-
1
|
|
368
|
-
/* TEXT */
|
|
369
|
-
)) : (vue.openBlock(), vue.createElementBlock("span", {
|
|
370
|
-
key: 1,
|
|
371
|
-
class: "text-auxiliary"
|
|
372
|
-
}, "- -"))
|
|
373
|
-
],
|
|
374
|
-
2
|
|
375
|
-
/* CLASS */
|
|
376
|
-
)) : (vue.openBlock(), vue.createElementBlock(
|
|
377
|
-
vue.Fragment,
|
|
378
|
-
{ key: 1 },
|
|
379
|
-
[
|
|
380
|
-
vue.createCommentVNode(" \u8868\u5355\u9879 "),
|
|
381
|
-
vue.createCommentVNode(" \u81EA\u5B9A\u4E49\u5177\u540D\u63D2\u69FD "),
|
|
382
|
-
__props.column.slot && _ctx.$slots[__props.column.slot] ? vue.renderSlot(_ctx.$slots, __props.column.slot, {
|
|
383
|
-
column: columnConfig.value,
|
|
384
|
-
model: __props.model,
|
|
385
|
-
required: vue.unref(index.isRequired)(props, __props.column)
|
|
386
|
-
}, void 0, void 0, 0) : __props.column.type === "input" ? (vue.openBlock(), vue.createElementBlock(
|
|
387
|
-
vue.Fragment,
|
|
388
|
-
{ key: 1 },
|
|
389
|
-
[
|
|
390
|
-
vue.createCommentVNode(" \u8F93\u5165\u6846 "),
|
|
391
|
-
vue.createVNode(vue.unref(index$3.HyInput), vue.mergeProps({
|
|
392
|
-
modelValue: bindValue.value,
|
|
393
|
-
"onUpdate:modelValue": ($event) => bindValue.value = $event
|
|
394
|
-
}, columnAttrs.value, {
|
|
395
|
-
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
396
|
-
onChange: onChangeHandler
|
|
397
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
398
|
-
],
|
|
399
|
-
2112
|
|
400
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
401
|
-
)) : __props.column.type === "select" ? (vue.openBlock(), vue.createElementBlock(
|
|
402
|
-
vue.Fragment,
|
|
403
|
-
{ key: 2 },
|
|
404
|
-
[
|
|
405
|
-
vue.createCommentVNode(" \u9009\u62E9\u6846 "),
|
|
406
|
-
vue.createVNode(vue.unref(elementPlus.ElSelect), vue.mergeProps({
|
|
407
|
-
modelValue: bindValue.value,
|
|
408
|
-
"onUpdate:modelValue": ($event) => bindValue.value = $event
|
|
409
|
-
}, columnAttrs.value, {
|
|
410
|
-
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
411
|
-
options: getOptionsHandler(props, __props.column),
|
|
412
|
-
onChange: onChangeHandler
|
|
413
|
-
}), vue.createSlots({
|
|
414
|
-
_: 2
|
|
415
|
-
/* DYNAMIC */
|
|
416
|
-
}, [
|
|
417
|
-
__props.column.optionsLoading ? {
|
|
418
|
-
name: "empty",
|
|
419
|
-
fn: vue.withCtx(() => [
|
|
420
|
-
vue.createElementVNode("div", { class: "w-full flex items-center justify-center py-2 gap-1.5 text-main text-xs whitespace-nowrap" }, [
|
|
421
|
-
vue.createVNode(vue.unref(elementPlus.ElIcon), {
|
|
422
|
-
size: "16",
|
|
423
|
-
class: "is-loading text-theme"
|
|
424
|
-
}, {
|
|
425
|
-
default: vue.withCtx(() => [
|
|
426
|
-
vue.createVNode(vue.unref(iconsVue.Loading))
|
|
427
|
-
]),
|
|
428
|
-
_: 1
|
|
429
|
-
/* STABLE */
|
|
430
|
-
}),
|
|
431
|
-
vue.createElementVNode("span", null, "\u6570\u636E\u6B63\u5728\u52A0\u8F7D\u4E2D")
|
|
432
|
-
])
|
|
433
|
-
]),
|
|
434
|
-
key: "0"
|
|
435
|
-
} : void 0
|
|
436
|
-
]), 1040, ["modelValue", "onUpdate:modelValue", "disabled", "options"])
|
|
437
|
-
],
|
|
438
|
-
2112
|
|
439
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
440
|
-
)) : __props.column.type === "select-v2" ? (vue.openBlock(), vue.createElementBlock(
|
|
441
|
-
vue.Fragment,
|
|
442
|
-
{ key: 3 },
|
|
443
|
-
[
|
|
444
|
-
vue.createCommentVNode(" \u865A\u62DF\u5316\u9009\u62E9\u6846 "),
|
|
445
|
-
vue.createVNode(vue.unref(elementPlus.ElSelectV2), vue.mergeProps({
|
|
446
|
-
modelValue: bindValue.value,
|
|
447
|
-
"onUpdate:modelValue": ($event) => bindValue.value = $event
|
|
448
|
-
}, columnAttrs.value, {
|
|
449
|
-
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
450
|
-
options: getOptionsHandler(props, __props.column),
|
|
451
|
-
onChange: onChangeHandler
|
|
452
|
-
}), vue.createSlots({
|
|
453
|
-
_: 2
|
|
454
|
-
/* DYNAMIC */
|
|
455
|
-
}, [
|
|
456
|
-
__props.column.optionsLoading ? {
|
|
457
|
-
name: "empty",
|
|
458
|
-
fn: vue.withCtx(() => [
|
|
459
|
-
vue.createElementVNode("div", { class: "w-full flex items-center justify-center py-2 gap-1.5 text-main text-xs whitespace-nowrap" }, [
|
|
460
|
-
vue.createVNode(vue.unref(elementPlus.ElIcon), {
|
|
461
|
-
size: "16",
|
|
462
|
-
class: "is-loading text-theme"
|
|
463
|
-
}, {
|
|
464
|
-
default: vue.withCtx(() => [
|
|
465
|
-
vue.createVNode(vue.unref(iconsVue.Loading))
|
|
466
|
-
]),
|
|
467
|
-
_: 1
|
|
468
|
-
/* STABLE */
|
|
469
|
-
}),
|
|
470
|
-
vue.createElementVNode("span", null, "\u6570\u636E\u6B63\u5728\u52A0\u8F7D\u4E2D")
|
|
471
|
-
])
|
|
472
|
-
]),
|
|
473
|
-
key: "0"
|
|
474
|
-
} : void 0
|
|
475
|
-
]), 1040, ["modelValue", "onUpdate:modelValue", "disabled", "options"])
|
|
476
|
-
],
|
|
477
|
-
2112
|
|
478
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
479
|
-
)) : __props.column.type === "date-picker" ? (vue.openBlock(), vue.createElementBlock(
|
|
480
|
-
vue.Fragment,
|
|
481
|
-
{ key: 4 },
|
|
482
|
-
[
|
|
483
|
-
vue.createCommentVNode(" \u65E5\u671F\u9009\u62E9\u6846 "),
|
|
484
|
-
["datetimerange", "daterange", "monthrange", "yearrange"].includes(columnAttrs.value?.type) && vue.unref(is.isArray)(__props.column.field) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.HyDatePicker), vue.mergeProps({
|
|
485
|
-
key: 0,
|
|
486
|
-
start: bindValue.value,
|
|
487
|
-
"onUpdate:start": ($event) => bindValue.value = $event,
|
|
488
|
-
end: bindValue2.value,
|
|
489
|
-
"onUpdate:end": ($event) => bindValue2.value = $event,
|
|
490
|
-
"is-range": true,
|
|
491
|
-
style: { "width": "100%" },
|
|
492
|
-
teleported: true
|
|
493
|
-
}, columnAttrs.value, {
|
|
494
|
-
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
495
|
-
onChange: onChangeHandler
|
|
496
|
-
}), null, 16, ["start", "onUpdate:start", "end", "onUpdate:end", "disabled"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$4.HyDatePicker), vue.mergeProps({
|
|
497
|
-
key: 1,
|
|
498
|
-
modelValue: bindValue.value,
|
|
499
|
-
"onUpdate:modelValue": ($event) => bindValue.value = $event,
|
|
500
|
-
"is-range": false,
|
|
501
|
-
style: { "width": "100%" },
|
|
502
|
-
teleported: true
|
|
503
|
-
}, columnAttrs.value, {
|
|
504
|
-
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
505
|
-
onChange: onChangeHandler
|
|
506
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"]))
|
|
507
|
-
],
|
|
508
|
-
64
|
|
509
|
-
/* STABLE_FRAGMENT */
|
|
510
|
-
)) : __props.column.type === "time-picker" ? (vue.openBlock(), vue.createElementBlock(
|
|
511
|
-
vue.Fragment,
|
|
512
|
-
{ key: 5 },
|
|
513
289
|
[
|
|
514
|
-
vue.
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
"onUpdate:modelValue": ($event) => bindValue.value = $event,
|
|
615
|
-
"inline-prompt": "",
|
|
616
|
-
width: "80",
|
|
617
|
-
style: { "--hy-el-switch-on-color": "#5ab95f", "--hy-el-switch-off-color": "rgba(var(--hy-background), 1)" }
|
|
618
|
-
}, columnAttrs.value, {
|
|
619
|
-
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
620
|
-
onChange: onChangeHandler
|
|
621
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
622
|
-
],
|
|
623
|
-
2112
|
|
624
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
625
|
-
)) : __props.column.type === "input-number" ? (vue.openBlock(), vue.createElementBlock(
|
|
626
|
-
vue.Fragment,
|
|
627
|
-
{ key: 11 },
|
|
628
|
-
[
|
|
629
|
-
vue.createCommentVNode(" \u6570\u5B57\u8F93\u5165\u6846 "),
|
|
630
|
-
vue.createVNode(vue.unref(elementPlus.ElInputNumber), vue.mergeProps({
|
|
631
|
-
modelValue: bindValue.value,
|
|
632
|
-
"onUpdate:modelValue": ($event) => bindValue.value = $event
|
|
633
|
-
}, columnAttrs.value, {
|
|
634
|
-
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
635
|
-
onChange: onChangeHandler
|
|
636
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
637
|
-
],
|
|
638
|
-
2112
|
|
639
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
640
|
-
)) : __props.column.type === "org-cascader" ? (vue.openBlock(), vue.createElementBlock(
|
|
641
|
-
vue.Fragment,
|
|
642
|
-
{ key: 12 },
|
|
643
|
-
[
|
|
644
|
-
vue.createCommentVNode(" \u90E8\u95E8\u7EA7\u8054\u9009\u62E9\u6846 "),
|
|
645
|
-
vue.createVNode(vue.unref(index$8.HyOrgCascader), vue.mergeProps({
|
|
646
|
-
ref_key: "orgCascaderRef",
|
|
647
|
-
ref: orgCascaderRef,
|
|
648
|
-
modelValue: bindValue.value,
|
|
649
|
-
"onUpdate:modelValue": ($event) => bindValue.value = $event,
|
|
650
|
-
class: "w-full"
|
|
651
|
-
}, columnAttrs.value, {
|
|
652
|
-
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
653
|
-
defaultGetData: false,
|
|
654
|
-
onRequesting,
|
|
655
|
-
onFulfilled,
|
|
656
|
-
onRejected,
|
|
657
|
-
onChange: onChangeHandler
|
|
658
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
290
|
+
vue.createElementVNode(
|
|
291
|
+
"div",
|
|
292
|
+
{
|
|
293
|
+
class: vue.normalizeClass(["flex items-center", {
|
|
294
|
+
"w-full justify-end": vue.unref(formContext).labelPosition !== "top"
|
|
295
|
+
}])
|
|
296
|
+
},
|
|
297
|
+
[
|
|
298
|
+
vue.createElementVNode(
|
|
299
|
+
"div",
|
|
300
|
+
{
|
|
301
|
+
class: vue.normalizeClass(["text-main inline-flex items-center", {
|
|
302
|
+
"w-0 flex-1": vue.unref(formContext).labelPosition !== "top",
|
|
303
|
+
"justify-end": vue.unref(formContext).labelPosition === "right"
|
|
304
|
+
}])
|
|
305
|
+
},
|
|
306
|
+
[
|
|
307
|
+
vue.renderSlot(_ctx.$slots, __props.column.labelSlot, {
|
|
308
|
+
column: columnConfig.value,
|
|
309
|
+
model: __props.model,
|
|
310
|
+
required: vue.unref(index.isRequired)(props, __props.column)
|
|
311
|
+
}, () => [
|
|
312
|
+
vue.createVNode(vue.unref(index$1.HyTooltip), {
|
|
313
|
+
"is-always": false,
|
|
314
|
+
"over-line": 1,
|
|
315
|
+
class: vue.normalizeClass({
|
|
316
|
+
"block": vue.unref(formContext).labelPosition !== "top"
|
|
317
|
+
}),
|
|
318
|
+
disabled: !vue.unref(form.columnLabelHandler)(__props.column, props.model),
|
|
319
|
+
content: vue.unref(form.columnLabelHandler)(__props.column, props.model) || "\xA0"
|
|
320
|
+
}, null, 8, ["class", "disabled", "content"])
|
|
321
|
+
]),
|
|
322
|
+
vue.unref(index.isRequired)(props, __props.column) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
323
|
+
key: 0,
|
|
324
|
+
class: "label-required"
|
|
325
|
+
})) : vue.createCommentVNode("v-if", true)
|
|
326
|
+
],
|
|
327
|
+
2
|
|
328
|
+
/* CLASS */
|
|
329
|
+
),
|
|
330
|
+
vue.unref(form.columnHelpHandler)(props, __props.column) || __props.column.tooltipContentSlot ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyTooltip), {
|
|
331
|
+
key: 0,
|
|
332
|
+
"is-always": "",
|
|
333
|
+
overLine: 1
|
|
334
|
+
}, {
|
|
335
|
+
content: vue.withCtx(() => [
|
|
336
|
+
!__props.column.tooltipContentSlot ? (vue.openBlock(), vue.createElementBlock(
|
|
337
|
+
"span",
|
|
338
|
+
{ key: 0 },
|
|
339
|
+
vue.toDisplayString(vue.unref(form.columnHelpHandler)(props, __props.column)),
|
|
340
|
+
1
|
|
341
|
+
/* TEXT */
|
|
342
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
343
|
+
vue.renderSlot(_ctx.$slots, __props.column.tooltipContentSlot, {
|
|
344
|
+
column: columnConfig.value,
|
|
345
|
+
model: __props.model,
|
|
346
|
+
required: vue.unref(index.isRequired)(props, __props.column)
|
|
347
|
+
})
|
|
348
|
+
]),
|
|
349
|
+
default: vue.withCtx(() => [
|
|
350
|
+
vue.createElementVNode("span", { class: "text-xs text-theme ml-2" }, [
|
|
351
|
+
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
352
|
+
"svg-name": "dispatch-share-v3-base-help",
|
|
353
|
+
class: "!w-3 !h-3 mr-1"
|
|
354
|
+
}),
|
|
355
|
+
vue.createElementVNode(
|
|
356
|
+
"span",
|
|
357
|
+
null,
|
|
358
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("hy.help")),
|
|
359
|
+
1
|
|
360
|
+
/* TEXT */
|
|
361
|
+
)
|
|
362
|
+
])
|
|
363
|
+
]),
|
|
364
|
+
_: 3
|
|
365
|
+
/* FORWARDED */
|
|
366
|
+
})) : vue.createCommentVNode("v-if", true)
|
|
367
|
+
],
|
|
368
|
+
2
|
|
369
|
+
/* CLASS */
|
|
370
|
+
),
|
|
371
|
+
__props.column.rightSlot && _ctx.$slots[__props.column.rightSlot] ? (vue.openBlock(), vue.createElementBlock(
|
|
372
|
+
"div",
|
|
373
|
+
{
|
|
374
|
+
key: 0,
|
|
375
|
+
class: vue.normalizeClass(["flex items-center", {
|
|
376
|
+
"ml-2": vue.unref(formContext).labelPosition === "top",
|
|
377
|
+
"leading-6 absolute right-0 top-0 transform -translate-y-full": vue.unref(formContext).labelPosition !== "top"
|
|
378
|
+
}])
|
|
379
|
+
},
|
|
380
|
+
[
|
|
381
|
+
vue.renderSlot(_ctx.$slots, __props.column.rightSlot, {
|
|
382
|
+
column: columnConfig.value,
|
|
383
|
+
model: __props.model,
|
|
384
|
+
required: vue.unref(index.isRequired)(props, __props.column)
|
|
385
|
+
})
|
|
386
|
+
],
|
|
387
|
+
2
|
|
388
|
+
/* CLASS */
|
|
389
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
659
390
|
],
|
|
660
|
-
|
|
661
|
-
/*
|
|
662
|
-
)
|
|
663
|
-
|
|
664
|
-
|
|
391
|
+
6
|
|
392
|
+
/* CLASS, STYLE */
|
|
393
|
+
),
|
|
394
|
+
vue.createElementVNode(
|
|
395
|
+
"div",
|
|
396
|
+
{
|
|
397
|
+
class: vue.normalizeClass({
|
|
398
|
+
"w-full": vue.unref(formContext).labelPosition === "top",
|
|
399
|
+
"w-0 flex-1": vue.unref(formContext).labelPosition !== "top"
|
|
400
|
+
})
|
|
401
|
+
},
|
|
665
402
|
[
|
|
666
|
-
vue.createCommentVNode(" \
|
|
667
|
-
vue.
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
403
|
+
vue.createCommentVNode(" \u5185\u5BB9\u4EC5\u67E5\u770B "),
|
|
404
|
+
vue.unref(index.isReadonly)(props, __props.column) || !__props.column.type && !__props.column.slot ? (vue.openBlock(), vue.createElementBlock(
|
|
405
|
+
"div",
|
|
406
|
+
{
|
|
407
|
+
key: 0,
|
|
408
|
+
class: vue.normalizeClass(["w-full flex items-center text-main px-2 box-border", {
|
|
409
|
+
"min-h-[40px]": __props.size === "large",
|
|
410
|
+
"min-h-[32px]": __props.size === "default",
|
|
411
|
+
"min-h-[24px]": __props.size === "small",
|
|
412
|
+
"bg-background": __props.level === 1,
|
|
413
|
+
"bg-background-2": __props.level === 2,
|
|
414
|
+
"bg-background-3": __props.level === 3,
|
|
415
|
+
"bg-background-4": __props.level === 4
|
|
416
|
+
}])
|
|
417
|
+
},
|
|
418
|
+
[
|
|
419
|
+
vue.unref(index.renderText)(props, __props.column) ? (vue.openBlock(), vue.createElementBlock(
|
|
420
|
+
"span",
|
|
421
|
+
{
|
|
422
|
+
key: 0,
|
|
423
|
+
class: "break-all"
|
|
424
|
+
},
|
|
425
|
+
vue.toDisplayString(vue.unref(index.renderText)(props, __props.column)),
|
|
426
|
+
1
|
|
427
|
+
/* TEXT */
|
|
428
|
+
)) : (vue.openBlock(), vue.createElementBlock("span", {
|
|
429
|
+
key: 1,
|
|
430
|
+
class: "text-auxiliary"
|
|
431
|
+
}, "- -"))
|
|
432
|
+
],
|
|
433
|
+
2
|
|
434
|
+
/* CLASS */
|
|
435
|
+
)) : (vue.openBlock(), vue.createElementBlock(
|
|
436
|
+
vue.Fragment,
|
|
437
|
+
{ key: 1 },
|
|
438
|
+
[
|
|
439
|
+
vue.createCommentVNode(" \u8868\u5355\u9879 "),
|
|
440
|
+
vue.createCommentVNode(" \u81EA\u5B9A\u4E49\u5177\u540D\u63D2\u69FD "),
|
|
441
|
+
__props.column.slot && _ctx.$slots[__props.column.slot] ? vue.renderSlot(_ctx.$slots, __props.column.slot, {
|
|
442
|
+
column: columnConfig.value,
|
|
443
|
+
model: __props.model,
|
|
444
|
+
required: vue.unref(index.isRequired)(props, __props.column)
|
|
445
|
+
}, void 0, void 0, 0) : __props.column.type === "input" ? (vue.openBlock(), vue.createElementBlock(
|
|
446
|
+
vue.Fragment,
|
|
447
|
+
{ key: 1 },
|
|
448
|
+
[
|
|
449
|
+
vue.createCommentVNode(" \u8F93\u5165\u6846 "),
|
|
450
|
+
vue.createVNode(vue.unref(index$3.HyInput), vue.mergeProps({
|
|
451
|
+
modelValue: bindValue.value,
|
|
452
|
+
"onUpdate:modelValue": ($event) => bindValue.value = $event
|
|
453
|
+
}, columnAttrs.value, {
|
|
454
|
+
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
455
|
+
onChange: onChangeHandler
|
|
456
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
457
|
+
],
|
|
458
|
+
2112
|
|
459
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
460
|
+
)) : __props.column.type === "select" ? (vue.openBlock(), vue.createElementBlock(
|
|
461
|
+
vue.Fragment,
|
|
462
|
+
{ key: 2 },
|
|
463
|
+
[
|
|
464
|
+
vue.createCommentVNode(" \u9009\u62E9\u6846 "),
|
|
465
|
+
vue.createVNode(vue.unref(elementPlus.ElSelect), vue.mergeProps({
|
|
466
|
+
modelValue: bindValue.value,
|
|
467
|
+
"onUpdate:modelValue": ($event) => bindValue.value = $event
|
|
468
|
+
}, columnAttrs.value, {
|
|
469
|
+
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
470
|
+
options: getOptionsHandler(props, __props.column),
|
|
471
|
+
onChange: onChangeHandler
|
|
472
|
+
}), vue.createSlots({
|
|
473
|
+
_: 2
|
|
474
|
+
/* DYNAMIC */
|
|
475
|
+
}, [
|
|
476
|
+
__props.column.optionsLoading ? {
|
|
477
|
+
name: "empty",
|
|
478
|
+
fn: vue.withCtx(() => [
|
|
479
|
+
vue.createElementVNode("div", { class: "w-full flex items-center justify-center py-2 gap-1.5 text-main text-xs whitespace-nowrap" }, [
|
|
480
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), {
|
|
481
|
+
size: "16",
|
|
482
|
+
class: "is-loading text-theme"
|
|
483
|
+
}, {
|
|
484
|
+
default: vue.withCtx(() => [
|
|
485
|
+
vue.createVNode(vue.unref(iconsVue.Loading))
|
|
486
|
+
]),
|
|
487
|
+
_: 1
|
|
488
|
+
/* STABLE */
|
|
489
|
+
}),
|
|
490
|
+
vue.createElementVNode("span", null, "\u6570\u636E\u6B63\u5728\u52A0\u8F7D\u4E2D")
|
|
491
|
+
])
|
|
492
|
+
]),
|
|
493
|
+
key: "0"
|
|
494
|
+
} : void 0
|
|
495
|
+
]), 1040, ["modelValue", "onUpdate:modelValue", "disabled", "options"])
|
|
496
|
+
],
|
|
497
|
+
2112
|
|
498
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
499
|
+
)) : __props.column.type === "select-v2" ? (vue.openBlock(), vue.createElementBlock(
|
|
500
|
+
vue.Fragment,
|
|
501
|
+
{ key: 3 },
|
|
502
|
+
[
|
|
503
|
+
vue.createCommentVNode(" \u865A\u62DF\u5316\u9009\u62E9\u6846 "),
|
|
504
|
+
vue.createVNode(vue.unref(elementPlus.ElSelectV2), vue.mergeProps({
|
|
505
|
+
modelValue: bindValue.value,
|
|
506
|
+
"onUpdate:modelValue": ($event) => bindValue.value = $event
|
|
507
|
+
}, columnAttrs.value, {
|
|
508
|
+
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
509
|
+
options: getOptionsHandler(props, __props.column),
|
|
510
|
+
onChange: onChangeHandler
|
|
511
|
+
}), vue.createSlots({
|
|
512
|
+
_: 2
|
|
513
|
+
/* DYNAMIC */
|
|
514
|
+
}, [
|
|
515
|
+
__props.column.optionsLoading ? {
|
|
516
|
+
name: "empty",
|
|
517
|
+
fn: vue.withCtx(() => [
|
|
518
|
+
vue.createElementVNode("div", { class: "w-full flex items-center justify-center py-2 gap-1.5 text-main text-xs whitespace-nowrap" }, [
|
|
519
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), {
|
|
520
|
+
size: "16",
|
|
521
|
+
class: "is-loading text-theme"
|
|
522
|
+
}, {
|
|
523
|
+
default: vue.withCtx(() => [
|
|
524
|
+
vue.createVNode(vue.unref(iconsVue.Loading))
|
|
525
|
+
]),
|
|
526
|
+
_: 1
|
|
527
|
+
/* STABLE */
|
|
528
|
+
}),
|
|
529
|
+
vue.createElementVNode("span", null, "\u6570\u636E\u6B63\u5728\u52A0\u8F7D\u4E2D")
|
|
530
|
+
])
|
|
531
|
+
]),
|
|
532
|
+
key: "0"
|
|
533
|
+
} : void 0
|
|
534
|
+
]), 1040, ["modelValue", "onUpdate:modelValue", "disabled", "options"])
|
|
535
|
+
],
|
|
536
|
+
2112
|
|
537
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
538
|
+
)) : __props.column.type === "date-picker" ? (vue.openBlock(), vue.createElementBlock(
|
|
539
|
+
vue.Fragment,
|
|
540
|
+
{ key: 4 },
|
|
541
|
+
[
|
|
542
|
+
vue.createCommentVNode(" \u65E5\u671F\u9009\u62E9\u6846 "),
|
|
543
|
+
["datetimerange", "daterange", "monthrange", "yearrange"].includes(columnAttrs.value?.type) && vue.unref(is.isArray)(__props.column.field) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.HyDatePicker), vue.mergeProps({
|
|
544
|
+
key: 0,
|
|
545
|
+
start: bindValue.value,
|
|
546
|
+
"onUpdate:start": ($event) => bindValue.value = $event,
|
|
547
|
+
end: bindValue2.value,
|
|
548
|
+
"onUpdate:end": ($event) => bindValue2.value = $event,
|
|
549
|
+
"is-range": true,
|
|
550
|
+
style: { "width": "100%" },
|
|
551
|
+
teleported: true
|
|
552
|
+
}, columnAttrs.value, {
|
|
553
|
+
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
554
|
+
onChange: onChangeHandler
|
|
555
|
+
}), null, 16, ["start", "onUpdate:start", "end", "onUpdate:end", "disabled"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$4.HyDatePicker), vue.mergeProps({
|
|
556
|
+
key: 1,
|
|
557
|
+
modelValue: bindValue.value,
|
|
558
|
+
"onUpdate:modelValue": ($event) => bindValue.value = $event,
|
|
559
|
+
"is-range": false,
|
|
560
|
+
style: { "width": "100%" },
|
|
561
|
+
teleported: true
|
|
562
|
+
}, columnAttrs.value, {
|
|
563
|
+
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
564
|
+
onChange: onChangeHandler
|
|
565
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"]))
|
|
566
|
+
],
|
|
567
|
+
64
|
|
568
|
+
/* STABLE_FRAGMENT */
|
|
569
|
+
)) : __props.column.type === "time-picker" ? (vue.openBlock(), vue.createElementBlock(
|
|
570
|
+
vue.Fragment,
|
|
571
|
+
{ key: 5 },
|
|
572
|
+
[
|
|
573
|
+
vue.createCommentVNode(" \u65F6\u95F4\u9009\u62E9\u6846 "),
|
|
574
|
+
columnAttrs.value.isRange ? (vue.openBlock(), vue.createBlock(vue.unref(index$5.HyTimePicker), vue.mergeProps({
|
|
575
|
+
key: 0,
|
|
576
|
+
start: bindValue.value,
|
|
577
|
+
"onUpdate:start": ($event) => bindValue.value = $event,
|
|
578
|
+
end: bindValue2.value,
|
|
579
|
+
"onUpdate:end": ($event) => bindValue2.value = $event,
|
|
580
|
+
"is-range": true,
|
|
581
|
+
style: { "width": "100%" },
|
|
582
|
+
teleported: true
|
|
583
|
+
}, columnAttrs.value, {
|
|
584
|
+
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
585
|
+
onChange: onChangeHandler
|
|
586
|
+
}), null, 16, ["start", "onUpdate:start", "end", "onUpdate:end", "disabled"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$5.HyTimePicker), vue.mergeProps({
|
|
587
|
+
key: 1,
|
|
588
|
+
modelValue: bindValue.value,
|
|
589
|
+
"onUpdate:modelValue": ($event) => bindValue.value = $event,
|
|
590
|
+
"is-range": false,
|
|
591
|
+
style: { "width": "100%" },
|
|
592
|
+
teleported: true
|
|
593
|
+
}, columnAttrs.value, {
|
|
594
|
+
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
595
|
+
onChange: onChangeHandler
|
|
596
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"]))
|
|
597
|
+
],
|
|
598
|
+
64
|
|
599
|
+
/* STABLE_FRAGMENT */
|
|
600
|
+
)) : __props.column.type === "radio" ? (vue.openBlock(), vue.createElementBlock(
|
|
601
|
+
vue.Fragment,
|
|
602
|
+
{ key: 6 },
|
|
603
|
+
[
|
|
604
|
+
vue.createCommentVNode(" \u5355\u9009 "),
|
|
605
|
+
vue.createVNode(vue.unref(elementPlus.ElRadioGroup), vue.mergeProps({
|
|
606
|
+
modelValue: bindValue.value,
|
|
607
|
+
"onUpdate:modelValue": ($event) => bindValue.value = $event
|
|
608
|
+
}, columnAttrs.value, {
|
|
609
|
+
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
610
|
+
options: getOptionsHandler(props, __props.column),
|
|
611
|
+
onChange: onChangeHandler
|
|
612
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "options"])
|
|
613
|
+
],
|
|
614
|
+
2112
|
|
615
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
616
|
+
)) : __props.column.type === "radio-group" ? (vue.openBlock(), vue.createElementBlock(
|
|
617
|
+
vue.Fragment,
|
|
618
|
+
{ key: 7 },
|
|
619
|
+
[
|
|
620
|
+
vue.createCommentVNode(" \u5355\u9009\u6309\u94AE "),
|
|
621
|
+
vue.createVNode(vue.unref(index$6.HyRadioGroup), vue.mergeProps({
|
|
622
|
+
modelValue: bindValue.value,
|
|
623
|
+
"onUpdate:modelValue": ($event) => bindValue.value = $event
|
|
624
|
+
}, columnAttrs.value, {
|
|
625
|
+
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
626
|
+
options: getOptionsHandler(props, __props.column),
|
|
627
|
+
size: __props.size,
|
|
628
|
+
onChange: onChangeHandler
|
|
629
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "options", "size"])
|
|
630
|
+
],
|
|
631
|
+
2112
|
|
632
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
633
|
+
)) : __props.column.type === "checkbox" ? (vue.openBlock(), vue.createElementBlock(
|
|
634
|
+
vue.Fragment,
|
|
635
|
+
{ key: 8 },
|
|
636
|
+
[
|
|
637
|
+
vue.createCommentVNode(" \u591A\u9009 "),
|
|
638
|
+
vue.createVNode(vue.unref(elementPlus.ElCheckboxGroup), vue.mergeProps({
|
|
639
|
+
modelValue: bindValue.value,
|
|
640
|
+
"onUpdate:modelValue": ($event) => bindValue.value = $event
|
|
641
|
+
}, columnAttrs.value, {
|
|
642
|
+
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
643
|
+
options: getOptionsHandler(props, __props.column),
|
|
644
|
+
onChange: onChangeHandler
|
|
645
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "options"])
|
|
646
|
+
],
|
|
647
|
+
2112
|
|
648
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
649
|
+
)) : __props.column.type === "checkbox-group" ? (vue.openBlock(), vue.createElementBlock(
|
|
650
|
+
vue.Fragment,
|
|
651
|
+
{ key: 9 },
|
|
652
|
+
[
|
|
653
|
+
vue.createCommentVNode(" \u591A\u9009\u6309\u94AE "),
|
|
654
|
+
vue.createVNode(vue.unref(index$7.HyCheckboxGroup), vue.mergeProps({
|
|
655
|
+
modelValue: bindValue.value,
|
|
656
|
+
"onUpdate:modelValue": ($event) => bindValue.value = $event
|
|
657
|
+
}, columnAttrs.value, {
|
|
658
|
+
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
659
|
+
options: getOptionsHandler(props, __props.column),
|
|
660
|
+
size: __props.size,
|
|
661
|
+
onChange: onChangeHandler
|
|
662
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "options", "size"])
|
|
663
|
+
],
|
|
664
|
+
2112
|
|
665
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
666
|
+
)) : __props.column.type === "switch" ? (vue.openBlock(), vue.createElementBlock(
|
|
667
|
+
vue.Fragment,
|
|
668
|
+
{ key: 10 },
|
|
669
|
+
[
|
|
670
|
+
vue.createCommentVNode(" \u5F00\u5173 "),
|
|
671
|
+
vue.createVNode(vue.unref(elementPlus.ElSwitch), vue.mergeProps({
|
|
672
|
+
modelValue: bindValue.value,
|
|
673
|
+
"onUpdate:modelValue": ($event) => bindValue.value = $event,
|
|
674
|
+
"inline-prompt": "",
|
|
675
|
+
width: "80",
|
|
676
|
+
style: { "--hy-el-switch-on-color": "#5ab95f", "--hy-el-switch-off-color": "rgba(var(--hy-background), 1)" }
|
|
677
|
+
}, columnAttrs.value, {
|
|
678
|
+
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
679
|
+
onChange: onChangeHandler
|
|
680
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
681
|
+
],
|
|
682
|
+
2112
|
|
683
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
684
|
+
)) : __props.column.type === "input-number" ? (vue.openBlock(), vue.createElementBlock(
|
|
685
|
+
vue.Fragment,
|
|
686
|
+
{ key: 11 },
|
|
687
|
+
[
|
|
688
|
+
vue.createCommentVNode(" \u6570\u5B57\u8F93\u5165\u6846 "),
|
|
689
|
+
vue.createVNode(vue.unref(elementPlus.ElInputNumber), vue.mergeProps({
|
|
690
|
+
modelValue: bindValue.value,
|
|
691
|
+
"onUpdate:modelValue": ($event) => bindValue.value = $event
|
|
692
|
+
}, columnAttrs.value, {
|
|
693
|
+
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
694
|
+
onChange: onChangeHandler
|
|
695
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
696
|
+
],
|
|
697
|
+
2112
|
|
698
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
699
|
+
)) : __props.column.type === "org-cascader" ? (vue.openBlock(), vue.createElementBlock(
|
|
700
|
+
vue.Fragment,
|
|
701
|
+
{ key: 12 },
|
|
702
|
+
[
|
|
703
|
+
vue.createCommentVNode(" \u90E8\u95E8\u7EA7\u8054\u9009\u62E9\u6846 "),
|
|
704
|
+
vue.createVNode(vue.unref(index$8.HyOrgCascader), vue.mergeProps({
|
|
705
|
+
ref_key: "orgCascaderRef",
|
|
706
|
+
ref: orgCascaderRef,
|
|
707
|
+
modelValue: bindValue.value,
|
|
708
|
+
"onUpdate:modelValue": ($event) => bindValue.value = $event,
|
|
709
|
+
class: "w-full"
|
|
710
|
+
}, columnAttrs.value, {
|
|
711
|
+
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
712
|
+
defaultGetData: false,
|
|
713
|
+
onRequesting,
|
|
714
|
+
onFulfilled,
|
|
715
|
+
onRejected,
|
|
716
|
+
onChange: onChangeHandler
|
|
717
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
718
|
+
],
|
|
719
|
+
2112
|
|
720
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
721
|
+
)) : __props.column.type === "cascader" ? (vue.openBlock(), vue.createElementBlock(
|
|
722
|
+
vue.Fragment,
|
|
723
|
+
{ key: 13 },
|
|
724
|
+
[
|
|
725
|
+
vue.createCommentVNode(" \u7EA7\u8054\u9009\u62E9\u6846 "),
|
|
726
|
+
vue.createVNode(vue.unref(elementPlus.ElCascader), vue.mergeProps({
|
|
727
|
+
modelValue: bindValue.value,
|
|
728
|
+
"onUpdate:modelValue": ($event) => bindValue.value = $event
|
|
729
|
+
}, columnAttrs.value, {
|
|
730
|
+
class: "w-full",
|
|
731
|
+
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
732
|
+
options: getOptionsHandler(props, __props.column),
|
|
733
|
+
onChange: onChangeHandler
|
|
734
|
+
}), vue.createSlots({
|
|
735
|
+
_: 2
|
|
736
|
+
/* DYNAMIC */
|
|
737
|
+
}, [
|
|
738
|
+
__props.column.optionsLoading ? {
|
|
739
|
+
name: "empty",
|
|
740
|
+
fn: vue.withCtx(() => [
|
|
741
|
+
vue.createElementVNode("div", { class: "w-full flex items-center justify-center py-2 gap-1.5 text-main text-xs whitespace-nowrap" }, [
|
|
742
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), {
|
|
743
|
+
size: "16",
|
|
744
|
+
class: "is-loading text-theme"
|
|
745
|
+
}, {
|
|
746
|
+
default: vue.withCtx(() => [
|
|
747
|
+
vue.createVNode(vue.unref(iconsVue.Loading))
|
|
748
|
+
]),
|
|
749
|
+
_: 1
|
|
750
|
+
/* STABLE */
|
|
751
|
+
}),
|
|
752
|
+
vue.createElementVNode("span", null, "\u6570\u636E\u6B63\u5728\u52A0\u8F7D\u4E2D")
|
|
753
|
+
])
|
|
754
|
+
]),
|
|
755
|
+
key: "0"
|
|
756
|
+
} : void 0
|
|
757
|
+
]), 1040, ["modelValue", "onUpdate:modelValue", "disabled", "options"])
|
|
758
|
+
],
|
|
759
|
+
2112
|
|
760
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
761
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
762
|
+
],
|
|
763
|
+
64
|
|
764
|
+
/* STABLE_FRAGMENT */
|
|
765
|
+
))
|
|
699
766
|
],
|
|
700
|
-
|
|
701
|
-
/*
|
|
702
|
-
)
|
|
767
|
+
2
|
|
768
|
+
/* CLASS */
|
|
769
|
+
)
|
|
703
770
|
],
|
|
704
|
-
|
|
705
|
-
/*
|
|
706
|
-
)
|
|
771
|
+
2
|
|
772
|
+
/* CLASS */
|
|
773
|
+
)
|
|
707
774
|
]),
|
|
708
775
|
_: 2
|
|
709
776
|
/* DYNAMIC */
|