xrk-components 0.6.2 → 0.6.3
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/lib/index.esm.js +1241 -1508
- package/lib/index.umd.js +1240 -1507
- package/lib/packages/base/_test/index.d.ts +1 -1
- package/lib/packages/base/button/button.d.ts +3 -3
- package/lib/packages/base/button/index.d.ts +2 -2
- package/lib/packages/base/cascader/cascader.d.ts +1 -1
- package/lib/packages/base/cascader/index.d.ts +4 -4
- package/lib/packages/base/checkbox/checkbox-button.d.ts +1 -1
- package/lib/packages/base/checkbox/checkbox-group.d.ts +1 -1
- package/lib/packages/base/checkbox/checkbox.d.ts +1 -1
- package/lib/packages/base/checkbox/index.d.ts +6 -6
- package/lib/packages/base/config-provider/index.d.ts +1 -1
- package/lib/packages/base/date-picker/date-picker.d.ts +1 -1
- package/lib/packages/base/date-picker/index.d.ts +2 -2
- package/lib/packages/base/dialog/dialog.d.ts +1 -1
- package/lib/packages/base/dialog/index.d.ts +2 -2
- package/lib/packages/base/form/form-item.d.ts +1 -90
- package/lib/packages/base/form/form.d.ts +2 -2
- package/lib/packages/base/form/index.d.ts +6 -6
- package/lib/packages/base/icon/icon.d.ts +2 -2
- package/lib/packages/base/icon/index.d.ts +2 -2
- package/lib/packages/base/image/image-viewer.d.ts +1 -1
- package/lib/packages/base/image/image.d.ts +1 -138
- package/lib/packages/base/image/index.d.ts +4 -4
- package/lib/packages/base/input/index.d.ts +3 -3
- package/lib/packages/base/input/input.d.ts +1 -1
- package/lib/packages/base/pagination/index.d.ts +4 -4
- package/lib/packages/base/pagination/pagination.d.ts +1 -1
- package/lib/packages/base/radio/index.d.ts +9 -9
- package/lib/packages/base/radio/radio-button.d.ts +1 -1
- package/lib/packages/base/radio/radio-group.d.ts +1 -1
- package/lib/packages/base/radio/radio.d.ts +1 -1
- package/lib/packages/base/select/index.d.ts +5 -5
- package/lib/packages/base/select/select.d.ts +1 -1
- package/lib/packages/base/switch/index.d.ts +2 -2
- package/lib/packages/base/switch/switch.d.ts +1 -1
- package/lib/packages/base/table/index.d.ts +2 -2
- package/lib/packages/base/table/table-column.d.ts +1 -1
- package/lib/packages/base/table/table.d.ts +1 -1
- package/lib/packages/base/table/types/type.d.ts +9 -9
- package/lib/packages/base/tag/index.d.ts +5 -5
- package/lib/packages/base/tag/tag-group.d.ts +1 -1
- package/lib/packages/base/tag/tag.d.ts +1 -1
- package/lib/packages/base/tool-tip/index.d.ts +2 -2
- package/lib/packages/base/tool-tip/tool-tip.d.ts +2 -2
- package/lib/packages/base/upload/components/file-icon.d.ts +2 -2
- package/lib/packages/base/upload/index.d.ts +3 -3
- package/lib/packages/base/upload/upload.d.ts +1 -1
- package/lib/packages/hooks/use-create-modal.d.ts +1 -1
- package/lib/packages/hooks/use-default-props.d.ts +1 -1
- package/lib/packages/xrk/message/index.d.ts +3 -3
- package/lib/packages/xrk/search/index.d.ts +3 -3
- package/lib/packages/xrk/search/search.d.ts +1 -1
- package/lib/packages/xrk/search/types/type.d.ts +7 -7
- package/lib/packages/xrk/table/index.d.ts +2 -2
- package/lib/packages/xrk/table/table.d.ts +2 -2
- package/lib/packages/xrk/table/types/type.d.ts +2 -2
- package/package.json +57 -65
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const BaseTest: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}
|
|
1
|
+
export declare const BaseTest: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
@@ -59,7 +59,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
59
|
};
|
|
60
60
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
61
61
|
[key: string]: any;
|
|
62
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
62
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
63
|
click: {
|
|
64
64
|
type: null;
|
|
65
65
|
required: false;
|
|
@@ -119,15 +119,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
119
119
|
required: false;
|
|
120
120
|
};
|
|
121
121
|
}>>, {
|
|
122
|
+
link: boolean;
|
|
122
123
|
loading: boolean;
|
|
123
124
|
size: string;
|
|
124
125
|
type: string;
|
|
125
|
-
link: boolean;
|
|
126
126
|
plain: boolean;
|
|
127
127
|
round: boolean;
|
|
128
128
|
circle: boolean;
|
|
129
129
|
disabled: boolean;
|
|
130
130
|
autofocus: boolean;
|
|
131
131
|
autoInsertSpace: boolean;
|
|
132
|
-
}
|
|
132
|
+
}>;
|
|
133
133
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, DefineComponent } from 'vue';
|
|
2
|
-
export type BaseButtonProps = {
|
|
2
|
+
export declare type BaseButtonProps = {
|
|
3
3
|
/**
|
|
4
4
|
* 自定义方法 , 用于事件同步执行,使用这个的时候,可以不用使用 @click onClick
|
|
5
5
|
*/
|
|
@@ -19,4 +19,4 @@ export type BaseButtonProps = {
|
|
|
19
19
|
icon?: string | Component;
|
|
20
20
|
onClick?: Function;
|
|
21
21
|
};
|
|
22
|
-
export declare const BaseButton: DefineComponent<BaseButtonProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseButtonProps>, {}
|
|
22
|
+
export declare const BaseButton: DefineComponent<BaseButtonProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseButtonProps>, {}>;
|
|
@@ -7,7 +7,7 @@ interface OptionProps extends Record<string, unknown> {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
leaf?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export type CascaderProps = {
|
|
10
|
+
export declare type CascaderProps = {
|
|
11
11
|
expandTrigger?: 'click' | 'hover';
|
|
12
12
|
multiple?: boolean;
|
|
13
13
|
checkStrictly?: boolean;
|
|
@@ -49,7 +49,7 @@ export interface BaseCascaderProps extends BaseCascaderListener, CascaderProps {
|
|
|
49
49
|
isMultiple: boolean;
|
|
50
50
|
}) => JSX.Element;
|
|
51
51
|
}
|
|
52
|
-
export type BaseCascaderListener = {
|
|
52
|
+
export declare type BaseCascaderListener = {
|
|
53
53
|
onChange?: (value: Array<OptionProps['value']>) => void;
|
|
54
54
|
onExpandChange?: (value: Array<OptionProps['value']>) => void;
|
|
55
55
|
onBlur?: (event: FocusEvent) => void;
|
|
@@ -57,8 +57,8 @@ export type BaseCascaderListener = {
|
|
|
57
57
|
onVisibleChange?: (visible: boolean) => void;
|
|
58
58
|
onRemoveTag?: (value: Array<OptionProps['value']>) => void;
|
|
59
59
|
};
|
|
60
|
-
export type BaseCascaderRef = {
|
|
60
|
+
export declare type BaseCascaderRef = {
|
|
61
61
|
getCheckedNodes: () => Array<Node>;
|
|
62
62
|
};
|
|
63
|
-
export declare const BaseCascader: DefineComponent<BaseCascaderProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseCascaderProps>, {}
|
|
63
|
+
export declare const BaseCascader: DefineComponent<BaseCascaderProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseCascaderProps>, {}>;
|
|
64
64
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefineComponent } from 'vue';
|
|
2
|
-
export type BaseCheckboxButtonProps = {
|
|
2
|
+
export declare type BaseCheckboxButtonProps = {
|
|
3
3
|
modelValue?: string | number | boolean;
|
|
4
4
|
size?: 'large' | 'default' | 'small';
|
|
5
5
|
name?: string;
|
|
@@ -12,7 +12,7 @@ export type BaseCheckboxButtonProps = {
|
|
|
12
12
|
onChange?: (activeValue: any) => void;
|
|
13
13
|
onClick?: (payload?: MouseEvent) => void;
|
|
14
14
|
};
|
|
15
|
-
export type BaseCheckboxGroupProps = {
|
|
15
|
+
export declare type BaseCheckboxGroupProps = {
|
|
16
16
|
modelValue?: Array<any>;
|
|
17
17
|
size?: 'large' | 'default' | 'small';
|
|
18
18
|
disabled?: boolean;
|
|
@@ -24,7 +24,7 @@ export type BaseCheckboxGroupProps = {
|
|
|
24
24
|
checkBefore?: (activeValue: any, done: Function) => void;
|
|
25
25
|
onChange?: (activeValue: any) => void;
|
|
26
26
|
};
|
|
27
|
-
export type BaseCheckboxProps = {
|
|
27
|
+
export declare type BaseCheckboxProps = {
|
|
28
28
|
modelValue?: string | number | boolean;
|
|
29
29
|
size?: 'large' | 'default' | 'small';
|
|
30
30
|
name?: string;
|
|
@@ -39,6 +39,6 @@ export type BaseCheckboxProps = {
|
|
|
39
39
|
onChange?: (activeValue: any) => void;
|
|
40
40
|
onClick?: (payload?: MouseEvent) => void;
|
|
41
41
|
};
|
|
42
|
-
export declare const BaseCheckboxButton: DefineComponent<BaseCheckboxButtonProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseCheckboxButtonProps>, {}
|
|
43
|
-
export declare const BaseCheckboxGroup: DefineComponent<BaseCheckboxGroupProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseCheckboxGroupProps>, {}
|
|
44
|
-
export declare const BaseCheckbox: DefineComponent<BaseCheckboxProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseCheckboxProps>, {}
|
|
42
|
+
export declare const BaseCheckboxButton: DefineComponent<BaseCheckboxButtonProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseCheckboxButtonProps>, {}>;
|
|
43
|
+
export declare const BaseCheckboxGroup: DefineComponent<BaseCheckboxGroupProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseCheckboxGroupProps>, {}>;
|
|
44
|
+
export declare const BaseCheckbox: DefineComponent<BaseCheckboxProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseCheckboxProps>, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DefineComponent } from 'vue';
|
|
2
2
|
export declare const BaseConfigProvider: DefineComponent<any, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
|
3
3
|
[x: string]: any;
|
|
4
|
-
}
|
|
4
|
+
}>;
|
|
@@ -34,7 +34,7 @@ export interface BaseDatePickerProps extends BaseDatePickerListener {
|
|
|
34
34
|
cellClassName?: (date: Date) => string;
|
|
35
35
|
teleported?: boolean;
|
|
36
36
|
}
|
|
37
|
-
export type BaseDatePickerListener<S extends Record<string, any> = any> = {
|
|
37
|
+
export declare type BaseDatePickerListener<S extends Record<string, any> = any> = {
|
|
38
38
|
/**
|
|
39
39
|
* 选择时间
|
|
40
40
|
*/
|
|
@@ -48,7 +48,7 @@ export type BaseDatePickerListener<S extends Record<string, any> = any> = {
|
|
|
48
48
|
*/
|
|
49
49
|
onCalendarChange?: (val: [Date, Date | null], searchValue?: S) => void;
|
|
50
50
|
};
|
|
51
|
-
export declare const BaseDatePicker: DefineComponent<BaseDatePickerProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseDatePickerProps>, {}
|
|
51
|
+
export declare const BaseDatePicker: DefineComponent<BaseDatePickerProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseDatePickerProps>, {}>;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @param dayDis year month day 可选择范围
|
|
@@ -4,7 +4,7 @@ interface ModalInstance {
|
|
|
4
4
|
close(): void;
|
|
5
5
|
$updateProps(props: Record<string, any>): void;
|
|
6
6
|
}
|
|
7
|
-
export type BaseDialogProps = {
|
|
7
|
+
export declare type BaseDialogProps = {
|
|
8
8
|
modelValue?: boolean;
|
|
9
9
|
closeOnClickModal?: boolean;
|
|
10
10
|
closeOnPressEscape?: boolean;
|
|
@@ -32,6 +32,6 @@ export interface DialogBtnConfigProps extends BaseButtonProps {
|
|
|
32
32
|
show?: boolean;
|
|
33
33
|
content?: string;
|
|
34
34
|
}
|
|
35
|
-
export declare const BaseDialog: DefineComponent<BaseDialogProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseDialogProps>, {}
|
|
35
|
+
export declare const BaseDialog: DefineComponent<BaseDialogProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseDialogProps>, {}>;
|
|
36
36
|
export declare const createDialog: (config?: BaseDialogProps) => ModalInstance;
|
|
37
37
|
export {};
|
|
@@ -1,91 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
prop: {
|
|
3
|
-
type: null;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
label: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
required: false;
|
|
9
|
-
};
|
|
10
|
-
labelWidth: {
|
|
11
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
12
|
-
required: false;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
|
-
required: {
|
|
16
|
-
type: BooleanConstructor;
|
|
17
|
-
required: false;
|
|
18
|
-
skipCheck: boolean;
|
|
19
|
-
default: undefined;
|
|
20
|
-
};
|
|
21
|
-
rules: {
|
|
22
|
-
type: null;
|
|
23
|
-
required: false;
|
|
24
|
-
};
|
|
25
|
-
error: {
|
|
26
|
-
type: StringConstructor;
|
|
27
|
-
required: false;
|
|
28
|
-
};
|
|
29
|
-
showMessage: {
|
|
30
|
-
type: BooleanConstructor;
|
|
31
|
-
required: false;
|
|
32
|
-
default: boolean;
|
|
33
|
-
};
|
|
34
|
-
inlineMessage: {
|
|
35
|
-
type: BooleanConstructor;
|
|
36
|
-
required: false;
|
|
37
|
-
};
|
|
38
|
-
size: {
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
required: false;
|
|
41
|
-
};
|
|
42
|
-
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
43
|
-
[key: string]: any;
|
|
44
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
|
-
prop: {
|
|
46
|
-
type: null;
|
|
47
|
-
required: true;
|
|
48
|
-
};
|
|
49
|
-
label: {
|
|
50
|
-
type: StringConstructor;
|
|
51
|
-
required: false;
|
|
52
|
-
};
|
|
53
|
-
labelWidth: {
|
|
54
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
55
|
-
required: false;
|
|
56
|
-
default: string;
|
|
57
|
-
};
|
|
58
|
-
required: {
|
|
59
|
-
type: BooleanConstructor;
|
|
60
|
-
required: false;
|
|
61
|
-
skipCheck: boolean;
|
|
62
|
-
default: undefined;
|
|
63
|
-
};
|
|
64
|
-
rules: {
|
|
65
|
-
type: null;
|
|
66
|
-
required: false;
|
|
67
|
-
};
|
|
68
|
-
error: {
|
|
69
|
-
type: StringConstructor;
|
|
70
|
-
required: false;
|
|
71
|
-
};
|
|
72
|
-
showMessage: {
|
|
73
|
-
type: BooleanConstructor;
|
|
74
|
-
required: false;
|
|
75
|
-
default: boolean;
|
|
76
|
-
};
|
|
77
|
-
inlineMessage: {
|
|
78
|
-
type: BooleanConstructor;
|
|
79
|
-
required: false;
|
|
80
|
-
};
|
|
81
|
-
size: {
|
|
82
|
-
type: StringConstructor;
|
|
83
|
-
required: false;
|
|
84
|
-
};
|
|
85
|
-
}>>, {
|
|
86
|
-
labelWidth: string | number;
|
|
87
|
-
required: boolean;
|
|
88
|
-
showMessage: boolean;
|
|
89
|
-
inlineMessage: boolean;
|
|
90
|
-
}, {}>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
|
|
91
2
|
export default _default;
|
|
@@ -57,7 +57,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
57
|
};
|
|
58
58
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
59
59
|
[key: string]: any;
|
|
60
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
60
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
61
61
|
model: {
|
|
62
62
|
type: null;
|
|
63
63
|
required: true;
|
|
@@ -124,5 +124,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
124
124
|
statusIcon: boolean;
|
|
125
125
|
validateOnRuleChange: boolean;
|
|
126
126
|
disabled: boolean;
|
|
127
|
-
}
|
|
127
|
+
}>;
|
|
128
128
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import { FormItemRule } from 'element-plus';
|
|
|
2
2
|
import { DefineComponent } from 'vue';
|
|
3
3
|
import { Arrayable } from 'element-plus/es/utils';
|
|
4
4
|
import { ValidateFieldsError } from 'async-validator/dist-types/interface';
|
|
5
|
-
export type BaseFormProps<T extends Record<string, any> = any> = {
|
|
5
|
+
export declare type BaseFormProps<T extends Record<string, any> = any> = {
|
|
6
6
|
model: T;
|
|
7
7
|
rules?: Partial<Record<keyof T, Arrayable<FormItemRule>>>;
|
|
8
8
|
inline?: boolean;
|
|
@@ -17,7 +17,7 @@ export type BaseFormProps<T extends Record<string, any> = any> = {
|
|
|
17
17
|
size?: 'large' | 'default' | 'small';
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
};
|
|
20
|
-
export type BaseFormItemProps<K = Arrayable<string>> = {
|
|
20
|
+
export declare type BaseFormItemProps<K = Arrayable<string>> = {
|
|
21
21
|
prop: K;
|
|
22
22
|
label?: string;
|
|
23
23
|
labelWidth?: string | number | 'auto';
|
|
@@ -28,7 +28,7 @@ export type BaseFormItemProps<K = Arrayable<string>> = {
|
|
|
28
28
|
inlineMessage?: boolean;
|
|
29
29
|
size?: 'large' | 'default' | 'small';
|
|
30
30
|
};
|
|
31
|
-
export type BaseFormRef<T extends Record<string, any> = any> = {
|
|
31
|
+
export declare type BaseFormRef<T extends Record<string, any> = any> = {
|
|
32
32
|
/**
|
|
33
33
|
* 对整个表单的内容进行验证。 接收一个回调函数,或返回 Promise。
|
|
34
34
|
*/
|
|
@@ -50,7 +50,7 @@ export type BaseFormRef<T extends Record<string, any> = any> = {
|
|
|
50
50
|
*/
|
|
51
51
|
clearValidate: (props?: Arrayable<keyof T>) => void;
|
|
52
52
|
};
|
|
53
|
-
export type BaseFormItemRef = {
|
|
53
|
+
export declare type BaseFormItemRef = {
|
|
54
54
|
/**
|
|
55
55
|
* 对该表单项进行重置,将其值重置为初始值并移除校验结果
|
|
56
56
|
*/
|
|
@@ -60,7 +60,7 @@ export type BaseFormItemRef = {
|
|
|
60
60
|
*/
|
|
61
61
|
clearValidate: () => void;
|
|
62
62
|
};
|
|
63
|
-
export declare const BaseFormItem: DefineComponent<BaseFormItemProps<Arrayable<string>>, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseFormItemProps<Arrayable<string>>>, {}
|
|
63
|
+
export declare const BaseFormItem: DefineComponent<BaseFormItemProps<Arrayable<string>>, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseFormItemProps<Arrayable<string>>>, {}>;
|
|
64
64
|
export declare const BaseForm: DefineComponent<BaseFormProps<any>, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseFormProps<any>>, {
|
|
65
65
|
model: any;
|
|
66
|
-
}
|
|
66
|
+
}>;
|
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
};
|
|
10
10
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
11
11
|
[key: string]: any;
|
|
12
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
12
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
13
|
color: {
|
|
14
14
|
type: StringConstructor;
|
|
15
15
|
required: false;
|
|
@@ -18,5 +18,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
type: StringConstructor;
|
|
19
19
|
required: false;
|
|
20
20
|
};
|
|
21
|
-
}>>, {}
|
|
21
|
+
}>>, {}>;
|
|
22
22
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefineComponent } from 'vue';
|
|
2
|
-
export type BaseIonProps = {
|
|
2
|
+
export declare type BaseIonProps = {
|
|
3
3
|
color?: string;
|
|
4
4
|
size?: string | number;
|
|
5
5
|
};
|
|
6
|
-
export declare const BaseIcon: DefineComponent<BaseIonProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseIonProps>, {}
|
|
6
|
+
export declare const BaseIcon: DefineComponent<BaseIonProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseIonProps>, {}>;
|
|
@@ -1,139 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
style: {
|
|
3
|
-
type: null;
|
|
4
|
-
required: false;
|
|
5
|
-
};
|
|
6
|
-
src: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
fit: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
required: false;
|
|
13
|
-
};
|
|
14
|
-
hideOnClickModal: {
|
|
15
|
-
type: BooleanConstructor;
|
|
16
|
-
required: false;
|
|
17
|
-
default: boolean;
|
|
18
|
-
};
|
|
19
|
-
loading: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
required: false;
|
|
22
|
-
};
|
|
23
|
-
lazy: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
required: false;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
scrollContainer: {
|
|
29
|
-
type: null;
|
|
30
|
-
required: false;
|
|
31
|
-
};
|
|
32
|
-
alt: {
|
|
33
|
-
type: StringConstructor;
|
|
34
|
-
required: false;
|
|
35
|
-
};
|
|
36
|
-
referrerPolicy: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
required: false;
|
|
39
|
-
};
|
|
40
|
-
previewSrcList: {
|
|
41
|
-
type: ArrayConstructor;
|
|
42
|
-
required: false;
|
|
43
|
-
};
|
|
44
|
-
zIndex: {
|
|
45
|
-
type: NumberConstructor;
|
|
46
|
-
required: false;
|
|
47
|
-
};
|
|
48
|
-
initialIndex: {
|
|
49
|
-
type: NumberConstructor;
|
|
50
|
-
required: false;
|
|
51
|
-
default: number;
|
|
52
|
-
};
|
|
53
|
-
closeOnPressEscape: {
|
|
54
|
-
type: BooleanConstructor;
|
|
55
|
-
required: false;
|
|
56
|
-
default: boolean;
|
|
57
|
-
};
|
|
58
|
-
previewTeleported: {
|
|
59
|
-
type: BooleanConstructor;
|
|
60
|
-
required: false;
|
|
61
|
-
default: boolean;
|
|
62
|
-
};
|
|
63
|
-
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
64
|
-
[key: string]: any;
|
|
65
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("load" | "error" | "switch" | "close")[], "load" | "error" | "switch" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
|
-
style: {
|
|
67
|
-
type: null;
|
|
68
|
-
required: false;
|
|
69
|
-
};
|
|
70
|
-
src: {
|
|
71
|
-
type: StringConstructor;
|
|
72
|
-
required: true;
|
|
73
|
-
};
|
|
74
|
-
fit: {
|
|
75
|
-
type: StringConstructor;
|
|
76
|
-
required: false;
|
|
77
|
-
};
|
|
78
|
-
hideOnClickModal: {
|
|
79
|
-
type: BooleanConstructor;
|
|
80
|
-
required: false;
|
|
81
|
-
default: boolean;
|
|
82
|
-
};
|
|
83
|
-
loading: {
|
|
84
|
-
type: StringConstructor;
|
|
85
|
-
required: false;
|
|
86
|
-
};
|
|
87
|
-
lazy: {
|
|
88
|
-
type: BooleanConstructor;
|
|
89
|
-
required: false;
|
|
90
|
-
default: boolean;
|
|
91
|
-
};
|
|
92
|
-
scrollContainer: {
|
|
93
|
-
type: null;
|
|
94
|
-
required: false;
|
|
95
|
-
};
|
|
96
|
-
alt: {
|
|
97
|
-
type: StringConstructor;
|
|
98
|
-
required: false;
|
|
99
|
-
};
|
|
100
|
-
referrerPolicy: {
|
|
101
|
-
type: StringConstructor;
|
|
102
|
-
required: false;
|
|
103
|
-
};
|
|
104
|
-
previewSrcList: {
|
|
105
|
-
type: ArrayConstructor;
|
|
106
|
-
required: false;
|
|
107
|
-
};
|
|
108
|
-
zIndex: {
|
|
109
|
-
type: NumberConstructor;
|
|
110
|
-
required: false;
|
|
111
|
-
};
|
|
112
|
-
initialIndex: {
|
|
113
|
-
type: NumberConstructor;
|
|
114
|
-
required: false;
|
|
115
|
-
default: number;
|
|
116
|
-
};
|
|
117
|
-
closeOnPressEscape: {
|
|
118
|
-
type: BooleanConstructor;
|
|
119
|
-
required: false;
|
|
120
|
-
default: boolean;
|
|
121
|
-
};
|
|
122
|
-
previewTeleported: {
|
|
123
|
-
type: BooleanConstructor;
|
|
124
|
-
required: false;
|
|
125
|
-
default: boolean;
|
|
126
|
-
};
|
|
127
|
-
}>> & {
|
|
128
|
-
onLoad?: ((...args: any[]) => any) | undefined;
|
|
129
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
130
|
-
onSwitch?: ((...args: any[]) => any) | undefined;
|
|
131
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
132
|
-
}, {
|
|
133
|
-
hideOnClickModal: boolean;
|
|
134
|
-
lazy: boolean;
|
|
135
|
-
initialIndex: number;
|
|
136
|
-
closeOnPressEscape: boolean;
|
|
137
|
-
previewTeleported: boolean;
|
|
138
|
-
}, {}>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
|
|
139
2
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefineComponent, StyleValue } from 'vue';
|
|
2
|
-
export type BaseImageViewerProps = {
|
|
2
|
+
export declare type BaseImageViewerProps = {
|
|
3
3
|
style?: StyleValue | string;
|
|
4
4
|
previewSrcList?: Array<string>;
|
|
5
5
|
/**
|
|
@@ -45,7 +45,7 @@ export type BaseImageViewerProps = {
|
|
|
45
45
|
onSwitch?: (index: number) => void;
|
|
46
46
|
onClose?: () => void;
|
|
47
47
|
};
|
|
48
|
-
export type BaseImageViewerRef = {
|
|
48
|
+
export declare type BaseImageViewerRef = {
|
|
49
49
|
/**
|
|
50
50
|
* 手动切换图片
|
|
51
51
|
* @param index 需要切换的图片的索引,从 0 开始
|
|
@@ -117,6 +117,6 @@ export interface BaseImageProps extends BaseImageViewerProps {
|
|
|
117
117
|
onLoad?: (e: Event) => void;
|
|
118
118
|
onError?: (e: Event) => void;
|
|
119
119
|
}
|
|
120
|
-
export declare const BaseImage: DefineComponent<BaseImageProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseImageProps>, {}
|
|
121
|
-
export declare const BaseImageViewer: DefineComponent<BaseImageViewerProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseImageViewerProps>, {}
|
|
120
|
+
export declare const BaseImage: DefineComponent<BaseImageProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseImageProps>, {}>;
|
|
121
|
+
export declare const BaseImageViewer: DefineComponent<BaseImageViewerProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseImageViewerProps>, {}>;
|
|
122
122
|
export declare const createImageViewer: (config?: BaseImageViewerProps) => BaseImageViewerRef;
|
|
@@ -41,7 +41,7 @@ export interface BaseInputProps extends BaseInputListener {
|
|
|
41
41
|
*/
|
|
42
42
|
changeRewrite?: (value: string | number) => string | Promise<string>;
|
|
43
43
|
}
|
|
44
|
-
export type BaseInputListener<S extends Record<string, any> = any> = {
|
|
44
|
+
export declare type BaseInputListener<S extends Record<string, any> = any> = {
|
|
45
45
|
onBlur?: (events: Event, searchValue?: S) => void;
|
|
46
46
|
onFocus?: (events: Event, searchValue?: S) => void;
|
|
47
47
|
onKeyup?: (events: Event, searchValue?: S) => void;
|
|
@@ -49,7 +49,7 @@ export type BaseInputListener<S extends Record<string, any> = any> = {
|
|
|
49
49
|
onInput?: (value: string | number | KeyboardEvent, searchValue?: S) => void;
|
|
50
50
|
onClear?: (searchValue?: S) => void;
|
|
51
51
|
};
|
|
52
|
-
export type BaseInputRef = {
|
|
52
|
+
export declare type BaseInputRef = {
|
|
53
53
|
/**
|
|
54
54
|
* 使 input 获取焦点
|
|
55
55
|
*/
|
|
@@ -63,4 +63,4 @@ export type BaseInputRef = {
|
|
|
63
63
|
*/
|
|
64
64
|
select: () => void;
|
|
65
65
|
};
|
|
66
|
-
export declare const BaseInput: DefineComponent<BaseInputProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseInputProps>, {}
|
|
66
|
+
export declare const BaseInput: DefineComponent<BaseInputProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseInputProps>, {}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DefineComponent } from 'vue';
|
|
2
|
-
export type PaginationInfoType = {
|
|
2
|
+
export declare type PaginationInfoType = {
|
|
3
3
|
pageSize: number;
|
|
4
4
|
currentPage: number;
|
|
5
5
|
};
|
|
6
|
-
export type BasePaginationProps = {
|
|
6
|
+
export declare type BasePaginationProps = {
|
|
7
7
|
small?: boolean;
|
|
8
8
|
currentPage?: number;
|
|
9
9
|
pageSize?: number;
|
|
@@ -15,7 +15,7 @@ export type BasePaginationProps = {
|
|
|
15
15
|
onSizeChange?: (paginationInfo: PaginationInfoType) => void;
|
|
16
16
|
onCurrentChange?: (paginationInfo: PaginationInfoType) => void;
|
|
17
17
|
};
|
|
18
|
-
export type BasePaginationRef = {
|
|
18
|
+
export declare type BasePaginationRef = {
|
|
19
19
|
/**
|
|
20
20
|
* 设置页码以及每页显示条目个数
|
|
21
21
|
*/
|
|
@@ -31,4 +31,4 @@ export type BasePaginationRef = {
|
|
|
31
31
|
currentPage: number;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
export declare const BasePagination: DefineComponent<BasePaginationProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BasePaginationProps>, {}
|
|
34
|
+
export declare const BasePagination: DefineComponent<BasePaginationProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BasePaginationProps>, {}>;
|