@pungfe/element 0.6.6 → 0.6.7
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/LICENSE +21 -21
- package/README.md +156 -156
- package/dist/advance-BaWqV-Gy.cjs +1 -0
- package/dist/advance-CcFBMdgY.js +2078 -0
- package/dist/advance.cjs +1 -0
- package/dist/advance.d.ts +25 -0
- package/dist/advance.js +2 -0
- package/dist/basic-CHngH3v0.js +1051 -0
- package/dist/basic-QaGJh7c5.cjs +1 -0
- package/dist/basic.cjs +1 -0
- package/dist/basic.d.ts +33 -0
- package/dist/basic.js +2 -0
- package/dist/components/advance/XButtonAsync.vue.d.ts +17 -0
- package/dist/components/advance/XButtonConfirm.vue.d.ts +23 -0
- package/dist/components/advance/XCascaderRequest.vue.d.ts +60 -0
- package/dist/components/advance/XFormFlex.vue.d.ts +23 -0
- package/dist/components/advance/XFormRequest.vue.d.ts +58 -0
- package/dist/components/advance/XRequest.vue.d.ts +71 -0
- package/dist/components/advance/XSelectRequest.vue.d.ts +58 -0
- package/dist/components/advance/XTableConfig.vue.d.ts +54 -0
- package/dist/components/advance/XTableFlex.vue.d.ts +64 -0
- package/dist/components/advance/XTableRequest.vue.d.ts +103 -0
- package/dist/components/advance/XTableRequestConfig.vue.d.ts +91 -0
- package/dist/components/advance/XUploadOss.vue.d.ts +31 -0
- package/dist/components/basic/Button.vue.d.ts +33 -0
- package/dist/components/basic/Cascader.vue.d.ts +40 -0
- package/dist/components/basic/Checkbox.vue.d.ts +24 -0
- package/dist/components/basic/ConfigProvider.vue.d.ts +17 -0
- package/dist/components/basic/DatePicker.vue.d.ts +43 -0
- package/dist/components/basic/Dialog.vue.d.ts +36 -0
- package/dist/components/basic/Form.vue.d.ts +37 -0
- package/dist/components/basic/FormItem.vue.d.ts +36 -0
- package/dist/components/basic/Input.vue.d.ts +44 -0
- package/dist/components/basic/InputNumber.vue.d.ts +41 -0
- package/dist/components/basic/Pagination.vue.d.ts +41 -0
- package/dist/components/basic/Select.vue.d.ts +57 -0
- package/dist/components/basic/TabPane.vue.d.ts +28 -0
- package/dist/components/basic/Table.vue.d.ts +125 -0
- package/dist/components/basic/Tabs.vue.d.ts +41 -0
- package/dist/components/basic/Upload.vue.d.ts +34 -0
- package/dist/composables/useElementConfig.d.ts +8 -0
- package/dist/composables/useFormValidation.d.ts +1 -0
- package/dist/composables/useXConfig.d.ts +3 -0
- package/dist/constants/index.d.ts +18 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +36 -0
- package/dist/install.d.ts +12 -0
- package/dist/locales/ar.d.ts +2 -0
- package/dist/locales/en.d.ts +2 -0
- package/dist/locales/th.d.ts +2 -0
- package/dist/locales/zh-cn.d.ts +2 -0
- package/dist/locales-BCty7For.cjs +1 -0
- package/dist/locales-C7JFCxgs.js +865 -0
- package/dist/locales.cjs +1 -0
- package/dist/locales.d.ts +4 -0
- package/dist/locales.js +2 -0
- package/dist/package.json.d.ts +142 -0
- package/dist/resolver.cjs +1 -0
- package/dist/resolver.d.ts +5 -0
- package/dist/resolver.js +66 -0
- package/dist/style.css +3 -0
- package/dist/types.d.ts +32 -0
- package/package.json +6 -10
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Ref, VNodeChild } from 'vue';
|
|
2
|
+
import { Paging, TableColumnField } from '../../types';
|
|
3
|
+
import { XTableFlexEvents, XTableFlexProps, XTableRequestColumnsProps } from '../../advance';
|
|
4
|
+
import { DefaultRow } from '../../basic';
|
|
5
|
+
export interface XTableRequestConfigColumnsProps<QR, D> extends Omit<XTableRequestColumnsProps<D>, 'content'> {
|
|
6
|
+
content?: (scope: {
|
|
7
|
+
index: number;
|
|
8
|
+
row: D;
|
|
9
|
+
}) => VNodeChild;
|
|
10
|
+
search?: (scope: {
|
|
11
|
+
query: QR;
|
|
12
|
+
}) => VNodeChild;
|
|
13
|
+
}
|
|
14
|
+
export interface XTableRequestConfigEvents<PT, QR, D> extends XTableFlexEvents<D> {
|
|
15
|
+
prepare: [parameters: {
|
|
16
|
+
path: PT;
|
|
17
|
+
query: QR;
|
|
18
|
+
}];
|
|
19
|
+
}
|
|
20
|
+
export interface XTableRequestConfigProps<U, PT, QR, D extends DefaultRow> extends Omit<XTableFlexProps<D>, 'columns' | 'showOverflowTooltip'> {
|
|
21
|
+
config: Record<string, XTableRequestConfigColumnsProps<QR, D>>;
|
|
22
|
+
fields: () => {
|
|
23
|
+
data: Ref<TableColumnField[]>;
|
|
24
|
+
loading: Ref<boolean>;
|
|
25
|
+
update: (fields: TableColumnField[]) => PromiseLike<unknown>;
|
|
26
|
+
};
|
|
27
|
+
header?: (scope: {
|
|
28
|
+
data: D[];
|
|
29
|
+
isFetching: boolean;
|
|
30
|
+
paging: Paging;
|
|
31
|
+
path: PT;
|
|
32
|
+
query: QR;
|
|
33
|
+
}) => VNodeChild;
|
|
34
|
+
pagination?: boolean;
|
|
35
|
+
paginationLayout?: string;
|
|
36
|
+
request: () => {
|
|
37
|
+
data: Ref<D[]>;
|
|
38
|
+
execute: () => PromiseLike<unknown>;
|
|
39
|
+
isFetching: Ref<boolean>;
|
|
40
|
+
paging: Ref<Paging>;
|
|
41
|
+
path: Ref<PT>;
|
|
42
|
+
query: Ref<QR>;
|
|
43
|
+
url: U;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
declare const __VLS_export: <U, PT, QR, 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<{
|
|
47
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<XTableRequestConfigProps<U, PT, QR, D> & {
|
|
48
|
+
onHeaderDragend?: ((newWidth: number, oldWidth: number, column: import('element-plus').TableColumnCtx) => any) | undefined;
|
|
49
|
+
onRowClick?: ((row: D) => any) | undefined;
|
|
50
|
+
onRowDblclick?: ((row: D) => any) | undefined;
|
|
51
|
+
onScroll?: ((data: {
|
|
52
|
+
scrollLeft: number;
|
|
53
|
+
scrollTop: number;
|
|
54
|
+
}) => any) | undefined;
|
|
55
|
+
onSelectionChange?: ((rows: D[]) => any) | undefined;
|
|
56
|
+
onPrepare?: ((parameters: {
|
|
57
|
+
path: PT;
|
|
58
|
+
query: QR;
|
|
59
|
+
}) => any) | undefined;
|
|
60
|
+
}> & (typeof globalThis extends {
|
|
61
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
62
|
+
} ? P : {});
|
|
63
|
+
expose: (exposed: import('vue').ShallowUnwrapRef<{
|
|
64
|
+
data: Ref<D[], D[]>;
|
|
65
|
+
isFetching: Ref<boolean, boolean>;
|
|
66
|
+
paging: Ref<Paging, Paging>;
|
|
67
|
+
path: Ref<PT, PT>;
|
|
68
|
+
query: Ref<QR, QR>;
|
|
69
|
+
reset: import('@vueuse/core').UseDebounceFnReturn<() => Promise<void>>;
|
|
70
|
+
search: import('@vueuse/core').UseDebounceFnReturn<() => Promise<void>>;
|
|
71
|
+
url: U;
|
|
72
|
+
}>) => void;
|
|
73
|
+
attrs: any;
|
|
74
|
+
slots: {};
|
|
75
|
+
emit: ((evt: "headerDragend", newWidth: number, oldWidth: number, column: import('element-plus').TableColumnCtx) => void) & ((evt: "rowClick", row: D) => void) & ((evt: "rowDblclick", row: D) => void) & ((evt: "scroll", data: {
|
|
76
|
+
scrollLeft: number;
|
|
77
|
+
scrollTop: number;
|
|
78
|
+
}) => void) & ((evt: "selectionChange", rows: D[]) => void) & ((evt: "prepare", parameters: {
|
|
79
|
+
path: PT;
|
|
80
|
+
query: QR;
|
|
81
|
+
}) => void);
|
|
82
|
+
}>) => import('vue').VNode & {
|
|
83
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
84
|
+
};
|
|
85
|
+
declare const _default: typeof __VLS_export;
|
|
86
|
+
export default _default;
|
|
87
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
88
|
+
[K in keyof T]: T[K];
|
|
89
|
+
} : {
|
|
90
|
+
[K in keyof T as K]: T[K];
|
|
91
|
+
}) & {};
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
}) & {};
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
}) & {};
|
|
@@ -0,0 +1,24 @@
|
|
|
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;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
}) & {};
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
}) & {};
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
}) & {};
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
}) & {};
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
}) & {};
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
};
|