@aplus-frontend/ui 0.0.1-beta.5 → 0.0.1-beta.6
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.
- package/es/index.mjs +86 -65
- package/es/src/ap-field/checkbox/helper.mjs +5 -0
- package/es/src/ap-field/checkbox/index.vue.d.ts +39 -0
- package/es/src/ap-field/checkbox/index.vue.mjs +56 -0
- package/es/src/ap-field/checkbox/index.vue2.mjs +4 -0
- package/es/src/ap-field/date/constant.mjs +50 -0
- package/es/src/ap-field/date/helper.d.ts +2 -0
- package/es/src/ap-field/date/helper.mjs +10 -0
- package/es/src/ap-field/date/index.vue.d.ts +57 -0
- package/es/src/ap-field/date/index.vue.mjs +75 -0
- package/es/src/ap-field/date/index.vue2.mjs +4 -0
- package/es/src/ap-field/date-range/index.vue.d.ts +59 -0
- package/es/src/ap-field/date-range/index.vue.mjs +87 -0
- package/es/src/ap-field/date-range/index.vue2.mjs +4 -0
- package/es/src/ap-field/index.d.ts +9 -3
- package/es/src/ap-field/interface.d.ts +64 -5
- package/es/src/ap-field/number/helper.d.ts +1 -0
- package/es/src/ap-field/number/helper.mjs +14 -0
- package/es/src/ap-field/number/index.vue.d.ts +72 -0
- package/es/src/ap-field/number/index.vue.mjs +108 -0
- package/es/src/ap-field/number/index.vue2.mjs +4 -0
- package/es/src/ap-field/number/style.css +6 -0
- package/es/src/ap-field/radio/helper.d.ts +4 -0
- package/es/src/ap-field/radio/helper.mjs +5 -0
- package/es/src/ap-field/radio/index.vue.d.ts +40 -0
- package/es/src/ap-field/radio/index.vue.mjs +68 -0
- package/es/src/ap-field/radio/index.vue2.mjs +4 -0
- package/es/src/ap-field/select/index.vue.d.ts +235 -0
- package/es/src/ap-field/select/index.vue.mjs +114 -0
- package/es/src/ap-field/select/index.vue2.mjs +4 -0
- package/es/src/ap-field/switch/index.vue.d.ts +54 -0
- package/es/src/ap-field/switch/index.vue.mjs +93 -0
- package/es/src/ap-field/switch/index.vue2.mjs +4 -0
- package/es/src/ap-field/text/index.vue.d.ts +63 -0
- package/es/src/ap-field/text/index.vue.mjs +132 -0
- package/es/src/ap-field/text/index.vue2.mjs +4 -0
- package/es/src/ap-field/text-area/index.vue.d.ts +49 -0
- package/es/src/ap-field/text-area/index.vue.mjs +86 -0
- package/es/src/ap-field/text-area/index.vue2.mjs +4 -0
- package/es/src/ap-field/text-area/style.css +5 -0
- package/es/src/ap-form/index.d.ts +12 -12
- package/es/src/basic/help.vue.d.ts +1 -1
- package/es/src/basic/index.d.ts +3 -3
- package/es/src/config-provider/config-provider.d.ts +2 -2
- package/es/src/config-provider/index.d.ts +6 -6
- package/es/src/design-token/index.d.ts +4 -0
- package/es/src/design-token/index.mjs +59 -0
- package/es/src/index.d.ts +2 -0
- package/es/src/index.mjs +104 -83
- package/es/src/modal/basic.vue.d.ts +1 -1
- package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/es/src/modal/components/modal.d.ts +1 -1
- package/es/src/modal/index.d.ts +3 -3
- package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/es/src/pro-form/hooks/use-form-events.mjs +22 -22
- package/es/src/pro-form/hooks/use-form-values.mjs +12 -12
- package/es/src/pro-form/hooks/use-label-width.d.ts +3 -3
- package/es/src/pro-form/pro-form.vue.mjs +23 -23
- package/es/src/pro-table/hooks/use-columns.mjs +24 -24
- package/es/src/theme/ap-field/number.css +6 -0
- package/es/src/theme/ap-field/text-area.css +5 -0
- package/es/src/type.d.ts +3 -1
- package/es/src/utils/index.d.ts +7 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-field/checkbox/helper.js +1 -0
- package/lib/src/ap-field/checkbox/index.vue.d.ts +39 -0
- package/lib/src/ap-field/checkbox/index.vue.js +1 -0
- package/lib/src/ap-field/checkbox/index.vue2.js +1 -0
- package/lib/src/ap-field/date/constant.js +1 -0
- package/lib/src/ap-field/date/helper.d.ts +2 -0
- package/lib/src/ap-field/date/helper.js +1 -0
- package/lib/src/ap-field/date/index.vue.d.ts +57 -0
- package/lib/src/ap-field/date/index.vue.js +1 -0
- package/lib/src/ap-field/date/index.vue2.js +1 -0
- package/lib/src/ap-field/date-range/index.vue.d.ts +59 -0
- package/lib/src/ap-field/date-range/index.vue.js +1 -0
- package/lib/src/ap-field/date-range/index.vue2.js +1 -0
- package/lib/src/ap-field/index.d.ts +9 -3
- package/lib/src/ap-field/interface.d.ts +64 -5
- package/lib/src/ap-field/number/helper.d.ts +1 -0
- package/lib/src/ap-field/number/helper.js +1 -0
- package/lib/src/ap-field/number/index.vue.d.ts +72 -0
- package/lib/src/ap-field/number/index.vue.js +1 -0
- package/lib/src/ap-field/number/index.vue2.js +1 -0
- package/lib/src/ap-field/number/style.css +6 -0
- package/lib/src/ap-field/radio/helper.d.ts +4 -0
- package/lib/src/ap-field/radio/helper.js +1 -0
- package/lib/src/ap-field/radio/index.vue.d.ts +40 -0
- package/lib/src/ap-field/radio/index.vue.js +1 -0
- package/lib/src/ap-field/radio/index.vue2.js +1 -0
- package/lib/src/ap-field/select/index.vue.d.ts +235 -0
- package/lib/src/ap-field/select/index.vue.js +1 -0
- package/lib/src/ap-field/select/index.vue2.js +1 -0
- package/lib/src/ap-field/switch/index.vue.d.ts +54 -0
- package/lib/src/ap-field/switch/index.vue.js +1 -0
- package/lib/src/ap-field/switch/index.vue2.js +1 -0
- package/lib/src/ap-field/text/index.vue.d.ts +63 -0
- package/lib/src/ap-field/text/index.vue.js +1 -0
- package/lib/src/ap-field/text/index.vue2.js +1 -0
- package/lib/src/ap-field/text-area/index.vue.d.ts +49 -0
- package/lib/src/ap-field/text-area/index.vue.js +1 -0
- package/lib/src/ap-field/text-area/index.vue2.js +1 -0
- package/lib/src/ap-field/text-area/style.css +5 -0
- package/lib/src/ap-form/index.d.ts +12 -12
- package/lib/src/basic/help.vue.d.ts +1 -1
- package/lib/src/basic/index.d.ts +3 -3
- package/lib/src/config-provider/config-provider.d.ts +2 -2
- package/lib/src/config-provider/index.d.ts +6 -6
- package/lib/src/design-token/index.d.ts +4 -0
- package/lib/src/design-token/index.js +1 -0
- package/lib/src/index.d.ts +2 -0
- package/lib/src/index.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/lib/src/modal/components/modal.d.ts +1 -1
- package/lib/src/modal/index.d.ts +3 -3
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-form-events.js +1 -1
- package/lib/src/pro-form/hooks/use-form-values.js +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +3 -3
- package/lib/src/pro-form/pro-form.vue.js +1 -1
- package/lib/src/pro-table/hooks/use-columns.js +1 -1
- package/lib/src/theme/ap-field/number.css +6 -0
- package/lib/src/theme/ap-field/text-area.css +5 -0
- package/lib/src/type.d.ts +3 -1
- package/lib/src/utils/index.d.ts +7 -0
- package/package.json +2 -2
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ApFieldTextAreaProps, FieldMode } from '../interface';
|
|
2
|
+
import { InputFocusOptions } from 'ant-design-vue/es/vc-input/utils/commonUtils';
|
|
3
|
+
import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
+
|
|
5
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFieldTextAreaProps>, {
|
|
6
|
+
emptyText: string;
|
|
7
|
+
bordered: boolean;
|
|
8
|
+
mode: string;
|
|
9
|
+
type: string;
|
|
10
|
+
lazy: boolean;
|
|
11
|
+
}>, {
|
|
12
|
+
focus: (options?: InputFocusOptions | undefined) => void;
|
|
13
|
+
blur: () => void;
|
|
14
|
+
resizableTextArea: ComputedRef<any>;
|
|
15
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
16
|
+
"update:value": (...args: any[]) => void;
|
|
17
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFieldTextAreaProps>, {
|
|
18
|
+
emptyText: string;
|
|
19
|
+
bordered: boolean;
|
|
20
|
+
mode: string;
|
|
21
|
+
type: string;
|
|
22
|
+
lazy: boolean;
|
|
23
|
+
}>>> & {
|
|
24
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
mode: FieldMode;
|
|
27
|
+
type: "number" | "hidden" | "button" | "time" | "reset" | "submit" | "image" | "text" | "search" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
28
|
+
lazy: boolean;
|
|
29
|
+
bordered: boolean;
|
|
30
|
+
emptyText: string;
|
|
31
|
+
}, {}>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
35
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
36
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
37
|
+
} : {
|
|
38
|
+
type: PropType<T[K]>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
type __VLS_WithDefaults<P, D> = {
|
|
43
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
44
|
+
default: D[K];
|
|
45
|
+
}> : P[K];
|
|
46
|
+
};
|
|
47
|
+
type __VLS_Prettify<T> = {
|
|
48
|
+
[K in keyof T]: T[K];
|
|
49
|
+
} & {};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineComponent as c, ref as f, computed as y, openBlock as r, createElementBlock as B, normalizeClass as x, unref as o, toDisplayString as v, createBlock as b, mergeProps as z } from "vue";
|
|
2
|
+
import { isNil as C } from "lodash-unified";
|
|
3
|
+
import "../../hooks/useMessage.mjs";
|
|
4
|
+
import { useControllableValue as h } from "../../hooks/useControllableValue.mjs";
|
|
5
|
+
import "../../config-provider/index.mjs";
|
|
6
|
+
import { Input as g } from "ant-design-vue";
|
|
7
|
+
import "./style.css";
|
|
8
|
+
import { useNamespace as A } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
const I = /* @__PURE__ */ c({
|
|
10
|
+
name: "ApFieldTextArea",
|
|
11
|
+
__name: "index",
|
|
12
|
+
props: {
|
|
13
|
+
mode: { default: "edit" },
|
|
14
|
+
rows: {},
|
|
15
|
+
autosize: { type: [Boolean, Object] },
|
|
16
|
+
autoSize: { type: [Boolean, Object] },
|
|
17
|
+
onResize: {},
|
|
18
|
+
onCompositionstart: {},
|
|
19
|
+
onCompositionend: {},
|
|
20
|
+
valueModifiers: {},
|
|
21
|
+
size: {},
|
|
22
|
+
value: {},
|
|
23
|
+
name: {},
|
|
24
|
+
type: { default: "text" },
|
|
25
|
+
onFocus: {},
|
|
26
|
+
onBlur: {},
|
|
27
|
+
onChange: {},
|
|
28
|
+
onInput: {},
|
|
29
|
+
onKeydown: {},
|
|
30
|
+
onKeyup: {},
|
|
31
|
+
focused: { type: Boolean },
|
|
32
|
+
hidden: { type: Boolean },
|
|
33
|
+
disabled: { type: Boolean },
|
|
34
|
+
prefixCls: {},
|
|
35
|
+
id: {},
|
|
36
|
+
autofocus: { type: Boolean },
|
|
37
|
+
autocomplete: {},
|
|
38
|
+
readonly: { type: Boolean },
|
|
39
|
+
status: {},
|
|
40
|
+
defaultValue: {},
|
|
41
|
+
"onUpdate:value": {},
|
|
42
|
+
placeholder: {},
|
|
43
|
+
loading: { type: Boolean },
|
|
44
|
+
lazy: { type: Boolean, default: !0 },
|
|
45
|
+
maxlength: {},
|
|
46
|
+
bordered: { type: Boolean, default: !0 },
|
|
47
|
+
showCount: { type: [Boolean, Object] },
|
|
48
|
+
htmlSize: {},
|
|
49
|
+
onPressEnter: {},
|
|
50
|
+
inputElement: {},
|
|
51
|
+
triggerFocus: {},
|
|
52
|
+
handleReset: {},
|
|
53
|
+
clearIcon: {},
|
|
54
|
+
allowClear: { type: Boolean },
|
|
55
|
+
emptyText: { default: "-" }
|
|
56
|
+
},
|
|
57
|
+
emits: ["update:value"],
|
|
58
|
+
setup(u, { expose: p, emit: s }) {
|
|
59
|
+
const t = f(), n = u, i = s, { value: a, updateValue: d } = h(n, i), { b: m } = A("field-text-area");
|
|
60
|
+
return p({
|
|
61
|
+
focus: (e) => {
|
|
62
|
+
var l;
|
|
63
|
+
(l = t.value) == null || l.focus(e);
|
|
64
|
+
},
|
|
65
|
+
blur: () => {
|
|
66
|
+
var e;
|
|
67
|
+
(e = t.value) == null || e.blur();
|
|
68
|
+
},
|
|
69
|
+
resizableTextArea: y(() => {
|
|
70
|
+
var e;
|
|
71
|
+
return (e = t.value) == null ? void 0 : e.resizableTextArea;
|
|
72
|
+
})
|
|
73
|
+
}), (e, l) => e.mode === "read" ? (r(), B("span", {
|
|
74
|
+
key: 0,
|
|
75
|
+
class: x(o(m)())
|
|
76
|
+
}, v(o(C)(o(a)) || o(a) === "" ? e.emptyText : o(a)), 3)) : (r(), b(o(g).TextArea, z({ key: 1 }, n, {
|
|
77
|
+
value: o(a),
|
|
78
|
+
"onUpdate:value": o(d),
|
|
79
|
+
ref_key: "textAreaRef",
|
|
80
|
+
ref: t
|
|
81
|
+
}), null, 16, ["value", "onUpdate:value"]));
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
export {
|
|
85
|
+
I as default
|
|
86
|
+
};
|
|
@@ -1699,6 +1699,9 @@ declare const ApFormItem: {
|
|
|
1699
1699
|
type: PropType<boolean>;
|
|
1700
1700
|
default: undefined;
|
|
1701
1701
|
};
|
|
1702
|
+
order: {
|
|
1703
|
+
type: PropType<string | number>;
|
|
1704
|
+
};
|
|
1702
1705
|
label: {
|
|
1703
1706
|
type: PropType<any>;
|
|
1704
1707
|
};
|
|
@@ -1711,9 +1714,6 @@ declare const ApFormItem: {
|
|
|
1711
1714
|
flex: {
|
|
1712
1715
|
type: PropType<string | number>;
|
|
1713
1716
|
};
|
|
1714
|
-
order: {
|
|
1715
|
-
type: PropType<string | number>;
|
|
1716
|
-
};
|
|
1717
1717
|
offset: {
|
|
1718
1718
|
type: PropType<string | number>;
|
|
1719
1719
|
};
|
|
@@ -1871,6 +1871,9 @@ declare const ApFormItem: {
|
|
|
1871
1871
|
type: PropType<boolean>;
|
|
1872
1872
|
default: undefined;
|
|
1873
1873
|
};
|
|
1874
|
+
order: {
|
|
1875
|
+
type: PropType<string | number>;
|
|
1876
|
+
};
|
|
1874
1877
|
label: {
|
|
1875
1878
|
type: PropType<any>;
|
|
1876
1879
|
};
|
|
@@ -1883,9 +1886,6 @@ declare const ApFormItem: {
|
|
|
1883
1886
|
flex: {
|
|
1884
1887
|
type: PropType<string | number>;
|
|
1885
1888
|
};
|
|
1886
|
-
order: {
|
|
1887
|
-
type: PropType<string | number>;
|
|
1888
|
-
};
|
|
1889
1889
|
offset: {
|
|
1890
1890
|
type: PropType<string | number>;
|
|
1891
1891
|
};
|
|
@@ -2056,6 +2056,9 @@ declare const ApFormItem: {
|
|
|
2056
2056
|
type: PropType<boolean>;
|
|
2057
2057
|
default: undefined;
|
|
2058
2058
|
};
|
|
2059
|
+
order: {
|
|
2060
|
+
type: PropType<string | number>;
|
|
2061
|
+
};
|
|
2059
2062
|
label: {
|
|
2060
2063
|
type: PropType<any>;
|
|
2061
2064
|
};
|
|
@@ -2068,9 +2071,6 @@ declare const ApFormItem: {
|
|
|
2068
2071
|
flex: {
|
|
2069
2072
|
type: PropType<string | number>;
|
|
2070
2073
|
};
|
|
2071
|
-
order: {
|
|
2072
|
-
type: PropType<string | number>;
|
|
2073
|
-
};
|
|
2074
2074
|
offset: {
|
|
2075
2075
|
type: PropType<string | number>;
|
|
2076
2076
|
};
|
|
@@ -2238,6 +2238,9 @@ declare const ApFormItem: {
|
|
|
2238
2238
|
type: PropType<boolean>;
|
|
2239
2239
|
default: undefined;
|
|
2240
2240
|
};
|
|
2241
|
+
order: {
|
|
2242
|
+
type: PropType<string | number>;
|
|
2243
|
+
};
|
|
2241
2244
|
label: {
|
|
2242
2245
|
type: PropType<any>;
|
|
2243
2246
|
};
|
|
@@ -2250,9 +2253,6 @@ declare const ApFormItem: {
|
|
|
2250
2253
|
flex: {
|
|
2251
2254
|
type: PropType<string | number>;
|
|
2252
2255
|
};
|
|
2253
|
-
order: {
|
|
2254
|
-
type: PropType<string | number>;
|
|
2255
|
-
};
|
|
2256
2256
|
offset: {
|
|
2257
2257
|
type: PropType<string | number>;
|
|
2258
2258
|
};
|
package/es/src/basic/index.d.ts
CHANGED
|
@@ -54,8 +54,8 @@ export declare const BasicHelp: {
|
|
|
54
54
|
};
|
|
55
55
|
}>>, {
|
|
56
56
|
color: string;
|
|
57
|
-
fontSize: string;
|
|
58
57
|
placement: TooltipPlacement;
|
|
58
|
+
fontSize: string;
|
|
59
59
|
maxWidth: string;
|
|
60
60
|
showIndex: boolean;
|
|
61
61
|
}, true, {}, {}, {
|
|
@@ -92,8 +92,8 @@ export declare const BasicHelp: {
|
|
|
92
92
|
};
|
|
93
93
|
}>>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
94
94
|
color: string;
|
|
95
|
-
fontSize: string;
|
|
96
95
|
placement: TooltipPlacement;
|
|
96
|
+
fontSize: string;
|
|
97
97
|
maxWidth: string;
|
|
98
98
|
showIndex: boolean;
|
|
99
99
|
}>;
|
|
@@ -127,8 +127,8 @@ export declare const BasicHelp: {
|
|
|
127
127
|
};
|
|
128
128
|
}>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
129
129
|
color: string;
|
|
130
|
-
fontSize: string;
|
|
131
130
|
placement: TooltipPlacement;
|
|
131
|
+
fontSize: string;
|
|
132
132
|
maxWidth: string;
|
|
133
133
|
showIndex: boolean;
|
|
134
134
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin<any[]> & (new (...args: any[]) => {
|
|
@@ -278,6 +278,8 @@ export declare const ConfigProvider: DefineComponent<{
|
|
|
278
278
|
}>>, {
|
|
279
279
|
locale: Locale;
|
|
280
280
|
direction: "ltr" | "rtl";
|
|
281
|
+
virtual: boolean;
|
|
282
|
+
dropdownMatchSelectWidth: number | boolean;
|
|
281
283
|
input: {
|
|
282
284
|
autocomplete?: string | undefined;
|
|
283
285
|
};
|
|
@@ -298,8 +300,6 @@ export declare const ConfigProvider: DefineComponent<{
|
|
|
298
300
|
space: {
|
|
299
301
|
size?: number | ButtonSize;
|
|
300
302
|
};
|
|
301
|
-
virtual: boolean;
|
|
302
|
-
dropdownMatchSelectWidth: number | boolean;
|
|
303
303
|
pagination: {
|
|
304
304
|
showSizeChanger?: boolean | undefined;
|
|
305
305
|
};
|
|
@@ -285,6 +285,8 @@ export declare const APConfigProvider: {
|
|
|
285
285
|
}>>, {
|
|
286
286
|
locale: Locale;
|
|
287
287
|
direction: "ltr" | "rtl";
|
|
288
|
+
virtual: boolean;
|
|
289
|
+
dropdownMatchSelectWidth: number | boolean;
|
|
288
290
|
input: {
|
|
289
291
|
autocomplete?: string | undefined;
|
|
290
292
|
};
|
|
@@ -305,8 +307,6 @@ export declare const APConfigProvider: {
|
|
|
305
307
|
space: {
|
|
306
308
|
size?: number | ButtonSize;
|
|
307
309
|
};
|
|
308
|
-
virtual: boolean;
|
|
309
|
-
dropdownMatchSelectWidth: number | boolean;
|
|
310
310
|
pagination: {
|
|
311
311
|
showSizeChanger?: boolean | undefined;
|
|
312
312
|
};
|
|
@@ -460,6 +460,8 @@ export declare const APConfigProvider: {
|
|
|
460
460
|
}>>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
461
461
|
locale: Locale;
|
|
462
462
|
direction: "ltr" | "rtl";
|
|
463
|
+
virtual: boolean;
|
|
464
|
+
dropdownMatchSelectWidth: number | boolean;
|
|
463
465
|
input: {
|
|
464
466
|
autocomplete?: string | undefined;
|
|
465
467
|
};
|
|
@@ -480,8 +482,6 @@ export declare const APConfigProvider: {
|
|
|
480
482
|
space: {
|
|
481
483
|
size?: number | ButtonSize;
|
|
482
484
|
};
|
|
483
|
-
virtual: boolean;
|
|
484
|
-
dropdownMatchSelectWidth: number | boolean;
|
|
485
485
|
pagination: {
|
|
486
486
|
showSizeChanger?: boolean | undefined;
|
|
487
487
|
};
|
|
@@ -632,6 +632,8 @@ export declare const APConfigProvider: {
|
|
|
632
632
|
}>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
633
633
|
locale: Locale;
|
|
634
634
|
direction: "ltr" | "rtl";
|
|
635
|
+
virtual: boolean;
|
|
636
|
+
dropdownMatchSelectWidth: number | boolean;
|
|
635
637
|
input: {
|
|
636
638
|
autocomplete?: string | undefined;
|
|
637
639
|
};
|
|
@@ -652,8 +654,6 @@ export declare const APConfigProvider: {
|
|
|
652
654
|
space: {
|
|
653
655
|
size?: number | ButtonSize;
|
|
654
656
|
};
|
|
655
|
-
virtual: boolean;
|
|
656
|
-
dropdownMatchSelectWidth: number | boolean;
|
|
657
657
|
pagination: {
|
|
658
658
|
showSizeChanger?: boolean | undefined;
|
|
659
659
|
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
const o = {
|
|
2
|
+
borderRadius: 4
|
|
3
|
+
}, r = {
|
|
4
|
+
...o,
|
|
5
|
+
// 主色
|
|
6
|
+
colorPrimary: "#0070FF",
|
|
7
|
+
colorPrimaryHover: "#66A9FF",
|
|
8
|
+
colorPrimaryActive: "#338CFF",
|
|
9
|
+
// 字体颜色
|
|
10
|
+
colorTextBase: "#182948",
|
|
11
|
+
colorText: "#182948",
|
|
12
|
+
colorTextSecondary: "#526A90",
|
|
13
|
+
colorTextTertiary: "#8896B0",
|
|
14
|
+
// 边框颜色
|
|
15
|
+
colorBorder: "#DEE4ED",
|
|
16
|
+
// 分割线颜色
|
|
17
|
+
colorSplit: "#E9EDF3",
|
|
18
|
+
// 信息色
|
|
19
|
+
colorInfo: "#0070FF",
|
|
20
|
+
// 成功色
|
|
21
|
+
colorSuccess: "#2ED1A3",
|
|
22
|
+
// 错误色
|
|
23
|
+
colorError: "#FF4D4F",
|
|
24
|
+
// 警告色
|
|
25
|
+
colorWarning: "#FFA940",
|
|
26
|
+
colorBgContainerDisabled: "#F9F9FA",
|
|
27
|
+
wireframe: !1,
|
|
28
|
+
colorBgLayout: "#F2F6F9"
|
|
29
|
+
}, c = {
|
|
30
|
+
...o,
|
|
31
|
+
// 主色
|
|
32
|
+
colorPrimary: "#34B77C",
|
|
33
|
+
colorPrimaryHover: "#85D4B0",
|
|
34
|
+
colorPrimaryActive: "#5DC596",
|
|
35
|
+
colorBgContainerDisabled: "#f5f5f5",
|
|
36
|
+
// 字体颜色
|
|
37
|
+
colorText: "#333333",
|
|
38
|
+
colorTextSecondary: "#666666",
|
|
39
|
+
colorTextTertiary: "#999999",
|
|
40
|
+
// 边框颜色
|
|
41
|
+
colorBorder: "#D9D9D9",
|
|
42
|
+
// 分割线颜色
|
|
43
|
+
colorSplit: "#E9E9E9",
|
|
44
|
+
// 信息色
|
|
45
|
+
colorInfo: "#1890FF",
|
|
46
|
+
// 成功色
|
|
47
|
+
colorSuccess: "#52C41A",
|
|
48
|
+
// 错误色
|
|
49
|
+
colorError: "#FF4D4F",
|
|
50
|
+
// 警告色
|
|
51
|
+
colorWarning: "#FAAD14",
|
|
52
|
+
colorLink: "#1890FF",
|
|
53
|
+
wireframe: !1,
|
|
54
|
+
colorBgLayout: "#FAFAFA"
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
c as adminToken,
|
|
58
|
+
r as aplusToken
|
|
59
|
+
};
|
package/es/src/index.d.ts
CHANGED
package/es/src/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Icon as r, SvgIcon as t } from "./icon/index.mjs";
|
|
2
2
|
import { APConfigProvider as p } from "./config-provider/index.mjs";
|
|
3
|
-
import { Scrollbar as
|
|
4
|
-
import { CollapseContainer as
|
|
5
|
-
import { IconPicker as
|
|
3
|
+
import { Scrollbar as l } from "./scroll-bar/index.mjs";
|
|
4
|
+
import { CollapseContainer as n, ScrollContainer as m } from "./container/index.mjs";
|
|
5
|
+
import { IconPicker as d } from "./icon-picker/index.mjs";
|
|
6
6
|
import { default as u } from "./locale/lang/zh-cn.mjs";
|
|
7
7
|
import { default as T } from "./locale/lang/en.mjs";
|
|
8
|
-
import { BasicArrow as
|
|
9
|
-
import { ExpandTransition as g, ExpandXTransition as
|
|
10
|
-
import { Description as
|
|
11
|
-
import { Field as
|
|
8
|
+
import { BasicArrow as C, BasicHelp as S, BasicTitle as F } from "./basic/index.mjs";
|
|
9
|
+
import { ExpandTransition as g, ExpandXTransition as v, FadeTransition as P, ScaleRotateTransition as B, ScaleTransition as I, ScrollXReverseTransition as R, ScrollXTransition as D, ScrollYReverseTransition as h, ScrollYTransition as G, SlideXReverseTransition as M, SlideXTransition as k, SlideYReverseTransition as w, SlideYTransition as X } from "./transition/index.mjs";
|
|
10
|
+
import { Description as N } from "./description/index.mjs";
|
|
11
|
+
import { Field as E } from "./pro-form/index.mjs";
|
|
12
12
|
import { BaseButton as H } from "./base-button/index.mjs";
|
|
13
13
|
import { StrengthMeter as z } from "./strength-meter/index.mjs";
|
|
14
14
|
import { BaseModal as j } from "./modal/index.mjs";
|
|
@@ -18,109 +18,130 @@ import { createPrompt as _ } from "./prompt/index.mjs";
|
|
|
18
18
|
import { Dropdown as oo } from "./dropdown/index.mjs";
|
|
19
19
|
import { default as ro } from "./pro-table/pro-table.vue.mjs";
|
|
20
20
|
import { default as ao } from "./pro-table/components/table-action.vue.mjs";
|
|
21
|
-
import { default as
|
|
21
|
+
import { default as fo } from "./pro-table/components/edit-table-header-icon.vue.mjs";
|
|
22
22
|
import { default as io } from "./pro-table/components/table-image.vue.mjs";
|
|
23
23
|
import { useTable as mo } from "./pro-table/hooks/use-table.mjs";
|
|
24
24
|
import { ApForm as xo, ApFormItem as uo, ApFormItemGroup as co } from "./ap-form/index.mjs";
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as bo } from "./
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import { default as
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
25
|
+
import { default as Ao } from "./ap-field/text/index.vue.mjs";
|
|
26
|
+
import { default as So } from "./ap-field/checkbox/index.vue.mjs";
|
|
27
|
+
import { default as bo } from "./ap-field/date/index.vue.mjs";
|
|
28
|
+
import { default as vo } from "./ap-field/number/index.vue.mjs";
|
|
29
|
+
import { default as Bo } from "./ap-field/radio/index.vue.mjs";
|
|
30
|
+
import { default as Ro } from "./ap-field/switch/index.vue.mjs";
|
|
31
|
+
import { default as ho } from "./ap-field/text-area/index.vue.mjs";
|
|
32
|
+
import { default as Mo } from "./ap-field/date-range/index.vue.mjs";
|
|
33
|
+
import { default as wo } from "./ap-field/select/index.vue.mjs";
|
|
34
|
+
import { adminToken as yo, aplusToken as No } from "./design-token/index.mjs";
|
|
35
|
+
import { default as Eo } from "./pro-form/pro-form.vue.mjs";
|
|
36
|
+
import { default as Ho } from "./base-button/modal-button.vue.mjs";
|
|
37
|
+
import { default as zo } from "./base-button/pop-confirm-button.vue.mjs";
|
|
38
|
+
import { configProviderProps as jo } from "./config-provider/config-provider-props.mjs";
|
|
39
|
+
import { configProviderContextKey as Jo, tableDefaultConfig as Qo } from "./config-provider/constants.mjs";
|
|
40
|
+
import { keysOf as Vo, provideGlobalConfig as Wo, useGlobalConfig as Zo } from "./config-provider/hooks/use-global-config.mjs";
|
|
41
|
+
import { buildLocaleContext as $o, buildTranslator as oe, localeContextKey as ee, translate as re, useLocale as te } from "./config-provider/hooks/use-locale.mjs";
|
|
42
|
+
import { defaultNamespace as pe, namespaceContextKey as fe, useGetDerivedNamespace as le, useNamespace as ie } from "./config-provider/hooks/use-namespace.mjs";
|
|
43
|
+
import { ConfigProvider as me } from "./config-provider/config-provider.mjs";
|
|
44
|
+
import { default as de } from "./transition/collapse-transition.vue.mjs";
|
|
45
|
+
import { useDescription as ue } from "./description/use-description.mjs";
|
|
46
|
+
import { useForm as Te } from "./pro-form/hooks/use-form.mjs";
|
|
47
|
+
import { isComponentFormSchema as Ce, isSlotFormSchema as Se } from "./pro-form/types/form.mjs";
|
|
48
|
+
import { default as be } from "./pro-form/components/api-cascader.vue.mjs";
|
|
49
|
+
import { default as ve } from "./pro-form/components/api-radio-group.vue.mjs";
|
|
50
|
+
import { default as Be } from "./pro-form/components/api-select.vue.mjs";
|
|
51
|
+
import { default as Re } from "./pro-form/components/api-transfer.vue.mjs";
|
|
52
|
+
import { default as he } from "./pro-form/components/api-tree.vue.mjs";
|
|
53
|
+
import { default as Me } from "./pro-form/components/radio-button-group.vue.mjs";
|
|
54
|
+
import { default as we } from "./pro-form/components/api-tree-select.vue.mjs";
|
|
55
|
+
import { useModalContext as ye } from "./modal/hooks/use-modal-context.mjs";
|
|
56
|
+
import { useModal as Ye, useModalInner as Ee } from "./modal/hooks/use-modal.mjs";
|
|
47
57
|
export {
|
|
48
58
|
p as APConfigProvider,
|
|
59
|
+
So as ApFieldCheckbox,
|
|
60
|
+
bo as ApFieldDate,
|
|
61
|
+
Mo as ApFieldDateRange,
|
|
62
|
+
vo as ApFieldNumber,
|
|
63
|
+
Bo as ApFieldRadio,
|
|
64
|
+
wo as ApFieldSelect,
|
|
65
|
+
Ro as ApFieldSwitch,
|
|
66
|
+
Ao as ApFieldText,
|
|
67
|
+
ho as ApFieldTextArea,
|
|
49
68
|
xo as ApForm,
|
|
50
69
|
uo as ApFormItem,
|
|
51
70
|
co as ApFormItemGroup,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
71
|
+
be as ApiCascader,
|
|
72
|
+
ve as ApiRadioGroup,
|
|
73
|
+
Be as ApiSelect,
|
|
74
|
+
Re as ApiTransfer,
|
|
75
|
+
he as ApiTree,
|
|
76
|
+
we as ApiTreeSelect,
|
|
58
77
|
H as BaseButton,
|
|
59
78
|
j as BaseModal,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
79
|
+
C as BasicArrow,
|
|
80
|
+
S as BasicHelp,
|
|
81
|
+
F as BasicTitle,
|
|
82
|
+
n as CollapseContainer,
|
|
83
|
+
de as CollapseTransition,
|
|
84
|
+
me as ConfigProvider,
|
|
66
85
|
V as CountdownButton,
|
|
67
86
|
W as CountdownInput,
|
|
68
87
|
J as CropperAvatar,
|
|
69
88
|
Q as CropperImage,
|
|
70
|
-
|
|
89
|
+
N as Description,
|
|
71
90
|
oo as Dropdown,
|
|
72
|
-
|
|
91
|
+
fo as EditTableHeaderIcon,
|
|
73
92
|
g as ExpandTransition,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
93
|
+
v as ExpandXTransition,
|
|
94
|
+
P as FadeTransition,
|
|
95
|
+
E as Field,
|
|
77
96
|
r as Icon,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
97
|
+
d as IconPicker,
|
|
98
|
+
Ho as ModalButton,
|
|
99
|
+
zo as PopConfirmButton,
|
|
100
|
+
Eo as ProForm,
|
|
82
101
|
ro as ProTable,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
102
|
+
Me as RadioButtonGroup,
|
|
103
|
+
B as ScaleRotateTransition,
|
|
104
|
+
I as ScaleTransition,
|
|
86
105
|
m as ScrollContainer,
|
|
87
106
|
R as ScrollXReverseTransition,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
107
|
+
D as ScrollXTransition,
|
|
108
|
+
h as ScrollYReverseTransition,
|
|
109
|
+
G as ScrollYTransition,
|
|
110
|
+
l as Scrollbar,
|
|
111
|
+
M as SlideXReverseTransition,
|
|
112
|
+
k as SlideXTransition,
|
|
94
113
|
w as SlideYReverseTransition,
|
|
95
|
-
|
|
114
|
+
X as SlideYTransition,
|
|
96
115
|
z as StrengthMeter,
|
|
97
116
|
t as SvgIcon,
|
|
98
117
|
ao as TableAction,
|
|
99
118
|
io as TableImg,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
119
|
+
yo as adminToken,
|
|
120
|
+
No as aplusToken,
|
|
121
|
+
$o as buildLocaleContext,
|
|
122
|
+
oe as buildTranslator,
|
|
123
|
+
Jo as configProviderContextKey,
|
|
124
|
+
jo as configProviderProps,
|
|
104
125
|
_ as createPrompt,
|
|
105
|
-
|
|
126
|
+
pe as defaultNamespace,
|
|
106
127
|
T as en,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
128
|
+
Ce as isComponentFormSchema,
|
|
129
|
+
Se as isSlotFormSchema,
|
|
130
|
+
Vo as keysOf,
|
|
131
|
+
ee as localeContextKey,
|
|
132
|
+
fe as namespaceContextKey,
|
|
133
|
+
Wo as provideGlobalConfig,
|
|
134
|
+
Qo as tableDefaultConfig,
|
|
135
|
+
re as translate,
|
|
136
|
+
ue as useDescription,
|
|
137
|
+
Te as useForm,
|
|
138
|
+
le as useGetDerivedNamespace,
|
|
139
|
+
Zo as useGlobalConfig,
|
|
140
|
+
te as useLocale,
|
|
141
|
+
Ye as useModal,
|
|
142
|
+
ye as useModalContext,
|
|
143
|
+
Ee as useModalInner,
|
|
144
|
+
ie as useNamespace,
|
|
124
145
|
mo as useTable,
|
|
125
146
|
u as zhCn
|
|
126
147
|
};
|
|
@@ -437,12 +437,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
437
437
|
}, {
|
|
438
438
|
loading: boolean;
|
|
439
439
|
open: boolean;
|
|
440
|
+
keyboard: boolean;
|
|
440
441
|
mask: boolean;
|
|
441
442
|
closable: boolean;
|
|
442
443
|
centered: boolean;
|
|
443
444
|
okType: "danger" | ButtonType;
|
|
444
445
|
maskClosable: boolean;
|
|
445
|
-
keyboard: boolean;
|
|
446
446
|
confirmLoading: boolean;
|
|
447
447
|
destroyOnClose: boolean;
|
|
448
448
|
draggable: boolean;
|