@aplus-frontend/ui 0.0.32 → 0.0.34

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 (91) hide show
  1. package/es/index.mjs +217 -215
  2. package/es/src/ap-field/select/index.vue.mjs +36 -32
  3. package/es/src/ap-form/ap-form-item-group/helper.d.ts +7 -0
  4. package/es/src/ap-form/ap-form-item-group/helper.mjs +30 -25
  5. package/es/src/ap-form/ap-form-item-group/index.vue.mjs +30 -31
  6. package/es/src/ap-form/ap-form.vue2.mjs +11 -11
  7. package/es/src/ap-form/modal-form/index.vue.d.ts +2 -1
  8. package/es/src/ap-form/modal-form/index.vue.mjs +43 -39
  9. package/es/src/ap-form/search-form/index.vue.mjs +79 -78
  10. package/es/src/ap-modal/utils/createModal.mjs +34 -31
  11. package/es/src/ap-table/ap-table.vue.d.ts +54 -11
  12. package/es/src/ap-table/ap-table.vue.mjs +171 -148
  13. package/es/src/ap-table/hooks/use-table-paging.d.ts +1 -0
  14. package/es/src/ap-table/hooks/use-table-paging.mjs +47 -46
  15. package/es/src/ap-table/hooks/use-table-row-selection.d.ts +60 -0
  16. package/es/src/ap-table/hooks/use-table-row-selection.mjs +62 -0
  17. package/es/src/ap-table/interface.d.ts +14 -2
  18. package/es/src/ap-table/style/ap-table.css +2 -0
  19. package/es/src/ap-tag/ap-tag-group.vue.d.ts +16 -6
  20. package/es/src/ap-tag/ap-tag-group.vue.mjs +81 -61
  21. package/es/src/ap-tag/interface.d.ts +24 -0
  22. package/es/src/ap-tag/style/ap-tag-group.css +8 -0
  23. package/es/src/ap-upload/apUpload.vue.d.ts +3 -3
  24. package/es/src/ap-upload/hooks/useOss.d.ts +3 -3
  25. package/es/src/business/ap-select-layout/index.css +117 -0
  26. package/es/src/business/ap-select-layout/index.d.ts +4 -0
  27. package/es/src/business/ap-select-layout/interface.d.ts +9 -0
  28. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +76 -0
  29. package/es/src/business/ap-select-layout/select-layout.vue.mjs +4 -0
  30. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +145 -0
  31. package/es/src/business/index.d.ts +76 -1
  32. package/es/src/business/index.mjs +9 -6
  33. package/es/src/config-provider/config-provider.d.ts +144 -1
  34. package/es/src/config-provider/config-provider.mjs +35 -29
  35. package/es/src/config-provider/index.mjs +22 -20
  36. package/es/src/design-token/index.mjs +6 -2
  37. package/es/src/editable-table/form-item.vue.d.ts +7 -7
  38. package/es/src/editable-table/form-item.vue.mjs +2 -2
  39. package/es/src/editable-table/index.vue.d.ts +7 -7
  40. package/es/src/editable-table/index.vue.mjs +10 -10
  41. package/es/src/editable-table/interface.d.ts +1 -1
  42. package/es/src/index.mjs +188 -186
  43. package/es/src/theme/ap-select-layout/ap-select-layout.css +117 -0
  44. package/es/src/theme/ap-table/ap-table.css +2 -0
  45. package/es/src/theme/ap-tag/ap-tag-group.css +8 -0
  46. package/lib/index.js +1 -1
  47. package/lib/src/ap-field/select/index.vue.js +1 -1
  48. package/lib/src/ap-form/ap-form-item-group/helper.d.ts +7 -0
  49. package/lib/src/ap-form/ap-form-item-group/helper.js +1 -1
  50. package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
  51. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  52. package/lib/src/ap-form/modal-form/index.vue.d.ts +2 -1
  53. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  54. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  55. package/lib/src/ap-modal/utils/createModal.js +1 -1
  56. package/lib/src/ap-table/ap-table.vue.d.ts +54 -11
  57. package/lib/src/ap-table/ap-table.vue.js +1 -1
  58. package/lib/src/ap-table/hooks/use-table-paging.d.ts +1 -0
  59. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  60. package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +60 -0
  61. package/lib/src/ap-table/hooks/use-table-row-selection.js +1 -0
  62. package/lib/src/ap-table/interface.d.ts +14 -2
  63. package/lib/src/ap-table/style/ap-table.css +2 -0
  64. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +16 -6
  65. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  66. package/lib/src/ap-tag/interface.d.ts +24 -0
  67. package/lib/src/ap-tag/style/ap-tag-group.css +8 -0
  68. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -3
  69. package/lib/src/ap-upload/hooks/useOss.d.ts +3 -3
  70. package/lib/src/business/ap-select-layout/index.css +117 -0
  71. package/lib/src/business/ap-select-layout/index.d.ts +4 -0
  72. package/lib/src/business/ap-select-layout/interface.d.ts +9 -0
  73. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +76 -0
  74. package/lib/src/business/ap-select-layout/select-layout.vue.js +1 -0
  75. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -0
  76. package/lib/src/business/index.d.ts +76 -1
  77. package/lib/src/business/index.js +1 -1
  78. package/lib/src/config-provider/config-provider.d.ts +144 -1
  79. package/lib/src/config-provider/config-provider.js +1 -1
  80. package/lib/src/config-provider/index.js +1 -1
  81. package/lib/src/design-token/index.js +1 -1
  82. package/lib/src/editable-table/form-item.vue.d.ts +7 -7
  83. package/lib/src/editable-table/form-item.vue.js +1 -1
  84. package/lib/src/editable-table/index.vue.d.ts +7 -7
  85. package/lib/src/editable-table/index.vue.js +1 -1
  86. package/lib/src/editable-table/interface.d.ts +1 -1
  87. package/lib/src/index.js +1 -1
  88. package/lib/src/theme/ap-select-layout/ap-select-layout.css +117 -0
  89. package/lib/src/theme/ap-table/ap-table.css +2 -0
  90. package/lib/src/theme/ap-tag/ap-tag-group.css +8 -0
  91. package/package.json +2 -2
@@ -0,0 +1,76 @@
1
+ import { ApSelectItem } from './interface';
2
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
3
+
4
+ declare const _default: <T extends ApSelectItem>(__VLS_props: {
5
+ onAfterEnter?: ((el: Element) => any) | undefined;
6
+ onAfterLeave?: ((el: Element) => any) | undefined;
7
+ title: string;
8
+ request: () => Promise<T[]>;
9
+ onOnSelect?: ((value: T) => any) | undefined;
10
+ defaultFold?: boolean | undefined;
11
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, __VLS_ctx?: {
12
+ attrs: any;
13
+ slots: {
14
+ itemRender?(_: {
15
+ item: T;
16
+ }): any;
17
+ default?(_: {}): any;
18
+ };
19
+ emit: {
20
+ (event: 'onSelect', value: T): void;
21
+ (event: 'afterEnter', el: Element): void;
22
+ (event: 'afterLeave', el: Element): void;
23
+ };
24
+ } | undefined, __VLS_expose?: ((exposed: ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
25
+ props: {
26
+ onAfterEnter?: ((el: Element) => any) | undefined;
27
+ onAfterLeave?: ((el: Element) => any) | undefined;
28
+ title: string;
29
+ request: () => Promise<T[]>;
30
+ onOnSelect?: ((value: T) => any) | undefined;
31
+ defaultFold?: boolean | undefined;
32
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
33
+ expose(exposed: ShallowUnwrapRef<{}>): void;
34
+ attrs: any;
35
+ slots: {
36
+ itemRender?(_: {
37
+ item: T;
38
+ }): any;
39
+ default?(_: {}): any;
40
+ };
41
+ emit: {
42
+ (event: 'onSelect', value: T): void;
43
+ (event: 'afterEnter', el: Element): void;
44
+ (event: 'afterLeave', el: Element): void;
45
+ };
46
+ }>) => VNode<RendererNode, RendererElement, {
47
+ [key: string]: any;
48
+ }> & {
49
+ __ctx?: {
50
+ props: {
51
+ onAfterEnter?: ((el: Element) => any) | undefined;
52
+ onAfterLeave?: ((el: Element) => any) | undefined;
53
+ title: string;
54
+ request: () => Promise<T[]>;
55
+ onOnSelect?: ((value: T) => any) | undefined;
56
+ defaultFold?: boolean | undefined;
57
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
58
+ expose(exposed: ShallowUnwrapRef<{}>): void;
59
+ attrs: any;
60
+ slots: {
61
+ itemRender?(_: {
62
+ item: T;
63
+ }): any;
64
+ default?(_: {}): any;
65
+ };
66
+ emit: {
67
+ (event: 'onSelect', value: T): void;
68
+ (event: 'afterEnter', el: Element): void;
69
+ (event: 'afterLeave', el: Element): void;
70
+ };
71
+ } | undefined;
72
+ };
73
+ export default _default;
74
+ type __VLS_Prettify<T> = {
75
+ [K in keyof T]: T[K];
76
+ } & {};
@@ -0,0 +1,4 @@
1
+ import f from "./select-layout.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,145 @@
1
+ import { defineComponent as M, ref as s, computed as O, onMounted as U, openBlock as p, createElementBlock as v, normalizeClass as n, unref as e, createVNode as r, Transition as W, withCtx as i, withDirectives as S, createElementVNode as a, toDisplayString as $, createTextVNode as x, Fragment as z, renderList as R, renderSlot as A, vShow as N, createCommentVNode as j } from "vue";
2
+ import "../../ap-field/index.mjs";
3
+ import { IconApLeftarrow as G, IconApMenu as H } from "@aplus-frontend/icon";
4
+ import "../../config-provider/index.mjs";
5
+ import { Tooltip as V, TypographyText as J } from "ant-design-vue";
6
+ import { debounce as K } from "lodash-unified";
7
+ import "./index.css";
8
+ import { useNamespace as P } from "../../config-provider/hooks/use-namespace.mjs";
9
+ import { ApFieldText as Q } from "../../ap-field/text/index.mjs";
10
+ const X = ["onClick"], de = /* @__PURE__ */ M({
11
+ __name: "select-layout",
12
+ props: {
13
+ title: {},
14
+ request: {},
15
+ defaultFold: { type: Boolean, default: !1 }
16
+ },
17
+ emits: ["onSelect", "afterEnter", "afterLeave"],
18
+ setup(_, { emit: w }) {
19
+ const { b: m, be: f, bem: d } = P("ap-select-layout"), c = _, h = w, y = s(), u = s(c.defaultFold), C = s(!c.defaultFold), g = s(), T = s(), b = s(), k = s(""), L = () => {
20
+ u.value = !u.value, g.value = !1, T.value = !1;
21
+ }, F = (t) => {
22
+ b.value = t, h("onSelect", t);
23
+ }, B = K((t) => {
24
+ var l;
25
+ k.value = (l = t.target) == null ? void 0 : l.value;
26
+ }, 500), q = O(() => {
27
+ var t;
28
+ return (t = y.value) == null ? void 0 : t.filter((l) => l.name.includes(k.value));
29
+ }), D = (t) => {
30
+ C.value = !0, h("afterEnter", t);
31
+ }, I = (t) => {
32
+ C.value = !1, h("afterLeave", t);
33
+ };
34
+ return U(() => {
35
+ c.request().then((t) => {
36
+ var l;
37
+ y.value = t, F((l = y.value) == null ? void 0 : l[0]);
38
+ });
39
+ }), (t, l) => {
40
+ var E;
41
+ return p(), v("div", {
42
+ class: n(e(m)())
43
+ }, [
44
+ r(W, {
45
+ mode: "out-in",
46
+ onAfterEnter: D,
47
+ onAfterLeave: I
48
+ }, {
49
+ default: i(() => [
50
+ S(a("div", {
51
+ class: n(e(m)("side"))
52
+ }, [
53
+ a("div", {
54
+ class: n(e(f)("side", "header"))
55
+ }, [
56
+ a("h3", null, $(c.title), 1),
57
+ a("div", {
58
+ class: n(e(d)("side", "header", "imgWrap"))
59
+ }, [
60
+ r(e(V), {
61
+ open: g.value,
62
+ "onUpdate:open": l[0] || (l[0] = (o) => g.value = o)
63
+ }, {
64
+ title: i(() => [
65
+ x("收起")
66
+ ]),
67
+ default: i(() => [
68
+ r(e(G), { onClick: L })
69
+ ]),
70
+ _: 1
71
+ }, 8, ["open"])
72
+ ], 2)
73
+ ], 2),
74
+ a("div", {
75
+ class: n(e(f)("side", "body"))
76
+ }, [
77
+ a("div", {
78
+ class: n(e(d)("side", "body", "search"))
79
+ }, [
80
+ r(e(Q), {
81
+ placeholder: "请输入",
82
+ onChange: e(B)
83
+ }, null, 8, ["onChange"])
84
+ ], 2),
85
+ a("div", {
86
+ class: n(e(d)("side", "body", "scroll"))
87
+ }, [
88
+ (p(!0), v(z, null, R(q.value, (o) => S((p(), v("div", {
89
+ key: o.value,
90
+ class: n(`${e(d)("side", "body", "scroll-item")} ${b.value === o ? "active" : ""}`),
91
+ onClick: (Y) => F(o)
92
+ }, [
93
+ A(t.$slots, "itemRender", { item: o }, () => [
94
+ r(e(J), {
95
+ ellipsis: { tooltip: o.name },
96
+ content: `${o.name}`
97
+ }, null, 8, ["ellipsis", "content"])
98
+ ])
99
+ ], 10, X)), [
100
+ [N, C.value]
101
+ ])), 128))
102
+ ], 2)
103
+ ], 2)
104
+ ], 2), [
105
+ [N, !u.value]
106
+ ])
107
+ ]),
108
+ _: 3
109
+ }),
110
+ a("div", {
111
+ class: n(e(m)("content"))
112
+ }, [
113
+ a("div", {
114
+ class: n(e(f)("content", "header"))
115
+ }, [
116
+ u.value ? (p(), v("div", {
117
+ key: 0,
118
+ class: n(e(d)("content", "header", "imgWrap"))
119
+ }, [
120
+ r(e(V), {
121
+ open: T.value,
122
+ "onUpdate:open": l[1] || (l[1] = (o) => T.value = o)
123
+ }, {
124
+ title: i(() => [
125
+ x("展开")
126
+ ]),
127
+ default: i(() => [
128
+ r(e(H), { onClick: L })
129
+ ]),
130
+ _: 1
131
+ }, 8, ["open"])
132
+ ], 2)) : j("", !0),
133
+ a("div", {
134
+ class: n(e(d)("content", "header", "title"))
135
+ }, $((E = b.value) == null ? void 0 : E.name), 3)
136
+ ], 2),
137
+ A(t.$slots, "default")
138
+ ], 2)
139
+ ], 2);
140
+ };
141
+ }
142
+ });
143
+ export {
144
+ de as default
145
+ };
@@ -1,11 +1,13 @@
1
- import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin, CSSProperties } from 'vue';
1
+ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin, CSSProperties, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
2
2
  import { LiteralUnion } from 'ant-design-vue/es/_util/type';
3
3
  import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
4
4
  import { ApStatusProps } from './ap-status/interface';
5
+ import { ApSelectItem } from './ap-select-layout/interface';
5
6
  export type { ApTitleProps } from './title/interface';
6
7
  export type { ApExpandAlertProps } from './expandAlert/interface';
7
8
  export type { ApLabelProps } from './ap-label/interface';
8
9
  export type { ApStatusProps, ApStatusGroupProps, ApStatusGroupItemProps } from './ap-status/interface';
10
+ export type { ApSelectItem, ApSelectLayoutProps } from './ap-select-layout/interface';
9
11
  export declare const ApTitle: {
10
12
  new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
11
13
  trigger: {
@@ -839,3 +841,76 @@ export declare const ApStatusGroup: {
839
841
  onClick?: (() => void) | undefined;
840
842
  };
841
843
  });
844
+ export declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: {
845
+ onAfterEnter?: ((el: Element) => any) | undefined;
846
+ onAfterLeave?: ((el: Element) => any) | undefined;
847
+ title: string;
848
+ request: () => Promise<T[]>;
849
+ onOnSelect?: ((value: T) => any) | undefined;
850
+ defaultFold?: boolean | undefined;
851
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, __VLS_ctx?: {
852
+ attrs: any;
853
+ slots: {
854
+ itemRender?(_: {
855
+ item: T;
856
+ }): any;
857
+ default?(_: {}): any;
858
+ };
859
+ emit: {
860
+ (event: "onSelect", value: T): void;
861
+ (event: "afterEnter", el: Element): void;
862
+ (event: "afterLeave", el: Element): void;
863
+ };
864
+ } | undefined, __VLS_expose?: ((exposed: ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
865
+ props: {
866
+ onAfterEnter?: ((el: Element) => any) | undefined;
867
+ onAfterLeave?: ((el: Element) => any) | undefined;
868
+ title: string;
869
+ request: () => Promise<T[]>;
870
+ onOnSelect?: ((value: T) => any) | undefined;
871
+ defaultFold?: boolean | undefined;
872
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
873
+ expose(exposed: ShallowUnwrapRef<{}>): void;
874
+ attrs: any;
875
+ slots: {
876
+ itemRender?(_: {
877
+ item: T;
878
+ }): any;
879
+ default?(_: {}): any;
880
+ };
881
+ emit: {
882
+ (event: "onSelect", value: T): void;
883
+ (event: "afterEnter", el: Element): void;
884
+ (event: "afterLeave", el: Element): void;
885
+ };
886
+ }>) => VNode<RendererNode, RendererElement, {
887
+ [key: string]: any;
888
+ }> & {
889
+ __ctx?: {
890
+ props: {
891
+ onAfterEnter?: ((el: Element) => any) | undefined;
892
+ onAfterLeave?: ((el: Element) => any) | undefined;
893
+ title: string;
894
+ request: () => Promise<T[]>;
895
+ onOnSelect?: ((value: T) => any) | undefined;
896
+ defaultFold?: boolean | undefined;
897
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
898
+ expose(exposed: ShallowUnwrapRef<{}>): void;
899
+ attrs: any;
900
+ slots: {
901
+ itemRender?(_: {
902
+ item: T;
903
+ }): any;
904
+ default?(_: {}): any;
905
+ };
906
+ emit: {
907
+ (event: "onSelect", value: T): void;
908
+ (event: "afterEnter", el: Element): void;
909
+ (event: "afterLeave", el: Element): void;
910
+ };
911
+ } | undefined;
912
+ }) & Plugin & (new (...args: any[]) => {
913
+ $props: {
914
+ onClick?: (() => void) | undefined;
915
+ };
916
+ });
@@ -4,16 +4,19 @@ import "./expandAlert/ApExpandAlert.vue.mjs";
4
4
  import "./ap-label/ApLabel.vue.mjs";
5
5
  import "./ap-status/ApStatus.vue.mjs";
6
6
  import "./ap-status/ApStatusGroup.vue.mjs";
7
+ import "./ap-select-layout/select-layout.vue.mjs";
7
8
  import o from "./title/ApTitle.vue2.mjs";
8
9
  import m from "./expandAlert/ApExpandAlert.vue2.mjs";
9
10
  import r from "./ap-label/ApLabel.vue2.mjs";
10
11
  import p from "./ap-status/ApStatus.vue2.mjs";
11
12
  import i from "./ap-status/ApStatusGroup.vue2.mjs";
12
- const x = t(o), S = m, b = t(r), d = t(p), h = t(i);
13
+ import s from "./ap-select-layout/select-layout.vue2.mjs";
14
+ const b = t(o), d = m, h = t(r), w = t(p), y = t(i), E = t(s);
13
15
  export {
14
- S as ApExpandAlert,
15
- b as ApLabel,
16
- d as ApStatus,
17
- h as ApStatusGroup,
18
- x as ApTitle
16
+ d as ApExpandAlert,
17
+ h as ApLabel,
18
+ E as ApSelectLayout,
19
+ w as ApStatus,
20
+ y as ApStatusGroup,
21
+ b as ApTitle
19
22
  };
@@ -1,4 +1,4 @@
1
- import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
1
+ import { Ref, ExtractPropTypes, PropType, DefineComponent, ComponentOptionsMixin, PublicProps } from 'vue';
2
2
  import { default as __DTS_DEFAULT_0__ } from 'ant-design-vue/es/config-provider/renderEmpty';
3
3
  import { TransformCellTextProps } from 'ant-design-vue/es/table/interface';
4
4
  import { CSPConfig } from 'ant-design-vue/es/config-provider';
@@ -9,6 +9,149 @@ import { RequiredMark } from 'ant-design-vue/es/form/Form';
9
9
  import { ThemeConfig } from 'ant-design-vue/es/config-provider/context';
10
10
  import { LocaleType } from 'src';
11
11
  import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig } from './constants';
12
+
13
+ export declare const globalConfigCached: Ref<Partial< ExtractPropTypes<{
14
+ iconPrefixCls: StringConstructor;
15
+ getTargetContainer: {
16
+ type: PropType<() => Window | HTMLElement>;
17
+ };
18
+ getPopupContainer: {
19
+ type: PropType<(triggerNode?: HTMLElement | undefined) => HTMLElement>;
20
+ };
21
+ prefixCls: StringConstructor;
22
+ getPrefixCls: {
23
+ type: PropType<(suffixCls?: string | undefined, customizePrefixCls?: string | undefined) => string>;
24
+ };
25
+ renderEmpty: {
26
+ type: PropType<__DTS_DEFAULT_0__>;
27
+ };
28
+ transformCellText: {
29
+ type: PropType<(tableProps: TransformCellTextProps) => any>;
30
+ };
31
+ csp: {
32
+ type: PropType<CSPConfig>;
33
+ default: CSPConfig;
34
+ };
35
+ input: {
36
+ type: PropType<{
37
+ autocomplete?: string | undefined;
38
+ }>;
39
+ default: {
40
+ autocomplete?: string | undefined;
41
+ };
42
+ };
43
+ autoInsertSpaceInButton: {
44
+ type: BooleanConstructor;
45
+ default: any;
46
+ };
47
+ locale: {
48
+ type: PropType<Locale>;
49
+ default: Locale;
50
+ };
51
+ pageHeader: {
52
+ type: PropType<{
53
+ ghost?: boolean | undefined;
54
+ }>;
55
+ default: {
56
+ ghost?: boolean | undefined;
57
+ };
58
+ };
59
+ componentSize: {
60
+ type: PropType<ButtonSize>;
61
+ };
62
+ componentDisabled: {
63
+ type: BooleanConstructor;
64
+ default: any;
65
+ };
66
+ direction: {
67
+ type: PropType<"ltr" | "rtl">;
68
+ default: string;
69
+ };
70
+ space: {
71
+ type: PropType<{
72
+ size?: number | ButtonSize;
73
+ }>;
74
+ default: {
75
+ size?: number | ButtonSize;
76
+ };
77
+ };
78
+ virtual: {
79
+ type: BooleanConstructor;
80
+ default: any;
81
+ };
82
+ dropdownMatchSelectWidth: {
83
+ type: (BooleanConstructor | NumberConstructor)[];
84
+ default: boolean;
85
+ };
86
+ form: {
87
+ type: PropType<{
88
+ validateMessages?: ValidateMessages | undefined;
89
+ requiredMark?: RequiredMark | undefined;
90
+ colon?: boolean | undefined;
91
+ }>;
92
+ default: {
93
+ validateMessages?: ValidateMessages | undefined;
94
+ requiredMark?: RequiredMark | undefined;
95
+ colon?: boolean | undefined;
96
+ };
97
+ };
98
+ pagination: {
99
+ type: PropType<{
100
+ showSizeChanger?: boolean | undefined;
101
+ }>;
102
+ default: {
103
+ showSizeChanger?: boolean | undefined;
104
+ };
105
+ };
106
+ theme: {
107
+ type: PropType<ThemeConfig>;
108
+ default: ThemeConfig;
109
+ };
110
+ select: {
111
+ type: PropType<{
112
+ showSearch?: boolean | undefined;
113
+ }>;
114
+ default: {
115
+ showSearch?: boolean | undefined;
116
+ };
117
+ };
118
+ wave: {
119
+ type: PropType<{
120
+ disabled?: boolean | undefined;
121
+ }>;
122
+ default: {
123
+ disabled?: boolean | undefined;
124
+ };
125
+ };
126
+ aplusLocale: {
127
+ type: PropType<LocaleType>;
128
+ };
129
+ namespace: {
130
+ type: StringConstructor;
131
+ default: string;
132
+ };
133
+ api: {
134
+ type: PropType<ApiType>;
135
+ default: () => {};
136
+ };
137
+ table: {
138
+ type: PropType<TableDefaultConfig>;
139
+ };
140
+ scrollbar: {
141
+ type: PropType<ScrollbarGlobalConfig>;
142
+ default: () => {
143
+ native: boolean;
144
+ };
145
+ };
146
+ uiMode: {
147
+ type: PropType<"aplus" | "admin">;
148
+ default: string;
149
+ };
150
+ apUpload: {
151
+ type: PropType<ApUploadConfig>;
152
+ default: () => {};
153
+ };
154
+ }>>>;
12
155
  export declare const ConfigProvider: DefineComponent<{
13
156
  iconPrefixCls: StringConstructor;
14
157
  getTargetContainer: {
@@ -1,40 +1,46 @@
1
- import { isVNode as a, defineComponent as n, computed as l, createVNode as f, renderSlot as c } from "vue";
2
- import { ConfigProvider as d } from "ant-design-vue";
3
- import { provideGlobalConfig as m } from "./hooks/use-global-config.mjs";
4
- import { configProviderProps as u } from "./config-provider-props.mjs";
5
- import { tableDefaultConfig as p } from "./constants.mjs";
6
- import { mergeAntdProvideConfig as g } from "../utils/config-provider-preset.mjs";
7
- function b(o) {
8
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !a(o);
1
+ import { isVNode as l, ref as n, defineComponent as f, computed as c, watch as d, createVNode as m, renderSlot as u } from "vue";
2
+ import { ConfigProvider as p } from "ant-design-vue";
3
+ import { provideGlobalConfig as g } from "./hooks/use-global-config.mjs";
4
+ import { configProviderProps as b } from "./config-provider-props.mjs";
5
+ import { tableDefaultConfig as v } from "./constants.mjs";
6
+ import { mergeAntdProvideConfig as C } from "../utils/config-provider-preset.mjs";
7
+ function s(e) {
8
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !l(e);
9
9
  }
10
- const y = /* @__PURE__ */ n({
10
+ const r = n({}), L = /* @__PURE__ */ f({
11
11
  name: "AplusConfigProvider",
12
- props: u(),
13
- setup(o, {
14
- slots: r
12
+ props: b(),
13
+ setup(e, {
14
+ slots: a
15
15
  }) {
16
- const i = l(() => ({
17
- namespace: o.namespace,
18
- aplusLocale: o.aplusLocale,
19
- api: o.api,
16
+ const i = c(() => ({
17
+ namespace: e.namespace,
18
+ aplusLocale: e.aplusLocale,
19
+ api: e.api,
20
20
  table: {
21
- ...p,
22
- ...o.table || {}
21
+ ...v,
22
+ ...e.table || {}
23
23
  },
24
- scrollbar: o.scrollbar,
25
- uiMode: o.uiMode,
26
- apUpload: o.apUpload
27
- })), e = m(i);
28
- return () => {
29
- let t;
30
- return f(d, g(o), b(t = c(r, "default", {
31
- config: e == null ? void 0 : e.value
32
- })) ? t : {
33
- default: () => [t]
24
+ scrollbar: e.scrollbar,
25
+ uiMode: e.uiMode,
26
+ apUpload: e.apUpload
27
+ })), t = g(i);
28
+ return d(() => e, (o) => {
29
+ r.value = C(o);
30
+ }, {
31
+ deep: !0,
32
+ immediate: !0
33
+ }), () => {
34
+ let o;
35
+ return m(p, r.value, s(o = u(a, "default", {
36
+ config: t == null ? void 0 : t.value
37
+ })) ? o : {
38
+ default: () => [o]
34
39
  });
35
40
  };
36
41
  }
37
42
  });
38
43
  export {
39
- y as ConfigProvider
44
+ L as ConfigProvider,
45
+ r as globalConfigCached
40
46
  };
@@ -1,28 +1,30 @@
1
1
  import { withInstall as e } from "@aplus-frontend/utils";
2
2
  import { ConfigProvider as o } from "./config-provider.mjs";
3
- import { configProviderProps as l } from "./config-provider-props.mjs";
4
- import { configProviderContextKey as s, tableDefaultConfig as p } from "./constants.mjs";
5
- import { keysOf as c, provideGlobalConfig as d, useGlobalConfig as x } from "./hooks/use-global-config.mjs";
6
- import { buildLocaleContext as C, buildTranslator as g, localeContextKey as v, translate as P, useLocale as b } from "./hooks/use-locale.mjs";
7
- import { defaultNamespace as G, namespaceContextKey as K, useGetDerivedNamespace as N, useNamespace as D } from "./hooks/use-namespace.mjs";
3
+ import { globalConfigCached as i } from "./config-provider.mjs";
4
+ import { configProviderProps as p } from "./config-provider-props.mjs";
5
+ import { configProviderContextKey as m, tableDefaultConfig as c } from "./constants.mjs";
6
+ import { keysOf as x, provideGlobalConfig as C, useGlobalConfig as g } from "./hooks/use-global-config.mjs";
7
+ import { buildLocaleContext as b, buildTranslator as v, localeContextKey as P, translate as y, useLocale as G } from "./hooks/use-locale.mjs";
8
+ import { defaultNamespace as N, namespaceContextKey as h, useGetDerivedNamespace as D, useNamespace as L } from "./hooks/use-namespace.mjs";
8
9
  const a = e(o);
9
10
  export {
10
11
  a as APConfigProvider,
11
12
  o as ConfigProvider,
12
- C as buildLocaleContext,
13
- g as buildTranslator,
14
- s as configProviderContextKey,
15
- l as configProviderProps,
13
+ b as buildLocaleContext,
14
+ v as buildTranslator,
15
+ m as configProviderContextKey,
16
+ p as configProviderProps,
16
17
  a as default,
17
- G as defaultNamespace,
18
- c as keysOf,
19
- v as localeContextKey,
20
- K as namespaceContextKey,
21
- d as provideGlobalConfig,
22
- p as tableDefaultConfig,
23
- P as translate,
24
- N as useGetDerivedNamespace,
25
- x as useGlobalConfig,
26
- b as useLocale,
27
- D as useNamespace
18
+ N as defaultNamespace,
19
+ i as globalConfigCached,
20
+ x as keysOf,
21
+ P as localeContextKey,
22
+ h as namespaceContextKey,
23
+ C as provideGlobalConfig,
24
+ c as tableDefaultConfig,
25
+ y as translate,
26
+ D as useGetDerivedNamespace,
27
+ g as useGlobalConfig,
28
+ G as useLocale,
29
+ L as useNamespace
28
30
  };
@@ -28,7 +28,9 @@ const o = {
28
28
  colorBgContainerDisabled: "#F9F9FA",
29
29
  wireframe: !1,
30
30
  colorBgLayout: "#F2F6F9",
31
- colorBgSpotlight: "#000000cc"
31
+ colorBgSpotlight: "#000000cc",
32
+ controlItemBgActive: "#F5F9FF",
33
+ controlItemBgActiveHover: "#EAF2FF"
32
34
  }, c = {
33
35
  ...o,
34
36
  // 主色
@@ -57,7 +59,9 @@ const o = {
57
59
  colorLink: "#1890FF",
58
60
  wireframe: !1,
59
61
  colorBgLayout: "#FAFAFA",
60
- colorBgSpotlight: "#000000cc"
62
+ colorBgSpotlight: "#000000cc",
63
+ controlItemBgActive: "#f3fbf7",
64
+ controlItemBgActiveHover: "#e6f6ef"
61
65
  };
62
66
  export {
63
67
  c as adminToken,