@wyfex/ivue 0.21.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.umd.cjs +10 -10
- package/dist/ivue.css +1 -1
- package/dist/types/UseCrud/hook.d.ts +2 -3
- package/dist/types/UseElDescriptions/hook.d.ts +2 -6
- package/dist/types/UseElDescriptions/types.d.ts +2 -2
- package/dist/types/UseElForm/components/QueryForm.vue.d.ts +2 -6
- package/dist/types/UseElForm/components/RowForm.vue.d.ts +2 -6
- package/dist/types/UseElForm/hooks/useElForm.d.ts +2 -6
- package/dist/types/UseElForm/index.vue.d.ts +20 -16
- package/dist/types/UseElForm/types.d.ts +6 -0
- package/dist/types/UseElInput/types.d.ts +2 -2
- package/dist/types/UseElSelect/types.d.ts +2 -2
- package/dist/types/UseElTable/hooks/useElTable.d.ts +2 -3
- package/dist/types/UseElUpload/types.d.ts +2 -2
- package/package.json +5 -5
- package/src/components/UseElDescriptions/props.ts +1 -1
- package/src/components/UseElDescriptions/types.ts +2 -2
- package/src/components/UseElDialog/props.ts +1 -1
- package/src/components/UseElDrawer/props.ts +1 -1
- package/src/components/UseElForm/props.ts +1 -1
- package/src/components/UseElForm/types.ts +48 -114
- package/src/components/UseElInput/types.ts +3 -5
- package/src/components/UseElSelect/types.ts +4 -8
- package/src/components/UseElTable/props.ts +1 -1
- package/src/components/UseElUpload/types.ts +2 -2
- package/src/components/UseLineTitle/defaultExtConfig.ts +3 -15
- package/src/components/UseLineTitle/types.ts +2 -0
- package/src/types/index.ts +38 -115
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ComputedRef, Slots } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { Props, UseCrudReturn } from './types';
|
|
3
3
|
import { GlobalConfig } from '../../types';
|
|
4
|
-
export declare const useCrud: ({ mergedProps, globalConfig, slots, uefRef, modalRef
|
|
4
|
+
export declare const useCrud: ({ mergedProps, globalConfig, slots, uefRef, modalRef }: {
|
|
5
5
|
mergedProps: ComputedRef<Props>;
|
|
6
6
|
globalConfig: ComputedRef<GlobalConfig>;
|
|
7
7
|
slots: Slots;
|
|
8
8
|
uefRef: any;
|
|
9
9
|
modalRef: any;
|
|
10
|
-
emits: Emits;
|
|
11
10
|
}) => UseCrudReturn;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import { ConfigColumn,
|
|
2
|
+
import { ConfigColumn, Props } from './types';
|
|
3
3
|
import { GlobalConfig, RenderConfig } from '../../types';
|
|
4
|
-
export declare const useElDescriptions: (
|
|
5
|
-
props: Props;
|
|
6
|
-
emits: Emits;
|
|
7
|
-
globalConfig: ComputedRef<GlobalConfig>;
|
|
8
|
-
}) => {
|
|
4
|
+
export declare const useElDescriptions: (props: Props, globalConfig: ComputedRef<GlobalConfig>) => {
|
|
9
5
|
processRenderContent: (item: ConfigColumn) => any;
|
|
10
6
|
processRenderStyle: (renderConfig: RenderConfig | boolean, item: ConfigColumn) => any;
|
|
11
7
|
processPlaceholder: (item: ConfigColumn) => string;
|
|
@@ -2,9 +2,9 @@ import { Component, ExtractPropTypes } from 'vue';
|
|
|
2
2
|
import { EditAttrs, RenderConfig, UseDict } from '../../types';
|
|
3
3
|
import { default as componentProps } from './props';
|
|
4
4
|
export type Props = ExtractPropTypes<typeof componentProps>;
|
|
5
|
-
export
|
|
5
|
+
export type Emits = {
|
|
6
6
|
(e: 'onDictKeys', value?: string[]): void;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
8
|
export interface ComponentConfig {
|
|
9
9
|
is: Component;
|
|
10
10
|
attrs?: EditAttrs;
|
|
@@ -56,9 +56,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
56
56
|
}>, {
|
|
57
57
|
showQueryForm: import('vue').Ref<boolean, boolean>;
|
|
58
58
|
handleDisplayQueryForm: () => void;
|
|
59
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
60
|
-
onDictKeys: (value?: string[] | undefined) => any;
|
|
61
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
59
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
62
60
|
formColumns: {
|
|
63
61
|
type: import('vue').PropType<import('../types').FormColumn[]>;
|
|
64
62
|
required: boolean;
|
|
@@ -113,9 +111,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
113
111
|
type: import('vue').PropType<import('../types').QueryConfig>;
|
|
114
112
|
default: () => {};
|
|
115
113
|
};
|
|
116
|
-
}>> & Readonly<{
|
|
117
|
-
onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
|
|
118
|
-
}>, {
|
|
114
|
+
}>> & Readonly<{}>, {
|
|
119
115
|
useRender: boolean | import('../../../types').RenderConfig;
|
|
120
116
|
dictMap: import('../../../types').DictMap;
|
|
121
117
|
dictProps: import('../../../types').DictProps;
|
|
@@ -55,9 +55,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
55
55
|
};
|
|
56
56
|
}>, {
|
|
57
57
|
efRef: import('vue').Ref<null, null>;
|
|
58
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
59
|
-
onDictKeys: (value?: string[] | undefined) => any;
|
|
60
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
58
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
61
59
|
formColumns: {
|
|
62
60
|
type: import('vue').PropType<import('../types').FormColumn[]>;
|
|
63
61
|
required: boolean;
|
|
@@ -112,9 +110,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
112
110
|
type: import('vue').PropType<import('../types').QueryConfig>;
|
|
113
111
|
default: () => {};
|
|
114
112
|
};
|
|
115
|
-
}>> & Readonly<{
|
|
116
|
-
onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
|
|
117
|
-
}>, {
|
|
113
|
+
}>> & Readonly<{}>, {
|
|
118
114
|
useRender: boolean | import('../../../types').RenderConfig;
|
|
119
115
|
dictMap: import('../../../types').DictMap;
|
|
120
116
|
dictProps: import('../../../types').DictProps;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { FormColumn, Props } from '../types';
|
|
3
3
|
import { GlobalConfig } from '../../../types';
|
|
4
|
-
export declare const useElForm: (
|
|
5
|
-
props: Props;
|
|
6
|
-
emits: Emits;
|
|
7
|
-
globalConfig: ComputedRef<GlobalConfig>;
|
|
8
|
-
}) => {
|
|
4
|
+
export declare const useElForm: (props: Props, globalConfig: ComputedRef<GlobalConfig>) => {
|
|
9
5
|
formColumnsComputed: ComputedRef<FormColumn[]>;
|
|
10
6
|
formRules: ComputedRef<Record<string, any>>;
|
|
11
7
|
resolveQueryParams: (formColumns: FormColumn[], formModel: Record<string, any>) => Record<string, any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
formColumns: {
|
|
3
|
-
type: import('vue').PropType<import('./types').FormColumn[]>;
|
|
3
|
+
type: import('vue').PropType<import('./types.ts').FormColumn[]>;
|
|
4
4
|
required: boolean;
|
|
5
5
|
};
|
|
6
6
|
formModel: {
|
|
@@ -8,15 +8,15 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
8
8
|
required: boolean;
|
|
9
9
|
};
|
|
10
10
|
useRender: {
|
|
11
|
-
type: import('vue').PropType<boolean | import('../../types').RenderConfig>;
|
|
11
|
+
type: import('vue').PropType<boolean | import('../../types/index.ts').RenderConfig>;
|
|
12
12
|
default: boolean;
|
|
13
13
|
};
|
|
14
14
|
dictMap: {
|
|
15
|
-
type: import('vue').PropType<import('../../types').DictMap>;
|
|
15
|
+
type: import('vue').PropType<import('../../types/index.ts').DictMap>;
|
|
16
16
|
default: () => {};
|
|
17
17
|
};
|
|
18
18
|
dictProps: {
|
|
19
|
-
type: import('vue').PropType<import('../../types').DictProps>;
|
|
19
|
+
type: import('vue').PropType<import('../../types/index.ts').DictProps>;
|
|
20
20
|
default: () => {};
|
|
21
21
|
};
|
|
22
22
|
formItemWidth: {
|
|
@@ -50,7 +50,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
50
50
|
default: boolean;
|
|
51
51
|
};
|
|
52
52
|
queryConfig: {
|
|
53
|
-
type: import('vue').PropType<import('./types').QueryConfig>;
|
|
53
|
+
type: import('vue').PropType<import('./types.ts').QueryConfig>;
|
|
54
54
|
default: () => {};
|
|
55
55
|
};
|
|
56
56
|
}>, {
|
|
@@ -61,9 +61,11 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
61
61
|
handleDisplayQueryForm: import('vue').ComputedRef<Function | undefined>;
|
|
62
62
|
processApiData: (apiData: Record<string, any>) => Record<string, any>;
|
|
63
63
|
getProcessedFormModel: () => Record<string, any>;
|
|
64
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
64
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
65
|
+
onDictKeys: (value?: string[] | undefined) => any;
|
|
66
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
65
67
|
formColumns: {
|
|
66
|
-
type: import('vue').PropType<import('./types').FormColumn[]>;
|
|
68
|
+
type: import('vue').PropType<import('./types.ts').FormColumn[]>;
|
|
67
69
|
required: boolean;
|
|
68
70
|
};
|
|
69
71
|
formModel: {
|
|
@@ -71,15 +73,15 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
71
73
|
required: boolean;
|
|
72
74
|
};
|
|
73
75
|
useRender: {
|
|
74
|
-
type: import('vue').PropType<boolean | import('../../types').RenderConfig>;
|
|
76
|
+
type: import('vue').PropType<boolean | import('../../types/index.ts').RenderConfig>;
|
|
75
77
|
default: boolean;
|
|
76
78
|
};
|
|
77
79
|
dictMap: {
|
|
78
|
-
type: import('vue').PropType<import('../../types').DictMap>;
|
|
80
|
+
type: import('vue').PropType<import('../../types/index.ts').DictMap>;
|
|
79
81
|
default: () => {};
|
|
80
82
|
};
|
|
81
83
|
dictProps: {
|
|
82
|
-
type: import('vue').PropType<import('../../types').DictProps>;
|
|
84
|
+
type: import('vue').PropType<import('../../types/index.ts').DictProps>;
|
|
83
85
|
default: () => {};
|
|
84
86
|
};
|
|
85
87
|
formItemWidth: {
|
|
@@ -113,13 +115,15 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
113
115
|
default: boolean;
|
|
114
116
|
};
|
|
115
117
|
queryConfig: {
|
|
116
|
-
type: import('vue').PropType<import('./types').QueryConfig>;
|
|
118
|
+
type: import('vue').PropType<import('./types.ts').QueryConfig>;
|
|
117
119
|
default: () => {};
|
|
118
120
|
};
|
|
119
|
-
}>> & Readonly<{
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
}>> & Readonly<{
|
|
122
|
+
onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
|
|
123
|
+
}>, {
|
|
124
|
+
useRender: boolean | import('../../types/index.ts').RenderConfig;
|
|
125
|
+
dictMap: import('../../types/index.ts').DictMap;
|
|
126
|
+
dictProps: import('../../types/index.ts').DictProps;
|
|
123
127
|
formItemWidth: string;
|
|
124
128
|
labelSuffix: string;
|
|
125
129
|
labelWidth: string;
|
|
@@ -127,7 +131,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
127
131
|
rowGutter: number;
|
|
128
132
|
colSpan: number;
|
|
129
133
|
disabled: boolean;
|
|
130
|
-
queryConfig: import('./types').QueryConfig;
|
|
134
|
+
queryConfig: import('./types.ts').QueryConfig;
|
|
131
135
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
132
136
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
133
137
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { FormInstance } from 'element-plus';
|
|
2
3
|
import { default as componentProps } from './props';
|
|
3
4
|
import { RenderConfig, UseDict } from '../../types';
|
|
4
5
|
export type Props = ExtractPropTypes<typeof componentProps>;
|
|
@@ -191,3 +192,8 @@ export interface FormColumn {
|
|
|
191
192
|
switchConfig?: SwitchConfig;
|
|
192
193
|
inputRangeConfig?: InputRangeConfig;
|
|
193
194
|
}
|
|
195
|
+
export interface FormComponentInstance {
|
|
196
|
+
efRef: FormInstance;
|
|
197
|
+
showQueryForm: boolean;
|
|
198
|
+
handleDisplayQueryForm: Function;
|
|
199
|
+
}
|
|
@@ -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): void;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
(e: 'update:label', label: string | string[]): void;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Attrs, ComputedRef } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { Props, TableColumn } from '../types';
|
|
3
3
|
import { GlobalConfig } from '../../../types';
|
|
4
|
-
export declare const useElTable: ({ mergedProps,
|
|
4
|
+
export declare const useElTable: ({ mergedProps, attrs, globalConfig }: {
|
|
5
5
|
mergedProps: ComputedRef<Props>;
|
|
6
|
-
emits: Emits;
|
|
7
6
|
attrs: Attrs;
|
|
8
7
|
globalConfig: ComputedRef<GlobalConfig>;
|
|
9
8
|
}) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
'update:fileId': [value: string | number];
|
|
6
6
|
'update:linkUrl': [url: string];
|
|
7
7
|
onFileObj: [file: Record<string, any>];
|
|
8
8
|
onError: [error: Error | string];
|
|
9
|
-
}
|
|
9
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wyfex/ivue",
|
|
3
|
-
"version": "0.21.
|
|
4
|
-
"description": "万有前端 X 体系下基于 Vite8 + Vue3 + Typescript6 + ElementPlus2
|
|
3
|
+
"version": "0.21.1",
|
|
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",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"vue": ">=3.2.0 <4.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@types/node": "^26.
|
|
53
|
+
"@types/node": "^26.4.0",
|
|
54
54
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
55
55
|
"@vue/tsconfig": "^0.9.1",
|
|
56
56
|
"@wyfex/iutils": "^0.80.0",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"unplugin-dts": "^1.0.3",
|
|
63
63
|
"unplugin-vue-components": "^32.1.0",
|
|
64
64
|
"vite": "^8.2.2",
|
|
65
|
-
"vite-svg-loader": "^5.1.
|
|
66
|
-
"vue": "^3.5.
|
|
65
|
+
"vite-svg-loader": "^5.1.2",
|
|
66
|
+
"vue": "^3.5.42",
|
|
67
67
|
"vue-tsc": "^3.3.11"
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -29,7 +29,7 @@ export default {
|
|
|
29
29
|
default: false
|
|
30
30
|
},
|
|
31
31
|
/**
|
|
32
|
-
* 字典映射 数据结构为{ configs[][label | useDict | useDict.
|
|
32
|
+
* 字典映射 数据结构为{ configs[][label | useDict | useDict.key]: Array<{ label: string, value: any }> }
|
|
33
33
|
*/
|
|
34
34
|
dictMap: {
|
|
35
35
|
type: Object as PropType<DictMap>,
|
|
@@ -8,9 +8,9 @@ import componentProps from './props'
|
|
|
8
8
|
export type Props = ExtractPropTypes<typeof componentProps>
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* emits
|
|
11
|
+
* emits类型
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export type Emits = {
|
|
14
14
|
// dictKeys事件
|
|
15
15
|
(e: 'onDictKeys', value?: string[]): void
|
|
16
16
|
}
|
|
@@ -28,7 +28,7 @@ export default {
|
|
|
28
28
|
default: false
|
|
29
29
|
},
|
|
30
30
|
/**
|
|
31
|
-
* 字典映射 数据结构为{ formColumns[][label | useDict | useDict.
|
|
31
|
+
* 字典映射 数据结构为{ formColumns[][label | useDict | useDict.key]: Array<{ label: string, value: any }> }
|
|
32
32
|
*/
|
|
33
33
|
dictMap: {
|
|
34
34
|
type: Object as PropType<DictMap>,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue'
|
|
2
|
+
import type { FormInstance } from 'element-plus'
|
|
2
3
|
import componentProps from './props'
|
|
3
4
|
import type { RenderConfig, UseDict } from '@/types'
|
|
4
5
|
|
|
@@ -74,45 +75,25 @@ export interface InputConfig {
|
|
|
74
75
|
resize?: string
|
|
75
76
|
showPassword?: boolean
|
|
76
77
|
placeholder?: string
|
|
77
|
-
/**
|
|
78
|
-
* 默认el-input的width为100% 可设置width为''或具体宽度值,为''则使用默认的el-input宽度
|
|
79
|
-
*/
|
|
78
|
+
/** 默认el-input的width为100% 可设置width为''或具体宽度值,为''则使用默认的el-input宽度 */
|
|
80
79
|
width?: string
|
|
81
|
-
/**
|
|
82
|
-
* 为true则对el-input使用v-focus聚焦指令
|
|
83
|
-
*/
|
|
80
|
+
/** 为true则对el-input使用v-focus聚焦指令 */
|
|
84
81
|
autoFocus?: boolean
|
|
85
|
-
/**
|
|
86
|
-
* el-input头部插槽内容
|
|
87
|
-
*/
|
|
82
|
+
/** el-input头部插槽内容 */
|
|
88
83
|
prefixContent?: string | object
|
|
89
|
-
/**
|
|
90
|
-
* el-input尾部插槽内容
|
|
91
|
-
*/
|
|
84
|
+
/** el-input尾部插槽内容 */
|
|
92
85
|
suffixContent?: string | object
|
|
93
|
-
/**
|
|
94
|
-
* el-input前置插槽内容
|
|
95
|
-
*/
|
|
86
|
+
/** el-input前置插槽内容 */
|
|
96
87
|
prependContent?: string | object
|
|
97
|
-
/**
|
|
98
|
-
* el-input后置插槽内容
|
|
99
|
-
*/
|
|
88
|
+
/** el-input后置插槽内容 */
|
|
100
89
|
appendContent?: string | object
|
|
101
|
-
/**
|
|
102
|
-
* 在el-input右外部显示单位
|
|
103
|
-
*/
|
|
90
|
+
/** 在el-input右外部显示单位 */
|
|
104
91
|
unit?: string | object
|
|
105
|
-
/**
|
|
106
|
-
* el-input的clear事件
|
|
107
|
-
*/
|
|
92
|
+
/** el-input的clear事件 */
|
|
108
93
|
onClear?: Function
|
|
109
|
-
/**
|
|
110
|
-
* el-input的input事件
|
|
111
|
-
*/
|
|
94
|
+
/** el-input的input事件 */
|
|
112
95
|
inputEvent?: Function
|
|
113
|
-
/**
|
|
114
|
-
* el-input的keyup.enter事件
|
|
115
|
-
*/
|
|
96
|
+
/** el-input的keyup.enter事件 */
|
|
116
97
|
onKeyupEnter?: Function
|
|
117
98
|
}
|
|
118
99
|
|
|
@@ -127,9 +108,7 @@ export interface InputNumberConfig {
|
|
|
127
108
|
precision?: number
|
|
128
109
|
placeholder?: string
|
|
129
110
|
disabledScientific?: boolean
|
|
130
|
-
/**
|
|
131
|
-
* 在el-input-number右外部显示单位
|
|
132
|
-
*/
|
|
111
|
+
/** 在el-input-number右外部显示单位 */
|
|
133
112
|
unit?: string | object
|
|
134
113
|
}
|
|
135
114
|
|
|
@@ -138,21 +117,13 @@ export interface InputNumberConfig {
|
|
|
138
117
|
*/
|
|
139
118
|
export interface RadioConfig {
|
|
140
119
|
useRender?: boolean | RenderConfig
|
|
141
|
-
/**
|
|
142
|
-
* el-radio的选项集
|
|
143
|
-
*/
|
|
120
|
+
/** el-radio的选项集 */
|
|
144
121
|
options?: Array<{ label: string; value: string | number }>
|
|
145
|
-
/**
|
|
146
|
-
* el-radio的props配置项
|
|
147
|
-
*/
|
|
122
|
+
/** el-radio的props配置项 */
|
|
148
123
|
props?: { value: string; label?: string }
|
|
149
|
-
/**
|
|
150
|
-
* 是否反转单选框和标签的位置
|
|
151
|
-
*/
|
|
124
|
+
/** 是否反转单选框和标签的位置 */
|
|
152
125
|
reverse?: boolean
|
|
153
|
-
/**
|
|
154
|
-
* el-radio的change事件
|
|
155
|
-
*/
|
|
126
|
+
/** el-radio的change事件 */
|
|
156
127
|
onChange?: Function
|
|
157
128
|
}
|
|
158
129
|
|
|
@@ -167,25 +138,15 @@ export interface SelectConfig {
|
|
|
167
138
|
placeholder?: string
|
|
168
139
|
options?: Array<{ label: string; value: string | number }>
|
|
169
140
|
props?: { value: string; label?: string }
|
|
170
|
-
/**
|
|
171
|
-
* 是否使用v2版本
|
|
172
|
-
*/
|
|
141
|
+
/** 是否使用v2版本 */
|
|
173
142
|
useV2: boolean
|
|
174
|
-
/**
|
|
175
|
-
* 是否反转
|
|
176
|
-
*/
|
|
143
|
+
/** 是否反转 */
|
|
177
144
|
reverse?: boolean
|
|
178
|
-
/**
|
|
179
|
-
* 是否将值为数组转为以逗号分隔的字符串
|
|
180
|
-
*/
|
|
145
|
+
/** 是否将值为数组转为以逗号分隔的字符串 */
|
|
181
146
|
toJoin?: boolean
|
|
182
|
-
/**
|
|
183
|
-
* 默认el-select的width为100% 可设置width为''或具体宽度值,为''则使用默认的el-select宽度
|
|
184
|
-
*/
|
|
147
|
+
/** 默认el-select的width为100% 可设置width为''或具体宽度值,为''则使用默认的el-select宽度 */
|
|
185
148
|
width?: string
|
|
186
|
-
/**
|
|
187
|
-
* el-select的change事件
|
|
188
|
-
*/
|
|
149
|
+
/** el-select的change事件 */
|
|
189
150
|
onChange?: Function
|
|
190
151
|
}
|
|
191
152
|
|
|
@@ -195,21 +156,13 @@ export interface SelectConfig {
|
|
|
195
156
|
export interface CascaderConfig {
|
|
196
157
|
useRender?: boolean | RenderConfig
|
|
197
158
|
clearable?: boolean
|
|
198
|
-
/**
|
|
199
|
-
* el-cascader的选项集
|
|
200
|
-
*/
|
|
159
|
+
/** el-cascader的选项集 */
|
|
201
160
|
options?: Array<{ label: string; value: string | number }>
|
|
202
|
-
/**
|
|
203
|
-
* el-cascader的props配置项
|
|
204
|
-
*/
|
|
161
|
+
/** el-cascader的props配置项 */
|
|
205
162
|
props?: { value: string; label?: string }
|
|
206
|
-
/**
|
|
207
|
-
* 默认el-cascader的width为100% 可设置width为''或具体宽度值,为''则使用默认的el-cascader宽度
|
|
208
|
-
*/
|
|
163
|
+
/** 默认el-cascader的width为100% 可设置width为''或具体宽度值,为''则使用默认的el-cascader宽度 */
|
|
209
164
|
width?: string
|
|
210
|
-
/**
|
|
211
|
-
* el-select的change事件
|
|
212
|
-
*/
|
|
165
|
+
/** el-select的change事件 */
|
|
213
166
|
onChange?: Function
|
|
214
167
|
}
|
|
215
168
|
|
|
@@ -239,21 +192,13 @@ export interface DatePickerConfig {
|
|
|
239
192
|
startPlaceholder?: string
|
|
240
193
|
endPlaceholder?: string
|
|
241
194
|
rangeSeparator?: string
|
|
242
|
-
/**
|
|
243
|
-
* 默认el-date-picker的width为100% 可设置width为''或具体宽度值,为''则使用默认的el-date-picker宽度
|
|
244
|
-
*/
|
|
195
|
+
/** 默认el-date-picker的width为100% 可设置width为''或具体宽度值,为''则使用默认的el-date-picker宽度 */
|
|
245
196
|
width?: string
|
|
246
|
-
/**
|
|
247
|
-
* el-date-picker的calendar-change事件
|
|
248
|
-
*/
|
|
197
|
+
/** el-date-picker的calendar-change事件 */
|
|
249
198
|
onCalendarChange?: Function
|
|
250
|
-
/**
|
|
251
|
-
* el-date-picker的clear事件
|
|
252
|
-
*/
|
|
199
|
+
/** el-date-picker的clear事件 */
|
|
253
200
|
onClear?: Function
|
|
254
|
-
/**
|
|
255
|
-
* el-date-picker的change事件
|
|
256
|
-
*/
|
|
201
|
+
/** el-date-picker的change事件 */
|
|
257
202
|
onChange?: Function
|
|
258
203
|
}
|
|
259
204
|
|
|
@@ -269,9 +214,7 @@ export interface TimePickerConfig {
|
|
|
269
214
|
editable?: boolean
|
|
270
215
|
format?: string
|
|
271
216
|
valueFormat?: string
|
|
272
|
-
/**
|
|
273
|
-
* el-date-picker的change事件
|
|
274
|
-
*/
|
|
217
|
+
/** el-date-picker的change事件 */
|
|
275
218
|
onChange?: Function
|
|
276
219
|
}
|
|
277
220
|
|
|
@@ -280,13 +223,9 @@ export interface TimePickerConfig {
|
|
|
280
223
|
*/
|
|
281
224
|
export interface TimeSelectConfig {
|
|
282
225
|
useRender?: boolean | RenderConfig
|
|
283
|
-
/**
|
|
284
|
-
* 时间选择范围开始时间在formModel中的属性名
|
|
285
|
-
*/
|
|
226
|
+
/** 时间选择范围开始时间在formModel中的属性名 */
|
|
286
227
|
startProp: string
|
|
287
|
-
/**
|
|
288
|
-
* 时间选择范围结束时间在formModel中的属性名
|
|
289
|
-
*/
|
|
228
|
+
/** 时间选择范围结束时间在formModel中的属性名 */
|
|
290
229
|
endProp: string
|
|
291
230
|
}
|
|
292
231
|
|
|
@@ -297,9 +236,7 @@ export interface SwitchConfig {
|
|
|
297
236
|
useRender?: boolean | RenderConfig
|
|
298
237
|
activeValue?: string | number | boolean
|
|
299
238
|
inactiveValue?: string | number | boolean
|
|
300
|
-
/**
|
|
301
|
-
* el-switch的change事件
|
|
302
|
-
*/
|
|
239
|
+
/** el-switch的change事件 */
|
|
303
240
|
onChange?: Function
|
|
304
241
|
}
|
|
305
242
|
|
|
@@ -307,13 +244,9 @@ export interface SwitchConfig {
|
|
|
307
244
|
* inputRangeConfig接口
|
|
308
245
|
*/
|
|
309
246
|
export interface InputRangeConfig {
|
|
310
|
-
/**
|
|
311
|
-
* 输入范围开始值在formModel中的属性名
|
|
312
|
-
*/
|
|
247
|
+
/** 输入范围开始值在formModel中的属性名 */
|
|
313
248
|
startProp: string
|
|
314
|
-
/**
|
|
315
|
-
* 输入范围结束值在formModel中的属性名
|
|
316
|
-
*/
|
|
249
|
+
/** 输入范围结束值在formModel中的属性名 */
|
|
317
250
|
endProp: string
|
|
318
251
|
startPlaceholder?: string
|
|
319
252
|
endPlaceholder?: string
|
|
@@ -327,9 +260,7 @@ export interface InputRangeConfig {
|
|
|
327
260
|
export interface TreeSelectConfig {
|
|
328
261
|
useRender?: boolean | RenderConfig
|
|
329
262
|
data: Record<string, unknown>[]
|
|
330
|
-
/**
|
|
331
|
-
* 是否反转
|
|
332
|
-
*/
|
|
263
|
+
/** 是否反转 */
|
|
333
264
|
reverse?: boolean
|
|
334
265
|
width?: string
|
|
335
266
|
placeholder?: string
|
|
@@ -340,18 +271,15 @@ export interface TreeSelectConfig {
|
|
|
340
271
|
defaultExpandedKeys?: Array<string | number>
|
|
341
272
|
}
|
|
342
273
|
|
|
274
|
+
/**
|
|
275
|
+
* 必填配置项
|
|
276
|
+
*/
|
|
343
277
|
export interface IRequired {
|
|
344
|
-
/**
|
|
345
|
-
* 是否必填
|
|
346
|
-
*/
|
|
278
|
+
/** 是否必填 */
|
|
347
279
|
isRequired?: boolean
|
|
348
|
-
/**
|
|
349
|
-
* 内置校验器
|
|
350
|
-
*/
|
|
280
|
+
/** 内置校验器 */
|
|
351
281
|
validator: 'mobile' | 'nonNegativeDecimal'
|
|
352
|
-
/**
|
|
353
|
-
* 参数
|
|
354
|
-
*/
|
|
282
|
+
/** 参数 */
|
|
355
283
|
parmas?: any
|
|
356
284
|
}
|
|
357
285
|
|
|
@@ -474,3 +402,9 @@ export interface FormColumn {
|
|
|
474
402
|
*/
|
|
475
403
|
inputRangeConfig?: InputRangeConfig
|
|
476
404
|
}
|
|
405
|
+
|
|
406
|
+
export interface FormComponentInstance {
|
|
407
|
+
efRef: FormInstance
|
|
408
|
+
showQueryForm: boolean
|
|
409
|
+
handleDisplayQueryForm: Function
|
|
410
|
+
}
|
|
@@ -7,11 +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
|
|
13
|
-
/**
|
|
14
|
-
* 更新value值
|
|
15
|
-
*/
|
|
12
|
+
export type Emits = {
|
|
13
|
+
/** 更新value值 */
|
|
16
14
|
(e: 'update:modelValue', value: string): void
|
|
17
15
|
}
|
|
@@ -7,15 +7,11 @@ import componentProps from './props'
|
|
|
7
7
|
export type Props = ExtractPropTypes<typeof componentProps>
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* emits
|
|
10
|
+
* emits类型
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
13
|
-
/**
|
|
14
|
-
* 更新value值
|
|
15
|
-
*/
|
|
12
|
+
export type Emits = {
|
|
13
|
+
/** 更新value值 */
|
|
16
14
|
(e: 'update:modelValue', value: string | number | (string | number)[]): void
|
|
17
|
-
/**
|
|
18
|
-
* 更新label值
|
|
19
|
-
*/
|
|
15
|
+
/** 更新label值 */
|
|
20
16
|
(e: 'update:label', label: string | string[]): void
|
|
21
17
|
}
|