@silver-formily/element-plus 2.0.1 → 2.2.0
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/README.en-US.md +32 -0
- package/README.md +32 -35
- package/esm/__builtins__/index.mjs +15 -16
- package/esm/__builtins__/shared/index.mjs +11 -12
- package/esm/__builtins__/shared/transform-component.d.ts +2 -6
- package/esm/__builtins__/shared/transform-component.mjs +16 -33
- package/esm/__builtins__/shared/transform-component.mjs.map +1 -1
- package/esm/__builtins__/shared/utils.mjs +10 -10
- package/esm/__builtins__/shared/utils.mjs.map +1 -1
- package/esm/array-base/index.mjs +58 -58
- package/esm/array-base/index.mjs.map +1 -1
- package/esm/array-cards/index.mjs +44 -44
- package/esm/array-cards/index.mjs.map +1 -1
- package/esm/array-collapse/index.mjs +59 -58
- package/esm/array-collapse/index.mjs.map +1 -1
- package/esm/array-items/index.mjs +46 -43
- package/esm/array-items/index.mjs.map +1 -1
- package/esm/array-list-tabs/index.mjs +15 -14
- package/esm/array-list-tabs/index.mjs.map +1 -1
- package/esm/array-table/array-table.d.ts +28 -0
- package/esm/array-table/index.d.ts +28 -0
- package/esm/array-table/index.mjs +113 -111
- package/esm/array-table/index.mjs.map +1 -1
- package/esm/array-table/types.d.ts +1 -0
- package/esm/cascader/index.mjs +19 -20
- package/esm/cascader/index.mjs.map +1 -1
- package/esm/checkbox/checkbox-group.d.ts +1 -4
- package/esm/checkbox/index.d.ts +442 -379
- package/esm/checkbox/index.mjs.map +1 -1
- package/esm/editable/editable.d.ts +16 -12
- package/esm/editable/index.d.ts +8 -6
- package/esm/editable/index.mjs +110 -112
- package/esm/editable/index.mjs.map +1 -1
- package/esm/form-button-group/index.mjs +29 -28
- package/esm/form-button-group/index.mjs.map +1 -1
- package/esm/form-collapse/index.mjs +42 -43
- package/esm/form-collapse/index.mjs.map +1 -1
- package/esm/form-dialog/index.d.ts +1 -1
- package/esm/form-dialog/index.mjs +4 -4
- package/esm/form-dialog/index.mjs.map +1 -1
- package/esm/form-dialog/types.d.ts +6 -6
- package/esm/form-drawer/index.d.ts +1 -1
- package/esm/form-drawer/index.mjs +4 -4
- package/esm/form-drawer/index.mjs.map +1 -1
- package/esm/form-drawer/types.d.ts +6 -6
- package/esm/form-grid/index.d.ts +1 -183
- package/esm/form-grid/index.mjs +1 -1
- package/esm/form-grid/index.mjs.map +1 -1
- package/esm/form-item/form-item.d.ts +2 -1
- package/esm/form-item/index.d.ts +12 -6
- package/esm/form-item/index.mjs +163 -155
- package/esm/form-item/index.mjs.map +1 -1
- package/esm/form-item/types.d.ts +0 -1
- package/esm/form-layout/form-layout.d.ts +0 -1
- package/esm/form-layout/form-layout.mjs +53 -52
- package/esm/form-layout/form-layout.mjs.map +1 -1
- package/esm/form-layout/types.d.ts +0 -2
- package/esm/form-layout/utils.d.ts +3 -3
- package/esm/form-layout/utils.mjs +48 -43
- package/esm/form-layout/utils.mjs.map +1 -1
- package/esm/form-step/index.mjs +27 -25
- package/esm/form-step/index.mjs.map +1 -1
- package/esm/form-tab/index.d.ts +1 -26
- package/esm/form-tab/index.mjs +30 -30
- package/esm/form-tab/index.mjs.map +1 -1
- package/esm/index.d.ts +3 -0
- package/esm/index.mjs +44 -38
- package/esm/index.mjs.map +1 -1
- package/esm/input/index.mjs.map +1 -1
- package/esm/input-number/index.d.ts +258 -147
- package/esm/pagination/pagination.mjs +109 -110
- package/esm/pagination/pagination.mjs.map +1 -1
- package/esm/password/index.mjs.map +1 -1
- package/esm/preview-text/index.d.ts +5 -0
- package/esm/preview-text/index.mjs +165 -141
- package/esm/preview-text/index.mjs.map +1 -1
- package/esm/preview-text/rate.d.ts +5 -0
- package/esm/preview-text/utils.d.ts +5 -5
- package/esm/preview-text/utils.mjs.map +1 -1
- package/esm/radio/index.d.ts +344 -194
- package/esm/radio/index.mjs.map +1 -1
- package/esm/rate/index.d.ts +187 -0
- package/esm/rate/index.mjs +14 -0
- package/esm/rate/index.mjs.map +1 -0
- package/esm/reset/index.d.ts +1 -62
- package/esm/reset/index.mjs +1 -1
- package/esm/reset/index.mjs.map +1 -1
- package/esm/segmented/index.d.ts +26 -0
- package/esm/segmented/index.mjs +37 -0
- package/esm/segmented/index.mjs.map +1 -0
- package/esm/segmented/segmented.d.ts +25 -0
- package/esm/select/index.mjs +8 -8
- package/esm/select/index.mjs.map +1 -1
- package/esm/select-table/index.d.ts +28 -0
- package/esm/select-table/index.mjs +48 -47
- package/esm/select-table/index.mjs.map +1 -1
- package/esm/select-table/select-table.d.ts +56 -0
- package/esm/slider/index.d.ts +177 -0
- package/esm/slider/index.mjs +14 -0
- package/esm/slider/index.mjs.map +1 -0
- package/esm/submit/index.d.ts +1 -47
- package/esm/submit/index.mjs +1 -1
- package/esm/submit/index.mjs.map +1 -1
- package/esm/switch/index.d.ts +225 -189
- package/esm/time-select/index.d.ts +163 -103
- package/esm/transfer/index.d.ts +196 -115
- package/esm/transfer/index.mjs.map +1 -1
- package/esm/tree/index.mjs +26 -26
- package/esm/tree/index.mjs.map +1 -1
- package/esm/tree-select/index.mjs.map +1 -1
- package/esm/upload/index.d.ts +404 -399
- package/esm/upload/index.mjs.map +1 -1
- package/esm/upload/upload.d.ts +800 -790
- package/esm/vendor/icon.mjs.map +1 -1
- package/esm/vendor/lodash.mjs +12 -20
- package/esm/vendor/lodash.mjs.map +1 -1
- package/esm/vendor/runtime.mjs +29 -24
- package/esm/vendor/runtime.mjs.map +1 -1
- package/esm/vendor/shared.esm-bundler.mjs +2 -2
- package/esm/vendor/sizes.mjs.map +1 -1
- package/esm/vendor/types.mjs +5 -5
- package/esm/vendor/types.mjs.map +1 -1
- package/package.json +8 -9
package/esm/submit/index.d.ts
CHANGED
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
export declare const Submit:
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
-
onClick: import('vue').PropType<(e: MouseEvent) => any>;
|
|
4
|
-
onSubmit: import('vue').PropType<(values: any) => Promise<any>>;
|
|
5
|
-
onSubmitSuccess: import('vue').PropType<(payload: any) => void>;
|
|
6
|
-
onSubmitFailed: import('vue').PropType<(feedbacks: import('@formily/core').IFormFeedback[]) => void>;
|
|
7
|
-
submit: BooleanConstructor;
|
|
8
|
-
loading: BooleanConstructor;
|
|
9
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
10
|
-
submit: boolean;
|
|
11
|
-
loading: boolean;
|
|
12
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
13
|
-
P: {};
|
|
14
|
-
B: {};
|
|
15
|
-
D: {};
|
|
16
|
-
C: {};
|
|
17
|
-
M: {};
|
|
18
|
-
Defaults: {};
|
|
19
|
-
}, Readonly<import('vue').ExtractPropTypes<{
|
|
20
|
-
onClick: import('vue').PropType<(e: MouseEvent) => any>;
|
|
21
|
-
onSubmit: import('vue').PropType<(values: any) => Promise<any>>;
|
|
22
|
-
onSubmitSuccess: import('vue').PropType<(payload: any) => void>;
|
|
23
|
-
onSubmitFailed: import('vue').PropType<(feedbacks: import('@formily/core').IFormFeedback[]) => void>;
|
|
24
|
-
submit: BooleanConstructor;
|
|
25
|
-
loading: BooleanConstructor;
|
|
26
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
27
|
-
submit: boolean;
|
|
28
|
-
loading: boolean;
|
|
29
|
-
}>;
|
|
30
|
-
__isFragment?: never;
|
|
31
|
-
__isTeleport?: never;
|
|
32
|
-
__isSuspense?: never;
|
|
33
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
34
|
-
onClick: import('vue').PropType<(e: MouseEvent) => any>;
|
|
35
|
-
onSubmit: import('vue').PropType<(values: any) => Promise<any>>;
|
|
36
|
-
onSubmitSuccess: import('vue').PropType<(payload: any) => void>;
|
|
37
|
-
onSubmitFailed: import('vue').PropType<(feedbacks: import('@formily/core').IFormFeedback[]) => void>;
|
|
38
|
-
submit: BooleanConstructor;
|
|
39
|
-
loading: BooleanConstructor;
|
|
40
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
41
|
-
submit: boolean;
|
|
42
|
-
loading: boolean;
|
|
43
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
44
|
-
$slots: {
|
|
45
|
-
default?(_: {}): any;
|
|
46
|
-
};
|
|
47
|
-
});
|
|
1
|
+
export declare const Submit: any;
|
|
48
2
|
export default Submit;
|
package/esm/submit/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { observer as m } from "@formily/reactive-vue";
|
|
1
|
+
import { observer as m } from "@silver-formily/reactive-vue";
|
|
2
2
|
import { defineComponent as s, createBlock as a, openBlock as c, unref as e, mergeProps as l, withCtx as f, renderSlot as b } from "vue";
|
|
3
3
|
import { useParentForm as p } from "@silver-formily/vue";
|
|
4
4
|
import { ElButton as d } from "element-plus";
|
package/esm/submit/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/submit/submit.vue","../../src/submit/index.ts"],"sourcesContent":["<script lang=\"ts\" setup>\r\nimport type { IFormFeedback } from '@formily/core'\r\nimport type { PropType } from 'vue'\r\nimport { useParentForm } from '@silver-formily/vue'\r\nimport { ElButton } from 'element-plus'\r\n\r\ndefineOptions({\r\n name: 'FSubmit',\r\n inheritAttrs: false,\r\n})\r\n\r\nconst props = defineProps({\r\n onClick: Function as PropType<(e: MouseEvent) => any>,\r\n onSubmit: Function as PropType<(values: any) => Promise<any>>,\r\n onSubmitSuccess: Function as PropType<(payload: any) => void>,\r\n onSubmitFailed: Function as PropType<(feedbacks: IFormFeedback[]) => void>,\r\n submit: Boolean,\r\n loading: Boolean,\r\n})\r\n\r\nconst formRef = useParentForm()\r\n\r\nfunction handleClick(e: MouseEvent) {\r\n if (props.onClick?.(e) === false)\r\n return\r\n if (props.onSubmit) {\r\n const form = formRef?.value\r\n form?.submit(props.onSubmit)\r\n .then(props.onSubmitSuccess)\r\n .catch(props.onSubmitFailed ?? console.log)\r\n }\r\n}\r\n</script>\r\n\r\n<template>\r\n <ElButton\r\n :native-type=\"props.submit ? 'button' : 'submit'\"\r\n type=\"primary\"\r\n v-bind=\"$attrs\"\r\n :loading=\"formRef?.submitting ?? props.loading\"\r\n @click=\"handleClick\"\r\n >\r\n <template #default>\r\n <slot />\r\n </template>\r\n </ElButton>\r\n</template>\r\n","import { observer } from '@formily/reactive-vue'\r\nimport FSubmit from './submit.vue'\r\n\r\nexport const Submit = observer(FSubmit)\r\n\r\nexport default Submit\r\n"],"names":["props","__props","formRef","useParentForm","handleClick","e","_openBlock","_createBlock","_unref","_mergeProps","$attrs","_renderSlot","_ctx","Submit","observer","FSubmit"],"mappings":";;;;;;;;;;;;;;;;;AAWA,UAAMA,IAAQC,GASRC,IAAUC,EAAA;AAEhB,aAASC,EAAYC,GAAe;AAClC,MAAIL,EAAM,UAAUK,CAAC,MAAM,MAEvBL,EAAM,YACKE,GAAS,OAChB,OAAOF,EAAM,QAAQ,EACxB,KAAKA,EAAM,eAAe,EAC1B,MAAMA,EAAM,kBAAkB,QAAQ,GAAG;AAAA,IAEhD;sBAIEM,KAAAC,EAUWC,MAVXC,EAUW;AAAA,MATR,eAAaT,EAAM,SAAM,WAAA;AAAA,MAC1B,MAAK;AAAA,IAAA,GACGU,EAAAA,QAAM;AAAA,MACb,SAASF,EAAAN,CAAA,GAAS,cAAcF,EAAM;AAAA,MACtC,SAAOI;AAAA,IAAA;MAEG,WACT,MAAQ;AAAA,QAARO,EAAQC,EAAA,QAAA,SAAA;AAAA,MAAA;;;;ICxCDC,IAASC,EAASC,CAAO;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/submit/submit.vue","../../src/submit/index.ts"],"sourcesContent":["<script lang=\"ts\" setup>\r\nimport type { IFormFeedback } from '@formily/core'\r\nimport type { PropType } from 'vue'\r\nimport { useParentForm } from '@silver-formily/vue'\r\nimport { ElButton } from 'element-plus'\r\n\r\ndefineOptions({\r\n name: 'FSubmit',\r\n inheritAttrs: false,\r\n})\r\n\r\nconst props = defineProps({\r\n onClick: Function as PropType<(e: MouseEvent) => any>,\r\n onSubmit: Function as PropType<(values: any) => Promise<any>>,\r\n onSubmitSuccess: Function as PropType<(payload: any) => void>,\r\n onSubmitFailed: Function as PropType<(feedbacks: IFormFeedback[]) => void>,\r\n submit: Boolean,\r\n loading: Boolean,\r\n})\r\n\r\nconst formRef = useParentForm()\r\n\r\nfunction handleClick(e: MouseEvent) {\r\n if (props.onClick?.(e) === false)\r\n return\r\n if (props.onSubmit) {\r\n const form = formRef?.value\r\n form?.submit(props.onSubmit)\r\n .then(props.onSubmitSuccess)\r\n .catch(props.onSubmitFailed ?? console.log)\r\n }\r\n}\r\n</script>\r\n\r\n<template>\r\n <ElButton\r\n :native-type=\"props.submit ? 'button' : 'submit'\"\r\n type=\"primary\"\r\n v-bind=\"$attrs\"\r\n :loading=\"formRef?.submitting ?? props.loading\"\r\n @click=\"handleClick\"\r\n >\r\n <template #default>\r\n <slot />\r\n </template>\r\n </ElButton>\r\n</template>\r\n","import { observer } from '@silver-formily/reactive-vue'\r\nimport FSubmit from './submit.vue'\r\n\r\nexport const Submit = observer(FSubmit)\r\n\r\nexport default Submit\r\n"],"names":["props","__props","formRef","useParentForm","handleClick","e","_openBlock","_createBlock","_unref","_mergeProps","$attrs","_renderSlot","_ctx","Submit","observer","FSubmit"],"mappings":";;;;;;;;;;;;;;;;;AAWA,UAAMA,IAAQC,GASRC,IAAUC,EAAA;AAEhB,aAASC,EAAYC,GAAe;AAClC,MAAIL,EAAM,UAAUK,CAAC,MAAM,MAEvBL,EAAM,YACKE,GAAS,OAChB,OAAOF,EAAM,QAAQ,EACxB,KAAKA,EAAM,eAAe,EAC1B,MAAMA,EAAM,kBAAkB,QAAQ,GAAG;AAAA,IAEhD;sBAIEM,KAAAC,EAUWC,MAVXC,EAUW;AAAA,MATR,eAAaT,EAAM,SAAM,WAAA;AAAA,MAC1B,MAAK;AAAA,IAAA,GACGU,EAAAA,QAAM;AAAA,MACb,SAASF,EAAAN,CAAA,GAAS,cAAcF,EAAM;AAAA,MACtC,SAAOI;AAAA,IAAA;MAEG,WACT,MAAQ;AAAA,QAARO,EAAQC,EAAA,QAAA,SAAA;AAAA,MAAA;;;;ICxCDC,IAASC,EAASC,CAAO;"}
|
package/esm/switch/index.d.ts
CHANGED
|
@@ -2,60 +2,74 @@ import { ElSwitch } from 'element-plus';
|
|
|
2
2
|
export type SwitchProps = typeof ElSwitch;
|
|
3
3
|
export declare const Switch: import('element-plus/es/utils/index.mjs').SFCWithInstall<{
|
|
4
4
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
5
|
+
size: {
|
|
6
|
+
type: import('vue').PropType<"" | "small" | "default" | "large">;
|
|
7
|
+
};
|
|
8
|
+
name: {
|
|
9
|
+
type: import('vue').PropType<string>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
disabled: {
|
|
13
|
+
type: import('vue').PropType<boolean>;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
id: {
|
|
17
|
+
type: import('vue').PropType<string>;
|
|
18
|
+
};
|
|
19
|
+
loading: {
|
|
20
|
+
type: import('vue').PropType<boolean>;
|
|
21
|
+
};
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: import('vue').PropType<string | number | boolean>;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
tabindex: {
|
|
27
|
+
type: import('vue').PropType<string | number>;
|
|
28
|
+
};
|
|
29
|
+
ariaLabel: {
|
|
30
|
+
type: import('vue').PropType<string>;
|
|
31
|
+
};
|
|
32
|
+
validateEvent: {
|
|
33
|
+
type: import('vue').PropType<boolean>;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
width: {
|
|
37
|
+
type: import('vue').PropType<string | number>;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
inlinePrompt: {
|
|
41
|
+
type: import('vue').PropType<boolean>;
|
|
42
|
+
};
|
|
43
|
+
inactiveActionIcon: {
|
|
44
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
45
|
+
};
|
|
46
|
+
activeActionIcon: {
|
|
47
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
48
|
+
};
|
|
49
|
+
activeIcon: {
|
|
50
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
51
|
+
};
|
|
52
|
+
inactiveIcon: {
|
|
53
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
54
|
+
};
|
|
55
|
+
activeText: {
|
|
56
|
+
type: import('vue').PropType<string>;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
inactiveText: {
|
|
60
|
+
type: import('vue').PropType<string>;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
activeValue: {
|
|
64
|
+
type: import('vue').PropType<string | number | boolean>;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
inactiveValue: {
|
|
68
|
+
type: import('vue').PropType<string | number | boolean>;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
beforeChange: {
|
|
72
|
+
type: import('vue').PropType<() => Promise<boolean> | boolean>;
|
|
59
73
|
};
|
|
60
74
|
}>> & {
|
|
61
75
|
"onUpdate:modelValue"?: ((val: string | number | boolean) => any) | undefined;
|
|
@@ -69,17 +83,15 @@ export declare const Switch: import('element-plus/es/utils/index.mjs').SFCWithIn
|
|
|
69
83
|
change: (val: string | number | boolean) => void;
|
|
70
84
|
input: (val: string | number | boolean) => void;
|
|
71
85
|
}, import('vue').PublicProps, {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
readonly inactiveValue: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
82
|
-
readonly inlinePrompt: boolean;
|
|
86
|
+
disabled: boolean;
|
|
87
|
+
width: string | number;
|
|
88
|
+
name: string;
|
|
89
|
+
modelValue: boolean | string | number;
|
|
90
|
+
validateEvent: boolean;
|
|
91
|
+
activeText: string;
|
|
92
|
+
inactiveText: string;
|
|
93
|
+
activeValue: boolean | string | number;
|
|
94
|
+
inactiveValue: boolean | string | number;
|
|
83
95
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
84
96
|
P: {};
|
|
85
97
|
B: {};
|
|
@@ -88,60 +100,74 @@ export declare const Switch: import('element-plus/es/utils/index.mjs').SFCWithIn
|
|
|
88
100
|
M: {};
|
|
89
101
|
Defaults: {};
|
|
90
102
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
103
|
+
size: {
|
|
104
|
+
type: import('vue').PropType<"" | "small" | "default" | "large">;
|
|
105
|
+
};
|
|
106
|
+
name: {
|
|
107
|
+
type: import('vue').PropType<string>;
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
disabled: {
|
|
111
|
+
type: import('vue').PropType<boolean>;
|
|
112
|
+
default: undefined;
|
|
113
|
+
};
|
|
114
|
+
id: {
|
|
115
|
+
type: import('vue').PropType<string>;
|
|
116
|
+
};
|
|
117
|
+
loading: {
|
|
118
|
+
type: import('vue').PropType<boolean>;
|
|
119
|
+
};
|
|
120
|
+
modelValue: {
|
|
121
|
+
type: import('vue').PropType<string | number | boolean>;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
tabindex: {
|
|
125
|
+
type: import('vue').PropType<string | number>;
|
|
126
|
+
};
|
|
127
|
+
ariaLabel: {
|
|
128
|
+
type: import('vue').PropType<string>;
|
|
129
|
+
};
|
|
130
|
+
validateEvent: {
|
|
131
|
+
type: import('vue').PropType<boolean>;
|
|
132
|
+
default: boolean;
|
|
133
|
+
};
|
|
134
|
+
width: {
|
|
135
|
+
type: import('vue').PropType<string | number>;
|
|
136
|
+
default: string;
|
|
137
|
+
};
|
|
138
|
+
inlinePrompt: {
|
|
139
|
+
type: import('vue').PropType<boolean>;
|
|
140
|
+
};
|
|
141
|
+
inactiveActionIcon: {
|
|
142
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
143
|
+
};
|
|
144
|
+
activeActionIcon: {
|
|
145
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
146
|
+
};
|
|
147
|
+
activeIcon: {
|
|
148
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
149
|
+
};
|
|
150
|
+
inactiveIcon: {
|
|
151
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
152
|
+
};
|
|
153
|
+
activeText: {
|
|
154
|
+
type: import('vue').PropType<string>;
|
|
155
|
+
default: string;
|
|
156
|
+
};
|
|
157
|
+
inactiveText: {
|
|
158
|
+
type: import('vue').PropType<string>;
|
|
159
|
+
default: string;
|
|
160
|
+
};
|
|
161
|
+
activeValue: {
|
|
162
|
+
type: import('vue').PropType<string | number | boolean>;
|
|
163
|
+
default: boolean;
|
|
164
|
+
};
|
|
165
|
+
inactiveValue: {
|
|
166
|
+
type: import('vue').PropType<string | number | boolean>;
|
|
167
|
+
default: boolean;
|
|
168
|
+
};
|
|
169
|
+
beforeChange: {
|
|
170
|
+
type: import('vue').PropType<() => Promise<boolean> | boolean>;
|
|
145
171
|
};
|
|
146
172
|
}>> & {
|
|
147
173
|
"onUpdate:modelValue"?: ((val: string | number | boolean) => any) | undefined;
|
|
@@ -151,76 +177,88 @@ export declare const Switch: import('element-plus/es/utils/index.mjs').SFCWithIn
|
|
|
151
177
|
focus: () => void;
|
|
152
178
|
checked: import('vue').ComputedRef<boolean>;
|
|
153
179
|
}, {}, {}, {}, {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
readonly inactiveValue: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
164
|
-
readonly inlinePrompt: boolean;
|
|
180
|
+
disabled: boolean;
|
|
181
|
+
width: string | number;
|
|
182
|
+
name: string;
|
|
183
|
+
modelValue: boolean | string | number;
|
|
184
|
+
validateEvent: boolean;
|
|
185
|
+
activeText: string;
|
|
186
|
+
inactiveText: string;
|
|
187
|
+
activeValue: boolean | string | number;
|
|
188
|
+
inactiveValue: boolean | string | number;
|
|
165
189
|
}>;
|
|
166
190
|
__isFragment?: never;
|
|
167
191
|
__isTeleport?: never;
|
|
168
192
|
__isSuspense?: never;
|
|
169
193
|
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
194
|
+
size: {
|
|
195
|
+
type: import('vue').PropType<"" | "small" | "default" | "large">;
|
|
196
|
+
};
|
|
197
|
+
name: {
|
|
198
|
+
type: import('vue').PropType<string>;
|
|
199
|
+
default: string;
|
|
200
|
+
};
|
|
201
|
+
disabled: {
|
|
202
|
+
type: import('vue').PropType<boolean>;
|
|
203
|
+
default: undefined;
|
|
204
|
+
};
|
|
205
|
+
id: {
|
|
206
|
+
type: import('vue').PropType<string>;
|
|
207
|
+
};
|
|
208
|
+
loading: {
|
|
209
|
+
type: import('vue').PropType<boolean>;
|
|
210
|
+
};
|
|
211
|
+
modelValue: {
|
|
212
|
+
type: import('vue').PropType<string | number | boolean>;
|
|
213
|
+
default: boolean;
|
|
214
|
+
};
|
|
215
|
+
tabindex: {
|
|
216
|
+
type: import('vue').PropType<string | number>;
|
|
217
|
+
};
|
|
218
|
+
ariaLabel: {
|
|
219
|
+
type: import('vue').PropType<string>;
|
|
220
|
+
};
|
|
221
|
+
validateEvent: {
|
|
222
|
+
type: import('vue').PropType<boolean>;
|
|
223
|
+
default: boolean;
|
|
224
|
+
};
|
|
225
|
+
width: {
|
|
226
|
+
type: import('vue').PropType<string | number>;
|
|
227
|
+
default: string;
|
|
228
|
+
};
|
|
229
|
+
inlinePrompt: {
|
|
230
|
+
type: import('vue').PropType<boolean>;
|
|
231
|
+
};
|
|
232
|
+
inactiveActionIcon: {
|
|
233
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
234
|
+
};
|
|
235
|
+
activeActionIcon: {
|
|
236
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
237
|
+
};
|
|
238
|
+
activeIcon: {
|
|
239
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
179
240
|
};
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
readonly inactiveActionIcon: {
|
|
183
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | ((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component))[], unknown, unknown>>;
|
|
184
|
-
readonly required: false;
|
|
185
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
186
|
-
__epPropKey: true;
|
|
241
|
+
inactiveIcon: {
|
|
242
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
187
243
|
};
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
192
|
-
__epPropKey: true;
|
|
244
|
+
activeText: {
|
|
245
|
+
type: import('vue').PropType<string>;
|
|
246
|
+
default: string;
|
|
193
247
|
};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
198
|
-
__epPropKey: true;
|
|
248
|
+
inactiveText: {
|
|
249
|
+
type: import('vue').PropType<string>;
|
|
250
|
+
default: string;
|
|
199
251
|
};
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
204
|
-
__epPropKey: true;
|
|
252
|
+
activeValue: {
|
|
253
|
+
type: import('vue').PropType<string | number | boolean>;
|
|
254
|
+
default: boolean;
|
|
205
255
|
};
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
readonly inactiveValue: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
|
|
210
|
-
readonly name: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
211
|
-
readonly validateEvent: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
212
|
-
readonly beforeChange: {
|
|
213
|
-
readonly type: import('vue').PropType<() => Promise<boolean> | boolean>;
|
|
214
|
-
readonly required: false;
|
|
215
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
216
|
-
__epPropKey: true;
|
|
256
|
+
inactiveValue: {
|
|
257
|
+
type: import('vue').PropType<string | number | boolean>;
|
|
258
|
+
default: boolean;
|
|
217
259
|
};
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
221
|
-
readonly required: false;
|
|
222
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
223
|
-
__epPropKey: true;
|
|
260
|
+
beforeChange: {
|
|
261
|
+
type: import('vue').PropType<() => Promise<boolean> | boolean>;
|
|
224
262
|
};
|
|
225
263
|
}>> & {
|
|
226
264
|
"onUpdate:modelValue"?: ((val: string | number | boolean) => any) | undefined;
|
|
@@ -234,17 +272,15 @@ export declare const Switch: import('element-plus/es/utils/index.mjs').SFCWithIn
|
|
|
234
272
|
change: (val: string | number | boolean) => void;
|
|
235
273
|
input: (val: string | number | boolean) => void;
|
|
236
274
|
}, string, {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
readonly inactiveValue: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
247
|
-
readonly inlinePrompt: boolean;
|
|
275
|
+
disabled: boolean;
|
|
276
|
+
width: string | number;
|
|
277
|
+
name: string;
|
|
278
|
+
modelValue: boolean | string | number;
|
|
279
|
+
validateEvent: boolean;
|
|
280
|
+
activeText: string;
|
|
281
|
+
inactiveText: string;
|
|
282
|
+
activeValue: boolean | string | number;
|
|
283
|
+
inactiveValue: boolean | string | number;
|
|
248
284
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
249
285
|
$slots: {
|
|
250
286
|
inactive?: (props: {}) => any;
|