@wyfex/ivue 0.19.4 → 0.20.0
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/README.md +7 -1
- package/dist/index.es.js +9 -9
- package/dist/index.umd.cjs +6 -6
- package/dist/ivue.css +1 -1
- package/dist/types/UseCrud/defaultExtConfig.d.ts +4 -0
- package/dist/types/UseCrud/hook.d.ts +2 -22
- package/dist/types/UseCrud/index.vue.d.ts +11 -2
- package/dist/types/UseCrud/types.d.ts +48 -3
- package/dist/types/UseCrud/utils.d.ts +48 -2
- package/dist/types/UseElCheckbox/index.vue.d.ts +1 -1
- package/dist/types/UseElDatePicker/index.vue.d.ts +4 -4
- package/dist/types/UseElDatePicker/types.d.ts +2 -2
- package/dist/types/UseElDialog/hook.d.ts +1 -0
- package/dist/types/UseElDialog/index.vue.d.ts +19 -1
- package/dist/types/UseElDialog/props.d.ts +8 -0
- package/dist/types/UseElDrawer/index.vue.d.ts +10 -1
- package/dist/types/UseElDrawer/props.d.ts +4 -0
- package/dist/types/UseElForm/types.d.ts +1 -2
- package/dist/types/UseElInput/index.vue.d.ts +4 -4
- package/dist/types/UseElSelect/index.vue.d.ts +4 -4
- package/dist/types/UseElTable/defaultExtConfig.d.ts +1 -1
- package/dist/types/UseElTable/types.d.ts +9 -10
- package/dist/types/UseElTimeSelect/index.vue.d.ts +28 -0
- package/dist/types/UseElTimeSelect/props.d.ts +13 -0
- package/dist/types/UseElTimeSelect/types.d.ts +6 -0
- package/dist/types/UseRender/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/components/UseCrud/defaultExtConfig.ts +1 -0
- package/src/components/UseCrud/props.ts +1 -1
- package/src/components/UseCrud/types.ts +99 -23
- package/src/components/UseElButton/types.ts +12 -37
- package/src/components/UseElCheckbox/types.ts +1 -1
- package/src/components/UseElConfigProvider/types.ts +10 -18
- package/src/components/UseElDatePicker/types.ts +3 -3
- package/src/components/UseElDialog/props.ts +16 -2
- package/src/components/UseElDrawer/props.ts +7 -0
- package/src/components/UseElForm/types.ts +3 -10
- package/src/components/UseElTable/types.ts +92 -183
- package/src/components/UseElTimeSelect/props.ts +22 -0
- package/src/components/UseElTimeSelect/types.ts +15 -0
- package/dist/types/UseCrud/useCrudWithBusiness.d.ts +0 -46
- /package/dist/types/UseElForm/components/controls/{TimeSelect.vue.d.ts → TimeSelectRange.vue.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef, Slots } from 'vue';
|
|
2
|
-
import { Emits, Props } from './types';
|
|
2
|
+
import { Emits, Props, UseCrudReturn } from './types';
|
|
3
3
|
import { GlobalConfig } from '../../types';
|
|
4
4
|
export declare const useCrud: ({ mergedProps, globalConfig, slots, uefRef, modalRef, emits }: {
|
|
5
5
|
mergedProps: ComputedRef<Props>;
|
|
@@ -8,24 +8,4 @@ export declare const useCrud: ({ mergedProps, globalConfig, slots, uefRef, modal
|
|
|
8
8
|
uefRef: any;
|
|
9
9
|
modalRef: any;
|
|
10
10
|
emits: Emits;
|
|
11
|
-
}) =>
|
|
12
|
-
state: any;
|
|
13
|
-
heightComputed: ComputedRef<string>;
|
|
14
|
-
margin: ComputedRef<string | undefined>;
|
|
15
|
-
actionBar: import('./types').ActionBar | undefined;
|
|
16
|
-
handleDisplayQueryForm: () => void;
|
|
17
|
-
showModal: import('vue').Ref<boolean, boolean>;
|
|
18
|
-
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<{
|
|
19
|
-
new (...args: any[]): any;
|
|
20
|
-
__isFragment?: never;
|
|
21
|
-
__isTeleport?: never;
|
|
22
|
-
__isSuspense?: never;
|
|
23
|
-
}, {
|
|
24
|
-
new (...args: any[]): any;
|
|
25
|
-
__isFragment?: never;
|
|
26
|
-
__isTeleport?: never;
|
|
27
|
-
__isSuspense?: never;
|
|
28
|
-
}>;
|
|
29
|
-
handleShowModal: () => Promise<void>;
|
|
30
|
-
handleCloseModal: ComputedRef<any>;
|
|
31
|
-
};
|
|
11
|
+
}) => UseCrudReturn;
|
|
@@ -8,10 +8,19 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
8
8
|
default: () => {};
|
|
9
9
|
};
|
|
10
10
|
}>, {
|
|
11
|
-
|
|
11
|
+
state: import('vue').Ref<import('./types').UseCrudState, import('./types').UseCrudState>;
|
|
12
|
+
onQuery: (e: Record<string, unknown>, done?: () => void) => void;
|
|
13
|
+
onCancelQueryRequest: () => void;
|
|
14
|
+
handleDelete: (payload: {
|
|
15
|
+
id?: string | number;
|
|
16
|
+
ids?: string | Array<string | number>;
|
|
17
|
+
}, loadingConfig: {
|
|
18
|
+
source?: Record<string, unknown>;
|
|
19
|
+
key?: string;
|
|
20
|
+
}, successCb?: () => void, errorCb?: (err: unknown) => void, successMsg?: string) => Promise<void>;
|
|
12
21
|
modalRef: import('vue').Ref<any, any>;
|
|
13
22
|
handleShowModal: () => Promise<void>;
|
|
14
|
-
handleCloseModal: import('vue').ComputedRef<
|
|
23
|
+
handleCloseModal: import('vue').ComputedRef<() => void>;
|
|
15
24
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
25
|
onDictKeys: (value?: string[] | undefined) => any;
|
|
17
26
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ExtractPropTypes } from 'vue';
|
|
1
|
+
import { Component, ComputedRef, ExtractPropTypes, Ref, ShallowRef } from 'vue';
|
|
2
2
|
import { default as componentProps } from './props';
|
|
3
3
|
import { FormColumn } from '../UseElForm/types';
|
|
4
4
|
import { TableColumn, ExtConfig as TableExtConfig } from '../UseElTable/types';
|
|
@@ -6,9 +6,10 @@ export type Props = ExtractPropTypes<typeof componentProps>;
|
|
|
6
6
|
export type Emits = {
|
|
7
7
|
(e: 'onDictKeys', value?: string[]): void;
|
|
8
8
|
};
|
|
9
|
-
export type BaseConfigs =
|
|
9
|
+
export type BaseConfigs = FormColumn & TableColumn;
|
|
10
10
|
export interface Configs extends BaseConfigs {
|
|
11
|
-
|
|
11
|
+
queryLabel?: string;
|
|
12
|
+
queryProp?: string;
|
|
12
13
|
onlySearch?: boolean;
|
|
13
14
|
tableOrder?: number;
|
|
14
15
|
}
|
|
@@ -25,9 +26,53 @@ export interface ActionBar {
|
|
|
25
26
|
divider?: Divider;
|
|
26
27
|
}
|
|
27
28
|
export interface ExtConfig {
|
|
29
|
+
crudFetch?: {
|
|
30
|
+
queryApi?: Function;
|
|
31
|
+
queryImmediate?: boolean;
|
|
32
|
+
autoCancelQueryStrategy?: 'none' | 'unmount' | 'deactivate' | 'both';
|
|
33
|
+
onQueryBefore?: (done: () => void) => void;
|
|
34
|
+
onQueryError?: (err: any) => void;
|
|
35
|
+
deleteApi?: Function;
|
|
36
|
+
};
|
|
28
37
|
actionBar?: ActionBar;
|
|
29
38
|
modal?: {
|
|
30
39
|
type?: 'Drawer' | 'Dialog';
|
|
31
40
|
};
|
|
32
41
|
}
|
|
33
42
|
export type MergedExtConfig = ExtConfig & TableExtConfig;
|
|
43
|
+
export interface UseCrudState {
|
|
44
|
+
formColumns: FormColumn[];
|
|
45
|
+
tableColumns: TableColumn[];
|
|
46
|
+
formModel: Record<string, any>;
|
|
47
|
+
formParams: Record<string, any>;
|
|
48
|
+
tableLoading: boolean;
|
|
49
|
+
tableData: any[];
|
|
50
|
+
currentPage: number;
|
|
51
|
+
pageSize: number;
|
|
52
|
+
total: number;
|
|
53
|
+
dictMap: Record<string, any>;
|
|
54
|
+
}
|
|
55
|
+
export interface UseCrudReturn {
|
|
56
|
+
state: Ref<UseCrudState>;
|
|
57
|
+
heightComputed: ComputedRef<string>;
|
|
58
|
+
fetchTableData: (options?: {
|
|
59
|
+
params?: Record<string, any>;
|
|
60
|
+
isPageApi?: boolean;
|
|
61
|
+
}, cb?: () => void) => Promise<any>;
|
|
62
|
+
onQuery: (e: Record<string, unknown>, done?: () => void) => void;
|
|
63
|
+
onCancelQueryRequest: () => void;
|
|
64
|
+
handleDelete: (payload: {
|
|
65
|
+
id?: string | number;
|
|
66
|
+
ids?: string | Array<string | number>;
|
|
67
|
+
}, loadingConfig: {
|
|
68
|
+
source?: Record<string, unknown>;
|
|
69
|
+
key?: string;
|
|
70
|
+
}, successCb?: () => void, errorCb?: (err: unknown) => void, successMsg?: string) => Promise<void>;
|
|
71
|
+
margin: ComputedRef<string | undefined>;
|
|
72
|
+
actionBar: any;
|
|
73
|
+
handleDisplayQueryForm: () => void;
|
|
74
|
+
showModal: Ref<boolean>;
|
|
75
|
+
modalComponent: ShallowRef<Component | null>;
|
|
76
|
+
handleShowModal: () => Promise<void>;
|
|
77
|
+
handleCloseModal: ComputedRef<() => void>;
|
|
78
|
+
}
|
|
@@ -1,2 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import { Configs } from './types';
|
|
2
|
+
export declare const getFilteredFormColumns: (list: Configs[]) => {
|
|
3
|
+
label: string | undefined;
|
|
4
|
+
prop: string | undefined;
|
|
5
|
+
queryLabel?: string;
|
|
6
|
+
queryProp?: string;
|
|
7
|
+
onlySearch?: boolean;
|
|
8
|
+
tableOrder?: number;
|
|
9
|
+
required?: boolean | import('../UseElForm/types').IRequired;
|
|
10
|
+
errorMessage?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
useDict?: boolean | string | import('../../types').UseDict;
|
|
13
|
+
span?: number;
|
|
14
|
+
labelWidth?: string;
|
|
15
|
+
labelPosition?: "left" | "right" | "top";
|
|
16
|
+
show?: boolean;
|
|
17
|
+
filter?: boolean;
|
|
18
|
+
formItemClass?: string;
|
|
19
|
+
slot?: string | boolean;
|
|
20
|
+
renderConfig?: import('../../types').RenderConfig;
|
|
21
|
+
inputConfig?: import('../UseElForm/types').InputConfig;
|
|
22
|
+
inputNumberConfig?: import('../UseElForm/types').InputNumberConfig;
|
|
23
|
+
selectConfig?: import('../UseElForm/types').SelectConfig;
|
|
24
|
+
treeSelectConfig?: import('../UseElForm/types').TreeSelectConfig;
|
|
25
|
+
cascaderConfig?: import('../UseElForm/types').CascaderConfig;
|
|
26
|
+
datePickerConfig?: import('../UseElForm/types').DatePickerConfig;
|
|
27
|
+
timePickerConfig?: import('../UseElForm/types').TimePickerConfig;
|
|
28
|
+
timeSelectConfig?: import('../UseElForm/types').TimeSelectConfig;
|
|
29
|
+
radioConfig?: import('../UseElForm/types').RadioConfig;
|
|
30
|
+
switchConfig?: import('../UseElForm/types').SwitchConfig;
|
|
31
|
+
inputRangeConfig?: import('../UseElForm/types').InputRangeConfig;
|
|
32
|
+
width?: string | number;
|
|
33
|
+
minWidth?: string | number;
|
|
34
|
+
align?: string;
|
|
35
|
+
fixed?: boolean | string;
|
|
36
|
+
sortable?: boolean;
|
|
37
|
+
showOverflowTooltip?: boolean;
|
|
38
|
+
extConfig?: {
|
|
39
|
+
header?: import('../UseElTable/types').Header;
|
|
40
|
+
edit?: import('../UseElTable/types').Edit;
|
|
41
|
+
formatter?: Function;
|
|
42
|
+
class?: string | string[];
|
|
43
|
+
style?: string | Record<string, unknown>;
|
|
44
|
+
slot?: boolean | string;
|
|
45
|
+
};
|
|
46
|
+
children?: import('../UseElTable/types').TableColumn[];
|
|
47
|
+
}[];
|
|
48
|
+
export declare const getFilteredAndSortedTableColumns: (list: Configs[]) => Configs[];
|
|
@@ -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
|
-
modelValue: string | unknown[];
|
|
58
57
|
toJoin: boolean;
|
|
58
|
+
modelValue: string | unknown[];
|
|
59
59
|
defaultProps: Record<string, any>;
|
|
60
60
|
showCheckAll: boolean;
|
|
61
61
|
vertical: boolean;
|
|
@@ -81,13 +81,13 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
81
81
|
}>, {
|
|
82
82
|
useRender: boolean | import('../../types').RenderConfig;
|
|
83
83
|
type: string;
|
|
84
|
-
|
|
84
|
+
placeholder: string;
|
|
85
|
+
format: string;
|
|
86
|
+
valueFormat: string;
|
|
85
87
|
startPlaceholder: string;
|
|
86
88
|
endPlaceholder: string;
|
|
87
89
|
rangeSeparator: string;
|
|
88
|
-
|
|
89
|
-
valueFormat: string;
|
|
90
|
-
placeholder: string;
|
|
90
|
+
modelValue: string | number | unknown[];
|
|
91
91
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
92
92
|
declare const _default: typeof __VLS_export;
|
|
93
93
|
export default _default;
|
|
@@ -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 | any[]): void;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
@@ -8,6 +8,7 @@ export declare const useElDialog: ({ props, edRef }: {
|
|
|
8
8
|
edRef: Ref<DialogInstance | null, DialogInstance | null>;
|
|
9
9
|
handleClose: import('vue').ComputedRef<(() => void) | undefined>;
|
|
10
10
|
isFullScreen: Ref<boolean, boolean>;
|
|
11
|
+
maxHeight: import('vue').ComputedRef<string | number>;
|
|
11
12
|
iconComponent: import('vue').ComputedRef<string>;
|
|
12
13
|
handleFullScreen: () => void;
|
|
13
14
|
handleClosed: () => void;
|
|
@@ -7,6 +7,10 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
7
7
|
type: BooleanConstructor;
|
|
8
8
|
default: boolean;
|
|
9
9
|
};
|
|
10
|
+
top: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
10
14
|
maxHeight: {
|
|
11
15
|
type: (StringConstructor | NumberConstructor)[];
|
|
12
16
|
default: string;
|
|
@@ -60,6 +64,10 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
60
64
|
type: StringConstructor;
|
|
61
65
|
default: string;
|
|
62
66
|
};
|
|
67
|
+
confirmLoading: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
63
71
|
cancelBtnType: {
|
|
64
72
|
type: StringConstructor;
|
|
65
73
|
default: string;
|
|
@@ -85,6 +93,10 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
85
93
|
type: BooleanConstructor;
|
|
86
94
|
default: boolean;
|
|
87
95
|
};
|
|
96
|
+
top: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
88
100
|
maxHeight: {
|
|
89
101
|
type: (StringConstructor | NumberConstructor)[];
|
|
90
102
|
default: string;
|
|
@@ -138,6 +150,10 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
138
150
|
type: StringConstructor;
|
|
139
151
|
default: string;
|
|
140
152
|
};
|
|
153
|
+
confirmLoading: {
|
|
154
|
+
type: BooleanConstructor;
|
|
155
|
+
default: boolean;
|
|
156
|
+
};
|
|
141
157
|
cancelBtnType: {
|
|
142
158
|
type: StringConstructor;
|
|
143
159
|
default: string;
|
|
@@ -152,6 +168,8 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
152
168
|
default: () => void;
|
|
153
169
|
};
|
|
154
170
|
}>> & Readonly<{}>, {
|
|
171
|
+
top: string;
|
|
172
|
+
onClose: Function;
|
|
155
173
|
title: string;
|
|
156
174
|
appendToBody: boolean;
|
|
157
175
|
maxHeight: string | number;
|
|
@@ -164,9 +182,9 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
164
182
|
showFooterTopBorder: boolean;
|
|
165
183
|
footerPosition: string;
|
|
166
184
|
strictCloseEvent: boolean;
|
|
167
|
-
onClose: Function;
|
|
168
185
|
confirmBtnText: string;
|
|
169
186
|
cancelBtnText: string;
|
|
187
|
+
confirmLoading: boolean;
|
|
170
188
|
cancelBtnType: string;
|
|
171
189
|
onConfirm: Function;
|
|
172
190
|
onCancel: Function;
|
|
@@ -7,6 +7,10 @@ declare const _default: {
|
|
|
7
7
|
type: BooleanConstructor;
|
|
8
8
|
default: boolean;
|
|
9
9
|
};
|
|
10
|
+
top: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
10
14
|
maxHeight: {
|
|
11
15
|
type: (StringConstructor | NumberConstructor)[];
|
|
12
16
|
default: string;
|
|
@@ -60,6 +64,10 @@ declare const _default: {
|
|
|
60
64
|
type: StringConstructor;
|
|
61
65
|
default: string;
|
|
62
66
|
};
|
|
67
|
+
confirmLoading: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
63
71
|
cancelBtnType: {
|
|
64
72
|
type: StringConstructor;
|
|
65
73
|
default: string;
|
|
@@ -48,6 +48,10 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
48
48
|
type: StringConstructor;
|
|
49
49
|
default: string;
|
|
50
50
|
};
|
|
51
|
+
confirmLoading: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
51
55
|
cancelBtnType: {
|
|
52
56
|
type: StringConstructor;
|
|
53
57
|
default: string;
|
|
@@ -114,6 +118,10 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
114
118
|
type: StringConstructor;
|
|
115
119
|
default: string;
|
|
116
120
|
};
|
|
121
|
+
confirmLoading: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
117
125
|
cancelBtnType: {
|
|
118
126
|
type: StringConstructor;
|
|
119
127
|
default: string;
|
|
@@ -129,6 +137,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
129
137
|
};
|
|
130
138
|
}>> & Readonly<{}>, {
|
|
131
139
|
size: string | number;
|
|
140
|
+
onClose: Function;
|
|
132
141
|
title: string;
|
|
133
142
|
appendToBody: boolean;
|
|
134
143
|
closeOnClickModal: boolean;
|
|
@@ -137,9 +146,9 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
137
146
|
showFooter: boolean;
|
|
138
147
|
footerPosition: string;
|
|
139
148
|
strictCloseEvent: boolean;
|
|
140
|
-
onClose: Function;
|
|
141
149
|
confirmBtnText: string;
|
|
142
150
|
cancelBtnText: string;
|
|
151
|
+
confirmLoading: boolean;
|
|
143
152
|
cancelBtnType: string;
|
|
144
153
|
onConfirm: Function;
|
|
145
154
|
onCancel: Function;
|
|
@@ -102,17 +102,17 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
102
102
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
103
103
|
}>, {
|
|
104
104
|
useRender: boolean | import('../../types').RenderConfig;
|
|
105
|
-
width: string;
|
|
106
105
|
unit: string | Record<string, any>;
|
|
107
|
-
|
|
106
|
+
clearable: boolean;
|
|
107
|
+
rows: number;
|
|
108
108
|
resize: string;
|
|
109
109
|
placeholder: string;
|
|
110
|
-
|
|
110
|
+
width: string;
|
|
111
111
|
prefixContent: string | Record<string, any>;
|
|
112
112
|
suffixContent: string | Record<string, any>;
|
|
113
113
|
prependContent: string | Record<string, any>;
|
|
114
114
|
appendContent: string | Record<string, any>;
|
|
115
|
-
|
|
115
|
+
modelValue: string | number;
|
|
116
116
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
117
117
|
declare const _default: typeof __VLS_export;
|
|
118
118
|
export default _default;
|
|
@@ -81,13 +81,13 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
81
81
|
}>, {
|
|
82
82
|
useRender: boolean | import('../../types').RenderConfig;
|
|
83
83
|
dictProps: import('../../types').DictProps;
|
|
84
|
-
width: string;
|
|
85
|
-
modelValue: string | number | boolean | unknown[];
|
|
86
|
-
toJoin: boolean;
|
|
87
|
-
placeholder: string;
|
|
88
84
|
clearable: boolean;
|
|
85
|
+
placeholder: string;
|
|
86
|
+
width: string;
|
|
89
87
|
options: Record<string, any>[];
|
|
90
88
|
useV2: boolean;
|
|
89
|
+
toJoin: boolean;
|
|
90
|
+
modelValue: string | number | boolean | unknown[];
|
|
91
91
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
92
92
|
declare const _default: typeof __VLS_export;
|
|
93
93
|
export default _default;
|
|
@@ -24,14 +24,6 @@ export interface Edit {
|
|
|
24
24
|
component: Component;
|
|
25
25
|
attrs?: EditAttrs;
|
|
26
26
|
}
|
|
27
|
-
export interface TableColumnExtConfig {
|
|
28
|
-
header?: Header;
|
|
29
|
-
edit?: Edit;
|
|
30
|
-
formatter?: Function;
|
|
31
|
-
class?: string | string[];
|
|
32
|
-
style?: string | Record<string, unknown>;
|
|
33
|
-
slot?: boolean | string;
|
|
34
|
-
}
|
|
35
27
|
export interface TableColumn {
|
|
36
28
|
label?: string;
|
|
37
29
|
prop?: string;
|
|
@@ -43,7 +35,14 @@ export interface TableColumn {
|
|
|
43
35
|
fixed?: boolean | string;
|
|
44
36
|
sortable?: boolean;
|
|
45
37
|
showOverflowTooltip?: boolean;
|
|
46
|
-
extConfig?:
|
|
38
|
+
extConfig?: {
|
|
39
|
+
header?: Header;
|
|
40
|
+
edit?: Edit;
|
|
41
|
+
formatter?: Function;
|
|
42
|
+
class?: string | string[];
|
|
43
|
+
style?: string | Record<string, unknown>;
|
|
44
|
+
slot?: boolean | string;
|
|
45
|
+
};
|
|
47
46
|
children?: TableColumn[];
|
|
48
47
|
}
|
|
49
48
|
export interface Selection {
|
|
@@ -94,7 +93,7 @@ export interface ExtConfig {
|
|
|
94
93
|
pagination?: {
|
|
95
94
|
total?: number;
|
|
96
95
|
marginTop?: number;
|
|
97
|
-
position?:
|
|
96
|
+
position?: 'left' | 'center' | 'right';
|
|
98
97
|
pageSizes?: number[];
|
|
99
98
|
background?: boolean;
|
|
100
99
|
layout?: string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
useRender: {
|
|
7
|
+
type: import('vue').PropType<boolean | import('../../types').RenderConfig>;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
+
"update:modelValue": (value: string | number | any[]) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
+
modelValue: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
useRender: {
|
|
18
|
+
type: import('vue').PropType<boolean | import('../../types').RenderConfig>;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: string | number | any[]) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
useRender: boolean | import('../../types').RenderConfig;
|
|
25
|
+
modelValue: string;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { RenderConfig } from '../../types';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
useRender: {
|
|
9
|
+
type: PropType<boolean | RenderConfig>;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -50,9 +50,9 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
50
50
|
};
|
|
51
51
|
}>> & Readonly<{}>, {
|
|
52
52
|
class: string;
|
|
53
|
+
separator: string;
|
|
53
54
|
style: string | Record<string, any>;
|
|
54
55
|
emptyText: string;
|
|
55
|
-
separator: string;
|
|
56
56
|
parseKey: string;
|
|
57
57
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
58
58
|
declare const _default: typeof __VLS_export;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -11,10 +11,10 @@ export { default as UseElInput } from './UseElInput/index.vue';
|
|
|
11
11
|
export { default as UseElSelect } from './UseElSelect/index.vue';
|
|
12
12
|
export { default as UseElSwitch } from './UseElSwitch/index.vue';
|
|
13
13
|
export { default as UseElTable } from './UseElTable/index.vue';
|
|
14
|
+
export { default as UseElTimeSelect } from './UseElTimeSelect/index.vue';
|
|
14
15
|
export { default as UseElTooltip } from './UseElTooltip/index.vue';
|
|
15
16
|
export { default as UseElUpload } from './UseElUpload/index.vue';
|
|
16
17
|
export { default as UseIconfont } from './UseIconfont/index.vue';
|
|
17
18
|
export { default as UseLineTitle } from './UseLineTitle/index.vue';
|
|
18
19
|
export { default as UseRender } from './UseRender/index.vue';
|
|
19
20
|
export { default as UseSvgIcon } from './UseSvgIcon/index.vue';
|
|
20
|
-
export { useCrud } from './UseCrud/useCrudWithBusiness';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wyfex/ivue",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "万有前端 X 体系下基于 Vite8 + Vue3 + Typescript6 + ElementPlus2
|
|
3
|
+
"version": "0.20.0",
|
|
4
|
+
"description": "万有前端 X 体系下基于 Vite8 + Vue3 + Typescript6 + ElementPlus2 构建的高性能组件库",
|
|
5
5
|
"homepage": "https://wyfex.top/idocs/ivue",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.umd.cjs",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"wyfex",
|
|
38
38
|
"ivue",
|
|
39
39
|
"wyfex-ivue",
|
|
40
|
-
"万有前端",
|
|
40
|
+
"万有前端 X",
|
|
41
41
|
"万有前端 X ·iVue"
|
|
42
42
|
],
|
|
43
43
|
"author": "Symbol(王独秀) <963569210@qq.com>",
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
"element-plus": "^2.14.3",
|
|
59
59
|
"sass-embedded": "^1.100.0",
|
|
60
60
|
"typescript": "~6.0.3",
|
|
61
|
-
"unplugin-auto-import": "^21.
|
|
61
|
+
"unplugin-auto-import": "^21.1.0",
|
|
62
62
|
"unplugin-dts": "^1.0.3",
|
|
63
63
|
"unplugin-vue-components": "^32.1.0",
|
|
64
|
-
"vite": "^8.1
|
|
64
|
+
"vite": "^8.2.1",
|
|
65
65
|
"vite-svg-loader": "^5.1.1",
|
|
66
|
-
"vue": "^3.5.
|
|
67
|
-
"vue-tsc": "^3.3.
|
|
66
|
+
"vue": "^3.5.41",
|
|
67
|
+
"vue-tsc": "^3.3.9"
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
/**
|
|
9
9
|
* 配置 必传
|
|
10
10
|
* 1、该configs是【formColumns】和【tableColumns】的统一配置入口
|
|
11
|
-
* 2、该configs在【formColumns】和【tableColumns】的配置基础上新增了【onlySearch】和【tableOrder】配置项用于兼容特殊应用场景
|
|
11
|
+
* 2、该configs在【formColumns】和【tableColumns】的配置基础上新增了【queryLabel】、【onlySearch】和【tableOrder】配置项用于兼容特殊应用场景
|
|
12
12
|
*/
|
|
13
13
|
configs: {
|
|
14
14
|
type: Array as PropType<Configs[]>,
|