@pungfe/element 0.5.0 → 0.5.2
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.md +5 -0
- package/dist/{advance-Zxhajef-.js → advance-BtiI894G.js} +17 -17
- package/dist/{advance-CQIjhvNB.cjs → advance-DfVR2Qm0.cjs} +1 -1
- package/dist/advance.cjs +1 -1
- package/dist/advance.js +1 -1
- package/dist/basic-BGb_tawM.cjs +1 -0
- package/dist/{basic-AcTgeyCF.js → basic-KTA4sDP3.js} +10 -5
- package/dist/basic.cjs +1 -1
- package/dist/basic.js +1 -1
- package/dist/components/advance/XButtonAsync.vue.d.ts +7 -11
- package/dist/components/advance/XButtonConfirm.vue.d.ts +7 -11
- package/dist/components/advance/XCascaderRequest.vue.d.ts +18 -13
- package/dist/components/advance/XFormFlex.vue.d.ts +11 -6
- package/dist/components/advance/XFormRequestNext.vue.d.ts +13 -8
- package/dist/components/advance/XRequest.vue.d.ts +14 -18
- package/dist/components/advance/XSelectRequest.vue.d.ts +20 -15
- package/dist/components/advance/XTableConfig.vue.d.ts +16 -11
- package/dist/components/advance/XTableFlex.vue.d.ts +16 -11
- package/dist/components/advance/XTableRequestConfigNext.vue.d.ts +17 -12
- package/dist/components/advance/XTableRequestNext.vue.d.ts +17 -12
- package/dist/components/advance/XUploadOssNext.vue.d.ts +15 -13
- package/dist/components/basic/Button.vue.d.ts +7 -11
- package/dist/components/basic/Cascader.vue.d.ts +14 -9
- package/dist/components/basic/Checkbox.vue.d.ts +7 -5
- package/dist/components/basic/ConfigProvider.vue.d.ts +7 -11
- package/dist/components/basic/DatePicker.vue.d.ts +19 -13
- package/dist/components/basic/Dialog.vue.d.ts +13 -21
- package/dist/components/basic/Form.vue.d.ts +11 -6
- package/dist/components/basic/FormItem.vue.d.ts +11 -9
- package/dist/components/basic/Input.vue.d.ts +18 -18
- package/dist/components/basic/InputNumber.vue.d.ts +12 -19
- package/dist/components/basic/Pagination.vue.d.ts +14 -17
- package/dist/components/basic/Select.vue.d.ts +17 -12
- package/dist/components/basic/TabPane.vue.d.ts +7 -11
- package/dist/components/basic/Table.vue.d.ts +16 -11
- package/dist/components/basic/Tabs.vue.d.ts +18 -16
- package/dist/components/basic/Upload.vue.d.ts +12 -25
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/{locales-Ci_7wNxx.js → locales-B6gZPoUb.js} +16 -0
- package/dist/locales-CZYsFcwB.cjs +1 -0
- package/dist/locales.cjs +1 -1
- package/dist/locales.js +1 -1
- package/dist/style.css +2 -2
- package/package.json +21 -20
- package/dist/basic-Cp8Amp9g.cjs +0 -1
- package/dist/locales-CIRzA_S9.cjs +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DatePickerProps } from 'element-plus';
|
|
2
2
|
export interface XDateConfig {
|
|
3
3
|
valueFormat?: DatePickerProps['valueFormat'];
|
|
4
|
+
teleported?: boolean;
|
|
4
5
|
}
|
|
5
6
|
export interface XDatePickerProps extends XDateConfig {
|
|
6
7
|
disabled?: boolean;
|
|
@@ -12,26 +13,31 @@ export interface XDatePickerProps extends XDateConfig {
|
|
|
12
13
|
type?: DatePickerProps['type'];
|
|
13
14
|
size?: DatePickerProps['size'];
|
|
14
15
|
}
|
|
15
|
-
declare const
|
|
16
|
-
props: __VLS_PrettifyLocal<
|
|
17
|
-
readonly "onUpdate:modelValue"?: ((value: V) => any) | undefined;
|
|
18
|
-
readonly onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
19
|
-
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
20
|
-
readonly "onUpdate:start"?: ((value: V) => any) | undefined;
|
|
21
|
-
readonly "onUpdate:end"?: ((value: V) => any) | undefined;
|
|
22
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onUpdate:modelValue" | "onUpdate:start" | "onUpdate:end"> & ({
|
|
16
|
+
declare const __VLS_export: <V extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
17
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<(XDatePickerProps & {
|
|
23
18
|
modelValue?: V;
|
|
24
19
|
start?: V;
|
|
25
20
|
end?: V;
|
|
26
|
-
}
|
|
27
|
-
|
|
21
|
+
}) & {
|
|
22
|
+
"onUpdate:modelValue"?: ((value: V | undefined) => any) | undefined;
|
|
23
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
24
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
25
|
+
"onUpdate:start"?: ((value: V | undefined) => any) | undefined;
|
|
26
|
+
"onUpdate:end"?: ((value: V | undefined) => any) | undefined;
|
|
27
|
+
}> & (typeof globalThis extends {
|
|
28
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
29
|
+
} ? P : {});
|
|
30
|
+
expose: (exposed: {}) => void;
|
|
28
31
|
attrs: any;
|
|
29
32
|
slots: {};
|
|
30
|
-
emit: (((evt: "focus", e: FocusEvent) => void) & ((evt: "blur", e: FocusEvent) => void)) & (((
|
|
33
|
+
emit: (((evt: "focus", e: FocusEvent) => void) & ((evt: "blur", e: FocusEvent) => void)) & (((event: "update:modelValue", value: V | undefined) => void) & ((event: "update:start", value: V | undefined) => void) & ((event: "update:end", value: V | undefined) => void));
|
|
31
34
|
}>) => import('vue').VNode & {
|
|
32
35
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
33
36
|
};
|
|
37
|
+
declare const _default: typeof __VLS_export;
|
|
34
38
|
export default _default;
|
|
35
|
-
type __VLS_PrettifyLocal<T> = {
|
|
39
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
36
40
|
[K in keyof T]: T[K];
|
|
37
|
-
}
|
|
41
|
+
} : {
|
|
42
|
+
[K in keyof T as K]: T[K];
|
|
43
|
+
}) & {};
|
|
@@ -12,32 +12,24 @@ export interface XDialogProps {
|
|
|
12
12
|
closeOnPressEscape?: DialogProps['closeOnPressEscape'];
|
|
13
13
|
}
|
|
14
14
|
type __VLS_Props = XDialogProps;
|
|
15
|
-
type
|
|
15
|
+
type __VLS_Slots = {
|
|
16
|
+
default?: () => VNodeChild;
|
|
17
|
+
header?: () => VNodeChild;
|
|
18
|
+
footer?: () => VNodeChild;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_ModelProps = {
|
|
16
21
|
modelValue?: boolean;
|
|
17
|
-
} & __VLS_Props;
|
|
18
|
-
declare function __VLS_template(): {
|
|
19
|
-
attrs: Partial<{}>;
|
|
20
|
-
slots: Readonly<{
|
|
21
|
-
default?: () => VNodeChild;
|
|
22
|
-
header?: () => VNodeChild;
|
|
23
|
-
footer?: () => VNodeChild;
|
|
24
|
-
}> & {
|
|
25
|
-
default?: () => VNodeChild;
|
|
26
|
-
header?: () => VNodeChild;
|
|
27
|
-
footer?: () => VNodeChild;
|
|
28
|
-
};
|
|
29
|
-
refs: {};
|
|
30
|
-
rootEl: any;
|
|
31
22
|
};
|
|
32
|
-
type
|
|
33
|
-
declare const
|
|
34
|
-
"update:modelValue": (value: boolean) => any;
|
|
23
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
24
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
"update:modelValue": (value: boolean | undefined) => any;
|
|
35
26
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
27
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
37
28
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
38
|
-
declare const
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
39
31
|
export default _default;
|
|
40
|
-
type
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
33
|
new (): {
|
|
42
34
|
$slots: S;
|
|
43
35
|
};
|
|
@@ -12,21 +12,26 @@ export interface XFormProps<D> {
|
|
|
12
12
|
labelWidth?: number | string;
|
|
13
13
|
size?: FormProps['size'];
|
|
14
14
|
}
|
|
15
|
-
declare const
|
|
16
|
-
props:
|
|
17
|
-
|
|
15
|
+
declare const __VLS_export: <D extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
16
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<XFormProps<D>> & (typeof globalThis extends {
|
|
17
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
18
|
+
} ? P : {});
|
|
19
|
+
expose: (exposed: import('vue').ShallowUnwrapRef<{
|
|
18
20
|
clearValidate: () => void;
|
|
19
21
|
data: D | undefined;
|
|
20
22
|
resetFields: () => void;
|
|
21
23
|
validate: () => boolean;
|
|
22
|
-
}>)
|
|
24
|
+
}>) => void;
|
|
23
25
|
attrs: any;
|
|
24
26
|
slots: {};
|
|
25
27
|
emit: {};
|
|
26
28
|
}>) => import('vue').VNode & {
|
|
27
29
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
30
|
};
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
29
32
|
export default _default;
|
|
30
|
-
type __VLS_PrettifyLocal<T> = {
|
|
33
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
31
34
|
[K in keyof T]: T[K];
|
|
32
|
-
}
|
|
35
|
+
} : {
|
|
36
|
+
[K in keyof T as K]: T[K];
|
|
37
|
+
}) & {};
|
|
@@ -13,14 +13,13 @@ export interface XFormItemValidation {
|
|
|
13
13
|
validate: () => boolean;
|
|
14
14
|
validator?: () => string | void;
|
|
15
15
|
}
|
|
16
|
-
declare const
|
|
17
|
-
props:
|
|
18
|
-
|
|
16
|
+
declare const __VLS_export: <D extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
17
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<XFormItemProps> & (typeof globalThis extends {
|
|
18
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
19
|
+
} ? P : {});
|
|
20
|
+
expose: (exposed: {}) => void;
|
|
19
21
|
attrs: any;
|
|
20
|
-
slots:
|
|
21
|
-
default: () => VNodeChild;
|
|
22
|
-
label: () => VNodeChild;
|
|
23
|
-
}> & {
|
|
22
|
+
slots: {
|
|
24
23
|
default: () => VNodeChild;
|
|
25
24
|
label: () => VNodeChild;
|
|
26
25
|
};
|
|
@@ -28,7 +27,10 @@ declare const _default: <D extends object>(__VLS_props: NonNullable<Awaited<type
|
|
|
28
27
|
}>) => import('vue').VNode & {
|
|
29
28
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
30
29
|
};
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
31
|
export default _default;
|
|
32
|
-
type __VLS_PrettifyLocal<T> = {
|
|
32
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
33
33
|
[K in keyof T]: T[K];
|
|
34
|
-
}
|
|
34
|
+
} : {
|
|
35
|
+
[K in keyof T as K]: T[K];
|
|
36
|
+
}) & {};
|
|
@@ -12,33 +12,33 @@ export interface XInputProps {
|
|
|
12
12
|
prefixIcon?: InputProps['prefixIcon'];
|
|
13
13
|
suffixIcon?: InputProps['suffixIcon'];
|
|
14
14
|
}
|
|
15
|
-
declare const
|
|
16
|
-
props: __VLS_PrettifyLocal<
|
|
17
|
-
readonly "onUpdate:modelValue"?: ((value: MV) => any) | undefined;
|
|
18
|
-
readonly onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
19
|
-
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
20
|
-
readonly onChange?: ((e: MV) => any) | undefined;
|
|
21
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:modelValue"> & ({
|
|
15
|
+
declare const __VLS_export: <MV extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
16
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<(XInputProps & {
|
|
22
17
|
modelValue?: MV;
|
|
23
|
-
}
|
|
24
|
-
|
|
18
|
+
}) & {
|
|
19
|
+
"onUpdate:modelValue"?: ((value: MV | undefined) => any) | undefined;
|
|
20
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
21
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
22
|
+
onChange?: ((e: MV) => any) | undefined;
|
|
23
|
+
}> & (typeof globalThis extends {
|
|
24
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
25
|
+
} ? P : {});
|
|
26
|
+
expose: (exposed: {}) => void;
|
|
25
27
|
attrs: any;
|
|
26
|
-
slots:
|
|
27
|
-
append: () => VNode;
|
|
28
|
-
prefix: () => VNode;
|
|
29
|
-
prepend: () => VNode;
|
|
30
|
-
suffix: () => VNode;
|
|
31
|
-
}> & {
|
|
28
|
+
slots: {
|
|
32
29
|
append: () => VNode;
|
|
33
30
|
prefix: () => VNode;
|
|
34
31
|
prepend: () => VNode;
|
|
35
32
|
suffix: () => VNode;
|
|
36
33
|
};
|
|
37
|
-
emit: (((evt: "focus", e: FocusEvent) => void) & ((evt: "blur", e: FocusEvent) => void) & ((evt: "change", e: MV) => void)) & ((
|
|
34
|
+
emit: (((evt: "focus", e: FocusEvent) => void) & ((evt: "blur", e: FocusEvent) => void) & ((evt: "change", e: MV) => void)) & ((event: "update:modelValue", value: MV | undefined) => void);
|
|
38
35
|
}>) => import('vue').VNode & {
|
|
39
36
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
40
37
|
};
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
41
39
|
export default _default;
|
|
42
|
-
type __VLS_PrettifyLocal<T> = {
|
|
40
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
43
41
|
[K in keyof T]: T[K];
|
|
44
|
-
}
|
|
42
|
+
} : {
|
|
43
|
+
[K in keyof T as K]: T[K];
|
|
44
|
+
}) & {};
|
|
@@ -14,34 +14,27 @@ export interface XInputNumberProps {
|
|
|
14
14
|
stepStrictly?: InputNumberProps['stepStrictly'];
|
|
15
15
|
}
|
|
16
16
|
type __VLS_Props = XInputNumberProps;
|
|
17
|
-
type
|
|
17
|
+
type __VLS_Slots = {
|
|
18
|
+
prefix: () => VNode;
|
|
19
|
+
suffix: () => VNode;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_ModelProps = {
|
|
18
22
|
modelValue?: number;
|
|
19
|
-
} & __VLS_Props;
|
|
20
|
-
declare function __VLS_template(): {
|
|
21
|
-
attrs: Partial<{}>;
|
|
22
|
-
slots: Readonly<{
|
|
23
|
-
prefix: () => VNode;
|
|
24
|
-
suffix: () => VNode;
|
|
25
|
-
}> & {
|
|
26
|
-
prefix: () => VNode;
|
|
27
|
-
suffix: () => VNode;
|
|
28
|
-
};
|
|
29
|
-
refs: {};
|
|
30
|
-
rootEl: any;
|
|
31
23
|
};
|
|
32
|
-
type
|
|
33
|
-
declare const
|
|
34
|
-
"update:modelValue": (value: number) => any;
|
|
24
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
25
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
"update:modelValue": (value: number | undefined) => any;
|
|
35
27
|
focus: (e: FocusEvent) => any;
|
|
36
28
|
blur: (e: FocusEvent) => any;
|
|
37
29
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
38
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
30
|
+
"onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
|
|
39
31
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
40
32
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
41
33
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
42
|
-
declare const
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
43
36
|
export default _default;
|
|
44
|
-
type
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
45
38
|
new (): {
|
|
46
39
|
$slots: S;
|
|
47
40
|
};
|
|
@@ -11,33 +11,30 @@ export interface XPaginationProps {
|
|
|
11
11
|
defaultPageSize?: PaginationProps['defaultPageSize'];
|
|
12
12
|
}
|
|
13
13
|
type __VLS_Props = XPaginationProps;
|
|
14
|
-
type
|
|
14
|
+
type __VLS_ModelProps = {
|
|
15
15
|
'currentPage'?: number;
|
|
16
16
|
'pageSize'?: number;
|
|
17
|
-
} & __VLS_Props;
|
|
18
|
-
declare function __VLS_template(): {
|
|
19
|
-
attrs: Partial<{}>;
|
|
20
|
-
slots: {
|
|
21
|
-
default?(_: {}): any;
|
|
22
|
-
};
|
|
23
|
-
refs: {};
|
|
24
|
-
rootEl: any;
|
|
25
17
|
};
|
|
26
|
-
type
|
|
27
|
-
declare
|
|
18
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
19
|
+
declare var __VLS_11: {};
|
|
20
|
+
type __VLS_Slots = {} & {
|
|
21
|
+
default?: (props: typeof __VLS_11) => any;
|
|
22
|
+
};
|
|
23
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
24
|
sizeChange: (size: number) => any;
|
|
29
25
|
currentChange: (current: number) => any;
|
|
30
|
-
"update:currentPage": (value: number) => any;
|
|
31
|
-
"update:pageSize": (value: number) => any;
|
|
26
|
+
"update:currentPage": (value: number | undefined) => any;
|
|
27
|
+
"update:pageSize": (value: number | undefined) => any;
|
|
32
28
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
33
29
|
onSizeChange?: ((size: number) => any) | undefined;
|
|
34
30
|
onCurrentChange?: ((current: number) => any) | undefined;
|
|
35
|
-
"onUpdate:currentPage"?: ((value: number) => any) | undefined;
|
|
36
|
-
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
31
|
+
"onUpdate:currentPage"?: ((value: number | undefined) => any) | undefined;
|
|
32
|
+
"onUpdate:pageSize"?: ((value: number | undefined) => any) | undefined;
|
|
37
33
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
38
|
-
declare const
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
39
36
|
export default _default;
|
|
40
|
-
type
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
38
|
new (): {
|
|
42
39
|
$slots: S;
|
|
43
40
|
};
|
|
@@ -30,23 +30,28 @@ export interface XSelectEvents<V> {
|
|
|
30
30
|
change: [value: V];
|
|
31
31
|
focus: [e: FocusEvent];
|
|
32
32
|
}
|
|
33
|
-
declare const
|
|
34
|
-
props: __VLS_PrettifyLocal<
|
|
35
|
-
readonly "onUpdate:modelValue"?: ((value: MV) => any) | undefined;
|
|
36
|
-
readonly onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
37
|
-
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
38
|
-
readonly onChange?: ((value: V) => any) | undefined;
|
|
39
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:modelValue"> & ({
|
|
33
|
+
declare const __VLS_export: <D, V, MV extends V | V[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
34
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<(XSelectProps<D, V> & {
|
|
40
35
|
modelValue?: MV;
|
|
41
|
-
}
|
|
42
|
-
|
|
36
|
+
}) & {
|
|
37
|
+
"onUpdate:modelValue"?: ((value: MV | undefined) => any) | undefined;
|
|
38
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
39
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
40
|
+
onChange?: ((value: V) => any) | undefined;
|
|
41
|
+
}> & (typeof globalThis extends {
|
|
42
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
43
|
+
} ? P : {});
|
|
44
|
+
expose: (exposed: {}) => void;
|
|
43
45
|
attrs: any;
|
|
44
46
|
slots: {};
|
|
45
|
-
emit: (((evt: "focus", e: FocusEvent) => void) & ((evt: "blur", e: FocusEvent) => void) & ((evt: "change", value: V) => void)) & ((
|
|
47
|
+
emit: (((evt: "focus", e: FocusEvent) => void) & ((evt: "blur", e: FocusEvent) => void) & ((evt: "change", value: V) => void)) & ((event: "update:modelValue", value: MV | undefined) => void);
|
|
46
48
|
}>) => import('vue').VNode & {
|
|
47
49
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
48
50
|
};
|
|
51
|
+
declare const _default: typeof __VLS_export;
|
|
49
52
|
export default _default;
|
|
50
|
-
type __VLS_PrettifyLocal<T> = {
|
|
53
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
51
54
|
[K in keyof T]: T[K];
|
|
52
|
-
}
|
|
55
|
+
} : {
|
|
56
|
+
[K in keyof T as K]: T[K];
|
|
57
|
+
}) & {};
|
|
@@ -10,22 +10,18 @@ export interface XTabPaneProps {
|
|
|
10
10
|
lazy?: TabPaneProps['lazy'];
|
|
11
11
|
name?: TabPaneProps['name'];
|
|
12
12
|
}
|
|
13
|
-
declare
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
default?(_: {}): any;
|
|
17
|
-
};
|
|
18
|
-
refs: {};
|
|
19
|
-
rootEl: any;
|
|
13
|
+
declare var __VLS_8: {};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
default?: (props: typeof __VLS_8) => any;
|
|
20
16
|
};
|
|
21
|
-
|
|
22
|
-
declare const __VLS_component: import('vue').DefineComponent<XTabPaneProps, {
|
|
17
|
+
declare const __VLS_base: import('vue').DefineComponent<XTabPaneProps, {
|
|
23
18
|
label: string | undefined;
|
|
24
19
|
name: string | number | undefined;
|
|
25
20
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XTabPaneProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
-
declare const
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
27
23
|
export default _default;
|
|
28
|
-
type
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
25
|
new (): {
|
|
30
26
|
$slots: S;
|
|
31
27
|
};
|
|
@@ -80,14 +80,16 @@ export interface XTableEvents<D> {
|
|
|
80
80
|
rowDblclick: [row: D];
|
|
81
81
|
selectionChange: [rows: D[]];
|
|
82
82
|
}
|
|
83
|
-
declare const
|
|
84
|
-
props: __VLS_PrettifyLocal<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
} &
|
|
90
|
-
|
|
83
|
+
declare const __VLS_export: <D>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
84
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<XTableProps<D> & {
|
|
85
|
+
onHeaderDragend?: ((newWidth: number, oldWidth: number, column: TableColumnCtx) => any) | undefined;
|
|
86
|
+
onRowClick?: ((row: D) => any) | undefined;
|
|
87
|
+
onRowDblclick?: ((row: D) => any) | undefined;
|
|
88
|
+
onSelectionChange?: ((rows: D[]) => any) | undefined;
|
|
89
|
+
}> & (typeof globalThis extends {
|
|
90
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
91
|
+
} ? P : {});
|
|
92
|
+
expose: (exposed: import('vue').ShallowUnwrapRef<{
|
|
91
93
|
clearSelection: () => void | undefined;
|
|
92
94
|
doLayout: () => void | undefined;
|
|
93
95
|
getSelectionRows: () => D[];
|
|
@@ -97,14 +99,17 @@ declare const _default: <D>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
97
99
|
setScrollTop: (top: number) => void | undefined;
|
|
98
100
|
toggleAllSelection: () => void | undefined;
|
|
99
101
|
toggleRowSelection: (row: D, selected?: boolean, ignoreSelectable?: boolean) => void | undefined;
|
|
100
|
-
}>)
|
|
102
|
+
}>) => void;
|
|
101
103
|
attrs: any;
|
|
102
104
|
slots: {};
|
|
103
105
|
emit: ((evt: "headerDragend", newWidth: number, oldWidth: number, column: TableColumnCtx) => void) & ((evt: "rowClick", row: D) => void) & ((evt: "rowDblclick", row: D) => void) & ((evt: "selectionChange", rows: D[]) => void);
|
|
104
106
|
}>) => import('vue').VNode & {
|
|
105
107
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
106
108
|
};
|
|
109
|
+
declare const _default: typeof __VLS_export;
|
|
107
110
|
export default _default;
|
|
108
|
-
type __VLS_PrettifyLocal<T> = {
|
|
111
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
109
112
|
[K in keyof T]: T[K];
|
|
110
|
-
}
|
|
113
|
+
} : {
|
|
114
|
+
[K in keyof T as K]: T[K];
|
|
115
|
+
}) & {};
|
|
@@ -11,29 +11,31 @@ export interface XTabsEvents<V> {
|
|
|
11
11
|
remove: [name: V];
|
|
12
12
|
edit: [name: V, action: 'remove' | 'add'];
|
|
13
13
|
}
|
|
14
|
-
declare const
|
|
15
|
-
props: __VLS_PrettifyLocal<
|
|
16
|
-
readonly "onUpdate:modelValue"?: ((value: V) => any) | undefined;
|
|
17
|
-
readonly onChange?: ((name: V) => any) | undefined;
|
|
18
|
-
readonly onRemove?: ((name: V) => any) | undefined;
|
|
19
|
-
readonly onEdit?: ((name: V, action: "add" | "remove") => any) | undefined;
|
|
20
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue" | "onRemove" | "onEdit"> & ({
|
|
14
|
+
declare const __VLS_export: <V extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
15
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<(XTabsProps & {
|
|
21
16
|
modelValue?: V;
|
|
22
|
-
}
|
|
23
|
-
|
|
17
|
+
}) & {
|
|
18
|
+
"onUpdate:modelValue"?: ((value: V | undefined) => any) | undefined;
|
|
19
|
+
onChange?: ((name: V) => any) | undefined;
|
|
20
|
+
onRemove?: ((name: V) => any) | undefined;
|
|
21
|
+
onEdit?: ((name: V, action: "add" | "remove") => any) | undefined;
|
|
22
|
+
}> & (typeof globalThis extends {
|
|
23
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
24
|
+
} ? P : {});
|
|
25
|
+
expose: (exposed: {}) => void;
|
|
24
26
|
attrs: any;
|
|
25
|
-
slots:
|
|
26
|
-
default: () => VNodeChild;
|
|
27
|
-
addIcon: () => VNodeChild;
|
|
28
|
-
}> & {
|
|
27
|
+
slots: {
|
|
29
28
|
default: () => VNodeChild;
|
|
30
29
|
addIcon: () => VNodeChild;
|
|
31
30
|
};
|
|
32
|
-
emit: (((evt: "change", name: V) => void) & ((evt: "remove", name: V) => void) & ((evt: "edit", name: V, action: "add" | "remove") => void)) & ((
|
|
31
|
+
emit: (((evt: "change", name: V) => void) & ((evt: "remove", name: V) => void) & ((evt: "edit", name: V, action: "add" | "remove") => void)) & ((event: "update:modelValue", value: V | undefined) => void);
|
|
33
32
|
}>) => import('vue').VNode & {
|
|
34
33
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
35
34
|
};
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
36
|
export default _default;
|
|
37
|
-
type __VLS_PrettifyLocal<T> = {
|
|
37
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
38
38
|
[K in keyof T]: T[K];
|
|
39
|
-
}
|
|
39
|
+
} : {
|
|
40
|
+
[K in keyof T as K]: T[K];
|
|
41
|
+
}) & {};
|
|
@@ -14,33 +14,20 @@ export interface XUploadProps {
|
|
|
14
14
|
onRemove?: UploadProps['onRemove'];
|
|
15
15
|
onPreview?: UploadProps['onPreview'];
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
tip: () => VNodeChild;
|
|
26
|
-
trigger: () => VNodeChild;
|
|
27
|
-
}> & {
|
|
28
|
-
default: () => VNodeChild;
|
|
29
|
-
file: (scope: {
|
|
30
|
-
file: UploadFile;
|
|
31
|
-
index: number;
|
|
32
|
-
}) => VNodeChild;
|
|
33
|
-
tip: () => VNodeChild;
|
|
34
|
-
trigger: () => VNodeChild;
|
|
35
|
-
};
|
|
36
|
-
refs: {};
|
|
37
|
-
rootEl: any;
|
|
17
|
+
type __VLS_Slots = {
|
|
18
|
+
default: () => VNodeChild;
|
|
19
|
+
file: (scope: {
|
|
20
|
+
file: UploadFile;
|
|
21
|
+
index: number;
|
|
22
|
+
}) => VNodeChild;
|
|
23
|
+
tip: () => VNodeChild;
|
|
24
|
+
trigger: () => VNodeChild;
|
|
38
25
|
};
|
|
39
|
-
|
|
40
|
-
declare const
|
|
41
|
-
declare const _default:
|
|
26
|
+
declare const __VLS_base: import('vue').DefineComponent<XUploadProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XUploadProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
42
29
|
export default _default;
|
|
43
|
-
type
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
44
31
|
new (): {
|
|
45
32
|
$slots: S;
|
|
46
33
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`./basic-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`./basic-BGb_tawM.cjs`),t=require(`./advance-DfVR2Qm0.cjs`);let n=require(`element-plus`);require(`vue`);var r={button:{autoInsertSpace:!1},datePicker:{},pagination:{layout:`prev, pager, next, sizes, jumper, ->, total`},table:{showOverflowTooltip:!1}},i=(e={})=>({button:{...r.button,...e.button},datePicker:{...r.datePicker,...e.datePicker},oss:e.oss,pagination:{...r.pagination,...e.pagination},table:{...r.table,...e.table}}),a=(r,a={})=>{r[e.v]||(r[e.v]=!0,r.provide(e._,i(a.config)),r.directive(`loading`,n.vLoading),Object.entries({...e.t,...a.advance?t.t:{}}).forEach(([e,t])=>r.component(e,t)))},o=`0.5.2`,s=a;exports.default=s,exports.install=a,exports.version=o;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e, t, v as n } from "./basic-
|
|
2
|
-
import { t as r } from "./advance-
|
|
1
|
+
import { _ as e, t, v as n } from "./basic-KTA4sDP3.js";
|
|
2
|
+
import { t as r } from "./advance-BtiI894G.js";
|
|
3
3
|
import { vLoading as i } from "element-plus";
|
|
4
4
|
import "vue";
|
|
5
5
|
//#region src/composables/useElementConfig.ts
|
|
@@ -31,6 +31,6 @@ var a = {
|
|
|
31
31
|
...t,
|
|
32
32
|
...s.advance ? r : {}
|
|
33
33
|
}).forEach(([e, t]) => a.component(e, t)));
|
|
34
|
-
}, c = "0.5.
|
|
34
|
+
}, c = "0.5.2", l = s;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { l as default, s as install, c as version };
|
|
@@ -172,6 +172,10 @@ var e = {
|
|
|
172
172
|
leftArrow: "Carousel arrow left",
|
|
173
173
|
rightArrow: "Carousel arrow right",
|
|
174
174
|
indicator: "Carousel switch to index {index}"
|
|
175
|
+
},
|
|
176
|
+
inputOTP: {
|
|
177
|
+
groupLabel: "OTP Input",
|
|
178
|
+
defaultLabel: "Please enter OTP character {index}"
|
|
175
179
|
}
|
|
176
180
|
}
|
|
177
181
|
};
|
|
@@ -384,6 +388,10 @@ var t = {
|
|
|
384
388
|
leftArrow: "上一张幻灯片",
|
|
385
389
|
rightArrow: "下一张幻灯片",
|
|
386
390
|
indicator: "幻灯片切换至索引 {index}"
|
|
391
|
+
},
|
|
392
|
+
inputOTP: {
|
|
393
|
+
groupLabel: "一次性密码输入框",
|
|
394
|
+
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
387
395
|
}
|
|
388
396
|
}
|
|
389
397
|
};
|
|
@@ -596,6 +604,10 @@ var n = {
|
|
|
596
604
|
leftArrow: "Carousel arrow left",
|
|
597
605
|
rightArrow: "Carousel arrow right",
|
|
598
606
|
indicator: "Carousel switch to index {index}"
|
|
607
|
+
},
|
|
608
|
+
inputOTP: {
|
|
609
|
+
groupLabel: "OTP Input",
|
|
610
|
+
defaultLabel: "Please enter OTP character {index}"
|
|
599
611
|
}
|
|
600
612
|
}
|
|
601
613
|
};
|
|
@@ -808,6 +820,10 @@ var r = {
|
|
|
808
820
|
leftArrow: "Carousel arrow left",
|
|
809
821
|
rightArrow: "Carousel arrow right",
|
|
810
822
|
indicator: "Carousel switch to index {index}"
|
|
823
|
+
},
|
|
824
|
+
inputOTP: {
|
|
825
|
+
groupLabel: "OTP Input",
|
|
826
|
+
defaultLabel: "Please enter OTP character {index}"
|
|
811
827
|
}
|
|
812
828
|
}
|
|
813
829
|
};
|