@aplus-frontend/ui 7.0.0-beta.1 → 7.0.0-beta.3

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 (143) hide show
  1. package/es/index.mjs +216 -218
  2. package/es/src/ag-grid/editable/form-item.vue.mjs +68 -63
  3. package/es/src/ag-grid/editable/index.vue.mjs +66 -61
  4. package/es/src/ag-grid/editable/interface.d.ts +3 -1
  5. package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +65 -63
  6. package/es/src/ag-grid/style/index.d.ts +28 -1
  7. package/es/src/ag-grid/style/index.mjs +56 -43
  8. package/es/src/ag-grid/theme.mjs +12 -11
  9. package/es/src/ap-action/item/index.vue2.mjs +14 -12
  10. package/es/src/ap-action/style/dropdown-item.mjs +4 -4
  11. package/es/src/ap-action/style/index.d.ts +5 -2
  12. package/es/src/ap-action/style/index.mjs +29 -23
  13. package/es/src/ap-button/ap-button.vue.mjs +45 -49
  14. package/es/src/ap-button/style/index.mjs +5 -4
  15. package/es/src/ap-download/hooks/useStyle.mjs +9 -9
  16. package/es/src/ap-form/style/item.d.ts +1 -2
  17. package/es/src/ap-form/style/item.mjs +12 -16
  18. package/es/src/ap-form/style/modal-form.d.ts +2 -1
  19. package/es/src/ap-form/style/modal-form.mjs +26 -13
  20. package/es/src/ap-form/style/search-form-sorter.d.ts +2 -1
  21. package/es/src/ap-form/style/search-form-sorter.mjs +20 -13
  22. package/es/src/ap-form/style/token.d.ts +25 -1
  23. package/es/src/ap-grid/hooks/use-table-style.mjs +1 -1
  24. package/es/src/ap-grid/index.vue.mjs +2 -2
  25. package/es/src/ap-grid/style/index.d.ts +4 -1
  26. package/es/src/ap-grid/style/index.mjs +10 -7
  27. package/es/src/ap-table/ap-table.vue2.mjs +2 -2
  28. package/es/src/ap-table/utils.mjs +14 -11
  29. package/es/src/ap-tag/ap-tag.vue.mjs +7 -6
  30. package/es/src/business/ap-appendix/style/index.d.ts +3 -2
  31. package/es/src/business/ap-appendix/style/index.mjs +19 -16
  32. package/es/src/business/ap-appendix/style/token.d.ts +4 -0
  33. package/es/src/business/ap-appendix/style/token.mjs +6 -0
  34. package/es/src/business/ap-attachment/ApAttachment.mjs +73 -73
  35. package/es/src/business/ap-attachment/style/index.mjs +1 -0
  36. package/es/src/business/ap-batch-action/style/index.mjs +3 -3
  37. package/es/src/business/ap-radio-group/style/index.mjs +3 -3
  38. package/es/src/business/ap-view/style/index.mjs +18 -21
  39. package/es/src/business/batch-input-group/style/index.d.ts +3 -0
  40. package/es/src/business/batch-input-group/style/index.mjs +9 -5
  41. package/es/src/check-card/style/index.mjs +37 -31
  42. package/es/src/config-provider/config-provider.d.ts +1 -2
  43. package/es/src/config-provider/hooks/use-global-config.d.ts +1 -2
  44. package/es/src/config-provider/hooks/use-global-config.mjs +42 -33
  45. package/es/src/config-provider/hooks/use-token.d.ts +7 -2
  46. package/es/src/config-provider/hooks/use-token.mjs +6 -3
  47. package/es/src/config-provider/index.d.ts +1 -2
  48. package/es/src/design-token/constants.d.ts +1 -6
  49. package/es/src/design-token/constants.mjs +2 -100
  50. package/es/src/design-token/index.d.ts +1 -1
  51. package/es/src/design-token/index.mjs +5 -6
  52. package/es/src/design-token/interface.d.ts +9 -1
  53. package/es/src/design-token/interface.mjs +1 -0
  54. package/es/src/full-screen/index.vue.mjs +31 -30
  55. package/es/src/index.mjs +196 -198
  56. package/es/src/mask/style/index.mjs +2 -2
  57. package/es/src/scroll-bar/style/index.mjs +17 -17
  58. package/es/src/splitter/style/index.d.ts +9 -1
  59. package/es/src/splitter/style/index.mjs +1 -2
  60. package/es/src/text/style/index.d.ts +4 -1
  61. package/es/src/text/style/index.mjs +22 -18
  62. package/es/src/utils/cssinjs/index.d.ts +1 -5
  63. package/es/src/utils/cssinjs/index.mjs +49 -39
  64. package/es/src/utils/cssinjs/instance.mjs +7 -7
  65. package/es/src/utils/cssinjs/plugin-append-cssvar.d.ts +6 -0
  66. package/es/src/utils/cssinjs/plugin-append-cssvar.mjs +6 -0
  67. package/es/src/utils/cssinjs/utils.d.ts +6 -0
  68. package/es/src/utils/cssinjs/utils.mjs +15 -0
  69. package/es/src/version.d.ts +1 -1
  70. package/es/src/version.mjs +1 -1
  71. package/lib/index.js +1 -1
  72. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  73. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  74. package/lib/src/ag-grid/editable/interface.d.ts +3 -1
  75. package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
  76. package/lib/src/ag-grid/style/index.d.ts +28 -1
  77. package/lib/src/ag-grid/style/index.js +1 -1
  78. package/lib/src/ag-grid/theme.js +1 -1
  79. package/lib/src/ap-action/item/index.vue2.js +1 -1
  80. package/lib/src/ap-action/style/dropdown-item.js +1 -1
  81. package/lib/src/ap-action/style/index.d.ts +5 -2
  82. package/lib/src/ap-action/style/index.js +1 -1
  83. package/lib/src/ap-button/ap-button.vue.js +1 -1
  84. package/lib/src/ap-button/style/index.js +1 -1
  85. package/lib/src/ap-download/hooks/useStyle.js +1 -1
  86. package/lib/src/ap-form/style/item.d.ts +1 -2
  87. package/lib/src/ap-form/style/item.js +1 -1
  88. package/lib/src/ap-form/style/modal-form.d.ts +2 -1
  89. package/lib/src/ap-form/style/modal-form.js +1 -1
  90. package/lib/src/ap-form/style/search-form-sorter.d.ts +2 -1
  91. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  92. package/lib/src/ap-form/style/token.d.ts +25 -1
  93. package/lib/src/ap-grid/hooks/use-table-style.js +1 -1
  94. package/lib/src/ap-grid/index.vue.js +1 -1
  95. package/lib/src/ap-grid/style/index.d.ts +4 -1
  96. package/lib/src/ap-grid/style/index.js +1 -1
  97. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  98. package/lib/src/ap-table/utils.js +1 -1
  99. package/lib/src/ap-tag/ap-tag.vue.js +1 -1
  100. package/lib/src/business/ap-appendix/style/index.d.ts +3 -2
  101. package/lib/src/business/ap-appendix/style/index.js +1 -1
  102. package/lib/src/business/ap-appendix/style/token.d.ts +4 -0
  103. package/lib/src/business/ap-appendix/style/token.js +1 -0
  104. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  105. package/lib/src/business/ap-attachment/style/index.js +1 -1
  106. package/lib/src/business/ap-batch-action/style/index.js +1 -1
  107. package/lib/src/business/ap-radio-group/style/index.js +1 -1
  108. package/lib/src/business/ap-view/style/index.js +1 -1
  109. package/lib/src/business/batch-input-group/style/index.d.ts +3 -0
  110. package/lib/src/business/batch-input-group/style/index.js +1 -1
  111. package/lib/src/check-card/style/index.js +1 -1
  112. package/lib/src/config-provider/config-provider.d.ts +1 -2
  113. package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -2
  114. package/lib/src/config-provider/hooks/use-global-config.js +1 -1
  115. package/lib/src/config-provider/hooks/use-token.d.ts +7 -2
  116. package/lib/src/config-provider/hooks/use-token.js +1 -1
  117. package/lib/src/config-provider/index.d.ts +1 -2
  118. package/lib/src/design-token/constants.d.ts +1 -6
  119. package/lib/src/design-token/constants.js +1 -1
  120. package/lib/src/design-token/index.d.ts +1 -1
  121. package/lib/src/design-token/index.js +1 -1
  122. package/lib/src/design-token/interface.d.ts +9 -1
  123. package/lib/src/design-token/interface.js +1 -0
  124. package/lib/src/full-screen/index.vue.js +1 -1
  125. package/lib/src/index.js +1 -1
  126. package/lib/src/mask/style/index.js +2 -2
  127. package/lib/src/scroll-bar/style/index.js +1 -1
  128. package/lib/src/splitter/style/index.d.ts +9 -1
  129. package/lib/src/splitter/style/index.js +1 -1
  130. package/lib/src/text/style/index.d.ts +4 -1
  131. package/lib/src/text/style/index.js +1 -1
  132. package/lib/src/utils/cssinjs/index.d.ts +1 -5
  133. package/lib/src/utils/cssinjs/index.js +1 -1
  134. package/lib/src/utils/cssinjs/instance.js +1 -1
  135. package/lib/src/utils/cssinjs/plugin-append-cssvar.d.ts +6 -0
  136. package/lib/src/utils/cssinjs/plugin-append-cssvar.js +1 -0
  137. package/lib/src/utils/cssinjs/utils.d.ts +6 -0
  138. package/lib/src/utils/cssinjs/utils.js +1 -0
  139. package/lib/src/version.d.ts +1 -1
  140. package/lib/src/version.js +1 -1
  141. package/package.json +1 -1
  142. package/es/src/utils/cssinjs/plugin-specificity.mjs +0 -13
  143. package/lib/src/utils/cssinjs/plugin-specificity.js +0 -1
@@ -1,8 +1,8 @@
1
- import { genComponentStyleHook as t } from "../../utils/cssinjs/index.mjs";
2
- const r = (n) => {
3
- const { componentCls: a, namespace: e } = n;
1
+ import { genComponentStyleHook as a } from "../../utils/cssinjs/index.mjs";
2
+ const i = (n) => {
3
+ const { componentCls: e, namespace: t } = n;
4
4
  return {
5
- [a]: {
5
+ [e]: {
6
6
  // bordered
7
7
  "&--bordered": {
8
8
  boxSizing: "border-box",
@@ -12,7 +12,7 @@ const r = (n) => {
12
12
  ".ant-input-affix-wrapper": {
13
13
  padding: 0
14
14
  },
15
- [`&:has(.${e}-batch-input-group):has(.ant-select)`]: {
15
+ [`&:has(.${t}-batch-input-group):has(.ant-select)`]: {
16
16
  ".ant-input-affix-wrapper": {
17
17
  paddingInlineEnd: n.space
18
18
  }
@@ -81,9 +81,9 @@ const r = (n) => {
81
81
  },
82
82
  "&:focus": {
83
83
  borderColor: n.activeColorBase,
84
- boxShadow: `0 0 0 2px ${n.apFormBorderedShadowColor}`
84
+ boxShadow: "0 0 0 2px rgba(5, 155, 255, 0.1)"
85
85
  },
86
- [`.${e}-batch-input-group-popover-input__popover`]: {
86
+ [`.${t}-batch-input-group-popover-input__popover`]: {
87
87
  width: "calc(100% + 12px)"
88
88
  }
89
89
  },
@@ -97,12 +97,12 @@ const r = (n) => {
97
97
  // focus
98
98
  "&--focused": {
99
99
  borderColor: n.activeColorBase,
100
- boxShadow: `0 0 0 2px ${n.apFormBorderedShadowColor}`
100
+ boxShadow: "0 0 0 2px rgba(5, 155, 255, 0.1)"
101
101
  },
102
102
  // other
103
103
  ".ant-form-show-help": {
104
104
  ".ant-form-item-explain-error": {
105
- fontsize: n.fontSize,
105
+ fontSize: n.fontSize,
106
106
  lineHeight: "16px"
107
107
  }
108
108
  },
@@ -124,12 +124,8 @@ const r = (n) => {
124
124
  }
125
125
  }
126
126
  };
127
- }, i = t(
128
- "ApForm",
129
- (n) => [r(n)],
130
- { apFormBorderedShadowColor: "rgba(5, 155, 255, 0.1)" }
131
- );
127
+ }, o = a("ApForm", (n) => [i(n)]);
132
128
  export {
133
- i as default,
134
- r as genApFormItemStyle
129
+ o as default,
130
+ i as genApFormItemStyle
135
131
  };
@@ -1,5 +1,6 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
+ import { ApFormToken } from './token';
2
3
  import { Ref } from 'vue';
3
- export declare const genModalFormStyle: GenStyleFunc;
4
+ export declare const genModalFormStyle: GenStyleFunc<ApFormToken>;
4
5
  declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
5
6
  export default _default;
@@ -1,32 +1,45 @@
1
- import { genComponentStyleHook as n } from "../../utils/cssinjs/index.mjs";
2
- const e = (t) => {
3
- const { componentCls: o } = t;
1
+ import { genComponentStyleHook as d } from "../../utils/cssinjs/index.mjs";
2
+ const e = (o) => {
3
+ const { componentCls: a } = o;
4
4
  return {
5
- [o]: {
5
+ [a]: {
6
6
  ".ant-modal-content": {
7
7
  padding: 0
8
8
  },
9
9
  ".ant-modal-header": {
10
- padding: "15px 20px",
10
+ paddingInline: o.apFormModalHeaderPaddingInline,
11
+ paddingBlock: o.apFormModalHeaderPaddingBlock,
11
12
  borderBottom: "1px solid #E9EDF3",
12
13
  marginBottom: 0
13
14
  },
14
- [`${o}__content`]: {
15
- padding: "20px 20px 0px"
15
+ [`${a}__content`]: {
16
+ padding: o.apFormModalContentPadding
16
17
  },
17
- [`${o}__footer`]: {
18
- padding: "12px 20px"
18
+ [`${a}__footer`]: {
19
+ padding: o.apFormModalFooterPadding
19
20
  },
20
- [`${o}__footer-admin`]: {
21
+ [`${a}__footer-admin`]: {
21
22
  borderTop: "1px solid #E9EDF3"
22
23
  },
23
24
  ".ant-modal-close": {
24
- top: "16px"
25
+ top: `calc(${o.apFormModalHeaderPaddingBlock} - (${o.apFormModalCloseSize} - 22px) / 2)`,
26
+ width: o.apFormModalCloseSize,
27
+ height: o.apFormModalCloseSize
25
28
  }
26
29
  }
27
30
  };
28
- }, d = n("ApForm.Modal", (t) => [e(t)]);
31
+ }, r = d(
32
+ "ApForm.Modal",
33
+ (o) => [e(o)],
34
+ {
35
+ apFormModalHeaderPaddingInline: 20,
36
+ apFormModalHeaderPaddingBlock: 15,
37
+ apFormModalContentPadding: "20px 20px 0px",
38
+ apFormModalFooterPadding: "12px 20px",
39
+ apFormModalCloseSize: 32
40
+ }
41
+ );
29
42
  export {
30
- d as default,
43
+ r as default,
31
44
  e as genModalFormStyle
32
45
  };
@@ -1,5 +1,6 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
+ import { ApFormToken } from './token';
2
3
  import { Ref } from 'vue';
3
- export declare const genSearchFormSorter: GenStyleFunc;
4
+ export declare const genSearchFormSorter: GenStyleFunc<ApFormToken>;
4
5
  declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
5
6
  export default _default;
@@ -1,12 +1,12 @@
1
1
  import { resetComponent as e } from "../../style/index.mjs";
2
- import { genComponentStyleHook as i } from "../../utils/cssinjs/index.mjs";
3
- import { genPopoverStyle as p } from "./search-form.mjs";
4
- const a = (r) => {
2
+ import { genComponentStyleHook as a } from "../../utils/cssinjs/index.mjs";
3
+ import { genPopoverStyle as t } from "./search-form.mjs";
4
+ const i = (r) => {
5
5
  const { componentCls: o } = r;
6
6
  return {
7
7
  [o]: {
8
8
  [`${o}-content`]: {
9
- width: "560px"
9
+ width: r.searchFormSorterWidth
10
10
  },
11
11
  [`${o}-header`]: {
12
12
  padding: `${r.spaceXL} ${r.spaceXL} 0px`,
@@ -23,7 +23,7 @@ const a = (r) => {
23
23
  },
24
24
  "&-action-wrapper": {
25
25
  padding: r.space,
26
- margin: `calc(-${r.space})`,
26
+ margin: `calc(-1 * ${r.space})`,
27
27
  cursor: "pointer"
28
28
  },
29
29
  "&-reset-btn": {
@@ -35,14 +35,14 @@ const a = (r) => {
35
35
  display: "flex",
36
36
  flexDirection: "row",
37
37
  flexWrap: "wrap",
38
- marginInlineStart: "-4px",
39
- marginInlineEnd: "-4px",
40
- rowGap: "8px"
38
+ marginInlineStart: `calc(${r.searchFormSorterItemGap} / -2)`,
39
+ marginInlineEnd: `calc(${r.searchFormSorterItemGap} / -2)`,
40
+ rowGap: r.searchFormSorterItemGap
41
41
  },
42
42
  [`${o}-sorter-item`]: {
43
43
  flex: "0 0 33.333333%",
44
44
  maxWidth: "33.333333%",
45
- paddingInline: r.spaceXS,
45
+ paddingInline: `calc(${r.searchFormSorterItemGap} / 2)`,
46
46
  "> div": {
47
47
  border: `1px solid ${r.colorBg1}`,
48
48
  borderRadius: r.borderRadius,
@@ -72,10 +72,17 @@ const a = (r) => {
72
72
  textOverflow: "ellipsis"
73
73
  }
74
74
  },
75
- ...p(r)
75
+ ...t(r)
76
76
  };
77
- }, c = i("ApForm.SearchFormSorter", (r) => [a(r)]);
77
+ }, s = a(
78
+ "ApForm.SearchFormSorter",
79
+ (r) => [i(r)],
80
+ {
81
+ searchFormSorterWidth: 560,
82
+ searchFormSorterItemGap: 8
83
+ }
84
+ );
78
85
  export {
79
- c as default,
80
- a as genSearchFormSorter
86
+ s as default,
87
+ i as genSearchFormSorter
81
88
  };
@@ -1,3 +1,27 @@
1
1
  export type ApFormToken = {
2
- apFormBorderedShadowColor: string;
2
+ /**
3
+ * 对话框表单头部边距
4
+ */
5
+ apFormModalHeaderPaddingInline: number;
6
+ apFormModalHeaderPaddingBlock: number;
7
+ /**
8
+ * 对话框表单内容区边距
9
+ */
10
+ apFormModalContentPadding: string | number;
11
+ /**
12
+ * 对话框表单底部Footer区域边距
13
+ */
14
+ apFormModalFooterPadding: string | number;
15
+ /**
16
+ * 关闭按钮的尺寸
17
+ */
18
+ apFormModalCloseSize: number;
19
+ /**
20
+ * 查询表单排序弹框宽度
21
+ */
22
+ searchFormSorterWidth: number;
23
+ /**
24
+ * 查询表单排序元素间距
25
+ */
26
+ searchFormSorterItemGap: number;
3
27
  };
@@ -8,7 +8,7 @@ const x = () => {
8
8
  "--vxe-ui-table-row-checkbox-checked-background-color": e.controlItemBgActive,
9
9
  "--vxe-ui-table-row-hover-checkbox-checked-background-color": e.controlItemBgActiveHover,
10
10
  "--vxe-ui-font-primary-color": e.colorPrimary,
11
- "--vxe-ui-table-header-background-color": "var(--ap-table-header-bg)",
11
+ "--vxe-ui-table-header-background-color": "var(--table-header-bg)",
12
12
  "--vxe-ui-table-cell-padding-default": "12px",
13
13
  "--vxe-ui-table-cell-padding-medium": "9px",
14
14
  "--vxe-ui-table-row-height-medium": "36px",
@@ -535,8 +535,8 @@ const lo = /* @__PURE__ */ Je({
535
535
  direction: "horizontal",
536
536
  "scroll-container": Re.value,
537
537
  "extra-size": -4.2,
538
- "bar-color": "var(--ap-scrollbar-thumb-color-base)",
539
- "track-color": "var(--ap-table-header-bg, #f2f6f9)"
538
+ "bar-color": "var(--scrollbar-thumb-color-base)",
539
+ "track-color": "var(--table-header-bg, #f2f6f9)"
540
540
  }, null, 8, ["scroll-container"])) : y("", !0),
541
541
  e.pagination !== !1 ? (s(), d(t(pt), S({
542
542
  key: 1,
@@ -1,5 +1,8 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
2
  import { Ref } from 'vue';
3
- export declare const genApGridStyle: GenStyleFunc;
3
+ export type ApGridToken = {
4
+ apGridFixedScrollingBoxShadowColor: string;
5
+ };
6
+ export declare const genApGridStyle: GenStyleFunc<ApGridToken>;
4
7
  declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
5
8
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { genSettingTriggerBtnStyle as r } from "../../ap-table/style/index.mjs";
2
- import { multiRows as o, resetScrollbar as p } from "../../style/index.mjs";
3
- import { genComponentStyleHook as d } from "../../utils/cssinjs/index.mjs";
2
+ import { multiRows as o, resetScrollbar as d } from "../../style/index.mjs";
3
+ import { genComponentStyleHook as p } from "../../utils/cssinjs/index.mjs";
4
4
  import { aplusApGridIconFont as c } from "./font.mjs";
5
5
  const g = (e) => {
6
6
  const { componentCls: i, namespace: t } = e, l = `${i}-vxe-wrapper`, a = `${i}-pagination-wrapper`, n = `.${t}-scroll-bar`;
@@ -8,7 +8,7 @@ const g = (e) => {
8
8
  c,
9
9
  {
10
10
  [i]: {
11
- ...p(e),
11
+ ...d(e),
12
12
  ".vxe-table--render-default.size--medium .vxe-body--column.is--padding div.vxe-cell": {
13
13
  minHeight: "unset !important",
14
14
  padding: "9px 12px",
@@ -152,7 +152,6 @@ const g = (e) => {
152
152
  "&__title": {
153
153
  ...o(e),
154
154
  fontWeight: "bold",
155
- textAlign: "right",
156
155
  "&--single": {
157
156
  flex: "unset"
158
157
  }
@@ -209,9 +208,13 @@ const g = (e) => {
209
208
  }
210
209
  }
211
210
  ];
212
- }, m = d("ApGrid", (e) => [
213
- g(e)
214
- ]);
211
+ }, m = p(
212
+ "ApGrid",
213
+ (e) => [g(e)],
214
+ {
215
+ apGridFixedScrollingBoxShadowColor: "#dae0e7"
216
+ }
217
+ );
215
218
  export {
216
219
  m as default,
217
220
  g as genApGridStyle
@@ -485,8 +485,8 @@ const Mr = /* @__PURE__ */ De({
485
485
  ref: R,
486
486
  "scroll-container": D.value?.table?.scrollBodyRef,
487
487
  direction: "horizontal",
488
- "bar-color": "var(--ap-scrollbar-thumb-color-base)",
489
- "track-color": "var(--ap-table-header-bg, #f2f6f9)"
488
+ "bar-color": "var(--scrollbar-thumb-color-base)",
489
+ "track-color": "var(--table-header-bg, #f2f6f9)"
490
490
  }, null, 8, ["scroll-container"])]),
491
491
  key: "0"
492
492
  } : void 0, ne(o(ue)(g, ["title", "searchFormExtra", "headerCell", "summary"]), (t, d) => ({
@@ -1,11 +1,11 @@
1
1
  import { isVNode as T, createVNode as s, mergeProps as a, cloneVNode as h, createTextVNode as C, Fragment as j } from "vue";
2
- import { isObject as d, isArray as u, isUndefined as E, isFunction as g, omit as O, isBoolean as v, isString as x, isEqual as F, sortBy as m, isPlainObject as y, every as N, isEmpty as R } from "lodash-unified";
2
+ import { isObject as d, isArray as u, isUndefined as x, isFunction as g, omit as E, isBoolean as O, isString as v, isEqual as F, sortBy as m, isPlainObject as y, every as N, isEmpty as R } from "lodash-unified";
3
3
  import { apTableRenderItemMap as P, apTableFormItemMap as S } from "./constants.mjs";
4
4
  import { isType as I } from "@fruits-chain/utils";
5
5
  import "../ap-form/index.mjs";
6
- import { Tooltip as V } from "@aplus-frontend/antdv";
7
- import { QuestionCircleOutlined as w } from "@ant-design/icons-vue";
8
- import A from "../ap-form/item/index.vue.mjs";
6
+ import { Tooltip as A } from "@aplus-frontend/antdv";
7
+ import { QuestionCircleOutlined as V } from "@ant-design/icons-vue";
8
+ import w from "../ap-form/item/index.vue.mjs";
9
9
  function M(e) {
10
10
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !T(e);
11
11
  }
@@ -72,7 +72,7 @@ const W = (e) => {
72
72
  });
73
73
  }
74
74
  }), t;
75
- }, X = (e) => E(e) || e < 0 ? 0 : e;
75
+ }, X = (e) => x(e) || e < 0 ? 0 : e;
76
76
  function B(e, t) {
77
77
  return !e || !g(e) ? e : e(t);
78
78
  }
@@ -104,7 +104,7 @@ function ee(e, t) {
104
104
  const o = t?.[e.valueType];
105
105
  return () => {
106
106
  const r = o?.renderFormItem?.(e.fieldProps.field);
107
- return r ? s(A, a(e.fieldProps, {
107
+ return r ? s(w, a(e.fieldProps, {
108
108
  span: e.span
109
109
  }), M(r) ? r : {
110
110
  default: () => [r]
@@ -118,7 +118,7 @@ function te(e, t) {
118
118
  value: i ? t.index + 1 : t.value
119
119
  };
120
120
  return e.valueEnum && (o.valueEnum = e.valueEnum), {
121
- ...O(o, ["request"]),
121
+ ...E(o, ["request"]),
122
122
  ...f
123
123
  };
124
124
  }
@@ -126,7 +126,7 @@ function ne(e) {
126
126
  const t = {
127
127
  ...e
128
128
  };
129
- return v(e.filters) && e.filters && e.valueEnum && (t.filters = b(e.valueEnum)), t;
129
+ return O(e.filters) && e.filters && e.valueEnum && (t.filters = b(e.valueEnum)), t;
130
130
  }
131
131
  function re(e, t) {
132
132
  const n = t || {};
@@ -151,8 +151,11 @@ function ie(e, t, n, o) {
151
151
  }), i = r?.filter((l) => l.type !== Symbol.for("v-cmt")) || [];
152
152
  if (r && i.length > 0)
153
153
  return r;
154
- const c = x(e.title) ? s("span", {
154
+ const c = v(e.title) ? s("span", {
155
155
  class: t,
156
+ style: {
157
+ textAlign: e.align || "left"
158
+ },
156
159
  title: e.title
157
160
  }, [e._requireMark ? s("span", {
158
161
  style: {
@@ -166,12 +169,12 @@ function ie(e, t, n, o) {
166
169
  alignItems: "center",
167
170
  maxWidth: "100%"
168
171
  }
169
- }, [c, s(V, {
172
+ }, [c, s(A, {
170
173
  title: p,
171
174
  placement: "bottom",
172
175
  getPopupContainer: (l) => l.closest(".ant-table") || l.closest(".ant-modal") || l.closest(".vxe-table") || document.body
173
176
  }, {
174
- default: () => [s(w, {
177
+ default: () => [s(V, {
175
178
  style: {
176
179
  paddingInline: "4px",
177
180
  color: o,
@@ -15,7 +15,7 @@ const k = ["title"], G = /* @__PURE__ */ $({
15
15
  fixedWidth: { type: Boolean, default: !1 }
16
16
  },
17
17
  setup(o) {
18
- const e = o, l = I("uiMode"), { b: r, bm: a } = W("tag"), c = z("tag");
18
+ const e = o, l = I("uiMode"), { b: a, bm: r } = W("tag"), c = z("tag");
19
19
  function s(t, p) {
20
20
  t.length === 4 && (t = `#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`);
21
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");
@@ -26,13 +26,14 @@ const k = ["title"], G = /* @__PURE__ */ $({
26
26
  "--tag-main-color-opacity": s(e.color, 0.06),
27
27
  "--tag-main-color-background": s(e.color, 0.15)
28
28
  })), u = n(() => [
29
- r("wrapper"),
30
- r(`wrapper-${e.type}`),
31
- a("wrapper", e.size),
29
+ a(),
30
+ a("wrapper"),
31
+ a(`wrapper-${e.type}`),
32
+ r("wrapper", e.size),
32
33
  c.value
33
34
  ].filter(Boolean)), m = n(() => {
34
- const t = [r("inner-wrapper"), a("inner-wrapper", e.size)];
35
- return e.disabled && (l.value === "aplus" ? t.push(a("inner-wrapper", "disabled")) : t.push(a("inner-wrapper", "disabled-admin"))), t;
35
+ 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;
36
37
  });
37
38
  return (t, p) => (w(), b("span", {
38
39
  style: B(d.value),
@@ -1,5 +1,6 @@
1
- import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
1
+ import { GenStyleFunc } from '../../../design-token/interface';
2
+ import { AppendixToken } from './token';
2
3
  import { Ref } from 'vue';
3
- export declare const genProCardStyle: GenStyleFunc<BaseToken>;
4
+ export declare const genProCardStyle: GenStyleFunc<AppendixToken>;
4
5
  declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
5
6
  export default _default;
@@ -1,6 +1,7 @@
1
- import { genComponentStyleHook as n } from "../../../utils/cssinjs/index.mjs";
1
+ import { genComponentStyleHook as e } from "../../../utils/cssinjs/index.mjs";
2
+ import { defaultToken as n } from "./token.mjs";
2
3
  const r = (o) => {
3
- const { componentCls: t } = o, e = `${t}__file-area`;
4
+ const { componentCls: t } = o;
4
5
  return {
5
6
  [t]: {
6
7
  [`${t}__suffix`]: {
@@ -13,17 +14,17 @@ const r = (o) => {
13
14
  padding: 0,
14
15
  height: "min-content"
15
16
  },
16
- [e]: {
17
+ [`${t}__file-area`]: {
17
18
  marginTop: "12px",
18
- [`${e}--border`]: {
19
- border: "1px dashed var(--ap-border-color-base)",
19
+ "&--border": {
20
+ border: `1px dashed ${o.borderColorBase}`,
20
21
  padding: "12px",
21
22
  borderRadius: "4px"
22
23
  },
23
- [`${e}-content`]: {
24
+ "&-content": {
24
25
  display: "grid",
25
26
  gap: "16px 80px",
26
- gridTemplateColumns: "var(--ap-appendix-column,repeat(2, 1fr))",
27
+ gridTemplateColumns: o.apAppendixColumn,
27
28
  "&-item": {
28
29
  overflow: "hidden",
29
30
  userSelect: "none",
@@ -38,7 +39,7 @@ const r = (o) => {
38
39
  marginRight: "8px",
39
40
  svg: {
40
41
  width: "16px",
41
- color: "var(--ap-text-color-4)"
42
+ color: o.textColor4
42
43
  }
43
44
  },
44
45
  "&-file-name": {
@@ -50,13 +51,13 @@ const r = (o) => {
50
51
  ".ant-typography": {
51
52
  fontSize: o.fontSize,
52
53
  lineHeight: o.lineHeight,
53
- color: "var(--ap-text-color-2)",
54
+ color: o.textColor2,
54
55
  transition: "color 0.2s"
55
56
  }
56
57
  },
57
58
  "&-content:hover": {
58
59
  ".ant-typography": {
59
- color: "var(--ap-color-link)"
60
+ color: o.colorLink
60
61
  }
61
62
  },
62
63
  "&--loading": {
@@ -64,11 +65,11 @@ const r = (o) => {
64
65
  cursor: "not-allowed"
65
66
  },
66
67
  ".ant-typography": {
67
- color: "var(--ap-text-color-4)"
68
+ color: o.textColor4
68
69
  },
69
70
  "&-content:hover": {
70
71
  ".ant-typography": {
71
- color: "var(--ap-text-color-4)"
72
+ color: o.textColor4
72
73
  }
73
74
  }
74
75
  }
@@ -85,10 +86,12 @@ const r = (o) => {
85
86
  }
86
87
  }
87
88
  };
88
- }, i = n("ApAppendix", (o) => [
89
- r(o)
90
- ]);
89
+ }, l = e(
90
+ "ApAppendix",
91
+ (o) => [r(o)],
92
+ n
93
+ );
91
94
  export {
92
- i as default,
95
+ l as default,
93
96
  r as genProCardStyle
94
97
  };
@@ -0,0 +1,4 @@
1
+ export type AppendixToken = {
2
+ apAppendixColumn: string;
3
+ };
4
+ export declare const defaultToken: AppendixToken;
@@ -0,0 +1,6 @@
1
+ const e = {
2
+ apAppendixColumn: "repeat(2, 1fr)"
3
+ };
4
+ export {
5
+ e as defaultToken
6
+ };