@wyfex/ivue 0.17.0 → 0.18.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/dist/index.es.js +9 -9
- package/dist/index.umd.cjs +8 -8
- package/dist/ivue.css +1 -1
- package/dist/types/UseElForm/components/RowForm.vue.d.ts +14 -15
- package/dist/types/UseElForm/{hook.d.ts → hooks/useElForm.d.ts} +2 -2
- package/dist/types/UseElTable/index.vue.d.ts +6 -6
- package/dist/types/UseElTooltip/index.vue.d.ts +41 -0
- package/dist/types/UseElTooltip/props.d.ts +16 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -1
- package/src/components/UseElConfigProvider/types.ts +1 -1
- package/src/components/UseElTooltip/props.ts +41 -0
- /package/dist/types/UseElForm/{components → hooks}/useQueryColSpan.d.ts +0 -0
|
@@ -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
|
|
3
|
+
type: import('vue').PropType<import('../types').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
|
|
11
|
+
type: import('vue').PropType<boolean | import('../../../types').RenderConfig>;
|
|
12
12
|
default: boolean;
|
|
13
13
|
};
|
|
14
14
|
dictMap: {
|
|
15
|
-
type: import('vue').PropType<import('../../../types
|
|
15
|
+
type: import('vue').PropType<import('../../../types').DictMap>;
|
|
16
16
|
default: () => {};
|
|
17
17
|
};
|
|
18
18
|
dictProps: {
|
|
19
|
-
type: import('vue').PropType<import('../../../types
|
|
19
|
+
type: import('vue').PropType<import('../../../types').DictProps>;
|
|
20
20
|
default: () => {};
|
|
21
21
|
};
|
|
22
22
|
formItemWidth: {
|
|
@@ -50,18 +50,17 @@ 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
|
|
53
|
+
type: import('vue').PropType<import('../types').QueryConfig>;
|
|
54
54
|
default: () => {};
|
|
55
55
|
};
|
|
56
56
|
}>, {
|
|
57
57
|
efRef: import('vue').Ref<null, null>;
|
|
58
|
-
cascaderRef: import('vue').Ref<null, null>;
|
|
59
58
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
60
59
|
onDictKeys: (value?: string[] | undefined) => any;
|
|
61
60
|
"update:formModel": (value: Record<string, any>) => any;
|
|
62
61
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
63
62
|
formColumns: {
|
|
64
|
-
type: import('vue').PropType<import('../types
|
|
63
|
+
type: import('vue').PropType<import('../types').FormColumn[]>;
|
|
65
64
|
required: boolean;
|
|
66
65
|
};
|
|
67
66
|
formModel: {
|
|
@@ -69,15 +68,15 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
69
68
|
required: boolean;
|
|
70
69
|
};
|
|
71
70
|
useRender: {
|
|
72
|
-
type: import('vue').PropType<boolean | import('../../../types
|
|
71
|
+
type: import('vue').PropType<boolean | import('../../../types').RenderConfig>;
|
|
73
72
|
default: boolean;
|
|
74
73
|
};
|
|
75
74
|
dictMap: {
|
|
76
|
-
type: import('vue').PropType<import('../../../types
|
|
75
|
+
type: import('vue').PropType<import('../../../types').DictMap>;
|
|
77
76
|
default: () => {};
|
|
78
77
|
};
|
|
79
78
|
dictProps: {
|
|
80
|
-
type: import('vue').PropType<import('../../../types
|
|
79
|
+
type: import('vue').PropType<import('../../../types').DictProps>;
|
|
81
80
|
default: () => {};
|
|
82
81
|
};
|
|
83
82
|
formItemWidth: {
|
|
@@ -111,16 +110,16 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
111
110
|
default: boolean;
|
|
112
111
|
};
|
|
113
112
|
queryConfig: {
|
|
114
|
-
type: import('vue').PropType<import('../types
|
|
113
|
+
type: import('vue').PropType<import('../types').QueryConfig>;
|
|
115
114
|
default: () => {};
|
|
116
115
|
};
|
|
117
116
|
}>> & Readonly<{
|
|
118
117
|
onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
|
|
119
118
|
"onUpdate:formModel"?: ((value: Record<string, any>) => any) | undefined;
|
|
120
119
|
}>, {
|
|
121
|
-
dictMap: import('../../../types
|
|
122
|
-
dictProps: import('../../../types
|
|
123
|
-
useRender: boolean | import('../../../types
|
|
120
|
+
dictMap: import('../../../types').DictMap;
|
|
121
|
+
dictProps: import('../../../types').DictProps;
|
|
122
|
+
useRender: boolean | import('../../../types').RenderConfig;
|
|
124
123
|
formItemWidth: string;
|
|
125
124
|
labelSuffix: string;
|
|
126
125
|
labelWidth: string;
|
|
@@ -128,7 +127,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
128
127
|
rowGutter: number;
|
|
129
128
|
colSpan: number;
|
|
130
129
|
disabled: boolean;
|
|
131
|
-
queryConfig: import('../types
|
|
130
|
+
queryConfig: import('../types').QueryConfig;
|
|
132
131
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
133
132
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
134
133
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import { Emits, FormColumn, Props } from '
|
|
3
|
-
import { GlobalConfig } from '
|
|
2
|
+
import { Emits, FormColumn, Props } from '../types';
|
|
3
|
+
import { GlobalConfig } from '../../../types';
|
|
4
4
|
export declare const useElForm: ({ props, emits, globalConfig }: {
|
|
5
5
|
props: Props;
|
|
6
6
|
emits: Emits;
|
|
@@ -21,11 +21,11 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
21
21
|
validator: (val: string) => boolean;
|
|
22
22
|
};
|
|
23
23
|
dictMap: {
|
|
24
|
-
type: import('vue').PropType<import('../../types
|
|
24
|
+
type: import('vue').PropType<import('../../types').DictMap>;
|
|
25
25
|
default: () => {};
|
|
26
26
|
};
|
|
27
27
|
dictProps: {
|
|
28
|
-
type: import('vue').PropType<import('../../types
|
|
28
|
+
type: import('vue').PropType<import('../../types').DictProps>;
|
|
29
29
|
default: () => {};
|
|
30
30
|
};
|
|
31
31
|
showOverflowTooltip: {
|
|
@@ -74,11 +74,11 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
74
74
|
validator: (val: string) => boolean;
|
|
75
75
|
};
|
|
76
76
|
dictMap: {
|
|
77
|
-
type: import('vue').PropType<import('../../types
|
|
77
|
+
type: import('vue').PropType<import('../../types').DictMap>;
|
|
78
78
|
default: () => {};
|
|
79
79
|
};
|
|
80
80
|
dictProps: {
|
|
81
|
-
type: import('vue').PropType<import('../../types
|
|
81
|
+
type: import('vue').PropType<import('../../types').DictProps>;
|
|
82
82
|
default: () => {};
|
|
83
83
|
};
|
|
84
84
|
showOverflowTooltip: {
|
|
@@ -106,8 +106,8 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
106
106
|
tableHeight: string;
|
|
107
107
|
tableLoading: boolean;
|
|
108
108
|
tableColumnAlign: string;
|
|
109
|
-
dictMap: import('../../types
|
|
110
|
-
dictProps: import('../../types
|
|
109
|
+
dictMap: import('../../types').DictMap;
|
|
110
|
+
dictProps: import('../../types').DictProps;
|
|
111
111
|
showOverflowTooltip: boolean;
|
|
112
112
|
headerCellStyle: Record<string, string>;
|
|
113
113
|
extConfig: import('./types').ExtConfig;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
content: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
placement: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
validator: (value: string) => boolean;
|
|
10
|
+
};
|
|
11
|
+
spanClass: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
content: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
placement: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
validator: (value: string) => boolean;
|
|
24
|
+
};
|
|
25
|
+
spanClass: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{}>, {
|
|
30
|
+
content: string;
|
|
31
|
+
placement: string;
|
|
32
|
+
spanClass: string;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
content: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
placement: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
validator: (value: string) => boolean;
|
|
10
|
+
};
|
|
11
|
+
spanClass: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ 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 UseElTooltip } from './UseElTooltip/index.vue';
|
|
14
15
|
export { default as UseIconfont } from './UseIconfont/index.vue';
|
|
15
16
|
export { default as UseLineTitle } from './UseLineTitle/index.vue';
|
|
16
17
|
export { default as UseRender } from './UseRender/index.vue';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wyfex/ivue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "万有前端 X 体系下基于 Vite8 + Vue3 + Typescript6 + ElementPlus2 构建的 iVue 组件库",
|
|
5
5
|
"homepage": "https://wyfe.top/idocs/ivue",
|
|
6
6
|
"type": "module",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
55
55
|
"@vue/tsconfig": "^0.9.1",
|
|
56
56
|
"@wyfex/iutils": "^0.40.0",
|
|
57
|
+
"dayjs": "^1.11.21",
|
|
57
58
|
"element-plus": "^2.14.2",
|
|
58
59
|
"sass-embedded": "^1.100.0",
|
|
59
60
|
"typescript": "~6.0.3",
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 组件props
|
|
3
|
+
*/
|
|
4
|
+
export default {
|
|
5
|
+
/**
|
|
6
|
+
* 显示的内容 也可被 slot#content 覆盖
|
|
7
|
+
*/
|
|
8
|
+
content: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: ''
|
|
11
|
+
},
|
|
12
|
+
/**
|
|
13
|
+
* Tooltip组件出现的位置 默认top
|
|
14
|
+
*/
|
|
15
|
+
placement: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: 'top',
|
|
18
|
+
validator: (value: string) =>
|
|
19
|
+
[
|
|
20
|
+
'top',
|
|
21
|
+
'top-start',
|
|
22
|
+
'top-end',
|
|
23
|
+
'bottom',
|
|
24
|
+
'bottom-start',
|
|
25
|
+
'bottom-end',
|
|
26
|
+
'left',
|
|
27
|
+
'left-start',
|
|
28
|
+
'left-end',
|
|
29
|
+
'right',
|
|
30
|
+
'right-start',
|
|
31
|
+
'right-end'
|
|
32
|
+
].includes(value)
|
|
33
|
+
},
|
|
34
|
+
/**
|
|
35
|
+
* span元素的类名
|
|
36
|
+
*/
|
|
37
|
+
spanClass: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: ''
|
|
40
|
+
}
|
|
41
|
+
}
|
|
File without changes
|