@wyfex/ivue 0.20.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 +10 -10
- 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/UseCrud/types.d.ts +0 -1
- package/dist/types/UseEcharts/hook.d.ts +6 -0
- package/dist/types/UseEcharts/index.vue.d.ts +105 -0
- package/dist/types/UseEcharts/props.d.ts +46 -0
- package/dist/types/UseEcharts/types.d.ts +6 -0
- package/dist/types/UseElButton/index.vue.d.ts +16 -5
- package/dist/types/UseElButton/props.d.ts +2 -2
- package/dist/types/UseElCheckbox/hook.d.ts +3 -2
- package/dist/types/UseElCheckbox/index.vue.d.ts +14 -8
- package/dist/types/UseElCheckbox/props.d.ts +6 -2
- package/dist/types/UseElCheckbox/types.d.ts +1 -1
- 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/dist/types/index.d.ts +1 -0
- package/package.json +11 -11
- package/src/components/UseCrud/types.ts +1 -3
- package/src/components/UseEcharts/props.ts +77 -0
- package/src/components/UseEcharts/types.ts +14 -0
- package/src/components/UseElButton/props.ts +3 -3
- package/src/components/UseElCheckbox/props.ts +7 -5
- package/src/components/UseElCheckbox/types.ts +4 -1
- 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 +4 -16
- package/src/components/UseLineTitle/types.ts +2 -0
- package/src/types/index.ts +38 -115
package/src/types/index.ts
CHANGED
|
@@ -17,25 +17,15 @@ export type RenderContent =
|
|
|
17
17
|
* 渲染器配置接口
|
|
18
18
|
*/
|
|
19
19
|
export interface RenderConfig {
|
|
20
|
-
/**
|
|
21
|
-
* 内容
|
|
22
|
-
*/
|
|
20
|
+
/** 内容 */
|
|
23
21
|
content?: RenderContent
|
|
24
|
-
/**
|
|
25
|
-
* 样式类名
|
|
26
|
-
*/
|
|
22
|
+
/** 样式类名 */
|
|
27
23
|
class?: string
|
|
28
|
-
/**
|
|
29
|
-
* 内联样式
|
|
30
|
-
*/
|
|
24
|
+
/** 内联样式 */
|
|
31
25
|
style?: string
|
|
32
|
-
/**
|
|
33
|
-
* 内联样式字段
|
|
34
|
-
*/
|
|
26
|
+
/** 内联样式字段 */
|
|
35
27
|
styleField?: string
|
|
36
|
-
/**
|
|
37
|
-
* 单位
|
|
38
|
-
*/
|
|
28
|
+
/** 单位 */
|
|
39
29
|
unit?: string
|
|
40
30
|
}
|
|
41
31
|
// =========================== 渲染器相关接口 end ===========================
|
|
@@ -45,17 +35,11 @@ export interface RenderConfig {
|
|
|
45
35
|
* 字典属性接口 共用于其它props配置属性
|
|
46
36
|
*/
|
|
47
37
|
export interface DictProps {
|
|
48
|
-
/**
|
|
49
|
-
* 指定选项label为选项对象的某个属性值
|
|
50
|
-
*/
|
|
38
|
+
/** 指定选项label为选项对象的某个属性值 */
|
|
51
39
|
label: string
|
|
52
|
-
/**
|
|
53
|
-
* 指定选项value为选项对象的某个属性值
|
|
54
|
-
*/
|
|
40
|
+
/** 指定选项value为选项对象的某个属性值 */
|
|
55
41
|
value: string
|
|
56
|
-
/**
|
|
57
|
-
* 指定选项children为选项对象的某个属性值
|
|
58
|
-
*/
|
|
42
|
+
/** 指定选项children为选项对象的某个属性值 */
|
|
59
43
|
children: string
|
|
60
44
|
}
|
|
61
45
|
|
|
@@ -63,9 +47,7 @@ export interface DictProps {
|
|
|
63
47
|
* 字典映射接口
|
|
64
48
|
*/
|
|
65
49
|
export interface DictMap {
|
|
66
|
-
/**
|
|
67
|
-
* 形如:{ 性别: [{ label: '男', value: 1 },{ label: '女', value: 2 }] }
|
|
68
|
-
*/
|
|
50
|
+
/** 形如:{ 性别: [{ label: '男', value: 1 },{ label: '女', value: 2 }] } */
|
|
69
51
|
[key: string]: Record<DictProps['label'] | DictProps['value'], any>[]
|
|
70
52
|
}
|
|
71
53
|
|
|
@@ -73,29 +55,17 @@ export interface DictMap {
|
|
|
73
55
|
* 使用字典接口
|
|
74
56
|
*/
|
|
75
57
|
export interface UseDict {
|
|
76
|
-
/**
|
|
77
|
-
* 字典key 即dictMap的key,为boolean则以label作为dictMap的key
|
|
78
|
-
*/
|
|
58
|
+
/** 字典key 即dictMap的key,为boolean则以label作为dictMap的key */
|
|
79
59
|
key?: string | boolean
|
|
80
|
-
/**
|
|
81
|
-
* 字典属性
|
|
82
|
-
*/
|
|
60
|
+
/** 字典属性 */
|
|
83
61
|
props?: DictProps
|
|
84
|
-
/**
|
|
85
|
-
* 字典类名
|
|
86
|
-
*/
|
|
62
|
+
/** 字典类名 */
|
|
87
63
|
class?: string
|
|
88
|
-
/**
|
|
89
|
-
* 内联样式
|
|
90
|
-
*/
|
|
64
|
+
/** 内联样式 */
|
|
91
65
|
inlineStyle?: string
|
|
92
|
-
/**
|
|
93
|
-
* 字典样式字段
|
|
94
|
-
*/
|
|
66
|
+
/** 字典样式字段 */
|
|
95
67
|
styleField?: string
|
|
96
|
-
/**
|
|
97
|
-
* 字典分割符 默认为逗号(,)
|
|
98
|
-
*/
|
|
68
|
+
/** 字典分割符 默认为逗号(,) */
|
|
99
69
|
separator?: string
|
|
100
70
|
}
|
|
101
71
|
// =========================== 字典相关接口 end ===========================
|
|
@@ -105,21 +75,13 @@ export interface UseDict {
|
|
|
105
75
|
* 上传配置接口
|
|
106
76
|
*/
|
|
107
77
|
export interface UploadConfig {
|
|
108
|
-
/**
|
|
109
|
-
* 上传地址
|
|
110
|
-
*/
|
|
78
|
+
/** 上传地址 */
|
|
111
79
|
action?: string
|
|
112
|
-
/**
|
|
113
|
-
* 请求头
|
|
114
|
-
*/
|
|
80
|
+
/** 请求头 */
|
|
115
81
|
headers?: Record<string, unknown>
|
|
116
|
-
/**
|
|
117
|
-
* 上传数据
|
|
118
|
-
*/
|
|
82
|
+
/** 上传数据 */
|
|
119
83
|
data?: Record<string, unknown>
|
|
120
|
-
/**
|
|
121
|
-
* 其他配置项
|
|
122
|
-
*/
|
|
84
|
+
/** 其他配置项 */
|
|
123
85
|
[key: string]: any
|
|
124
86
|
}
|
|
125
87
|
|
|
@@ -127,45 +89,25 @@ export interface UploadConfig {
|
|
|
127
89
|
* 全局配置接口 其他组件声明globalConfig类型时需要
|
|
128
90
|
*/
|
|
129
91
|
export interface GlobalConfig {
|
|
130
|
-
/**
|
|
131
|
-
* 最终语言
|
|
132
|
-
*/
|
|
92
|
+
/** 最终语言 */
|
|
133
93
|
finalLanguage: string
|
|
134
|
-
/**
|
|
135
|
-
* 最终字典属性
|
|
136
|
-
*/
|
|
94
|
+
/** 最终字典属性 */
|
|
137
95
|
finalDictProps: DictProps
|
|
138
|
-
/**
|
|
139
|
-
* 最终字典映射
|
|
140
|
-
*/
|
|
96
|
+
/** 最终字典映射 */
|
|
141
97
|
finalDictMap: DictMap
|
|
142
|
-
/**
|
|
143
|
-
* 最终crud表格页面高度
|
|
144
|
-
*/
|
|
98
|
+
/** 最终crud表格页面高度 */
|
|
145
99
|
finalCrudTablePageHeight: string
|
|
146
|
-
/**
|
|
147
|
-
* 最终crud表格弹窗高度
|
|
148
|
-
*/
|
|
100
|
+
/** 最终crud表格弹窗高度 */
|
|
149
101
|
finalCrudTableModalHeight: string
|
|
150
|
-
/**
|
|
151
|
-
* 最终表格页面高度
|
|
152
|
-
*/
|
|
102
|
+
/** 最终表格页面高度 */
|
|
153
103
|
finalTablePageHeight: string
|
|
154
|
-
/**
|
|
155
|
-
* 最终表格弹窗高度
|
|
156
|
-
*/
|
|
104
|
+
/** 最终表格弹窗高度 */
|
|
157
105
|
finalTableModalHeight: string
|
|
158
|
-
/**
|
|
159
|
-
* 最终表格页面底部预留偏移
|
|
160
|
-
*/
|
|
106
|
+
/** 最终表格页面底部预留偏移 */
|
|
161
107
|
finalTablePageBottomOffset: number
|
|
162
|
-
/**
|
|
163
|
-
* 最终表格弹窗底部预留偏移 tableMode=modal生效
|
|
164
|
-
*/
|
|
108
|
+
/** 最终表格弹窗底部预留偏移 tableMode=modal生效 */
|
|
165
109
|
finalTableModalBottomOffset: number
|
|
166
|
-
/**
|
|
167
|
-
* 最终上传配置
|
|
168
|
-
*/
|
|
110
|
+
/** 最终上传配置 */
|
|
169
111
|
finalUploadConfig: UploadConfig
|
|
170
112
|
}
|
|
171
113
|
|
|
@@ -178,17 +120,11 @@ export type InputEventName = 'nonNegativeDecimal'
|
|
|
178
120
|
* input事件接口
|
|
179
121
|
*/
|
|
180
122
|
export interface InputEvent {
|
|
181
|
-
/**
|
|
182
|
-
* input事件名称
|
|
183
|
-
*/
|
|
123
|
+
/** input事件名称 */
|
|
184
124
|
name: InputEventName
|
|
185
|
-
/**
|
|
186
|
-
* 保留的小数位数
|
|
187
|
-
*/
|
|
125
|
+
/** 保留的小数位数 */
|
|
188
126
|
digits?: number
|
|
189
|
-
/**
|
|
190
|
-
* 回调函数
|
|
191
|
-
*/
|
|
127
|
+
/** 回调函数 */
|
|
192
128
|
cb?: Function
|
|
193
129
|
}
|
|
194
130
|
|
|
@@ -196,30 +132,17 @@ export interface InputEvent {
|
|
|
196
132
|
* 编辑配置属性接口
|
|
197
133
|
*/
|
|
198
134
|
export interface EditAttrs {
|
|
199
|
-
/**
|
|
200
|
-
* 是否追加label到placeholder后面 默认是
|
|
201
|
-
* 不需要可显式设置appendLabelToPlaceholder为false
|
|
202
|
-
*/
|
|
135
|
+
/** 是否追加label到placeholder后面 默认是,不需要可显式设置appendLabelToPlaceholder为false */
|
|
203
136
|
appendLabelToPlaceholder?: boolean
|
|
204
|
-
/**
|
|
205
|
-
* UseElSelect等组件的options
|
|
206
|
-
*/
|
|
137
|
+
/** UseElSelect等组件的options */
|
|
207
138
|
options?: Record<string, any>[]
|
|
208
|
-
/**
|
|
209
|
-
* UseElSelect等组件的props
|
|
210
|
-
*/
|
|
139
|
+
/** UseElSelect等组件的props */
|
|
211
140
|
props?: DictProps
|
|
212
|
-
/**
|
|
213
|
-
* change事件
|
|
214
|
-
*/
|
|
141
|
+
/** change事件 */
|
|
215
142
|
changeEvent?: Function
|
|
216
|
-
/**
|
|
217
|
-
* focus事件
|
|
218
|
-
*/
|
|
143
|
+
/** focus事件 */
|
|
219
144
|
focusEvent?: Function
|
|
220
|
-
/**
|
|
221
|
-
* input事件
|
|
222
|
-
*/
|
|
145
|
+
/** input事件 */
|
|
223
146
|
inputEvent?: Function | InputEventName | InputEvent
|
|
224
147
|
}
|
|
225
148
|
// =========================== 其他接口 end ===========================
|