el-plus-crud 0.0.38 → 0.0.39

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 (76) hide show
  1. package/.eslintrc.js +78 -78
  2. package/.prettierrc.js +39 -39
  3. package/CHANGELOG.md +7 -5
  4. package/build.js +31 -31
  5. package/dist/el-plus-crud.mjs +2750 -2722
  6. package/dist/el-plus-crud.umd.js +14 -14
  7. package/dist/style.css +1 -1
  8. package/example/App.vue +67 -67
  9. package/example/main.js +18 -18
  10. package/index.html +13 -13
  11. package/lib/components/el-plus-form/ElPlusForm.vue +774 -772
  12. package/lib/components/el-plus-form/ElPlusFormDialog.vue +90 -90
  13. package/lib/components/el-plus-form/ElPlusFormGroup.vue +116 -116
  14. package/lib/components/el-plus-form/components/ElPlusFormArea.vue +61 -61
  15. package/lib/components/el-plus-form/components/ElPlusFormAutocomplete.vue +49 -49
  16. package/lib/components/el-plus-form/components/ElPlusFormBtn.vue +102 -102
  17. package/lib/components/el-plus-form/components/ElPlusFormBtns.vue +133 -133
  18. package/lib/components/el-plus-form/components/ElPlusFormCascader.vue +63 -63
  19. package/lib/components/el-plus-form/components/ElPlusFormCascaderPanel.vue +53 -51
  20. package/lib/components/el-plus-form/components/ElPlusFormCheckbox.vue +44 -42
  21. package/lib/components/el-plus-form/components/ElPlusFormCheckboxButton.vue +44 -42
  22. package/lib/components/el-plus-form/components/ElPlusFormColor.vue +38 -38
  23. package/lib/components/el-plus-form/components/ElPlusFormDate.vue +39 -39
  24. package/lib/components/el-plus-form/components/ElPlusFormDaterange.vue +46 -44
  25. package/lib/components/el-plus-form/components/ElPlusFormDatetime.vue +40 -38
  26. package/lib/components/el-plus-form/components/ElPlusFormDatetimerange.vue +3 -1
  27. package/lib/components/el-plus-form/components/ElPlusFormFile.vue +47 -47
  28. package/lib/components/el-plus-form/components/ElPlusFormImage.vue +113 -113
  29. package/lib/components/el-plus-form/components/ElPlusFormInput.vue +3 -1
  30. package/lib/components/el-plus-form/components/ElPlusFormLink.vue +281 -281
  31. package/lib/components/el-plus-form/components/ElPlusFormLkuser.vue +489 -489
  32. package/lib/components/el-plus-form/components/ElPlusFormNbinput.vue +53 -51
  33. package/lib/components/el-plus-form/components/ElPlusFormNumber.vue +146 -144
  34. package/lib/components/el-plus-form/components/ElPlusFormPassword.vue +3 -1
  35. package/lib/components/el-plus-form/components/ElPlusFormQuickInput.vue +94 -92
  36. package/lib/components/el-plus-form/components/ElPlusFormRadio.vue +42 -42
  37. package/lib/components/el-plus-form/components/ElPlusFormRate.vue +38 -38
  38. package/lib/components/el-plus-form/components/ElPlusFormSelect.vue +161 -161
  39. package/lib/components/el-plus-form/components/ElPlusFormSlider.vue +38 -38
  40. package/lib/components/el-plus-form/components/ElPlusFormSwitch.vue +38 -38
  41. package/lib/components/el-plus-form/components/ElPlusFormTag.vue +78 -78
  42. package/lib/components/el-plus-form/components/ElPlusFormText.vue +99 -99
  43. package/lib/components/el-plus-form/components/ElPlusFormTextarea.vue +49 -47
  44. package/lib/components/el-plus-form/components/ElPlusFormTransfer.vue +44 -44
  45. package/lib/components/el-plus-form/components/ElPlusFormTree.vue +76 -76
  46. package/lib/components/el-plus-form/components/ElPlusFormTreeSelect.vue +59 -59
  47. package/lib/components/el-plus-form/components/ElPlusFormUpload.vue +368 -368
  48. package/lib/components/el-plus-form/components/components/file-icons/FileIcons.vue +135 -135
  49. package/lib/components/el-plus-form/components/components/file-icons/data/index.ts +27 -27
  50. package/lib/components/el-plus-form/components/components/file-icons/images/doc.svg +12 -12
  51. package/lib/components/el-plus-form/components/components/file-icons/images/file.svg +18 -18
  52. package/lib/components/el-plus-form/components/components/file-icons/images/jpg.svg +13 -13
  53. package/lib/components/el-plus-form/components/components/file-icons/images/pdf.svg +12 -12
  54. package/lib/components/el-plus-form/components/components/file-icons/images/png.svg +12 -12
  55. package/lib/components/el-plus-form/components/components/file-icons/images/ppt.svg +12 -12
  56. package/lib/components/el-plus-form/components/components/file-icons/images/xls.svg +12 -12
  57. package/lib/components/el-plus-form/components/index.ts +17 -17
  58. package/lib/components/el-plus-form/data/file.ts +74 -74
  59. package/lib/components/el-plus-form/mixins/index.ts +113 -113
  60. package/lib/components/el-plus-form/util/index.ts +257 -257
  61. package/lib/components/el-plus-form/util/validate.ts +332 -332
  62. package/lib/components/el-plus-table/components/columnItem.vue +205 -205
  63. package/lib/components/el-plus-table/components/header.vue +240 -240
  64. package/lib/components/el-plus-table/components/statisticInfo.vue +47 -47
  65. package/lib/components/el-plus-table/util/index.ts +147 -147
  66. package/lib/config/index.ts +30 -30
  67. package/lib/index.d.ts +4 -4
  68. package/lib/index.ts +51 -51
  69. package/package.json +1 -1
  70. package/types/axios.d.ts +13 -13
  71. package/types/formList.d.ts +440 -440
  72. package/types/layout.d.ts +57 -57
  73. package/types/mitt.d.ts +38 -38
  74. package/types/pinia.d.ts +149 -149
  75. package/types/views.d.ts +329 -329
  76. package/vite.config.ts +78 -78
package/types/layout.d.ts CHANGED
@@ -1,57 +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
- }
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
+ }
package/types/mitt.d.ts CHANGED
@@ -1,38 +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
- }
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
+ }
package/types/pinia.d.ts CHANGED
@@ -1,149 +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
- }
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
+ }