@aplus-frontend/ui 0.6.0-beta.11 → 0.6.0-beta.13

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 (204) hide show
  1. package/es/index.mjs +79 -77
  2. package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
  3. package/es/src/ap-field/hooks/use-date-timezone.mjs +17 -8
  4. package/es/src/ap-form/dependency/index.vue.mjs +29 -24
  5. package/es/src/ap-form/interface.d.ts +3 -3
  6. package/es/src/ap-form/item/index.vue.mjs +39 -35
  7. package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
  8. package/es/src/ap-grid/index.vue.mjs +2 -2
  9. package/es/src/ap-table/ap-table.vue2.mjs +17 -17
  10. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +41 -44
  11. package/es/src/ap-table/constants.d.ts +18 -18
  12. package/es/src/ap-table/utils.d.ts +18 -18
  13. package/es/src/business/ap-copy/ApCopy.d.ts +52 -0
  14. package/es/src/business/ap-copy/ApCopy.mjs +79 -0
  15. package/es/src/business/ap-copy/constans.d.ts +24 -0
  16. package/es/src/business/ap-copy/constans.mjs +25 -0
  17. package/es/src/business/ap-copy/index.d.ts +102 -0
  18. package/es/src/business/ap-copy/index.mjs +7 -0
  19. package/es/src/business/ap-copy/interface.d.ts +8 -0
  20. package/es/src/business/ap-copy/interface.mjs +1 -0
  21. package/es/src/business/ap-copy/style/css.d.ts +0 -0
  22. package/es/src/business/ap-copy/style/css.js +1 -0
  23. package/es/src/business/ap-copy/style/index.d.ts +0 -0
  24. package/es/src/business/ap-copy/style/index.js +1 -0
  25. package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  26. package/es/src/business/ap-product-info/ApProductInfo.mjs +53 -53
  27. package/es/src/business/ap-product-info/constans.d.ts +4 -0
  28. package/es/src/business/ap-product-info/constans.mjs +4 -0
  29. package/es/src/business/ap-product-info/index.d.ts +15 -0
  30. package/es/src/business/ap-product-info/interface.d.ts +1 -0
  31. package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +2 -0
  32. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +23 -23
  33. package/es/src/business/ap-radio-group/index.d.ts +5 -0
  34. package/es/src/business/hooks/usePageListApGrid.d.ts +0 -2
  35. package/es/src/business/hooks/usePageListApGrid.mjs +48 -65
  36. package/es/src/business/index.d.ts +1 -0
  37. package/es/src/business/index.mjs +20 -18
  38. package/es/src/components.d.ts +1 -0
  39. package/es/src/index.mjs +58 -56
  40. package/es/src/locale/lang/en.mjs +4 -0
  41. package/es/src/locale/lang/zh-cn.mjs +4 -0
  42. package/es/src/path-map.mjs +1 -0
  43. package/es/src/version.d.ts +1 -1
  44. package/es/src/version.mjs +1 -1
  45. package/es/test/setup.d.ts +5 -0
  46. package/lib/index.js +1 -1
  47. package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
  48. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  49. package/lib/src/ap-form/dependency/index.vue.js +1 -1
  50. package/lib/src/ap-form/interface.d.ts +3 -3
  51. package/lib/src/ap-form/item/index.vue.js +1 -1
  52. package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
  53. package/lib/src/ap-grid/index.vue.js +1 -1
  54. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  55. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  56. package/lib/src/ap-table/constants.d.ts +18 -18
  57. package/lib/src/ap-table/utils.d.ts +18 -18
  58. package/lib/src/business/ap-copy/ApCopy.d.ts +52 -0
  59. package/lib/src/business/ap-copy/ApCopy.js +1 -0
  60. package/lib/src/business/ap-copy/constans.d.ts +24 -0
  61. package/lib/src/business/ap-copy/constans.js +1 -0
  62. package/lib/src/business/ap-copy/index.d.ts +102 -0
  63. package/lib/src/business/ap-copy/index.js +1 -0
  64. package/lib/src/business/ap-copy/interface.d.ts +8 -0
  65. package/lib/src/business/ap-copy/interface.js +1 -0
  66. package/lib/src/business/ap-copy/style/css.cjs +1 -0
  67. package/lib/src/business/ap-copy/style/css.d.ts +0 -0
  68. package/lib/src/business/ap-copy/style/index.cjs +1 -0
  69. package/lib/src/business/ap-copy/style/index.d.ts +0 -0
  70. package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  71. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  72. package/lib/src/business/ap-product-info/constans.d.ts +4 -0
  73. package/lib/src/business/ap-product-info/constans.js +1 -1
  74. package/lib/src/business/ap-product-info/index.d.ts +15 -0
  75. package/lib/src/business/ap-product-info/interface.d.ts +1 -0
  76. package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +2 -0
  77. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
  78. package/lib/src/business/ap-radio-group/index.d.ts +5 -0
  79. package/lib/src/business/hooks/usePageListApGrid.d.ts +0 -2
  80. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  81. package/lib/src/business/index.d.ts +1 -0
  82. package/lib/src/business/index.js +1 -1
  83. package/lib/src/components.d.ts +1 -0
  84. package/lib/src/index.js +1 -1
  85. package/lib/src/locale/lang/en.js +1 -1
  86. package/lib/src/locale/lang/zh-cn.js +1 -1
  87. package/lib/src/path-map.js +1 -1
  88. package/lib/src/version.d.ts +1 -1
  89. package/lib/src/version.js +1 -1
  90. package/lib/test/setup.d.ts +5 -0
  91. package/package.json +5 -8
  92. package/theme/antd-global-overwrite/admin/index.css +11 -9
  93. package/theme/antd-global-overwrite/admin/modal.css +9 -6
  94. package/theme/antd-global-overwrite/admin/modal.less +8 -6
  95. package/theme/antd-global-overwrite/admin/table.css +2 -3
  96. package/theme/antd-global-overwrite/admin/table.less +2 -3
  97. package/theme/antd-global-overwrite/aplus/index.css +11 -8
  98. package/theme/antd-global-overwrite/aplus/modal.css +9 -6
  99. package/theme/antd-global-overwrite/aplus/modal.less +8 -6
  100. package/theme/antd-global-overwrite/aplus/table.css +2 -2
  101. package/theme/antd-global-overwrite/aplus/table.less +2 -2
  102. package/theme/ap-action/item-dropdown.css +2 -2
  103. package/theme/ap-action/item.css +19 -8
  104. package/theme/ap-action/item.less +18 -6
  105. package/theme/ap-appendix/ap-appendix.css +8 -8
  106. package/theme/ap-appendix/ap-appendix.less +6 -6
  107. package/theme/ap-attachment/ap-attachment.css +2 -2
  108. package/theme/ap-batch-action/ap-batch-action.css +5 -5
  109. package/theme/ap-batch-action/ap-batch-action.less +3 -3
  110. package/theme/ap-button/ap-button.css +2 -2
  111. package/theme/ap-card/ap-card.css +2 -2
  112. package/theme/ap-copy/ap-copy.css +94 -0
  113. package/theme/ap-copy/ap-copy.less +59 -0
  114. package/theme/ap-descriptions/ap-descriptions.css +6 -6
  115. package/theme/ap-descriptions/ap-descriptions.less +4 -4
  116. package/theme/ap-download/ap-download.css +2 -2
  117. package/theme/ap-expand-alert/ap-expand-alert.css +2 -2
  118. package/theme/ap-field/checkbox.css +2 -2
  119. package/theme/ap-field/index.css +2 -2
  120. package/theme/ap-field/number.css +2 -2
  121. package/theme/ap-field/radio.css +2 -2
  122. package/theme/ap-field/text-area.css +2 -2
  123. package/theme/ap-form/ap-form-item-group.css +2 -2
  124. package/theme/ap-form/ap-form-item.css +6 -6
  125. package/theme/ap-form/ap-form-item.less +4 -4
  126. package/theme/ap-form/drawer-form.css +2 -2
  127. package/theme/ap-form/index.css +13 -13
  128. package/theme/ap-form/item-text-group.css +2 -2
  129. package/theme/ap-form/item-text.css +2 -2
  130. package/theme/ap-form/modal-form.css +2 -2
  131. package/theme/ap-form/search-form-sorter.css +6 -6
  132. package/theme/ap-form/search-form-sorter.less +4 -4
  133. package/theme/ap-form/search-form.css +13 -13
  134. package/theme/ap-form/search-form.less +3 -3
  135. package/theme/ap-grid/editable.css +2 -2
  136. package/theme/ap-grid/index.css +43 -24
  137. package/theme/ap-grid/index.less +14 -3
  138. package/theme/ap-group-search/ap-extension-select.css +2 -2
  139. package/theme/ap-group-search/ap-group-search.css +2 -2
  140. package/theme/ap-group-search/ap-popover-select.css +2 -2
  141. package/theme/ap-image/ap-image.css +2 -2
  142. package/theme/ap-input-radio/ap-input-radio.css +2 -2
  143. package/theme/ap-label/ap-label.css +2 -2
  144. package/theme/ap-ladder/ap-ladder.css +2 -2
  145. package/theme/ap-layout/ap-info-layout.css +2 -2
  146. package/theme/ap-list/index.css +2 -2
  147. package/theme/ap-product-info/ap-product-info.css +22 -32
  148. package/theme/ap-product-info/ap-product-info.less +28 -42
  149. package/theme/ap-radio-group/ap-radio-group.css +8 -7
  150. package/theme/ap-radio-group/ap-radio-group.less +7 -5
  151. package/theme/ap-select-layout/ap-select-layout.css +2 -2
  152. package/theme/ap-size-input/ap-size-input.css +2 -2
  153. package/theme/ap-status/ap-status.css +2 -2
  154. package/theme/ap-summary/index.css +2 -2
  155. package/theme/ap-table/ap-table-index.css +2 -2
  156. package/theme/ap-table/ap-table-paragraph-ellipsis.css +3 -3
  157. package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
  158. package/theme/ap-table/ap-table.css +59 -37
  159. package/theme/ap-table/ap-table.less +14 -7
  160. package/theme/ap-table/setting/index.css +14 -9
  161. package/theme/ap-table/setting/modal.css +7 -3
  162. package/theme/ap-table/setting/modal.less +5 -1
  163. package/theme/ap-table/setting/select-group.css +2 -2
  164. package/theme/ap-table/setting/sortable-item-meta.css +4 -4
  165. package/theme/ap-table/setting/sortable-item-meta.less +2 -2
  166. package/theme/ap-table/setting/sortable-item.css +2 -2
  167. package/theme/ap-table/setting/sorter.css +7 -6
  168. package/theme/ap-table/setting/sorter.less +4 -4
  169. package/theme/ap-table-modal/index.css +59 -37
  170. package/theme/ap-tag/ap-tag-group.css +2 -2
  171. package/theme/ap-tag/ap-tag.css +3 -3
  172. package/theme/ap-tag/ap-tag.less +1 -1
  173. package/theme/ap-title/ap-title.css +2 -2
  174. package/theme/ap-upload/index.css +2 -2
  175. package/theme/ap-upload/multiple-file.css +2 -2
  176. package/theme/ap-upload/picture.css +2 -2
  177. package/theme/ap-upload/single-file.css +2 -2
  178. package/theme/ap-upload/upload.css +2 -2
  179. package/theme/ap-upload-single/index.css +6 -6
  180. package/theme/ap-upload-single/index.less +4 -4
  181. package/theme/ap-view/ap-view.css +9 -9
  182. package/theme/ap-view/ap-view.less +7 -7
  183. package/theme/batch-input-group/index.css +4 -4
  184. package/theme/batch-input-group/popover-input.css +4 -4
  185. package/theme/batch-input-group/popover-input.less +2 -2
  186. package/theme/check-card/index.css +7 -7
  187. package/theme/check-card/index.less +5 -5
  188. package/theme/editable-table/index.css +30 -19
  189. package/theme/full-screen/index.css +2 -2
  190. package/theme/index.css +229 -206
  191. package/theme/index.less +1 -0
  192. package/theme/mask/index.css +2 -2
  193. package/theme/mixins/mixins.css +2 -2
  194. package/theme/mixins/mixins.less +2 -2
  195. package/theme/scroll-bar/index.css +2 -2
  196. package/theme/scroll-view/index.css +2 -2
  197. package/theme/splitter/index.css +5 -5
  198. package/theme/splitter/index.less +1 -1
  199. package/theme/text/group.css +2 -2
  200. package/theme/text/index.css +6 -6
  201. package/theme/text/index.less +4 -4
  202. package/theme/ui-mode.css +44 -90
  203. package/theme/ui-mode.less +90 -90
  204. package/theme/work-order-modal/index.css +2 -2
@@ -0,0 +1,7 @@
1
+ import { withInstall as o } from "@aplus-frontend/utils";
2
+ import p from "./ApCopy.mjs";
3
+ import "./interface.mjs";
4
+ const i = o(p);
5
+ export {
6
+ i as ApCopy
7
+ };
@@ -0,0 +1,8 @@
1
+ import { CSSProperties } from 'vue';
2
+ export interface ApCopy {
3
+ text?: string;
4
+ size?: number;
5
+ textStyle?: 'major' | 'minor' | 'link' | CSSProperties;
6
+ link?: string;
7
+ disableCopy?: boolean;
8
+ }
File without changes
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui/theme/ap-copy/ap-copy.css';
File without changes
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui/theme/ap-copy/ap-copy.less';
@@ -17,6 +17,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
17
17
  type: PropType< ApProductInfoValue[]>;
18
18
  default: () => never[];
19
19
  };
20
+ disableCopy: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
20
24
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
21
25
  title: {
22
26
  type: StringConstructor;
@@ -34,10 +38,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
34
38
  type: PropType< ApProductInfoValue[]>;
35
39
  default: () => never[];
36
40
  };
41
+ disableCopy: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
37
45
  }>> & Readonly<{}>, {
38
46
  values: ApProductInfoValue[];
39
47
  title: string;
40
48
  preview: boolean;
49
+ disableCopy: boolean;
41
50
  imgSrc: string;
42
51
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
43
52
  export default _default;
@@ -1,65 +1,65 @@
1
- import { defineComponent as d, createVNode as e, createTextVNode as s, Fragment as f } from "vue";
2
- import { ApProductInfoProps as v } from "./constans.mjs";
1
+ import { defineComponent as v, h as f, createVNode as l, createTextVNode as p } from "vue";
2
+ import { ApProductInfoProps as y } from "./constans.mjs";
3
3
  import "../../config-provider/index.mjs";
4
- import { Tooltip as p } from "@aplus-frontend/antdv";
5
4
  import { ApImage as m } from "../ap-image/index.mjs";
6
- import { useNamespace as g } from "../../config-provider/hooks/use-namespace.mjs";
7
- import { useGlobalConfig as k } from "../../config-provider/hooks/use-global-config.mjs";
8
- const C = /* @__PURE__ */ d({
5
+ import { ApCopy as n } from "../ap-copy/index.mjs";
6
+ import { useNamespace as b } from "../../config-provider/hooks/use-namespace.mjs";
7
+ import { useGlobalConfig as h } from "../../config-provider/hooks/use-global-config.mjs";
8
+ const N = /* @__PURE__ */ v({
9
9
  name: "ApProductInfo",
10
- props: v(),
11
- setup(o) {
10
+ props: y(),
11
+ setup(a) {
12
12
  const {
13
- b: u,
14
- e: t,
15
- m: i
16
- } = g("ap-product-info"), a = (l) => typeof l == "function" ? l() : l || "--", r = {
17
- aplus: "#182948",
18
- admin: "#333333"
19
- }, c = k("uiMode");
20
- return () => e("div", {
21
- class: [u(), `${i(c.value)}`]
22
- }, [e("div", {
23
- class: t("img")
24
- }, [e(m, {
25
- src: o.imgSrc,
13
+ b: s,
14
+ e: o,
15
+ m: r
16
+ } = b("ap-product-info"), u = (e) => typeof e.value == "function" ? e.value() : f(n, {
17
+ text: e.value,
18
+ textStyle: e.link ? "link" : "minor",
19
+ link: e.link,
20
+ disableCopy: a.disableCopy
21
+ }, e.value), c = h("uiMode");
22
+ return () => l("div", {
23
+ class: [s(), `${r(c.value)}`]
24
+ }, [l("div", {
25
+ class: o("img")
26
+ }, [l(m, {
27
+ src: a.imgSrc,
26
28
  width: 44,
27
29
  height: 44,
28
- preview: o.preview
29
- }, null)]), e("div", {
30
- class: [t("content")]
31
- }, [o.title ? e(p, null, {
32
- default: () => [e("div", {
33
- class: t("title"),
30
+ preview: a.preview
31
+ }, null)]), l("div", {
32
+ class: [o("content")]
33
+ }, [l(n, {
34
+ disableCopy: a.disableCopy
35
+ }, {
36
+ default: () => [a.title]
37
+ }), l("div", {
38
+ class: o("row-container")
39
+ }, [a.values.map((e, t) => {
40
+ const i = e.col === 2, d = e.col !== 2 && t % 2 === 0;
41
+ return l("div", {
42
+ key: t,
43
+ class: [o("row-item"), r(i ? "full" : "half")]
44
+ }, [l("div", {
45
+ key: t,
46
+ class: [o("item")]
47
+ }, [e.label && l("div", {
48
+ class: o("label")
49
+ }, [e.label, l("span", null, [p(":")])]), l("div", {
50
+ class: [o("value"), !i && r("overflow")],
51
+ title: typeof e.value != "function" ? String(e.value || "") : ""
52
+ }, [typeof e.value == "function" ? e.value() : u(e)])]), d && l("div", {
53
+ class: o("divider"),
34
54
  style: {
35
- color: r[c.value] || r.aplus
55
+ right: 0
36
56
  }
37
- }, [o.title])],
38
- title: () => e("div", {
39
- class: t("title-tip")
40
- }, [o.title])
41
- }) : e("div", {
42
- class: t("title")
43
- }, [s("--")]), o.values && e("div", {
44
- class: t("row-divider")
45
- }, [o.values.map((l, n) => e(f, null, [e("div", {
46
- key: n,
47
- class: [t("item"), l.col === 2 && i("full-width"), n % 2 === 0 || l.col == 2 ? i("left") : i("right")]
48
- }, [l.label && e("div", {
49
- class: t("label")
50
- }, [l.label, e("span", null, [s(":")])]), e("div", {
51
- class: [t("value"), l.link && i("link")],
52
- title: typeof l.value != "function" ? a(l.value) : "",
53
- onClick: () => {
54
- l.link && window.open(l.link, "_blank");
55
- }
56
- }, [typeof l.value == "function" ? l.value() : a(l.value)])]), l.col == 1 && n % 2 == 0 ? e("div", {
57
- class: t("divider")
58
- }, [e("div", {
59
- class: t("divider-vertical")
60
- }, null)]) : null]))])])]);
57
+ }, [l("div", {
58
+ class: o("divider-vertical")
59
+ }, null)])]);
60
+ })])])]);
61
61
  }
62
62
  });
63
63
  export {
64
- C as default
64
+ N as default
65
65
  };
@@ -17,4 +17,8 @@ export declare const ApProductInfoProps: () => {
17
17
  type: PropType<ApProductInfoValue[]>;
18
18
  default: () => never[];
19
19
  };
20
+ disableCopy: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
20
24
  };
@@ -14,6 +14,10 @@ const e = () => ({
14
14
  values: {
15
15
  type: Array,
16
16
  default: () => []
17
+ },
18
+ disableCopy: {
19
+ type: Boolean,
20
+ default: !1
17
21
  }
18
22
  });
19
23
  export {
@@ -19,10 +19,15 @@ declare const ApProductInfo: {
19
19
  type: PropType< ApProductInfoValue[]>;
20
20
  default: () => never[];
21
21
  };
22
+ disableCopy: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
22
26
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
23
27
  values: ApProductInfoValue[];
24
28
  title: string;
25
29
  preview: boolean;
30
+ disableCopy: boolean;
26
31
  imgSrc: string;
27
32
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
28
33
  P: {};
@@ -48,10 +53,15 @@ declare const ApProductInfo: {
48
53
  type: PropType< ApProductInfoValue[]>;
49
54
  default: () => never[];
50
55
  };
56
+ disableCopy: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
51
60
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
52
61
  values: ApProductInfoValue[];
53
62
  title: string;
54
63
  preview: boolean;
64
+ disableCopy: boolean;
55
65
  imgSrc: string;
56
66
  }>;
57
67
  __isFragment?: never;
@@ -74,10 +84,15 @@ declare const ApProductInfo: {
74
84
  type: PropType< ApProductInfoValue[]>;
75
85
  default: () => never[];
76
86
  };
87
+ disableCopy: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
77
91
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
78
92
  values: ApProductInfoValue[];
79
93
  title: string;
80
94
  preview: boolean;
95
+ disableCopy: boolean;
81
96
  imgSrc: string;
82
97
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
83
98
  $props: {
@@ -4,6 +4,7 @@ export interface ApProductInfoProps {
4
4
  preview?: boolean;
5
5
  title?: string;
6
6
  values?: ApProductInfoValue[];
7
+ disableCopy?: boolean;
7
8
  }
8
9
  export interface ApProductInfoValue {
9
10
  label?: string;
@@ -6,8 +6,10 @@ type __VLS_Props = {
6
6
  optionStyle?: RadioOptionStyleType;
7
7
  };
8
8
  declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
9
+ change: (value: string | number) => any;
9
10
  "update:value": (value: string | number) => any;
10
11
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onChange?: ((value: string | number) => any) | undefined;
11
13
  "onUpdate:value"?: ((value: string | number) => any) | undefined;
12
14
  }>, {
13
15
  value: string | number;
@@ -1,10 +1,10 @@
1
- import { defineComponent as k, isVNode as S, h as a, createElementBlock as l, openBlock as r, normalizeClass as m, unref as o, createVNode as b, withCtx as V, Fragment as _, renderList as w, normalizeStyle as B, createBlock as N, resolveDynamicComponent as z } from "vue";
1
+ import { defineComponent as b, isVNode as k, h as a, createElementBlock as n, openBlock as r, normalizeClass as c, unref as o, createVNode as S, withCtx as V, Fragment as _, renderList as w, normalizeStyle as B, createBlock as N, resolveDynamicComponent as z } from "vue";
2
2
  import { Flex as F } from "@aplus-frontend/antdv";
3
3
  import "../../config-provider/index.mjs";
4
4
  import "../../hooks/index.mjs";
5
5
  import { useNamespace as L } from "../../config-provider/hooks/use-namespace.mjs";
6
6
  import { useControllableValue as x } from "../../hooks/useControllableValue.mjs";
7
- const D = ["onClick"], J = /* @__PURE__ */ k({
7
+ const D = ["onClick"], I = /* @__PURE__ */ b({
8
8
  __name: "ap-radio-group",
9
9
  props: {
10
10
  value: { default: "" },
@@ -14,38 +14,38 @@ const D = ["onClick"], J = /* @__PURE__ */ k({
14
14
  gap: 8
15
15
  }) }
16
16
  },
17
- emits: ["update:value"],
18
- setup(c, { emit: f }) {
19
- const d = c, h = (e) => S(e) ? a(e) : typeof e == "function" ? a("span", e()) : a("span", e), g = f, { b: y, e: i } = L("ap-radio-group"), { value: v, updateValue: C } = x(
20
- d,
17
+ emits: ["update:value", "change"],
18
+ setup(f, { emit: d }) {
19
+ const { b: h, e: l } = L("ap-radio-group"), g = f, i = d, { value: y, updateValue: v } = x(
21
20
  g,
21
+ i,
22
22
  {
23
- defaultValue: ""
23
+ beforeUpdateValue: (e) => (i("change", e), !0)
24
24
  }
25
- );
25
+ ), C = (e) => k(e) ? a(e) : typeof e == "function" ? a("span", e()) : a("span", e);
26
26
  return (e, E) => {
27
- var n;
28
- return r(), l("div", {
29
- class: m([o(y)()])
27
+ var p;
28
+ return r(), n("div", {
29
+ class: c([o(h)()])
30
30
  }, [
31
- b(o(F), {
32
- gap: (n = e.optionStyle) == null ? void 0 : n.gap,
31
+ S(o(F), {
32
+ gap: (p = e.optionStyle) == null ? void 0 : p.gap,
33
33
  wrap: "wrap"
34
34
  }, {
35
35
  default: V(() => [
36
- (r(!0), l(_, null, w(e.options.filter((t) => t.visible !== !1), (t) => {
37
- var p, s, u;
38
- return r(), l("div", {
36
+ (r(!0), n(_, null, w(e.options.filter((t) => t.visible !== !1), (t) => {
37
+ var s, u, m;
38
+ return r(), n("div", {
39
39
  key: t.value,
40
- class: m([o(i)("item"), o(v) === t.value ? o(i)("item--active") : ""]),
40
+ class: c([o(l)("item"), o(y) === t.value ? o(l)("item--active") : ""]),
41
41
  style: B({
42
- height: ((p = e.optionStyle) == null ? void 0 : p.height) + "px",
43
- lineHeight: ((s = e.optionStyle) == null ? void 0 : s.height) + "px",
44
- color: (u = e.optionStyle) == null ? void 0 : u.color
42
+ height: ((s = e.optionStyle) == null ? void 0 : s.height) + "px",
43
+ lineHeight: ((u = e.optionStyle) == null ? void 0 : u.height) + "px",
44
+ color: (m = e.optionStyle) == null ? void 0 : m.color
45
45
  }),
46
- onClick: (H) => o(C)(t.value)
46
+ onClick: (H) => o(v)(t.value)
47
47
  }, [
48
- (r(), N(z(h(t.label))))
48
+ (r(), N(z(C(t.label))))
49
49
  ], 14, D);
50
50
  }), 128))
51
51
  ]),
@@ -56,5 +56,5 @@ const D = ["onClick"], J = /* @__PURE__ */ k({
56
56
  }
57
57
  });
58
58
  export {
59
- J as default
59
+ I as default
60
60
  };
@@ -7,8 +7,10 @@ declare const ApRadioGroup: {
7
7
  options: RadioOptionType[];
8
8
  optionStyle?: RadioOptionStyleType;
9
9
  }> & Readonly<{
10
+ onChange?: ((value: string | number) => any) | undefined;
10
11
  "onUpdate:value"?: ((value: string | number) => any) | undefined;
11
12
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
13
+ change: (value: string | number) => any;
12
14
  "update:value": (value: string | number) => any;
13
15
  }, PublicProps, {
14
16
  value: string | number;
@@ -26,6 +28,7 @@ declare const ApRadioGroup: {
26
28
  options: RadioOptionType[];
27
29
  optionStyle?: RadioOptionStyleType;
28
30
  }> & Readonly<{
31
+ onChange?: ((value: string | number) => any) | undefined;
29
32
  "onUpdate:value"?: ((value: string | number) => any) | undefined;
30
33
  }>, {}, {}, {}, {}, {
31
34
  value: string | number;
@@ -40,8 +43,10 @@ declare const ApRadioGroup: {
40
43
  options: RadioOptionType[];
41
44
  optionStyle?: RadioOptionStyleType;
42
45
  }> & Readonly<{
46
+ onChange?: ((value: string | number) => any) | undefined;
43
47
  "onUpdate:value"?: ((value: string | number) => any) | undefined;
44
48
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
49
+ change: (value: string | number) => any;
45
50
  "update:value": (value: string | number) => any;
46
51
  }, string, {
47
52
  value: string | number;
@@ -19,8 +19,6 @@ export interface UsePageListApGrid extends ApGridProps {
19
19
  * 表格刷新相关
20
20
  */
21
21
  tableRefresh?: boolean | Omit<UseTableRefreshOption, 'apTableRef'>;
22
- /** 是否在deactivated的时候清空数据, 需要在setup中使用才会生效 */
23
- clearDataSourceOnDeactivated?: boolean;
24
22
  }
25
23
  /**
26
24
  * 集成了列表页面的ApGrid的默认配置
@@ -1,79 +1,69 @@
1
1
  import "../../config-provider/index.mjs";
2
2
  import "../index.mjs";
3
- import { merge as i, cloneDeep as F } from "lodash-unified";
4
- import { ref as d, hasInjectionContext as V, onActivated as G, nextTick as x, onDeactivated as q, computed as y, unref as D } from "vue";
5
- import { useGlobalConfig as I } from "../../config-provider/hooks/use-global-config.mjs";
6
- import { useTableRefresh as T } from "./useTableRefresh.mjs";
7
- function H(n) {
8
- const o = d(null), {
9
- isShowRowSelection: f = !0,
10
- clearSelectionOnRequest: m = !0,
3
+ import { merge as c, cloneDeep as v } from "lodash-unified";
4
+ import { ref as g } from "vue";
5
+ import { useGlobalConfig as b } from "../../config-provider/hooks/use-global-config.mjs";
6
+ import { useTableRefresh as R } from "./useTableRefresh.mjs";
7
+ function C(s) {
8
+ const o = g(null), {
9
+ isShowRowSelection: i = !0,
10
+ clearSelectionOnRequest: d = !0,
11
11
  transformSearchFormValues: a,
12
- api: s,
13
- tableRefresh: p = !0,
14
- virtual: v,
15
- clearDataSourceOnDeactivated: S = !0,
16
- ...h
17
- } = n || {};
18
- let l = null;
19
- const g = I("uiMode", "aplus"), c = () => {
12
+ api: l,
13
+ tableRefresh: f = !0,
14
+ virtual: m,
15
+ ...p
16
+ } = s || {};
17
+ let n = null;
18
+ const h = b("uiMode", "aplus"), u = () => {
20
19
  var e, r;
21
20
  (r = (e = o.value) == null ? void 0 : e.rowSelection) == null || r.clearAll();
22
21
  };
23
- T({
24
- ...B(p),
22
+ return R({
23
+ ...w(f),
25
24
  apTableRef: o
26
- });
27
- const b = async (e) => {
28
- l = e.sort;
29
- const r = a ? a(e) : e;
30
- try {
31
- if (!s) throw new Error("api is not defined");
32
- const { records: t, total: w } = await s(r);
33
- return m && c(), {
34
- data: t,
35
- total: w
36
- };
37
- } catch (t) {
38
- return console.error(t), {
39
- data: [],
40
- total: 0
41
- };
42
- }
43
- }, u = d();
44
- S && V() && (G(() => {
45
- x(() => {
46
- u.value = void 0;
47
- });
48
- }), q(() => {
49
- u.value = [];
50
- }));
51
- const A = i(
25
+ }), [c(
52
26
  {
53
27
  // scroll,tableLayout,columnResizable设置表格可拖动
54
28
  scroll: { x: "100%", y: "100%" },
55
29
  columnResizable: !0,
56
- request: s ? b : void 0,
57
- rowSelection: f ? {
30
+ request: l ? async (e) => {
31
+ n = e.sort;
32
+ const r = a ? a(e) : e;
33
+ try {
34
+ if (!l) throw new Error("api is not defined");
35
+ const { records: t, total: S } = await l(r);
36
+ return d && u(), {
37
+ data: t,
38
+ total: S
39
+ };
40
+ } catch (t) {
41
+ return console.error(t), {
42
+ data: [],
43
+ total: 0
44
+ };
45
+ }
46
+ } : void 0,
47
+ rowSelection: i ? {
58
48
  fixed: "left",
59
49
  columnWidth: 34
60
50
  } : void 0,
61
51
  ref(e) {
62
52
  o.value = e;
63
53
  },
64
- virtual: i(
54
+ virtual: c(
65
55
  {
66
56
  oSize: 20,
67
57
  y: 20
68
58
  },
69
- v
59
+ m
70
60
  ),
71
61
  // 新UI规范,需要都添加分割线
72
62
  card: !0,
73
- bordered: g.value === "admin"
63
+ bordered: h.value === "admin"
74
64
  },
75
- h
76
- ), R = {
65
+ p
66
+ ), {
77
67
  reload: () => {
78
68
  var e;
79
69
  (e = o.value) == null || e.submit();
@@ -91,23 +81,16 @@ function H(n) {
91
81
  getSearchFormValuesAndSorted: (e = !0) => {
92
82
  var t;
93
83
  const r = ((t = o.value) == null ? void 0 : t.getSearchFormValues(!!e)) || {};
94
- return r.sort = l && F(l), a ? a(r) : r;
84
+ return r.sort = n && v(n), a ? a(r) : r;
95
85
  },
96
- clearSelection: c
97
- };
98
- return [
99
- y(() => ({
100
- ...A,
101
- dataSource: D(u)
102
- })),
103
- R
104
- ];
86
+ clearSelection: u
87
+ }];
105
88
  }
106
- function B(n) {
107
- return n === !0 ? {} : n === !1 ? {
89
+ function w(s) {
90
+ return s === !0 ? {} : s === !1 ? {
108
91
  refreshBefore: () => !1
109
- } : n;
92
+ } : s;
110
93
  }
111
94
  export {
112
- H as usePageListApGrid
95
+ C as usePageListApGrid
113
96
  };
@@ -21,6 +21,7 @@ export * from './ap-upload-file';
21
21
  export * from './batch-input-group';
22
22
  export * from './ap-size-input';
23
23
  export * from './ap-product-info';
24
+ export * from './ap-copy';
24
25
  export * from './ap-view';
25
26
  export * from './ap-radio-group';
26
27
  export { ApTransformDataHelper } from '../utils/ap-trans-data';
@@ -7,11 +7,11 @@ import { ApCard as d } from "./ap-card/index.mjs";
7
7
  import { ApExpandAlert as G } from "./ap-expand-alert/index.mjs";
8
8
  import { ApExportGroup as h } from "./ap-export-group/index.mjs";
9
9
  import { ApImage as L } from "./ap-image/index.mjs";
10
- import { ApInputRadio as B } from "./ap-input-radio/index.mjs";
11
- import { ApLabel as T, ApLabelGroup as y } from "./ap-label/index.mjs";
12
- import { ApLadder as R } from "./ap-ladder/index.mjs";
13
- import { ApSelectLayout as v } from "./ap-select-layout/index.mjs";
14
- import { ApStatus as z, ApStatusGroup as C } from "./ap-status/index.mjs";
10
+ import { ApInputRadio as y } from "./ap-input-radio/index.mjs";
11
+ import { ApLabel as E, ApLabelGroup as T } from "./ap-label/index.mjs";
12
+ import { ApLadder as P } from "./ap-ladder/index.mjs";
13
+ import { ApSelectLayout as g } from "./ap-select-layout/index.mjs";
14
+ import { ApStatus as w, ApStatusGroup as z } from "./ap-status/index.mjs";
15
15
  import { ApTitle as H } from "./ap-title/index.mjs";
16
16
  import "./hooks/index.mjs";
17
17
  import { ApSummary as V } from "./ap-summary/index.mjs";
@@ -21,9 +21,10 @@ import "./ap-upload-file/index.mjs";
21
21
  import "./batch-input-group/index.mjs";
22
22
  import { ApSizeInput as O } from "./ap-size-input/index.mjs";
23
23
  import { ApProductInfo as U } from "./ap-product-info/index.mjs";
24
- import { ApView as X } from "./ap-view/index.mjs";
25
- import { ApRadioGroup as Z } from "./ap-radio-group/index.mjs";
26
- import { ApTransformDataHelper as $ } from "../utils/ap-trans-data/index.mjs";
24
+ import { ApCopy as X } from "./ap-copy/index.mjs";
25
+ import { ApView as Z } from "./ap-view/index.mjs";
26
+ import { ApRadioGroup as $ } from "./ap-radio-group/index.mjs";
27
+ import { ApTransformDataHelper as po } from "../utils/ap-trans-data/index.mjs";
27
28
  export {
28
29
  k as ApAppendix,
29
30
  x as ApAttachment,
@@ -31,25 +32,26 @@ export {
31
32
  i as ApBatchActionGroup,
32
33
  l as ApButtonGroup,
33
34
  d as ApCard,
35
+ X as ApCopy,
34
36
  G as ApExpandAlert,
35
37
  h as ApExportGroup,
36
38
  F as ApExtensionSelect,
37
39
  J as ApGroupSearch,
38
40
  L as ApImage,
39
- B as ApInputRadio,
40
- T as ApLabel,
41
- y as ApLabelGroup,
42
- R as ApLadder,
41
+ y as ApInputRadio,
42
+ E as ApLabel,
43
+ T as ApLabelGroup,
44
+ P as ApLadder,
43
45
  K as ApPopoverSelect,
44
46
  U as ApProductInfo,
45
- Z as ApRadioGroup,
46
- v as ApSelectLayout,
47
+ $ as ApRadioGroup,
48
+ g as ApSelectLayout,
47
49
  O as ApSizeInput,
48
- z as ApStatus,
49
- C as ApStatusGroup,
50
+ w as ApStatus,
51
+ z as ApStatusGroup,
50
52
  V as ApSummary,
51
53
  A as ApTableModal,
52
54
  H as ApTitle,
53
- $ as ApTransformDataHelper,
54
- X as ApView
55
+ po as ApTransformDataHelper,
56
+ Z as ApView
55
57
  };
@@ -15,6 +15,7 @@ declare module '@vue/runtime-core' {
15
15
  ApLabelGroup: typeof components.ApLabelGroup;
16
16
  ApLadder: typeof components.ApLadder;
17
17
  ApProductInfo: typeof components.ApProductInfo;
18
+ ApCopy: typeof components.ApCopy;
18
19
  ApSelectLayout: typeof components.ApSelectLayout;
19
20
  ApStatus: typeof components.ApStatus;
20
21
  ApStatusGroup: typeof components.ApStatusGroup;