@pungfe/element 0.6.1 → 0.6.5
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/package.json +26 -9
- package/dist/advance-D6B-C4Hp.cjs +0 -1
- package/dist/advance-_v6DUKbJ.js +0 -2062
- package/dist/advance.cjs +0 -1
- package/dist/advance.d.ts +0 -25
- package/dist/advance.js +0 -2
- package/dist/basic-Cr2tjyfU.cjs +0 -1
- package/dist/basic-DxvTjPBA.js +0 -1046
- package/dist/basic.cjs +0 -1
- package/dist/basic.d.ts +0 -33
- package/dist/basic.js +0 -2
- package/dist/components/advance/XButtonAsync.vue.d.ts +0 -17
- package/dist/components/advance/XButtonConfirm.vue.d.ts +0 -23
- package/dist/components/advance/XCascaderRequest.vue.d.ts +0 -60
- package/dist/components/advance/XFormFlex.vue.d.ts +0 -23
- package/dist/components/advance/XFormRequest.vue.d.ts +0 -58
- package/dist/components/advance/XRequest.vue.d.ts +0 -71
- package/dist/components/advance/XSelectRequest.vue.d.ts +0 -58
- package/dist/components/advance/XTableConfig.vue.d.ts +0 -47
- package/dist/components/advance/XTableFlex.vue.d.ts +0 -57
- package/dist/components/advance/XTableRequest.vue.d.ts +0 -96
- package/dist/components/advance/XTableRequestConfig.vue.d.ts +0 -84
- package/dist/components/advance/XUploadOss.vue.d.ts +0 -31
- package/dist/components/basic/Button.vue.d.ts +0 -33
- package/dist/components/basic/Cascader.vue.d.ts +0 -40
- package/dist/components/basic/Checkbox.vue.d.ts +0 -24
- package/dist/components/basic/ConfigProvider.vue.d.ts +0 -17
- package/dist/components/basic/DatePicker.vue.d.ts +0 -43
- package/dist/components/basic/Dialog.vue.d.ts +0 -36
- package/dist/components/basic/Form.vue.d.ts +0 -37
- package/dist/components/basic/FormItem.vue.d.ts +0 -36
- package/dist/components/basic/Input.vue.d.ts +0 -44
- package/dist/components/basic/InputNumber.vue.d.ts +0 -41
- package/dist/components/basic/Pagination.vue.d.ts +0 -41
- package/dist/components/basic/Select.vue.d.ts +0 -57
- package/dist/components/basic/TabPane.vue.d.ts +0 -28
- package/dist/components/basic/Table.vue.d.ts +0 -114
- package/dist/components/basic/Tabs.vue.d.ts +0 -41
- package/dist/components/basic/Upload.vue.d.ts +0 -34
- package/dist/composables/useElementConfig.d.ts +0 -8
- package/dist/composables/useFormValidation.d.ts +0 -1
- package/dist/composables/useXConfig.d.ts +0 -3
- package/dist/constants/index.d.ts +0 -18
- package/dist/index.cjs +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -36
- package/dist/install.d.ts +0 -12
- package/dist/locales/ar.d.ts +0 -2
- package/dist/locales/en.d.ts +0 -2
- package/dist/locales/th.d.ts +0 -2
- package/dist/locales/zh-cn.d.ts +0 -2
- package/dist/locales-BCty7For.cjs +0 -1
- package/dist/locales-C0-S9TeD.js +0 -865
- package/dist/locales.cjs +0 -1
- package/dist/locales.d.ts +0 -4
- package/dist/locales.js +0 -2
- package/dist/package.json.d.ts +0 -128
- package/dist/resolver.cjs +0 -1
- package/dist/resolver.d.ts +0 -5
- package/dist/resolver.js +0 -66
- package/dist/style.css +0 -3
- package/dist/types.d.ts +0 -32
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { VNodeChild } from 'vue';
|
|
2
|
-
import { XUploadProps } from '../../basic';
|
|
3
|
-
export interface XUploadOssProps extends Omit<XUploadProps, 'action' | 'beforeUpload' | 'data' | 'fileList'> {
|
|
4
|
-
/** oss 接收文件最大 大约为50兆, 超过50兆应采取oss ststoken 分片上传 */
|
|
5
|
-
maxSize?: number;
|
|
6
|
-
}
|
|
7
|
-
declare const __VLS_export: <V extends string, 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<{
|
|
8
|
-
props: import('vue').PublicProps & __VLS_PrettifyLocal<(XUploadOssProps & {
|
|
9
|
-
modelValue?: MV;
|
|
10
|
-
}) & {
|
|
11
|
-
"onUpdate:modelValue"?: ((value: MV | undefined) => any) | undefined;
|
|
12
|
-
}> & (typeof globalThis extends {
|
|
13
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
14
|
-
} ? P : {});
|
|
15
|
-
expose: (exposed: {}) => void;
|
|
16
|
-
attrs: any;
|
|
17
|
-
slots: {
|
|
18
|
-
default: () => VNodeChild;
|
|
19
|
-
tip: () => VNodeChild;
|
|
20
|
-
};
|
|
21
|
-
emit: (event: "update:modelValue", value: MV | undefined) => void;
|
|
22
|
-
}>) => import('vue').VNode & {
|
|
23
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
24
|
-
};
|
|
25
|
-
declare const _default: typeof __VLS_export;
|
|
26
|
-
export default _default;
|
|
27
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
28
|
-
[K in keyof T]: T[K];
|
|
29
|
-
} : {
|
|
30
|
-
[K in keyof T as K]: T[K];
|
|
31
|
-
}) & {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from 'element-plus';
|
|
2
|
-
export interface XButtonConfig {
|
|
3
|
-
/**
|
|
4
|
-
* 两个中文字符之间自动插入空格(仅当文本长度为 2 且所有字符均为中文时才生效)
|
|
5
|
-
* @default false
|
|
6
|
-
*/
|
|
7
|
-
autoInsertSpace?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface XButtonProps {
|
|
10
|
-
disabled?: ButtonProps['disabled'];
|
|
11
|
-
icon?: ButtonProps['icon'];
|
|
12
|
-
link?: ButtonProps['link'];
|
|
13
|
-
size?: ButtonProps['size'];
|
|
14
|
-
text?: ButtonProps['text'];
|
|
15
|
-
type?: ButtonProps['type'];
|
|
16
|
-
}
|
|
17
|
-
declare var __VLS_10: {};
|
|
18
|
-
type __VLS_Slots = {} & {
|
|
19
|
-
default?: (props: typeof __VLS_10) => any;
|
|
20
|
-
};
|
|
21
|
-
declare const __VLS_base: import('vue').DefineComponent<XButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
-
click: (e: MouseEvent) => any;
|
|
23
|
-
}, string, import('vue').PublicProps, Readonly<XButtonProps> & Readonly<{
|
|
24
|
-
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
25
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
-
declare const _default: typeof __VLS_export;
|
|
28
|
-
export default _default;
|
|
29
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
-
new (): {
|
|
31
|
-
$slots: S;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { CascaderComponentProps } from 'element-plus';
|
|
2
|
-
export interface XCascaderOptionProps<D, V> {
|
|
3
|
-
children?: D[];
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
label?: number | string;
|
|
6
|
-
leaf?: boolean;
|
|
7
|
-
value: V;
|
|
8
|
-
}
|
|
9
|
-
export interface XCascaderProps<D, V> {
|
|
10
|
-
clearable?: CascaderComponentProps['clearable'];
|
|
11
|
-
data?: D[];
|
|
12
|
-
disabled?: CascaderComponentProps['disabled'];
|
|
13
|
-
factory?: (option: D, level: number) => XCascaderOptionProps<D, V>;
|
|
14
|
-
filterable?: CascaderComponentProps['filterable'];
|
|
15
|
-
placeholder?: CascaderComponentProps['placeholder'];
|
|
16
|
-
props?: CascaderComponentProps['props'];
|
|
17
|
-
size?: CascaderComponentProps['size'];
|
|
18
|
-
}
|
|
19
|
-
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<{
|
|
20
|
-
props: import('vue').PublicProps & __VLS_PrettifyLocal<(XCascaderProps<D, V> & {
|
|
21
|
-
modelValue?: MV;
|
|
22
|
-
}) & {
|
|
23
|
-
"onUpdate:modelValue"?: ((value: MV | undefined) => any) | undefined;
|
|
24
|
-
}> & (typeof globalThis extends {
|
|
25
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
26
|
-
} ? P : {});
|
|
27
|
-
expose: (exposed: {}) => void;
|
|
28
|
-
attrs: any;
|
|
29
|
-
slots: {};
|
|
30
|
-
emit: (event: "update:modelValue", value: MV | undefined) => void;
|
|
31
|
-
}>) => import('vue').VNode & {
|
|
32
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
33
|
-
};
|
|
34
|
-
declare const _default: typeof __VLS_export;
|
|
35
|
-
export default _default;
|
|
36
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
37
|
-
[K in keyof T]: T[K];
|
|
38
|
-
} : {
|
|
39
|
-
[K in keyof T as K]: T[K];
|
|
40
|
-
}) & {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { CheckboxProps, CheckboxValueType } from 'element-plus';
|
|
2
|
-
export interface XCheckboxProps {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
falseValue?: CheckboxProps['falseValue'];
|
|
5
|
-
label?: CheckboxProps['label'];
|
|
6
|
-
size?: CheckboxProps['size'];
|
|
7
|
-
trueValue?: CheckboxProps['trueValue'];
|
|
8
|
-
}
|
|
9
|
-
type __VLS_Props = XCheckboxProps;
|
|
10
|
-
type __VLS_ModelProps = {
|
|
11
|
-
modelValue?: CheckboxValueType;
|
|
12
|
-
};
|
|
13
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
-
"update:modelValue": (value: CheckboxValueType | undefined) => any;
|
|
16
|
-
focus: (e: FocusEvent) => any;
|
|
17
|
-
blur: (e: FocusEvent) => any;
|
|
18
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
-
"onUpdate:modelValue"?: ((value: CheckboxValueType | undefined) => any) | undefined;
|
|
20
|
-
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
21
|
-
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
22
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
-
declare const _default: typeof __VLS_export;
|
|
24
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ConfigProviderProps } from 'element-plus';
|
|
2
|
-
export interface XConfigProviderProps {
|
|
3
|
-
locale?: ConfigProviderProps['locale'];
|
|
4
|
-
}
|
|
5
|
-
declare var __VLS_8: {};
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_8) => any;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_base: import('vue').DefineComponent<XConfigProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { DatePickerProps } from 'element-plus';
|
|
2
|
-
export interface XDateConfig {
|
|
3
|
-
teleported?: boolean;
|
|
4
|
-
valueFormat?: DatePickerProps['valueFormat'];
|
|
5
|
-
}
|
|
6
|
-
export interface XDatePickerProps extends XDateConfig {
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
disabledDate?: DatePickerProps['disabledDate'];
|
|
9
|
-
endPlaceholder?: DatePickerProps['endPlaceholder'];
|
|
10
|
-
placeholder?: DatePickerProps['placeholder'];
|
|
11
|
-
shortcuts?: DatePickerProps['shortcuts'];
|
|
12
|
-
size?: DatePickerProps['size'];
|
|
13
|
-
startPlaceholder?: DatePickerProps['startPlaceholder'];
|
|
14
|
-
type?: DatePickerProps['type'];
|
|
15
|
-
}
|
|
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 & {
|
|
18
|
-
modelValue?: V;
|
|
19
|
-
start?: V;
|
|
20
|
-
end?: V;
|
|
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;
|
|
31
|
-
attrs: any;
|
|
32
|
-
slots: {};
|
|
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));
|
|
34
|
-
}>) => import('vue').VNode & {
|
|
35
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
36
|
-
};
|
|
37
|
-
declare const _default: typeof __VLS_export;
|
|
38
|
-
export default _default;
|
|
39
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
40
|
-
[K in keyof T]: T[K];
|
|
41
|
-
} : {
|
|
42
|
-
[K in keyof T as K]: T[K];
|
|
43
|
-
}) & {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { DialogProps } from 'element-plus';
|
|
2
|
-
import { VNodeChild } from 'vue';
|
|
3
|
-
export interface XDialogProps {
|
|
4
|
-
alignCenter?: DialogProps['alignCenter'];
|
|
5
|
-
bodyClass?: DialogProps['bodyClass'];
|
|
6
|
-
center?: DialogProps['center'];
|
|
7
|
-
closeOnClickModal?: DialogProps['closeOnClickModal'];
|
|
8
|
-
closeOnPressEscape?: DialogProps['closeOnPressEscape'];
|
|
9
|
-
draggable?: DialogProps['draggable'];
|
|
10
|
-
showClose?: DialogProps['showClose'];
|
|
11
|
-
title?: DialogProps['title'];
|
|
12
|
-
width?: DialogProps['width'];
|
|
13
|
-
}
|
|
14
|
-
type __VLS_Props = XDialogProps;
|
|
15
|
-
type __VLS_Slots = {
|
|
16
|
-
default?: () => VNodeChild;
|
|
17
|
-
footer?: () => VNodeChild;
|
|
18
|
-
header?: () => VNodeChild;
|
|
19
|
-
};
|
|
20
|
-
type __VLS_ModelProps = {
|
|
21
|
-
modelValue?: boolean;
|
|
22
|
-
};
|
|
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;
|
|
26
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
|
-
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
28
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
-
declare const _default: typeof __VLS_export;
|
|
31
|
-
export default _default;
|
|
32
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
-
new (): {
|
|
34
|
-
$slots: S;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { VNodeChild } from 'vue';
|
|
2
|
-
import { FormProps } from 'element-plus';
|
|
3
|
-
export interface XFormProps<D> {
|
|
4
|
-
content?: (scope: {
|
|
5
|
-
data: D;
|
|
6
|
-
}) => VNodeChild;
|
|
7
|
-
data?: D;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
inline?: boolean;
|
|
10
|
-
labelPosition?: 'left' | 'right' | 'top';
|
|
11
|
-
labelSuffix?: string;
|
|
12
|
-
labelWidth?: number | string;
|
|
13
|
-
size?: FormProps['size'];
|
|
14
|
-
}
|
|
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<{
|
|
20
|
-
clearValidate: () => void;
|
|
21
|
-
data: D | undefined;
|
|
22
|
-
resetFields: () => void;
|
|
23
|
-
validate: () => boolean;
|
|
24
|
-
}>) => void;
|
|
25
|
-
attrs: any;
|
|
26
|
-
slots: {};
|
|
27
|
-
emit: {};
|
|
28
|
-
}>) => import('vue').VNode & {
|
|
29
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
30
|
-
};
|
|
31
|
-
declare const _default: typeof __VLS_export;
|
|
32
|
-
export default _default;
|
|
33
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
34
|
-
[K in keyof T]: T[K];
|
|
35
|
-
} : {
|
|
36
|
-
[K in keyof T as K]: T[K];
|
|
37
|
-
}) & {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { VNodeChild } from 'vue';
|
|
2
|
-
export interface XFormItemProps {
|
|
3
|
-
content?: () => VNodeChild;
|
|
4
|
-
label?: string;
|
|
5
|
-
required?: boolean;
|
|
6
|
-
validator?: () => string | void;
|
|
7
|
-
}
|
|
8
|
-
export interface XFormItemValidation {
|
|
9
|
-
clearValidate: () => void;
|
|
10
|
-
id?: string;
|
|
11
|
-
label?: string;
|
|
12
|
-
required?: boolean;
|
|
13
|
-
validate: () => boolean;
|
|
14
|
-
validator?: () => string | void;
|
|
15
|
-
}
|
|
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;
|
|
21
|
-
attrs: any;
|
|
22
|
-
slots: {
|
|
23
|
-
default: () => VNodeChild;
|
|
24
|
-
label: () => VNodeChild;
|
|
25
|
-
};
|
|
26
|
-
emit: {};
|
|
27
|
-
}>) => import('vue').VNode & {
|
|
28
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
29
|
-
};
|
|
30
|
-
declare const _default: typeof __VLS_export;
|
|
31
|
-
export default _default;
|
|
32
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
33
|
-
[K in keyof T]: T[K];
|
|
34
|
-
} : {
|
|
35
|
-
[K in keyof T as K]: T[K];
|
|
36
|
-
}) & {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { InputProps } from 'element-plus';
|
|
2
|
-
import { VNode } from 'vue';
|
|
3
|
-
export interface XInputProps {
|
|
4
|
-
autocomplete?: InputProps['autocomplete'];
|
|
5
|
-
autosize?: InputProps['autosize'];
|
|
6
|
-
clearable?: InputProps['clearable'];
|
|
7
|
-
disabled?: InputProps['disabled'];
|
|
8
|
-
placeholder?: InputProps['placeholder'];
|
|
9
|
-
prefixIcon?: InputProps['prefixIcon'];
|
|
10
|
-
showPassword?: InputProps['showPassword'];
|
|
11
|
-
size?: InputProps['size'];
|
|
12
|
-
suffixIcon?: InputProps['suffixIcon'];
|
|
13
|
-
type?: InputProps['type'];
|
|
14
|
-
}
|
|
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 & {
|
|
17
|
-
modelValue?: MV;
|
|
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;
|
|
27
|
-
attrs: any;
|
|
28
|
-
slots: {
|
|
29
|
-
append: () => VNode;
|
|
30
|
-
prefix: () => VNode;
|
|
31
|
-
prepend: () => VNode;
|
|
32
|
-
suffix: () => VNode;
|
|
33
|
-
};
|
|
34
|
-
emit: (((evt: "focus", e: FocusEvent) => void) & ((evt: "blur", e: FocusEvent) => void) & ((evt: "change", e: MV) => void)) & ((event: "update:modelValue", value: MV | undefined) => void);
|
|
35
|
-
}>) => import('vue').VNode & {
|
|
36
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
37
|
-
};
|
|
38
|
-
declare const _default: typeof __VLS_export;
|
|
39
|
-
export default _default;
|
|
40
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
41
|
-
[K in keyof T]: T[K];
|
|
42
|
-
} : {
|
|
43
|
-
[K in keyof T as K]: T[K];
|
|
44
|
-
}) & {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { InputNumberProps } from 'element-plus';
|
|
2
|
-
import { VNode } from 'vue';
|
|
3
|
-
export interface XInputNumberProps {
|
|
4
|
-
align?: InputNumberProps['align'];
|
|
5
|
-
controls?: InputNumberProps['controls'];
|
|
6
|
-
disabled?: InputNumberProps['disabled'];
|
|
7
|
-
inputmode?: InputNumberProps['inputmode'];
|
|
8
|
-
max?: InputNumberProps['max'];
|
|
9
|
-
min?: InputNumberProps['min'];
|
|
10
|
-
placeholder?: InputNumberProps['placeholder'];
|
|
11
|
-
precision?: InputNumberProps['precision'];
|
|
12
|
-
size?: InputNumberProps['size'];
|
|
13
|
-
step?: InputNumberProps['step'];
|
|
14
|
-
stepStrictly?: InputNumberProps['stepStrictly'];
|
|
15
|
-
}
|
|
16
|
-
type __VLS_Props = XInputNumberProps;
|
|
17
|
-
type __VLS_Slots = {
|
|
18
|
-
prefix: () => VNode;
|
|
19
|
-
suffix: () => VNode;
|
|
20
|
-
};
|
|
21
|
-
type __VLS_ModelProps = {
|
|
22
|
-
modelValue?: number;
|
|
23
|
-
};
|
|
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;
|
|
27
|
-
focus: (e: FocusEvent) => any;
|
|
28
|
-
blur: (e: FocusEvent) => any;
|
|
29
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
30
|
-
"onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
|
|
31
|
-
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
32
|
-
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
33
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
34
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
|
-
declare const _default: typeof __VLS_export;
|
|
36
|
-
export default _default;
|
|
37
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
-
new (): {
|
|
39
|
-
$slots: S;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { PaginationProps } from 'element-plus';
|
|
2
|
-
export interface XPaginationConfig {
|
|
3
|
-
defaultPageSize?: PaginationProps['defaultPageSize'];
|
|
4
|
-
layout?: XPaginationProps['layout'];
|
|
5
|
-
}
|
|
6
|
-
export interface XPaginationProps extends XPaginationConfig {
|
|
7
|
-
background?: PaginationProps['background'];
|
|
8
|
-
layout?: PaginationProps['layout'];
|
|
9
|
-
pageSizes?: PaginationProps['pageSizes'];
|
|
10
|
-
size?: PaginationProps['size'];
|
|
11
|
-
total?: PaginationProps['total'];
|
|
12
|
-
}
|
|
13
|
-
type __VLS_Props = XPaginationProps;
|
|
14
|
-
type __VLS_ModelProps = {
|
|
15
|
-
'currentPage'?: number;
|
|
16
|
-
'pageSize'?: number;
|
|
17
|
-
};
|
|
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, {
|
|
24
|
-
currentChange: (value: number) => any;
|
|
25
|
-
sizeChange: (value: number) => any;
|
|
26
|
-
"update:currentPage": (value: number | undefined) => any;
|
|
27
|
-
"update:pageSize": (value: number | undefined) => any;
|
|
28
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
|
-
onCurrentChange?: ((value: number) => any) | undefined;
|
|
30
|
-
onSizeChange?: ((value: number) => any) | undefined;
|
|
31
|
-
"onUpdate:currentPage"?: ((value: number | undefined) => any) | undefined;
|
|
32
|
-
"onUpdate:pageSize"?: ((value: number | undefined) => any) | undefined;
|
|
33
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
34
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
|
-
declare const _default: typeof __VLS_export;
|
|
36
|
-
export default _default;
|
|
37
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
-
new (): {
|
|
39
|
-
$slots: S;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { SelectProps } from 'element-plus';
|
|
2
|
-
import { VNode } from 'vue';
|
|
3
|
-
export interface XSelectEvents<V> {
|
|
4
|
-
blur: [e: FocusEvent];
|
|
5
|
-
change: [value: V];
|
|
6
|
-
focus: [e: FocusEvent];
|
|
7
|
-
}
|
|
8
|
-
export interface XSelectOptionProps<V> {
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
label?: number | string;
|
|
11
|
-
render?: () => VNode;
|
|
12
|
-
value: V;
|
|
13
|
-
}
|
|
14
|
-
export interface XSelectProps<D, V> {
|
|
15
|
-
allowCreate?: SelectProps['allowCreate'];
|
|
16
|
-
clearable?: SelectProps['clearable'];
|
|
17
|
-
collapseTags?: SelectProps['collapseTags'];
|
|
18
|
-
collapseTagsTooltip?: SelectProps['collapseTagsTooltip'];
|
|
19
|
-
data?: D[];
|
|
20
|
-
defaultFirstOption?: SelectProps['defaultFirstOption'];
|
|
21
|
-
disabled?: SelectProps['disabled'];
|
|
22
|
-
factory: (option: D) => XSelectOptionProps<V>;
|
|
23
|
-
filterable?: SelectProps['filterable'];
|
|
24
|
-
identify?: (value: V) => number | string;
|
|
25
|
-
loading?: SelectProps['loading'];
|
|
26
|
-
multiple?: SelectProps['multiple'];
|
|
27
|
-
placeholder?: SelectProps['placeholder'];
|
|
28
|
-
remote?: SelectProps['remote'];
|
|
29
|
-
remoteMethod?: (query: string) => void;
|
|
30
|
-
size?: SelectProps['size'];
|
|
31
|
-
supplement?: (lacks: V[]) => D[] | PromiseLike<D[]>;
|
|
32
|
-
}
|
|
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> & {
|
|
35
|
-
modelValue?: MV;
|
|
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;
|
|
45
|
-
attrs: any;
|
|
46
|
-
slots: {};
|
|
47
|
-
emit: (((evt: "focus", e: FocusEvent) => void) & ((evt: "blur", e: FocusEvent) => void) & ((evt: "change", value: V) => void)) & ((event: "update:modelValue", value: MV | undefined) => void);
|
|
48
|
-
}>) => import('vue').VNode & {
|
|
49
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
50
|
-
};
|
|
51
|
-
declare const _default: typeof __VLS_export;
|
|
52
|
-
export default _default;
|
|
53
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
54
|
-
[K in keyof T]: T[K];
|
|
55
|
-
} : {
|
|
56
|
-
[K in keyof T as K]: T[K];
|
|
57
|
-
}) & {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { TabPaneProps } from 'element-plus';
|
|
2
|
-
export interface XTabPaneConfig {
|
|
3
|
-
label?: string;
|
|
4
|
-
name?: number | string;
|
|
5
|
-
}
|
|
6
|
-
export interface XTabPaneProps {
|
|
7
|
-
closable?: TabPaneProps['closable'];
|
|
8
|
-
disabled?: TabPaneProps['disabled'];
|
|
9
|
-
label?: TabPaneProps['label'];
|
|
10
|
-
lazy?: TabPaneProps['lazy'];
|
|
11
|
-
name?: TabPaneProps['name'];
|
|
12
|
-
}
|
|
13
|
-
declare var __VLS_8: {};
|
|
14
|
-
type __VLS_Slots = {} & {
|
|
15
|
-
default?: (props: typeof __VLS_8) => any;
|
|
16
|
-
};
|
|
17
|
-
declare const __VLS_base: import('vue').DefineComponent<XTabPaneProps, {
|
|
18
|
-
label: string | undefined;
|
|
19
|
-
name: string | number | undefined;
|
|
20
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XTabPaneProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
-
declare const _default: typeof __VLS_export;
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
-
new (): {
|
|
26
|
-
$slots: S;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { TableColumnCtx, TableProps } from 'element-plus';
|
|
2
|
-
import { CSSProperties, VNode, VNodeChild } from 'vue';
|
|
3
|
-
export type DefaultRow = Record<PropertyKey, unknown>;
|
|
4
|
-
export interface XTableColumnProps<D> {
|
|
5
|
-
align?: string;
|
|
6
|
-
columnKey?: string;
|
|
7
|
-
content?: (scope: {
|
|
8
|
-
index: number;
|
|
9
|
-
row: D;
|
|
10
|
-
}) => VNodeChild;
|
|
11
|
-
fixed?: 'left' | 'right';
|
|
12
|
-
header?: (scope: {
|
|
13
|
-
column: XTableColumnProps<D>;
|
|
14
|
-
}) => VNodeChild;
|
|
15
|
-
headerAlign?: string;
|
|
16
|
-
label?: string;
|
|
17
|
-
minWidth?: number;
|
|
18
|
-
prop?: string;
|
|
19
|
-
selectable?: (row: D, index: number) => boolean;
|
|
20
|
-
type?: 'index' | 'selection';
|
|
21
|
-
width?: number;
|
|
22
|
-
}
|
|
23
|
-
export interface XTableConfig {
|
|
24
|
-
align?: string;
|
|
25
|
-
border?: TableProps<DefaultRow>['border'];
|
|
26
|
-
emptyText?: TableProps<DefaultRow>['emptyText'];
|
|
27
|
-
fit?: TableProps<DefaultRow>['fit'];
|
|
28
|
-
headerAlign?: string;
|
|
29
|
-
/**
|
|
30
|
-
* 是否隐藏额外内容并在单元格悬停时使用 Tooltip 显示它们。这将影响全部列的展示
|
|
31
|
-
* @default false
|
|
32
|
-
*/
|
|
33
|
-
showOverflowTooltip?: TableProps<DefaultRow>['showOverflowTooltip'];
|
|
34
|
-
}
|
|
35
|
-
export interface XTableEvents<D> {
|
|
36
|
-
headerDragend: [newWidth: number, oldWidth: number, column: TableColumnCtx];
|
|
37
|
-
rowClick: [row: D];
|
|
38
|
-
rowDblclick: [row: D];
|
|
39
|
-
selectionChange: [rows: D[]];
|
|
40
|
-
}
|
|
41
|
-
export interface XTableProps<D extends DefaultRow> extends XTableConfig {
|
|
42
|
-
cellClassName?: ((scope: {
|
|
43
|
-
column: TableColumnCtx;
|
|
44
|
-
columnIndex: number;
|
|
45
|
-
row: D;
|
|
46
|
-
rowIndex: number;
|
|
47
|
-
}) => string) | string;
|
|
48
|
-
cellStyle?: ((scope: {
|
|
49
|
-
column: TableColumnCtx;
|
|
50
|
-
columnIndex: number;
|
|
51
|
-
row: D;
|
|
52
|
-
rowIndex: number;
|
|
53
|
-
}) => CSSProperties) | CSSProperties;
|
|
54
|
-
columns?: XTableColumnProps<D>[];
|
|
55
|
-
data?: D[];
|
|
56
|
-
height?: TableProps<D>['height'];
|
|
57
|
-
rowClassName?: ((scope: {
|
|
58
|
-
row: D;
|
|
59
|
-
rowIndex: number;
|
|
60
|
-
}) => string) | string;
|
|
61
|
-
rowKey?: ((row: D) => string) | string;
|
|
62
|
-
rowStyle?: ((scope: {
|
|
63
|
-
row: D;
|
|
64
|
-
rowIndex: number;
|
|
65
|
-
}) => CSSProperties) | CSSProperties;
|
|
66
|
-
showSummary?: TableProps<D>['showSummary'];
|
|
67
|
-
size?: TableProps<D>['size'];
|
|
68
|
-
spanMethod?: (scope: {
|
|
69
|
-
column: TableColumnCtx;
|
|
70
|
-
columnIndex: number;
|
|
71
|
-
row: D;
|
|
72
|
-
rowIndex: number;
|
|
73
|
-
}) => number[] | undefined | {
|
|
74
|
-
colspan: number;
|
|
75
|
-
rowspan: number;
|
|
76
|
-
};
|
|
77
|
-
summaryMethod?: (scope: {
|
|
78
|
-
columns: TableColumnCtx[];
|
|
79
|
-
data: D[];
|
|
80
|
-
}) => (string | VNode)[];
|
|
81
|
-
}
|
|
82
|
-
declare const __VLS_export: <D extends DefaultRow>(__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<{
|
|
83
|
-
props: import('vue').PublicProps & __VLS_PrettifyLocal<XTableProps<D> & {
|
|
84
|
-
onHeaderDragend?: ((newWidth: number, oldWidth: number, column: TableColumnCtx) => any) | undefined;
|
|
85
|
-
onRowClick?: ((row: D) => any) | undefined;
|
|
86
|
-
onRowDblclick?: ((row: D) => any) | undefined;
|
|
87
|
-
onSelectionChange?: ((rows: D[]) => any) | undefined;
|
|
88
|
-
}> & (typeof globalThis extends {
|
|
89
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
90
|
-
} ? P : {});
|
|
91
|
-
expose: (exposed: import('vue').ShallowUnwrapRef<{
|
|
92
|
-
clearSelection: () => void | undefined;
|
|
93
|
-
doLayout: () => void | undefined;
|
|
94
|
-
getSelectionRows: () => D[];
|
|
95
|
-
scrollTo: (options: number | ScrollToOptions, yCoord?: number) => void | undefined;
|
|
96
|
-
setCurrentRow: (row: D) => void | undefined;
|
|
97
|
-
setScrollLeft: (left: number) => void | undefined;
|
|
98
|
-
setScrollTop: (top: number) => void | undefined;
|
|
99
|
-
toggleAllSelection: () => void | undefined;
|
|
100
|
-
toggleRowSelection: (row: D, selected?: boolean, ignoreSelectable?: boolean) => void | undefined;
|
|
101
|
-
}>) => void;
|
|
102
|
-
attrs: any;
|
|
103
|
-
slots: {};
|
|
104
|
-
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);
|
|
105
|
-
}>) => import('vue').VNode & {
|
|
106
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
107
|
-
};
|
|
108
|
-
declare const _default: typeof __VLS_export;
|
|
109
|
-
export default _default;
|
|
110
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
111
|
-
[K in keyof T]: T[K];
|
|
112
|
-
} : {
|
|
113
|
-
[K in keyof T as K]: T[K];
|
|
114
|
-
}) & {};
|