@aplus-frontend/ui 0.3.0 → 0.3.2

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 (139) hide show
  1. package/es/src/ap-action/item/index.vue2.mjs +11 -11
  2. package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
  3. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +24 -24
  4. package/es/src/ap-drawer/utils/createDrawer.mjs +10 -10
  5. package/es/src/ap-field/checkbox/index.vue.mjs +3 -3
  6. package/es/src/ap-field/date/index.vue.mjs +2 -2
  7. package/es/src/ap-field/date-range/index.vue.mjs +2 -2
  8. package/es/src/ap-field/number/index.vue.mjs +3 -3
  9. package/es/src/ap-field/radio/index.vue.mjs +5 -5
  10. package/es/src/ap-field/rate/index.vue.mjs +4 -4
  11. package/es/src/ap-field/segmented/index.vue.mjs +3 -3
  12. package/es/src/ap-field/select/index.vue.mjs +4 -4
  13. package/es/src/ap-field/slider/index.vue.mjs +3 -3
  14. package/es/src/ap-field/switch/index.vue.mjs +4 -4
  15. package/es/src/ap-field/text-area/index.vue.mjs +3 -3
  16. package/es/src/ap-form/ap-form.vue.d.ts +5 -6
  17. package/es/src/ap-form/ap-form.vue2.mjs +5 -5
  18. package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -4
  19. package/es/src/ap-form/drawer-form/index.vue.mjs +2 -2
  20. package/es/src/ap-form/interface.d.ts +12 -3
  21. package/es/src/ap-form/modal-form/index.vue.d.ts +4 -4
  22. package/es/src/ap-form/modal-form/index.vue.mjs +3 -3
  23. package/es/src/ap-form/search-form/index.vue.d.ts +5 -5
  24. package/es/src/ap-form/search-form/index.vue.mjs +2 -2
  25. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +6 -6
  26. package/es/src/ap-list/index.vue.mjs +27 -27
  27. package/es/src/ap-modal/utils/createModal.mjs +10 -10
  28. package/es/src/ap-scroll-bar/ap-scroll-bar.vue2.mjs +3 -3
  29. package/es/src/ap-table/ap-table.vue2.mjs +3 -3
  30. package/es/src/ap-table/components/index/index.vue2.mjs +3 -3
  31. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +4 -4
  32. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +2 -2
  33. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +3 -3
  34. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +8 -8
  35. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +6 -6
  36. package/es/src/ap-table/components/status/index.vue2.mjs +4 -4
  37. package/es/src/ap-table/hooks/use-table-content-height.mjs +13 -11
  38. package/es/src/ap-tag/ap-tag-group.vue.mjs +1 -1
  39. package/es/src/ap-upload/apUpload.vue.d.ts +57 -8
  40. package/es/src/ap-upload/apUpload.vue.mjs +56 -37
  41. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +10 -10
  42. package/es/src/ap-upload/components/Picture.vue2.mjs +26 -26
  43. package/es/src/ap-upload/components/SingleFile.vue2.mjs +27 -27
  44. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +49 -49
  45. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
  46. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +5 -5
  47. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +11 -11
  48. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +1 -1
  49. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +26 -26
  50. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +15 -15
  51. package/es/src/business/ap-group-search/index.d.ts +1 -1
  52. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -15
  53. package/es/src/business/ap-image/ApImage.vue2.mjs +28 -28
  54. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  55. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +8 -9
  56. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -2
  57. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +74 -70
  58. package/es/src/business/ap-upload-file/hook/useProps.mjs +8 -8
  59. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +1 -1
  60. package/es/src/business/ap-upload-file/interface.d.ts +2 -0
  61. package/es/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
  62. package/es/src/business/ap-upload-file/utils/fileList.mjs +12 -12
  63. package/es/src/business/ap-upload-file/utils/upload.d.ts +3 -0
  64. package/es/src/business/ap-upload-file/utils/upload.mjs +23 -23
  65. package/es/src/business/batch-input-group/index.vue.mjs +5 -5
  66. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +15 -15
  67. package/es/src/editable-table/form-item.vue.mjs +3 -3
  68. package/es/src/editable-table/index.vue.mjs +6 -6
  69. package/es/src/work-order-modal/work-order-modal.vue.mjs +28 -28
  70. package/lib/src/ap-action/item/index.vue2.js +1 -1
  71. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  72. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  73. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  74. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  75. package/lib/src/ap-field/date/index.vue.js +1 -1
  76. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  77. package/lib/src/ap-field/number/index.vue.js +1 -1
  78. package/lib/src/ap-field/radio/index.vue.js +1 -1
  79. package/lib/src/ap-field/rate/index.vue.js +1 -1
  80. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  81. package/lib/src/ap-field/select/index.vue.js +1 -1
  82. package/lib/src/ap-field/slider/index.vue.js +1 -1
  83. package/lib/src/ap-field/switch/index.vue.js +1 -1
  84. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  85. package/lib/src/ap-form/ap-form.vue.d.ts +5 -6
  86. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  87. package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -4
  88. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  89. package/lib/src/ap-form/interface.d.ts +12 -3
  90. package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -4
  91. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  92. package/lib/src/ap-form/search-form/index.vue.d.ts +5 -5
  93. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  94. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +1 -1
  95. package/lib/src/ap-list/index.vue.js +1 -1
  96. package/lib/src/ap-modal/utils/createModal.js +1 -1
  97. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue2.js +1 -1
  98. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  99. package/lib/src/ap-table/components/index/index.vue2.js +1 -1
  100. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  101. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  102. package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
  103. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  104. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  105. package/lib/src/ap-table/components/status/index.vue2.js +1 -1
  106. package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
  107. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  108. package/lib/src/ap-upload/apUpload.vue.d.ts +57 -8
  109. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  110. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  111. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  112. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  113. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  114. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  115. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  116. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  117. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +1 -1
  118. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
  119. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
  120. package/lib/src/business/ap-group-search/index.d.ts +1 -1
  121. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
  122. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  123. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
  124. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  125. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -2
  126. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  127. package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
  128. package/lib/src/business/ap-upload-file/icon/file-icon.vue.js +1 -1
  129. package/lib/src/business/ap-upload-file/interface.d.ts +2 -0
  130. package/lib/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
  131. package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
  132. package/lib/src/business/ap-upload-file/utils/upload.d.ts +3 -0
  133. package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
  134. package/lib/src/business/batch-input-group/index.vue.js +1 -1
  135. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
  136. package/lib/src/editable-table/form-item.vue.js +1 -1
  137. package/lib/src/editable-table/index.vue.js +1 -1
  138. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  139. package/package.json +2 -2
@@ -1,13 +1,13 @@
1
- import { defineComponent as T, computed as d, ref as V, openBlock as s, createElementBlock as u, mergeProps as S, unref as t, renderSlot as p, createVNode as g, withCtx as v, createElementVNode as c, normalizeClass as n, createBlock as N, createCommentVNode as h, Fragment as j, renderList as D, createSlots as E, createTextVNode as M, toDisplayString as U } from "vue";
2
- import z from "./icons/file-icon.vue.mjs";
3
- import { Tooltip as G, TypographyText as P } from "@aplus-frontend/antdv";
4
- import { IconVariantDownload as q } from "@aplus-frontend/icon";
5
- import { LoadingOutlined as H } from "@ant-design/icons-vue";
1
+ import { defineComponent as T, computed as d, ref as V, openBlock as s, createElementBlock as u, mergeProps as S, unref as t, renderSlot as p, createVNode as g, withCtx as v, createElementVNode as c, normalizeClass as n, createBlock as C, createCommentVNode as h, Fragment as j, renderList as D, createSlots as E, createTextVNode as U, toDisplayString as z } from "vue";
2
+ import G from "./icons/file-icon.vue.mjs";
3
+ import { Tooltip as P, TypographyText as q } from "@aplus-frontend/antdv";
4
+ import { IconVariantDownload as H } from "@aplus-frontend/icon";
5
+ import { LoadingOutlined as J } from "@ant-design/icons-vue";
6
6
  import "../ap-title/ApTitle.vue.mjs";
7
7
  import "../../ap-download/ap-download.vue2.mjs";
8
8
  import "../../config-provider/index.mjs";
9
- import { getFileInfo as J } from "./utils/index.mjs";
10
- import { useNamespace as K } from "../../config-provider/hooks/use-namespace.mjs";
9
+ import { getFileInfo as K } from "./utils/index.mjs";
10
+ import { useNamespace as M } from "../../config-provider/hooks/use-namespace.mjs";
11
11
  import { useLocale as Q } from "../../config-provider/hooks/use-locale.mjs";
12
12
  import { useGlobalConfig as w } from "../../config-provider/hooks/use-global-config.mjs";
13
13
  import R from "../ap-title/ApTitle.vue2.mjs";
@@ -23,38 +23,38 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
23
23
  column: { default: 2 },
24
24
  isFileAreaBorder: { type: Boolean, default: !1 }
25
25
  },
26
- setup(O) {
27
- const { b: $, e: i, em: C } = K("ap-appendix"), { t: y } = Q(), e = O, x = w("apUpload"), k = w(
26
+ setup($) {
27
+ const { b: x, e: a, em: k } = M("ap-appendix"), { t: y } = Q(), e = $, B = w("apUpload"), N = w(
28
28
  "downloadCenterTriggerConfig"
29
29
  ), f = d(
30
- () => J(e == null ? void 0 : e.needName, (e == null ? void 0 : e.fileList) ?? [])
31
- ), B = d(
30
+ () => K(e == null ? void 0 : e.needName, (e == null ? void 0 : e.fileList) ?? [])
31
+ ), b = d(
32
32
  () => {
33
33
  var l;
34
- return e.getOssAccess || ((l = x.value) == null ? void 0 : l.getOssAccess);
34
+ return e.getOssAccess || ((l = B.value) == null ? void 0 : l.getOssAccess);
35
35
  }
36
36
  ), F = d(
37
37
  () => !(Array.isArray(f.value) && f.value.length)
38
- ), a = V([]), b = d(() => e.title || y("ap.apAppendix.appendix"));
38
+ ), i = V([]), O = d(() => e.title || y("ap.apAppendix.appendix"));
39
39
  async function I(l, m) {
40
- var o, L;
41
- if (!(a.value.findIndex((r) => r === m) > -1)) {
42
- a.value = [...a.value, m];
40
+ var o, A;
41
+ if (!(i.value.findIndex((r) => r === m) > -1)) {
42
+ i.value = [...i.value, m];
43
43
  try {
44
- if ((o = k.value) != null && o.trigger) {
44
+ if ((o = N.value) != null && o.trigger) {
45
45
  let r = [l].map((_) => ({
46
46
  objectName: _.path,
47
47
  fileName: _.fileName
48
48
  }));
49
- await ((L = k.value) == null ? void 0 : L.trigger(r));
49
+ await ((A = N.value) == null ? void 0 : A.trigger(r));
50
50
  }
51
51
  } finally {
52
- a.value = a.value.filter((r) => r !== m);
52
+ i.value = i.value.filter((r) => r !== m);
53
53
  }
54
54
  }
55
55
  }
56
56
  return (l, m) => (s(), u("div", S({
57
- class: [t($)()]
57
+ class: [t(x)()]
58
58
  }, {
59
59
  ...l.$attrs
60
60
  }, {
@@ -66,12 +66,12 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
66
66
  fileList: e.fileList
67
67
  }, () => [
68
68
  g(R, {
69
- title: b.value,
70
- helpMessage: e == null ? void 0 : e.tooltip
69
+ title: O.value,
70
+ "help-message": e == null ? void 0 : e.tooltip
71
71
  }, {
72
72
  suffix: v(() => [
73
73
  c("div", {
74
- class: n([t(i)("suffix")])
74
+ class: n([t(a)("suffix")])
75
75
  }, [
76
76
  p(l.$slots, "titleSuffix", {
77
77
  fileList: e.fileList
@@ -79,23 +79,23 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
79
79
  p(l.$slots, "titleDownloadAllBtn", {
80
80
  fileList: e.fileList
81
81
  }, () => [
82
- F.value ? h("", !0) : (s(), N(W, {
82
+ F.value ? h("", !0) : (s(), C(W, {
83
83
  key: 0,
84
- class: n([t(i)("download-all")]),
84
+ class: n([t(a)("download-all")]),
85
85
  text: t(y)("ap.apAppendix.downloadAll"),
86
- getOssAccess: B.value,
87
- fileName: f.value
86
+ "get-oss-access": b.value,
87
+ "file-name": f.value
88
88
  }, {
89
89
  icon: v(() => [
90
- g(t(q))
90
+ g(t(H))
91
91
  ]),
92
92
  _: 1
93
- }, 8, ["class", "text", "getOssAccess", "fileName"]))
93
+ }, 8, ["class", "text", "get-oss-access", "file-name"]))
94
94
  ])
95
95
  ], 2)
96
96
  ]),
97
97
  _: 3
98
- }, 8, ["title", "helpMessage"])
98
+ }, 8, ["title", "help-message"])
99
99
  ]),
100
100
  p(l.$slots, "fileArea", {
101
101
  fileList: e.fileList
@@ -103,50 +103,50 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
103
103
  F.value ? h("", !0) : (s(), u("div", {
104
104
  key: 0,
105
105
  class: n({
106
- [t(i)("file-area")]: !0,
107
- [t(C)("file-area", "border")]: !!e.isFileAreaBorder
106
+ [t(a)("file-area")]: !0,
107
+ [t(k)("file-area", "border")]: !!e.isFileAreaBorder
108
108
  })
109
109
  }, [
110
110
  c("div", {
111
- class: n([t(i)("file-area-content")])
111
+ class: n([t(a)("file-area-content")])
112
112
  }, [
113
- (s(!0), u(j, null, D(f.value, (A, o) => (s(), u("div", {
113
+ (s(!0), u(j, null, D(f.value, (L, o) => (s(), u("div", {
114
+ key: o,
114
115
  class: n({
115
- [t(i)("file-area-content-item")]: !0,
116
- [t(C)("file-area-content-item", "loading")]: a.value.includes(o)
117
- }),
118
- key: o
116
+ [t(a)("file-area-content-item")]: !0,
117
+ [t(k)("file-area-content-item", "loading")]: i.value.includes(o)
118
+ })
119
119
  }, [
120
- g(t(G), null, E({
120
+ g(t(P), null, E({
121
121
  default: v(() => [
122
122
  c("div", {
123
123
  class: n({
124
- [t(i)("file-area-content-item-content")]: !0,
125
- [t(i)("file-area-content-item--loading-content")]: a.value.includes(o)
124
+ [t(a)("file-area-content-item-content")]: !0,
125
+ [t(a)("file-area-content-item--loading-content")]: i.value.includes(o)
126
126
  }),
127
- onClick: (L) => I(A, o)
127
+ onClick: (A) => I(L, o)
128
128
  }, [
129
129
  c("div", {
130
- class: n([t(i)("file-area-content-item-icon")])
130
+ class: n([t(a)("file-area-content-item-icon")])
131
131
  }, [
132
- a.value.includes(o) ? (s(), N(t(H), { key: 0 })) : (s(), N(z, { key: 1 }))
132
+ i.value.includes(o) ? (s(), C(t(J), { key: 0 })) : (s(), C(G, { key: 1 }))
133
133
  ], 2),
134
134
  c("div", {
135
- class: n([t(i)("file-area-content-item-file-name")])
135
+ class: n([t(a)("file-area-content-item-file-name")])
136
136
  }, [
137
- g(t(P), {
137
+ g(t(q), {
138
138
  ellipsis: "",
139
- content: A.fileName
139
+ content: L.fileName
140
140
  }, null, 8, ["content"])
141
141
  ], 2)
142
142
  ], 10, X)
143
143
  ]),
144
144
  _: 2
145
145
  }, [
146
- a.value.includes(o) ? void 0 : {
146
+ i.value.includes(o) ? void 0 : {
147
147
  name: "title",
148
148
  fn: v(() => [
149
- M(U(t(y)("ap.apAppendix.downloadFile")), 1)
149
+ U(z(t(y)("ap.apAppendix.downloadFile")), 1)
150
150
  ]),
151
151
  key: "0"
152
152
  }
@@ -18,7 +18,7 @@ const ee = /* @__PURE__ */ A({
18
18
  menuList: {}
19
19
  },
20
20
  setup(P) {
21
- const { b: i } = S("ap-batch-action-group"), { t: L } = F(), e = P, _ = O("uiMode"), { hasPermission: g } = M(), p = n(
21
+ const { b: i } = S("ap-batch-action-group"), { t: _ } = F(), e = P, g = O("uiMode"), { hasPermission: k } = M(), p = n(
22
22
  () => {
23
23
  var t;
24
24
  return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.dropdownType) || "default";
@@ -31,24 +31,24 @@ const ee = /* @__PURE__ */ A({
31
31
  ), f = n(
32
32
  () => {
33
33
  var t;
34
- return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.content) || L("ap.apApBatchActionGroup.batchOperation");
34
+ return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.content) || _("ap.apApBatchActionGroup.batchOperation");
35
35
  }
36
- ), k = n(() => (e == null ? void 0 : e.selectedRows) || []), d = n(
36
+ ), B = n(() => (e == null ? void 0 : e.selectedRows) || []), d = n(
37
37
  () => {
38
38
  var t;
39
- return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.disabled) ?? (Array.isArray(e.selectedRows) ? k.value.length === 0 : !1);
39
+ return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.disabled) ?? (Array.isArray(e.selectedRows) ? B.value.length === 0 : !1);
40
40
  }
41
- ), B = n(() => {
41
+ ), L = n(() => {
42
42
  const t = {
43
43
  aplus: "#0070FF",
44
44
  admin: "#34b77c"
45
45
  };
46
- return u.value === "borderLink" ? d.value ? void 0 : t[_.value] || t.aplus : void 0;
46
+ return u.value === "borderLink" ? d.value ? void 0 : t[g.value] || t.aplus : void 0;
47
47
  }), l = n(() => {
48
48
  var t;
49
49
  return ((t = e == null ? void 0 : e.menuList) == null ? void 0 : t.filter((o) => {
50
50
  let s = o == null ? void 0 : o.ifShow;
51
- return !(o != null && o.ifShow) && (o != null && o.auth) && (s = () => g(o.auth)), (s == null ? void 0 : s()) ?? !0;
51
+ return !(o != null && o.ifShow) && (o != null && o.auth) && (s = () => k(o.auth)), (s == null ? void 0 : s()) ?? !0;
52
52
  })) || [];
53
53
  });
54
54
  function b() {
@@ -68,12 +68,12 @@ const ee = /* @__PURE__ */ A({
68
68
  overlay: r(() => [
69
69
  c(w, m({
70
70
  ...e
71
- }, { menuList: l.value }), null, 16, ["menuList"])
71
+ }, { "menu-list": l.value }), null, 16, ["menu-list"])
72
72
  ]),
73
73
  default: r(() => [
74
74
  C("span", {
75
75
  style: D({
76
- color: B.value
76
+ color: L.value
77
77
  })
78
78
  }, h(f.value), 5)
79
79
  ]),
@@ -86,7 +86,7 @@ const ee = /* @__PURE__ */ A({
86
86
  overlay: r(() => [
87
87
  c(w, m({
88
88
  ...e
89
- }, { menuList: l.value }), null, 16, ["menuList"])
89
+ }, { "menu-list": l.value }), null, 16, ["menu-list"])
90
90
  ]),
91
91
  default: r(() => [
92
92
  c(a(E), R(T({
@@ -85,8 +85,8 @@ const Z = ["onClick"], pe = /* @__PURE__ */ W({
85
85
  y.value ? (a(), g(t(Q), {
86
86
  key: 0,
87
87
  size: "small",
88
- onClick: d[0] || (d[0] = (i) => R()),
89
- style: { "font-size": "12px", "padding-left": "16px" }
88
+ style: { "font-size": "12px", "padding-left": "16px" },
89
+ onClick: d[0] || (d[0] = (i) => R())
90
90
  }, {
91
91
  default: m(() => [
92
92
  b("span", {
@@ -101,10 +101,10 @@ const Z = ["onClick"], pe = /* @__PURE__ */ W({
101
101
  ]),
102
102
  message: m(() => [
103
103
  b("div", {
104
- style: c({ ...D.value, ...e.contentStyle }),
105
- class: s(t(o)("alertContent")),
106
104
  ref_key: "ellipsisBoxRef",
107
- ref: u
105
+ ref: u,
106
+ style: c({ ...D.value, ...e.contentStyle }),
107
+ class: s(t(o)("alertContent"))
108
108
  }, [
109
109
  N(e.$slots, "default", {}, () => [
110
110
  t(E)(e.prefix) ? (a(), n("span", {
@@ -32,33 +32,33 @@ const oe = /* @__PURE__ */ B({
32
32
  return b.value ? "" : t[_.value] || t.aplus;
33
33
  }), b = l(() => !!(e != null && e.disabled)), A = l(() => (e == null ? void 0 : e.successMessage) === !0 ? n("ap.apExportGroup.exportSuccess") : e != null && e.successMessage ? e.successMessage : ""), G = {
34
34
  textAlign: "center"
35
- }, c = D(!1), w = l(() => (e == null ? void 0 : e.selectedRowKeys) || []), P = l(() => {
35
+ }, c = D(!1), v = l(() => (e == null ? void 0 : e.selectedRowKeys) || []), P = l(() => {
36
36
  let t = e == null ? void 0 : e.ifShow;
37
37
  return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => C(e.auth)), (t == null ? void 0 : t()) ?? !0;
38
38
  });
39
39
  async function k({ key: t }) {
40
- var v, h;
41
- const { getRequestParams: u, request: o } = e || {};
40
+ var w, h;
41
+ const { getRequestParams: r, request: o } = e || {};
42
42
  let d = {};
43
43
  t === i.SELECT ? d = {
44
- [(e == null ? void 0 : e.idKey) || "ids"]: w.value
45
- } : t === i.ALL && (d = (u == null ? void 0 : u()) || {});
46
- const p = ((v = e == null ? void 0 : e.getInitialParams) == null ? void 0 : v.call(e)) || {};
44
+ [(e == null ? void 0 : e.idKey) || "ids"]: v.value
45
+ } : t === i.ALL && (d = (r == null ? void 0 : r()) || {});
46
+ const p = ((w = e == null ? void 0 : e.getInitialParams) == null ? void 0 : w.call(e)) || {};
47
47
  try {
48
48
  c.value = !0;
49
- let r = {
49
+ let u = {
50
50
  ...d,
51
51
  ...p
52
52
  };
53
- r = ((h = e == null ? void 0 : e.beforeRequest) == null ? void 0 : h.call(e, r)) || r, await O(async () => await (o == null ? void 0 : o(r))), e != null && e.successMessage && I.success(A.value);
53
+ u = ((h = e == null ? void 0 : e.beforeRequest) == null ? void 0 : h.call(e, u)) || u, await O(async () => await (o == null ? void 0 : o(u))), e != null && e.successMessage && I.success(A.value);
54
54
  } finally {
55
55
  c.value = !1;
56
56
  }
57
57
  }
58
- return (t, u) => P.value ? (m(), f(a(V), {
58
+ return (t, r) => P.value ? (m(), f(a(V), {
59
59
  key: 0,
60
60
  class: K([a(S)()]),
61
- overlayStyle: G,
61
+ "overlay-style": G,
62
62
  disabled: b.value
63
63
  }, {
64
64
  overlay: s(() => [
@@ -68,7 +68,7 @@ const oe = /* @__PURE__ */ B({
68
68
  return [
69
69
  (m(), f(a(M), {
70
70
  key: a(i).SELECT,
71
- disabled: ((o = w.value) == null ? void 0 : o.length) === 0
71
+ disabled: ((o = v.value) == null ? void 0 : o.length) === 0
72
72
  }, {
73
73
  default: s(() => [
74
74
  g(x(a(n)("ap.apExportGroup.exportSelected")), 1)
@@ -5,9 +5,9 @@ declare function __VLS_template(): {
5
5
  attrs: Partial<{}>;
6
6
  slots: {
7
7
  search?(_: {
8
+ key: SelectValue;
8
9
  value: any;
9
10
  change: (e: any) => void;
10
- key: SelectValue;
11
11
  }): any;
12
12
  };
13
13
  refs: {
@@ -1,14 +1,14 @@
1
- import { defineComponent as L, ref as P, computed as c, onMounted as N, watch as R, unref as t, resolveComponent as D, openBlock as C, createElementBlock as K, normalizeClass as d, createVNode as p, withCtx as S, normalizeStyle as O, createBlock as T, createCommentVNode as F, renderSlot as $ } from "vue";
1
+ import { defineComponent as P, ref as M, computed as c, onMounted as N, watch as R, unref as t, resolveComponent as D, openBlock as w, createElementBlock as K, normalizeClass as d, createVNode as p, withCtx as C, normalizeStyle as O, createBlock as F, createCommentVNode as T, renderSlot as $ } from "vue";
2
2
  import { Flex as j, Select as E } from "@aplus-frontend/antdv";
3
3
  import G from "./images/icon-down.vue.mjs";
4
4
  import "./extension-select/index.vue.mjs";
5
- import { useControllableValue as W } from "../../hooks/useControllableValue.mjs";
5
+ import { useControllableValue as z } from "../../hooks/useControllableValue.mjs";
6
6
  import "../../config-provider/index.mjs";
7
- import { useLocale as z } from "../../config-provider/hooks/use-locale.mjs";
8
- import { useGlobalConfig as H } from "../../config-provider/hooks/use-global-config.mjs";
9
- import { useNamespace as U } from "../../config-provider/hooks/use-namespace.mjs";
7
+ import { useLocale as H } from "../../config-provider/hooks/use-locale.mjs";
8
+ import { useGlobalConfig as U } from "../../config-provider/hooks/use-global-config.mjs";
9
+ import { useNamespace as W } from "../../config-provider/hooks/use-namespace.mjs";
10
10
  import Y from "./extension-select/index.vue2.mjs";
11
- const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ L({
11
+ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ P({
12
12
  __name: "ap-group-search",
13
13
  props: {
14
14
  value: {},
@@ -90,11 +90,11 @@ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ L({
90
90
  style: {}
91
91
  },
92
92
  emits: ["update:value"],
93
- setup(w, { emit: _ }) {
94
- const { t: h } = z(), f = H("uiMode", "aplus"), y = P(), l = w, B = c(() => ({
93
+ setup(S, { emit: _ }) {
94
+ const { t: h } = H(), f = U("uiMode", "aplus"), y = M(), l = S, B = c(() => ({
95
95
  width: "auto",
96
96
  ...l.style
97
- })), b = _, { value: a, updateValue: u } = W(l, b), A = (e) => {
97
+ })), b = _, { value: a, updateValue: u } = z(l, b), A = (e) => {
98
98
  let o = e;
99
99
  e === m ? o = l.options.map((n) => n.value) : o = toString.call(o) === "[object Array]" ? e : [e], u({
100
100
  ...a.value,
@@ -139,52 +139,52 @@ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ L({
139
139
  ...a.value,
140
140
  value: e
141
141
  });
142
- }, { b: I, e: g, em: M } = U("ap-group-search");
142
+ }, { b: I, e: g, em: L } = W("ap-group-search");
143
143
  return (e, o) => {
144
144
  const n = D("Divider");
145
- return C(), K("div", {
146
- class: d(t(I)()),
145
+ return w(), K("div", {
147
146
  ref_key: "containerRef",
148
- ref: y
147
+ ref: y,
148
+ class: d(t(I)())
149
149
  }, [
150
150
  p(t(j), null, {
151
- default: S(() => {
151
+ default: C(() => {
152
152
  var s, i;
153
153
  return [
154
154
  p(t(E), {
155
155
  value: V.value,
156
156
  style: O(B.value),
157
- class: d(`${e.$attrs.class} ${t(f) === "admin" ? t(M)("search", "admin") : t(g)("search")}`),
157
+ class: d(`${e.$attrs.class} ${t(f) === "admin" ? t(L)("search", "admin") : t(g)("search")}`),
158
158
  options: k.value,
159
159
  bordered: !1,
160
- dropdownMatchSelectWidth: l.dropdownMatchSelectWidth,
160
+ "dropdown-match-select-width": l.dropdownMatchSelectWidth,
161
161
  onChange: A
162
162
  }, {
163
- suffixIcon: S(() => [
163
+ suffixIcon: C(() => [
164
164
  p(G)
165
165
  ]),
166
166
  _: 1
167
- }, 8, ["value", "style", "class", "options", "dropdownMatchSelectWidth"]),
168
- t(f) === "aplus" ? (C(), T(n, {
167
+ }, 8, ["value", "style", "class", "options", "dropdown-match-select-width"]),
168
+ t(f) === "aplus" ? (w(), F(n, {
169
169
  key: 0,
170
170
  class: d(t(g)("divider")),
171
171
  type: "vertical",
172
172
  style: {}
173
- }, null, 8, ["class"])) : F("", !0),
173
+ }, null, 8, ["class"])) : T("", !0),
174
174
  $(e.$slots, "search", {
175
- value: (s = t(a)) == null ? void 0 : s.value,
176
- change: v,
177
- key: (i = t(a)) == null ? void 0 : i.key
175
+ key: (s = t(a)) == null ? void 0 : s.key,
176
+ value: (i = t(a)) == null ? void 0 : i.value,
177
+ change: v
178
178
  }, () => {
179
179
  var r;
180
180
  return [
181
181
  p(Y, {
182
182
  style: { width: "100%" },
183
- maxTagCount: "responsive",
183
+ "max-tag-count": "responsive",
184
184
  value: (r = t(a)) == null ? void 0 : r.value,
185
- onChange: v,
186
185
  placeholder: x.value,
187
- "__parent-ref": y.value
186
+ "__parent-ref": y.value,
187
+ onChange: v
188
188
  }, null, 8, ["value", "placeholder", "__parent-ref"])
189
189
  ];
190
190
  })
@@ -1,11 +1,11 @@
1
- import { defineComponent as v, ref as t, computed as y, watch as w, openBlock as B, createElementBlock as _, createVNode as s, unref as l, normalizeClass as x, normalizeStyle as b, withCtx as S } from "vue";
1
+ import { defineComponent as y, ref as t, computed as C, watch as w, openBlock as B, createElementBlock as _, createVNode as s, unref as l, normalizeClass as x, normalizeStyle as b, withCtx as S } from "vue";
2
2
  import { Select as I } from "@aplus-frontend/antdv";
3
3
  import "../popover-select/index.vue.mjs";
4
4
  import "../../../config-provider/index.mjs";
5
5
  import { useGlobalConfig as R } from "../../../config-provider/hooks/use-global-config.mjs";
6
- import { useNamespace as T } from "../../../config-provider/hooks/use-namespace.mjs";
7
- import V from "../popover-select/index.vue2.mjs";
8
- const O = /* @__PURE__ */ v({
6
+ import { useNamespace as V } from "../../../config-provider/hooks/use-namespace.mjs";
7
+ import N from "../popover-select/index.vue2.mjs";
8
+ const O = /* @__PURE__ */ y({
9
9
  __name: "index",
10
10
  props: {
11
11
  value: {},
@@ -85,7 +85,7 @@ const O = /* @__PURE__ */ v({
85
85
  },
86
86
  emits: ["change"],
87
87
  setup(u, { emit: c }) {
88
- const d = R("uiMode", "aplus"), o = u, r = t(), n = t(), a = t(!1), m = y(() => o.__parentRef || r.value), f = c, h = (e) => {
88
+ const d = R("uiMode", "aplus"), o = u, r = t(), n = t(), a = t(!1), m = C(() => o.__parentRef || r.value), f = c, h = (e) => {
89
89
  e && (a.value = !1);
90
90
  };
91
91
  w(
@@ -97,7 +97,7 @@ const O = /* @__PURE__ */ v({
97
97
  );
98
98
  const p = (e) => {
99
99
  n.value = e, f("change", e);
100
- }, { b: g } = T("ap-extension-select");
100
+ }, { b: g } = V("ap-extension-select");
101
101
  return (e, i) => (B(), _("div", {
102
102
  ref_key: "containerRef",
103
103
  ref: r
@@ -108,24 +108,24 @@ const O = /* @__PURE__ */ v({
108
108
  style: b(e.$attrs.style),
109
109
  bordered: l(d) === "admin",
110
110
  mode: "tags",
111
- showArrow: !0,
111
+ "show-arrow": !0,
112
112
  "not-found-content": !0,
113
113
  open: a.value,
114
- onDropdownVisibleChange: i[0] || (i[0] = (C) => a.value = C),
115
- onChange: p,
116
- maxTagCount: o.maxTagCount,
117
- placeholder: o.placeholder
114
+ "max-tag-count": o.maxTagCount,
115
+ placeholder: o.placeholder,
116
+ onDropdownVisibleChange: i[0] || (i[0] = (v) => a.value = v),
117
+ onChange: p
118
118
  }, {
119
119
  suffixIcon: S(() => [
120
- s(V, {
120
+ s(N, {
121
121
  value: n.value,
122
+ "__parent-ref": m.value,
122
123
  onSubmit: p,
123
- onOpenChange: h,
124
- "__parent-ref": m.value
124
+ onOpenChange: h
125
125
  }, null, 8, ["value", "__parent-ref"])
126
126
  ]),
127
127
  _: 1
128
- }, 8, ["class", "value", "style", "bordered", "open", "maxTagCount", "placeholder"])
128
+ }, 8, ["class", "value", "style", "bordered", "open", "max-tag-count", "placeholder"])
129
129
  ], 512));
130
130
  }
131
131
  });
@@ -42,9 +42,9 @@ declare const ApGroupSearch: {
42
42
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
43
43
  $slots: {
44
44
  search?(_: {
45
+ key: SelectValue;
45
46
  value: any;
46
47
  change: (e: any) => void;
47
- key: SelectValue;
48
48
  }): any;
49
49
  };
50
50
  }) & ( Plugin & (new (...args: any[]) => {
@@ -86,14 +86,14 @@ const Y = /* @__PURE__ */ P({
86
86
  },
87
87
  emits: ["submit", "open-change"],
88
88
  setup(S, { emit: w }) {
89
- const { t: r } = F(), h = E("uiMode", "aplus"), i = S, v = w, t = u([]), c = u(!1), g = u();
89
+ const { t: r } = F(), h = E("uiMode", "aplus"), c = S, v = w, t = u([]), i = u(!1), g = u();
90
90
  R(() => {
91
- t.value = i.value;
91
+ t.value = c.value;
92
92
  });
93
- const B = (o) => i.__parentRef || o, b = (o) => {
94
- c.value = o, v("open-change", o);
93
+ const B = (o) => c.__parentRef || o, b = (o) => {
94
+ i.value = o, v("open-change", o);
95
95
  }, C = () => {
96
- c.value = !1;
96
+ i.value = !1;
97
97
  }, _ = () => {
98
98
  t.value = [];
99
99
  }, x = (o) => {
@@ -101,15 +101,15 @@ const Y = /* @__PURE__ */ P({
101
101
  }, k = async () => {
102
102
  var o;
103
103
  (o = g.value) == null || o.blur(), C(), await D(150), v("submit", t.value);
104
- }, { b: N, e: V, em: l } = K("ap-popover-select");
104
+ }, { b: V, e: I, em: l } = K("ap-popover-select");
105
105
  return (o, y) => (L(), M("div", {
106
- class: p(e(N)())
106
+ class: p(e(V)())
107
107
  }, [
108
108
  a(e(T), {
109
- overlayClassName: e(V)("popover"),
109
+ "overlay-class-name": e(I)("popover"),
110
110
  "get-popup-container": B,
111
111
  trigger: "click",
112
- open: c.value,
112
+ open: i.value,
113
113
  placement: "bottomLeft",
114
114
  onOpenChange: b
115
115
  }, {
@@ -118,18 +118,18 @@ const Y = /* @__PURE__ */ P({
118
118
  s("div", {
119
119
  class: p(e(l)("popover", "content"))
120
120
  }, [
121
- a(e(z), O({ ...i }, {
121
+ a(e(z), O({ ...c }, {
122
+ ref_key: "selectRef",
123
+ ref: g,
122
124
  mode: "tags",
123
125
  bordered: !1,
124
126
  value: t.value,
125
- onChange: y[0] || (y[0] = (I) => x(I)),
126
127
  placeholder: e(r)("ap.apGroupSearch.tokenSeparatorsPlaceholder"),
127
- tokenSeparators: [",", `
128
+ "token-separators": [",", `
128
129
  `, "\r"],
129
130
  "max-tag-count": 200,
130
131
  open: !1,
131
- ref_key: "selectRef",
132
- ref: g
132
+ onChange: y[0] || (y[0] = (N) => x(N))
133
133
  }), null, 16, ["value", "placeholder"])
134
134
  ], 2),
135
135
  s("div", {
@@ -183,7 +183,7 @@ const Y = /* @__PURE__ */ P({
183
183
  ], 2)
184
184
  ]),
185
185
  _: 1
186
- }, 8, ["overlayClassName", "open"])
186
+ }, 8, ["overlay-class-name", "open"])
187
187
  ], 2));
188
188
  }
189
189
  });