@aplus-frontend/ui 0.1.30 → 0.1.31

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 (51) hide show
  1. package/es/index.mjs +147 -144
  2. package/es/src/{business/ap-action-button/ApActionButton.vue.d.ts → ap-button/ap-button.vue.d.ts} +8 -3
  3. package/es/src/ap-button/ap-button.vue.mjs +116 -0
  4. package/es/src/ap-button/ap-button.vue2.mjs +4 -0
  5. package/es/src/ap-button/index.d.ts +3 -0
  6. package/es/src/ap-button/index.mjs +2 -0
  7. package/es/src/{business/ap-action-button → ap-button}/interface.d.ts +2 -1
  8. package/es/src/ap-form/dependency/index.vue.d.ts +28 -0
  9. package/es/src/ap-form/dependency/index.vue.mjs +37 -0
  10. package/es/src/ap-form/dependency/index.vue2.mjs +4 -0
  11. package/es/src/ap-form/index.d.ts +3 -1
  12. package/es/src/ap-form/index.mjs +10 -6
  13. package/es/src/ap-form/interface.d.ts +3 -0
  14. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +52 -50
  15. package/es/src/business/hooks/useTableRefresh.d.ts +1 -1
  16. package/es/src/business/hooks/useTableRefresh.mjs +1 -1
  17. package/es/src/business/index.d.ts +0 -265
  18. package/es/src/business/index.mjs +21 -25
  19. package/es/src/index.d.ts +1 -0
  20. package/es/src/index.mjs +169 -165
  21. package/lib/index.js +1 -1
  22. package/lib/src/{business/ap-action-button/ApActionButton.vue.d.ts → ap-button/ap-button.vue.d.ts} +8 -3
  23. package/lib/src/ap-button/ap-button.vue.js +1 -0
  24. package/lib/src/ap-button/ap-button.vue2.js +1 -0
  25. package/lib/src/ap-button/index.d.ts +3 -0
  26. package/lib/src/ap-button/index.js +1 -0
  27. package/lib/src/{business/ap-action-button → ap-button}/interface.d.ts +2 -1
  28. package/lib/src/ap-form/dependency/index.vue.d.ts +28 -0
  29. package/lib/src/ap-form/dependency/index.vue.js +1 -0
  30. package/lib/src/ap-form/dependency/index.vue2.js +1 -0
  31. package/lib/src/ap-form/index.d.ts +3 -1
  32. package/lib/src/ap-form/index.js +1 -1
  33. package/lib/src/ap-form/interface.d.ts +3 -0
  34. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  35. package/lib/src/business/hooks/useTableRefresh.d.ts +1 -1
  36. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  37. package/lib/src/business/index.d.ts +0 -265
  38. package/lib/src/business/index.js +1 -1
  39. package/lib/src/index.d.ts +1 -0
  40. package/lib/src/index.js +1 -1
  41. package/package.json +1 -1
  42. package/es/src/business/ap-action-button/ApActionButton.vue.mjs +0 -4
  43. package/es/src/business/ap-action-button/ApActionButton.vue2.mjs +0 -97
  44. package/lib/src/business/ap-action-button/ApActionButton.vue.js +0 -1
  45. package/lib/src/business/ap-action-button/ApActionButton.vue2.js +0 -1
  46. /package/es/src/{business/ap-action-button → ap-button}/index.css +0 -0
  47. /package/es/src/{business/ap-action-button → ap-button}/interface.mjs +0 -0
  48. /package/es/src/theme/{ap-action-button/ap-action-button.css → ap-button/ap-button.css} +0 -0
  49. /package/lib/src/{business/ap-action-button → ap-button}/index.css +0 -0
  50. /package/lib/src/{business/ap-action-button → ap-button}/interface.js +0 -0
  51. /package/lib/src/theme/{ap-action-button/ap-action-button.css → ap-button/ap-button.css} +0 -0
@@ -0,0 +1,37 @@
1
+ import { defineComponent as p, ref as m, watchEffect as y, unref as _, renderSlot as g } from "vue";
2
+ import { useInjectForm as h } from "../context.mjs";
3
+ import { isArray as V, isNumber as d, cloneDeep as b } from "lodash-unified";
4
+ const A = /* @__PURE__ */ p({
5
+ __name: "index",
6
+ props: {
7
+ nameList: {}
8
+ },
9
+ setup(u) {
10
+ function a(t, s) {
11
+ return V(s) ? s.reduce((o, e) => o == null ? void 0 : o[e], t) : t == null ? void 0 : t[s];
12
+ }
13
+ const c = u, {
14
+ model: i
15
+ } = h(), f = m({});
16
+ function l(t, s, o) {
17
+ let e = s;
18
+ for (let r = 0; r < t.length; r++) {
19
+ const n = t[r];
20
+ r === t.length - 1 ? e[n] = o : (d(n) ? (Array.isArray(e) || (e[n] = []), e[n] || (e[n] = {})) : (typeof e[n] != "object" || e[n] === null) && (e[n] = {}), e = e[n]);
21
+ }
22
+ }
23
+ return y(() => {
24
+ const t = b(f.value);
25
+ for (const s of c.nameList) {
26
+ const o = [s].flat(1), e = a(_(i), o);
27
+ l(o, t, e);
28
+ }
29
+ f.value = t;
30
+ }), (t, s) => g(t.$slots, "default", {
31
+ values: f.value
32
+ });
33
+ }
34
+ });
35
+ export {
36
+ A as default
37
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -5,6 +5,7 @@ import { default as ApFormList } from './ap-form-list.vue';
5
5
  import { default as ApFormSearchForm } from './search-form/index.vue';
6
6
  import { default as ApFormModalForm } from './modal-form/index.vue';
7
7
  import { default as useWatch } from './hooks/use-watch';
8
+ import { default as ApFormDependency } from './dependency/index.vue';
8
9
  type ApFormMixedProps = typeof _ApForm & {
9
10
  FormItem: typeof ApFormItem;
10
11
  FormItemGroup: typeof ApFormItemGroup;
@@ -12,8 +13,9 @@ type ApFormMixedProps = typeof _ApForm & {
12
13
  SearchForm: typeof ApFormSearchForm;
13
14
  ModalForm: typeof ApFormModalForm;
14
15
  useWatch: typeof useWatch;
16
+ Dependency: typeof ApFormDependency;
15
17
  };
16
18
  declare const ApForm: ApFormMixedProps;
17
19
  export * from './items';
18
20
  export * from './interface';
19
- export { ApForm, ApFormItem, ApFormItemGroup, ApFormList, ApFormSearchForm, ApFormModalForm };
21
+ export { ApForm, ApFormItem, ApFormItemGroup, ApFormList, ApFormSearchForm, ApFormModalForm, ApFormDependency };
@@ -5,25 +5,29 @@ import "./ap-form-list.vue2.mjs";
5
5
  import "./search-form/index.vue2.mjs";
6
6
  import "./modal-form/index.vue2.mjs";
7
7
  import o from "./hooks/use-watch.mjs";
8
+ import "./dependency/index.vue2.mjs";
8
9
  import "./items/index.mjs";
9
10
  import "./interface.mjs";
10
11
  import r from "./ap-form.vue2.mjs";
11
- import t from "./ap-form-item.vue.mjs";
12
- import p from "./ap-form-item-group/index.vue.mjs";
12
+ import p from "./ap-form-item.vue.mjs";
13
+ import t from "./ap-form-item-group/index.vue.mjs";
13
14
  import i from "./ap-form-list.vue.mjs";
14
15
  import a from "./search-form/index.vue.mjs";
15
16
  import s from "./modal-form/index.vue.mjs";
17
+ import e from "./dependency/index.vue.mjs";
16
18
  const m = r;
17
- m.FormItem = t;
18
- m.FormItemGroup = p;
19
+ m.FormItem = p;
20
+ m.FormItemGroup = t;
19
21
  m.FormList = i;
20
22
  m.SearchForm = a;
21
23
  m.ModalForm = s;
22
24
  m.useWatch = o;
25
+ m.Dependency = e;
23
26
  export {
24
27
  m as ApForm,
25
- t as ApFormItem,
26
- p as ApFormItemGroup,
28
+ e as ApFormDependency,
29
+ p as ApFormItem,
30
+ t as ApFormItemGroup,
27
31
  i as ApFormList,
28
32
  s as ApFormModalForm,
29
33
  a as ApFormSearchForm
@@ -126,3 +126,6 @@ export type ApFormItemSlots = {
126
126
  extra: any;
127
127
  default(): VNode[];
128
128
  };
129
+ export type ApFormDependencyProps = {
130
+ nameList: NamePath[];
131
+ };
@@ -1,14 +1,14 @@
1
- import { defineComponent as K, computed as c, ref as R, openBlock as y, createBlock as p, unref as t, normalizeClass as B, withCtx as l, createVNode as x, createTextVNode as b, toDisplayString as h, normalizeStyle as T, createCommentVNode as I } from "vue";
2
- import { formatFileNameAndDownloadFile as V } from "@aplus-frontend/utils";
3
- import { DownOutlined as q } from "@ant-design/icons-vue";
4
- import { Modal as z, Dropdown as O, Menu as J, MenuItem as C, Button as j } from "ant-design-vue";
1
+ import { defineComponent as R, computed as c, ref as T, openBlock as y, createBlock as p, unref as o, normalizeClass as I, withCtx as l, createVNode as x, createTextVNode as b, toDisplayString as h, normalizeStyle as V, createCommentVNode as q } from "vue";
2
+ import { formatFileNameAndDownloadFile as z } from "@aplus-frontend/utils";
3
+ import { DownOutlined as O } from "@ant-design/icons-vue";
4
+ import { Modal as j, Dropdown as J, Menu as H, MenuItem as F, Button as Q } from "ant-design-vue";
5
5
  import "../../config-provider/index.mjs";
6
6
  import { ApExportGroupActionType as d } from "./interface.mjs";
7
- import { usePermission as H } from "@aplus-frontend/hooks";
8
- import { useNamespace as Q } from "../../config-provider/hooks/use-namespace.mjs";
9
- import { useLocale as U } from "../../config-provider/hooks/use-locale.mjs";
10
- import { useGlobalConfig as W } from "../../config-provider/hooks/use-global-config.mjs";
11
- const re = /* @__PURE__ */ K({
7
+ import { usePermission as U } from "@aplus-frontend/hooks";
8
+ import { useNamespace as W } from "../../config-provider/hooks/use-namespace.mjs";
9
+ import { useLocale as X } from "../../config-provider/hooks/use-locale.mjs";
10
+ import { useGlobalConfig as Y } from "../../config-provider/hooks/use-global-config.mjs";
11
+ const ue = /* @__PURE__ */ R({
12
12
  __name: "ApExportGroup",
13
13
  props: {
14
14
  selectedRowKeys: {},
@@ -22,72 +22,74 @@ const re = /* @__PURE__ */ K({
22
22
  getInitialParams: { type: Function },
23
23
  beforeRequest: { type: Function }
24
24
  },
25
- setup(S) {
26
- const { hasPermission: F } = H(), e = S, { b: A } = Q("ap-export-group"), { t: r } = U(), L = W("uiMode"), G = c(() => {
27
- const o = {
25
+ setup(A) {
26
+ const { hasPermission: L } = U(), e = A, { b: G } = W("ap-export-group"), { t: i } = X(), M = Y("uiMode"), k = c(() => {
27
+ const a = {
28
28
  aplus: "#0070FF",
29
29
  admin: "#34b77c"
30
30
  };
31
- return w.value ? "" : o[L.value] || o.aplus;
32
- }), w = c(() => !!(e != null && e.disabled)), M = {
31
+ return w.value ? "" : a[M.value] || a.aplus;
32
+ }), w = c(() => !!(e != null && e.disabled)), N = {
33
33
  textAlign: "center"
34
- }, s = R(!1), v = c(() => (e == null ? void 0 : e.selectedRowKeys) || []), k = c(() => {
35
- let o = e == null ? void 0 : e.ifShow;
36
- return !(e != null && e.ifShow) && (e != null && e.auth) && (o = () => F(e.auth)), (o == null ? void 0 : o()) ?? !0;
34
+ }, s = T(!1), g = c(() => (e == null ? void 0 : e.selectedRowKeys) || []), P = c(() => {
35
+ let a = e == null ? void 0 : e.ifShow;
36
+ return !(e != null && e.ifShow) && (e != null && e.auth) && (a = () => L(e.auth)), (a == null ? void 0 : a()) ?? !0;
37
37
  });
38
- async function N({ key: o }) {
39
- var g, E, _;
40
- const { getRequestParams: i, request: a } = e || {};
38
+ async function B({ key: a }) {
39
+ var v, E, S, _, C;
40
+ const { getRequestParams: r, request: n } = e || {};
41
41
  let m = {};
42
- o === d.SELECT ? m = {
43
- [(e == null ? void 0 : e.idKey) || "ids"]: v.value
44
- } : o === d.ALL && (m = (i == null ? void 0 : i()) || {});
45
- const P = ((g = e == null ? void 0 : e.getInitialParams) == null ? void 0 : g.call(e)) || {};
42
+ a === d.SELECT ? m = {
43
+ [(e == null ? void 0 : e.idKey) || "ids"]: g.value
44
+ } : a === d.ALL && (m = (r == null ? void 0 : r()) || {});
45
+ const D = ((v = e == null ? void 0 : e.getInitialParams) == null ? void 0 : v.call(e)) || {};
46
46
  try {
47
47
  s.value = !0;
48
48
  let u = {
49
49
  ...m,
50
- ...P
50
+ ...D
51
51
  };
52
52
  u = ((E = e == null ? void 0 : e.beforeRequest) == null ? void 0 : E.call(e, u)) || u;
53
- const n = await (a == null ? void 0 : a(u));
54
- n.headers && !((_ = n == null ? void 0 : n.headers) != null && _["content-disposition"]) ? n.data.text().then((D) => {
55
- const f = JSON.parse(D || "{}");
56
- f.code && f.code !== "200" && z.error({
57
- title: r("ap.apExportGroup.exportError"),
53
+ const t = await (n == null ? void 0 : n(u));
54
+ if (toString.call(t == null ? void 0 : t.data) !== "[object Blob]")
55
+ return;
56
+ t != null && t.headers && !((S = t == null ? void 0 : t.headers) != null && S["content-disposition"]) ? (C = (_ = t == null ? void 0 : t.data) == null ? void 0 : _.text()) == null || C.then((K) => {
57
+ const f = JSON.parse(K || "{}");
58
+ f.code && f.code !== "200" && j.error({
59
+ title: i("ap.apExportGroup.exportError"),
58
60
  content: f.message,
59
61
  centered: !0
60
62
  });
61
- }) : V(n);
63
+ }) : z(t);
62
64
  } finally {
63
65
  s.value = !1;
64
66
  }
65
67
  }
66
- return (o, i) => k.value ? (y(), p(t(O), {
68
+ return (a, r) => P.value ? (y(), p(o(J), {
67
69
  key: 0,
68
- class: B([t(A)()]),
69
- overlayStyle: M,
70
+ class: I([o(G)()]),
71
+ overlayStyle: N,
70
72
  disabled: w.value
71
73
  }, {
72
74
  overlay: l(() => [
73
- x(t(J), { onClick: N }, {
75
+ x(o(H), { onClick: B }, {
74
76
  default: l(() => {
75
- var a;
77
+ var n;
76
78
  return [
77
- (y(), p(t(C), {
78
- key: t(d).SELECT,
79
- disabled: ((a = v.value) == null ? void 0 : a.length) === 0
79
+ (y(), p(o(F), {
80
+ key: o(d).SELECT,
81
+ disabled: ((n = g.value) == null ? void 0 : n.length) === 0
80
82
  }, {
81
83
  default: l(() => [
82
- b(h(t(r)("ap.apExportGroup.exportSelected")), 1)
84
+ b(h(o(i)("ap.apExportGroup.exportSelected")), 1)
83
85
  ]),
84
86
  _: 1
85
87
  }, 8, ["disabled"])),
86
- (y(), p(t(C), {
87
- key: t(d).ALL
88
+ (y(), p(o(F), {
89
+ key: o(d).ALL
88
90
  }, {
89
91
  default: l(() => [
90
- b(h(t(r)("ap.apExportGroup.exportAll")), 1)
92
+ b(h(o(i)("ap.apExportGroup.exportAll")), 1)
91
93
  ]),
92
94
  _: 1
93
95
  }))
@@ -97,23 +99,23 @@ const re = /* @__PURE__ */ K({
97
99
  })
98
100
  ]),
99
101
  default: l(() => [
100
- x(t(j), {
101
- style: T({
102
- color: G.value
102
+ x(o(Q), {
103
+ style: V({
104
+ color: k.value
103
105
  }),
104
106
  loading: s.value
105
107
  }, {
106
108
  default: l(() => [
107
- b(h((e == null ? void 0 : e.text) ?? t(r)("ap.apExportGroup.export")) + " ", 1),
108
- x(t(q))
109
+ b(h((e == null ? void 0 : e.text) ?? o(i)("ap.apExportGroup.export")) + " ", 1),
110
+ x(o(O))
109
111
  ]),
110
112
  _: 1
111
113
  }, 8, ["style", "loading"])
112
114
  ]),
113
115
  _: 1
114
- }, 8, ["class", "disabled"])) : I("", !0);
116
+ }, 8, ["class", "disabled"])) : q("", !0);
115
117
  }
116
118
  });
117
119
  export {
118
- re as default
120
+ ue as default
119
121
  };
@@ -8,7 +8,7 @@ export interface UseTableRefreshOption {
8
8
  /**
9
9
  * 刷新类型,reset:重置,submit:提交
10
10
  */
11
- refreskType?: 'reset' | 'submit';
11
+ refreshType?: 'reset' | 'submit';
12
12
  /**
13
13
  * 刷新前执行,返回false则不执行
14
14
  */
@@ -1,6 +1,6 @@
1
1
  import { onMounted as c, nextTick as l, onActivated as T } from "vue";
2
2
  function m(e) {
3
- const a = (["reset", "submit", void 0].includes(e == null ? void 0 : e.refreskType) ? e == null ? void 0 : e.refreskType : "submit") ?? "submit", r = (e == null ? void 0 : e.refreshBefore) ?? (() => !0);
3
+ const a = (["reset", "submit", void 0].includes(e == null ? void 0 : e.refreshType) ? e == null ? void 0 : e.refreshType : "submit") ?? "submit", r = (e == null ? void 0 : e.refreshBefore) ?? (() => !0);
4
4
  let s = !0;
5
5
  c(() => {
6
6
  l(() => {
@@ -30,7 +30,6 @@ export type { ApExportGroupProps } from './ap-export-group/interface';
30
30
  export type { ApLadderProps, ApLadderLabelValue, CurrencyCode, TooltipNeedProps } from './ap-ladder/interface';
31
31
  export * from './ap-batch-action-group/interface';
32
32
  export type { AttachmentItemProps, ApAttachmentProps } from './ap-attachment';
33
- export * from './ap-action-button/interface';
34
33
  export declare const ApTitle: {
35
34
  new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
36
35
  title: {
@@ -2799,269 +2798,5 @@ export declare const ApAttachment: DefineComponent<{
2799
2798
  attachmentList: AttachmentItemProps[];
2800
2799
  fileMorePopoverPlacement: TooltipPlacement;
2801
2800
  }, {}>;
2802
- export declare const ApActionButton: {
2803
- new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
2804
- size: {
2805
- type: PropType<"small" | "large" | "middle">;
2806
- };
2807
- type: {
2808
- type: PropType< ButtonType | "borderLink">;
2809
- default: string;
2810
- };
2811
- title: {
2812
- type: PropType<string>;
2813
- };
2814
- onClick: {
2815
- type: PropType< MouseEventHandler | MouseEventHandler[]>;
2816
- };
2817
- onMousedown: {
2818
- type: PropType< MouseEventHandler | MouseEventHandler[]>;
2819
- };
2820
- block: {
2821
- type: PropType<boolean>;
2822
- };
2823
- icon: {
2824
- type: PropType<any>;
2825
- };
2826
- disabled: {
2827
- type: PropType<boolean>;
2828
- };
2829
- minWidth: {
2830
- type: PropType<string | number | boolean>;
2831
- default: boolean;
2832
- };
2833
- target: {
2834
- type: PropType<string>;
2835
- };
2836
- prefixCls: {
2837
- type: PropType<string>;
2838
- };
2839
- htmlType: {
2840
- type: PropType<ButtonHTMLType>;
2841
- };
2842
- shape: {
2843
- type: PropType<ButtonShape>;
2844
- };
2845
- loading: {
2846
- type: PropType<boolean | {
2847
- delay?: number;
2848
- }>;
2849
- };
2850
- ghost: {
2851
- type: PropType<boolean>;
2852
- };
2853
- danger: {
2854
- type: PropType<boolean>;
2855
- };
2856
- href: {
2857
- type: PropType<string>;
2858
- };
2859
- borderLinkColor: {
2860
- type: PropType<string>;
2861
- };
2862
- }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
2863
- size: {
2864
- type: PropType<"small" | "large" | "middle">;
2865
- };
2866
- type: {
2867
- type: PropType< ButtonType | "borderLink">;
2868
- default: string;
2869
- };
2870
- title: {
2871
- type: PropType<string>;
2872
- };
2873
- onClick: {
2874
- type: PropType< MouseEventHandler | MouseEventHandler[]>;
2875
- };
2876
- onMousedown: {
2877
- type: PropType< MouseEventHandler | MouseEventHandler[]>;
2878
- };
2879
- block: {
2880
- type: PropType<boolean>;
2881
- };
2882
- icon: {
2883
- type: PropType<any>;
2884
- };
2885
- disabled: {
2886
- type: PropType<boolean>;
2887
- };
2888
- minWidth: {
2889
- type: PropType<string | number | boolean>;
2890
- default: boolean;
2891
- };
2892
- target: {
2893
- type: PropType<string>;
2894
- };
2895
- prefixCls: {
2896
- type: PropType<string>;
2897
- };
2898
- htmlType: {
2899
- type: PropType<ButtonHTMLType>;
2900
- };
2901
- shape: {
2902
- type: PropType<ButtonShape>;
2903
- };
2904
- loading: {
2905
- type: PropType<boolean | {
2906
- delay?: number;
2907
- }>;
2908
- };
2909
- ghost: {
2910
- type: PropType<boolean>;
2911
- };
2912
- danger: {
2913
- type: PropType<boolean>;
2914
- };
2915
- href: {
2916
- type: PropType<string>;
2917
- };
2918
- borderLinkColor: {
2919
- type: PropType<string>;
2920
- };
2921
- }>>, {
2922
- type: ButtonType | "borderLink";
2923
- minWidth: boolean | number | string;
2924
- }, true, {}, {}, {
2925
- P: {};
2926
- B: {};
2927
- D: {};
2928
- C: {};
2929
- M: {};
2930
- Defaults: {};
2931
- }, Readonly< ExtractPropTypes<{
2932
- size: {
2933
- type: PropType<"small" | "large" | "middle">;
2934
- };
2935
- type: {
2936
- type: PropType< ButtonType | "borderLink">;
2937
- default: string;
2938
- };
2939
- title: {
2940
- type: PropType<string>;
2941
- };
2942
- onClick: {
2943
- type: PropType< MouseEventHandler | MouseEventHandler[]>;
2944
- };
2945
- onMousedown: {
2946
- type: PropType< MouseEventHandler | MouseEventHandler[]>;
2947
- };
2948
- block: {
2949
- type: PropType<boolean>;
2950
- };
2951
- icon: {
2952
- type: PropType<any>;
2953
- };
2954
- disabled: {
2955
- type: PropType<boolean>;
2956
- };
2957
- minWidth: {
2958
- type: PropType<string | number | boolean>;
2959
- default: boolean;
2960
- };
2961
- target: {
2962
- type: PropType<string>;
2963
- };
2964
- prefixCls: {
2965
- type: PropType<string>;
2966
- };
2967
- htmlType: {
2968
- type: PropType<ButtonHTMLType>;
2969
- };
2970
- shape: {
2971
- type: PropType<ButtonShape>;
2972
- };
2973
- loading: {
2974
- type: PropType<boolean | {
2975
- delay?: number;
2976
- }>;
2977
- };
2978
- ghost: {
2979
- type: PropType<boolean>;
2980
- };
2981
- danger: {
2982
- type: PropType<boolean>;
2983
- };
2984
- href: {
2985
- type: PropType<string>;
2986
- };
2987
- borderLinkColor: {
2988
- type: PropType<string>;
2989
- };
2990
- }>>, {}, {}, {}, {}, {
2991
- type: ButtonType | "borderLink";
2992
- minWidth: boolean | number | string;
2993
- }>;
2994
- __isFragment?: never;
2995
- __isTeleport?: never;
2996
- __isSuspense?: never;
2997
- } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
2998
- size: {
2999
- type: PropType<"small" | "large" | "middle">;
3000
- };
3001
- type: {
3002
- type: PropType< ButtonType | "borderLink">;
3003
- default: string;
3004
- };
3005
- title: {
3006
- type: PropType<string>;
3007
- };
3008
- onClick: {
3009
- type: PropType< MouseEventHandler | MouseEventHandler[]>;
3010
- };
3011
- onMousedown: {
3012
- type: PropType< MouseEventHandler | MouseEventHandler[]>;
3013
- };
3014
- block: {
3015
- type: PropType<boolean>;
3016
- };
3017
- icon: {
3018
- type: PropType<any>;
3019
- };
3020
- disabled: {
3021
- type: PropType<boolean>;
3022
- };
3023
- minWidth: {
3024
- type: PropType<string | number | boolean>;
3025
- default: boolean;
3026
- };
3027
- target: {
3028
- type: PropType<string>;
3029
- };
3030
- prefixCls: {
3031
- type: PropType<string>;
3032
- };
3033
- htmlType: {
3034
- type: PropType<ButtonHTMLType>;
3035
- };
3036
- shape: {
3037
- type: PropType<ButtonShape>;
3038
- };
3039
- loading: {
3040
- type: PropType<boolean | {
3041
- delay?: number;
3042
- }>;
3043
- };
3044
- ghost: {
3045
- type: PropType<boolean>;
3046
- };
3047
- danger: {
3048
- type: PropType<boolean>;
3049
- };
3050
- href: {
3051
- type: PropType<string>;
3052
- };
3053
- borderLinkColor: {
3054
- type: PropType<string>;
3055
- };
3056
- }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
3057
- type: ButtonType | "borderLink";
3058
- minWidth: boolean | number | string;
3059
- }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
3060
- $slots: Partial<Record<string, (_: any) => any>>;
3061
- }) & ( Plugin & (new (...args: any[]) => {
3062
- $props: {
3063
- onClick?: () => void;
3064
- };
3065
- }));
3066
2801
  export { ApTransformDataHelper };
3067
2802
  export * from './ap-table-modal';
@@ -14,15 +14,13 @@ import "./ap-batch-action-group/ApBatchActionGroup.vue.mjs";
14
14
  import "./ap-image/ApImage.vue.mjs";
15
15
  import "./ap-ladder/ApLadder.vue.mjs";
16
16
  import p from "./ap-attachment/ApAttachment.mjs";
17
- import "./ap-action-button/ApActionButton.vue.mjs";
18
- import { ApTransformDataHelper as so } from "../utils/ap-trans-data/index.mjs";
17
+ import { ApTransformDataHelper as io } from "../utils/ap-trans-data/index.mjs";
19
18
  import "./ap-batch-action-group/interface.mjs";
20
- import "./ap-action-button/interface.mjs";
21
- import { default as Ao } from "./ap-table-modal/index.mjs";
19
+ import { default as no } from "./ap-table-modal/index.mjs";
22
20
  import r from "./title/ApTitle.vue2.mjs";
23
21
  import i from "./ap-expand-alert/ApExpandAlert.vue2.mjs";
24
- import n from "./ap-status/ApStatus.vue2.mjs";
25
- import a from "./ap-status/ApStatusGroup.vue2.mjs";
22
+ import a from "./ap-status/ApStatus.vue2.mjs";
23
+ import n from "./ap-status/ApStatusGroup.vue2.mjs";
26
24
  import c from "./ap-select-layout/select-layout.vue2.mjs";
27
25
  import f from "./ap-export-group/ApExportGroup.vue2.mjs";
28
26
  import s from "./ap-input-radio/ApInputRadio.vue2.mjs";
@@ -30,24 +28,22 @@ import _ from "./ap-batch-action/ApBatchAction.vue2.mjs";
30
28
  import A from "./ap-batch-action-group/ApBatchActionGroup.vue2.mjs";
31
29
  import e from "./ap-image/ApImage.vue2.mjs";
32
30
  import l from "./ap-ladder/ApLadder.vue2.mjs";
33
- import u from "./ap-action-button/ApActionButton.vue2.mjs";
34
- const Q = o(r), U = i, V = o(t), W = o(n), X = o(a), Y = o(c), Z = o(f), oo = s, to = _, mo = m, po = A, ro = e, io = o(l), no = p, ao = o(u);
31
+ const K = o(r), N = i, O = o(t), P = o(a), Q = o(n), U = o(c), V = o(f), W = s, X = _, Y = m, Z = A, oo = e, to = o(l), mo = p;
35
32
  export {
36
- ao as ApActionButton,
37
- no as ApAttachment,
38
- to as ApBatchAction,
39
- po as ApBatchActionGroup,
40
- U as ApExpandAlert,
41
- Z as ApExportGroup,
42
- ro as ApImage,
43
- oo as ApInputRadio,
44
- V as ApLabel,
45
- mo as ApLabelGroup,
46
- io as ApLadder,
47
- Y as ApSelectLayout,
48
- W as ApStatus,
49
- X as ApStatusGroup,
50
- Ao as ApTableModal,
51
- Q as ApTitle,
52
- so as ApTransformDataHelper
33
+ mo as ApAttachment,
34
+ X as ApBatchAction,
35
+ Z as ApBatchActionGroup,
36
+ N as ApExpandAlert,
37
+ V as ApExportGroup,
38
+ oo as ApImage,
39
+ W as ApInputRadio,
40
+ O as ApLabel,
41
+ Y as ApLabelGroup,
42
+ to as ApLadder,
43
+ U as ApSelectLayout,
44
+ P as ApStatus,
45
+ Q as ApStatusGroup,
46
+ no as ApTableModal,
47
+ K as ApTitle,
48
+ io as ApTransformDataHelper
53
49
  };
package/es/src/index.d.ts CHANGED
@@ -29,6 +29,7 @@ export * from './ap-download';
29
29
  export * from './check-card';
30
30
  export * from './ap-modal';
31
31
  export * from './ap-list';
32
+ export * from './ap-button';
32
33
  export * from './business';
33
34
  export * from './ap-table';
34
35
  export * from './editable-table';