@wyfex/ivue 0.19.2 → 0.19.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/dist/index.es.js +12 -12
- package/dist/index.umd.cjs +12 -12
- package/dist/ivue.css +1 -1
- package/dist/types/UseCrudTable/components/ActionBar.vue.d.ts +20 -0
- package/dist/types/UseCrudTable/hook.d.ts +18 -0
- package/dist/types/UseCrudTable/index.vue.d.ts +1 -0
- package/dist/types/UseCrudTable/types.d.ts +16 -10
- package/dist/types/UseElCheckbox/index.vue.d.ts +1 -1
- package/dist/types/UseElCheckbox/types.d.ts +2 -2
- package/dist/types/UseElDialog/index.vue.d.ts +1 -1
- package/dist/types/UseElDrawer/index.vue.d.ts +2 -2
- package/dist/types/UseElForm/components/QueryForm.vue.d.ts +0 -2
- package/dist/types/UseElForm/components/RowForm.vue.d.ts +0 -2
- package/dist/types/UseElForm/types.d.ts +20 -21
- package/dist/types/UseElInput/index.vue.d.ts +1 -1
- package/dist/types/UseElSelect/index.vue.d.ts +1 -1
- package/dist/types/UseElTable/defaultExtConfig.d.ts +1 -0
- package/dist/types/UseElTable/index.vue.d.ts +18 -0
- package/dist/types/UseElTable/props.d.ts +8 -0
- package/dist/types/UseElTable/types.d.ts +1 -0
- package/dist/types/UseRender/index.vue.d.ts +1 -1
- package/package.json +2 -2
- package/src/components/UseCrudTable/props.ts +3 -3
- package/src/components/UseCrudTable/types.ts +31 -11
- package/src/components/UseElCheckbox/types.ts +2 -2
- package/src/components/UseElForm/types.ts +165 -54
- package/src/components/UseElTable/defaultExtConfig.ts +1 -1
- package/src/components/UseElTable/props.ts +14 -0
- package/src/components/UseElTable/types.ts +8 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Slots } from 'vue';
|
|
2
|
+
import { ActionBar } from '../types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
slots: Slots;
|
|
5
|
+
actionBar: ActionBar;
|
|
6
|
+
uefRef: any;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_1: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
actionBar?: (props: typeof __VLS_1) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { Emits, Props } from './types';
|
|
3
|
+
export declare const useCrudTable: (mergedProps: ComputedRef<Props>, emits: Emits) => {
|
|
4
|
+
state: any;
|
|
5
|
+
showModal: import('vue').Ref<boolean, boolean>;
|
|
6
|
+
modalComponent: import('vue').ShallowRef<null, null> | import('vue').ShallowRef<import('vue').ComponentOptions<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, import('vue').ComponentOptions<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>> | import('vue').ShallowRef<import('vue').FunctionalComponent<any, {}, any, {}>, import('vue').FunctionalComponent<any, {}, any, {}>> | import('vue').ShallowRef<{
|
|
7
|
+
new (...args: any[]): any;
|
|
8
|
+
__isFragment?: never;
|
|
9
|
+
__isTeleport?: never;
|
|
10
|
+
__isSuspense?: never;
|
|
11
|
+
}, {
|
|
12
|
+
new (...args: any[]): any;
|
|
13
|
+
__isFragment?: never;
|
|
14
|
+
__isTeleport?: never;
|
|
15
|
+
__isSuspense?: never;
|
|
16
|
+
}>;
|
|
17
|
+
handleShowModal: () => Promise<void>;
|
|
18
|
+
};
|
|
@@ -13,6 +13,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
13
13
|
};
|
|
14
14
|
}>, {
|
|
15
15
|
uefRef: import('vue').Ref<any, any>;
|
|
16
|
+
handleShowModal: () => Promise<void>;
|
|
16
17
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
17
18
|
onDictKeys: (value?: string[] | undefined) => any;
|
|
18
19
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
|
1
|
+
import { Component, ExtractPropTypes } from 'vue';
|
|
2
2
|
import { default as componentProps } from './props';
|
|
3
3
|
import { FormColumn } from '../UseElForm/types';
|
|
4
4
|
import { TableColumn } from '../UseElTable/types';
|
|
5
5
|
export type Props = ExtractPropTypes<typeof componentProps>;
|
|
6
|
-
export
|
|
6
|
+
export type Emits = {
|
|
7
7
|
(e: 'onDictKeys', value?: string[]): void;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
export type BaseConfigs = Omit<FormColumn, 'prop'> & Omit<TableColumn, 'prop'>;
|
|
10
10
|
export interface Configs extends BaseConfigs {
|
|
11
11
|
prop: string;
|
|
@@ -13,14 +13,20 @@ export interface Configs extends BaseConfigs {
|
|
|
13
13
|
tableOrder?: number;
|
|
14
14
|
}
|
|
15
15
|
export interface Divider {
|
|
16
|
-
show
|
|
17
|
-
borderStyle
|
|
16
|
+
show?: boolean;
|
|
17
|
+
borderStyle?: 'none' | 'solid' | 'hidden' | 'dashed';
|
|
18
|
+
}
|
|
19
|
+
export interface ActionBar {
|
|
20
|
+
margin?: string;
|
|
21
|
+
showControlFormDisplayBtn?: boolean;
|
|
22
|
+
controlFormDisplayBtnWithOpenedIcon?: Component;
|
|
23
|
+
controlFormDisplayBtnWithClosedIcon?: Component;
|
|
24
|
+
reverse?: boolean;
|
|
25
|
+
divider?: Divider;
|
|
18
26
|
}
|
|
19
27
|
export interface ExtConfig {
|
|
20
|
-
actionBar
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
reverse: boolean;
|
|
24
|
-
divider: Divider;
|
|
28
|
+
actionBar?: ActionBar;
|
|
29
|
+
modal?: {
|
|
30
|
+
type?: 'Drawer' | 'Dialog';
|
|
25
31
|
};
|
|
26
32
|
}
|
|
@@ -54,8 +54,8 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
54
54
|
"onUpdate:modelValue"?: ((value: string | number | (string | number)[]) => any) | undefined;
|
|
55
55
|
}>, {
|
|
56
56
|
data: any;
|
|
57
|
-
toJoin: boolean;
|
|
58
57
|
modelValue: string | unknown[];
|
|
58
|
+
toJoin: boolean;
|
|
59
59
|
defaultProps: Record<string, any>;
|
|
60
60
|
showCheckAll: boolean;
|
|
61
61
|
vertical: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { default as componentProps } from './props';
|
|
3
3
|
export type Props = ExtractPropTypes<typeof componentProps>;
|
|
4
|
-
export
|
|
4
|
+
export type Emits = {
|
|
5
5
|
(e: 'update:modelValue', value: string | number | (string | number)[]): void;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
@@ -153,7 +153,6 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
153
153
|
};
|
|
154
154
|
}>> & Readonly<{}>, {
|
|
155
155
|
title: string;
|
|
156
|
-
onClose: Function;
|
|
157
156
|
appendToBody: boolean;
|
|
158
157
|
maxHeight: string | number;
|
|
159
158
|
noresize: boolean;
|
|
@@ -165,6 +164,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
165
164
|
showFooterTopBorder: boolean;
|
|
166
165
|
footerPosition: string;
|
|
167
166
|
strictCloseEvent: boolean;
|
|
167
|
+
onClose: Function;
|
|
168
168
|
confirmBtnText: string;
|
|
169
169
|
cancelBtnText: string;
|
|
170
170
|
cancelBtnType: string;
|
|
@@ -128,9 +128,8 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
128
128
|
default: () => void;
|
|
129
129
|
};
|
|
130
130
|
}>> & Readonly<{}>, {
|
|
131
|
-
title: string;
|
|
132
131
|
size: string | number;
|
|
133
|
-
|
|
132
|
+
title: string;
|
|
134
133
|
appendToBody: boolean;
|
|
135
134
|
closeOnClickModal: boolean;
|
|
136
135
|
destroyOnClose: boolean;
|
|
@@ -138,6 +137,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
138
137
|
showFooter: boolean;
|
|
139
138
|
footerPosition: string;
|
|
140
139
|
strictCloseEvent: boolean;
|
|
140
|
+
onClose: Function;
|
|
141
141
|
confirmBtnText: string;
|
|
142
142
|
cancelBtnText: string;
|
|
143
143
|
cancelBtnType: string;
|
|
@@ -58,7 +58,6 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
58
58
|
handleDisplayQueryForm: () => void;
|
|
59
59
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
60
60
|
onDictKeys: (value?: string[] | undefined) => any;
|
|
61
|
-
"update:formModel": (value: Record<string, any>) => any;
|
|
62
61
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
63
62
|
formColumns: {
|
|
64
63
|
type: import('vue').PropType<import('../types').FormColumn[]>;
|
|
@@ -116,7 +115,6 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
116
115
|
};
|
|
117
116
|
}>> & Readonly<{
|
|
118
117
|
onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
|
|
119
|
-
"onUpdate:formModel"?: ((value: Record<string, any>) => any) | undefined;
|
|
120
118
|
}>, {
|
|
121
119
|
dictMap: import('../../../types').DictMap;
|
|
122
120
|
dictProps: import('../../../types').DictProps;
|
|
@@ -57,7 +57,6 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
57
57
|
efRef: import('vue').Ref<null, null>;
|
|
58
58
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
59
59
|
onDictKeys: (value?: string[] | undefined) => any;
|
|
60
|
-
"update:formModel": (value: Record<string, any>) => any;
|
|
61
60
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
62
61
|
formColumns: {
|
|
63
62
|
type: import('vue').PropType<import('../types').FormColumn[]>;
|
|
@@ -115,7 +114,6 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
115
114
|
};
|
|
116
115
|
}>> & Readonly<{
|
|
117
116
|
onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
|
|
118
|
-
"onUpdate:formModel"?: ((value: Record<string, any>) => any) | undefined;
|
|
119
117
|
}>, {
|
|
120
118
|
dictMap: import('../../../types').DictMap;
|
|
121
119
|
dictProps: import('../../../types').DictProps;
|
|
@@ -2,10 +2,9 @@ import { ExtractPropTypes } from 'vue';
|
|
|
2
2
|
import { default as componentProps } from './props';
|
|
3
3
|
import { RenderConfig, UseDict } from '../../types';
|
|
4
4
|
export type Props = ExtractPropTypes<typeof componentProps>;
|
|
5
|
-
export
|
|
5
|
+
export type Emits = {
|
|
6
6
|
(e: 'onDictKeys', value?: string[]): void;
|
|
7
|
-
|
|
8
|
-
}
|
|
7
|
+
};
|
|
9
8
|
export interface QueryConfig {
|
|
10
9
|
mode?: 'ROW' | 'INLINE';
|
|
11
10
|
colSpan?: 24 | 12 | 8 | 6 | 4 | 3 | 2 | 1 | 0;
|
|
@@ -15,7 +14,7 @@ export interface QueryConfig {
|
|
|
15
14
|
onQuery?: Function;
|
|
16
15
|
}
|
|
17
16
|
export interface InputConfig {
|
|
18
|
-
useRender
|
|
17
|
+
useRender?: boolean | RenderConfig;
|
|
19
18
|
type?: 'text' | 'textarea' | 'number' | 'password' | 'email' | 'search' | 'tel' | 'url';
|
|
20
19
|
prefixIcon?: string;
|
|
21
20
|
suffixIcon?: string;
|
|
@@ -38,12 +37,12 @@ export interface InputConfig {
|
|
|
38
37
|
prependContent?: string | object;
|
|
39
38
|
appendContent?: string | object;
|
|
40
39
|
unit?: string | object;
|
|
41
|
-
onClear?:
|
|
40
|
+
onClear?: Function;
|
|
42
41
|
inputEvent?: Function;
|
|
43
|
-
onKeyupEnter?:
|
|
42
|
+
onKeyupEnter?: Function;
|
|
44
43
|
}
|
|
45
44
|
export interface InputNumberConfig {
|
|
46
|
-
useRender
|
|
45
|
+
useRender?: boolean | RenderConfig;
|
|
47
46
|
min?: number;
|
|
48
47
|
max?: number;
|
|
49
48
|
step?: number;
|
|
@@ -53,7 +52,7 @@ export interface InputNumberConfig {
|
|
|
53
52
|
unit?: string | object;
|
|
54
53
|
}
|
|
55
54
|
export interface RadioConfig {
|
|
56
|
-
useRender
|
|
55
|
+
useRender?: boolean | RenderConfig;
|
|
57
56
|
options?: Array<{
|
|
58
57
|
label: string;
|
|
59
58
|
value: string | number;
|
|
@@ -63,10 +62,10 @@ export interface RadioConfig {
|
|
|
63
62
|
label?: string;
|
|
64
63
|
};
|
|
65
64
|
reverse?: boolean;
|
|
66
|
-
onChange?:
|
|
65
|
+
onChange?: Function;
|
|
67
66
|
}
|
|
68
67
|
export interface SelectConfig {
|
|
69
|
-
useRender
|
|
68
|
+
useRender?: boolean | RenderConfig;
|
|
70
69
|
multiple?: boolean;
|
|
71
70
|
clearable?: boolean;
|
|
72
71
|
filterable?: boolean;
|
|
@@ -83,10 +82,10 @@ export interface SelectConfig {
|
|
|
83
82
|
reverse?: boolean;
|
|
84
83
|
toJoin?: boolean;
|
|
85
84
|
width?: string;
|
|
86
|
-
onChange?:
|
|
85
|
+
onChange?: Function;
|
|
87
86
|
}
|
|
88
87
|
export interface CascaderConfig {
|
|
89
|
-
useRender
|
|
88
|
+
useRender?: boolean | RenderConfig;
|
|
90
89
|
clearable?: boolean;
|
|
91
90
|
options?: Array<{
|
|
92
91
|
label: string;
|
|
@@ -97,10 +96,10 @@ export interface CascaderConfig {
|
|
|
97
96
|
label?: string;
|
|
98
97
|
};
|
|
99
98
|
width?: string;
|
|
100
|
-
onChange?:
|
|
99
|
+
onChange?: Function;
|
|
101
100
|
}
|
|
102
101
|
export interface DatePickerConfig {
|
|
103
|
-
useRender
|
|
102
|
+
useRender?: boolean | RenderConfig;
|
|
104
103
|
type?: 'year' | 'years' | 'month' | 'months' | 'date' | 'dates' | 'datetime' | 'week' | 'datetimerange' | 'daterange' | 'monthrange' | 'yearrange';
|
|
105
104
|
clearable?: boolean;
|
|
106
105
|
disabledDate?: Function;
|
|
@@ -116,7 +115,7 @@ export interface DatePickerConfig {
|
|
|
116
115
|
onChange?: Function;
|
|
117
116
|
}
|
|
118
117
|
export interface TimePickerConfig {
|
|
119
|
-
useRender
|
|
118
|
+
useRender?: boolean | RenderConfig;
|
|
120
119
|
startPlaceholder?: string;
|
|
121
120
|
endPlaceholder?: string;
|
|
122
121
|
rangeSeparator?: string;
|
|
@@ -124,18 +123,18 @@ export interface TimePickerConfig {
|
|
|
124
123
|
editable?: boolean;
|
|
125
124
|
format?: string;
|
|
126
125
|
valueFormat?: string;
|
|
127
|
-
onChange?:
|
|
126
|
+
onChange?: Function;
|
|
128
127
|
}
|
|
129
128
|
export interface TimeSelectConfig {
|
|
130
|
-
useRender
|
|
129
|
+
useRender?: boolean | RenderConfig;
|
|
131
130
|
startProp: string;
|
|
132
131
|
endProp: string;
|
|
133
132
|
}
|
|
134
133
|
export interface SwitchConfig {
|
|
135
|
-
useRender
|
|
134
|
+
useRender?: boolean | RenderConfig;
|
|
136
135
|
activeValue?: string | number | boolean;
|
|
137
136
|
inactiveValue?: string | number | boolean;
|
|
138
|
-
onChange?:
|
|
137
|
+
onChange?: Function;
|
|
139
138
|
}
|
|
140
139
|
export interface InputRangeConfig {
|
|
141
140
|
startProp: string;
|
|
@@ -143,7 +142,7 @@ export interface InputRangeConfig {
|
|
|
143
142
|
startPlaceholder?: string;
|
|
144
143
|
endPlaceholder?: string;
|
|
145
144
|
rangeSeparator?: string;
|
|
146
|
-
onClear?:
|
|
145
|
+
onClear?: Function;
|
|
147
146
|
}
|
|
148
147
|
export interface TreeSelectConfig {
|
|
149
148
|
useRender?: boolean | RenderConfig;
|
|
@@ -169,7 +168,7 @@ export interface FormColumn {
|
|
|
169
168
|
label?: string;
|
|
170
169
|
prop: string;
|
|
171
170
|
queryProp?: string | string[];
|
|
172
|
-
required
|
|
171
|
+
required?: boolean | IRequired;
|
|
173
172
|
errorMessage?: string;
|
|
174
173
|
disabled?: boolean;
|
|
175
174
|
useDict?: boolean | string | UseDict;
|
|
@@ -104,8 +104,8 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
104
104
|
useRender: boolean | import('../../types').RenderConfig;
|
|
105
105
|
width: string;
|
|
106
106
|
unit: string | Record<string, any>;
|
|
107
|
-
resize: string;
|
|
108
107
|
modelValue: string | number;
|
|
108
|
+
resize: string;
|
|
109
109
|
placeholder: string;
|
|
110
110
|
clearable: boolean;
|
|
111
111
|
prefixContent: string | Record<string, any>;
|
|
@@ -82,8 +82,8 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
82
82
|
dictProps: import('../../types').DictProps;
|
|
83
83
|
useRender: boolean | import('../../types').RenderConfig;
|
|
84
84
|
width: string;
|
|
85
|
-
toJoin: boolean;
|
|
86
85
|
modelValue: string | number | boolean | unknown[];
|
|
86
|
+
toJoin: boolean;
|
|
87
87
|
placeholder: string;
|
|
88
88
|
clearable: boolean;
|
|
89
89
|
options: Record<string, any>[];
|
|
@@ -24,6 +24,14 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
24
24
|
type: import('vue').PropType<import('../../types').DictProps>;
|
|
25
25
|
default: () => {};
|
|
26
26
|
};
|
|
27
|
+
currentPage: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
pageSize: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
27
35
|
showOverflowTooltip: {
|
|
28
36
|
type: BooleanConstructor;
|
|
29
37
|
default: boolean;
|
|
@@ -73,6 +81,14 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
73
81
|
type: import('vue').PropType<import('../../types').DictProps>;
|
|
74
82
|
default: () => {};
|
|
75
83
|
};
|
|
84
|
+
currentPage: {
|
|
85
|
+
type: NumberConstructor;
|
|
86
|
+
default: number;
|
|
87
|
+
};
|
|
88
|
+
pageSize: {
|
|
89
|
+
type: NumberConstructor;
|
|
90
|
+
default: number;
|
|
91
|
+
};
|
|
76
92
|
showOverflowTooltip: {
|
|
77
93
|
type: BooleanConstructor;
|
|
78
94
|
default: boolean;
|
|
@@ -99,6 +115,8 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
99
115
|
tableColumnAlign: string;
|
|
100
116
|
dictMap: import('../../types').DictMap;
|
|
101
117
|
dictProps: import('../../types').DictProps;
|
|
118
|
+
currentPage: number;
|
|
119
|
+
pageSize: number;
|
|
102
120
|
showOverflowTooltip: boolean;
|
|
103
121
|
headerCellStyle: Record<string, string>;
|
|
104
122
|
extConfig: import('./types').ExtConfig;
|
|
@@ -27,6 +27,14 @@ declare const _default: {
|
|
|
27
27
|
type: PropType<DictProps>;
|
|
28
28
|
default: () => {};
|
|
29
29
|
};
|
|
30
|
+
currentPage: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
pageSize: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
30
38
|
showOverflowTooltip: {
|
|
31
39
|
type: BooleanConstructor;
|
|
32
40
|
default: boolean;
|
|
@@ -49,8 +49,8 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
49
49
|
default: string;
|
|
50
50
|
};
|
|
51
51
|
}>> & Readonly<{}>, {
|
|
52
|
-
style: string | Record<string, any>;
|
|
53
52
|
class: string;
|
|
53
|
+
style: string | Record<string, any>;
|
|
54
54
|
emptyText: string;
|
|
55
55
|
separator: string;
|
|
56
56
|
parseKey: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wyfex/ivue",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.3",
|
|
4
4
|
"description": "万有前端 X 体系下基于 Vite8 + Vue3 + Typescript6 + ElementPlus2 构建的 iVue 组件库",
|
|
5
5
|
"homepage": "https://wyfex.top/idocs/ivue",
|
|
6
6
|
"type": "module",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"unplugin-auto-import": "^21.0.0",
|
|
62
62
|
"unplugin-dts": "^1.0.3",
|
|
63
63
|
"unplugin-vue-components": "^32.1.0",
|
|
64
|
-
"vite": "^8.1.
|
|
64
|
+
"vite": "^8.1.4",
|
|
65
65
|
"vite-svg-loader": "^5.1.1",
|
|
66
66
|
"vue": "^3.5.39",
|
|
67
67
|
"vue-tsc": "^3.3.7"
|
|
@@ -7,7 +7,7 @@ import type { Configs, ExtConfig } from './types'
|
|
|
7
7
|
*/
|
|
8
8
|
export default {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* 配置 必传
|
|
11
11
|
* 1、configs是【formColumns】和【tableColumns】的统一配置入口
|
|
12
12
|
* 2、configs在【formColumns】和【tableColumns】的配置基础上新增了【onlySearch】和【tableOrder】配置项用于兼容特殊应用场景
|
|
13
13
|
*/
|
|
@@ -16,14 +16,14 @@ export default {
|
|
|
16
16
|
required: true
|
|
17
17
|
},
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* 表格扩展配置
|
|
20
20
|
*/
|
|
21
21
|
tableExtConfig: {
|
|
22
22
|
type: Object as PropType<TableExtConfig>,
|
|
23
23
|
default: () => ({})
|
|
24
24
|
},
|
|
25
25
|
/**
|
|
26
|
-
* 扩展配置
|
|
26
|
+
* 扩展配置 如【操作栏/弹窗】等
|
|
27
27
|
*/
|
|
28
28
|
extConfig: {
|
|
29
29
|
type: Object as PropType<ExtConfig>,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractPropTypes } from 'vue'
|
|
1
|
+
import type { Component, ExtractPropTypes } from 'vue'
|
|
2
2
|
import componentProps from './props'
|
|
3
3
|
import type { FormColumn } from '../UseElForm/types'
|
|
4
4
|
import type { TableColumn } from '../UseElTable/types'
|
|
@@ -9,10 +9,12 @@ import type { TableColumn } from '../UseElTable/types'
|
|
|
9
9
|
export type Props = ExtractPropTypes<typeof componentProps>
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* emits
|
|
12
|
+
* emits类型
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
15
|
-
|
|
14
|
+
export type Emits = {
|
|
15
|
+
/**
|
|
16
|
+
* dictKeys事件
|
|
17
|
+
*/
|
|
16
18
|
(e: 'onDictKeys', value?: string[]): void
|
|
17
19
|
}
|
|
18
20
|
|
|
@@ -34,18 +36,36 @@ export interface Configs extends BaseConfigs {
|
|
|
34
36
|
* 分割线配置项接口
|
|
35
37
|
*/
|
|
36
38
|
export interface Divider {
|
|
37
|
-
show
|
|
38
|
-
borderStyle
|
|
39
|
+
show?: boolean
|
|
40
|
+
borderStyle?: 'none' | 'solid' | 'hidden' | 'dashed'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 操作栏配置
|
|
45
|
+
*/
|
|
46
|
+
export interface ActionBar {
|
|
47
|
+
margin?: string
|
|
48
|
+
showControlFormDisplayBtn?: boolean
|
|
49
|
+
controlFormDisplayBtnWithOpenedIcon?: Component
|
|
50
|
+
controlFormDisplayBtnWithClosedIcon?: Component
|
|
51
|
+
reverse?: boolean
|
|
52
|
+
divider?: Divider
|
|
39
53
|
}
|
|
40
54
|
|
|
41
55
|
/**
|
|
42
56
|
* extConfig接口
|
|
43
57
|
*/
|
|
44
58
|
export interface ExtConfig {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
59
|
+
/**
|
|
60
|
+
* 操作栏配置项
|
|
61
|
+
*/
|
|
62
|
+
actionBar?: ActionBar
|
|
63
|
+
/**
|
|
64
|
+
* 弹窗配置项
|
|
65
|
+
* type:弹窗类型 支持Drawer和Dialog
|
|
66
|
+
* 其他配置项由于组件内部已进行v-bind透传,不不在此重复声明接口,详见UseElDrawer和UseElDialog组件types
|
|
67
|
+
*/
|
|
68
|
+
modal?: {
|
|
69
|
+
type?: 'Drawer' | 'Dialog'
|
|
50
70
|
}
|
|
51
71
|
}
|
|
@@ -7,9 +7,9 @@ import componentProps from './props'
|
|
|
7
7
|
export type Props = ExtractPropTypes<typeof componentProps>
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* emits
|
|
10
|
+
* emits类型
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export type Emits = {
|
|
13
13
|
// 更新value值
|
|
14
14
|
(e: 'update:modelValue', value: string | number | (string | number)[]): void
|
|
15
15
|
}
|