@aplus-frontend/ui 0.0.1-beta.4 → 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.d.ts +11 -1
- package/es/src/ap-field/date/constant.mjs +50 -0
- package/es/src/ap-field/date/helper.d.ts +5 -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/interface.d.ts +1 -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 -2
- package/es/src/ap-field/interface.d.ts +66 -7
- 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/hooks/useControllableValue.mjs +9 -9
- 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/modal/style/index.css +2 -2
- 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/theme/modal/index.css +2 -2
- 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.d.ts +11 -1
- package/lib/src/ap-field/date/constant.js +1 -0
- package/lib/src/ap-field/date/helper.d.ts +5 -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/interface.d.ts +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 -2
- package/lib/src/ap-field/interface.d.ts +66 -7
- 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/hooks/useControllableValue.js +1 -1
- 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/modal/style/index.css +2 -2
- 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/theme/modal/index.css +2 -2
- package/lib/src/type.d.ts +3 -1
- package/lib/src/utils/index.d.ts +7 -0
- package/package.json +3 -3
|
@@ -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
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ref as v, watch as c } from "vue";
|
|
2
|
-
function
|
|
3
|
-
const d = (e == null ? void 0 : e.defaultValuePropName) || "defaultValue",
|
|
4
|
-
|
|
2
|
+
function t(a, f, e) {
|
|
3
|
+
const d = (e == null ? void 0 : e.defaultValuePropName) || "defaultValue", u = (e == null ? void 0 : e.valuePropName) || "value", r = v(
|
|
4
|
+
a[d] || (e == null ? void 0 : e.defaultValue)
|
|
5
5
|
);
|
|
6
|
-
function m(
|
|
7
|
-
u
|
|
6
|
+
function m(l) {
|
|
7
|
+
a[u] === void 0 && (r.value = l), f(`update:${u}`, l);
|
|
8
8
|
}
|
|
9
9
|
return c(
|
|
10
|
-
() => u
|
|
11
|
-
(
|
|
12
|
-
u
|
|
10
|
+
() => a[u],
|
|
11
|
+
(l) => {
|
|
12
|
+
a[u] !== void 0 && (r.value = l);
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
immediate: !0
|
|
@@ -20,5 +20,5 @@ function V(u, f, e) {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
t as useControllableValue
|
|
24
24
|
};
|