@das-fed/ui 6.4.0-dev.21 → 6.4.0-dev.22

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.
Files changed (50) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/import-button/index.js +62 -62
  3. package/packages/business-components/import-button/index.js.gz +0 -0
  4. package/packages/business-components/process-form/index.js +1161 -1021
  5. package/packages/business-components/process-form/index.js.gz +0 -0
  6. package/packages/business-components/process-form/src/hooks/useForm.d.ts +1 -1
  7. package/packages/business-components/process-form/src/utils/encryption/index.d.ts +7 -0
  8. package/packages/business-components/process-form/src/widgets/base/attachment.vue.d.ts +0 -1
  9. package/packages/business-components/process-form/src/widgets/base/autocomplete.vue.d.ts +0 -1
  10. package/packages/business-components/process-form/src/widgets/base/checkbox.vue.d.ts +0 -1
  11. package/packages/business-components/process-form/src/widgets/base/date.vue.d.ts +0 -1
  12. package/packages/business-components/process-form/src/widgets/base/dropdown.vue.d.ts +0 -1
  13. package/packages/business-components/process-form/src/widgets/base/imageViewer.vue.d.ts +0 -1
  14. package/packages/business-components/process-form/src/widgets/base/input.vue.d.ts +0 -1
  15. package/packages/business-components/process-form/src/widgets/base/number.vue.d.ts +0 -1
  16. package/packages/business-components/process-form/src/widgets/base/radio.vue.d.ts +0 -1
  17. package/packages/business-components/process-form/src/widgets/base/select.vue.d.ts +0 -1
  18. package/packages/business-components/process-form/src/widgets/base/selector.vue.d.ts +0 -1
  19. package/packages/business-components/process-form/src/widgets/base/soundRecording.vue.d.ts +0 -1
  20. package/packages/business-components/process-form/src/widgets/base/switch.vue.d.ts +0 -1
  21. package/packages/business-components/process-form/src/widgets/base/text.vue.d.ts +0 -1
  22. package/packages/business-components/process-form/src/widgets/base/textarea.vue.d.ts +0 -1
  23. package/packages/business-components/process-form/src/widgets/base/time.vue.d.ts +0 -1
  24. package/packages/business-components/process-form/style.css +1 -1
  25. package/packages/business-components/process-table/index.js +90 -89
  26. package/packages/business-components/process-table/index.js.gz +0 -0
  27. package/packages/components/autocomplete/src/index.vue.d.ts +4 -1
  28. package/packages/components/form/index.js +51 -60
  29. package/packages/components/form/index.js.gz +0 -0
  30. package/packages/components/form/style.css +1 -1
  31. package/packages/components/form-item/index.js +463 -468
  32. package/packages/components/form-item/index.js.gz +0 -0
  33. package/packages/components/form-item/style.css +1 -1
  34. package/packages/components/form-item/style.css.gz +0 -0
  35. package/packages/components/input/index.d.ts +3 -0
  36. package/packages/components/input/index.js +44 -43
  37. package/packages/components/input/index.js.gz +0 -0
  38. package/packages/components/input/src/index.vue.d.ts +1 -0
  39. package/packages/components/input/src/type.d.ts +2 -0
  40. package/packages/components/input/style.css +1 -1
  41. package/packages/components/input/style.css.gz +0 -0
  42. package/packages/components/search-form/index.js +676 -670
  43. package/packages/components/search-form/index.js.gz +0 -0
  44. package/packages/components/search-form/style.css +1 -1
  45. package/packages/components/search-form/style.css.gz +0 -0
  46. package/packages/components/select-input/index.js +11 -10
  47. package/packages/components/select-input/index.js.gz +0 -0
  48. package/packages/components/select-input/style.css +1 -1
  49. package/packages/components/select-input/style.css.gz +0 -0
  50. package/packages/components/form/src/utils/flat-form-item.d.ts +0 -1
@@ -1374,13 +1374,13 @@ const Lo = (e, t, r) => {
1374
1374
  r.value = !1;
1375
1375
  }
1376
1376
  };
1377
- }, ko = { class: "label-context" }, Ko = { key: 0 }, Go = {
1377
+ }, ko = ["data-col"], Ko = { class: "label-context" }, Go = { key: 0 }, Ho = {
1378
1378
  key: 0,
1379
1379
  class: "error-label"
1380
- }, Ho = {
1380
+ }, Wo = {
1381
1381
  inheritAttrs: !1
1382
- }, Wo = /* @__PURE__ */ ur({
1383
- ...Ho,
1382
+ }, Jo = /* @__PURE__ */ ur({
1383
+ ...Wo,
1384
1384
  __name: "Index",
1385
1385
  props: {
1386
1386
  labelLength: {},
@@ -1412,7 +1412,7 @@ const Lo = (e, t, r) => {
1412
1412
  emits: ["update:modelValue", "update:optionValue", "update:error", "change", "input", "select-change"],
1413
1413
  setup(e, { expose: t, emit: r }) {
1414
1414
  fr((s) => ({
1415
- "350812a5": l(j)
1415
+ "7bb03f5e": l(j)
1416
1416
  }));
1417
1417
  const n = e, a = r, i = pr(), { isShow: o } = Pr(n), {
1418
1418
  innerError: u,
@@ -1440,450 +1440,427 @@ const Lo = (e, t, r) => {
1440
1440
  errorModalInputMouseEnter: _,
1441
1441
  errorModallInputMouseLeave: q
1442
1442
  } = zo(n);
1443
- return t({ $treeSelect: i }), (s, g) => (F(), P(
1444
- "div",
1445
- {
1446
- class: Pe(["das-ui-form-item", [l(m), l(h).labelPosition, l(h).alignType, { "flex-layout": l(j) === "" }]]),
1447
- style: J({ marginRight: l(p), marginBottom: l(L), alignItems: s.alignItems, flex: l(c), "min-width": 0 })
1448
- },
1449
- [
1450
- re(
1451
- "div",
1452
- {
1453
- class: "das-ui-form-item-label",
1454
- style: J({ width: l(V), marginRight: l(S) })
1455
- },
1456
- [
1457
- re(
1458
- "div",
1459
- {
1460
- class: Pe(["label", { "required-mark": s.required, "has-help": s.helpMessage }])
1461
- },
1462
- [
1463
- Qe((F(), P("div", ko, [
1464
- et(
1465
- $e(s.label),
1466
- 1
1467
- /* TEXT */
1468
- )
1469
- ])), [
1470
- [l(rt)]
1443
+ return t({ $treeSelect: i }), (s, g) => (F(), P("div", {
1444
+ class: Pe(["das-ui-form-item", [l(m), l(h).labelPosition, l(h).alignType, { "flex-layout": l(j) === "" }]]),
1445
+ style: J({ marginRight: l(p), marginBottom: l(L), alignItems: s.alignItems, flex: l(c), "min-width": 0 }),
1446
+ "data-col": s.col
1447
+ }, [
1448
+ re(
1449
+ "div",
1450
+ {
1451
+ class: "das-ui-form-item-label",
1452
+ style: J({ width: l(V), marginRight: l(S) })
1453
+ },
1454
+ [
1455
+ re(
1456
+ "div",
1457
+ {
1458
+ class: Pe(["label", { "required-mark": s.required, "has-help": s.helpMessage }])
1459
+ },
1460
+ [
1461
+ Qe((F(), P("div", Ko, [
1462
+ et(
1463
+ $e(s.label),
1464
+ 1
1465
+ /* TEXT */
1466
+ )
1467
+ ])), [
1468
+ [l(rt)]
1469
+ ]),
1470
+ s.showColon ? (F(), P("span", Go, ":")) : E("v-if", !0),
1471
+ s.helpMessage || s.$slots.helpContent ? (F(), Ce(l($r), x({
1472
+ key: 1,
1473
+ effect: "light",
1474
+ placement: "top-start",
1475
+ content: s.helpMessage
1476
+ }, s.tooltipAttrs), tt({
1477
+ default: ne(() => [
1478
+ N(l(Er), {
1479
+ class: Pe(["help-icon", { "no-required": !s.required }]),
1480
+ iconColor: "#666",
1481
+ size: "medium"
1482
+ }, null, 8, ["class"])
1471
1483
  ]),
1472
- s.showColon ? (F(), P("span", Ko, ":")) : E("v-if", !0),
1473
- s.helpMessage || s.$slots.helpContent ? (F(), Ce(l($r), x({
1474
- key: 1,
1475
- effect: "light",
1476
- placement: "top-start",
1477
- content: s.helpMessage
1478
- }, s.tooltipAttrs), tt({
1479
- default: ne(() => [
1480
- N(l(Er), {
1481
- class: Pe(["help-icon", { "no-required": !s.required }]),
1482
- iconColor: "#666",
1483
- size: "medium"
1484
- }, null, 8, ["class"])
1484
+ _: 2
1485
+ /* DYNAMIC */
1486
+ }, [
1487
+ s.$slots.helpContent ? {
1488
+ name: "content",
1489
+ fn: ne(() => [
1490
+ ae(s.$slots, "helpContent", {}, void 0, !0)
1485
1491
  ]),
1486
- _: 2
1487
- /* DYNAMIC */
1488
- }, [
1489
- s.$slots.helpContent ? {
1490
- name: "content",
1491
- fn: ne(() => [
1492
- ae(s.$slots, "helpContent", {}, void 0, !0)
1493
- ]),
1494
- key: "0"
1495
- } : void 0
1496
- ]), 1040, ["content"])) : E("v-if", !0)
1497
- ],
1498
- 2
1499
- /* CLASS */
1500
- )
1501
- ],
1502
- 4
1503
- /* STYLE */
1504
- ),
1505
- re(
1506
- "div",
1507
- {
1508
- ref_key: "$dasFormItem",
1509
- ref: U,
1510
- class: "das-ui-form-container",
1511
- style: J({ width: l(j) }),
1512
- onMouseenter: g[16] || (g[16] = //@ts-ignore
1513
- (...b) => l(_) && l(_)(...b)),
1514
- onMouseleave: g[17] || (g[17] = //@ts-ignore
1515
- (...b) => l(q) && l(q)(...b))
1516
- },
1517
- [
1518
- E(" 输入框 "),
1519
- l(o)("input", "textarea", "password") ? (F(), Ce(l(hr), x({
1520
- key: 0,
1521
- modelValue: l(f),
1522
- "onUpdate:modelValue": g[0] || (g[0] = (b) => I(f) ? f.value = b : null),
1523
- style: { "margin-bottom": "0" },
1524
- isView: s.isView,
1525
- disabled: s.disabled,
1526
- type: s.type,
1527
- error: l(y),
1528
- width: l(j),
1529
- onInput: l(T),
1530
- onChange: l(w)
1531
- }, s.$attrs), tt({
1532
- _: 2
1533
- /* DYNAMIC */
1534
- }, [
1535
- s.$slots.suffix ? {
1536
- name: "suffix",
1537
- fn: ne(() => [
1538
- ae(s.$slots, "suffix", {}, void 0, !0)
1539
- ]),
1540
- key: "0"
1541
- } : void 0,
1542
- s.$slots.prefix ? {
1543
- name: "prefix",
1544
- fn: ne(() => [
1545
- ae(s.$slots, "prefix", {}, void 0, !0)
1546
- ]),
1547
- key: "1"
1548
- } : void 0,
1549
- s.$slots.prepend ? {
1550
- name: "prepend",
1551
- fn: ne(() => [
1552
- ae(s.$slots, "prepend", {}, void 0, !0)
1553
- ]),
1554
- key: "2"
1555
- } : void 0,
1556
- s.$slots.append ? {
1557
- name: "append",
1558
- fn: ne(() => [
1559
- ae(s.$slots, "append", {}, void 0, !0)
1560
- ]),
1561
- key: "3"
1562
- } : void 0
1563
- ]), 1040, ["modelValue", "isView", "disabled", "type", "error", "width", "onInput", "onChange"])) : l(o)("radio") ? (F(), P(
1564
- R,
1565
- { key: 1 },
1566
- [
1567
- E(" 单选框 "),
1568
- N(l(mr), x({
1569
- modelValue: l(f),
1570
- "onUpdate:modelValue": g[1] || (g[1] = (b) => I(f) ? f.value = b : null),
1571
- isView: s.isView,
1572
- disabled: s.disabled,
1573
- radioType: "group",
1574
- options: s.options,
1575
- defaultProps: {
1576
- value: s.optionsValueKey,
1577
- label: s.optionsLabelKey
1578
- },
1579
- onChange: l(w)
1580
- }, s.$attrs), null, 16, ["modelValue", "isView", "disabled", "options", "defaultProps", "onChange"])
1581
- ],
1582
- 2112
1583
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1584
- )) : l(o)("checkbox") ? (F(), P(
1585
- R,
1586
- { key: 2 },
1587
- [
1588
- E(" 多选框 "),
1589
- N(l(br), x({
1590
- modelValue: l(f),
1591
- "onUpdate:modelValue": g[2] || (g[2] = (b) => I(f) ? f.value = b : null),
1592
- isView: s.isView,
1593
- disabled: s.disabled,
1594
- checkboxType: "group",
1595
- options: s.options,
1596
- defaultProps: {
1597
- value: s.optionsValueKey,
1598
- label: s.optionsLabelKey
1599
- },
1600
- onChange: l(w)
1601
- }, s.$attrs), null, 16, ["modelValue", "isView", "disabled", "options", "defaultProps", "onChange"])
1602
- ],
1603
- 2112
1604
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1605
- )) : l(o)("switch") ? (F(), P(
1606
- R,
1607
- { key: 3 },
1608
- [
1609
- E(" 开关 "),
1610
- N(l(vr), x({
1611
- modelValue: l(f),
1612
- "onUpdate:modelValue": g[3] || (g[3] = (b) => I(f) ? f.value = b : null),
1613
- disabled: s.disabled,
1614
- onChange: l(w)
1615
- }, s.$attrs), null, 16, ["modelValue", "disabled", "onChange"])
1616
- ],
1617
- 2112
1618
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1619
- )) : l(o)("select") ? (F(), P(
1620
- R,
1621
- { key: 4 },
1622
- [
1623
- E(" 下拉框 "),
1624
- N(l(wr), x({
1625
- modelValue: l(f),
1626
- "onUpdate:modelValue": g[4] || (g[4] = (b) => I(f) ? f.value = b : null),
1627
- isView: s.isView,
1628
- disabled: s.disabled,
1629
- error: l(y),
1630
- size: "small",
1631
- options: s.options,
1632
- width: "100%",
1633
- fieldNames: {
1634
- value: s.optionsValueKey,
1635
- label: s.optionsLabelKey
1636
- },
1637
- onChange: l(w)
1638
- }, s.$attrs), null, 16, ["modelValue", "isView", "disabled", "error", "options", "fieldNames", "onChange"])
1639
- ],
1640
- 2112
1641
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1642
- )) : l(o)("cascader") ? (F(), P(
1643
- R,
1644
- { key: 5 },
1645
- [
1646
- E(" 级联选择器 "),
1647
- N(l(Ar), x({
1648
- modelValue: l(f),
1649
- "onUpdate:modelValue": g[5] || (g[5] = (b) => I(f) ? f.value = b : null),
1650
- isView: s.isView,
1651
- disabled: s.disabled,
1652
- error: l(y),
1653
- size: "small",
1654
- options: s.options,
1655
- width: "100%",
1656
- onChange: l(w)
1657
- }, s.$attrs), null, 16, ["modelValue", "isView", "disabled", "error", "options", "onChange"])
1658
- ],
1659
- 2112
1660
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1661
- )) : l(o)("treeSelect") ? (F(), P(
1662
- R,
1663
- { key: 6 },
1664
- [
1665
- E(" 下拉树 "),
1666
- N(l(cr), x({
1667
- ref_key: "$treeSelect",
1668
- ref: i,
1669
- modelValue: l(f),
1670
- "onUpdate:modelValue": g[6] || (g[6] = (b) => I(f) ? f.value = b : null),
1671
- data: s.options,
1672
- size: "small",
1673
- width: "100%",
1674
- isView: s.isView,
1675
- disabled: s.disabled,
1676
- error: l(y),
1677
- onChange: l(w)
1678
- }, s.$attrs), null, 16, ["modelValue", "data", "isView", "disabled", "error", "onChange"])
1679
- ],
1680
- 2112
1681
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1682
- )) : l(o)("colorPicker") ? (F(), P(
1683
- R,
1684
- { key: 7 },
1685
- [
1686
- E(" 颜色选择器 "),
1687
- N(l(Fr), x({
1688
- modelValue: l(f),
1689
- "onUpdate:modelValue": g[7] || (g[7] = (b) => I(f) ? f.value = b : null),
1690
- options: s.options,
1691
- width: "100%",
1692
- onChange: l(w),
1693
- disabled: s.disabled,
1694
- error: l(y),
1695
- isView: s.isView
1696
- }, s.$attrs), null, 16, ["modelValue", "options", "onChange", "disabled", "error", "isView"])
1697
- ],
1698
- 2112
1699
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1700
- )) : l(o)("inputNumber") ? (F(), P(
1701
- R,
1702
- { key: 8 },
1703
- [
1704
- E(" 步进器 "),
1705
- N(l(Sr), x({
1706
- modelValue: l(f),
1707
- "onUpdate:modelValue": g[8] || (g[8] = (b) => I(f) ? f.value = b : null),
1708
- width: "100%",
1709
- onInput: l(T),
1710
- onChange: l(w),
1711
- disabled: s.disabled,
1712
- error: l(y),
1713
- isView: s.isView
1714
- }, s.$attrs), null, 16, ["modelValue", "onInput", "onChange", "disabled", "error", "isView"])
1715
- ],
1716
- 2112
1717
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1718
- )) : l(o)("selectInput") ? (F(), P(
1719
- R,
1720
- { key: 9 },
1721
- [
1722
- E(" 搜索组件 "),
1723
- N(l(gr), x({
1724
- width: "100%",
1725
- modelValue: l(f),
1726
- "onUpdate:modelValue": g[9] || (g[9] = (b) => I(f) ? f.value = b : null),
1727
- isView: s.isView,
1728
- error: l(y),
1729
- disabled: s.disabled,
1730
- optionValue: l(d),
1731
- "onUpdate:optionValue": g[10] || (g[10] = (b) => I(d) ? d.value = b : null),
1732
- options: s.options,
1733
- optionsLabelKey: s.optionsLabelKey,
1734
- optionsValueKey: s.optionsValueKey,
1735
- onInputChange: l(w),
1736
- onDasInput: l(T),
1737
- onSelectChange: l(M)
1738
- }, s.$attrs), null, 16, ["modelValue", "isView", "error", "disabled", "optionValue", "options", "optionsLabelKey", "optionsValueKey", "onInputChange", "onDasInput", "onSelectChange"])
1739
- ],
1740
- 2112
1741
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1742
- )) : l(o)("inputDialogSelect") ? (F(), P(
1743
- R,
1744
- { key: 10 },
1745
- [
1746
- E(" 弹窗选择 "),
1747
- N(l(yr), x({
1748
- style: { width: "100px", flex: "1" },
1749
- size: "auto",
1750
- isView: s.isView,
1751
- disabled: s.disabled,
1752
- error: l(y),
1753
- "selected-options": s.options,
1754
- modelValue: l(f),
1755
- "onUpdate:modelValue": g[11] || (g[11] = (b) => I(f) ? f.value = b : null)
1756
- }, s.$attrs, {
1757
- optionsLabelKey: s.optionsLabelKey,
1758
- optionsValueKey: s.optionsValueKey,
1759
- onChange: l(w)
1760
- }), null, 16, ["isView", "disabled", "error", "selected-options", "modelValue", "optionsLabelKey", "optionsValueKey", "onChange"])
1761
- ],
1762
- 2112
1763
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1764
- )) : l(o)("date", "dateTime", "week", "month", "quarter", "year") ? (F(), P(
1765
- R,
1766
- { key: 11 },
1767
- [
1768
- E(" 日期选择器 "),
1769
- N(l(Tr), x({
1770
- "show-time": s.type === "dateTime",
1771
- picker: s.type !== "dateTime" ? s.type : "date",
1772
- modelValue: l(f),
1773
- "onUpdate:modelValue": g[12] || (g[12] = (b) => I(f) ? f.value = b : null),
1774
- size: "small",
1775
- width: "100%",
1776
- disabled: s.disabled,
1777
- isView: s.isView,
1778
- error: l(y),
1779
- onChange: l(w)
1780
- }, s.$attrs), null, 16, ["show-time", "picker", "modelValue", "disabled", "isView", "error", "onChange"])
1781
- ],
1782
- 2112
1783
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1784
- )) : l(o)("dateRange", "dateTimeRange", "weekRange", "monthRange", "yearRange") ? (F(), P(
1785
- R,
1786
- { key: 12 },
1787
- [
1788
- E(" 日期范围选择器 "),
1789
- N(l(Vr), x({
1790
- "show-time": s.type === "dateTimeRange",
1791
- picker: s.type !== "dateTimeRange" ? s.type.slice(0, -5) : "date",
1792
- modelValue: l(f),
1793
- "onUpdate:modelValue": g[13] || (g[13] = (b) => I(f) ? f.value = b : null),
1794
- size: "small",
1795
- width: "100%",
1796
- disabled: s.disabled,
1797
- isView: s.isView,
1798
- error: l(y),
1799
- onChange: l(w)
1800
- }, s.$attrs), null, 16, ["show-time", "picker", "modelValue", "disabled", "isView", "error", "onChange"])
1801
- ],
1802
- 2112
1803
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1804
- )) : l(o)("time") ? (F(), P(
1805
- R,
1806
- { key: 13 },
1807
- [
1808
- E(" 时间选择器 "),
1809
- N(l(jr), x({
1810
- modelValue: l(f),
1811
- "onUpdate:modelValue": g[14] || (g[14] = (b) => I(f) ? f.value = b : null),
1812
- size: "small",
1813
- width: "100%",
1814
- disabled: s.disabled,
1815
- isView: s.isView,
1816
- onChange: l(w)
1817
- }, s.$attrs), null, 16, ["modelValue", "disabled", "isView", "onChange"])
1818
- ],
1819
- 2112
1820
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1821
- )) : l(o)("timeRange") ? (F(), P(
1822
- R,
1823
- { key: 14 },
1824
- [
1825
- E(" 时间范围选择器 "),
1826
- N(l(Or), x({
1827
- modelValue: l(f),
1828
- "onUpdate:modelValue": g[15] || (g[15] = (b) => I(f) ? f.value = b : null),
1829
- size: "small",
1830
- width: "100%",
1831
- disabled: s.disabled,
1832
- isView: s.isView,
1833
- onChange: l(w)
1834
- }, s.$attrs), null, 16, ["modelValue", "disabled", "isView", "onChange"])
1835
- ],
1836
- 2112
1837
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1838
- )) : E("v-if", !0),
1839
- E(" 插槽 "),
1840
- ae(s.$slots, "default", {}, void 0, !0),
1841
- E(" 提示 "),
1842
- l(y) && l(u) ? (F(), P(
1843
- R,
1844
- { key: 15 },
1845
- [
1846
- l($) === "default" ? Qe((F(), P("div", Go, [
1847
- et(
1848
- $e(l(u)),
1849
- 1
1850
- /* TEXT */
1851
- )
1852
- ])), [
1853
- [l(rt)]
1854
- ]) : l(D) ? (F(), P(
1855
- R,
1856
- { key: 1 },
1857
- [
1858
- l(D) ? (F(), Ce(dr, {
1859
- key: 0,
1860
- to: "body"
1861
- }, [
1862
- re(
1863
- "div",
1864
- {
1865
- style: J(l(te))
1866
- },
1867
- [
1868
- re(
1869
- "span",
1870
- {
1871
- style: J(l(W))
1872
- },
1873
- $e(l(u)),
1874
- 5
1875
- /* TEXT, STYLE */
1876
- )
1877
- ],
1878
- 4
1879
- /* STYLE */
1880
- )
1881
- ])) : (F(), P(
1492
+ key: "0"
1493
+ } : void 0
1494
+ ]), 1040, ["content"])) : E("v-if", !0)
1495
+ ],
1496
+ 2
1497
+ /* CLASS */
1498
+ )
1499
+ ],
1500
+ 4
1501
+ /* STYLE */
1502
+ ),
1503
+ re(
1504
+ "div",
1505
+ {
1506
+ ref_key: "$dasFormItem",
1507
+ ref: U,
1508
+ class: "das-ui-form-container",
1509
+ style: J({ width: l(j) }),
1510
+ onMouseenter: g[16] || (g[16] = //@ts-ignore
1511
+ (...b) => l(_) && l(_)(...b)),
1512
+ onMouseleave: g[17] || (g[17] = //@ts-ignore
1513
+ (...b) => l(q) && l(q)(...b))
1514
+ },
1515
+ [
1516
+ E(" 输入框 "),
1517
+ l(o)("input", "textarea", "password") ? (F(), Ce(l(hr), x({
1518
+ key: 0,
1519
+ modelValue: l(f),
1520
+ "onUpdate:modelValue": g[0] || (g[0] = (b) => I(f) ? f.value = b : null),
1521
+ style: { "margin-bottom": "0" },
1522
+ isView: s.isView,
1523
+ disabled: s.disabled,
1524
+ type: s.type,
1525
+ error: l(y),
1526
+ width: l(j),
1527
+ onInput: l(T),
1528
+ onChange: l(w)
1529
+ }, s.$attrs), tt({
1530
+ _: 2
1531
+ /* DYNAMIC */
1532
+ }, [
1533
+ s.$slots.suffix ? {
1534
+ name: "suffix",
1535
+ fn: ne(() => [
1536
+ ae(s.$slots, "suffix", {}, void 0, !0)
1537
+ ]),
1538
+ key: "0"
1539
+ } : void 0,
1540
+ s.$slots.prefix ? {
1541
+ name: "prefix",
1542
+ fn: ne(() => [
1543
+ ae(s.$slots, "prefix", {}, void 0, !0)
1544
+ ]),
1545
+ key: "1"
1546
+ } : void 0,
1547
+ s.$slots.prepend ? {
1548
+ name: "prepend",
1549
+ fn: ne(() => [
1550
+ ae(s.$slots, "prepend", {}, void 0, !0)
1551
+ ]),
1552
+ key: "2"
1553
+ } : void 0,
1554
+ s.$slots.append ? {
1555
+ name: "append",
1556
+ fn: ne(() => [
1557
+ ae(s.$slots, "append", {}, void 0, !0)
1558
+ ]),
1559
+ key: "3"
1560
+ } : void 0
1561
+ ]), 1040, ["modelValue", "isView", "disabled", "type", "error", "width", "onInput", "onChange"])) : l(o)("radio") ? (F(), P(
1562
+ R,
1563
+ { key: 1 },
1564
+ [
1565
+ E(" 单选框 "),
1566
+ N(l(mr), x({
1567
+ modelValue: l(f),
1568
+ "onUpdate:modelValue": g[1] || (g[1] = (b) => I(f) ? f.value = b : null),
1569
+ isView: s.isView,
1570
+ disabled: s.disabled,
1571
+ radioType: "group",
1572
+ options: s.options,
1573
+ defaultProps: {
1574
+ value: s.optionsValueKey,
1575
+ label: s.optionsLabelKey
1576
+ },
1577
+ onChange: l(w)
1578
+ }, s.$attrs), null, 16, ["modelValue", "isView", "disabled", "options", "defaultProps", "onChange"])
1579
+ ],
1580
+ 2112
1581
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1582
+ )) : l(o)("checkbox") ? (F(), P(
1583
+ R,
1584
+ { key: 2 },
1585
+ [
1586
+ E(" 多选框 "),
1587
+ N(l(br), x({
1588
+ modelValue: l(f),
1589
+ "onUpdate:modelValue": g[2] || (g[2] = (b) => I(f) ? f.value = b : null),
1590
+ isView: s.isView,
1591
+ disabled: s.disabled,
1592
+ checkboxType: "group",
1593
+ options: s.options,
1594
+ defaultProps: {
1595
+ value: s.optionsValueKey,
1596
+ label: s.optionsLabelKey
1597
+ },
1598
+ onChange: l(w)
1599
+ }, s.$attrs), null, 16, ["modelValue", "isView", "disabled", "options", "defaultProps", "onChange"])
1600
+ ],
1601
+ 2112
1602
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1603
+ )) : l(o)("switch") ? (F(), P(
1604
+ R,
1605
+ { key: 3 },
1606
+ [
1607
+ E(" 开关 "),
1608
+ N(l(vr), x({
1609
+ modelValue: l(f),
1610
+ "onUpdate:modelValue": g[3] || (g[3] = (b) => I(f) ? f.value = b : null),
1611
+ disabled: s.disabled,
1612
+ onChange: l(w)
1613
+ }, s.$attrs), null, 16, ["modelValue", "disabled", "onChange"])
1614
+ ],
1615
+ 2112
1616
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1617
+ )) : l(o)("select") ? (F(), P(
1618
+ R,
1619
+ { key: 4 },
1620
+ [
1621
+ E(" 下拉框 "),
1622
+ N(l(wr), x({
1623
+ modelValue: l(f),
1624
+ "onUpdate:modelValue": g[4] || (g[4] = (b) => I(f) ? f.value = b : null),
1625
+ isView: s.isView,
1626
+ disabled: s.disabled,
1627
+ error: l(y),
1628
+ size: "small",
1629
+ options: s.options,
1630
+ width: "100%",
1631
+ fieldNames: {
1632
+ value: s.optionsValueKey,
1633
+ label: s.optionsLabelKey
1634
+ },
1635
+ onChange: l(w)
1636
+ }, s.$attrs), null, 16, ["modelValue", "isView", "disabled", "error", "options", "fieldNames", "onChange"])
1637
+ ],
1638
+ 2112
1639
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1640
+ )) : l(o)("cascader") ? (F(), P(
1641
+ R,
1642
+ { key: 5 },
1643
+ [
1644
+ E(" 级联选择器 "),
1645
+ N(l(Ar), x({
1646
+ modelValue: l(f),
1647
+ "onUpdate:modelValue": g[5] || (g[5] = (b) => I(f) ? f.value = b : null),
1648
+ isView: s.isView,
1649
+ disabled: s.disabled,
1650
+ error: l(y),
1651
+ size: "small",
1652
+ options: s.options,
1653
+ width: "100%",
1654
+ onChange: l(w)
1655
+ }, s.$attrs), null, 16, ["modelValue", "isView", "disabled", "error", "options", "onChange"])
1656
+ ],
1657
+ 2112
1658
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1659
+ )) : l(o)("treeSelect") ? (F(), P(
1660
+ R,
1661
+ { key: 6 },
1662
+ [
1663
+ E(" 下拉树 "),
1664
+ N(l(cr), x({
1665
+ ref_key: "$treeSelect",
1666
+ ref: i,
1667
+ modelValue: l(f),
1668
+ "onUpdate:modelValue": g[6] || (g[6] = (b) => I(f) ? f.value = b : null),
1669
+ data: s.options,
1670
+ size: "small",
1671
+ width: "100%",
1672
+ isView: s.isView,
1673
+ disabled: s.disabled,
1674
+ error: l(y),
1675
+ onChange: l(w)
1676
+ }, s.$attrs), null, 16, ["modelValue", "data", "isView", "disabled", "error", "onChange"])
1677
+ ],
1678
+ 2112
1679
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1680
+ )) : l(o)("colorPicker") ? (F(), P(
1681
+ R,
1682
+ { key: 7 },
1683
+ [
1684
+ E(" 颜色选择器 "),
1685
+ N(l(Fr), x({
1686
+ modelValue: l(f),
1687
+ "onUpdate:modelValue": g[7] || (g[7] = (b) => I(f) ? f.value = b : null),
1688
+ options: s.options,
1689
+ width: "100%",
1690
+ onChange: l(w),
1691
+ disabled: s.disabled,
1692
+ error: l(y),
1693
+ isView: s.isView
1694
+ }, s.$attrs), null, 16, ["modelValue", "options", "onChange", "disabled", "error", "isView"])
1695
+ ],
1696
+ 2112
1697
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1698
+ )) : l(o)("inputNumber") ? (F(), P(
1699
+ R,
1700
+ { key: 8 },
1701
+ [
1702
+ E(" 步进器 "),
1703
+ N(l(Sr), x({
1704
+ modelValue: l(f),
1705
+ "onUpdate:modelValue": g[8] || (g[8] = (b) => I(f) ? f.value = b : null),
1706
+ width: "100%",
1707
+ onInput: l(T),
1708
+ onChange: l(w),
1709
+ disabled: s.disabled,
1710
+ error: l(y),
1711
+ isView: s.isView
1712
+ }, s.$attrs), null, 16, ["modelValue", "onInput", "onChange", "disabled", "error", "isView"])
1713
+ ],
1714
+ 2112
1715
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1716
+ )) : l(o)("selectInput") ? (F(), P(
1717
+ R,
1718
+ { key: 9 },
1719
+ [
1720
+ E(" 搜索组件 "),
1721
+ N(l(gr), x({
1722
+ width: "100%",
1723
+ modelValue: l(f),
1724
+ "onUpdate:modelValue": g[9] || (g[9] = (b) => I(f) ? f.value = b : null),
1725
+ isView: s.isView,
1726
+ error: l(y),
1727
+ disabled: s.disabled,
1728
+ optionValue: l(d),
1729
+ "onUpdate:optionValue": g[10] || (g[10] = (b) => I(d) ? d.value = b : null),
1730
+ options: s.options,
1731
+ optionsLabelKey: s.optionsLabelKey,
1732
+ optionsValueKey: s.optionsValueKey,
1733
+ onInputChange: l(w),
1734
+ onDasInput: l(T),
1735
+ onSelectChange: l(M)
1736
+ }, s.$attrs), null, 16, ["modelValue", "isView", "error", "disabled", "optionValue", "options", "optionsLabelKey", "optionsValueKey", "onInputChange", "onDasInput", "onSelectChange"])
1737
+ ],
1738
+ 2112
1739
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1740
+ )) : l(o)("inputDialogSelect") ? (F(), P(
1741
+ R,
1742
+ { key: 10 },
1743
+ [
1744
+ E(" 弹窗选择 "),
1745
+ N(l(yr), x({
1746
+ style: { width: "100px", flex: "1" },
1747
+ size: "auto",
1748
+ isView: s.isView,
1749
+ disabled: s.disabled,
1750
+ error: l(y),
1751
+ "selected-options": s.options,
1752
+ modelValue: l(f),
1753
+ "onUpdate:modelValue": g[11] || (g[11] = (b) => I(f) ? f.value = b : null)
1754
+ }, s.$attrs, {
1755
+ optionsLabelKey: s.optionsLabelKey,
1756
+ optionsValueKey: s.optionsValueKey,
1757
+ onChange: l(w)
1758
+ }), null, 16, ["isView", "disabled", "error", "selected-options", "modelValue", "optionsLabelKey", "optionsValueKey", "onChange"])
1759
+ ],
1760
+ 2112
1761
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1762
+ )) : l(o)("date", "dateTime", "week", "month", "quarter", "year") ? (F(), P(
1763
+ R,
1764
+ { key: 11 },
1765
+ [
1766
+ E(" 日期选择器 "),
1767
+ N(l(Tr), x({
1768
+ "show-time": s.type === "dateTime",
1769
+ picker: s.type !== "dateTime" ? s.type : "date",
1770
+ modelValue: l(f),
1771
+ "onUpdate:modelValue": g[12] || (g[12] = (b) => I(f) ? f.value = b : null),
1772
+ size: "small",
1773
+ width: "100%",
1774
+ disabled: s.disabled,
1775
+ isView: s.isView,
1776
+ error: l(y),
1777
+ onChange: l(w)
1778
+ }, s.$attrs), null, 16, ["show-time", "picker", "modelValue", "disabled", "isView", "error", "onChange"])
1779
+ ],
1780
+ 2112
1781
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1782
+ )) : l(o)("dateRange", "dateTimeRange", "weekRange", "monthRange", "yearRange") ? (F(), P(
1783
+ R,
1784
+ { key: 12 },
1785
+ [
1786
+ E(" 日期范围选择器 "),
1787
+ N(l(Vr), x({
1788
+ "show-time": s.type === "dateTimeRange",
1789
+ picker: s.type !== "dateTimeRange" ? s.type.slice(0, -5) : "date",
1790
+ modelValue: l(f),
1791
+ "onUpdate:modelValue": g[13] || (g[13] = (b) => I(f) ? f.value = b : null),
1792
+ size: "small",
1793
+ width: "100%",
1794
+ disabled: s.disabled,
1795
+ isView: s.isView,
1796
+ error: l(y),
1797
+ onChange: l(w)
1798
+ }, s.$attrs), null, 16, ["show-time", "picker", "modelValue", "disabled", "isView", "error", "onChange"])
1799
+ ],
1800
+ 2112
1801
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1802
+ )) : l(o)("time") ? (F(), P(
1803
+ R,
1804
+ { key: 13 },
1805
+ [
1806
+ E(" 时间选择器 "),
1807
+ N(l(jr), x({
1808
+ modelValue: l(f),
1809
+ "onUpdate:modelValue": g[14] || (g[14] = (b) => I(f) ? f.value = b : null),
1810
+ size: "small",
1811
+ width: "100%",
1812
+ disabled: s.disabled,
1813
+ isView: s.isView,
1814
+ onChange: l(w)
1815
+ }, s.$attrs), null, 16, ["modelValue", "disabled", "isView", "onChange"])
1816
+ ],
1817
+ 2112
1818
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1819
+ )) : l(o)("timeRange") ? (F(), P(
1820
+ R,
1821
+ { key: 14 },
1822
+ [
1823
+ E(" 时间范围选择器 "),
1824
+ N(l(Or), x({
1825
+ modelValue: l(f),
1826
+ "onUpdate:modelValue": g[15] || (g[15] = (b) => I(f) ? f.value = b : null),
1827
+ size: "small",
1828
+ width: "100%",
1829
+ disabled: s.disabled,
1830
+ isView: s.isView,
1831
+ onChange: l(w)
1832
+ }, s.$attrs), null, 16, ["modelValue", "disabled", "isView", "onChange"])
1833
+ ],
1834
+ 2112
1835
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1836
+ )) : E("v-if", !0),
1837
+ E(" 插槽 "),
1838
+ ae(s.$slots, "default", {}, void 0, !0),
1839
+ E(" 提示 "),
1840
+ l(y) && l(u) ? (F(), P(
1841
+ R,
1842
+ { key: 15 },
1843
+ [
1844
+ l($) === "default" ? Qe((F(), P("div", Ho, [
1845
+ et(
1846
+ $e(l(u)),
1847
+ 1
1848
+ /* TEXT */
1849
+ )
1850
+ ])), [
1851
+ [l(rt)]
1852
+ ]) : l(D) ? (F(), P(
1853
+ R,
1854
+ { key: 1 },
1855
+ [
1856
+ l(D) ? (F(), Ce(dr, {
1857
+ key: 0,
1858
+ to: "body"
1859
+ }, [
1860
+ re(
1882
1861
  "div",
1883
1862
  {
1884
- key: 1,
1885
- style: J(l(k)),
1886
- class: "das-form-item-overlay-error-label-content"
1863
+ style: J(l(te))
1887
1864
  },
1888
1865
  [
1889
1866
  re(
@@ -1898,35 +1875,53 @@ const Lo = (e, t, r) => {
1898
1875
  ],
1899
1876
  4
1900
1877
  /* STYLE */
1901
- ))
1902
- ],
1903
- 64
1904
- /* STABLE_FRAGMENT */
1905
- )) : E("v-if", !0)
1906
- ],
1907
- 64
1908
- /* STABLE_FRAGMENT */
1909
- )) : E("v-if", !0)
1910
- ],
1911
- 36
1912
- /* STYLE, NEED_HYDRATION */
1913
- )
1914
- ],
1915
- 6
1916
- /* CLASS, STYLE */
1917
- ));
1878
+ )
1879
+ ])) : (F(), P(
1880
+ "div",
1881
+ {
1882
+ key: 1,
1883
+ style: J(l(k)),
1884
+ class: "das-form-item-overlay-error-label-content"
1885
+ },
1886
+ [
1887
+ re(
1888
+ "span",
1889
+ {
1890
+ style: J(l(W))
1891
+ },
1892
+ $e(l(u)),
1893
+ 5
1894
+ /* TEXT, STYLE */
1895
+ )
1896
+ ],
1897
+ 4
1898
+ /* STYLE */
1899
+ ))
1900
+ ],
1901
+ 64
1902
+ /* STABLE_FRAGMENT */
1903
+ )) : E("v-if", !0)
1904
+ ],
1905
+ 64
1906
+ /* STABLE_FRAGMENT */
1907
+ )) : E("v-if", !0)
1908
+ ],
1909
+ 36
1910
+ /* STYLE, NEED_HYDRATION */
1911
+ )
1912
+ ], 14, ko));
1918
1913
  }
1919
- }), Jo = (e, t) => {
1914
+ }), Zo = (e, t) => {
1920
1915
  const r = e.__vccOpts || e;
1921
1916
  for (const [n, a] of t)
1922
1917
  r[n] = a;
1923
1918
  return r;
1924
- }, Zo = /* @__PURE__ */ Jo(Wo, [["__scopeId", "data-v-e95d10ff"]]), Yo = {
1919
+ }, Yo = /* @__PURE__ */ Zo(Jo, [["__scopeId", "data-v-b1264b9f"]]), Xo = {
1925
1920
  "--das-ui-form-error-label-color": { light: "#fb2323" },
1926
1921
  "--das-ui-form-label-normal": { light: rr("--das-ui-color-secondary") }
1927
- }, bs = tr(Zo);
1928
- nr(Yo);
1922
+ }, vs = tr(Yo);
1923
+ nr(Xo);
1929
1924
  export {
1930
- bs as DasFormItem,
1931
- bs as default
1925
+ vs as DasFormItem,
1926
+ vs as default
1932
1927
  };