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.
- package/package.json +1 -1
- package/dist/f26952c118ab6cdcd23dc0028ee98c11.svg +0 -173
- package/dist/fan-standard-comp.umd.js +0 -597
- package/dist/fonts/iconfont.eot +0 -0
- package/dist/fonts/iconfont.ttf +0 -0
- package/dist/fonts/iconfont.woff +0 -0
- package/es/ButtonGroup/ButtonList.d.ts +0 -2
- package/es/ButtonGroup/ButtonList.js +0 -37
- package/es/ButtonGroup/ButtonMenu.d.ts +0 -2
- package/es/ButtonGroup/ButtonMenu.js +0 -38
- package/es/ButtonGroup/PopConfirmTitle.d.ts +0 -9
- package/es/ButtonGroup/PopConfirmTitle.js +0 -37
- package/es/ButtonGroup/index.d.ts +0 -30
- package/es/ButtonGroup/index.js +0 -374
- package/es/ButtonGroup/style/index.less +0 -36
- package/es/DragContent/DragBar.js +0 -21
- package/es/DragContent/index.d.ts +0 -14
- package/es/DragContent/index.js +0 -173
- package/es/DragContent/index.less +0 -44
- package/es/FormComp/ChunkUploader/api.js +0 -76
- package/es/FormComp/ChunkUploader/index.js +0 -391
- package/es/FormComp/ChunkUploader/lib.js +0 -96
- package/es/FormComp/ChunkUploader/style/style.less +0 -3
- package/es/FormComp/ChunkUploader/upload-queue.class.js +0 -167
- package/es/FormComp/ChunkUploader/worker.js +0 -23
- package/es/FormComp/EditButton/index.d.ts +0 -26
- package/es/FormComp/EditButton/index.js +0 -140
- package/es/FormComp/FieldComponent/ReUpload.d.ts +0 -3
- package/es/FormComp/FieldComponent/ReUpload.js +0 -131
- package/es/FormComp/FieldComponent/RefactorTreeSelect.js +0 -245
- package/es/FormComp/FieldComponent/TitleNode.d.ts +0 -6
- package/es/FormComp/FieldComponent/TitleNode.js +0 -9
- package/es/FormComp/FieldComponent/index.d.ts +0 -38
- package/es/FormComp/FieldComponent/index.js +0 -413
- package/es/FormComp/FieldComponent/setReadonlyValues.js +0 -236
- package/es/FormComp/FieldComponent/style/index.less +0 -116
- package/es/FormComp/RenderItemGroup/index.d.ts +0 -37
- package/es/FormComp/RenderItemGroup/index.js +0 -234
- package/es/FormComp/Uploader/index.d.ts +0 -19
- package/es/FormComp/Uploader/index.js +0 -275
- package/es/FormComp/Uploader/style/index.less +0 -14
- package/es/FormComp/Uploader/util.d.ts +0 -8
- package/es/FormComp/Uploader/util.js +0 -38
- package/es/FormComp/VarTemplate/index.js +0 -293
- package/es/FormComp/index.d.ts +0 -1
- package/es/FormComp/index.js +0 -1
- package/es/NavLeafScroll/index.js +0 -379
- package/es/NavLeafScroll/style/index.less +0 -119
- package/es/RefactorTree/data.d.ts +0 -7
- package/es/RefactorTree/index.d.ts +0 -40
- package/es/RefactorTree/index.js +0 -167
- package/es/RefactorTree/indexTreeNode.d.ts +0 -39
- package/es/RefactorTree/indexTreeNode.js +0 -237
- package/es/RefactorTree/style/index.d.ts +0 -1
- package/es/RefactorTree/style/index.js +0 -1
- package/es/RefactorTree/style/index.less +0 -22
- package/es/RefactorTree/util.d.ts +0 -42
- package/es/RefactorTree/util.js +0 -187
- package/es/SpecIcon/fonts/demo.css +0 -539
- package/es/SpecIcon/fonts/demo_index.html +0 -1315
- package/es/SpecIcon/fonts/iconfont.css +0 -211
- package/es/SpecIcon/fonts/iconfont.eot +0 -0
- package/es/SpecIcon/fonts/iconfont.js +0 -41
- package/es/SpecIcon/fonts/iconfont.json +0 -352
- package/es/SpecIcon/fonts/iconfont.svg +0 -173
- package/es/SpecIcon/fonts/iconfont.ttf +0 -0
- package/es/SpecIcon/fonts/iconfont.woff +0 -0
- package/es/SpecIcon/fonts/iconfont.woff2 +0 -0
- package/es/SpecIcon/index.d.ts +0 -17
- package/es/SpecIcon/index.js +0 -77
- package/es/SpecIcon/style/iconfont.less +0 -213
- package/es/SpecIcon/style/index.less +0 -98
- package/es/SplitterLayout/Pane.d.ts +0 -13
- package/es/SplitterLayout/Pane.js +0 -36
- package/es/SplitterLayout/index.js +0 -375
- package/es/SplitterLayout/index.less +0 -58
- package/es/StandardContent/SplitterLayout/Pane.js +0 -50
- package/es/StandardContent/SplitterLayout/index.js +0 -374
- package/es/StandardContent/SplitterLayout/index.less +0 -58
- package/es/StandardContent/SubfieldContent.d.ts +0 -17
- package/es/StandardContent/SubfieldContent.js +0 -41
- package/es/StandardContent/WrapperContent.d.ts +0 -13
- package/es/StandardContent/WrapperContent.js +0 -29
- package/es/StandardContent/data.d.ts +0 -101
- package/es/StandardContent/style/index.less +0 -80
- package/es/StandardDragModal/index.d.ts +0 -11
- package/es/StandardDragModal/index.js +0 -30
- package/es/StandardFilter/index.d.ts +0 -35
- package/es/StandardFilter/index.js +0 -253
- package/es/StandardFilter/style/index.less +0 -62
- package/es/StandardForm/ActionList.js +0 -44
- package/es/StandardForm/StepForm.d.ts +0 -19
- package/es/StandardForm/StepForm.js +0 -267
- package/es/StandardForm/TabForm.d.ts +0 -19
- package/es/StandardForm/TabForm.js +0 -122
- package/es/StandardForm/index.d.ts +0 -32
- package/es/StandardForm/index.js +0 -170
- package/es/StandardForm/style/index.less +0 -58
- package/es/StandardModal/UpdateFormRef.js +0 -18
- package/es/StandardModal/index.d.ts +0 -44
- package/es/StandardModal/index.js +0 -495
- package/es/StandardModal/style/index.less +0 -50
- package/es/StandardPanel/index.d.ts +0 -28
- package/es/StandardPanel/index.js +0 -134
- package/es/StandardPanel/style/index.less +0 -135
- package/es/StandardTable/index.d.ts +0 -22
- package/es/StandardTable/index.js +0 -126
- package/es/StandardTable/style/index.d.ts +0 -1
- package/es/StandardTable/style/index.js +0 -1
- package/es/StandardTable/style/index.less +0 -206
- package/es/components/IconNode/index.d.ts +0 -16
- package/es/components/IconNode/index.js +0 -28
- package/es/components/index.d.ts +0 -2
- package/es/components/index.js +0 -2
- package/es/data/func.code.js +0 -112
- package/es/data/general.config.js +0 -172
- package/es/data/index.js +0 -3
- package/es/index.d.ts +0 -24
- package/es/index.js +0 -31
- package/es/styles/index.less +0 -0
- package/es/theme/spec-variable.less +0 -48
- package/es/utils/ValueFormat.js +0 -50
- package/es/utils/filterPermission.js +0 -111
- package/es/utils/getParentNodes.js +0 -215
- package/es/utils/index.js +0 -3
- package/lib/ButtonGroup/ButtonList.d.ts +0 -2
- package/lib/ButtonGroup/ButtonList.js +0 -55
- package/lib/ButtonGroup/ButtonMenu.d.ts +0 -2
- package/lib/ButtonGroup/ButtonMenu.js +0 -51
- package/lib/ButtonGroup/PopConfirmTitle.d.ts +0 -9
- package/lib/ButtonGroup/PopConfirmTitle.js +0 -48
- package/lib/ButtonGroup/index.d.ts +0 -30
- package/lib/ButtonGroup/index.js +0 -405
- package/lib/ButtonGroup/style/index.less +0 -36
- package/lib/DragContent/DragBar.js +0 -33
- package/lib/DragContent/index.d.ts +0 -14
- package/lib/DragContent/index.js +0 -191
- package/lib/DragContent/index.less +0 -44
- package/lib/FormComp/ChunkUploader/api.js +0 -89
- package/lib/FormComp/ChunkUploader/index.js +0 -410
- package/lib/FormComp/ChunkUploader/lib.js +0 -113
- package/lib/FormComp/ChunkUploader/style/style.less +0 -3
- package/lib/FormComp/ChunkUploader/upload-queue.class.js +0 -174
- package/lib/FormComp/ChunkUploader/worker.js +0 -28
- package/lib/FormComp/EditButton/index.d.ts +0 -26
- package/lib/FormComp/EditButton/index.js +0 -159
- package/lib/FormComp/FieldComponent/ReUpload.d.ts +0 -3
- package/lib/FormComp/FieldComponent/ReUpload.js +0 -151
- package/lib/FormComp/FieldComponent/RefactorTreeSelect.js +0 -268
- package/lib/FormComp/FieldComponent/TitleNode.d.ts +0 -6
- package/lib/FormComp/FieldComponent/TitleNode.js +0 -19
- package/lib/FormComp/FieldComponent/index.d.ts +0 -38
- package/lib/FormComp/FieldComponent/index.js +0 -457
- package/lib/FormComp/FieldComponent/setReadonlyValues.js +0 -263
- package/lib/FormComp/FieldComponent/style/index.less +0 -116
- package/lib/FormComp/RenderItemGroup/index.d.ts +0 -37
- package/lib/FormComp/RenderItemGroup/index.js +0 -255
- package/lib/FormComp/Uploader/index.d.ts +0 -19
- package/lib/FormComp/Uploader/index.js +0 -301
- package/lib/FormComp/Uploader/style/index.less +0 -14
- package/lib/FormComp/Uploader/util.d.ts +0 -8
- package/lib/FormComp/Uploader/util.js +0 -47
- package/lib/FormComp/VarTemplate/index.js +0 -308
- package/lib/FormComp/index.d.ts +0 -1
- package/lib/FormComp/index.js +0 -15
- package/lib/NavLeafScroll/index.js +0 -397
- package/lib/NavLeafScroll/style/index.less +0 -119
- package/lib/RefactorTree/data.d.ts +0 -7
- package/lib/RefactorTree/index.d.ts +0 -40
- package/lib/RefactorTree/index.js +0 -190
- package/lib/RefactorTree/indexTreeNode.d.ts +0 -39
- package/lib/RefactorTree/indexTreeNode.js +0 -260
- package/lib/RefactorTree/style/index.d.ts +0 -1
- package/lib/RefactorTree/style/index.js +0 -3
- package/lib/RefactorTree/style/index.less +0 -22
- package/lib/RefactorTree/util.d.ts +0 -42
- package/lib/RefactorTree/util.js +0 -195
- package/lib/SpecIcon/fonts/demo.css +0 -539
- package/lib/SpecIcon/fonts/demo_index.html +0 -1315
- package/lib/SpecIcon/fonts/iconfont.css +0 -211
- package/lib/SpecIcon/fonts/iconfont.eot +0 -0
- package/lib/SpecIcon/fonts/iconfont.js +0 -43
- package/lib/SpecIcon/fonts/iconfont.json +0 -352
- package/lib/SpecIcon/fonts/iconfont.svg +0 -173
- package/lib/SpecIcon/fonts/iconfont.ttf +0 -0
- package/lib/SpecIcon/fonts/iconfont.woff +0 -0
- package/lib/SpecIcon/fonts/iconfont.woff2 +0 -0
- package/lib/SpecIcon/index.d.ts +0 -17
- package/lib/SpecIcon/index.js +0 -90
- package/lib/SpecIcon/style/iconfont.less +0 -213
- package/lib/SpecIcon/style/index.less +0 -98
- package/lib/SplitterLayout/Pane.d.ts +0 -13
- package/lib/SplitterLayout/Pane.js +0 -48
- package/lib/SplitterLayout/index.js +0 -386
- package/lib/SplitterLayout/index.less +0 -58
- package/lib/StandardContent/SplitterLayout/Pane.js +0 -62
- package/lib/StandardContent/SplitterLayout/index.js +0 -387
- package/lib/StandardContent/SplitterLayout/index.less +0 -58
- package/lib/StandardContent/SubfieldContent.d.ts +0 -17
- package/lib/StandardContent/SubfieldContent.js +0 -56
- package/lib/StandardContent/WrapperContent.d.ts +0 -13
- package/lib/StandardContent/WrapperContent.js +0 -43
- package/lib/StandardContent/data.d.ts +0 -101
- package/lib/StandardContent/style/index.less +0 -80
- package/lib/StandardDragModal/index.d.ts +0 -11
- package/lib/StandardDragModal/index.js +0 -43
- package/lib/StandardFilter/index.d.ts +0 -35
- package/lib/StandardFilter/index.js +0 -272
- package/lib/StandardFilter/style/index.less +0 -62
- package/lib/StandardForm/ActionList.js +0 -57
- package/lib/StandardForm/StepForm.d.ts +0 -19
- package/lib/StandardForm/StepForm.js +0 -295
- package/lib/StandardForm/TabForm.d.ts +0 -19
- package/lib/StandardForm/TabForm.js +0 -148
- package/lib/StandardForm/index.d.ts +0 -32
- package/lib/StandardForm/index.js +0 -197
- package/lib/StandardForm/style/index.less +0 -58
- package/lib/StandardModal/UpdateFormRef.js +0 -32
- package/lib/StandardModal/index.d.ts +0 -44
- package/lib/StandardModal/index.js +0 -525
- package/lib/StandardModal/style/index.less +0 -50
- package/lib/StandardPanel/index.d.ts +0 -28
- package/lib/StandardPanel/index.js +0 -155
- package/lib/StandardPanel/style/index.less +0 -135
- package/lib/StandardTable/index.d.ts +0 -22
- package/lib/StandardTable/index.js +0 -143
- package/lib/StandardTable/style/index.d.ts +0 -1
- package/lib/StandardTable/style/index.js +0 -3
- package/lib/StandardTable/style/index.less +0 -206
- package/lib/components/IconNode/index.d.ts +0 -16
- package/lib/components/IconNode/index.js +0 -39
- package/lib/components/index.d.ts +0 -2
- package/lib/components/index.js +0 -15
- package/lib/data/func.code.js +0 -119
- package/lib/data/general.config.js +0 -179
- package/lib/data/index.js +0 -23
- package/lib/index.d.ts +0 -24
- package/lib/index.js +0 -236
- package/lib/styles/index.less +0 -0
- package/lib/theme/spec-variable.less +0 -48
- package/lib/utils/ValueFormat.js +0 -58
- package/lib/utils/filterPermission.js +0 -127
- package/lib/utils/getParentNodes.js +0 -226
- package/lib/utils/index.js +0 -35
package/es/data/func.code.js
DELETED
|
@@ -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
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';
|
package/es/styles/index.less
DELETED
|
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%); // 灰色阴影
|
package/es/utils/ValueFormat.js
DELETED
|
@@ -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 };
|