@aplus-frontend/ui 0.4.31 → 0.4.32

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 (140) hide show
  1. package/es/src/ap-action/group/index.vue.mjs +3 -3
  2. package/es/src/ap-action/item/index.vue2.mjs +5 -5
  3. package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
  4. package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
  5. package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
  6. package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
  7. package/es/src/ap-button/ap-button.vue.mjs +2 -2
  8. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +3 -3
  9. package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
  10. package/es/src/ap-download/ap-download.vue.mjs +1 -1
  11. package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
  12. package/es/src/ap-field/date/index.vue.mjs +4 -4
  13. package/es/src/ap-field/date-range/index.vue.mjs +8 -8
  14. package/es/src/ap-field/index.mjs +30 -30
  15. package/es/src/ap-field/interface.d.ts +4 -0
  16. package/es/src/ap-field/number/index.vue.mjs +8 -8
  17. package/es/src/ap-field/radio/index.vue.mjs +1 -1
  18. package/es/src/ap-field/rate/index.vue.mjs +2 -2
  19. package/es/src/ap-field/segmented/index.vue.mjs +1 -1
  20. package/es/src/ap-field/select/index.vue.mjs +112 -93
  21. package/es/src/ap-field/select/use-select-options.d.ts +21 -0
  22. package/es/src/ap-field/select/use-select-options.mjs +43 -0
  23. package/es/src/ap-field/slider/index.vue.mjs +4 -4
  24. package/es/src/ap-field/switch/index.vue.mjs +3 -3
  25. package/es/src/ap-field/text/index.vue2.mjs +2 -2
  26. package/es/src/ap-field/text/password.vue.mjs +2 -2
  27. package/es/src/ap-field/text-area/index.vue.mjs +3 -3
  28. package/es/src/ap-form/ap-form.vue2.mjs +2 -2
  29. package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
  30. package/es/src/ap-form/item/index.vue.mjs +7 -7
  31. package/es/src/ap-form/item-group/index.vue.mjs +3 -3
  32. package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
  33. package/es/src/ap-form/items/date/index.vue.mjs +2 -2
  34. package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
  35. package/es/src/ap-form/items/number/index.vue.mjs +2 -2
  36. package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
  37. package/es/src/ap-form/items/select/index.vue.mjs +2 -2
  38. package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
  39. package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
  40. package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
  41. package/es/src/ap-form/items/text/password.vue.mjs +2 -2
  42. package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
  43. package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
  44. package/es/src/ap-form/render/item.vue.mjs +2 -2
  45. package/es/src/ap-form/search-form/index.vue.mjs +1 -1
  46. package/es/src/ap-form/set/index.vue.mjs +1 -1
  47. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
  48. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
  49. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
  50. package/es/src/ap-list/index.vue.mjs +4 -4
  51. package/es/src/ap-table/ap-table.vue2.mjs +28 -28
  52. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +3 -3
  53. package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
  54. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +52 -33
  55. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
  56. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
  57. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
  58. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
  59. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
  60. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  61. package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
  62. package/es/src/ap-table/constants.mjs +40 -40
  63. package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
  64. package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
  65. package/es/src/ap-upload/apUpload.vue.mjs +5 -5
  66. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
  67. package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
  68. package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
  69. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
  70. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
  71. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
  72. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
  73. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
  74. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
  75. package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
  76. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
  77. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
  78. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
  79. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
  80. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
  81. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
  82. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
  83. package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
  84. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
  85. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +1 -1
  86. package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +1 -1
  87. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
  88. package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
  89. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
  90. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  91. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
  92. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
  93. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
  94. package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
  95. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
  96. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  97. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  98. package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
  99. package/es/src/business/batch-input-group/index.vue.d.ts +1 -0
  100. package/es/src/business/batch-input-group/index.vue.mjs +70 -60
  101. package/es/src/business/batch-input-group/interface.d.ts +5 -1
  102. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
  103. package/es/src/business/hooks/useTableRefresh.mjs +39 -32
  104. package/es/src/check-card/index.vue2.mjs +3 -3
  105. package/es/src/editable-table/form-item.vue.mjs +2 -2
  106. package/es/src/editable-table/index.vue.mjs +2 -2
  107. package/es/src/full-screen/index.vue.mjs +3 -3
  108. package/es/src/hooks/useFullScreen.mjs +5 -5
  109. package/es/src/locale/lang/en.mjs +2 -2
  110. package/es/src/locale/lang/zh-cn.mjs +2 -2
  111. package/es/src/portal/index.vue.mjs +2 -2
  112. package/es/src/scroll-bar/index.vue.mjs +3 -3
  113. package/es/src/scroll-bar/internal.vue.mjs +2 -2
  114. package/es/src/scroll-view/index.vue.mjs +9 -9
  115. package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
  116. package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
  117. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  118. package/lib/src/ap-field/index.js +1 -1
  119. package/lib/src/ap-field/interface.d.ts +4 -0
  120. package/lib/src/ap-field/select/index.vue.js +1 -1
  121. package/lib/src/ap-field/select/use-select-options.d.ts +21 -0
  122. package/lib/src/ap-field/select/use-select-options.js +1 -0
  123. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  124. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
  125. package/lib/src/ap-table/constants.js +1 -1
  126. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  127. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -0
  128. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  129. package/lib/src/business/batch-input-group/interface.d.ts +5 -1
  130. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  131. package/lib/src/locale/lang/en.js +1 -1
  132. package/lib/src/locale/lang/zh-cn.js +1 -1
  133. package/package.json +3 -3
  134. package/theme/batch-input-group/index.css +5 -1
  135. package/theme/batch-input-group/index.less +1 -0
  136. package/theme/batch-input-group/popover-input.css +2 -1
  137. package/theme/batch-input-group/popover-input.less +5 -1
  138. package/theme/index.css +5 -1
  139. package/theme/ap-scroll-bar/index.css +0 -31
  140. package/theme/ap-scroll-bar/index.less +0 -39
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, computed as s, unref as c, openBlock as t, createBlock as r, withCtx as k, createElementBlock as u, Fragment as a, renderList as A, mergeProps as i, createCommentVNode as v } from "vue";
1
+ import { defineComponent as h, computed as s, unref as c, createBlock as r, openBlock as t, withCtx as k, createElementBlock as u, createCommentVNode as A, Fragment as a, renderList as v, mergeProps as i } from "vue";
2
2
  import { Space as y } from "@aplus-frontend/antdv";
3
3
  import "../item/index.vue.mjs";
4
4
  import "../item-modal/index.vue2.mjs";
@@ -40,7 +40,7 @@ const q = /* @__PURE__ */ h({
40
40
  align: "center"
41
41
  }, {
42
42
  default: k(() => [
43
- (t(!0), u(a, null, A(l.value.showActions, (o, d) => (t(), u(a, { key: d }, [
43
+ (t(!0), u(a, null, v(l.value.showActions, (o, d) => (t(), u(a, { key: d }, [
44
44
  o.actions ? (t(), r(p, i({
45
45
  key: 0,
46
46
  ref_for: !0
@@ -61,7 +61,7 @@ const q = /* @__PURE__ */ h({
61
61
  placement: e.placement,
62
62
  trigger: e.trigger,
63
63
  text: c(_)("ap.common.more")
64
- }, null, 8, ["actions", "placement", "trigger", "text"])) : v("", !0)
64
+ }, null, 8, ["actions", "placement", "trigger", "text"])) : A("", !0)
65
65
  ]),
66
66
  _: 1
67
67
  }));
@@ -1,4 +1,4 @@
1
- import { defineComponent as b, createPropsRestProxy as k, ref as v, unref as r, computed as c, renderSlot as u, openBlock as l, createElementBlock as f, mergeProps as C, createBlock as m, createCommentVNode as p, isVNode as B, resolveDynamicComponent as A, toDisplayString as h } from "vue";
1
+ import { defineComponent as b, createPropsRestProxy as k, ref as v, unref as r, computed as c, renderSlot as u, createElementBlock as f, createCommentVNode as m, openBlock as l, mergeProps as C, createBlock as p, isVNode as B, resolveDynamicComponent as A, toDisplayString as h } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
3
  import L from "@aplus-frontend/antdv/es/button/LoadingIcon";
4
4
  import { useNamespace as N } from "../../config-provider/hooks/use-namespace.mjs";
@@ -35,16 +35,16 @@ const P = { key: 1 }, I = /* @__PURE__ */ b({
35
35
  class: y.value,
36
36
  onClick: d
37
37
  }), [
38
- t.value ? (l(), m(r(L), {
38
+ t.value ? (l(), p(r(L), {
39
39
  key: 0,
40
40
  "prefix-cls": "btn",
41
41
  "exist-icon": !1,
42
42
  loading: ""
43
- })) : p("", !0),
43
+ })) : m("", !0),
44
44
  u(e.$slots, "default", {}, () => [
45
- B(e.text) ? (l(), m(A(e.text), { key: 0 })) : (l(), f("span", P, h(e.text || ""), 1))
45
+ B(e.text) ? (l(), p(A(e.text), { key: 0 })) : (l(), f("span", P, h(e.text || ""), 1))
46
46
  ])
47
- ], 16)) : p("", !0)
47
+ ], 16)) : m("", !0)
48
48
  ]);
49
49
  }
50
50
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent as _, ref as v, computed as k, openBlock as t, createBlock as l, unref as r, withCtx as n, createVNode as u, createElementBlock as w, Fragment as A, renderList as B, normalizeClass as m, mergeProps as i, createElementVNode as b, normalizeProps as C, guardReactiveProps as I, renderSlot as P, createCommentVNode as D } from "vue";
1
+ import { defineComponent as _, ref as v, computed as k, createBlock as l, openBlock as t, unref as r, withCtx as n, createElementVNode as w, normalizeClass as m, createVNode as u, createCommentVNode as A, normalizeProps as B, guardReactiveProps as b, renderSlot as C, createElementBlock as I, Fragment as P, renderList as D, mergeProps as i } from "vue";
2
2
  import { Dropdown as N, Menu as $, MenuItem as h } from "@aplus-frontend/antdv";
3
3
  import "../item/index.vue.mjs";
4
4
  import "../item-modal/index.vue2.mjs";
@@ -7,9 +7,9 @@ import { IconApAdLineDown as L } from "@aplus-frontend/icon";
7
7
  import "../../config-provider/index.mjs";
8
8
  import { isUndefined as V, omit as z } from "lodash-unified";
9
9
  import { useNamespace as E } from "../../config-provider/hooks/use-namespace.mjs";
10
+ import d from "../item/index.vue2.mjs";
10
11
  import M from "../item-modal/index.vue.mjs";
11
12
  import U from "../item-popconfirm/index.vue.mjs";
12
- import d from "../item/index.vue2.mjs";
13
13
  const T = /* @__PURE__ */ _({
14
14
  name: "ApActionItemDropDown",
15
15
  __name: "index",
@@ -46,7 +46,7 @@ const T = /* @__PURE__ */ _({
46
46
  overlay: n(() => [
47
47
  u(r($), null, {
48
48
  default: n(() => [
49
- (t(!0), w(A, null, B(g.value, (o, y) => (t(), l(r(h), {
49
+ (t(!0), I(P, null, D(g.value, (o, y) => (t(), l(r(h), {
50
50
  key: y,
51
51
  class: m(r(s)("item"))
52
52
  }, {
@@ -69,19 +69,19 @@ const T = /* @__PURE__ */ _({
69
69
  })
70
70
  ]),
71
71
  default: n(() => [
72
- b("span", {
72
+ w("span", {
73
73
  class: m(r(s)("wrapper"))
74
74
  }, [
75
- u(d, C(I(r(z)(f, ["actions", "trigger", "placement"]))), {
75
+ u(d, B(b(r(z)(f, ["actions", "trigger", "placement"]))), {
76
76
  default: n(() => [
77
- P(e.$slots, "default")
77
+ C(e.$slots, "default")
78
78
  ]),
79
79
  _: 3
80
80
  }, 16),
81
81
  e.showIcon ? (t(), l(r(L), {
82
82
  key: 0,
83
83
  class: m(r(s)("icon"))
84
- }, null, 8, ["class"])) : D("", !0)
84
+ }, null, 8, ["class"])) : A("", !0)
85
85
  ], 2)
86
86
  ]),
87
87
  _: 3
@@ -1,4 +1,4 @@
1
- import { defineComponent as c, useSlots as m, openBlock as d, createBlock as p, mergeProps as f, unref as u, createSlots as _, renderList as A, withCtx as P, renderSlot as y, normalizeProps as k, guardReactiveProps as x } from "vue";
1
+ import { defineComponent as c, useSlots as m, createBlock as d, openBlock as p, mergeProps as f, unref as u, createSlots as _, renderList as A, withCtx as P, renderSlot as y, normalizeProps as k, guardReactiveProps as x } from "vue";
2
2
  import { Modal as B } from "@aplus-frontend/antdv";
3
3
  import "../item/index.vue.mjs";
4
4
  import { omit as g } from "lodash-unified";
@@ -28,7 +28,7 @@ const z = /* @__PURE__ */ c({
28
28
  }
29
29
  });
30
30
  }
31
- return (t, n) => (d(), p(h, f(u(g)(o, ["modalProps", "onAction"]), { onAction: i }), _({ _: 2 }, [
31
+ return (t, n) => (p(), d(h, f(u(g)(o, ["modalProps", "onAction"]), { onAction: i }), _({ _: 2 }, [
32
32
  A(l, (r, e) => ({
33
33
  name: e,
34
34
  fn: P((s) => [
@@ -1,4 +1,4 @@
1
- import { defineComponent as d, useSlots as u, openBlock as P, createBlock as _, unref as i, mergeProps as y, withCtx as a, createVNode as C, normalizeProps as p, guardReactiveProps as s, createSlots as x, renderList as A, renderSlot as B } from "vue";
1
+ import { defineComponent as d, useSlots as u, createBlock as P, openBlock as _, unref as i, mergeProps as y, withCtx as a, createVNode as C, normalizeProps as p, guardReactiveProps as s, createSlots as x, renderList as A, renderSlot as B } from "vue";
2
2
  import { Popconfirm as b } from "@aplus-frontend/antdv";
3
3
  import "../item/index.vue.mjs";
4
4
  import { omit as g } from "lodash-unified";
@@ -22,7 +22,7 @@ const I = /* @__PURE__ */ d({
22
22
  var r, t, e;
23
23
  (t = (r = o.popconfirmProps).onConfirm) == null || t.call(r, n), await ((e = o.onAction) == null ? void 0 : e.call(o, n));
24
24
  }
25
- return (n, r) => (P(), _(i(b), y(o.popconfirmProps, {
25
+ return (n, r) => (_(), P(i(b), y(o.popconfirmProps, {
26
26
  disabled: !o.popconfirmProps,
27
27
  "overlay-style": { zIndex: 1060 },
28
28
  onConfirm: m
@@ -1,4 +1,4 @@
1
- import { defineComponent as p, useSlots as i, openBlock as d, createBlock as u, normalizeProps as t, guardReactiveProps as r, createSlots as c, renderList as m, withCtx as f, renderSlot as y } from "vue";
1
+ import { defineComponent as p, useSlots as i, createBlock as d, openBlock as u, normalizeProps as t, guardReactiveProps as r, createSlots as c, renderList as m, withCtx as f, renderSlot as y } from "vue";
2
2
  import "./ap-button.vue2.mjs";
3
3
  import B from "./ap-button.vue.mjs";
4
4
  const C = /* @__PURE__ */ p({
@@ -26,7 +26,7 @@ const C = /* @__PURE__ */ p({
26
26
  },
27
27
  setup(n) {
28
28
  const a = i(), l = n;
29
- return (e, b) => (d(), u(B, t(r({
29
+ return (e, b) => (u(), d(B, t(r({
30
30
  ...e.$attrs,
31
31
  ...l
32
32
  })), c({ _: 2 }, [
@@ -1,4 +1,4 @@
1
- import { defineComponent as W, useSlots as z, ref as L, computed as t, openBlock as w, createBlock as M, unref as l, mergeProps as T, createSlots as _, renderList as P, withCtx as $, renderSlot as x, normalizeProps as S, guardReactiveProps as N } from "vue";
1
+ import { defineComponent as W, useSlots as z, ref as L, computed as t, createBlock as w, openBlock as M, unref as l, mergeProps as T, createSlots as _, renderList as P, withCtx as $, renderSlot as x, normalizeProps as S, guardReactiveProps as N } from "vue";
2
2
  import { Button as A } from "@aplus-frontend/antdv";
3
3
  import { wait as D } from "@aplus-frontend/utils";
4
4
  import "../config-provider/index.mjs";
@@ -68,7 +68,7 @@ const q = 88, E = 300, Y = /* @__PURE__ */ W({
68
68
  }
69
69
  }
70
70
  }
71
- return (o, c) => (w(), M(l(A), T({
71
+ return (o, c) => (M(), w(l(A), T({
72
72
  class: {
73
73
  [l(i)()]: !0,
74
74
  [`${l(i)()}-border-link`]: u.value
@@ -1,4 +1,4 @@
1
- import { defineComponent as N, openBlock as l, createElementBlock as n, normalizeClass as h, unref as r, normalizeStyle as T, createVNode as B, mergeProps as _, withCtx as f, Fragment as a, renderList as w, createBlock as i, h as c, renderSlot as E, resolveDynamicComponent as M } from "vue";
1
+ import { defineComponent as N, createElementBlock as n, openBlock as l, normalizeStyle as h, normalizeClass as T, unref as r, createVNode as B, mergeProps as _, withCtx as f, Fragment as a, renderList as w, createBlock as i, h as c, renderSlot as E, resolveDynamicComponent as M } from "vue";
2
2
  import { Descriptions as V, DescriptionsItem as m } from "@aplus-frontend/antdv";
3
3
  import { mixinsAttachmentExtraProps as j, transformValue as x, isEmptyWithType as z } from "./helper.mjs";
4
4
  import { get as b } from "lodash-unified";
@@ -35,8 +35,8 @@ const G = { key: 0 }, K = /* @__PURE__ */ N({
35
35
  return (t, s) => {
36
36
  var o;
37
37
  return l(), n("div", {
38
- class: h([t.className, r(P)(), r(v)(r(S))]),
39
- style: T(t.style)
38
+ class: T([t.className, r(P)(), r(v)(r(S))]),
39
+ style: h(t.style)
40
40
  }, [
41
41
  B(r(V), _(t.descriptionsProps, {
42
42
  "label-style": D({ ...((o = t.descriptionsProps) == null ? void 0 : o.labelStyle) || {} })
@@ -1,4 +1,4 @@
1
- import { defineComponent as r, computed as m, createVNode as t, openBlock as o, createElementBlock as d, createBlock as l, resolveDynamicComponent as u, unref as s, withCtx as f, createCommentVNode as h } from "vue";
1
+ import { defineComponent as r, computed as m, createVNode as t, createElementBlock as d, openBlock as o, createBlock as l, createCommentVNode as u, resolveDynamicComponent as f, unref as s, withCtx as h } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
3
  import { QuestionCircleOutlined as b } from "@ant-design/icons-vue";
4
4
  import { TypographyText as _, Tooltip as y } from "@aplus-frontend/antdv";
@@ -30,16 +30,16 @@ const C = {
30
30
  content: e
31
31
  }, null)]) : e;
32
32
  });
33
- return (e, c) => (o(), d("span", C, [(o(), l(u(a.value))), e.helpMessage ? (o(), l(s(y), {
33
+ return (e, c) => (o(), d("span", C, [(o(), l(f(a.value))), e.helpMessage ? (o(), l(s(y), {
34
34
  key: 0,
35
35
  placement: "topLeft",
36
36
  title: e.helpMessage
37
37
  }, {
38
- default: f(() => [t(s(b), {
38
+ default: h(() => [t(s(b), {
39
39
  class: "ap-descriptions-item-content__help"
40
40
  })]),
41
41
  _: 1
42
- }, 8, ["title"])) : h("", !0)]));
42
+ }, 8, ["title"])) : u("", !0)]));
43
43
  }
44
44
  });
45
45
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as x, ref as A, useSlots as S, computed as t, unref as s, openBlock as r, createBlock as j, mergeProps as I, withCtx as M, createElementVNode as u, normalizeClass as T, createElementBlock as f, createVNode as U, createCommentVNode as g, renderSlot as V, toDisplayString as D } from "vue";
1
+ import { defineComponent as x, ref as A, useSlots as S, computed as t, unref as s, createBlock as j, openBlock as r, mergeProps as I, withCtx as M, createElementVNode as u, normalizeClass as T, createElementBlock as f, createCommentVNode as g, createVNode as U, renderSlot as V, toDisplayString as D } from "vue";
2
2
  import { Button as E } from "@aplus-frontend/antdv";
3
3
  import { LoadingOutlined as G } from "@ant-design/icons-vue";
4
4
  import "../config-provider/index.mjs";
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, ref as b, onMounted as C, openBlock as o, createElementBlock as l, Fragment as n, unref as e, createTextVNode as m, toDisplayString as d, createBlock as c, mergeProps as V } from "vue";
1
+ import { defineComponent as h, ref as b, onMounted as C, createElementBlock as l, openBlock as o, Fragment as n, unref as e, createTextVNode as m, toDisplayString as d, createBlock as c, mergeProps as V } from "vue";
2
2
  import { isFunction as B, isNil as O, omit as q } from "lodash-unified";
3
3
  import { Spin as T, CheckboxGroup as U } from "@aplus-frontend/antdv";
4
4
  import "../../hooks/index.mjs";
@@ -1,4 +1,4 @@
1
- import { defineComponent as x, computed as s, unref as a, openBlock as m, createElementBlock as g, Fragment as k, createTextVNode as P, toDisplayString as C, createBlock as h, normalizeStyle as V, withCtx as f, isRef as E, renderList as S, createCommentVNode as N, createVNode as j, mergeProps as I, createSlots as U, renderSlot as H, normalizeProps as K, guardReactiveProps as $ } from "vue";
1
+ import { defineComponent as x, computed as s, unref as a, createElementBlock as g, createBlock as h, openBlock as m, Fragment as k, createTextVNode as P, toDisplayString as C, normalizeStyle as V, withCtx as f, createCommentVNode as E, createVNode as N, isRef as j, renderList as S, mergeProps as I, createSlots as U, renderSlot as H, normalizeProps as K, guardReactiveProps as $ } from "vue";
2
2
  import u from "dayjs";
3
3
  import { InputGroup as G, Select as L, SelectOption as W, DatePicker as Y } from "@aplus-frontend/antdv";
4
4
  import { ApFieldDatePresetFormats as Z, PRESET_FORMAT_MAP as q, PRESET_FORMAT_PICK_MAP as J, PRESET_FORMAT_TIME_MAP as Q } from "./constant.mjs";
@@ -162,7 +162,7 @@ const ve = /* @__PURE__ */ x({
162
162
  Array.isArray(e.timezone) && e.timezone.length ? (m(), h(a(L), {
163
163
  key: 0,
164
164
  value: a(d),
165
- "onUpdate:value": n[0] || (n[0] = (o) => E(d) ? d.value = o : null),
165
+ "onUpdate:value": n[0] || (n[0] = (o) => j(d) ? d.value = o : null),
166
166
  "default-active-first-option": "",
167
167
  "dropdown-match-select-width": !1,
168
168
  style: { "max-width": "50%" }
@@ -179,8 +179,8 @@ const ve = /* @__PURE__ */ x({
179
179
  }, 1032, ["value"]))), 128))
180
180
  ]),
181
181
  _: 1
182
- }, 8, ["value"])) : N("", !0),
183
- j(a(Y), I(R.value, {
182
+ }, 8, ["value"])) : E("", !0),
183
+ N(a(Y), I(R.value, {
184
184
  value: v.value,
185
185
  format: i.value,
186
186
  picker: _.value,
@@ -1,4 +1,4 @@
1
- import { defineComponent as Y, useSlots as Z, computed as y, unref as t, isVNode as q, createVNode as T, Fragment as v, openBlock as d, createElementBlock as k, createTextVNode as C, toDisplayString as B, createBlock as P, resolveDynamicComponent as J, normalizeStyle as Q, withCtx as D, isRef as X, renderList as R, createCommentVNode as z, mergeProps as ee, createSlots as ne, renderSlot as oe, normalizeProps as te, guardReactiveProps as ae } from "vue";
1
+ import { defineComponent as Y, useSlots as Z, computed as y, unref as t, isVNode as q, createVNode as T, Fragment as v, createElementBlock as k, createBlock as C, openBlock as d, createTextVNode as B, toDisplayString as P, resolveDynamicComponent as J, normalizeStyle as Q, withCtx as D, createCommentVNode as X, isRef as z, renderList as R, mergeProps as ee, createSlots as ne, renderSlot as oe, normalizeProps as te, guardReactiveProps as ae } from "vue";
2
2
  import { ApFieldDatePresetFormats as re, PRESET_FORMAT_MAP as le, PRESET_FORMAT_PICK_MAP as ue, PRESET_FORMAT_TIME_MAP as de } from "../date/constant.mjs";
3
3
  import "../../hooks/index.mjs";
4
4
  import { isNil as w, omit as _, isString as h, isFunction as ie } from "lodash-unified";
@@ -225,31 +225,31 @@ const xe = /* @__PURE__ */ Y({
225
225
  key: 0
226
226
  }, [S.value ? (d(), k(v, {
227
227
  key: 0
228
- }, [C(B((r = S.value[0]) == null ? void 0 : r.format(f.value)) + " ", 1), (d(), P(J(W.value))), C(" " + B((l = S.value[1]) == null ? void 0 : l.format(f.value)), 1)], 64)) : (d(), k(v, {
228
+ }, [B(P((r = S.value[0]) == null ? void 0 : r.format(f.value)) + " ", 1), (d(), C(J(W.value))), B(" " + P((l = S.value[1]) == null ? void 0 : l.format(f.value)), 1)], 64)) : (d(), k(v, {
229
229
  key: 1
230
- }, [C(B(e.emptyText), 1)], 64))], 64)) : (d(), P(t(se), {
230
+ }, [B(P(e.emptyText), 1)], 64))], 64)) : (d(), C(t(se), {
231
231
  key: 1,
232
232
  compact: "",
233
233
  style: Q({
234
234
  display: Array.isArray(n.timezone) && n.timezone.length ? "flex" : "block"
235
235
  })
236
236
  }, {
237
- default: D(() => [Array.isArray(n.timezone) && n.timezone.length ? (d(), P(t(fe), {
237
+ default: D(() => [Array.isArray(n.timezone) && n.timezone.length ? (d(), C(t(fe), {
238
238
  key: 0,
239
239
  value: t(u),
240
- "onUpdate:value": a[0] || (a[0] = (o) => X(u) ? u.value = o : null),
240
+ "onUpdate:value": a[0] || (a[0] = (o) => z(u) ? u.value = o : null),
241
241
  "default-active-first-option": "",
242
242
  "dropdown-match-select-width": !1
243
243
  }, {
244
- default: D(() => [(d(!0), k(v, null, R(n.timezone, (o) => (d(), P(t(pe), {
244
+ default: D(() => [(d(!0), k(v, null, R(n.timezone, (o) => (d(), C(t(pe), {
245
245
  key: o == null ? void 0 : o.value,
246
246
  value: o == null ? void 0 : o.value
247
247
  }, {
248
- default: D(() => [C(B((o == null ? void 0 : o.label) ?? (o == null ? void 0 : o.value)), 1)]),
248
+ default: D(() => [B(P((o == null ? void 0 : o.label) ?? (o == null ? void 0 : o.value)), 1)]),
249
249
  _: 2
250
250
  }, 1032, ["value"]))), 128))]),
251
251
  _: 1
252
- }, 8, ["value"])) : z("", !0), T(t(me).RangePicker, ee(H.value, {
252
+ }, 8, ["value"])) : X("", !0), T(t(me).RangePicker, ee(H.value, {
253
253
  value: S.value,
254
254
  picker: j.value,
255
255
  format: f.value,
@@ -11,43 +11,43 @@ import "./slider/index.vue2.mjs";
11
11
  import "./segmented/index.vue2.mjs";
12
12
  import "./rate/index.vue2.mjs";
13
13
  import "./interface.mjs";
14
- import m from "./text-area/index.vue.mjs";
15
- import e from "./number/index.vue.mjs";
16
- import r from "./date/index.vue.mjs";
17
- import o from "./date-range/index.vue.mjs";
18
- import t from "./radio/index.vue.mjs";
14
+ import m from "./rate/index.vue.mjs";
15
+ import e from "./segmented/index.vue.mjs";
16
+ import r from "./slider/index.vue.mjs";
17
+ import o from "./switch/index.vue.mjs";
18
+ import t from "./select/index.vue.mjs";
19
19
  import p from "./checkbox/index.vue.mjs";
20
- import a from "./select/index.vue.mjs";
21
- import f from "./switch/index.vue.mjs";
22
- import s from "./slider/index.vue.mjs";
23
- import _ from "./segmented/index.vue.mjs";
24
- import d from "./rate/index.vue.mjs";
20
+ import a from "./radio/index.vue.mjs";
21
+ import f from "./date-range/index.vue.mjs";
22
+ import s from "./date/index.vue.mjs";
23
+ import _ from "./number/index.vue.mjs";
24
+ import d from "./text-area/index.vue.mjs";
25
25
  const B = {
26
26
  Text: i,
27
- TextArea: m,
28
- Number: e,
29
- Date: r,
30
- DateRange: o,
31
- Radio: t,
27
+ TextArea: d,
28
+ Number: _,
29
+ Date: s,
30
+ DateRange: f,
31
+ Radio: a,
32
32
  Checkbox: p,
33
- Select: a,
34
- Switch: f,
35
- Slider: s,
36
- Segmented: _,
37
- Rate: d
33
+ Select: t,
34
+ Switch: o,
35
+ Slider: r,
36
+ Segmented: e,
37
+ Rate: m
38
38
  };
39
39
  export {
40
40
  B as ApField,
41
41
  p as ApFieldCheckbox,
42
- r as ApFieldDate,
43
- o as ApFieldDateRange,
44
- e as ApFieldNumber,
45
- t as ApFieldRadio,
46
- d as ApFieldRate,
47
- _ as ApFieldSegmented,
48
- a as ApFieldSelect,
49
- s as ApFieldSlider,
50
- f as ApFieldSwitch,
42
+ s as ApFieldDate,
43
+ f as ApFieldDateRange,
44
+ _ as ApFieldNumber,
45
+ a as ApFieldRadio,
46
+ m as ApFieldRate,
47
+ e as ApFieldSegmented,
48
+ t as ApFieldSelect,
49
+ r as ApFieldSlider,
50
+ o as ApFieldSwitch,
51
51
  i as ApFieldText,
52
- m as ApFieldTextArea
52
+ d as ApFieldTextArea
53
53
  };
@@ -130,6 +130,10 @@ export type ApFieldSelectProps = BasicApFieldProps<Omit<SelectProps, 'mode' | 'v
130
130
  * 是否延迟请求选项列表
131
131
  */
132
132
  lazy?: boolean;
133
+ /**
134
+ * 添加一个名为全部的节点(只在多选的情况下有效)
135
+ */
136
+ addAll?: boolean | number;
133
137
  };
134
138
  export type ApFieldSelectExpose = {
135
139
  focus: () => void;
@@ -1,4 +1,4 @@
1
- import { defineComponent as x, ref as C, computed as N, unref as t, openBlock as r, createElementBlock as n, Fragment as D, normalizeClass as d, renderSlot as s, createCommentVNode as m, createElementVNode as P, toDisplayString as V, createBlock as $, mergeProps as R, createSlots as A, renderList as I, withCtx as U, normalizeProps as z, guardReactiveProps as E } from "vue";
1
+ import { defineComponent as x, ref as C, computed as N, unref as t, createElementBlock as n, createBlock as D, openBlock as r, Fragment as P, createCommentVNode as d, createElementVNode as V, normalizeClass as m, renderSlot as s, toDisplayString as $, mergeProps as R, createSlots as A, renderList as I, withCtx as U, normalizeProps as z, guardReactiveProps as E } from "vue";
2
2
  import { InputNumber as F } from "@aplus-frontend/antdv";
3
3
  import "../../hooks/index.mjs";
4
4
  import { isNil as M, omit as T } from "lodash-unified";
@@ -76,21 +76,21 @@ const te = /* @__PURE__ */ x({
76
76
  var e;
77
77
  (e = l.value) == null || e.blur();
78
78
  }
79
- return c({ focus: k, blur: g }), (e, a) => e.mode === "read" ? (r(), n(D, { key: 0 }, [
79
+ return c({ focus: k, blur: g }), (e, a) => e.mode === "read" ? (r(), n(P, { key: 0 }, [
80
80
  e.$slots.prefix ? (r(), n("span", {
81
81
  key: 0,
82
- class: d(t(i)("label-left"))
82
+ class: m(t(i)("label-left"))
83
83
  }, [
84
84
  s(e.$slots, "prefix")
85
- ], 2)) : m("", !0),
86
- P("span", null, V(h.value), 1),
85
+ ], 2)) : d("", !0),
86
+ V("span", null, $(h.value), 1),
87
87
  e.$slots.addonAfter ? (r(), n("span", {
88
88
  key: 1,
89
- class: d(t(i)("label-right"))
89
+ class: m(t(i)("label-right"))
90
90
  }, [
91
91
  s(e.$slots, "addonAfter")
92
- ], 2)) : m("", !0)
93
- ], 64)) : (r(), $(t(F), R({ key: 1 }, t(T)(o, ["value", "onUpdate:value"]), {
92
+ ], 2)) : d("", !0)
93
+ ], 64)) : (r(), D(t(F), R({ key: 1 }, t(T)(o, ["value", "onUpdate:value"]), {
94
94
  ref_key: "inputRef",
95
95
  ref: l,
96
96
  placeholder: t(B),
@@ -1,4 +1,4 @@
1
- import { defineComponent as q, ref as p, onMounted as C, computed as O, unref as o, openBlock as l, createElementBlock as m, Fragment as d, createTextVNode as R, toDisplayString as U, createBlock as f, mergeProps as h } from "vue";
1
+ import { defineComponent as q, ref as p, onMounted as C, computed as O, unref as o, createElementBlock as m, openBlock as l, Fragment as d, createTextVNode as R, toDisplayString as U, createBlock as f, mergeProps as h } from "vue";
2
2
  import { Spin as G, RadioGroup as N } from "@aplus-frontend/antdv";
3
3
  import "../../hooks/index.mjs";
4
4
  import { isNil as S, omit as z } from "lodash-unified";
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, ref as b, useSlots as h, computed as y, openBlock as B, createBlock as C, unref as o, mergeProps as _, createSlots as x, withCtx as g, renderSlot as k } from "vue";
1
+ import { defineComponent as v, ref as b, useSlots as h, computed as y, createBlock as B, openBlock as C, unref as o, mergeProps as _, createSlots as x, withCtx as g, renderSlot as k } from "vue";
2
2
  import { omit as w } from "lodash-unified";
3
3
  import "../../hooks/index.mjs";
4
4
  import { Rate as R } from "@aplus-frontend/antdv";
@@ -44,7 +44,7 @@ const D = /* @__PURE__ */ v({
44
44
  return u({
45
45
  focus: p,
46
46
  blur: m
47
- }), (e, t) => (B(), C(o(R), _(o(w)(a, ["mode", "defaultValue"]), {
47
+ }), (e, t) => (C(), B(o(R), _(o(w)(a, ["mode", "defaultValue"]), {
48
48
  ref_key: "rateRef",
49
49
  ref: l,
50
50
  value: o(f),
@@ -1,4 +1,4 @@
1
- import { defineComponent as S, ref as B, useSlots as U, onMounted as V, computed as _, unref as l, createVNode as s, Fragment as a, openBlock as r, createBlock as d, createElementBlock as h, resolveDynamicComponent as N, mergeProps as q, withCtx as z, renderSlot as F, normalizeProps as P, guardReactiveProps as T } from "vue";
1
+ import { defineComponent as S, ref as B, useSlots as U, onMounted as V, computed as _, unref as l, createVNode as s, Fragment as a, createBlock as d, createElementBlock as h, openBlock as r, resolveDynamicComponent as N, mergeProps as q, withCtx as z, renderSlot as F, normalizeProps as P, guardReactiveProps as T } from "vue";
2
2
  import { Spin as O, Segmented as R } from "@aplus-frontend/antdv";
3
3
  import { isFunction as c, isUndefined as w, isString as A, isNumber as D, omit as E } from "lodash-unified";
4
4
  import "../../hooks/index.mjs";