@aplus-frontend/ui 7.0.0 → 7.1.0

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 (156) hide show
  1. package/es/index.mjs +108 -106
  2. package/es/src/ag-grid/style/custom-header.mjs +1 -1
  3. package/es/src/ag-grid/style/index.mjs +0 -1
  4. package/es/src/ap-action/item-dropdown/index.vue.mjs +12 -12
  5. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +39 -39
  6. package/es/src/ap-descriptions/style/index.mjs +16 -43
  7. package/es/src/ap-download/ap-download.vue.mjs +43 -43
  8. package/es/src/ap-download/hooks/useStyle.d.ts +1 -1
  9. package/es/src/ap-download/hooks/useStyle.mjs +17 -14
  10. package/es/src/ap-download/style/index.mjs +6 -13
  11. package/es/src/ap-form/modal-form/index.vue.mjs +59 -60
  12. package/es/src/ap-form/style/item.mjs +5 -4
  13. package/es/src/ap-form/style/modal-form.mjs +11 -12
  14. package/es/src/ap-form/style/search-form-sorter.mjs +31 -27
  15. package/es/src/ap-form/style/token.d.ts +8 -0
  16. package/es/src/ap-grid/style/index.mjs +3 -3
  17. package/es/src/ap-pro-card/style/statistic.mjs +3 -3
  18. package/es/src/ap-pro-card/style/token.mjs +1 -1
  19. package/es/src/ap-table/style/index.mjs +2 -2
  20. package/es/src/ap-table/style/setting.mjs +2 -2
  21. package/es/src/ap-tag/ap-tag-group.vue.mjs +61 -61
  22. package/es/src/ap-tag/ap-tag.vue.mjs +19 -20
  23. package/es/src/ap-tag/style/group.mjs +2 -8
  24. package/es/src/ap-tag/style/index.mjs +14 -23
  25. package/es/src/ap-upload/apUpload.vue.mjs +42 -41
  26. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +60 -61
  27. package/es/src/ap-upload/components/Picture.vue2.mjs +90 -91
  28. package/es/src/ap-upload/components/SingleFile.vue2.mjs +72 -72
  29. package/es/src/ap-upload/style/multiple-file.mjs +13 -40
  30. package/es/src/ap-upload/style/picture.mjs +12 -30
  31. package/es/src/ap-upload/style/single-file.mjs +5 -16
  32. package/es/src/business/ag-grid-modal/interface.d.ts +1 -1
  33. package/es/src/business/ag-grid-modal/wrapper/index.vue.d.ts +6 -2
  34. package/es/src/business/ag-grid-modal/wrapper/index.vue2.mjs +29 -12
  35. package/es/src/business/ap-appendix/style/index.mjs +1 -1
  36. package/es/src/business/ap-attachment/ApAttachment.mjs +42 -39
  37. package/es/src/business/ap-copy/style/index.mjs +1 -1
  38. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +45 -46
  39. package/es/src/business/ap-ladder/ApLadder.mjs +20 -22
  40. package/es/src/business/ap-ladder/style/index.mjs +11 -39
  41. package/es/src/business/ap-product-info/ApProductInfo.mjs +21 -22
  42. package/es/src/business/ap-product-info/style/index.mjs +8 -24
  43. package/es/src/business/ap-radio-group/style/index.mjs +1 -1
  44. package/es/src/business/ap-size-input/ApSizeInput.d.ts +20 -4
  45. package/es/src/business/ap-size-input/ApSizeInput.mjs +37 -40
  46. package/es/src/business/ap-size-input/constans.d.ts +10 -2
  47. package/es/src/business/ap-size-input/constans.mjs +9 -1
  48. package/es/src/business/ap-size-input/form-item.vue.d.ts +13 -0
  49. package/es/src/business/ap-size-input/form-item.vue.mjs +65 -0
  50. package/es/src/business/ap-size-input/form-item.vue2.mjs +4 -0
  51. package/es/src/business/ap-size-input/index.d.ts +33 -8
  52. package/es/src/business/ap-size-input/index.mjs +3 -2
  53. package/es/src/business/ap-size-input/interface.d.ts +7 -0
  54. package/es/src/business/ap-size-input/style/index.mjs +2 -1
  55. package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +18 -19
  56. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +13 -13
  57. package/es/src/business/ap-title/style/index.mjs +1 -1
  58. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +38 -37
  59. package/es/src/business/ap-value-select-card/index.vue2.mjs +36 -37
  60. package/es/src/business/ap-value-select-card/style/index.mjs +7 -29
  61. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +61 -64
  62. package/es/src/business/ap-view/style/index.mjs +1 -1
  63. package/es/src/business/batch-input-group/style/index.mjs +1 -1
  64. package/es/src/check-card/style/index.mjs +46 -51
  65. package/es/src/config-provider/hooks/use-token.d.ts +2 -2
  66. package/es/src/design-token/constants.mjs +4 -2
  67. package/es/src/design-token/interface.d.ts +39 -19
  68. package/es/src/index.mjs +95 -93
  69. package/es/src/scroll-bar/style/index.mjs +12 -12
  70. package/es/src/splitter/style/index.mjs +6 -6
  71. package/es/src/style/index.mjs +1 -1
  72. package/es/src/text/style/index.mjs +1 -1
  73. package/es/src/utils/cssinjs/TokenUtil.d.ts +11 -0
  74. package/es/src/utils/cssinjs/TokenUtil.mjs +26 -0
  75. package/es/src/utils/cssinjs/index.d.ts +1 -1
  76. package/es/src/utils/cssinjs/index.mjs +51 -50
  77. package/es/src/version.d.ts +1 -1
  78. package/es/src/version.mjs +1 -1
  79. package/lib/index.js +1 -1
  80. package/lib/src/ag-grid/style/custom-header.js +1 -1
  81. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  82. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  83. package/lib/src/ap-descriptions/style/index.js +1 -1
  84. package/lib/src/ap-download/ap-download.vue.js +1 -1
  85. package/lib/src/ap-download/hooks/useStyle.d.ts +1 -1
  86. package/lib/src/ap-download/hooks/useStyle.js +1 -1
  87. package/lib/src/ap-download/style/index.js +1 -1
  88. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  89. package/lib/src/ap-form/style/item.js +1 -1
  90. package/lib/src/ap-form/style/modal-form.js +1 -1
  91. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  92. package/lib/src/ap-form/style/token.d.ts +8 -0
  93. package/lib/src/ap-grid/style/index.js +1 -1
  94. package/lib/src/ap-pro-card/style/statistic.js +1 -1
  95. package/lib/src/ap-pro-card/style/token.js +1 -1
  96. package/lib/src/ap-table/style/index.js +1 -1
  97. package/lib/src/ap-table/style/setting.js +1 -1
  98. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  99. package/lib/src/ap-tag/ap-tag.vue.js +1 -1
  100. package/lib/src/ap-tag/style/group.js +1 -1
  101. package/lib/src/ap-tag/style/index.js +1 -1
  102. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  103. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  104. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  105. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  106. package/lib/src/ap-upload/style/multiple-file.js +1 -1
  107. package/lib/src/ap-upload/style/picture.js +1 -1
  108. package/lib/src/ap-upload/style/single-file.js +1 -1
  109. package/lib/src/business/ag-grid-modal/interface.d.ts +1 -1
  110. package/lib/src/business/ag-grid-modal/wrapper/index.vue.d.ts +6 -2
  111. package/lib/src/business/ag-grid-modal/wrapper/index.vue2.js +1 -1
  112. package/lib/src/business/ap-appendix/style/index.js +1 -1
  113. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  114. package/lib/src/business/ap-copy/style/index.js +1 -1
  115. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  116. package/lib/src/business/ap-ladder/ApLadder.js +1 -1
  117. package/lib/src/business/ap-ladder/style/index.js +1 -1
  118. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  119. package/lib/src/business/ap-product-info/style/index.js +1 -1
  120. package/lib/src/business/ap-radio-group/style/index.js +1 -1
  121. package/lib/src/business/ap-size-input/ApSizeInput.d.ts +20 -4
  122. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
  123. package/lib/src/business/ap-size-input/constans.d.ts +10 -2
  124. package/lib/src/business/ap-size-input/constans.js +1 -1
  125. package/lib/src/business/ap-size-input/form-item.vue.d.ts +13 -0
  126. package/lib/src/business/ap-size-input/form-item.vue.js +1 -0
  127. package/lib/src/business/ap-size-input/form-item.vue2.js +1 -0
  128. package/lib/src/business/ap-size-input/index.d.ts +33 -8
  129. package/lib/src/business/ap-size-input/index.js +1 -1
  130. package/lib/src/business/ap-size-input/interface.d.ts +7 -0
  131. package/lib/src/business/ap-size-input/style/index.js +1 -1
  132. package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -1
  133. package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
  134. package/lib/src/business/ap-title/style/index.js +1 -1
  135. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  136. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  137. package/lib/src/business/ap-value-select-card/style/index.js +1 -1
  138. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  139. package/lib/src/business/ap-view/style/index.js +1 -1
  140. package/lib/src/business/batch-input-group/style/index.js +1 -1
  141. package/lib/src/check-card/style/index.js +1 -1
  142. package/lib/src/config-provider/hooks/use-token.d.ts +2 -2
  143. package/lib/src/design-token/constants.js +1 -1
  144. package/lib/src/design-token/interface.d.ts +39 -19
  145. package/lib/src/index.js +1 -1
  146. package/lib/src/scroll-bar/style/index.js +1 -1
  147. package/lib/src/splitter/style/index.js +1 -1
  148. package/lib/src/style/index.js +1 -1
  149. package/lib/src/text/style/index.js +1 -1
  150. package/lib/src/utils/cssinjs/TokenUtil.d.ts +11 -0
  151. package/lib/src/utils/cssinjs/TokenUtil.js +1 -0
  152. package/lib/src/utils/cssinjs/index.d.ts +1 -1
  153. package/lib/src/utils/cssinjs/index.js +1 -1
  154. package/lib/src/version.d.ts +1 -1
  155. package/lib/src/version.js +1 -1
  156. package/package.json +1 -1
@@ -1,48 +1,48 @@
1
- import { resetComponent as e } from "../../style/index.mjs";
2
- import { genComponentStyleHook as a } from "../../utils/cssinjs/index.mjs";
1
+ import { resetComponent as o } from "../../style/index.mjs";
2
+ import { genComponentStyleHook as i } from "../../utils/cssinjs/index.mjs";
3
3
  import { genPopoverStyle as t } from "./search-form.mjs";
4
- const i = (r) => {
5
- const { componentCls: o } = r;
4
+ const l = (r) => {
5
+ const { componentCls: e } = r, a = r.calc("100%").div(r.searchFormSorterCountPerRow).equal();
6
6
  return {
7
- [o]: {
8
- [`${o}-content`]: {
7
+ [e]: {
8
+ [`${e}-content`]: {
9
9
  width: r.searchFormSorterWidth
10
10
  },
11
- [`${o}-header`]: {
11
+ [`${e}-header`]: {
12
12
  padding: `${r.spaceXL} ${r.spaceXL} 0px`,
13
13
  "&-title": {
14
- ...e(r),
15
- color: r.textColor2,
14
+ ...o(r),
15
+ color: r.textColor1,
16
16
  fontWeight: 700,
17
17
  display: "inline-block",
18
18
  paddingBottom: r.spaceXS
19
19
  },
20
20
  "&-desc": {
21
- ...e(r),
21
+ ...o(r),
22
22
  color: r.textColor3
23
23
  },
24
24
  "&-action-wrapper": {
25
25
  padding: r.space,
26
- margin: `calc(-1 * ${r.space})`,
26
+ margin: r.calc(-1).mul(r.space).equal(),
27
27
  cursor: "pointer"
28
28
  },
29
29
  "&-reset-btn": {
30
- ...e(r),
30
+ ...o(r),
31
31
  color: r.colorLink
32
32
  }
33
33
  },
34
- [`${o}-sorter-wrapper`]: {
34
+ [`${e}-sorter-wrapper`]: {
35
35
  display: "flex",
36
36
  flexDirection: "row",
37
37
  flexWrap: "wrap",
38
- marginInlineStart: `calc(${r.searchFormSorterItemGap} / -2)`,
39
- marginInlineEnd: `calc(${r.searchFormSorterItemGap} / -2)`,
38
+ marginInlineStart: r.calc(r.searchFormSorterItemGap).div(-2).equal(),
39
+ marginInlineEnd: r.calc(r.searchFormSorterItemGap).div(-2).equal(),
40
40
  rowGap: r.searchFormSorterItemGap
41
41
  },
42
- [`${o}-sorter-item`]: {
43
- flex: "0 0 33.333333%",
44
- maxWidth: "33.333333%",
45
- paddingInline: `calc(${r.searchFormSorterItemGap} / 2)`,
42
+ [`${e}-sorter-item`]: {
43
+ flex: `0 0 ${a}`,
44
+ maxWidth: a,
45
+ paddingInline: r.calc(r.searchFormSorterItemGap).div(2).equal(),
46
46
  "> div": {
47
47
  border: `1px solid ${r.colorBg1}`,
48
48
  borderRadius: r.borderRadius,
@@ -62,10 +62,10 @@ const i = (r) => {
62
62
  display: "none"
63
63
  }
64
64
  },
65
- [`${o}-sorter-item-text`]: {
66
- ...e(r),
65
+ [`${e}-sorter-item-text`]: {
66
+ ...o(r),
67
67
  paddingInlineStart: r.spaceXS,
68
- color: r.textColor2,
68
+ color: r.textColor1,
69
69
  maxWidth: "100%",
70
70
  whiteSpace: "nowrap",
71
71
  overflow: "hidden",
@@ -74,15 +74,19 @@ const i = (r) => {
74
74
  },
75
75
  ...t(r)
76
76
  };
77
- }, s = a(
77
+ }, d = i(
78
78
  "ApForm.SearchFormSorter",
79
- (r) => [i(r)],
79
+ (r) => [l(r)],
80
80
  {
81
81
  searchFormSorterWidth: 560,
82
- searchFormSorterItemGap: 8
82
+ searchFormSorterItemGap: 8,
83
+ searchFormSorterCountPerRow: 3
84
+ },
85
+ {
86
+ skipUnit: ["searchFormSorterCountPerRow"]
83
87
  }
84
88
  );
85
89
  export {
86
- s as default,
87
- i as genSearchFormSorter
90
+ d as default,
91
+ l as genSearchFormSorter
88
92
  };
@@ -12,6 +12,10 @@ export type ApFormToken = {
12
12
  * 对话框表单底部Footer区域边距
13
13
  */
14
14
  apFormModalFooterPadding: string | number;
15
+ /**
16
+ * 对话框表单底部Footer上边框
17
+ */
18
+ apFormModalFooterBorderTop: string;
15
19
  /**
16
20
  * 关闭按钮的尺寸
17
21
  */
@@ -24,4 +28,8 @@ export type ApFormToken = {
24
28
  * 查询表单排序元素间距
25
29
  */
26
30
  searchFormSorterItemGap: number;
31
+ /**
32
+ * 查询表单排序每一行显示的元素
33
+ */
34
+ searchFormSorterCountPerRow: number;
27
35
  };
@@ -139,13 +139,13 @@ const g = (e) => {
139
139
  backgroundColor: "var(--vxe-ui-loading-background-color)"
140
140
  },
141
141
  [`${i}-pagination-count-text`]: {
142
- color: e.textColor2
142
+ color: e.textColor1
143
143
  },
144
144
  [`${i}-pagination--total-right`]: {
145
145
  paddingInlineStart: "12px"
146
146
  },
147
147
  [`${i}-pagination-total-wrapper`]: {
148
- color: e.textColor1
148
+ color: e.textColor2
149
149
  },
150
150
  // ApGrid中表格表头的样式
151
151
  [`${i}-table-header`]: {
@@ -203,7 +203,7 @@ const g = (e) => {
203
203
  },
204
204
  "div.vxe-cell--tree-btn > i": {
205
205
  fontSize: e.fontSizeSM,
206
- color: e.textColor2
206
+ color: e.textColor1
207
207
  }
208
208
  }
209
209
  }
@@ -51,7 +51,7 @@ const o = (t) => {
51
51
  marginTop: "4px"
52
52
  },
53
53
  ".ant-statistic-title": {
54
- color: t.textColor1,
54
+ color: t.textColor2,
55
55
  fontSize: t.fontSize,
56
56
  lineHeight: t.lineHeight,
57
57
  marginBlockEnd: "8px"
@@ -94,7 +94,7 @@ const o = (t) => {
94
94
  fontWeight: "500"
95
95
  },
96
96
  ".ant-statistic-content": {
97
- color: t.textColor2,
97
+ color: t.textColor1,
98
98
  fontSize: t.fontSize,
99
99
  lineHeight: t.lineHeight,
100
100
  fontWeight: "500"
@@ -111,7 +111,7 @@ const o = (t) => {
111
111
  fontWeight: "500"
112
112
  },
113
113
  ".ant-statistic-content": {
114
- color: t.textColor2,
114
+ color: t.textColor1,
115
115
  fontSize: t.fontSize,
116
116
  lineHeight: t.lineHeight,
117
117
  fontWeight: "500"
@@ -12,7 +12,7 @@ const r = {
12
12
  apProCardTooltipColor: "#8896b0",
13
13
  apProCardHeaderTitleFontSize: "12px",
14
14
  apProCardHeaderTitleFontColor: "#182948",
15
- apProCardAreaColor: "#f1f7ff",
15
+ apProCardAreaColor: "#f7f8fa",
16
16
  apProCardSplitLineHeight: "100%",
17
17
  apProCardDividerLineHeight: "60%"
18
18
  };
@@ -126,13 +126,13 @@ const r = (t) => ({
126
126
  marginBlockEnd: 0
127
127
  },
128
128
  "&-pagination-count-text": {
129
- color: t.textColor2
129
+ color: t.textColor1
130
130
  },
131
131
  "&-pagination--total-right": {
132
132
  paddingLeft: "12px"
133
133
  },
134
134
  "&-pagination-total-wrapper": {
135
- color: t.textColor1
135
+ color: t.textColor2
136
136
  },
137
137
  // ApTable的header区域
138
138
  [`${a}-header`]: {
@@ -16,7 +16,7 @@ const r = (e) => {
16
16
  [`.${l}-ap-grid-table-header__title`]: {
17
17
  ...n(e),
18
18
  fontWeight: "normal",
19
- color: e.textColor2
19
+ color: e.textColor1
20
20
  },
21
21
  [`.${l}-ag-grid-table-header__title`]: {
22
22
  ...n(e)
@@ -169,7 +169,7 @@ const r = (e) => {
169
169
  "&-title": {
170
170
  ...i(e),
171
171
  fontWeight: "bold",
172
- color: e.textColor2
172
+ color: e.textColor1
173
173
  }
174
174
  },
175
175
  "&-content": {
@@ -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
  };