@aplus-frontend/ui 0.0.31 → 0.0.33

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 (189) hide show
  1. package/es/src/ap-action/group/index.vue.d.ts +1 -1
  2. package/es/src/ap-field/date/index.vue.d.ts +8 -8
  3. package/es/src/ap-field/date-range/index.vue.d.ts +6 -6
  4. package/es/src/ap-field/rate/index.vue.d.ts +1 -1
  5. package/es/src/ap-field/select/index.vue.d.ts +1 -1
  6. package/es/src/ap-field/text/index.vue.d.ts +1 -1
  7. package/es/src/ap-field/text/password.vue.d.ts +3 -3
  8. package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
  9. package/es/src/ap-form/ap-form-item-group/helper.d.ts +7 -0
  10. package/es/src/ap-form/ap-form-item-group/helper.mjs +30 -25
  11. package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +1 -1
  12. package/es/src/ap-form/ap-form-item-group/index.vue.mjs +20 -22
  13. package/es/src/ap-form/ap-form-item.vue.d.ts +1 -1
  14. package/es/src/ap-form/ap-form.vue.d.ts +2 -2
  15. package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
  16. package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
  17. package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
  18. package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
  19. package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
  20. package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
  21. package/es/src/ap-form/items/select/index.vue.d.ts +3 -3
  22. package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
  23. package/es/src/ap-form/items/text/index.vue.d.ts +3 -3
  24. package/es/src/ap-form/items/text/password.vue.d.ts +3 -3
  25. package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
  26. package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
  27. package/es/src/ap-form/modal-form/index.vue.mjs +43 -39
  28. package/es/src/ap-form/search-form/index.vue.d.ts +4 -4
  29. package/es/src/ap-list/hooks/use-offline-list.d.ts +1 -1
  30. package/es/src/ap-list/index.vue.d.ts +15 -15
  31. package/es/src/ap-table/ap-table.vue.d.ts +60 -60
  32. package/es/src/ap-table/constants.d.ts +2778 -2778
  33. package/es/src/ap-table/utils.d.ts +2 -8474
  34. package/es/src/ap-tag/ap-tag-group.vue.d.ts +16 -6
  35. package/es/src/ap-tag/ap-tag-group.vue.mjs +81 -61
  36. package/es/src/ap-tag/interface.d.ts +24 -0
  37. package/es/src/ap-tag/style/ap-tag-group.css +8 -0
  38. package/es/src/ap-upload/styles/multiple-file.css +4 -0
  39. package/es/src/ap-upload/styles/picture.css +1 -1
  40. package/es/src/base-button/index.d.ts +17 -17
  41. package/es/src/basic/index.d.ts +3 -3
  42. package/es/src/business/index.d.ts +40 -40
  43. package/es/src/button/index.d.ts +1 -1
  44. package/es/src/check-card/group.vue.d.ts +3 -0
  45. package/es/src/check-card/group.vue.mjs +17 -16
  46. package/es/src/check-card/index.vue.d.ts +1 -1
  47. package/es/src/config-provider/config-provider.d.ts +1 -1
  48. package/es/src/config-provider/hooks/use-global-config.d.ts +1 -1
  49. package/es/src/config-provider/index.d.ts +4 -3
  50. package/es/src/container/collapse/header.vue.d.ts +1 -1
  51. package/es/src/container/collapse/index.vue.d.ts +1 -1
  52. package/es/src/container/index.d.ts +5 -5
  53. package/es/src/count-down/index.d.ts +2 -2
  54. package/es/src/cropper/cropper-image.vue.d.ts +1 -1
  55. package/es/src/cropper/index.d.ts +34 -34
  56. package/es/src/description/index.d.ts +2 -2
  57. package/es/src/design-token/index.mjs +6 -2
  58. package/es/src/dropdown/index.d.ts +2 -2
  59. package/es/src/editable-table/form-item.vue.d.ts +23 -23
  60. package/es/src/editable-table/index.vue.d.ts +27 -27
  61. package/es/src/icon/index.d.ts +2 -2
  62. package/es/src/icon-picker/index.d.ts +1 -1
  63. package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
  64. package/es/src/modal/components/modal.d.ts +1 -1
  65. package/es/src/modal/index.d.ts +1 -1
  66. package/es/src/pro-form/component-map.d.ts +2 -2
  67. package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  68. package/es/src/pro-form/components/api-select.vue.d.ts +1 -1
  69. package/es/src/pro-form/components/api-transfer.vue.d.ts +2 -2
  70. package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
  71. package/es/src/pro-form/hooks/use-advanced.d.ts +1 -1
  72. package/es/src/pro-form/hooks/use-form-values.d.ts +1 -1
  73. package/es/src/pro-form/hooks/use-label-width.d.ts +27 -27
  74. package/es/src/pro-form/pro-form.vue.d.ts +4 -4
  75. package/es/src/pro-table/component-map.d.ts +2 -2
  76. package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +2 -2
  77. package/es/src/pro-table/components/table-action.vue.d.ts +1 -1
  78. package/es/src/pro-table/components/table-footer.vue.d.ts +2 -2
  79. package/es/src/pro-table/components/table-image.vue.d.ts +1 -1
  80. package/es/src/pro-table/hooks/use-data-source.d.ts +5 -5
  81. package/es/src/pro-table/hooks/use-row-selection.d.ts +1 -1
  82. package/es/src/pro-table/hooks/use-table-footer.d.ts +1 -1
  83. package/es/src/pro-table/hooks/use-table-header.d.ts +1 -1
  84. package/es/src/pro-table/pro-table.vue.d.ts +12 -12
  85. package/es/src/prompt/utils.d.ts +2 -2
  86. package/es/src/scroll-bar/index.d.ts +21 -21
  87. package/es/src/scroll-bar/scroll-bar.vue.d.ts +2 -2
  88. package/es/src/strength-meter/index.d.ts +1 -1
  89. package/es/src/theme/ap-tag/ap-tag-group.css +8 -0
  90. package/es/src/theme/ap-upload/multiple-file.css +4 -0
  91. package/es/src/theme/ap-upload/picture.css +1 -1
  92. package/es/src/transition/create-transition.d.ts +1 -1
  93. package/es/src/transition/index.d.ts +11 -11
  94. package/es/src/work-order-modal/interfaces.d.ts +2 -2
  95. package/lib/src/ap-action/group/index.vue.d.ts +1 -1
  96. package/lib/src/ap-field/date/index.vue.d.ts +8 -8
  97. package/lib/src/ap-field/date-range/index.vue.d.ts +6 -6
  98. package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
  99. package/lib/src/ap-field/select/index.vue.d.ts +1 -1
  100. package/lib/src/ap-field/text/index.vue.d.ts +1 -1
  101. package/lib/src/ap-field/text/password.vue.d.ts +3 -3
  102. package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
  103. package/lib/src/ap-form/ap-form-item-group/helper.d.ts +7 -0
  104. package/lib/src/ap-form/ap-form-item-group/helper.js +1 -1
  105. package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +1 -1
  106. package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
  107. package/lib/src/ap-form/ap-form-item.vue.d.ts +1 -1
  108. package/lib/src/ap-form/ap-form.vue.d.ts +2 -2
  109. package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
  110. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
  111. package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
  112. package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
  113. package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
  114. package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
  115. package/lib/src/ap-form/items/select/index.vue.d.ts +3 -3
  116. package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
  117. package/lib/src/ap-form/items/text/index.vue.d.ts +3 -3
  118. package/lib/src/ap-form/items/text/password.vue.d.ts +3 -3
  119. package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
  120. package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
  121. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  122. package/lib/src/ap-form/search-form/index.vue.d.ts +4 -4
  123. package/lib/src/ap-list/hooks/use-offline-list.d.ts +1 -1
  124. package/lib/src/ap-list/index.vue.d.ts +15 -15
  125. package/lib/src/ap-table/ap-table.vue.d.ts +60 -60
  126. package/lib/src/ap-table/constants.d.ts +2778 -2778
  127. package/lib/src/ap-table/utils.d.ts +2 -8474
  128. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +16 -6
  129. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  130. package/lib/src/ap-tag/interface.d.ts +24 -0
  131. package/lib/src/ap-tag/style/ap-tag-group.css +8 -0
  132. package/lib/src/ap-upload/styles/multiple-file.css +4 -0
  133. package/lib/src/ap-upload/styles/picture.css +1 -1
  134. package/lib/src/base-button/index.d.ts +17 -17
  135. package/lib/src/basic/index.d.ts +3 -3
  136. package/lib/src/business/index.d.ts +40 -40
  137. package/lib/src/button/index.d.ts +1 -1
  138. package/lib/src/check-card/group.vue.d.ts +3 -0
  139. package/lib/src/check-card/group.vue.js +1 -1
  140. package/lib/src/check-card/index.vue.d.ts +1 -1
  141. package/lib/src/config-provider/config-provider.d.ts +1 -1
  142. package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -1
  143. package/lib/src/config-provider/index.d.ts +4 -3
  144. package/lib/src/container/collapse/header.vue.d.ts +1 -1
  145. package/lib/src/container/collapse/index.vue.d.ts +1 -1
  146. package/lib/src/container/index.d.ts +5 -5
  147. package/lib/src/count-down/index.d.ts +2 -2
  148. package/lib/src/cropper/cropper-image.vue.d.ts +1 -1
  149. package/lib/src/cropper/index.d.ts +34 -34
  150. package/lib/src/description/index.d.ts +2 -2
  151. package/lib/src/design-token/index.js +1 -1
  152. package/lib/src/dropdown/index.d.ts +2 -2
  153. package/lib/src/editable-table/form-item.vue.d.ts +23 -23
  154. package/lib/src/editable-table/index.vue.d.ts +27 -27
  155. package/lib/src/icon/index.d.ts +2 -2
  156. package/lib/src/icon-picker/index.d.ts +1 -1
  157. package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
  158. package/lib/src/modal/components/modal.d.ts +1 -1
  159. package/lib/src/modal/index.d.ts +1 -1
  160. package/lib/src/pro-form/component-map.d.ts +2 -2
  161. package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  162. package/lib/src/pro-form/components/api-select.vue.d.ts +1 -1
  163. package/lib/src/pro-form/components/api-transfer.vue.d.ts +2 -2
  164. package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
  165. package/lib/src/pro-form/hooks/use-advanced.d.ts +1 -1
  166. package/lib/src/pro-form/hooks/use-form-values.d.ts +1 -1
  167. package/lib/src/pro-form/hooks/use-label-width.d.ts +27 -27
  168. package/lib/src/pro-form/pro-form.vue.d.ts +4 -4
  169. package/lib/src/pro-table/component-map.d.ts +2 -2
  170. package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +2 -2
  171. package/lib/src/pro-table/components/table-action.vue.d.ts +1 -1
  172. package/lib/src/pro-table/components/table-footer.vue.d.ts +2 -2
  173. package/lib/src/pro-table/components/table-image.vue.d.ts +1 -1
  174. package/lib/src/pro-table/hooks/use-data-source.d.ts +5 -5
  175. package/lib/src/pro-table/hooks/use-row-selection.d.ts +1 -1
  176. package/lib/src/pro-table/hooks/use-table-footer.d.ts +1 -1
  177. package/lib/src/pro-table/hooks/use-table-header.d.ts +1 -1
  178. package/lib/src/pro-table/pro-table.vue.d.ts +12 -12
  179. package/lib/src/prompt/utils.d.ts +2 -2
  180. package/lib/src/scroll-bar/index.d.ts +21 -21
  181. package/lib/src/scroll-bar/scroll-bar.vue.d.ts +2 -2
  182. package/lib/src/strength-meter/index.d.ts +1 -1
  183. package/lib/src/theme/ap-tag/ap-tag-group.css +8 -0
  184. package/lib/src/theme/ap-upload/multiple-file.css +4 -0
  185. package/lib/src/theme/ap-upload/picture.css +1 -1
  186. package/lib/src/transition/create-transition.d.ts +1 -1
  187. package/lib/src/transition/index.d.ts +11 -11
  188. package/lib/src/work-order-modal/interfaces.d.ts +2 -2
  189. package/package.json +2 -2
@@ -1,19 +1,24 @@
1
- import { ApTagGroupProps, ApTagProps } from './interface';
1
+ import { ApTagGroupProps, ApTagProps, EllipsisProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
3
 
4
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApTagGroupProps>, {
4
+ type ApTagGroupSlots = {
5
+ tooltip?: (props: {
6
+ tags: ApTagProps[];
7
+ }) => void;
8
+ };
9
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApTagGroupProps>, {
5
10
  list: () => ApTagProps[];
6
11
  space: number;
7
- ellipsisColor: string;
12
+ ellipsis: () => {};
8
13
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApTagGroupProps>, {
9
14
  list: () => ApTagProps[];
10
15
  space: number;
11
- ellipsisColor: string;
16
+ ellipsis: () => {};
12
17
  }>>>, {
18
+ ellipsis: EllipsisProps;
13
19
  space: number;
14
20
  list: ApTagProps[];
15
- ellipsisColor: string;
16
- }, {}>;
21
+ }, {}>, Readonly<ApTagGroupSlots> & ApTagGroupSlots>;
17
22
  export default _default;
18
23
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
24
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -32,3 +37,8 @@ type __VLS_WithDefaults<P, D> = {
32
37
  type __VLS_Prettify<T> = {
33
38
  [K in keyof T]: T[K];
34
39
  } & {};
40
+ type __VLS_WithTemplateSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };
@@ -1,12 +1,15 @@
1
- import { createElementVNode as e, defineComponent as z, ref as p, computed as m, unref as l, nextTick as g, watch as L, onMounted as W, onUnmounted as b, openBlock as f, createBlock as v, withCtx as y, normalizeClass as F, normalizeStyle as w, createElementBlock as N, Fragment as T, renderList as q, mergeProps as A, createCommentVNode as M } from "vue";
2
- import { Tooltip as P } from "ant-design-vue";
3
- import V from "@ant-design/icons-vue";
1
+ import { createElementVNode as t, defineComponent as N, ref as v, computed as s, unref as o, nextTick as g, watch as P, onMounted as S, onUnmounted as j, openBlock as u, createBlock as h, mergeProps as _, withCtx as y, renderSlot as q, createTextVNode as G, toDisplayString as k, normalizeClass as b, normalizeStyle as E, createElementBlock as B, Fragment as R, renderList as I, createCommentVNode as U } from "vue";
2
+ import { Tooltip as H } from "ant-design-vue";
3
+ import J from "@ant-design/icons-vue";
4
4
  import "./ap-tag.vue2.mjs";
5
5
  import "../config-provider/index.mjs";
6
+ import { omit as K } from "lodash-unified";
6
7
  import "./style/ap-tag-group.css";
7
- import { useNamespace as $ } from "../config-provider/hooks/use-namespace.mjs";
8
- import j from "./ap-tag.vue.mjs";
9
- const I = /* @__PURE__ */ e("svg", {
8
+ import { useLocale as O } from "../config-provider/hooks/use-locale.mjs";
9
+ import { useGlobalConfig as Q } from "../config-provider/hooks/use-global-config.mjs";
10
+ import { useNamespace as X } from "../config-provider/hooks/use-namespace.mjs";
11
+ import Y from "./ap-tag.vue.mjs";
12
+ const Z = /* @__PURE__ */ t("svg", {
10
13
  xmlns: "http://www.w3.org/2000/svg",
11
14
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
12
15
  fill: "none",
@@ -15,9 +18,9 @@ const I = /* @__PURE__ */ e("svg", {
15
18
  height: "16",
16
19
  viewBox: "0 0 16 16"
17
20
  }, [
18
- /* @__PURE__ */ e("defs", null, [
19
- /* @__PURE__ */ e("clipPath", { id: "master_svg0_1133_24991" }, [
20
- /* @__PURE__ */ e("rect", {
21
+ /* @__PURE__ */ t("defs", null, [
22
+ /* @__PURE__ */ t("clipPath", { id: "master_svg0_1133_24991" }, [
23
+ /* @__PURE__ */ t("rect", {
21
24
  x: "0",
22
25
  y: "0",
23
26
  width: "16",
@@ -26,9 +29,9 @@ const I = /* @__PURE__ */ e("svg", {
26
29
  })
27
30
  ])
28
31
  ]),
29
- /* @__PURE__ */ e("g", { "clip-path": "url(#master_svg0_1133_24991)" }, [
30
- /* @__PURE__ */ e("g", null, [
31
- /* @__PURE__ */ e("ellipse", {
32
+ /* @__PURE__ */ t("g", { "clip-path": "url(#master_svg0_1133_24991)" }, [
33
+ /* @__PURE__ */ t("g", null, [
34
+ /* @__PURE__ */ t("ellipse", {
32
35
  cx: "8",
33
36
  cy: "8",
34
37
  rx: "1",
@@ -37,8 +40,8 @@ const I = /* @__PURE__ */ e("svg", {
37
40
  "fill-opacity": "1"
38
41
  })
39
42
  ]),
40
- /* @__PURE__ */ e("g", null, [
41
- /* @__PURE__ */ e("ellipse", {
43
+ /* @__PURE__ */ t("g", null, [
44
+ /* @__PURE__ */ t("ellipse", {
42
45
  cx: "3.25",
43
46
  cy: "8",
44
47
  rx: "1",
@@ -47,8 +50,8 @@ const I = /* @__PURE__ */ e("svg", {
47
50
  "fill-opacity": "1"
48
51
  })
49
52
  ]),
50
- /* @__PURE__ */ e("g", null, [
51
- /* @__PURE__ */ e("ellipse", {
53
+ /* @__PURE__ */ t("g", null, [
54
+ /* @__PURE__ */ t("ellipse", {
52
55
  cx: "12.75",
53
56
  cy: "8",
54
57
  rx: "1",
@@ -58,80 +61,97 @@ const I = /* @__PURE__ */ e("svg", {
58
61
  })
59
62
  ])
60
63
  ])
61
- ], -1), O = /* @__PURE__ */ z({
64
+ ], -1), pe = /* @__PURE__ */ N({
62
65
  __name: "ap-tag-group",
63
66
  props: {
64
67
  list: { default: () => [] },
65
68
  space: { default: 4 },
66
- ellipsisColor: { default: "#34B77C" }
69
+ ellipsisColor: {},
70
+ ellipsis: { default: () => ({}) }
67
71
  },
68
- setup(_) {
69
- const r = _, { b: x } = $("tag-group"), a = p(), h = m(() => l(o) < r.list.length), C = m(() => r.list.slice(0, l(o))), o = p(0), c = p(0), u = p(r.list.length), k = m(() => r.list.map((t) => t.text).join("、")), B = m(() => [x()].filter(Boolean)), i = () => {
70
- if (!a.value)
72
+ setup(T) {
73
+ const { t: V } = O(), l = T, z = Q("uiMode"), { b: L, bm: x } = X("tag-group"), c = v(), r = s(() => ({
74
+ ...{
75
+ iconColor: "#34B77C",
76
+ symbol: "icon",
77
+ text: V("ap.common.more")
78
+ },
79
+ ...l.ellipsis
80
+ })), M = s(() => r.value.tooltip && typeof r.value.tooltip == "object" ? K(r.value.tooltip, ["trigger", "title"]) : {}), d = s(() => o(n) < l.list.length), $ = s(() => l.list.slice(0, o(n))), n = v(0), p = v(0), m = v(l.list.length), W = s(() => l.list.map((e) => e.text).join("、")), A = s(() => [L()].filter(Boolean)), D = s(() => z.value === "aplus" ? [x("ellipsis-text", "aplus")] : [x("ellipsis-text", "admin")]), f = () => {
81
+ if (!c.value)
71
82
  return;
72
- const t = a.value.scrollWidth, n = a.value.clientWidth;
73
- if (l(c) <= l(u)) {
74
- const s = Math.floor((l(c) + l(u)) / 2);
75
- t <= n ? (o.value = s, c.value = s + 1) : u.value = s - 1, g(() => {
76
- requestAnimationFrame(i);
83
+ const e = c.value.scrollWidth, i = c.value.clientWidth;
84
+ if (o(p) <= o(m)) {
85
+ const a = Math.floor((o(p) + o(m)) / 2);
86
+ e <= i ? (n.value = a, p.value = a + 1) : m.value = a - 1, g(() => {
87
+ requestAnimationFrame(f);
77
88
  });
78
89
  } else
79
- t > n && (o.value = o.value - 1, g(() => {
80
- requestAnimationFrame(i);
90
+ e > i && (n.value = n.value - 1, g(() => {
91
+ requestAnimationFrame(f);
81
92
  }));
82
- }, d = () => {
83
- c.value = 0, u.value = r.list.length, o.value = 0;
93
+ }, w = () => {
94
+ p.value = 0, m.value = l.list.length, n.value = 0;
84
95
  };
85
- return L(
86
- () => r.list,
87
- (t, n) => {
88
- t !== n && (d(), g(() => i()));
96
+ P(
97
+ () => l.list,
98
+ (e, i) => {
99
+ e !== i && (w(), g(() => f()));
89
100
  },
90
101
  {
91
102
  immediate: !0
92
103
  }
93
- ), W(() => {
94
- window.addEventListener("resize", () => {
95
- d(), i();
96
- });
97
- }), b(() => {
98
- window.removeEventListener("resize", () => {
99
- d(), i();
100
- });
101
- }), (t, n) => (f(), v(l(P), {
102
- title: k.value,
103
- trigger: "hover"
104
- }, {
104
+ );
105
+ const C = () => {
106
+ w(), f();
107
+ };
108
+ return S(() => {
109
+ [["ellipsisColor", "ellipse.color"]].forEach(([e, i]) => {
110
+ l[e] && console.error(
111
+ `[ApTagGroup]: \`${e}\` is deprecated, please use \`${i}\` instead.`
112
+ );
113
+ }), window.addEventListener("resize", C);
114
+ }), j(() => {
115
+ window.removeEventListener("resize", C);
116
+ }), (e, i) => (u(), h(o(H), _({ trigger: "hover" }, M.value), {
117
+ title: y(() => [
118
+ q(e.$slots, "tooltip", { tags: e.list }, () => [
119
+ G(k(W.value), 1)
120
+ ])
121
+ ]),
105
122
  default: y(() => [
106
- e("div", {
107
- class: F(B.value),
123
+ t("div", {
124
+ class: b(A.value),
108
125
  ref_key: "container",
109
- ref: a,
110
- style: w({
111
- pointerEvents: h.value ? "auto" : "none"
126
+ ref: c,
127
+ style: E({
128
+ pointerEvents: d.value ? "auto" : "none"
112
129
  })
113
130
  }, [
114
- (f(!0), N(T, null, q(C.value, (s, E) => (f(), v(j, A({ ref_for: !0 }, s, {
115
- key: E,
131
+ (u(!0), B(R, null, I($.value, (a, F) => (u(), h(Y, _({ ref_for: !0 }, a, {
132
+ key: F,
116
133
  style: {
117
- marginRight: `${t.space}px`
134
+ marginRight: `${e.space}px`
118
135
  }
119
136
  }), null, 16, ["style"]))), 128)),
120
- h.value ? (f(), v(l(V), {
137
+ d.value && r.value.symbol === "icon" ? (u(), h(o(J), {
121
138
  key: 0,
122
- style: w({ color: t.ellipsisColor })
139
+ style: E({ color: e.ellipsisColor || r.value.iconColor })
123
140
  }, {
124
141
  component: y(() => [
125
- I
142
+ Z
126
143
  ]),
127
144
  _: 1
128
- }, 8, ["style"])) : M("", !0)
145
+ }, 8, ["style"])) : d.value && r.value.symbol === "text" ? (u(), B("span", {
146
+ key: 1,
147
+ class: b(D.value)
148
+ }, k(r.value.text), 3)) : U("", !0)
129
149
  ], 6)
130
150
  ]),
131
- _: 1
132
- }, 8, ["title"]));
151
+ _: 3
152
+ }, 16));
133
153
  }
134
154
  });
135
155
  export {
136
- O as default
156
+ pe as default
137
157
  };
@@ -1,3 +1,5 @@
1
+ import { TooltipProps } from 'ant-design-vue/es/tooltip';
2
+
1
3
  export interface ApTagProps {
2
4
  /**
3
5
  * 标签内容
@@ -17,6 +19,27 @@ export interface ApTagProps {
17
19
  */
18
20
  disabled?: boolean;
19
21
  }
22
+ export type EllipsisProps = {
23
+ /**
24
+ * 省略号标志
25
+ * @default 'icon' - 内置图标不能自定义
26
+ * @type 'icon' | 'text'
27
+ */
28
+ symbol?: 'icon' | 'text';
29
+ /**
30
+ * 省略号文本 - symbol为text时生效
31
+ */
32
+ text?: string;
33
+ /**
34
+ * 省略号颜色 - symbol为icon时生效
35
+ * @default #34B77C
36
+ */
37
+ iconColor?: string;
38
+ /**
39
+ * 省略号气泡内容
40
+ */
41
+ tooltip?: Omit<TooltipProps, 'trigger' | 'title'>;
42
+ };
20
43
  export interface ApTagGroupProps {
21
44
  /**
22
45
  * 标签组内容
@@ -32,4 +55,5 @@ export interface ApTagGroupProps {
32
55
  * @default #34B77C
33
56
  */
34
57
  ellipsisColor?: string;
58
+ ellipsis?: EllipsisProps;
35
59
  }
@@ -5,3 +5,11 @@
5
5
  white-space: nowrap;
6
6
  align-items: center;
7
7
  }
8
+ .aplus-tag-group-ellipsis-text--admin {
9
+ font-size: 12px;
10
+ color: #1890FF;
11
+ }
12
+ .aplus-tag-group-ellipsis-text--aplus {
13
+ font-size: 12px;
14
+ color: #0070FF;
15
+ }
@@ -39,11 +39,15 @@
39
39
  }
40
40
  .aplus-ap-upload-multiple-file-admin .multiple-file-context .file-btn {
41
41
  border: 1px solid #d9d9d9;
42
+ color: #333333;
42
43
  }
43
44
  .aplus-ap-upload-multiple-file-admin .multiple-file-context .file-btn:hover {
44
45
  border-color: #34b77c;
45
46
  color: #34b77c;
46
47
  }
48
+ .aplus-ap-upload-multiple-file-admin .multiple-file-context .sub-title {
49
+ color: #999999;
50
+ }
47
51
  .aplus-ap-upload-multiple-file-admin .ant-upload-wrapper .ant-upload-list .ant-upload-list-item:hover {
48
52
  background: #fafafa;
49
53
  }
@@ -107,6 +107,6 @@
107
107
  .aplus-ap-upload-picture-admin .picture-context .picture-item {
108
108
  border: 1px solid #d9d9d9;
109
109
  }
110
- .aplus-ap-upload-picture-admin .picture-context .picture-title {
110
+ .aplus-ap-upload-picture-admin .picture-title {
111
111
  color: #999;
112
112
  }
@@ -20,16 +20,16 @@ export declare const BaseButton: {
20
20
  loading: {
21
21
  type: PropType<boolean>;
22
22
  };
23
+ iconSize: {
24
+ type: PropType<number>;
25
+ default: number;
26
+ };
23
27
  preIcon: {
24
28
  type: PropType<string>;
25
29
  };
26
30
  postIcon: {
27
31
  type: PropType<string>;
28
32
  };
29
- iconSize: {
30
- type: PropType<number>;
31
- default: number;
32
- };
33
33
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
34
34
  text: {
35
35
  type: PropType<string>;
@@ -46,16 +46,16 @@ export declare const BaseButton: {
46
46
  loading: {
47
47
  type: PropType<boolean>;
48
48
  };
49
+ iconSize: {
50
+ type: PropType<number>;
51
+ default: number;
52
+ };
49
53
  preIcon: {
50
54
  type: PropType<string>;
51
55
  };
52
56
  postIcon: {
53
57
  type: PropType<string>;
54
58
  };
55
- iconSize: {
56
- type: PropType<number>;
57
- default: number;
58
- };
59
59
  }>>, {
60
60
  iconSize: number;
61
61
  }, true, {}, {}, {
@@ -81,16 +81,16 @@ export declare const BaseButton: {
81
81
  loading: {
82
82
  type: PropType<boolean>;
83
83
  };
84
+ iconSize: {
85
+ type: PropType<number>;
86
+ default: number;
87
+ };
84
88
  preIcon: {
85
89
  type: PropType<string>;
86
90
  };
87
91
  postIcon: {
88
92
  type: PropType<string>;
89
93
  };
90
- iconSize: {
91
- type: PropType<number>;
92
- default: number;
93
- };
94
94
  }>>, {}, {}, {}, {}, {
95
95
  iconSize: number;
96
96
  }>;
@@ -113,16 +113,16 @@ export declare const BaseButton: {
113
113
  loading: {
114
114
  type: PropType<boolean>;
115
115
  };
116
+ iconSize: {
117
+ type: PropType<number>;
118
+ default: number;
119
+ };
116
120
  preIcon: {
117
121
  type: PropType<string>;
118
122
  };
119
123
  postIcon: {
120
124
  type: PropType<string>;
121
125
  };
122
- iconSize: {
123
- type: PropType<number>;
124
- default: number;
125
- };
126
126
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
127
127
  iconSize: number;
128
128
  }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
@@ -130,7 +130,7 @@ export declare const BaseButton: {
130
130
  icon?(_: {}): any;
131
131
  default?(_: any): any;
132
132
  };
133
- }) & Plugin<any[]> & (new (...args: any[]) => {
133
+ }) & Plugin & (new (...args: any[]) => {
134
134
  $props: {
135
135
  onClick?: (() => void) | undefined;
136
136
  };
@@ -131,7 +131,7 @@ export declare const BasicHelp: {
131
131
  fontSize: string;
132
132
  maxWidth: string;
133
133
  showIndex: boolean;
134
- }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin<any[]> & (new (...args: any[]) => {
134
+ }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
135
135
  $props: {
136
136
  onClick?: (() => void) | undefined;
137
137
  };
@@ -202,7 +202,7 @@ export declare const BasicTitle: {
202
202
  $slots: {
203
203
  default?(_: {}): any;
204
204
  };
205
- }) & Plugin<any[]> & (new (...args: any[]) => {
205
+ }) & Plugin & (new (...args: any[]) => {
206
206
  $props: {
207
207
  onClick?: (() => void) | undefined;
208
208
  };
@@ -271,7 +271,7 @@ export declare const BasicArrow: {
271
271
  inset: {
272
272
  type: PropType<boolean>;
273
273
  };
274
- }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin<any[]> & (new (...args: any[]) => {
274
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
275
275
  $props: {
276
276
  onClick?: (() => void) | undefined;
277
277
  };
@@ -145,7 +145,7 @@ export declare const ApTitle: {
145
145
  prefix?(_: {}): any;
146
146
  suffix?(_: {}): any;
147
147
  };
148
- }) & Plugin<any[]> & (new (...args: any[]) => {
148
+ }) & Plugin & (new (...args: any[]) => {
149
149
  $props: {
150
150
  onClick?: (() => void) | undefined;
151
151
  };
@@ -363,18 +363,12 @@ export declare const ApLabel: {
363
363
  size: {
364
364
  type: PropType<"default" | "small">;
365
365
  };
366
- status: {
367
- type: PropType<"success" | "error" | "default" | "warning" | "processing">;
368
- default: string;
369
- };
370
366
  offset: {
371
367
  type: PropType<[string | number, string | number]>;
372
368
  };
373
- dot: {
374
- type: PropType<boolean>;
375
- };
376
- helpMessage: {
377
- type: PropType<string>;
369
+ status: {
370
+ type: PropType<"success" | "error" | "default" | "warning" | "processing">;
371
+ default: string;
378
372
  };
379
373
  count: {
380
374
  type: PropType<any>;
@@ -385,12 +379,18 @@ export declare const ApLabel: {
385
379
  overflowCount: {
386
380
  type: PropType<number>;
387
381
  };
382
+ dot: {
383
+ type: PropType<boolean>;
384
+ };
388
385
  scrollNumberPrefixCls: {
389
386
  type: PropType<string>;
390
387
  };
391
388
  numberStyle: {
392
389
  type: PropType<CSSProperties>;
393
390
  };
391
+ helpMessage: {
392
+ type: PropType<string>;
393
+ };
394
394
  iconColor: {
395
395
  type: PropType<string>;
396
396
  required: true;
@@ -418,18 +418,12 @@ export declare const ApLabel: {
418
418
  size: {
419
419
  type: PropType<"default" | "small">;
420
420
  };
421
- status: {
422
- type: PropType<"success" | "error" | "default" | "warning" | "processing">;
423
- default: string;
424
- };
425
421
  offset: {
426
422
  type: PropType<[string | number, string | number]>;
427
423
  };
428
- dot: {
429
- type: PropType<boolean>;
430
- };
431
- helpMessage: {
432
- type: PropType<string>;
424
+ status: {
425
+ type: PropType<"success" | "error" | "default" | "warning" | "processing">;
426
+ default: string;
433
427
  };
434
428
  count: {
435
429
  type: PropType<any>;
@@ -440,12 +434,18 @@ export declare const ApLabel: {
440
434
  overflowCount: {
441
435
  type: PropType<number>;
442
436
  };
437
+ dot: {
438
+ type: PropType<boolean>;
439
+ };
443
440
  scrollNumberPrefixCls: {
444
441
  type: PropType<string>;
445
442
  };
446
443
  numberStyle: {
447
444
  type: PropType<CSSProperties>;
448
445
  };
446
+ helpMessage: {
447
+ type: PropType<string>;
448
+ };
449
449
  iconColor: {
450
450
  type: PropType<string>;
451
451
  required: true;
@@ -485,18 +485,12 @@ export declare const ApLabel: {
485
485
  size: {
486
486
  type: PropType<"default" | "small">;
487
487
  };
488
- status: {
489
- type: PropType<"success" | "error" | "default" | "warning" | "processing">;
490
- default: string;
491
- };
492
488
  offset: {
493
489
  type: PropType<[string | number, string | number]>;
494
490
  };
495
- dot: {
496
- type: PropType<boolean>;
497
- };
498
- helpMessage: {
499
- type: PropType<string>;
491
+ status: {
492
+ type: PropType<"success" | "error" | "default" | "warning" | "processing">;
493
+ default: string;
500
494
  };
501
495
  count: {
502
496
  type: PropType<any>;
@@ -507,12 +501,18 @@ export declare const ApLabel: {
507
501
  overflowCount: {
508
502
  type: PropType<number>;
509
503
  };
504
+ dot: {
505
+ type: PropType<boolean>;
506
+ };
510
507
  scrollNumberPrefixCls: {
511
508
  type: PropType<string>;
512
509
  };
513
510
  numberStyle: {
514
511
  type: PropType<CSSProperties>;
515
512
  };
513
+ helpMessage: {
514
+ type: PropType<string>;
515
+ };
516
516
  iconColor: {
517
517
  type: PropType<string>;
518
518
  required: true;
@@ -549,18 +549,12 @@ export declare const ApLabel: {
549
549
  size: {
550
550
  type: PropType<"default" | "small">;
551
551
  };
552
- status: {
553
- type: PropType<"success" | "error" | "default" | "warning" | "processing">;
554
- default: string;
555
- };
556
552
  offset: {
557
553
  type: PropType<[string | number, string | number]>;
558
554
  };
559
- dot: {
560
- type: PropType<boolean>;
561
- };
562
- helpMessage: {
563
- type: PropType<string>;
555
+ status: {
556
+ type: PropType<"success" | "error" | "default" | "warning" | "processing">;
557
+ default: string;
564
558
  };
565
559
  count: {
566
560
  type: PropType<any>;
@@ -571,12 +565,18 @@ export declare const ApLabel: {
571
565
  overflowCount: {
572
566
  type: PropType<number>;
573
567
  };
568
+ dot: {
569
+ type: PropType<boolean>;
570
+ };
574
571
  scrollNumberPrefixCls: {
575
572
  type: PropType<string>;
576
573
  };
577
574
  numberStyle: {
578
575
  type: PropType<CSSProperties>;
579
576
  };
577
+ helpMessage: {
578
+ type: PropType<string>;
579
+ };
580
580
  iconColor: {
581
581
  type: PropType<string>;
582
582
  required: true;
@@ -587,7 +587,7 @@ export declare const ApLabel: {
587
587
  placement: TooltipPlacement;
588
588
  status: "success" | "error" | "default" | "warning" | "processing";
589
589
  iconColor: string;
590
- }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin<any[]> & (new (...args: any[]) => {
590
+ }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
591
591
  $props: {
592
592
  onClick?: (() => void) | undefined;
593
593
  };
@@ -696,7 +696,7 @@ export declare const ApStatus: {
696
696
  color: string;
697
697
  padding: number;
698
698
  show: boolean;
699
- }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin<any[]> & (new (...args: any[]) => {
699
+ }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
700
700
  $props: {
701
701
  onClick?: (() => void) | undefined;
702
702
  };
@@ -834,7 +834,7 @@ export declare const ApStatusGroup: {
834
834
  statusList: Required<Pick< ApStatusProps, "text" | "color"> & {
835
835
  value: string | number;
836
836
  }>[] | null;
837
- }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin<any[]> & (new (...args: any[]) => {
837
+ }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
838
838
  $props: {
839
839
  onClick?: (() => void) | undefined;
840
840
  };
@@ -43,7 +43,7 @@ export declare const Button: {
43
43
  $slots: {
44
44
  default?(_: {}): any;
45
45
  };
46
- }) & Plugin<any[]> & (new (...args: any[]) => {
46
+ }) & Plugin & (new (...args: any[]) => {
47
47
  $props: {
48
48
  onClick?: (() => void) | undefined;
49
49
  };