el-plus-crud 0.0.2

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.
Files changed (86) hide show
  1. package/.eslintignore +18 -0
  2. package/.eslintrc.js +78 -0
  3. package/.lintstagedrc +3 -0
  4. package/.prettierrc.js +39 -0
  5. package/CHANGELOG.md +5 -0
  6. package/LICENSE +21 -0
  7. package/README.md +15 -0
  8. package/example/App.vue +79 -0
  9. package/example/assets/vue.svg +1 -0
  10. package/example/main.js +18 -0
  11. package/example/style.css +5 -0
  12. package/index.html +13 -0
  13. package/lib/components/el-plus-form/ElPlusForm.vue +744 -0
  14. package/lib/components/el-plus-form/ElPlusFormDialog.vue +107 -0
  15. package/lib/components/el-plus-form/components/ElPlusFormAutocomplete.vue +49 -0
  16. package/lib/components/el-plus-form/components/ElPlusFormBtn.vue +96 -0
  17. package/lib/components/el-plus-form/components/ElPlusFormBtns.vue +133 -0
  18. package/lib/components/el-plus-form/components/ElPlusFormCascader.vue +38 -0
  19. package/lib/components/el-plus-form/components/ElPlusFormCascaderPanel.vue +51 -0
  20. package/lib/components/el-plus-form/components/ElPlusFormCheckbox.vue +42 -0
  21. package/lib/components/el-plus-form/components/ElPlusFormCheckboxButton.vue +42 -0
  22. package/lib/components/el-plus-form/components/ElPlusFormColor.vue +38 -0
  23. package/lib/components/el-plus-form/components/ElPlusFormDate.vue +37 -0
  24. package/lib/components/el-plus-form/components/ElPlusFormDaterange.vue +44 -0
  25. package/lib/components/el-plus-form/components/ElPlusFormDatetime.vue +38 -0
  26. package/lib/components/el-plus-form/components/ElPlusFormFile.vue +47 -0
  27. package/lib/components/el-plus-form/components/ElPlusFormImage.vue +113 -0
  28. package/lib/components/el-plus-form/components/ElPlusFormInput.vue +56 -0
  29. package/lib/components/el-plus-form/components/ElPlusFormLink.vue +271 -0
  30. package/lib/components/el-plus-form/components/ElPlusFormNbinput.vue +51 -0
  31. package/lib/components/el-plus-form/components/ElPlusFormNumber.vue +107 -0
  32. package/lib/components/el-plus-form/components/ElPlusFormPassword.vue +39 -0
  33. package/lib/components/el-plus-form/components/ElPlusFormRadio.vue +42 -0
  34. package/lib/components/el-plus-form/components/ElPlusFormRate.vue +38 -0
  35. package/lib/components/el-plus-form/components/ElPlusFormSelect.vue +149 -0
  36. package/lib/components/el-plus-form/components/ElPlusFormSlider.vue +38 -0
  37. package/lib/components/el-plus-form/components/ElPlusFormStatus.vue +67 -0
  38. package/lib/components/el-plus-form/components/ElPlusFormSwitch.vue +38 -0
  39. package/lib/components/el-plus-form/components/ElPlusFormTag.vue +78 -0
  40. package/lib/components/el-plus-form/components/ElPlusFormText.vue +115 -0
  41. package/lib/components/el-plus-form/components/ElPlusFormTextarea.vue +45 -0
  42. package/lib/components/el-plus-form/components/ElPlusFormTransfer.vue +44 -0
  43. package/lib/components/el-plus-form/components/ElPlusFormTree.vue +53 -0
  44. package/lib/components/el-plus-form/components/ElPlusFormTreeSelect.vue +36 -0
  45. package/lib/components/el-plus-form/components/components/IconSelectorList.vue +92 -0
  46. package/lib/components/el-plus-form/components/components/file-icons/FileIcons.vue +135 -0
  47. package/lib/components/el-plus-form/components/components/file-icons/data/index.ts +27 -0
  48. package/lib/components/el-plus-form/components/components/file-icons/images/doc.svg +13 -0
  49. package/lib/components/el-plus-form/components/components/file-icons/images/file.svg +19 -0
  50. package/lib/components/el-plus-form/components/components/file-icons/images/jpg.svg +14 -0
  51. package/lib/components/el-plus-form/components/components/file-icons/images/pdf.svg +13 -0
  52. package/lib/components/el-plus-form/components/components/file-icons/images/png.svg +13 -0
  53. package/lib/components/el-plus-form/components/components/file-icons/images/ppt.svg +13 -0
  54. package/lib/components/el-plus-form/components/components/file-icons/images/xls.svg +13 -0
  55. package/lib/components/el-plus-form/components/index.ts +17 -0
  56. package/lib/components/el-plus-form/data/file.ts +74 -0
  57. package/lib/components/el-plus-form/images/icon/excel.png +0 -0
  58. package/lib/components/el-plus-form/images/icon/file.png +0 -0
  59. package/lib/components/el-plus-form/images/icon/pdf.png +0 -0
  60. package/lib/components/el-plus-form/images/icon/ppt.png +0 -0
  61. package/lib/components/el-plus-form/images/icon/txt.png +0 -0
  62. package/lib/components/el-plus-form/images/icon/word.png +0 -0
  63. package/lib/components/el-plus-form/images/icon/zip.png +0 -0
  64. package/lib/components/el-plus-form/mixins/index.ts +113 -0
  65. package/lib/components/el-plus-form/util/index.ts +266 -0
  66. package/lib/components/el-plus-form/util/validate.ts +310 -0
  67. package/lib/components/el-plus-table/ElPlusTable.vue +723 -0
  68. package/lib/components/el-plus-table/components/columnItem.vue +185 -0
  69. package/lib/components/el-plus-table/components/header.vue +185 -0
  70. package/lib/components/el-plus-table/components/settingColumn.vue +168 -0
  71. package/lib/components/el-plus-table/components/statisticInfo.vue +47 -0
  72. package/lib/components/el-plus-table/util/index.ts +123 -0
  73. package/lib/config/form.ts +12 -0
  74. package/lib/config/index.ts +9 -0
  75. package/lib/index.ts +29 -0
  76. package/package.json +65 -0
  77. package/public/vite.svg +1 -0
  78. package/tsconfig.json +68 -0
  79. package/types/axios.d.ts +13 -0
  80. package/types/formList.d.ts +365 -0
  81. package/types/global.d.ts +145 -0
  82. package/types/layout.d.ts +57 -0
  83. package/types/mitt.d.ts +38 -0
  84. package/types/pinia.d.ts +149 -0
  85. package/types/views.d.ts +329 -0
  86. package/vite.config.ts +68 -0
@@ -0,0 +1,145 @@
1
+ // 申明外部 npm 插件模块
2
+ declare module 'vue-grid-layout'
3
+ declare module 'qrcodejs2-fixes'
4
+ declare module 'splitpanes'
5
+ declare module 'js-cookie'
6
+ declare module '@wangeditor/editor-for-vue'
7
+ declare module 'js-table2excel'
8
+ declare module 'qs'
9
+ declare module 'bluebird'
10
+ declare module 'file-saver'
11
+ declare module 'sortablejs'
12
+ declare module 'bpmn-js-properties-panel'
13
+ declare module 'bpmn-js-bpmnlint'
14
+
15
+ // 声明一个模块,防止引入文件时报错
16
+ declare module '*.json'
17
+ declare module '*.png'
18
+ declare module '*.jpg'
19
+ declare module '*.scss'
20
+ declare module '*.ts'
21
+ declare module '*.js'
22
+
23
+ // 声明文件,*.vue 后缀的文件交给 vue 模块来处理
24
+ declare module '*.vue' {
25
+ import type { DefineComponent } from 'vue'
26
+ const component: DefineComponent<{}, {}, any>
27
+ export default component
28
+ }
29
+
30
+ // 声明文件,定义全局变量
31
+ /* eslint-disable */
32
+ declare interface Window {
33
+ nextLoading: boolean
34
+ }
35
+
36
+ // 声明路由当前项类型
37
+ declare type RouteItem<T = any> = {
38
+ path: string
39
+ name?: string | symbol | undefined | null
40
+ redirect?: string
41
+ k?: T
42
+ meta?: {
43
+ title?: string
44
+ isLink?: string
45
+ isHide?: boolean
46
+ keepAlive?: boolean
47
+ isAffix?: boolean
48
+ isIframe?: boolean
49
+ roles?: string[]
50
+ icon?: string
51
+ isDynamic?: boolean
52
+ isDynamicPath?: string
53
+ isIframeOpen?: string
54
+ loading?: boolean
55
+ }
56
+ children: T[]
57
+ query?: { [key: string]: T }
58
+ params?: { [key: string]: T }
59
+ contextMenuClickId?: string | number
60
+ commonUrl?: string
61
+ isFnClick?: boolean
62
+ url?: string
63
+ transUrl?: string
64
+ title?: string
65
+ id?: string | number
66
+ }
67
+
68
+ // 声明路由 to from
69
+ declare interface RouteToFrom<T = any> extends RouteItem {
70
+ path?: string
71
+ children?: T[]
72
+ matched?: any[]
73
+ redirectedFrom?: any
74
+ }
75
+
76
+ // 声明路由当前项类型集合
77
+ declare type RouteItems<T extends RouteItem = any> = T[]
78
+
79
+ // 声明 ref
80
+ declare type RefType<T = any> = T | null
81
+
82
+ // 声明 HTMLElement
83
+ declare type HtmlType = HTMLElement | string | undefined | null
84
+
85
+ // 申明 children 可选
86
+ declare type ChilType<T = any> = {
87
+ children?: T[]
88
+ }
89
+
90
+ // 申明 数组
91
+ declare type EmptyArrayType<T = any> = T[]
92
+
93
+ // 申明 对象
94
+ declare type EmptyObjectType<T = any> = {
95
+ [key: string]: T
96
+ }
97
+
98
+ // 申明 select option
99
+ declare type SelectOptionType = {
100
+ value: string | number
101
+ label: string | number
102
+ }
103
+
104
+ // 鼠标滚轮滚动类型
105
+ declare interface WheelEventType extends WheelEvent {
106
+ wheelDelta: number
107
+ }
108
+
109
+ // table 数据格式公共类型
110
+ declare interface TableType<T = any> {
111
+ total: number
112
+ loading: boolean
113
+ param: {
114
+ pageNum: number
115
+ pageSize: number
116
+ [key: string]: T
117
+ }
118
+ }
119
+
120
+ /**
121
+ * 入参
122
+ */
123
+ declare interface RequestParams {
124
+ [key: string]: any
125
+ }
126
+
127
+ /**
128
+ * 通用的请求返回对象
129
+ */
130
+ declare interface RootObject<T> {
131
+ status: number
132
+ errorMsg: string
133
+ data: T
134
+ }
135
+
136
+ /**
137
+ * 分页数据请求返回对象
138
+ */
139
+ declare interface PageObject<T> {
140
+ total?: number | string
141
+ size?: number | string
142
+ pages?: number | string
143
+ current?: number | string
144
+ records?: Array<T>
145
+ }
@@ -0,0 +1,57 @@
1
+ // aside
2
+ declare type AsideState = {
3
+ menuList: RouteRecordRaw[]
4
+ clientWidth: number
5
+ }
6
+
7
+ // columnsAside
8
+ declare type ColumnsAsideState<T = any> = {
9
+ columnsAsideList: T[]
10
+ liIndex: number
11
+ liOldIndex: null | number
12
+ liHoverIndex: null | number
13
+ liOldPath: null | string
14
+ difference: number
15
+ routeSplit: string[]
16
+ }
17
+
18
+ // navBars breadcrumb
19
+ declare type BreadcrumbState<T = any> = {
20
+ breadcrumbList: T[]
21
+ routeSplit: string[]
22
+ }
23
+
24
+ // navBars search
25
+ declare type SearchState<T = any> = {
26
+ isShowSearch: boolean
27
+ menuQuery: string
28
+ tagsViewList: T[]
29
+ }
30
+
31
+ // navBars tagsView
32
+ declare type TagsViewState<T = any> = {
33
+ routeActive: string | T
34
+ routePath: string | unknown
35
+ dropdown: {
36
+ x: string | number
37
+ y: string | number
38
+ }
39
+ sortable: T
40
+ tagsRefsIndex: number
41
+ tagsViewList: T[]
42
+ tagsViewRoutesList: T[]
43
+ }
44
+
45
+ // navBars parent
46
+ declare type ParentViewState<T = any> = {
47
+ refreshRouterViewKey: string
48
+ iframeRefreshKey: string
49
+ keepAliveNameList: string[]
50
+ iframeList: T[]
51
+ }
52
+
53
+ // navBars link
54
+ declare type LinkViewState = {
55
+ title: string
56
+ isLink: string
57
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * mitt 事件类型定义
3
+ *
4
+ * @method openSetingsDrawer 打开布局设置弹窗
5
+ * @method restoreDefault 分栏布局,鼠标移入、移出数据显示
6
+ * @method setSendColumnsChildren 分栏布局,鼠标移入、移出菜单数据传入到 navMenu 下的菜单中
7
+ * @method setSendClassicChildren 经典布局,开启切割菜单时,菜单数据传入到 navMenu 下的菜单中
8
+ * @method getBreadcrumbIndexSetFilterRoutes 布局设置弹窗,开启切割菜单时,菜单数据传入到 navMenu 下的菜单中
9
+ * @method layoutMobileResize 浏览器窗口改变时,用于适配移动端界面显示
10
+ * @method openOrCloseSortable 布局设置弹窗,开启 TagsView 拖拽
11
+ * @method openShareTagsView 布局设置弹窗,开启 TagsView 共用
12
+ * @method onTagsViewRefreshRouterView tagsview 刷新界面
13
+ * @method onCurrentContextmenuClick tagsview 右键菜单每项点击时
14
+ */
15
+ declare type MittType<T = any> = {
16
+ openSetingsDrawer?: string
17
+ restoreDefault?: string
18
+ setSendColumnsChildren: T
19
+ setSendClassicChildren: T
20
+ getBreadcrumbIndexSetFilterRoutes?: string
21
+ layoutMobileResize: T
22
+ openOrCloseSortable?: string
23
+ openShareTagsView?: string
24
+ onTagsViewRefreshRouterView?: T
25
+ onCurrentContextmenuClick?: T
26
+ }
27
+
28
+ // mitt 参数类型定义
29
+ declare type LayoutMobileResize = {
30
+ layout: string
31
+ clientWidth: number
32
+ }
33
+
34
+ // mitt 参数菜单类型
35
+ declare type MittMenu = {
36
+ children: RouteRecordRaw[]
37
+ item?: RouteItem
38
+ }
@@ -0,0 +1,149 @@
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
+ }
@@ -0,0 +1,329 @@
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
+ }