@aplus-frontend/ui 7.0.1 → 7.1.1

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 (115) hide show
  1. package/es/src/ag-grid/hooks/use-columns-def.mjs +20 -19
  2. package/es/src/ag-grid/interface.d.ts +4 -0
  3. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +39 -39
  4. package/es/src/ap-descriptions/style/index.mjs +16 -43
  5. package/es/src/ap-download/ap-download.vue.mjs +43 -43
  6. package/es/src/ap-download/hooks/useStyle.d.ts +1 -1
  7. package/es/src/ap-download/hooks/useStyle.mjs +17 -14
  8. package/es/src/ap-download/style/index.mjs +6 -13
  9. package/es/src/ap-form/modal-form/index.vue.mjs +59 -60
  10. package/es/src/ap-form/style/modal-form.mjs +14 -15
  11. package/es/src/ap-form/style/search-form-sorter.mjs +26 -26
  12. package/es/src/ap-form/style/token.d.ts +4 -0
  13. package/es/src/ap-grid/style/index.mjs +3 -3
  14. package/es/src/ap-pro-card/style/statistic.mjs +3 -3
  15. package/es/src/ap-pro-card/style/token.mjs +1 -1
  16. package/es/src/ap-table/style/index.mjs +2 -2
  17. package/es/src/ap-table/style/setting.mjs +2 -2
  18. package/es/src/ap-tag/ap-tag-group.vue.mjs +61 -61
  19. package/es/src/ap-tag/ap-tag.vue.mjs +19 -20
  20. package/es/src/ap-tag/style/group.mjs +2 -8
  21. package/es/src/ap-tag/style/index.mjs +14 -23
  22. package/es/src/ap-upload/apUpload.vue.mjs +39 -39
  23. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +60 -61
  24. package/es/src/ap-upload/components/Picture.vue2.mjs +90 -91
  25. package/es/src/ap-upload/components/SingleFile.vue2.mjs +72 -72
  26. package/es/src/ap-upload/style/multiple-file.mjs +13 -40
  27. package/es/src/ap-upload/style/picture.mjs +12 -30
  28. package/es/src/ap-upload/style/single-file.mjs +5 -16
  29. package/es/src/business/ap-appendix/style/index.mjs +1 -1
  30. package/es/src/business/ap-attachment/ApAttachment.mjs +42 -39
  31. package/es/src/business/ap-copy/style/index.mjs +1 -1
  32. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +45 -46
  33. package/es/src/business/ap-ladder/ApLadder.mjs +20 -22
  34. package/es/src/business/ap-ladder/style/index.mjs +9 -34
  35. package/es/src/business/ap-product-info/ApProductInfo.mjs +21 -22
  36. package/es/src/business/ap-product-info/style/index.mjs +8 -24
  37. package/es/src/business/ap-radio-group/style/index.mjs +1 -1
  38. package/es/src/business/ap-size-input/ApSizeInput.mjs +1 -1
  39. package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +18 -19
  40. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +13 -13
  41. package/es/src/business/ap-title/style/index.mjs +12 -12
  42. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +38 -37
  43. package/es/src/business/ap-value-select-card/index.vue2.mjs +36 -37
  44. package/es/src/business/ap-value-select-card/style/index.mjs +7 -29
  45. package/es/src/business/batch-input-group/style/index.mjs +1 -1
  46. package/es/src/check-card/style/index.mjs +31 -31
  47. package/es/src/design-token/constants.mjs +4 -2
  48. package/es/src/design-token/interface.d.ts +36 -39
  49. package/es/src/scroll-bar/style/index.mjs +12 -12
  50. package/es/src/splitter/style/index.mjs +6 -6
  51. package/es/src/style/index.mjs +1 -1
  52. package/es/src/text/style/index.mjs +1 -1
  53. package/es/src/utils/cssinjs/TokenUtil.d.ts +11 -0
  54. package/es/src/utils/cssinjs/TokenUtil.mjs +26 -0
  55. package/es/src/utils/cssinjs/index.mjs +23 -22
  56. package/es/src/version.d.ts +1 -1
  57. package/es/src/version.mjs +1 -1
  58. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  59. package/lib/src/ag-grid/interface.d.ts +4 -0
  60. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  61. package/lib/src/ap-descriptions/style/index.js +1 -1
  62. package/lib/src/ap-download/ap-download.vue.js +1 -1
  63. package/lib/src/ap-download/hooks/useStyle.d.ts +1 -1
  64. package/lib/src/ap-download/hooks/useStyle.js +1 -1
  65. package/lib/src/ap-download/style/index.js +1 -1
  66. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  67. package/lib/src/ap-form/style/modal-form.js +1 -1
  68. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  69. package/lib/src/ap-form/style/token.d.ts +4 -0
  70. package/lib/src/ap-grid/style/index.js +1 -1
  71. package/lib/src/ap-pro-card/style/statistic.js +1 -1
  72. package/lib/src/ap-pro-card/style/token.js +1 -1
  73. package/lib/src/ap-table/style/index.js +1 -1
  74. package/lib/src/ap-table/style/setting.js +1 -1
  75. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  76. package/lib/src/ap-tag/ap-tag.vue.js +1 -1
  77. package/lib/src/ap-tag/style/group.js +1 -1
  78. package/lib/src/ap-tag/style/index.js +1 -1
  79. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  80. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  81. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  82. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  83. package/lib/src/ap-upload/style/multiple-file.js +1 -1
  84. package/lib/src/ap-upload/style/picture.js +1 -1
  85. package/lib/src/ap-upload/style/single-file.js +1 -1
  86. package/lib/src/business/ap-appendix/style/index.js +1 -1
  87. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  88. package/lib/src/business/ap-copy/style/index.js +1 -1
  89. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  90. package/lib/src/business/ap-ladder/ApLadder.js +1 -1
  91. package/lib/src/business/ap-ladder/style/index.js +1 -1
  92. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  93. package/lib/src/business/ap-product-info/style/index.js +1 -1
  94. package/lib/src/business/ap-radio-group/style/index.js +1 -1
  95. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
  96. package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -1
  97. package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
  98. package/lib/src/business/ap-title/style/index.js +1 -1
  99. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  100. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  101. package/lib/src/business/ap-value-select-card/style/index.js +1 -1
  102. package/lib/src/business/batch-input-group/style/index.js +1 -1
  103. package/lib/src/check-card/style/index.js +1 -1
  104. package/lib/src/design-token/constants.js +1 -1
  105. package/lib/src/design-token/interface.d.ts +36 -39
  106. package/lib/src/scroll-bar/style/index.js +1 -1
  107. package/lib/src/splitter/style/index.js +1 -1
  108. package/lib/src/style/index.js +1 -1
  109. package/lib/src/text/style/index.js +1 -1
  110. package/lib/src/utils/cssinjs/TokenUtil.d.ts +11 -0
  111. package/lib/src/utils/cssinjs/TokenUtil.js +1 -0
  112. package/lib/src/utils/cssinjs/index.js +1 -1
  113. package/lib/src/version.d.ts +1 -1
  114. package/lib/src/version.js +1 -1
  115. package/package.json +3 -3
@@ -1,19 +1,19 @@
1
- import { defineComponent as G, ref as C, computed as n, unref as f, watch as I, nextTick as L, onMounted as A, onUnmounted as F, createBlock as g, openBlock as a, mergeProps as w, withCtx as d, createElementVNode as t, normalizeStyle as b, normalizeClass as k, createElementBlock as _, createCommentVNode as U, Fragment as q, renderList as H, toDisplayString as W, renderSlot as J, createTextVNode as K } from "vue";
2
- import { Tooltip as O } from "@aplus-frontend/antdv";
3
- import Q from "@ant-design/icons-vue";
1
+ import { defineComponent as j, ref as x, computed as n, unref as p, watch as I, nextTick as L, onMounted as A, onUnmounted as F, createBlock as g, openBlock as a, mergeProps as w, withCtx as v, createElementVNode as t, normalizeStyle as C, normalizeClass as k, createElementBlock as _, createCommentVNode as G, Fragment as M, renderList as U, toDisplayString as b, renderSlot as q, createTextVNode as H } from "vue";
2
+ import { Tooltip as J } from "@aplus-frontend/antdv";
3
+ import K from "@ant-design/icons-vue";
4
4
  import "./ap-tag.vue2.mjs";
5
5
  import "../config-provider/index.mjs";
6
- import { omit as X } from "lodash-unified";
7
- import { getTextWidth as T } from "./utils.mjs";
6
+ import { omit as O } from "lodash-unified";
7
+ import { getTextWidth as W } from "./utils.mjs";
8
8
  import "../hooks/index.mjs";
9
- import { useDevWarning as Y } from "../utils/warning.mjs";
10
- import Z from "./style/group.mjs";
11
- import { useLocale as ee } from "../config-provider/hooks/use-locale.mjs";
12
- import { useGlobalConfig as te } from "../config-provider/hooks/use-global-config.mjs";
13
- import { useNamespace as le } from "../config-provider/hooks/use-namespace.mjs";
14
- import { useResize as oe } from "../hooks/useResize.mjs";
15
- import ie from "./ap-tag.vue.mjs";
16
- const we = /* @__PURE__ */ G({
9
+ import { useDevWarning as Q } from "../utils/warning.mjs";
10
+ import X from "./style/group.mjs";
11
+ import { useToken as Y } from "../config-provider/hooks/use-token.mjs";
12
+ import { useLocale as Z } from "../config-provider/hooks/use-locale.mjs";
13
+ import { useNamespace as ee } from "../config-provider/hooks/use-namespace.mjs";
14
+ import { useResize as te } from "../hooks/useResize.mjs";
15
+ import oe from "./ap-tag.vue.mjs";
16
+ const xe = /* @__PURE__ */ j({
17
17
  __name: "ap-tag-group",
18
18
  props: {
19
19
  list: { default: () => [] },
@@ -21,92 +21,92 @@ const we = /* @__PURE__ */ G({
21
21
  ellipsisColor: {},
22
22
  ellipsis: { default: () => ({}) }
23
23
  },
24
- setup(z) {
25
- const { t: V } = ee(), o = z, B = Y("ApTagGroup"), v = te("uiMode"), { b: E, bm: h } = le("tag-group"), D = Z("tag-group"), r = C(), { observe: M, unobserve: P } = oe(), i = n(() => ({
24
+ setup(T) {
25
+ const { t: z } = Z(), l = T, { token: V } = Y(), B = Q("ApTagGroup"), { b: d } = ee("tag-group"), E = X("tag-group"), i = x(), { observe: D, unobserve: P } = te(), r = n(() => ({
26
26
  ...{
27
- iconColor: v.value === "aplus" ? "#182948" : "#333",
27
+ iconColor: V.value?.textColor1,
28
28
  symbol: "icon",
29
- text: V("ap.common.more")
29
+ text: z("ap.common.more")
30
30
  },
31
- ...o.ellipsis
32
- })), S = n(() => i.value.tooltip && typeof i.value.tooltip == "object" ? X(i.value.tooltip, ["trigger", "title"]) : {}), p = n(() => f(c) < o.list.length), c = C(0), N = n(() => o.list.map((e) => e.text).join("、")), R = n(() => [E(), D.value].filter(Boolean)), $ = n(() => v.value === "aplus" ? [h("ellipsis-text", "aplus")] : [h("ellipsis-text", "admin")]), y = () => {
33
- let e = 0, l = 0;
34
- if (!r.value) return;
35
- const u = r.value.offsetWidth;
36
- for (let s of o.list) {
37
- const m = s.size === "small" ? 8 : 12, x = T(
31
+ ...l.ellipsis
32
+ })), S = n(() => r.value.tooltip && typeof r.value.tooltip == "object" ? O(r.value.tooltip, ["trigger", "title"]) : {}), c = n(() => p(m) < l.list.length), m = x(0), N = n(() => l.list.map((e) => e.text).join("、")), R = n(() => [d(), E.value].filter(Boolean)), h = () => {
33
+ let e = 0, o = 0;
34
+ if (!i.value) return;
35
+ const u = i.value.offsetWidth;
36
+ for (let s of l.list) {
37
+ const f = s.size === "small" ? 8 : 12, y = W(
38
38
  s.size === "large" ? 14 : 12,
39
39
  s.text
40
- ) + m + o.space;
41
- if (e += x, e > u) {
42
- e -= x;
40
+ ) + f + l.space;
41
+ if (e += y, e > u) {
42
+ e -= y;
43
43
  break;
44
44
  }
45
- l++;
45
+ o++;
46
46
  }
47
- if (l < o.list.length) {
48
- const m = T(12, i.value.text);
49
- o.ellipsis.symbol === "icon" ? e += 16 : e += m, e > u && l--;
47
+ if (o < l.list.length) {
48
+ const f = W(12, r.value.text);
49
+ l.ellipsis.symbol === "icon" ? e += 16 : e += f, e > u && o--;
50
50
  }
51
- c.value = l;
51
+ m.value = o;
52
52
  };
53
53
  I(
54
- () => o.list,
55
- (e, l) => {
56
- e !== l && L(() => {
57
- y();
54
+ () => l.list,
55
+ (e, o) => {
56
+ e !== o && L(() => {
57
+ h();
58
58
  });
59
59
  },
60
60
  {
61
61
  immediate: !0
62
62
  }
63
63
  );
64
- const j = () => {
65
- y();
64
+ const $ = () => {
65
+ h();
66
66
  };
67
67
  return A(() => {
68
68
  [["ellipsisColor", "ellipse.color"]].forEach(
69
- ([e, l]) => {
69
+ ([e, o]) => {
70
70
  B.deprecated(
71
- !o[e],
71
+ !l[e],
72
72
  e,
73
- l
73
+ o
74
74
  );
75
75
  }
76
- ), r.value && M(r.value, j);
76
+ ), i.value && D(i.value, $);
77
77
  }), F(() => {
78
- r.value && P(r.value);
79
- }), (e, l) => (a(), g(f(O), w({ trigger: "hover" }, S.value), {
80
- title: d(() => [
81
- J(e.$slots, "tooltip", { tags: e.list }, () => [
82
- K(W(N.value), 1)
78
+ i.value && P(i.value);
79
+ }), (e, o) => (a(), g(p(J), w({ trigger: "hover" }, S.value), {
80
+ title: v(() => [
81
+ q(e.$slots, "tooltip", { tags: e.list }, () => [
82
+ H(b(N.value), 1)
83
83
  ])
84
84
  ]),
85
- default: d(() => [
85
+ default: v(() => [
86
86
  t("div", {
87
87
  ref_key: "container",
88
- ref: r,
88
+ ref: i,
89
89
  class: k(R.value),
90
- style: b({
91
- pointerEvents: p.value ? "auto" : "none"
90
+ style: C({
91
+ pointerEvents: c.value ? "auto" : "none"
92
92
  // opacity: isUpdating ? '0' : '1'
93
93
  })
94
94
  }, [
95
- (a(!0), _(q, null, H(e.list, (u, s) => (a(), g(ie, w({ ref_for: !0 }, u, {
95
+ (a(!0), _(M, null, U(e.list, (u, s) => (a(), g(oe, w({ ref_for: !0 }, u, {
96
96
  key: s,
97
97
  style: {
98
- display: s >= c.value ? "none" : "inline-flex",
98
+ display: s >= m.value ? "none" : "inline-flex",
99
99
  marginRight: `${e.space}px`
100
100
  }
101
101
  }), null, 16, ["style"]))), 128)),
102
- p.value && i.value.symbol === "icon" ? (a(), g(f(Q), {
102
+ c.value && r.value.symbol === "icon" ? (a(), g(p(K), {
103
103
  key: 0,
104
- style: b({
105
- color: e.ellipsisColor || i.value.iconColor,
104
+ style: C({
105
+ color: e.ellipsisColor || r.value.iconColor,
106
106
  cursor: "pointer"
107
107
  })
108
108
  }, {
109
- component: d(() => l[0] || (l[0] = [
109
+ component: v(() => o[0] || (o[0] = [
110
110
  t("svg", {
111
111
  xmlns: "http://www.w3.org/2000/svg",
112
112
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
@@ -162,11 +162,11 @@ const we = /* @__PURE__ */ G({
162
162
  ], -1)
163
163
  ])),
164
164
  _: 1
165
- }, 8, ["style"])) : p.value && i.value.symbol === "text" ? (a(), _("span", {
165
+ }, 8, ["style"])) : c.value && r.value.symbol === "text" ? (a(), _("span", {
166
166
  key: 1,
167
- class: k($.value),
167
+ class: k(p(d)("ellipsis-text")),
168
168
  style: { cursor: "pointer" }
169
- }, W(i.value.text), 3)) : U("", !0)
169
+ }, b(r.value.text), 3)) : G("", !0)
170
170
  ], 6)
171
171
  ]),
172
172
  _: 3
@@ -174,5 +174,5 @@ const we = /* @__PURE__ */ G({
174
174
  }
175
175
  });
176
176
  export {
177
- we as default
177
+ xe as default
178
178
  };
@@ -1,9 +1,8 @@
1
- import { defineComponent as $, computed as n, createElementBlock as b, openBlock as w, normalizeClass as i, normalizeStyle as B, createElementVNode as _, toDisplayString as v } from "vue";
1
+ import { defineComponent as S, computed as n, createElementBlock as $, openBlock as b, normalizeClass as i, normalizeStyle as w, createElementVNode as B, toDisplayString as _ } from "vue";
2
2
  import "../config-provider/index.mjs";
3
3
  import z from "./style/index.mjs";
4
- import { useGlobalConfig as I } from "../config-provider/hooks/use-global-config.mjs";
5
- import { useNamespace as W } from "../config-provider/hooks/use-namespace.mjs";
6
- const k = ["title"], G = /* @__PURE__ */ $({
4
+ import { useNamespace as I } from "../config-provider/hooks/use-namespace.mjs";
5
+ const v = ["title"], A = /* @__PURE__ */ S({
7
6
  name: "ApTag",
8
7
  __name: "ap-tag",
9
8
  props: {
@@ -15,37 +14,37 @@ const k = ["title"], G = /* @__PURE__ */ $({
15
14
  fixedWidth: { type: Boolean, default: !1 }
16
15
  },
17
16
  setup(o) {
18
- const e = o, l = I("uiMode"), { b: a, bm: r } = W("tag"), c = z("tag");
17
+ const e = o, { b: a, bm: r } = I("tag"), l = z("tag");
19
18
  function s(t, p) {
20
19
  t.length === 4 && (t = `#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`);
21
- const f = parseInt(t.slice(1, 3), 16), g = parseInt(t.slice(3, 5), 16), y = parseInt(t.slice(5, 7), 16), S = Math.round(p * 255).toString(16).padStart(2, "0");
22
- return `#${f.toString(16).padStart(2, "0")}${g.toString(16).padStart(2, "0")}${y.toString(16).padStart(2, "0")}${S}`;
20
+ const m = parseInt(t.slice(1, 3), 16), f = parseInt(t.slice(3, 5), 16), g = parseInt(t.slice(5, 7), 16), y = Math.round(p * 255).toString(16).padStart(2, "0");
21
+ return `#${m.toString(16).padStart(2, "0")}${f.toString(16).padStart(2, "0")}${g.toString(16).padStart(2, "0")}${y}`;
23
22
  }
24
- const d = n(() => ({
23
+ const c = n(() => ({
25
24
  "--tag-main-color": e.color,
26
25
  "--tag-main-color-opacity": s(e.color, 0.06),
27
26
  "--tag-main-color-background": s(e.color, 0.15)
28
- })), u = n(() => [
27
+ })), d = n(() => [
29
28
  a(),
30
29
  a("wrapper"),
31
30
  a(`wrapper-${e.type}`),
32
31
  r("wrapper", e.size),
33
- c.value
34
- ].filter(Boolean)), m = n(() => {
32
+ l.value
33
+ ].filter(Boolean)), u = n(() => {
35
34
  const t = [a("inner-wrapper"), r("inner-wrapper", e.size)];
36
- return e.disabled && (l.value === "aplus" ? t.push(r("inner-wrapper", "disabled")) : t.push(r("inner-wrapper", "disabled-admin"))), t;
35
+ return e.disabled && t.push(r("inner-wrapper", "disabled")), t;
37
36
  });
38
- return (t, p) => (w(), b("span", {
39
- style: B(d.value),
37
+ return (t, p) => (b(), $("span", {
38
+ style: w(c.value),
40
39
  title: t.text,
41
- class: i(u.value)
40
+ class: i(d.value)
42
41
  }, [
43
- _("span", {
44
- class: i(m.value)
45
- }, v(t.text), 3)
46
- ], 14, k));
42
+ B("span", {
43
+ class: i(u.value)
44
+ }, _(t.text), 3)
45
+ ], 14, v));
47
46
  }
48
47
  });
49
48
  export {
50
- G as default
49
+ A as default
51
50
  };
@@ -9,14 +9,8 @@ const n = (e) => {
9
9
  whiteSpace: "nowrap",
10
10
  alignItems: "center",
11
11
  [`${o}-ellipsis-text`]: {
12
- "&--admin": {
13
- fontSize: e.fontSize,
14
- color: "#333"
15
- },
16
- "&--aplus": {
17
- fontSize: e.fontSize,
18
- color: "#182948"
19
- }
12
+ fontSize: e.fontSize,
13
+ color: e.textColor1
20
14
  }
21
15
  }
22
16
  };
@@ -1,13 +1,13 @@
1
1
  import { genComponentStyleHook as l } from "../../utils/cssinjs/index.mjs";
2
2
  const a = (o) => {
3
- const { componentCls: i } = o, e = `${i}-wrapper`, r = `${i}-inner-wrapper`;
3
+ const { componentCls: e } = o, r = `${e}-wrapper`, i = `${e}-inner-wrapper`;
4
4
  return {
5
- [e]: {
5
+ [r]: {
6
6
  textWrap: "nowrap",
7
7
  whiteSpace: "nowrap",
8
8
  display: "inline-flex",
9
9
  maxWidth: "100%",
10
- [r]: {
10
+ [i]: {
11
11
  borderRadius: o.borderRadius,
12
12
  boxSizing: "border-box",
13
13
  overflow: "hidden",
@@ -31,43 +31,34 @@ const a = (o) => {
31
31
  }
32
32
  }
33
33
  },
34
- [`${e}-purely`]: {
34
+ [`${r}-purely`]: {
35
35
  "& > *": {
36
36
  backgroundColor: "var(--tag-main-color-background)",
37
- color: o.textColor2
38
- },
39
- [`${r}--disabled`]: {
40
- backgroundColor: "rgba(#8896b0,0.15)"
37
+ color: o.textColor1
41
38
  },
42
- [`${r}--disabled-admin`]: {
43
- backgroundColor: "rgba(#333,0.15)"
39
+ [`${i}--disabled`]: {
40
+ backgroundColor: `color-mix(in srgb, ${o.textColor3} 15%, white)`
44
41
  }
45
42
  },
46
- [`${e}-border`]: {
43
+ [`${r}-border`]: {
47
44
  "& > *": {
48
45
  outline: "1px solid var(--tag-main-color)",
49
46
  outlineOffset: "-1px",
50
47
  backgroundColor: "var(--tag-main-color-opacity)",
51
48
  color: "var(--tag-main-color)"
52
49
  },
53
- [`${r}--disabled`]: {
54
- outline: "1px solid #DEE4ED",
50
+ [`${i}--disabled`]: {
51
+ outline: `1px solid ${o.borderColorBase}`,
55
52
  outlineOffset: "-1px",
56
- backgroundColor: "#526a900f",
57
- color: "#8896b0"
58
- },
59
- [`${r}--disabled-admin`]: {
60
- outline: "1px solid #d9d9d9",
61
- outlineOffset: "-1px",
62
- backgroundColor: "#9999990f",
63
- color: "#999"
53
+ backgroundColor: `color-mix(in srgb, ${o.textColor2} 6%, white)`,
54
+ color: o.textColor2
64
55
  }
65
56
  }
66
57
  };
67
- }, d = l("ApTag", (o) => [
58
+ }, n = l("ApTag", (o) => [
68
59
  a(o)
69
60
  ]);
70
61
  export {
71
- d as default,
62
+ n as default,
72
63
  a as genApTagStyle
73
64
  };
@@ -1,19 +1,19 @@
1
- import { defineComponent as U, ref as m, computed as c, provide as t, createElementBlock as O, openBlock as d, normalizeClass as R, unref as a, createBlock as z, resolveDynamicComponent as j, mergeProps as A, createSlots as $, renderList as k, withCtx as B, renderSlot as T, normalizeProps as w, guardReactiveProps as I } from "vue";
1
+ import { defineComponent as h, ref as m, computed as c, provide as t, createElementBlock as N, openBlock as d, normalizeClass as U, unref as a, createBlock as O, resolveDynamicComponent as R, mergeProps as z, createSlots as j, renderList as A, withCtx as $, renderSlot as k, normalizeProps as B, guardReactiveProps as T } from "vue";
2
2
  import "../config-provider/index.mjs";
3
3
  import "./components/SingleFile.vue.mjs";
4
4
  import "./components/MultipleFile.vue.mjs";
5
5
  import "./components/Picture.vue.mjs";
6
- import { injectLocaleToAccept as L } from "./utils/accept.mjs";
7
- import { injectLocaleToOss as q } from "./hooks/useOss.mjs";
8
- import { Form as P } from "@aplus-frontend/antdv";
9
- import V from "./style/index.mjs";
10
- import { useLocale as D } from "../config-provider/hooks/use-locale.mjs";
11
- import { useNamespace as G } from "../config-provider/hooks/use-namespace.mjs";
12
- import H from "./components/Picture.vue2.mjs";
13
- import J from "./components/MultipleFile.vue2.mjs";
14
- import K from "./components/SingleFile.vue2.mjs";
15
- import { useGlobalConfig as f } from "../config-provider/hooks/use-global-config.mjs";
16
- const Q = ["id"], ce = /* @__PURE__ */ U({
6
+ import { injectLocaleToAccept as w } from "./utils/accept.mjs";
7
+ import { injectLocaleToOss as I } from "./hooks/useOss.mjs";
8
+ import { Form as L } from "@aplus-frontend/antdv";
9
+ import q from "./style/index.mjs";
10
+ import { useLocale as P } from "../config-provider/hooks/use-locale.mjs";
11
+ import { useNamespace as V } from "../config-provider/hooks/use-namespace.mjs";
12
+ import D from "./components/Picture.vue2.mjs";
13
+ import G from "./components/MultipleFile.vue2.mjs";
14
+ import H from "./components/SingleFile.vue2.mjs";
15
+ import { useGlobalConfig as J } from "../config-provider/hooks/use-global-config.mjs";
16
+ const K = ["id"], me = /* @__PURE__ */ h({
17
17
  name: "AplusFileUpload",
18
18
  __name: "apUpload",
19
19
  props: {
@@ -91,22 +91,22 @@ const Q = ["id"], ce = /* @__PURE__ */ U({
91
91
  }
92
92
  },
93
93
  emits: ["update:value"],
94
- setup(g, { expose: v, emit: y }) {
95
- const { t: n, lang: C } = D();
96
- L(n), q(n, C);
97
- const { b: S } = G("ap-upload"), x = V("ap-upload"), s = m(null), e = g, b = y, M = {
98
- singleFile: K,
99
- multipleFile: J,
100
- picture: H
101
- }, i = P.useInjectFormItemContext(), h = c({
94
+ setup(f, { expose: g, emit: v }) {
95
+ const { t: n, lang: y } = P();
96
+ w(n), I(n, y);
97
+ const { b: C } = V("ap-upload"), S = q("ap-upload"), s = m(null), e = f, x = v, b = {
98
+ singleFile: H,
99
+ multipleFile: G,
100
+ picture: D
101
+ }, i = L.useInjectFormItemContext(), E = c({
102
102
  get() {
103
103
  return e.value;
104
104
  },
105
105
  set(o) {
106
- b("update:value", o), i?.onFieldChange(), e.onChange?.(o);
106
+ x("update:value", o), i?.onFieldChange(), e.onChange?.(o);
107
107
  }
108
- }), E = f("uiMode"), r = f("apUpload");
109
- t("theme", E.value), t("value", h), t("dirName", e.dirName ?? r.value?.dirName), t(
108
+ }), r = J("apUpload");
109
+ t("value", E), t("dirName", e.dirName ?? r.value?.dirName), t(
110
110
  "needName",
111
111
  e.needName ?? r.value?.needName ?? !1
112
112
  ), t("accept", e.accept ?? r.value?.accept ?? ""), t("maxSize", e.maxSize), t("title", e.title), t("subTitle", e.subTitle), t("maxCount", e.maxCount), t("beforeUpload", e.beforeUpload), t("customRequest", e.customRequest), t(
@@ -115,34 +115,34 @@ const Q = ["id"], ce = /* @__PURE__ */ U({
115
115
  ), t("maxSizeErrorMsg", e.maxSizeErrorMsg), t("maxCountErrorMsg", e.maxCountErrorMsg), t("acceptErrorMsg", e.acceptErrorMsg), t("onRemove", e.onRemove), t("showUploadErrorMsg", e.showUploadErrorMsg);
116
116
  const F = c(() => l.value === 0), l = m(0);
117
117
  t("uploadingCount", l);
118
- function _() {
119
- u(void 0);
118
+ function M() {
119
+ p(void 0);
120
120
  }
121
- function u(o) {
121
+ function p(o) {
122
122
  s?.value?.setValue?.(o);
123
123
  }
124
- return v({
124
+ return g({
125
125
  done: F,
126
- clear: _,
127
- setValue: u
128
- }), (o, W) => (d(), O("div", {
126
+ clear: M,
127
+ setValue: p
128
+ }), (o, Q) => (d(), N("div", {
129
129
  id: a(i)?.id.value,
130
- class: R([a(S)(), a(x)])
130
+ class: U([a(C)(), a(S)])
131
131
  }, [
132
- (d(), z(j(M[e.type]), A(o.$attrs, {
132
+ (d(), O(R(b[e.type]), z(o.$attrs, {
133
133
  ref_key: "uploadRef",
134
134
  ref: s
135
- }), $({ _: 2 }, [
136
- k(Object.keys(o.$slots), (p) => ({
137
- name: p,
138
- fn: B((N) => [
139
- T(o.$slots, p, w(I(N || {})))
135
+ }), j({ _: 2 }, [
136
+ A(Object.keys(o.$slots), (u) => ({
137
+ name: u,
138
+ fn: $((_) => [
139
+ k(o.$slots, u, B(T(_ || {})))
140
140
  ])
141
141
  }))
142
142
  ]), 1040))
143
- ], 10, Q));
143
+ ], 10, K));
144
144
  }
145
145
  });
146
146
  export {
147
- ce as default
147
+ me as default
148
148
  };