@wyfex/ivue 0.19.1 → 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/UseElConfigProvider/index.vue.d.ts +0 -9
- package/dist/types/UseElConfigProvider/props.d.ts +0 -5
- package/dist/types/UseElConfigProvider/types.d.ts +2 -1
- 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/components/controls/Select.vue.d.ts +2 -4
- package/dist/types/UseElForm/types.d.ts +21 -21
- package/dist/types/UseElInput/index.vue.d.ts +1 -1
- package/dist/types/UseElSelect/hook.d.ts +1 -0
- 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/UseElUpload/index.vue.d.ts +3 -3
- package/dist/types/UseElUpload/props.d.ts +2 -1
- package/dist/types/UseRender/index.vue.d.ts +1 -1
- package/package.json +5 -5
- 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/UseElConfigProvider/props.ts +1 -9
- package/src/components/UseElConfigProvider/types.ts +5 -1
- package/src/components/UseElForm/types.ts +166 -54
- package/src/components/UseElTable/defaultExtConfig.ts +1 -1
- package/src/components/UseElTable/props.ts +16 -2
- package/src/components/UseElTable/types.ts +8 -1
- package/src/components/UseElUpload/props.ts +2 -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
|
+
};
|
|
@@ -8,10 +8,6 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
8
8
|
default: string;
|
|
9
9
|
validator: (val: string) => boolean;
|
|
10
10
|
};
|
|
11
|
-
uploadConfig: {
|
|
12
|
-
type: import('vue').PropType<import('../../types').UploadConfig>;
|
|
13
|
-
default: () => {};
|
|
14
|
-
};
|
|
15
11
|
extConfig: {
|
|
16
12
|
type: import('vue').PropType<import('./types').ExtConfig>;
|
|
17
13
|
default: () => {};
|
|
@@ -22,10 +18,6 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
22
18
|
default: string;
|
|
23
19
|
validator: (val: string) => boolean;
|
|
24
20
|
};
|
|
25
|
-
uploadConfig: {
|
|
26
|
-
type: import('vue').PropType<import('../../types').UploadConfig>;
|
|
27
|
-
default: () => {};
|
|
28
|
-
};
|
|
29
21
|
extConfig: {
|
|
30
22
|
type: import('vue').PropType<import('./types').ExtConfig>;
|
|
31
23
|
default: () => {};
|
|
@@ -33,7 +25,6 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
33
25
|
}>> & Readonly<{}>, {
|
|
34
26
|
extConfig: import('./types').ExtConfig;
|
|
35
27
|
language: string;
|
|
36
|
-
uploadConfig: import('../../types').UploadConfig;
|
|
37
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
38
29
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
30
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { UploadConfig } from '../../types';
|
|
3
2
|
import { ExtConfig } from './types';
|
|
4
3
|
declare const _default: {
|
|
5
4
|
language: {
|
|
@@ -7,10 +6,6 @@ declare const _default: {
|
|
|
7
6
|
default: string;
|
|
8
7
|
validator: (val: string) => boolean;
|
|
9
8
|
};
|
|
10
|
-
uploadConfig: {
|
|
11
|
-
type: PropType<UploadConfig>;
|
|
12
|
-
default: () => {};
|
|
13
|
-
};
|
|
14
9
|
extConfig: {
|
|
15
10
|
type: PropType<ExtConfig>;
|
|
16
11
|
default: () => {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { default as componentProps } from './props';
|
|
3
|
-
import { DictProps } from '../../types';
|
|
3
|
+
import { DictProps, UploadConfig } from '../../types';
|
|
4
4
|
export type Props = ExtractPropTypes<typeof componentProps>;
|
|
5
5
|
export interface ExtConfig {
|
|
6
6
|
dictProps?: DictProps;
|
|
@@ -10,4 +10,5 @@ export interface ExtConfig {
|
|
|
10
10
|
pageBottomOffset?: number;
|
|
11
11
|
modalBottomOffset?: number;
|
|
12
12
|
};
|
|
13
|
+
upload?: UploadConfig;
|
|
13
14
|
}
|
|
@@ -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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormColumn } from '../../types';
|
|
2
2
|
import { DictMap, GlobalConfig } from '../../../../types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
-
modelValue: string | number | boolean | string[] | number[];
|
|
4
|
+
modelValue: string | number | boolean | string[] | number[] | undefined;
|
|
5
5
|
item: FormColumn;
|
|
6
6
|
globalConfig: GlobalConfig;
|
|
7
7
|
dictMap: DictMap;
|
|
@@ -11,8 +11,6 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
11
11
|
"update:modelValue": (value: string | number | boolean | string[] | number[]) => any;
|
|
12
12
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
13
|
"onUpdate:modelValue"?: ((value: string | number | boolean | string[] | number[]) => any) | undefined;
|
|
14
|
-
}>, {
|
|
15
|
-
modelValue: string | number | boolean | string[] | number[];
|
|
16
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
15
|
declare const _default: typeof __VLS_export;
|
|
18
16
|
export default _default;
|
|
@@ -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,12 +62,13 @@ 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;
|
|
71
|
+
filterable?: boolean;
|
|
72
72
|
placeholder?: string;
|
|
73
73
|
options?: Array<{
|
|
74
74
|
label: string;
|
|
@@ -82,10 +82,10 @@ export interface SelectConfig {
|
|
|
82
82
|
reverse?: boolean;
|
|
83
83
|
toJoin?: boolean;
|
|
84
84
|
width?: string;
|
|
85
|
-
onChange?:
|
|
85
|
+
onChange?: Function;
|
|
86
86
|
}
|
|
87
87
|
export interface CascaderConfig {
|
|
88
|
-
useRender
|
|
88
|
+
useRender?: boolean | RenderConfig;
|
|
89
89
|
clearable?: boolean;
|
|
90
90
|
options?: Array<{
|
|
91
91
|
label: string;
|
|
@@ -96,10 +96,10 @@ export interface CascaderConfig {
|
|
|
96
96
|
label?: string;
|
|
97
97
|
};
|
|
98
98
|
width?: string;
|
|
99
|
-
onChange?:
|
|
99
|
+
onChange?: Function;
|
|
100
100
|
}
|
|
101
101
|
export interface DatePickerConfig {
|
|
102
|
-
useRender
|
|
102
|
+
useRender?: boolean | RenderConfig;
|
|
103
103
|
type?: 'year' | 'years' | 'month' | 'months' | 'date' | 'dates' | 'datetime' | 'week' | 'datetimerange' | 'daterange' | 'monthrange' | 'yearrange';
|
|
104
104
|
clearable?: boolean;
|
|
105
105
|
disabledDate?: Function;
|
|
@@ -115,7 +115,7 @@ export interface DatePickerConfig {
|
|
|
115
115
|
onChange?: Function;
|
|
116
116
|
}
|
|
117
117
|
export interface TimePickerConfig {
|
|
118
|
-
useRender
|
|
118
|
+
useRender?: boolean | RenderConfig;
|
|
119
119
|
startPlaceholder?: string;
|
|
120
120
|
endPlaceholder?: string;
|
|
121
121
|
rangeSeparator?: string;
|
|
@@ -123,18 +123,18 @@ export interface TimePickerConfig {
|
|
|
123
123
|
editable?: boolean;
|
|
124
124
|
format?: string;
|
|
125
125
|
valueFormat?: string;
|
|
126
|
-
onChange?:
|
|
126
|
+
onChange?: Function;
|
|
127
127
|
}
|
|
128
128
|
export interface TimeSelectConfig {
|
|
129
|
-
useRender
|
|
129
|
+
useRender?: boolean | RenderConfig;
|
|
130
130
|
startProp: string;
|
|
131
131
|
endProp: string;
|
|
132
132
|
}
|
|
133
133
|
export interface SwitchConfig {
|
|
134
|
-
useRender
|
|
134
|
+
useRender?: boolean | RenderConfig;
|
|
135
135
|
activeValue?: string | number | boolean;
|
|
136
136
|
inactiveValue?: string | number | boolean;
|
|
137
|
-
onChange?:
|
|
137
|
+
onChange?: Function;
|
|
138
138
|
}
|
|
139
139
|
export interface InputRangeConfig {
|
|
140
140
|
startProp: string;
|
|
@@ -142,7 +142,7 @@ export interface InputRangeConfig {
|
|
|
142
142
|
startPlaceholder?: string;
|
|
143
143
|
endPlaceholder?: string;
|
|
144
144
|
rangeSeparator?: string;
|
|
145
|
-
onClear?:
|
|
145
|
+
onClear?: Function;
|
|
146
146
|
}
|
|
147
147
|
export interface TreeSelectConfig {
|
|
148
148
|
useRender?: boolean | RenderConfig;
|
|
@@ -168,7 +168,7 @@ export interface FormColumn {
|
|
|
168
168
|
label?: string;
|
|
169
169
|
prop: string;
|
|
170
170
|
queryProp?: string | string[];
|
|
171
|
-
required
|
|
171
|
+
required?: boolean | IRequired;
|
|
172
172
|
errorMessage?: string;
|
|
173
173
|
disabled?: boolean;
|
|
174
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>;
|
|
@@ -9,6 +9,7 @@ export declare const useElSelect: ({ props, emits, globalConfig }: {
|
|
|
9
9
|
optionsComputed: ComputedRef<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
}[]>;
|
|
12
|
+
defaultProps: ComputedRef<import('../../types').DictProps>;
|
|
12
13
|
modelValue: ComputedRef<string | string[]>;
|
|
13
14
|
contentComputed: ComputedRef<{}>;
|
|
14
15
|
handleSelectChange: (e: string | number | (string | number)[]) => void;
|
|
@@ -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;
|
|
@@ -8,7 +8,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
10
|
uploadConfig: {
|
|
11
|
-
type: import('vue').PropType<
|
|
11
|
+
type: import('vue').PropType<import('../../types').UploadConfig>;
|
|
12
12
|
default: () => {};
|
|
13
13
|
};
|
|
14
14
|
uploadType: {
|
|
@@ -52,7 +52,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
52
52
|
default: string;
|
|
53
53
|
};
|
|
54
54
|
uploadConfig: {
|
|
55
|
-
type: import('vue').PropType<
|
|
55
|
+
type: import('vue').PropType<import('../../types').UploadConfig>;
|
|
56
56
|
default: () => {};
|
|
57
57
|
};
|
|
58
58
|
uploadType: {
|
|
@@ -88,9 +88,9 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
88
88
|
"onUpdate:linkUrl"?: ((url: string) => any) | undefined;
|
|
89
89
|
}>, {
|
|
90
90
|
disabled: boolean;
|
|
91
|
-
uploadConfig: Record<string, unknown>;
|
|
92
91
|
fileId: string;
|
|
93
92
|
linkUrl: string;
|
|
93
|
+
uploadConfig: import('../../types').UploadConfig;
|
|
94
94
|
uploadType: string;
|
|
95
95
|
uploadTip: string;
|
|
96
96
|
uploadList: Record<string, unknown>[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { UploadConfig } from '../../types';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
fileId: {
|
|
4
5
|
type: StringConstructor;
|
|
@@ -9,7 +10,7 @@ declare const _default: {
|
|
|
9
10
|
default: string;
|
|
10
11
|
};
|
|
11
12
|
uploadConfig: {
|
|
12
|
-
type: PropType<
|
|
13
|
+
type: PropType<UploadConfig>;
|
|
13
14
|
default: () => {};
|
|
14
15
|
};
|
|
15
16
|
uploadType: {
|
|
@@ -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",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"vue": ">=3.2.0 <4.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@types/node": "^26.1.
|
|
53
|
+
"@types/node": "^26.1.1",
|
|
54
54
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
55
55
|
"@vue/tsconfig": "^0.9.1",
|
|
56
|
-
"@wyfex/iutils": "^0.
|
|
56
|
+
"@wyfex/iutils": "^0.45.0",
|
|
57
57
|
"dayjs": "^1.11.21",
|
|
58
58
|
"element-plus": "^2.14.2",
|
|
59
59
|
"sass-embedded": "^1.100.0",
|
|
@@ -61,9 +61,9 @@
|
|
|
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
|
-
"vue-tsc": "^3.3.
|
|
67
|
+
"vue-tsc": "^3.3.7"
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -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>,
|