fan-standard-comp 3.1.2 → 3.1.4

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 (244) hide show
  1. package/package.json +1 -1
  2. package/dist/f26952c118ab6cdcd23dc0028ee98c11.svg +0 -173
  3. package/dist/fan-standard-comp.umd.js +0 -597
  4. package/dist/fonts/iconfont.eot +0 -0
  5. package/dist/fonts/iconfont.ttf +0 -0
  6. package/dist/fonts/iconfont.woff +0 -0
  7. package/es/ButtonGroup/ButtonList.d.ts +0 -2
  8. package/es/ButtonGroup/ButtonList.js +0 -37
  9. package/es/ButtonGroup/ButtonMenu.d.ts +0 -2
  10. package/es/ButtonGroup/ButtonMenu.js +0 -38
  11. package/es/ButtonGroup/PopConfirmTitle.d.ts +0 -9
  12. package/es/ButtonGroup/PopConfirmTitle.js +0 -37
  13. package/es/ButtonGroup/index.d.ts +0 -30
  14. package/es/ButtonGroup/index.js +0 -374
  15. package/es/ButtonGroup/style/index.less +0 -36
  16. package/es/DragContent/DragBar.js +0 -21
  17. package/es/DragContent/index.d.ts +0 -14
  18. package/es/DragContent/index.js +0 -173
  19. package/es/DragContent/index.less +0 -44
  20. package/es/FormComp/ChunkUploader/api.js +0 -76
  21. package/es/FormComp/ChunkUploader/index.js +0 -391
  22. package/es/FormComp/ChunkUploader/lib.js +0 -96
  23. package/es/FormComp/ChunkUploader/style/style.less +0 -3
  24. package/es/FormComp/ChunkUploader/upload-queue.class.js +0 -167
  25. package/es/FormComp/ChunkUploader/worker.js +0 -23
  26. package/es/FormComp/EditButton/index.d.ts +0 -26
  27. package/es/FormComp/EditButton/index.js +0 -140
  28. package/es/FormComp/FieldComponent/ReUpload.d.ts +0 -3
  29. package/es/FormComp/FieldComponent/ReUpload.js +0 -131
  30. package/es/FormComp/FieldComponent/RefactorTreeSelect.js +0 -245
  31. package/es/FormComp/FieldComponent/TitleNode.d.ts +0 -6
  32. package/es/FormComp/FieldComponent/TitleNode.js +0 -9
  33. package/es/FormComp/FieldComponent/index.d.ts +0 -38
  34. package/es/FormComp/FieldComponent/index.js +0 -413
  35. package/es/FormComp/FieldComponent/setReadonlyValues.js +0 -236
  36. package/es/FormComp/FieldComponent/style/index.less +0 -116
  37. package/es/FormComp/RenderItemGroup/index.d.ts +0 -37
  38. package/es/FormComp/RenderItemGroup/index.js +0 -234
  39. package/es/FormComp/Uploader/index.d.ts +0 -19
  40. package/es/FormComp/Uploader/index.js +0 -275
  41. package/es/FormComp/Uploader/style/index.less +0 -14
  42. package/es/FormComp/Uploader/util.d.ts +0 -8
  43. package/es/FormComp/Uploader/util.js +0 -38
  44. package/es/FormComp/VarTemplate/index.js +0 -293
  45. package/es/FormComp/index.d.ts +0 -1
  46. package/es/FormComp/index.js +0 -1
  47. package/es/NavLeafScroll/index.js +0 -379
  48. package/es/NavLeafScroll/style/index.less +0 -119
  49. package/es/RefactorTree/data.d.ts +0 -7
  50. package/es/RefactorTree/index.d.ts +0 -40
  51. package/es/RefactorTree/index.js +0 -167
  52. package/es/RefactorTree/indexTreeNode.d.ts +0 -39
  53. package/es/RefactorTree/indexTreeNode.js +0 -237
  54. package/es/RefactorTree/style/index.d.ts +0 -1
  55. package/es/RefactorTree/style/index.js +0 -1
  56. package/es/RefactorTree/style/index.less +0 -22
  57. package/es/RefactorTree/util.d.ts +0 -42
  58. package/es/RefactorTree/util.js +0 -187
  59. package/es/SpecIcon/fonts/demo.css +0 -539
  60. package/es/SpecIcon/fonts/demo_index.html +0 -1315
  61. package/es/SpecIcon/fonts/iconfont.css +0 -211
  62. package/es/SpecIcon/fonts/iconfont.eot +0 -0
  63. package/es/SpecIcon/fonts/iconfont.js +0 -41
  64. package/es/SpecIcon/fonts/iconfont.json +0 -352
  65. package/es/SpecIcon/fonts/iconfont.svg +0 -173
  66. package/es/SpecIcon/fonts/iconfont.ttf +0 -0
  67. package/es/SpecIcon/fonts/iconfont.woff +0 -0
  68. package/es/SpecIcon/fonts/iconfont.woff2 +0 -0
  69. package/es/SpecIcon/index.d.ts +0 -17
  70. package/es/SpecIcon/index.js +0 -77
  71. package/es/SpecIcon/style/iconfont.less +0 -213
  72. package/es/SpecIcon/style/index.less +0 -98
  73. package/es/SplitterLayout/Pane.d.ts +0 -13
  74. package/es/SplitterLayout/Pane.js +0 -36
  75. package/es/SplitterLayout/index.js +0 -375
  76. package/es/SplitterLayout/index.less +0 -58
  77. package/es/StandardContent/SplitterLayout/Pane.js +0 -50
  78. package/es/StandardContent/SplitterLayout/index.js +0 -374
  79. package/es/StandardContent/SplitterLayout/index.less +0 -58
  80. package/es/StandardContent/SubfieldContent.d.ts +0 -17
  81. package/es/StandardContent/SubfieldContent.js +0 -41
  82. package/es/StandardContent/WrapperContent.d.ts +0 -13
  83. package/es/StandardContent/WrapperContent.js +0 -29
  84. package/es/StandardContent/data.d.ts +0 -101
  85. package/es/StandardContent/style/index.less +0 -80
  86. package/es/StandardDragModal/index.d.ts +0 -11
  87. package/es/StandardDragModal/index.js +0 -30
  88. package/es/StandardFilter/index.d.ts +0 -35
  89. package/es/StandardFilter/index.js +0 -253
  90. package/es/StandardFilter/style/index.less +0 -62
  91. package/es/StandardForm/ActionList.js +0 -44
  92. package/es/StandardForm/StepForm.d.ts +0 -19
  93. package/es/StandardForm/StepForm.js +0 -267
  94. package/es/StandardForm/TabForm.d.ts +0 -19
  95. package/es/StandardForm/TabForm.js +0 -122
  96. package/es/StandardForm/index.d.ts +0 -32
  97. package/es/StandardForm/index.js +0 -170
  98. package/es/StandardForm/style/index.less +0 -58
  99. package/es/StandardModal/UpdateFormRef.js +0 -18
  100. package/es/StandardModal/index.d.ts +0 -44
  101. package/es/StandardModal/index.js +0 -495
  102. package/es/StandardModal/style/index.less +0 -50
  103. package/es/StandardPanel/index.d.ts +0 -28
  104. package/es/StandardPanel/index.js +0 -134
  105. package/es/StandardPanel/style/index.less +0 -135
  106. package/es/StandardTable/index.d.ts +0 -22
  107. package/es/StandardTable/index.js +0 -126
  108. package/es/StandardTable/style/index.d.ts +0 -1
  109. package/es/StandardTable/style/index.js +0 -1
  110. package/es/StandardTable/style/index.less +0 -206
  111. package/es/components/IconNode/index.d.ts +0 -16
  112. package/es/components/IconNode/index.js +0 -28
  113. package/es/components/index.d.ts +0 -2
  114. package/es/components/index.js +0 -2
  115. package/es/data/func.code.js +0 -112
  116. package/es/data/general.config.js +0 -172
  117. package/es/data/index.js +0 -3
  118. package/es/index.d.ts +0 -24
  119. package/es/index.js +0 -31
  120. package/es/styles/index.less +0 -0
  121. package/es/theme/spec-variable.less +0 -48
  122. package/es/utils/ValueFormat.js +0 -50
  123. package/es/utils/filterPermission.js +0 -111
  124. package/es/utils/getParentNodes.js +0 -215
  125. package/es/utils/index.js +0 -3
  126. package/lib/ButtonGroup/ButtonList.d.ts +0 -2
  127. package/lib/ButtonGroup/ButtonList.js +0 -55
  128. package/lib/ButtonGroup/ButtonMenu.d.ts +0 -2
  129. package/lib/ButtonGroup/ButtonMenu.js +0 -51
  130. package/lib/ButtonGroup/PopConfirmTitle.d.ts +0 -9
  131. package/lib/ButtonGroup/PopConfirmTitle.js +0 -48
  132. package/lib/ButtonGroup/index.d.ts +0 -30
  133. package/lib/ButtonGroup/index.js +0 -405
  134. package/lib/ButtonGroup/style/index.less +0 -36
  135. package/lib/DragContent/DragBar.js +0 -33
  136. package/lib/DragContent/index.d.ts +0 -14
  137. package/lib/DragContent/index.js +0 -191
  138. package/lib/DragContent/index.less +0 -44
  139. package/lib/FormComp/ChunkUploader/api.js +0 -89
  140. package/lib/FormComp/ChunkUploader/index.js +0 -410
  141. package/lib/FormComp/ChunkUploader/lib.js +0 -113
  142. package/lib/FormComp/ChunkUploader/style/style.less +0 -3
  143. package/lib/FormComp/ChunkUploader/upload-queue.class.js +0 -174
  144. package/lib/FormComp/ChunkUploader/worker.js +0 -28
  145. package/lib/FormComp/EditButton/index.d.ts +0 -26
  146. package/lib/FormComp/EditButton/index.js +0 -159
  147. package/lib/FormComp/FieldComponent/ReUpload.d.ts +0 -3
  148. package/lib/FormComp/FieldComponent/ReUpload.js +0 -151
  149. package/lib/FormComp/FieldComponent/RefactorTreeSelect.js +0 -268
  150. package/lib/FormComp/FieldComponent/TitleNode.d.ts +0 -6
  151. package/lib/FormComp/FieldComponent/TitleNode.js +0 -19
  152. package/lib/FormComp/FieldComponent/index.d.ts +0 -38
  153. package/lib/FormComp/FieldComponent/index.js +0 -457
  154. package/lib/FormComp/FieldComponent/setReadonlyValues.js +0 -263
  155. package/lib/FormComp/FieldComponent/style/index.less +0 -116
  156. package/lib/FormComp/RenderItemGroup/index.d.ts +0 -37
  157. package/lib/FormComp/RenderItemGroup/index.js +0 -255
  158. package/lib/FormComp/Uploader/index.d.ts +0 -19
  159. package/lib/FormComp/Uploader/index.js +0 -301
  160. package/lib/FormComp/Uploader/style/index.less +0 -14
  161. package/lib/FormComp/Uploader/util.d.ts +0 -8
  162. package/lib/FormComp/Uploader/util.js +0 -47
  163. package/lib/FormComp/VarTemplate/index.js +0 -308
  164. package/lib/FormComp/index.d.ts +0 -1
  165. package/lib/FormComp/index.js +0 -15
  166. package/lib/NavLeafScroll/index.js +0 -397
  167. package/lib/NavLeafScroll/style/index.less +0 -119
  168. package/lib/RefactorTree/data.d.ts +0 -7
  169. package/lib/RefactorTree/index.d.ts +0 -40
  170. package/lib/RefactorTree/index.js +0 -190
  171. package/lib/RefactorTree/indexTreeNode.d.ts +0 -39
  172. package/lib/RefactorTree/indexTreeNode.js +0 -260
  173. package/lib/RefactorTree/style/index.d.ts +0 -1
  174. package/lib/RefactorTree/style/index.js +0 -3
  175. package/lib/RefactorTree/style/index.less +0 -22
  176. package/lib/RefactorTree/util.d.ts +0 -42
  177. package/lib/RefactorTree/util.js +0 -195
  178. package/lib/SpecIcon/fonts/demo.css +0 -539
  179. package/lib/SpecIcon/fonts/demo_index.html +0 -1315
  180. package/lib/SpecIcon/fonts/iconfont.css +0 -211
  181. package/lib/SpecIcon/fonts/iconfont.eot +0 -0
  182. package/lib/SpecIcon/fonts/iconfont.js +0 -43
  183. package/lib/SpecIcon/fonts/iconfont.json +0 -352
  184. package/lib/SpecIcon/fonts/iconfont.svg +0 -173
  185. package/lib/SpecIcon/fonts/iconfont.ttf +0 -0
  186. package/lib/SpecIcon/fonts/iconfont.woff +0 -0
  187. package/lib/SpecIcon/fonts/iconfont.woff2 +0 -0
  188. package/lib/SpecIcon/index.d.ts +0 -17
  189. package/lib/SpecIcon/index.js +0 -90
  190. package/lib/SpecIcon/style/iconfont.less +0 -213
  191. package/lib/SpecIcon/style/index.less +0 -98
  192. package/lib/SplitterLayout/Pane.d.ts +0 -13
  193. package/lib/SplitterLayout/Pane.js +0 -48
  194. package/lib/SplitterLayout/index.js +0 -386
  195. package/lib/SplitterLayout/index.less +0 -58
  196. package/lib/StandardContent/SplitterLayout/Pane.js +0 -62
  197. package/lib/StandardContent/SplitterLayout/index.js +0 -387
  198. package/lib/StandardContent/SplitterLayout/index.less +0 -58
  199. package/lib/StandardContent/SubfieldContent.d.ts +0 -17
  200. package/lib/StandardContent/SubfieldContent.js +0 -56
  201. package/lib/StandardContent/WrapperContent.d.ts +0 -13
  202. package/lib/StandardContent/WrapperContent.js +0 -43
  203. package/lib/StandardContent/data.d.ts +0 -101
  204. package/lib/StandardContent/style/index.less +0 -80
  205. package/lib/StandardDragModal/index.d.ts +0 -11
  206. package/lib/StandardDragModal/index.js +0 -43
  207. package/lib/StandardFilter/index.d.ts +0 -35
  208. package/lib/StandardFilter/index.js +0 -272
  209. package/lib/StandardFilter/style/index.less +0 -62
  210. package/lib/StandardForm/ActionList.js +0 -57
  211. package/lib/StandardForm/StepForm.d.ts +0 -19
  212. package/lib/StandardForm/StepForm.js +0 -295
  213. package/lib/StandardForm/TabForm.d.ts +0 -19
  214. package/lib/StandardForm/TabForm.js +0 -148
  215. package/lib/StandardForm/index.d.ts +0 -32
  216. package/lib/StandardForm/index.js +0 -197
  217. package/lib/StandardForm/style/index.less +0 -58
  218. package/lib/StandardModal/UpdateFormRef.js +0 -32
  219. package/lib/StandardModal/index.d.ts +0 -44
  220. package/lib/StandardModal/index.js +0 -525
  221. package/lib/StandardModal/style/index.less +0 -50
  222. package/lib/StandardPanel/index.d.ts +0 -28
  223. package/lib/StandardPanel/index.js +0 -155
  224. package/lib/StandardPanel/style/index.less +0 -135
  225. package/lib/StandardTable/index.d.ts +0 -22
  226. package/lib/StandardTable/index.js +0 -143
  227. package/lib/StandardTable/style/index.d.ts +0 -1
  228. package/lib/StandardTable/style/index.js +0 -3
  229. package/lib/StandardTable/style/index.less +0 -206
  230. package/lib/components/IconNode/index.d.ts +0 -16
  231. package/lib/components/IconNode/index.js +0 -39
  232. package/lib/components/index.d.ts +0 -2
  233. package/lib/components/index.js +0 -15
  234. package/lib/data/func.code.js +0 -119
  235. package/lib/data/general.config.js +0 -179
  236. package/lib/data/index.js +0 -23
  237. package/lib/index.d.ts +0 -24
  238. package/lib/index.js +0 -236
  239. package/lib/styles/index.less +0 -0
  240. package/lib/theme/spec-variable.less +0 -48
  241. package/lib/utils/ValueFormat.js +0 -58
  242. package/lib/utils/filterPermission.js +0 -127
  243. package/lib/utils/getParentNodes.js +0 -226
  244. package/lib/utils/index.js +0 -35
@@ -1,112 +0,0 @@
1
- // 存储当前页面中所有菜单的涉及的功能代码,包括页面及按钮
2
- export default {
3
- btnFuncCodes: [{
4
- name: '详情',
5
- code: 'codeBtnDetail',
6
- icon: 'eye'
7
- }, {
8
- name: '新增',
9
- code: 'codeBtnCreate',
10
- icon: 'plus'
11
- }, {
12
- name: '修改',
13
- code: 'codeBtnUpdate',
14
- icon: 'edit'
15
- }, {
16
- name: '删除',
17
- code: 'codeBtnDelete',
18
- icon: 'delete'
19
- }, {
20
- name: '导入',
21
- code: 'codeBtnImport',
22
- icon: 'upload'
23
- }, {
24
- name: '导出',
25
- code: 'codeBtnDownload',
26
- icon: 'download'
27
- }, {
28
- name: '查看',
29
- code: 'codeBtnView',
30
- icon: 'eye'
31
- }, {
32
- name: '功能授权',
33
- code: 'codeBtnAuthorize',
34
- icon: 'filter'
35
- }, {
36
- name: '数据授权',
37
- code: 'codeBtnAuthorizeData',
38
- icon: 'filter'
39
- }, {
40
- name: '添加',
41
- code: 'codeBtnAdd',
42
- icon: 'plus'
43
- }, {
44
- name: '下架',
45
- code: 'codeBtnDown',
46
- icon: 'plus'
47
- }, {
48
- name: '发布',
49
- code: 'codeBtnPublish',
50
- icon: 'plus'
51
- }, {
52
- name: '推荐设置',
53
- code: 'codeBtnSetRecommend',
54
- icon: 'plus'
55
- }, {
56
- name: '处理',
57
- code: 'codeBtnDispose',
58
- icon: 'plus'
59
- }, {
60
- name: '激活',
61
- code: 'codeBtnActivate',
62
- icon: 'plus'
63
- }, {
64
- name: '新增审批节点',
65
- // 工作流管理模块
66
- code: 'codeBtnApproval',
67
- icon: 'plus'
68
- }, {
69
- name: '设置',
70
- // 设置(报警全局)
71
- code: 'codeBtnSetting',
72
- icon: 'plus'
73
- }, {
74
- name: '启用',
75
- // 启用
76
- code: 'codeBtnUsing',
77
- icon: 'plus'
78
- }, {
79
- name: '停用',
80
- // 启用
81
- code: 'codeBtnStop',
82
- icon: 'plus'
83
- }, {
84
- name: '执行',
85
- code: 'codeBtnTrigger',
86
- icon: 'plus'
87
- }, {
88
- name: '恢复',
89
- code: 'codeBtnResume',
90
- icon: 'plus'
91
- }, {
92
- name: '指派',
93
- code: 'codeBtnAssign',
94
- icon: 'plus'
95
- }, {
96
- name: '匹配设备',
97
- code: 'codeBtnMatch'
98
- }, {
99
- name: '路线设计',
100
- code: 'codeBtnDesign'
101
- }],
102
- pageFuncCodes: [{
103
- name: '新增',
104
- code: 'codePageAdd'
105
- }, {
106
- name: '编辑',
107
- code: 'codePageEdit'
108
- }, {
109
- name: '详情',
110
- code: 'codePageDetail'
111
- }]
112
- };
@@ -1,172 +0,0 @@
1
- // 一些排版等基本配置值项 (后期可参考是否放入 locales内)
2
- export default {
3
- // 表单 响应式排版
4
- formLayout: {
5
- labelCol: {
6
- xs: {
7
- span: 24
8
- },
9
- sm: {
10
- span: 5
11
- },
12
- md: {
13
- span: 4
14
- }
15
- },
16
- wrapperCol: {
17
- xs: {
18
- span: 24
19
- },
20
- sm: {
21
- span: 19
22
- },
23
- md: {
24
- span: 20
25
- }
26
- }
27
- },
28
- // 表单提交按钮位置排版
29
- submitFormLayout: {
30
- wrapperCol: {
31
- xs: {
32
- span: 24,
33
- offset: 0
34
- },
35
- sm: {
36
- span: 10,
37
- offset: 5
38
- },
39
- md: {
40
- span: 10,
41
- offset: 4
42
- }
43
- }
44
- },
45
- // 表单域宽度
46
- formItemStyle: {
47
- xs: {
48
- width: '60px'
49
- },
50
- sm: {
51
- width: '120px'
52
- },
53
- xsm: {
54
- width: '180px'
55
- },
56
- md: {
57
- width: '200px'
58
- },
59
- xmd: {
60
- width: '240px'
61
- },
62
- lg: {
63
- width: '300px'
64
- },
65
- xlg: {
66
- width: '500px'
67
- },
68
- wide: {
69
- width: '100%'
70
- }
71
- },
72
- // 弹窗梯度大小及对应的表单栅格
73
- modalSize: {
74
- xs: {
75
- width: 420,
76
- formLayout: {
77
- labelCol: {
78
- span: 7
79
- },
80
- wrapperCol: {
81
- span: 15
82
- }
83
- },
84
- formBlockLayout: {
85
- labelCol: {
86
- span: 7
87
- },
88
- wrapperCol: {
89
- span: 15
90
- }
91
- }
92
- },
93
- sm: {
94
- width: 680,
95
- formLayout: {
96
- labelCol: {
97
- span: 6
98
- },
99
- wrapperCol: {
100
- span: 14
101
- }
102
- },
103
- formBlockLayout: {
104
- labelCol: {
105
- span: 6
106
- },
107
- wrapperCol: {
108
- span: 14
109
- }
110
- }
111
- },
112
- md: {
113
- width: 780,
114
- formLayout: {
115
- labelCol: {
116
- span: 8
117
- },
118
- wrapperCol: {
119
- span: 14
120
- }
121
- },
122
- formBlockLayout: {
123
- labelCol: {
124
- span: 4
125
- },
126
- wrapperCol: {
127
- span: 19
128
- }
129
- }
130
- },
131
- // 宽度大,1000px下
132
- lg: {
133
- width: 1000,
134
- formLayout: {
135
- labelCol: {
136
- span: 9
137
- },
138
- wrapperCol: {
139
- span: 15
140
- }
141
- },
142
- formBlockLayout: {
143
- labelCol: {
144
- span: 3
145
- },
146
- wrapperCol: {
147
- span: 21
148
- }
149
- }
150
- },
151
- // 超级宽度大,1200px下
152
- xlg: {
153
- width: 1200,
154
- formLayout: {
155
- labelCol: {
156
- span: 9
157
- },
158
- wrapperCol: {
159
- span: 15
160
- }
161
- },
162
- formBlockLayout: {
163
- labelCol: {
164
- span: 3
165
- },
166
- wrapperCol: {
167
- span: 21
168
- }
169
- }
170
- }
171
- }
172
- };
package/es/data/index.js DELETED
@@ -1,3 +0,0 @@
1
- import general from './general.config';
2
- import funcCode from './func.code';
3
- export { general, funcCode };
package/es/index.d.ts DELETED
@@ -1,24 +0,0 @@
1
- export { default as SpecIcon } from './SpecIcon';
2
- export { default as ButtonGroup } from './ButtonGroup';
3
- export { default as RefactorTree } from './RefactorTree';
4
- export { default as StandardPanel } from './StandardPanel';
5
- export { default as StandardTable } from './StandardTable';
6
- export { default as StandardForm } from './StandardForm';
7
- export { default as StepForm } from './StandardForm/StepForm';
8
- export { default as TabForm } from './StandardForm/TabForm';
9
- export { default as StandardFilter } from './StandardFilter';
10
- export { default as StandardModal } from './StandardModal';
11
- export { default as Uploader } from './FormComp/Uploader';
12
- export { default as EditButton } from './FormComp/EditButton';
13
- export { default as FieldComponent } from './FormComp/FieldComponent';
14
- export { default as Field } from './FormComp/FieldComponent';
15
- export { default as RenderItemGroup } from './FormComp/RenderItemGroup';
16
- export { default as ItemGroup } from './FormComp/RenderItemGroup';
17
- export { default as SubfieldContent } from './StandardContent/SubfieldContent';
18
- export { default as WrapperContent } from './StandardContent/WrapperContent';
19
- export { default as DragContent } from './DragContent';
20
- export { default as SplitterLayout } from './StandardContent/SplitterLayout';
21
- export { default as NavLeafScroll } from './NavLeafScroll';
22
- export * from './components';
23
- export * from './utils';
24
- export * from './data';
package/es/index.js DELETED
@@ -1,31 +0,0 @@
1
- export { default as SpecIcon } from './SpecIcon';
2
- export { default as ButtonGroup } from './ButtonGroup';
3
- export { default as RefactorTree } from './RefactorTree'; // 通用组件
4
-
5
- export { default as StandardPanel } from './StandardPanel';
6
- export { default as StandardTable } from './StandardTable';
7
- export { default as StandardForm } from './StandardForm';
8
- export { default as StepForm } from './StandardForm/StepForm';
9
- export { default as TabForm } from './StandardForm/TabForm';
10
- export { default as StandardFilter } from './StandardFilter';
11
- export { default as StandardModal } from './StandardModal';
12
- export { default as Uploader } from './FormComp/Uploader';
13
- export { default as EditButton } from './FormComp/EditButton'; // 基础控件
14
-
15
- export { default as FieldComponent } from './FormComp/FieldComponent';
16
- export { default as Field } from './FormComp/FieldComponent'; // 表单组
17
-
18
- export { default as RenderItemGroup } from './FormComp/RenderItemGroup';
19
- export { default as ItemGroup } from './FormComp/RenderItemGroup'; // 页面内容结构
20
-
21
- export { default as SubfieldContent } from './StandardContent/SubfieldContent';
22
- export { default as WrapperContent } from './StandardContent/WrapperContent';
23
- export { default as DragContent } from './DragContent';
24
- export { default as SplitterLayout } from './StandardContent/SplitterLayout'; // 其他
25
-
26
- export { default as NavLeafScroll } from './NavLeafScroll';
27
- export * from './components'; // 工具类
28
-
29
- export * from './utils'; // 数据类
30
-
31
- export * from './data';
File without changes
@@ -1,48 +0,0 @@
1
- @root-entry-name: default;
2
- @import (reference) '~antd/es/style/themes/index';
3
-
4
- .spec-scrollbar-base(){
5
- &::-webkit-scrollbar-track-piece {
6
- background: fade(#c1c1c1, 10%);
7
- }
8
- &::-webkit-scrollbar {
9
- width: 6px;
10
- height: 6px;
11
- }
12
- &::-webkit-scrollbar-thumb {
13
- background: fade(#c1c1c1, 50%);
14
- border-radius: 20px;
15
- }
16
- }
17
- .spec-scrollbar(){
18
- &::-webkit-scrollbar-track-piece {
19
- background: fade(@primary-color, 10%);
20
- }
21
- &::-webkit-scrollbar {
22
- width: 6px;
23
- height: 6px;
24
- }
25
- &::-webkit-scrollbar-thumb {
26
- background: fade(@primary-color, 50%);
27
- border-radius: 20px;
28
- }
29
- }
30
- .spec-scrollbar-light() {
31
- &::-webkit-scrollbar {
32
- width: 4px;
33
- height: 4px;
34
- }
35
- &::-webkit-scrollbar-thumb {
36
- background: rgba(0,0,0,0.2);
37
- border-radius: 10px;
38
- -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
39
- }
40
- &::-webkit-scrollbar-track {
41
- background: rgba(0,0,0,0.1);
42
- border-radius: 0;
43
- -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
44
- }
45
- }
46
-
47
- @spec-box-shadow: 0 0 12px fade(@primary-color, 10%); // 蓝色阴影
48
- @spec-box-shadow-dark: 0 0 10px fade(#1E1E1E, 10%); // 灰色阴影
@@ -1,50 +0,0 @@
1
- /*
2
- * 工具类: 表单组控件值格式转换工具
3
- * @params {Object} fieldsValue: 表单组内的控件值
4
- * @params {Array} formItemGroup: 表单组
5
- * */
6
- var UtilValueFormat = function UtilValueFormat(fieldsValue, formItemGroup) {
7
- formItemGroup && formItemGroup.forEach(function (item) {
8
- var _item$protoConfig, _fieldsValue$item$fil, _item$protoConfig2, _fieldsValue$item$fil2, _item$protoConfig3, _fieldsValue$item$fil3, _item$protoConfig4;
9
-
10
- if (!fieldsValue[item.filedName]) return;
11
-
12
- switch (item.type) {
13
- case 'datePicker':
14
- case 'dateTimePicker':
15
- case 'rangePicker':
16
- case 'rangeTimePicker':
17
- var pickerFormatNew;
18
-
19
- if (item === null || item === void 0 ? void 0 : (_item$protoConfig = item.protoConfig) === null || _item$protoConfig === void 0 ? void 0 : _item$protoConfig.picker) {
20
- switch (item.protoConfig.picker) {
21
- case 'week':
22
- pickerFormatNew = 'YYYY-wo';
23
- break;
24
-
25
- case 'month':
26
- pickerFormatNew = 'MM月';
27
- break;
28
-
29
- case 'year':
30
- pickerFormatNew = 'YYYY';
31
- break;
32
-
33
- default:
34
- break;
35
- }
36
- } else {
37
- pickerFormatNew = item.type === 'datePicker' || item.type === 'rangePicker' ? 'YYYY-MM-DD' : 'YYYY-MM-DD HH:mm:ss';
38
- }
39
-
40
- fieldsValue[item.filedName] = item.type === 'datePicker' || item.type === 'dateTimePicker' ? (_fieldsValue$item$fil = fieldsValue[item.filedName]) === null || _fieldsValue$item$fil === void 0 ? void 0 : _fieldsValue$item$fil.format((item === null || item === void 0 ? void 0 : (_item$protoConfig2 = item.protoConfig) === null || _item$protoConfig2 === void 0 ? void 0 : _item$protoConfig2.format) || pickerFormatNew) : [(_fieldsValue$item$fil2 = fieldsValue[item.filedName][0]) === null || _fieldsValue$item$fil2 === void 0 ? void 0 : _fieldsValue$item$fil2.format((item === null || item === void 0 ? void 0 : (_item$protoConfig3 = item.protoConfig) === null || _item$protoConfig3 === void 0 ? void 0 : _item$protoConfig3.format) || pickerFormatNew), (_fieldsValue$item$fil3 = fieldsValue[item.filedName][1]) === null || _fieldsValue$item$fil3 === void 0 ? void 0 : _fieldsValue$item$fil3.format((item === null || item === void 0 ? void 0 : (_item$protoConfig4 = item.protoConfig) === null || _item$protoConfig4 === void 0 ? void 0 : _item$protoConfig4.format) || pickerFormatNew)];
41
- break;
42
-
43
- default:
44
- break;
45
- }
46
- });
47
- return fieldsValue;
48
- };
49
-
50
- export default UtilValueFormat;
@@ -1,111 +0,0 @@
1
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
2
-
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
4
-
5
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
-
7
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
8
-
9
- import _ from "lodash"; // 按钮方法
10
-
11
- var btnClickFunc = function btnClickFunc(fn) {
12
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
13
- if (!fn) return null;
14
- var paramsArr = [];
15
-
16
- if (_typeof(params) === 'object') {
17
- Object.keys(params).map(function (item) {
18
- paramsArr.push(params[item]);
19
- });
20
- }
21
-
22
- if (typeof fn === 'function') {
23
- return fn.apply(void 0, paramsArr); // 表格列返回的是方法
24
- }
25
-
26
- return fn;
27
- }; // 按钮是否禁用
28
-
29
-
30
- var btnIsDisabled = function btnIsDisabled(isDisabled) {
31
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
32
- if (!isDisabled) return false;
33
- var paramsArr = [];
34
-
35
- if (_typeof(params) === 'object') {
36
- Object.keys(params).map(function (item) {
37
- paramsArr.push(params[item]);
38
- });
39
- }
40
-
41
- if (typeof isDisabled === 'function') {
42
- return isDisabled.apply(void 0, paramsArr); // 表格列返回的是方法
43
- }
44
-
45
- return isDisabled;
46
- }; // 按钮是否隐藏
47
-
48
-
49
- var btnIsHide = function btnIsHide(isHide) {
50
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
51
- if (!isHide) return false;
52
- var paramsArr = [];
53
-
54
- if (_typeof(params) === 'object') {
55
- Object.keys(params).map(function (item) {
56
- paramsArr.push(params[item]);
57
- });
58
- }
59
-
60
- if (typeof isHide === 'function') {
61
- return isHide.apply(void 0, paramsArr); // 表格列返回的是方法
62
- }
63
-
64
- return isHide;
65
- }; // 重新组合数据(排除不包含在permissionCodes内及isHide数据
66
-
67
-
68
- var removeNoPermission = function removeNoPermission(array, permissionCodes, codes, params) {
69
- return Array.isArray(array) && array.filter(function (item) {
70
- if (item.children) {
71
- item.children = removeNoPermission(item.children, permissionCodes, codes, params);
72
- if (item.children.length === 0) return false; // 如果子集合过滤为空时,不返当前数据
73
- } // permissionCodes未定义,则直接返回不进行过滤
74
-
75
-
76
- if (item.hasOwnProperty('code') && permissionCodes) {
77
- // if (!permissionCodes) return true // permissionCodes未定义,则直接返回不进行过滤
78
- // 判断是否包含 'code'字段,如果包含则先过滤有在 permissionCodes内的(permissionCodes数组为0时,也不返回数据)
79
- // 并用是不隐藏的条件
80
- return permissionCodes.length !== 0 && permissionCodes.includes(item.code) && !btnIsHide(item.isHide, params);
81
- }
82
-
83
- if (item.hasOwnProperty('isHide')) {
84
- // 判断是否包含 'isHide'字段,如果包含则先过滤 isHide 为false
85
- return !btnIsHide(item.isHide, params);
86
- }
87
-
88
- return true;
89
- }).map(function (resultItem) {
90
- // 与codes进行对比,相应的 code匹配以对应的name,icon,code返回
91
- // 如果有配置code,则使用func.code.js里面配置的名称
92
- if (codes && resultItem.code) {
93
- var matchIndex = _.findIndex(codes, function (btnItem) {
94
- return btnItem.code === resultItem.code;
95
- });
96
-
97
- if (matchIndex !== -1) {
98
- var _codes$matchIndex;
99
-
100
- // 如果有配置code,则使用func.code.js里面配置的名称
101
- resultItem = _objectSpread(_objectSpread(_objectSpread({}, resultItem), codes[matchIndex]), {}, {
102
- icon: resultItem.icon || ((_codes$matchIndex = codes[matchIndex]) === null || _codes$matchIndex === void 0 ? void 0 : _codes$matchIndex.icon)
103
- });
104
- }
105
- }
106
-
107
- return resultItem;
108
- });
109
- };
110
-
111
- export { removeNoPermission, btnIsHide, btnIsDisabled, btnClickFunc };