el-plus-crud 0.0.72 → 0.0.74
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/CHANGELOG.md +4 -0
- package/dist/el-plus-crud.mjs +12 -12
- package/example/App.vue +2 -1
- package/lib/components/el-plus-form/ElPlusForm.vue +1 -0
- package/lib/components/el-plus-form/ElPlusFormDialog.vue +3 -2
- package/lib/components/el-plus-form/ElPlusFormGroup.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormBtn.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormBtns.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormFile.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormInput.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormLink.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormLkuser.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormNumber.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormPassword.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormQuickInput.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormSelect.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormTextarea.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormUpbtn.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormUpload.vue +1 -0
- package/lib/components/el-plus-form/components/components/file-icons/FileIcons.vue +1 -0
- package/lib/components/el-plus-table/ElPlusTable.vue +1 -0
- package/lib/components/el-plus-table/components/columnItem.vue +1 -0
- package/lib/components/el-plus-table/components/header.vue +1 -0
- package/lib/components/el-plus-table/components/settingColumn.vue +1 -0
- package/lib/components/el-plus-table/util/index.ts +1 -0
- package/lib/config/index.ts +2 -0
- package/lib/index.ts +1 -0
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/types/formList.d.ts +97 -91
- package/types/global.d.ts +1 -133
- package/types/axios.d.ts +0 -13
- package/types/layout.d.ts +0 -57
- package/types/mitt.d.ts +0 -38
- package/types/pinia.d.ts +0 -149
- package/types/views.d.ts +0 -329
package/types/pinia.d.ts
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* pinia 类型定义
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* 用户角色
|
|
7
|
-
*/
|
|
8
|
-
declare interface IUserRoleItem {
|
|
9
|
-
roleId: string
|
|
10
|
-
roleName: string
|
|
11
|
-
roleCode: string
|
|
12
|
-
roleDesc: string
|
|
13
|
-
// 数据权限类型
|
|
14
|
-
dsType: number
|
|
15
|
-
dsScope: string
|
|
16
|
-
createBy: string
|
|
17
|
-
updateBy: string
|
|
18
|
-
createTime: string
|
|
19
|
-
updateTime: string
|
|
20
|
-
// 删除标记,1:已删除,0:正常
|
|
21
|
-
delFlag: 0 | 1
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* 用户岗位
|
|
26
|
-
*/
|
|
27
|
-
declare interface IUserPostItem {
|
|
28
|
-
postId: string
|
|
29
|
-
postCode: string
|
|
30
|
-
postName: string
|
|
31
|
-
postSort: string
|
|
32
|
-
remark: string
|
|
33
|
-
createBy: string
|
|
34
|
-
updateBy: string
|
|
35
|
-
createTime: string
|
|
36
|
-
updateTime: string
|
|
37
|
-
// 删除标记,1:已删除,0:正常
|
|
38
|
-
delFlag: 0 | 1
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* 用户信息
|
|
43
|
-
*/
|
|
44
|
-
declare interface IUserInfo {
|
|
45
|
-
userId: string
|
|
46
|
-
username: string
|
|
47
|
-
wxOpenid: string
|
|
48
|
-
qqOpenid: string
|
|
49
|
-
createTime: string
|
|
50
|
-
updateTime: string
|
|
51
|
-
// 删除标记,1:已删除,0:正常
|
|
52
|
-
delFlag: 0 | 1
|
|
53
|
-
// 锁定标记,0:正常,9:已锁定
|
|
54
|
-
lockFlag: number
|
|
55
|
-
phone: string
|
|
56
|
-
avatar: Array<IOssInfo>
|
|
57
|
-
// 所属部门
|
|
58
|
-
deptId: string
|
|
59
|
-
// 所属租户
|
|
60
|
-
tenantId: string
|
|
61
|
-
deptName: string
|
|
62
|
-
roleList: Array<IUserRoleItem>
|
|
63
|
-
postList: Array<IUserPostItem>
|
|
64
|
-
nickname: string
|
|
65
|
-
name: string
|
|
66
|
-
email: string
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// 用户信息
|
|
70
|
-
declare interface UserInfosState {
|
|
71
|
-
userInfos: IUserInfo
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// 路由缓存列表
|
|
75
|
-
declare interface KeepAliveNamesState {
|
|
76
|
-
keepAliveNames: string[]
|
|
77
|
-
cachedViews: string[]
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// 后端返回原始路由(未处理时)
|
|
81
|
-
declare interface RequestOldRoutesState {
|
|
82
|
-
requestOldRoutes: string[]
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// TagsView 路由列表
|
|
86
|
-
declare interface TagsViewRoutesState<T = any> {
|
|
87
|
-
tagsViewRoutes: T[]
|
|
88
|
-
isTagsViewCurrenFull: Boolean
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// 路由列表
|
|
92
|
-
declare interface RoutesListState<T = any> {
|
|
93
|
-
isInit: boolean
|
|
94
|
-
routesList: T[]
|
|
95
|
-
isColumnsMenuHover: Boolean
|
|
96
|
-
isColumnsNavHover: Boolean
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// 布局配置
|
|
100
|
-
declare interface ThemeConfigState {
|
|
101
|
-
themeConfig: {
|
|
102
|
-
isDrawer: boolean
|
|
103
|
-
primary: string
|
|
104
|
-
topBar: string
|
|
105
|
-
topBarColor: string
|
|
106
|
-
isTopBarColorGradual: boolean
|
|
107
|
-
menuBar: string
|
|
108
|
-
menuBarColor: string
|
|
109
|
-
menuBarActiveColor: string
|
|
110
|
-
isMenuBarColorGradual: boolean
|
|
111
|
-
columnsMenuBar: string
|
|
112
|
-
columnsMenuBarColor: string
|
|
113
|
-
isColumnsMenuBarColorGradual: boolean
|
|
114
|
-
isColumnsMenuHoverPreload: boolean
|
|
115
|
-
isCollapse: boolean
|
|
116
|
-
isUniqueOpened: boolean
|
|
117
|
-
isFixedHeader: boolean
|
|
118
|
-
isFixedHeaderChange: boolean
|
|
119
|
-
isClassicSplitMenu: boolean
|
|
120
|
-
isLockScreen: boolean
|
|
121
|
-
lockScreenTime: number
|
|
122
|
-
isShowLogo: boolean
|
|
123
|
-
isShowLogoChange: boolean
|
|
124
|
-
isBreadcrumb: boolean
|
|
125
|
-
isTagsview: boolean
|
|
126
|
-
isBreadcrumbIcon: boolean
|
|
127
|
-
isTagsviewIcon: boolean
|
|
128
|
-
isCacheTagsView: boolean
|
|
129
|
-
isSortableTagsView: boolean
|
|
130
|
-
isShareTagsView: boolean
|
|
131
|
-
isFooter: boolean
|
|
132
|
-
isGrayscale: boolean
|
|
133
|
-
isInvert: boolean
|
|
134
|
-
isIsDark: boolean
|
|
135
|
-
isWartermark: boolean
|
|
136
|
-
wartermarkText: string
|
|
137
|
-
tagsStyle: string
|
|
138
|
-
animation: string
|
|
139
|
-
columnsAsideStyle: string
|
|
140
|
-
columnsAsideLayout: string
|
|
141
|
-
layout: string
|
|
142
|
-
isRequestRoutes: boolean
|
|
143
|
-
globalTitle: string
|
|
144
|
-
globalViceTitle: string
|
|
145
|
-
globalViceTitleMsg: string
|
|
146
|
-
globalI18n: string
|
|
147
|
-
globalComponentSize: string
|
|
148
|
-
}
|
|
149
|
-
}
|
package/types/views.d.ts
DELETED
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* views personal
|
|
3
|
-
*/
|
|
4
|
-
type NewInfo = {
|
|
5
|
-
title: string
|
|
6
|
-
date: string
|
|
7
|
-
link: string
|
|
8
|
-
}
|
|
9
|
-
type Recommend = {
|
|
10
|
-
title: string
|
|
11
|
-
msg: string
|
|
12
|
-
icon: string
|
|
13
|
-
bg: string
|
|
14
|
-
iconColor: string
|
|
15
|
-
}
|
|
16
|
-
declare type PersonalState = {
|
|
17
|
-
newsInfoList: NewInfo[]
|
|
18
|
-
recommendList: Recommend[]
|
|
19
|
-
personalForm: {
|
|
20
|
-
name: string
|
|
21
|
-
email: string
|
|
22
|
-
autograph: string
|
|
23
|
-
occupation: string
|
|
24
|
-
phone: string
|
|
25
|
-
sex: string
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* views visualizing
|
|
31
|
-
*/
|
|
32
|
-
declare type Demo2State<T = any> = {
|
|
33
|
-
time: {
|
|
34
|
-
txt: string
|
|
35
|
-
fun: number
|
|
36
|
-
}
|
|
37
|
-
dropdownList: T[]
|
|
38
|
-
dropdownActive: string
|
|
39
|
-
skyList: T[]
|
|
40
|
-
dBtnList: T[]
|
|
41
|
-
chartData4Index: number
|
|
42
|
-
dBtnActive: number
|
|
43
|
-
earth3DBtnList: T[]
|
|
44
|
-
chartData4List: T[]
|
|
45
|
-
myCharts: T[]
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* views params
|
|
50
|
-
*/
|
|
51
|
-
declare type ParamsState = {
|
|
52
|
-
value: string
|
|
53
|
-
tagsViewName: string
|
|
54
|
-
tagsViewNameIsI18n: boolean
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* views system
|
|
59
|
-
*/
|
|
60
|
-
// role
|
|
61
|
-
declare interface RowRoleType {
|
|
62
|
-
roleName: string
|
|
63
|
-
roleSign: string
|
|
64
|
-
describe: string
|
|
65
|
-
sort: number
|
|
66
|
-
status: boolean
|
|
67
|
-
createTime: string
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
interface SysRoleTableType extends TableType {
|
|
71
|
-
data: RowRoleType[]
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
declare interface SysRoleState {
|
|
75
|
-
tableData: SysRoleTableType
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
declare type TreeType = {
|
|
79
|
-
id: number
|
|
80
|
-
label: string
|
|
81
|
-
children?: TreeType[]
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// user
|
|
85
|
-
declare type RowUserType<T = any> = {
|
|
86
|
-
userName: string
|
|
87
|
-
userNickname: string
|
|
88
|
-
roleSign: string
|
|
89
|
-
department: string[]
|
|
90
|
-
phone: string
|
|
91
|
-
email: string
|
|
92
|
-
sex: string
|
|
93
|
-
password: string
|
|
94
|
-
overdueTime: T
|
|
95
|
-
status: boolean
|
|
96
|
-
describe: string
|
|
97
|
-
createTime: T
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
interface SysUserTableType extends TableType {
|
|
101
|
-
data: RowUserType[]
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
declare interface SysUserState {
|
|
105
|
-
tableData: SysUserTableType
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
declare type DeptTreeType = {
|
|
109
|
-
deptName: string
|
|
110
|
-
createTime: string
|
|
111
|
-
status: boolean
|
|
112
|
-
sort: number
|
|
113
|
-
describe: string
|
|
114
|
-
id: number | string
|
|
115
|
-
children?: DeptTreeType[]
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// dept
|
|
119
|
-
declare interface RowDeptType extends DeptTreeType {
|
|
120
|
-
deptLevel: string[]
|
|
121
|
-
person: string
|
|
122
|
-
phone: string
|
|
123
|
-
email: string
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
interface SysDeptTableType extends TableType {
|
|
127
|
-
data: DeptTreeType[]
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
declare interface SysDeptState {
|
|
131
|
-
tableData: SysDeptTableType
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// dic
|
|
135
|
-
type ListType = {
|
|
136
|
-
id: number
|
|
137
|
-
label: string
|
|
138
|
-
value: string
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
declare interface RowDicType {
|
|
142
|
-
dicName: string
|
|
143
|
-
fieldName: string
|
|
144
|
-
describe: string
|
|
145
|
-
status: boolean
|
|
146
|
-
createTime: string
|
|
147
|
-
list: ListType[]
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
interface SysDicTableType extends TableType {
|
|
151
|
-
data: RowDicType[]
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
declare interface SysDicState {
|
|
155
|
-
tableData: SysDicTableType
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* views pages
|
|
160
|
-
*/
|
|
161
|
-
// filtering
|
|
162
|
-
declare type FilteringChilType = {
|
|
163
|
-
id: number | string
|
|
164
|
-
label: string
|
|
165
|
-
active: boolean
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
declare type FilterListType = {
|
|
169
|
-
img: string
|
|
170
|
-
title: string
|
|
171
|
-
evaluate: string
|
|
172
|
-
collection: string
|
|
173
|
-
price: string
|
|
174
|
-
monSales: string
|
|
175
|
-
id: number | string
|
|
176
|
-
loading?: boolean
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
declare type FilteringRowType = {
|
|
180
|
-
title: string
|
|
181
|
-
isMore: boolean
|
|
182
|
-
isShowMore: boolean
|
|
183
|
-
id: number | string
|
|
184
|
-
children: FilteringChilType[]
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
// tableRules
|
|
188
|
-
declare type TableRulesHeaderType = {
|
|
189
|
-
prop: string
|
|
190
|
-
width: string | number
|
|
191
|
-
label: string
|
|
192
|
-
isRequired?: boolean
|
|
193
|
-
isTooltip?: boolean
|
|
194
|
-
type: string
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
declare type TableRulesState = {
|
|
198
|
-
tableData: {
|
|
199
|
-
data: EmptyObjectType[]
|
|
200
|
-
header: TableRulesHeaderType[]
|
|
201
|
-
option: SelectOptionType[]
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
declare type TableRulesOneProps = {
|
|
206
|
-
name: string
|
|
207
|
-
email: string
|
|
208
|
-
autograph: string
|
|
209
|
-
occupation: string
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
// tree
|
|
213
|
-
declare type RowTreeType = {
|
|
214
|
-
id: number
|
|
215
|
-
label: string
|
|
216
|
-
label1: string
|
|
217
|
-
label2: string
|
|
218
|
-
isShow: boolean
|
|
219
|
-
children?: RowTreeType[]
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
// workflow index
|
|
223
|
-
declare type NodeListState = {
|
|
224
|
-
id: string | number
|
|
225
|
-
nodeId: string | undefined
|
|
226
|
-
class: HTMLElement | string
|
|
227
|
-
left: number | string
|
|
228
|
-
top: number | string
|
|
229
|
-
icon: string
|
|
230
|
-
name: string
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
declare type LineListState = {
|
|
234
|
-
sourceId: string
|
|
235
|
-
targetId: string
|
|
236
|
-
label: string
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
declare type XyState = {
|
|
240
|
-
x: string | number
|
|
241
|
-
y: string | number
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
declare type WorkflowState<T = any> = {
|
|
245
|
-
leftNavList: T[]
|
|
246
|
-
dropdownNode: XyState
|
|
247
|
-
dropdownLine: XyState
|
|
248
|
-
isShow: boolean
|
|
249
|
-
jsPlumb: T
|
|
250
|
-
jsPlumbNodeIndex: null | number
|
|
251
|
-
jsplumbDefaults: T
|
|
252
|
-
jsplumbMakeSource: T
|
|
253
|
-
jsplumbMakeTarget: T
|
|
254
|
-
jsplumbConnect: T
|
|
255
|
-
jsplumbData: {
|
|
256
|
-
nodeList: NodeListState[]
|
|
257
|
-
lineList: LineListState[]
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
// workflow drawer
|
|
262
|
-
declare type WorkflowDrawerNodeState<T = any> = {
|
|
263
|
-
node: { [key: string]: T }
|
|
264
|
-
nodeRules: T
|
|
265
|
-
form: T
|
|
266
|
-
tabsActive: string
|
|
267
|
-
loading: {
|
|
268
|
-
extend: boolean
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
declare type WorkflowDrawerLabelType = {
|
|
273
|
-
type: string
|
|
274
|
-
label: string
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
declare type WorkflowDrawerState<T = any> = {
|
|
278
|
-
isOpen: boolean
|
|
279
|
-
nodeData: {
|
|
280
|
-
type: string
|
|
281
|
-
}
|
|
282
|
-
jsplumbConn: T
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* views make
|
|
287
|
-
*/
|
|
288
|
-
// tableDemo
|
|
289
|
-
declare type TableDemoPageType = {
|
|
290
|
-
pageNum: number
|
|
291
|
-
pageSize: number
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
declare type TableHeaderType = {
|
|
295
|
-
key: string
|
|
296
|
-
width: string
|
|
297
|
-
title: string
|
|
298
|
-
type: string | number
|
|
299
|
-
colWidth: string
|
|
300
|
-
width?: string | number
|
|
301
|
-
height?: string | number
|
|
302
|
-
isCheck: boolean
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
declare type TableSearchType = {
|
|
306
|
-
label: string
|
|
307
|
-
prop: string
|
|
308
|
-
placeholder: string
|
|
309
|
-
required: boolean
|
|
310
|
-
type: string
|
|
311
|
-
options?: SelectOptionType[]
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
declare type TableDemoState = {
|
|
315
|
-
tableData: {
|
|
316
|
-
data: EmptyObjectType[]
|
|
317
|
-
header: TableHeaderType[]
|
|
318
|
-
config: {
|
|
319
|
-
total: number
|
|
320
|
-
loading: boolean
|
|
321
|
-
isBorder: boolean
|
|
322
|
-
isSelection: boolean
|
|
323
|
-
isSerialNo: boolean
|
|
324
|
-
isOperate: boolean
|
|
325
|
-
}
|
|
326
|
-
search: TableSearchType[]
|
|
327
|
-
param: EmptyObjectType
|
|
328
|
-
}
|
|
329
|
-
}
|