@pungfe/element 0.0.1-alpha.9 → 0.1.1
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 +151 -1
- package/dist/advance-C3UkhTla.js +1894 -0
- package/dist/advance-DIZmFb3t.cjs +1 -0
- package/dist/advance.cjs +1 -0
- package/dist/advance.d.ts +23 -0
- package/dist/advance.js +2 -0
- package/dist/basic-BfqwJFE_.cjs +1 -0
- package/dist/basic-CZ74BN1R.js +1006 -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 +21 -0
- package/dist/{basic/XReconfirm.vue.d.ts → components/advance/XButtonConfirm.vue.d.ts} +6 -5
- package/dist/components/advance/XCascaderRequest.vue.d.ts +55 -0
- package/dist/components/advance/XFormFlex.vue.d.ts +19 -0
- package/dist/components/advance/XFormRequestNext.vue.d.ts +53 -0
- package/dist/components/advance/XRequest.vue.d.ts +74 -0
- package/dist/components/advance/XSelectRequest.vue.d.ts +53 -0
- package/dist/components/advance/XTableFlex.vue.d.ts +53 -0
- package/dist/components/advance/XTableRequestConfigNext.vue.d.ts +68 -0
- package/dist/components/advance/XTableRequestNext.vue.d.ts +89 -0
- package/dist/components/advance/XUploadOssNext.vue.d.ts +29 -0
- package/dist/{basic/XButton.vue.d.ts → components/basic/Button.vue.d.ts} +15 -4
- package/dist/{basic/XSelect.vue.d.ts → components/basic/Cascader.vue.d.ts} +16 -12
- package/dist/components/basic/Checkbox.vue.d.ts +22 -0
- package/dist/components/basic/ConfigProvider.vue.d.ts +21 -0
- package/dist/components/basic/DatePicker.vue.d.ts +34 -0
- package/dist/{basic/XDialog.vue.d.ts → components/basic/Dialog.vue.d.ts} +17 -9
- package/dist/{basic/XForm.vue.d.ts → components/basic/Form.vue.d.ts} +3 -27
- package/dist/components/basic/FormItem.vue.d.ts +34 -0
- package/dist/components/basic/Input.vue.d.ts +44 -0
- package/dist/components/basic/InputNumber.vue.d.ts +48 -0
- package/dist/components/basic/Pagination.vue.d.ts +41 -0
- package/dist/components/basic/Select.vue.d.ts +51 -0
- package/dist/components/basic/TabPane.vue.d.ts +32 -0
- package/dist/components/basic/Table.vue.d.ts +105 -0
- package/dist/{basic/XTabs.vue.d.ts → components/basic/Tabs.vue.d.ts} +9 -11
- package/dist/components/basic/Upload.vue.d.ts +47 -0
- package/dist/constants/index.d.ts +15 -9
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +4 -42
- package/dist/index.js +25 -1192
- package/dist/install.d.ts +12 -0
- package/dist/locales/en.d.ts +2 -0
- package/dist/locales/zh-cn.d.ts +2 -0
- package/dist/locales-CPrLlnob.js +389 -0
- package/dist/locales-fS7f5AIx.cjs +1 -0
- package/dist/locales.cjs +1 -0
- package/dist/locales.d.ts +2 -0
- package/dist/locales.js +2 -0
- package/dist/resolver.cjs +1 -0
- package/dist/resolver.d.ts +3 -1
- package/dist/resolver.js +56 -34
- package/dist/style.css +3 -0
- package/dist/types.d.ts +30 -0
- package/package.json +119 -80
- package/dist/basic/XCascader.vue.d.ts +0 -26
- package/dist/basic/XCheckbox.vue.d.ts +0 -28
- package/dist/basic/XColorPicker.vue.d.ts +0 -21
- package/dist/basic/XDivider.vue.d.ts +0 -20
- package/dist/basic/XImage.vue.d.ts +0 -5
- package/dist/basic/XInput.vue.d.ts +0 -29
- package/dist/basic/XInputNumber.vue.d.ts +0 -31
- package/dist/basic/XPagination.vue.d.ts +0 -21
- package/dist/basic/XRate.vue.d.ts +0 -20
- package/dist/basic/XScrollbar.vue.d.ts +0 -415
- package/dist/basic/XSpace.vue.d.ts +0 -20
- package/dist/basic/XTable.vue.d.ts +0 -55
- package/dist/basic/XTag.vue.d.ts +0 -28
- package/dist/basic/XText.vue.d.ts +0 -23
- package/dist/basic/XUpload.vue.d.ts +0 -41
|
@@ -1,27 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { CascaderComponentProps } from 'element-plus';
|
|
2
|
+
export interface XCascaderOptionProps<D, V> {
|
|
3
|
+
children?: D[];
|
|
3
4
|
disabled?: boolean;
|
|
4
5
|
label?: number | string;
|
|
5
6
|
value: V;
|
|
7
|
+
leaf?: boolean;
|
|
6
8
|
}
|
|
7
|
-
export interface
|
|
8
|
-
data
|
|
9
|
-
factory
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
export interface XCascaderProps<D, V> {
|
|
10
|
+
data?: D[];
|
|
11
|
+
factory?: (option: D, level: number) => XCascaderOptionProps<D, V>;
|
|
12
|
+
clearable?: CascaderComponentProps['clearable'];
|
|
13
|
+
disabled?: CascaderComponentProps['disabled'];
|
|
14
|
+
filterable?: CascaderComponentProps['filterable'];
|
|
15
|
+
size?: CascaderComponentProps['size'];
|
|
16
|
+
placeholder?: CascaderComponentProps['placeholder'];
|
|
17
|
+
props?: CascaderComponentProps['props'];
|
|
12
18
|
}
|
|
13
19
|
declare const _default: <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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
14
20
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
15
21
|
readonly "onUpdate:modelValue"?: ((value: MV) => any) | undefined;
|
|
16
|
-
|
|
17
|
-
readonly onChange?: ((value: MV) => any) | undefined;
|
|
18
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onBlur" | "onChange"> & ({
|
|
22
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
|
|
19
23
|
modelValue?: MV;
|
|
20
|
-
} &
|
|
24
|
+
} & XCascaderProps<D, V>) & Partial<{}>> & import('vue').PublicProps;
|
|
21
25
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
22
26
|
attrs: any;
|
|
23
27
|
slots: {};
|
|
24
|
-
emit: (
|
|
28
|
+
emit: (evt: "update:modelValue", value: MV) => void;
|
|
25
29
|
}>) => import('vue').VNode & {
|
|
26
30
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
31
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CheckboxProps, CheckboxValueType } from 'element-plus';
|
|
2
|
+
export interface XCheckboxProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
size?: CheckboxProps['size'];
|
|
5
|
+
label?: CheckboxProps['label'];
|
|
6
|
+
trueValue?: CheckboxProps['trueValue'];
|
|
7
|
+
falseValue?: CheckboxProps['falseValue'];
|
|
8
|
+
}
|
|
9
|
+
type __VLS_Props = XCheckboxProps;
|
|
10
|
+
type __VLS_PublicProps = {
|
|
11
|
+
modelValue?: CheckboxValueType;
|
|
12
|
+
} & __VLS_Props;
|
|
13
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: CheckboxValueType) => any;
|
|
15
|
+
focus: (e: FocusEvent) => any;
|
|
16
|
+
blur: (e: FocusEvent) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: ((value: CheckboxValueType) => any) | undefined;
|
|
19
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
20
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ConfigProviderProps } from 'element-plus';
|
|
2
|
+
export interface XConfigProviderProps {
|
|
3
|
+
locale?: ConfigProviderProps['locale'];
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<XConfigProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DatePickerProps } from 'element-plus';
|
|
2
|
+
export interface XDatePickerProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
disabledDate?: DatePickerProps['disabledDate'];
|
|
5
|
+
endPlaceholder?: DatePickerProps['endPlaceholder'];
|
|
6
|
+
placeholder?: DatePickerProps['placeholder'];
|
|
7
|
+
shortcuts?: DatePickerProps['shortcuts'];
|
|
8
|
+
startPlaceholder?: DatePickerProps['startPlaceholder'];
|
|
9
|
+
type?: DatePickerProps['type'];
|
|
10
|
+
valueFormat?: DatePickerProps['valueFormat'];
|
|
11
|
+
}
|
|
12
|
+
declare const _default: <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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
13
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
14
|
+
readonly "onUpdate:modelValue"?: ((value: V) => any) | undefined;
|
|
15
|
+
readonly onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
16
|
+
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
17
|
+
readonly "onUpdate:start"?: ((value: V) => any) | undefined;
|
|
18
|
+
readonly "onUpdate:end"?: ((value: V) => any) | undefined;
|
|
19
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onBlur" | "onFocus" | "onUpdate:start" | "onUpdate:end"> & ({
|
|
20
|
+
modelValue?: V;
|
|
21
|
+
start?: V;
|
|
22
|
+
end?: V;
|
|
23
|
+
} & XDatePickerProps) & Partial<{}>> & import('vue').PublicProps;
|
|
24
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
25
|
+
attrs: any;
|
|
26
|
+
slots: {};
|
|
27
|
+
emit: (((evt: "focus", e: FocusEvent) => void) & ((evt: "blur", e: FocusEvent) => void)) & (((evt: "update:modelValue", value: V) => void) & ((evt: "update:start", value: V) => void) & ((evt: "update:end", value: V) => void));
|
|
28
|
+
}>) => import('vue').VNode & {
|
|
29
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_PrettifyLocal<T> = {
|
|
33
|
+
[K in keyof T]: T[K];
|
|
34
|
+
} & {};
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DialogProps } from 'element-plus';
|
|
2
|
+
import { VNodeChild } from 'vue';
|
|
2
3
|
export interface XDialogProps {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
bodyClass?: DialogProps['bodyClass'];
|
|
5
|
+
width?: DialogProps['width'];
|
|
6
|
+
showClose?: DialogProps['showClose'];
|
|
7
|
+
title?: DialogProps['title'];
|
|
8
|
+
center?: DialogProps['center'];
|
|
9
|
+
alignCenter?: DialogProps['alignCenter'];
|
|
10
|
+
draggable?: DialogProps['draggable'];
|
|
11
|
+
closeOnClickModal?: DialogProps['closeOnClickModal'];
|
|
12
|
+
closeOnPressEscape?: DialogProps['closeOnPressEscape'];
|
|
5
13
|
}
|
|
6
14
|
type __VLS_Props = XDialogProps;
|
|
7
15
|
type __VLS_PublicProps = {
|
|
@@ -10,13 +18,13 @@ type __VLS_PublicProps = {
|
|
|
10
18
|
declare function __VLS_template(): {
|
|
11
19
|
attrs: Partial<{}>;
|
|
12
20
|
slots: Readonly<{
|
|
13
|
-
default?: () =>
|
|
14
|
-
header?: () =>
|
|
15
|
-
footer?: () =>
|
|
21
|
+
default?: () => VNodeChild;
|
|
22
|
+
header?: () => VNodeChild;
|
|
23
|
+
footer?: () => VNodeChild;
|
|
16
24
|
}> & {
|
|
17
|
-
default?: () =>
|
|
18
|
-
header?: () =>
|
|
19
|
-
footer?: () =>
|
|
25
|
+
default?: () => VNodeChild;
|
|
26
|
+
header?: () => VNodeChild;
|
|
27
|
+
footer?: () => VNodeChild;
|
|
20
28
|
};
|
|
21
29
|
refs: {};
|
|
22
30
|
rootEl: any;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { VNodeChild } from 'vue';
|
|
2
|
-
export interface XFormItemConfig<D> extends Omit<XFormItemProps, 'content' | 'label'> {
|
|
3
|
-
content?: (scope: {
|
|
4
|
-
data: D;
|
|
5
|
-
}) => VNodeChild;
|
|
6
|
-
label: string;
|
|
7
|
-
}
|
|
8
2
|
export interface XFormProps<D> {
|
|
9
3
|
content?: (scope: {
|
|
10
4
|
data: D;
|
|
@@ -12,33 +6,15 @@ export interface XFormProps<D> {
|
|
|
12
6
|
data?: D;
|
|
13
7
|
disabled?: boolean;
|
|
14
8
|
inline?: boolean;
|
|
15
|
-
labelWidth?: number | string;
|
|
16
9
|
labelPosition?: 'left' | 'right' | 'top';
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
export interface XFormItemProps {
|
|
20
|
-
content?: () => VNodeChild;
|
|
21
|
-
label?: string;
|
|
22
|
-
labelPosition?: '' | 'left' | 'right' | 'top';
|
|
10
|
+
labelSuffix?: string;
|
|
23
11
|
labelWidth?: number | string;
|
|
24
|
-
required?: boolean;
|
|
25
|
-
tooltip?: {
|
|
26
|
-
type?: 'success' | 'warning';
|
|
27
|
-
content?: string;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export interface XFormItemValidation {
|
|
31
|
-
label: string;
|
|
32
|
-
required: boolean;
|
|
33
|
-
clearValidate: () => void;
|
|
34
|
-
validate: () => boolean;
|
|
35
|
-
validator?: () => string | void;
|
|
36
12
|
}
|
|
37
|
-
export declare const XFormItem: import('vue').DefineSetupFnComponent<XFormItemProps, {}, {}, XFormItemProps & {}, import('vue').PublicProps>;
|
|
38
13
|
declare const _default: <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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
39
14
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & XFormProps<D> & Partial<{}>> & import('vue').PublicProps;
|
|
40
15
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
41
|
-
|
|
16
|
+
clearValidate: () => void;
|
|
17
|
+
data: D | undefined;
|
|
42
18
|
validate: () => boolean;
|
|
43
19
|
resetFields: () => void;
|
|
44
20
|
}>): void;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
id?: string;
|
|
10
|
+
clearValidate: () => void;
|
|
11
|
+
label?: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
validate: () => boolean;
|
|
14
|
+
validator?: () => string | void;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: <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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
17
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & XFormItemProps & Partial<{}>> & import('vue').PublicProps;
|
|
18
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
19
|
+
attrs: any;
|
|
20
|
+
slots: Readonly<{
|
|
21
|
+
default: () => VNodeChild;
|
|
22
|
+
label: () => VNodeChild;
|
|
23
|
+
}> & {
|
|
24
|
+
default: () => VNodeChild;
|
|
25
|
+
label: () => VNodeChild;
|
|
26
|
+
};
|
|
27
|
+
emit: {};
|
|
28
|
+
}>) => import('vue').VNode & {
|
|
29
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_PrettifyLocal<T> = {
|
|
33
|
+
[K in keyof T]: T[K];
|
|
34
|
+
} & {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { InputProps } from 'element-plus';
|
|
2
|
+
import { VNode } from 'vue';
|
|
3
|
+
export interface XInputProps {
|
|
4
|
+
clearable?: InputProps['clearable'];
|
|
5
|
+
disabled?: InputProps['disabled'];
|
|
6
|
+
size?: InputProps['size'];
|
|
7
|
+
type?: InputProps['type'];
|
|
8
|
+
showPassword?: InputProps['showPassword'];
|
|
9
|
+
autocomplete?: InputProps['autocomplete'];
|
|
10
|
+
autosize?: InputProps['autosize'];
|
|
11
|
+
placeholder?: InputProps['placeholder'];
|
|
12
|
+
prefixIcon?: InputProps['prefixIcon'];
|
|
13
|
+
suffixIcon?: InputProps['suffixIcon'];
|
|
14
|
+
}
|
|
15
|
+
declare const _default: <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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
16
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
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>, "onUpdate:modelValue" | "onBlur" | "onChange" | "onFocus"> & ({
|
|
22
|
+
modelValue?: MV;
|
|
23
|
+
} & XInputProps) & Partial<{}>> & import('vue').PublicProps;
|
|
24
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
25
|
+
attrs: any;
|
|
26
|
+
slots: Readonly<{
|
|
27
|
+
append: () => VNode;
|
|
28
|
+
prefix: () => VNode;
|
|
29
|
+
prepend: () => VNode;
|
|
30
|
+
suffix: () => VNode;
|
|
31
|
+
}> & {
|
|
32
|
+
append: () => VNode;
|
|
33
|
+
prefix: () => VNode;
|
|
34
|
+
prepend: () => VNode;
|
|
35
|
+
suffix: () => VNode;
|
|
36
|
+
};
|
|
37
|
+
emit: (((evt: "focus", e: FocusEvent) => void) & ((evt: "blur", e: FocusEvent) => void) & ((evt: "change", e: MV) => void)) & ((evt: "update:modelValue", value: MV) => void);
|
|
38
|
+
}>) => import('vue').VNode & {
|
|
39
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
40
|
+
};
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_PrettifyLocal<T> = {
|
|
43
|
+
[K in keyof T]: T[K];
|
|
44
|
+
} & {};
|
|
@@ -0,0 +1,48 @@
|
|
|
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_PublicProps = {
|
|
18
|
+
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
|
+
};
|
|
32
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
33
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
34
|
+
"update:modelValue": (value: number) => any;
|
|
35
|
+
focus: (e: FocusEvent) => any;
|
|
36
|
+
blur: (e: FocusEvent) => any;
|
|
37
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
38
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
39
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
40
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
41
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PaginationProps } from 'element-plus';
|
|
2
|
+
export interface XPaginationProps {
|
|
3
|
+
pageSizes?: PaginationProps['pageSizes'];
|
|
4
|
+
background?: PaginationProps['background'];
|
|
5
|
+
size?: PaginationProps['size'];
|
|
6
|
+
layout?: PaginationProps['layout'];
|
|
7
|
+
total?: PaginationProps['total'];
|
|
8
|
+
defaultPageSize?: PaginationProps['defaultPageSize'];
|
|
9
|
+
}
|
|
10
|
+
type __VLS_Props = XPaginationProps;
|
|
11
|
+
type __VLS_PublicProps = {
|
|
12
|
+
'currentPage'?: number;
|
|
13
|
+
'pageSize'?: number;
|
|
14
|
+
} & __VLS_Props;
|
|
15
|
+
declare function __VLS_template(): {
|
|
16
|
+
attrs: Partial<{}>;
|
|
17
|
+
slots: {
|
|
18
|
+
default?(_: {}): any;
|
|
19
|
+
};
|
|
20
|
+
refs: {};
|
|
21
|
+
rootEl: any;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
sizeChange: (size: number) => any;
|
|
26
|
+
currentChange: (current: number) => any;
|
|
27
|
+
"update:currentPage": (value: number) => any;
|
|
28
|
+
"update:pageSize": (value: number) => any;
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
30
|
+
onSizeChange?: ((size: number) => any) | undefined;
|
|
31
|
+
onCurrentChange?: ((current: number) => any) | undefined;
|
|
32
|
+
"onUpdate:currentPage"?: ((value: number) => any) | undefined;
|
|
33
|
+
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
34
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { SelectProps } from 'element-plus';
|
|
2
|
+
export interface XSelectOptionProps<V> {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
label?: number | string;
|
|
5
|
+
value: V;
|
|
6
|
+
}
|
|
7
|
+
export interface XSelectProps<D, V> {
|
|
8
|
+
collapseTagsTooltip?: SelectProps['collapseTagsTooltip'];
|
|
9
|
+
defaultFirstOption?: SelectProps['defaultFirstOption'];
|
|
10
|
+
clearable?: SelectProps['clearable'];
|
|
11
|
+
allowCreate?: SelectProps['allowCreate'];
|
|
12
|
+
collapseTags?: SelectProps['collapseTags'];
|
|
13
|
+
data?: D[];
|
|
14
|
+
disabled?: SelectProps['disabled'];
|
|
15
|
+
factory: (option: D) => XSelectOptionProps<V>;
|
|
16
|
+
filterable?: SelectProps['filterable'];
|
|
17
|
+
identify?: (value: V) => number | string;
|
|
18
|
+
loading?: SelectProps['loading'];
|
|
19
|
+
multiple?: SelectProps['multiple'];
|
|
20
|
+
remote?: SelectProps['remote'];
|
|
21
|
+
remoteMethod?: (query: string) => void;
|
|
22
|
+
size?: SelectProps['size'];
|
|
23
|
+
supplement?: (lacks: V[]) => D[] | PromiseLike<D[]>;
|
|
24
|
+
placeholder?: SelectProps['placeholder'];
|
|
25
|
+
noDataText?: SelectProps['noDataText'];
|
|
26
|
+
}
|
|
27
|
+
export interface XSelectEvents<V> {
|
|
28
|
+
blur: [e: FocusEvent];
|
|
29
|
+
change: [value: V];
|
|
30
|
+
focus: [e: FocusEvent];
|
|
31
|
+
}
|
|
32
|
+
declare const _default: <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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
33
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
34
|
+
readonly "onUpdate:modelValue"?: ((value: MV) => any) | undefined;
|
|
35
|
+
readonly onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
36
|
+
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
37
|
+
readonly onChange?: ((value: V) => any) | undefined;
|
|
38
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onBlur" | "onChange" | "onFocus"> & ({
|
|
39
|
+
modelValue?: MV;
|
|
40
|
+
} & XSelectProps<D, V>) & Partial<{}>> & import('vue').PublicProps;
|
|
41
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
42
|
+
attrs: any;
|
|
43
|
+
slots: {};
|
|
44
|
+
emit: (((evt: "focus", e: FocusEvent) => void) & ((evt: "blur", e: FocusEvent) => void) & ((evt: "change", value: V) => void)) & ((evt: "update:modelValue", value: MV) => void);
|
|
45
|
+
}>) => import('vue').VNode & {
|
|
46
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
47
|
+
};
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_PrettifyLocal<T> = {
|
|
50
|
+
[K in keyof T]: T[K];
|
|
51
|
+
} & {};
|
|
@@ -0,0 +1,32 @@
|
|
|
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 function __VLS_template(): {
|
|
14
|
+
attrs: Partial<{}>;
|
|
15
|
+
slots: {
|
|
16
|
+
default?(_: {}): any;
|
|
17
|
+
};
|
|
18
|
+
refs: {};
|
|
19
|
+
rootEl: any;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<XTabPaneProps, {
|
|
23
|
+
label: string | undefined;
|
|
24
|
+
name: string | number | undefined;
|
|
25
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XTabPaneProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { TableColumnCtx, TableProps } from 'element-plus';
|
|
2
|
+
import { CSSProperties, VNode, VNodeChild } from 'vue';
|
|
3
|
+
export interface XTableConfig {
|
|
4
|
+
/**
|
|
5
|
+
* 是否隐藏额外内容并在单元格悬停时使用 Tooltip 显示它们。这将影响全部列的展示
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
showOverflowTooltip?: boolean;
|
|
9
|
+
border?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface XTableColumnProps<D> {
|
|
12
|
+
content?: (scope: {
|
|
13
|
+
index: number;
|
|
14
|
+
row: D;
|
|
15
|
+
}) => VNodeChild;
|
|
16
|
+
fixed?: 'left' | 'right';
|
|
17
|
+
header?: (scope: {
|
|
18
|
+
column: XTableColumnProps<D>;
|
|
19
|
+
}) => VNodeChild;
|
|
20
|
+
label?: string;
|
|
21
|
+
prop?: string;
|
|
22
|
+
selectable?: (row: D, index: number) => boolean;
|
|
23
|
+
type?: 'index' | 'selection';
|
|
24
|
+
width?: number;
|
|
25
|
+
columnKey?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface XTableProps<D> {
|
|
28
|
+
border?: TableProps<any>['border'];
|
|
29
|
+
cellClassName?: ((scope: {
|
|
30
|
+
column: TableColumnCtx;
|
|
31
|
+
columnIndex: number;
|
|
32
|
+
row: D;
|
|
33
|
+
rowIndex: number;
|
|
34
|
+
}) => string) | string;
|
|
35
|
+
cellStyle?: ((scope: {
|
|
36
|
+
column: TableColumnCtx;
|
|
37
|
+
columnIndex: number;
|
|
38
|
+
row: D;
|
|
39
|
+
rowIndex: number;
|
|
40
|
+
}) => CSSProperties) | CSSProperties;
|
|
41
|
+
columns?: XTableColumnProps<D>[];
|
|
42
|
+
data?: D[];
|
|
43
|
+
height?: TableProps<any>['height'];
|
|
44
|
+
emptyText?: TableProps<any>['emptyText'];
|
|
45
|
+
rowClassName?: ((scope: {
|
|
46
|
+
row: D;
|
|
47
|
+
rowIndex: number;
|
|
48
|
+
}) => string) | string;
|
|
49
|
+
rowStyle?: ((scope: {
|
|
50
|
+
row: D;
|
|
51
|
+
rowIndex: number;
|
|
52
|
+
}) => CSSProperties) | CSSProperties;
|
|
53
|
+
rowKey?: (scope: {
|
|
54
|
+
row: D;
|
|
55
|
+
}) => string;
|
|
56
|
+
showOverflowTooltip?: TableProps<any>['showOverflowTooltip'];
|
|
57
|
+
showSummary?: TableProps<any>['showSummary'];
|
|
58
|
+
size?: TableProps<any>['size'];
|
|
59
|
+
fit?: TableProps<any>['fit'];
|
|
60
|
+
spanMethod?: (scope: {
|
|
61
|
+
column: TableColumnCtx;
|
|
62
|
+
columnIndex: number;
|
|
63
|
+
row: D;
|
|
64
|
+
rowIndex: number;
|
|
65
|
+
}) => number[] | undefined | {
|
|
66
|
+
colspan: number;
|
|
67
|
+
rowspan: number;
|
|
68
|
+
};
|
|
69
|
+
summaryMethod?: (scope: {
|
|
70
|
+
columns: TableColumnCtx[];
|
|
71
|
+
data: D[];
|
|
72
|
+
}) => (string | VNode)[];
|
|
73
|
+
}
|
|
74
|
+
export interface XTableEvents<D> {
|
|
75
|
+
headerDragend: [newWidth: number, oldWidth: number, column: TableColumnCtx];
|
|
76
|
+
rowClick: [row: D];
|
|
77
|
+
rowDblclick: [row: D];
|
|
78
|
+
selectionChange: [rows: D[]];
|
|
79
|
+
}
|
|
80
|
+
declare const _default: <D>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
81
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
82
|
+
readonly onHeaderDragend?: ((newWidth: number, oldWidth: number, column: TableColumnCtx) => any) | undefined;
|
|
83
|
+
readonly onRowClick?: ((row: D) => any) | undefined;
|
|
84
|
+
readonly onRowDblclick?: ((row: D) => any) | undefined;
|
|
85
|
+
readonly onSelectionChange?: ((rows: D[]) => any) | undefined;
|
|
86
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onHeaderDragend" | "onRowClick" | "onRowDblclick" | "onSelectionChange"> & XTableProps<D> & Partial<{}>> & import('vue').PublicProps;
|
|
87
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
88
|
+
clearSelection: () => void | undefined;
|
|
89
|
+
getSelectionRows: () => any[] | undefined;
|
|
90
|
+
scrollTo: (options: number | ScrollToOptions, yCoord?: number) => void | undefined;
|
|
91
|
+
setCurrentRow: (row: D) => void | undefined;
|
|
92
|
+
setScrollLeft: (left: number) => void | undefined;
|
|
93
|
+
setScrollTop: (top: number) => void | undefined;
|
|
94
|
+
toggleRowSelection: (row: D, selected?: boolean, ignoreSelectable?: boolean) => void | undefined;
|
|
95
|
+
}>): void;
|
|
96
|
+
attrs: any;
|
|
97
|
+
slots: {};
|
|
98
|
+
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);
|
|
99
|
+
}>) => import('vue').VNode & {
|
|
100
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
101
|
+
};
|
|
102
|
+
export default _default;
|
|
103
|
+
type __VLS_PrettifyLocal<T> = {
|
|
104
|
+
[K in keyof T]: T[K];
|
|
105
|
+
} & {};
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TabsProps } from 'element-plus';
|
|
2
2
|
export interface XTabsProps {
|
|
3
|
-
type?: TabsProps['type'];
|
|
4
|
-
defaultValue?: TabsProps['defaultValue'];
|
|
5
3
|
addable?: TabsProps['addable'];
|
|
6
4
|
editable?: TabsProps['editable'];
|
|
7
5
|
tabPosition?: TabsProps['tabPosition'];
|
|
6
|
+
type?: TabsProps['type'];
|
|
8
7
|
}
|
|
9
|
-
export interface
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
export interface XTabsEvents<V> {
|
|
9
|
+
change: [name: V];
|
|
10
|
+
remove: [name: V];
|
|
12
11
|
}
|
|
13
|
-
export declare const XTabPane: import('vue').DefineSetupFnComponent<XTabPaneProps, {}, {}, XTabPaneProps & {}, import('vue').PublicProps>;
|
|
14
12
|
declare const _default: <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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
15
13
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
16
14
|
readonly "onUpdate:modelValue"?: ((value: V) => any) | undefined;
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "
|
|
15
|
+
readonly onChange?: ((name: V) => any) | undefined;
|
|
16
|
+
readonly onRemove?: ((name: V) => any) | undefined;
|
|
17
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onChange" | "onRemove"> & ({
|
|
20
18
|
modelValue?: V;
|
|
21
19
|
} & XTabsProps) & Partial<{}>> & import('vue').PublicProps;
|
|
22
20
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
@@ -24,7 +22,7 @@ declare const _default: <V extends string | number>(__VLS_props: NonNullable<Awa
|
|
|
24
22
|
slots: {
|
|
25
23
|
default?(_: {}): any;
|
|
26
24
|
};
|
|
27
|
-
emit: (((evt: "
|
|
25
|
+
emit: (((evt: "change", name: V) => void) & ((evt: "remove", name: V) => void)) & ((evt: "update:modelValue", value: V) => void);
|
|
28
26
|
}>) => import('vue').VNode & {
|
|
29
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
30
28
|
};
|