fan-standard-comp 3.2.1 → 4.0.1
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/LICENSE +21 -0
- package/README.md +15 -0
- package/dist/fan-standard-comp.min.css +1 -0
- package/dist/fan-standard-comp.min.js +1 -0
- package/es/ButtonGroup/PopConfirmTitle.d.ts +1 -1
- package/es/ButtonGroup/PopConfirmTitle.js +2 -2
- package/es/ButtonGroup/index.d.ts +5 -3
- package/es/ButtonGroup/index.js +259 -189
- package/es/ButtonGroup/styles/index.d.ts +8 -0
- package/es/ButtonGroup/styles/index.js +61 -0
- package/es/ButtonGroup/testStyles/index(antd-style).d.ts +11 -0
- package/es/ButtonGroup/testStyles/index(antd-style).js +28 -0
- package/es/ButtonGroup/testStyles/index(cssinjs).js +133 -0
- package/es/ButtonGroup/testStyles/index.d.ts +11 -0
- package/es/ButtonGroup/testStyles/index.js +23 -0
- package/es/CalendarCoordPicker/CalendarMonthPicker.d.ts +5 -0
- package/es/CalendarCoordPicker/CalendarMonthPicker.js +32 -0
- package/es/CalendarCoordPicker/index.d.ts +7 -0
- package/es/CalendarCoordPicker/index.js +314 -0
- package/es/CalendarCoordPicker/styles/index.d.ts +6 -0
- package/es/CalendarCoordPicker/styles/index.js +28 -0
- package/es/CalendarCoordPicker/styles/index.less +37 -0
- package/es/ConfigContext/index.d.ts +7 -0
- package/es/ConfigContext/index.js +20 -0
- package/es/DragContent/DragBar.d.ts +3 -0
- package/es/DragContent/DragBar.js +0 -1
- package/es/DragContent/index.d.ts +1 -1
- package/es/DragContent/index.js +20 -6
- package/es/DragContent/styles/index.d.ts +6 -0
- package/es/DragContent/styles/index.js +52 -0
- package/es/FormComp/ChunkUploader/api.js +11 -11
- package/es/FormComp/ChunkUploader/index.js +125 -132
- package/es/FormComp/ChunkUploader/lib.js +19 -19
- package/es/FormComp/ChunkUploader/upload-queue.class.js +51 -51
- package/es/FormComp/EditButton/index.d.ts +1 -1
- package/es/FormComp/EditButton/index.js +18 -17
- package/es/FormComp/FieldComponent/ReUpload.d.ts +1 -1
- package/es/FormComp/FieldComponent/ReUpload.js +45 -37
- package/es/FormComp/FieldComponent/RefactorTreeSelect.js +28 -19
- package/es/FormComp/FieldComponent/TitleNode.d.ts +2 -1
- package/es/FormComp/FieldComponent/UploaderViewer.d.ts +2 -0
- package/es/FormComp/FieldComponent/UploaderViewer.js +92 -0
- package/es/FormComp/FieldComponent/index.d.ts +1 -1
- package/es/FormComp/FieldComponent/index.js +88 -109
- package/es/FormComp/FieldComponent/setReadonlyValues.js +21 -15
- package/es/FormComp/FieldComponent/style/TreeSelect.d.ts +6 -0
- package/es/FormComp/FieldComponent/style/TreeSelect.js +42 -0
- package/es/FormComp/FieldComponent/style/UploaderStyle.d.ts +6 -0
- package/es/FormComp/FieldComponent/style/UploaderStyle.js +25 -0
- package/es/FormComp/FieldComponent/style/index.less +26 -21
- package/es/FormComp/RenderItemGroup/index.d.ts +4 -0
- package/es/FormComp/RenderItemGroup/index.js +183 -66
- package/es/FormComp/RenderItemGroup/style/index.d.ts +6 -0
- package/es/FormComp/RenderItemGroup/style/index.js +40 -0
- package/es/FormComp/Uploader/index.js +94 -75
- package/es/FormComp/Uploader/style/index.less +14 -14
- package/es/FormComp/Uploader/util.d.ts +2 -2
- package/es/FormComp/VarTemplate/index.js +32 -40
- package/es/FormComp/index.js +1 -1
- package/es/NavLeafScroll/Main.js +443 -0
- package/es/NavLeafScroll/index.d.ts +2 -0
- package/es/NavLeafScroll/index.js +21 -395
- package/es/NavLeafScroll/style/index.d.ts +6 -0
- package/es/NavLeafScroll/style/index.js +56 -0
- package/es/NavLeafScroll/style/index.less +22 -22
- package/es/RefactorTree/index.d.ts +1 -1
- package/es/RefactorTree/index.js +21 -19
- package/es/RefactorTree/style/index.js +1 -1
- package/es/RefactorTree/style/index.less +22 -22
- package/es/RefactorTree/util.d.ts +2 -2
- package/es/RefactorTree/util.js +30 -15
- package/es/SpecIcon/fonts/demo_index.html +559 -5
- package/es/SpecIcon/fonts/iconfont.css +101 -3
- package/es/SpecIcon/fonts/iconfont.js +34 -27
- package/es/SpecIcon/fonts/iconfont.json +168 -0
- package/es/SpecIcon/fonts/iconfont.svg +163 -171
- 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 -1
- package/es/SpecIcon/index.js +33 -12
- package/es/SpecIcon/styles/index(antd-style).d.ts +6 -0
- package/es/SpecIcon/styles/index(antd-style).js +13 -0
- package/es/SpecIcon/styles/index.d.ts +6 -0
- package/es/SpecIcon/styles/index.js +93 -0
- package/es/StandardContent/SplitterLayout/Pane.js +3 -3
- package/es/StandardContent/SplitterLayout/index.js +7 -6
- package/es/StandardContent/SplitterLayout/index.less +0 -1
- package/es/StandardContent/SubfieldContent.d.ts +3 -2
- package/es/StandardContent/SubfieldContent.js +24 -12
- package/es/StandardContent/WrapperContent.d.ts +2 -2
- package/es/StandardContent/WrapperContent.js +22 -11
- package/es/StandardContent/styles/Subfield.d.ts +6 -0
- package/es/StandardContent/styles/Subfield.js +30 -0
- package/es/StandardContent/styles/Wrapper.d.ts +6 -0
- package/es/StandardContent/styles/Wrapper.js +28 -0
- package/es/StandardContent/styles/index.less +67 -0
- package/es/StandardDragModal/ChangeStandardModal.d.ts +2 -2
- package/es/StandardDragModal/ChangeStandardModal.js +84 -71
- package/es/StandardDragModal/DraggableModal.js +7 -4
- package/es/StandardDragModal/DraggableModalContext.d.ts +1 -1
- package/es/StandardDragModal/DraggableModalInner.d.ts +2 -2
- package/es/StandardDragModal/DraggableModalInner.js +31 -21
- package/es/StandardDragModal/DraggableModalProvider.js +5 -5
- package/es/StandardDragModal/Modal.d.ts +1 -1
- package/es/StandardDragModal/Modal.js +8 -5
- package/es/StandardDragModal/ResizeHandle.js +2 -1
- package/es/StandardDragModal/draggableModalReducer.d.ts +4 -4
- package/es/StandardDragModal/draggableModalReducer.js +31 -22
- package/es/StandardDragModal/index.js +3 -3
- package/es/StandardDragModal/useDrag.js +2 -2
- package/es/StandardDragModal/useResize.js +2 -2
- package/es/StandardFilter/index.d.ts +8 -17
- package/es/StandardFilter/index.js +279 -206
- package/es/StandardFilter/style/FilterStyle.d.ts +6 -0
- package/es/StandardFilter/style/FilterStyle.js +50 -0
- package/es/StandardFilter/style/index.less +85 -36
- package/es/StandardForm/ActionList.d.ts +9 -0
- package/es/StandardForm/ActionList.js +5 -5
- package/es/StandardForm/StepForm.d.ts +1 -1
- package/es/StandardForm/StepForm.js +47 -40
- package/es/StandardForm/TabForm.d.ts +2 -1
- package/es/StandardForm/TabForm.js +50 -41
- package/es/StandardForm/index.d.ts +2 -1
- package/es/StandardForm/index.js +40 -22
- package/es/StandardForm/style/index.d.ts +6 -0
- package/es/StandardForm/style/index.js +49 -0
- package/es/StandardForm/style/index.less +23 -12
- package/es/StandardModal/UpdateFormRef.js +0 -1
- package/es/StandardModal/index.d.ts +4 -3
- package/es/StandardModal/index.js +153 -133
- package/es/StandardModal/style/index.d.ts +6 -0
- package/es/StandardModal/style/index.js +46 -0
- package/es/StandardModal/style/index.less +29 -29
- package/es/StandardPanel/index.d.ts +1 -1
- package/es/StandardPanel/index.js +28 -17
- package/es/StandardPanel/style/index.d.ts +6 -0
- package/es/StandardPanel/style/index.js +87 -0
- package/es/StandardPanel/style/index.less +30 -32
- package/es/StandardTable/index.d.ts +6 -1
- package/es/StandardTable/index.js +92 -40
- package/es/StandardTable/style/index.d.ts +6 -1
- package/es/StandardTable/style/index.js +113 -1
- package/es/StandardTable/style/index.less +89 -80
- package/es/components/IconNode/index.d.ts +1 -1
- package/es/components/IconNode/index.js +12 -1
- package/es/components/index.js +1 -1
- package/es/data/func.code.d.ts +16 -0
- package/es/data/general.config.d.ts +191 -0
- package/es/data/general.config.js +32 -1
- package/es/data/index.d.ts +3 -0
- package/es/data/index.js +2 -2
- package/es/index.d.ts +7 -6
- package/es/index.js +32 -26
- package/es/theme/index.d.ts +27 -0
- package/es/theme/index.js +29 -0
- package/es/theme/utils/genStyleHook.d.ts +1 -0
- package/es/theme/utils/genStyleHook.js +32 -0
- package/es/utils/ValueFormat.d.ts +3 -0
- package/es/utils/ValueFormat.js +17 -4
- package/es/utils/dictSelectUtil.d.ts +36 -0
- package/es/utils/dictSelectUtil.js +3 -3
- package/es/utils/filterPermission.d.ts +5 -0
- package/es/utils/filterPermission.js +4 -6
- package/es/utils/getParentNodes.d.ts +79 -0
- package/es/utils/getParentNodes.js +89 -13
- package/es/utils/index.d.ts +5 -0
- package/es/utils/index.js +5 -4
- package/es/utils/transferFile.d.ts +4 -0
- package/es/utils/transferFile.js +56 -0
- package/es/utils/urlUtils.d.ts +14 -0
- package/es/utils/urlUtils.js +77 -0
- package/lib/ButtonGroup/PopConfirmTitle.d.ts +1 -1
- package/lib/ButtonGroup/PopConfirmTitle.js +3 -4
- package/lib/ButtonGroup/index.d.ts +5 -3
- package/lib/ButtonGroup/index.js +261 -194
- package/lib/ButtonGroup/styles/index.d.ts +8 -0
- package/lib/ButtonGroup/styles/index.js +68 -0
- package/lib/ButtonGroup/testStyles/index(antd-style).d.ts +11 -0
- package/lib/ButtonGroup/testStyles/index(antd-style).js +34 -0
- package/lib/ButtonGroup/testStyles/index(cssinjs).js +134 -0
- package/lib/ButtonGroup/testStyles/index.d.ts +11 -0
- package/lib/ButtonGroup/testStyles/index.js +29 -0
- package/lib/CalendarCoordPicker/CalendarMonthPicker.d.ts +5 -0
- package/lib/CalendarCoordPicker/CalendarMonthPicker.js +41 -0
- package/lib/CalendarCoordPicker/index.d.ts +7 -0
- package/lib/CalendarCoordPicker/index.js +323 -0
- package/lib/CalendarCoordPicker/styles/index.d.ts +6 -0
- package/lib/CalendarCoordPicker/styles/index.js +34 -0
- package/lib/CalendarCoordPicker/styles/index.less +37 -0
- package/lib/ConfigContext/index.d.ts +7 -0
- package/lib/ConfigContext/index.js +25 -0
- package/lib/DragContent/DragBar.d.ts +3 -0
- package/lib/DragContent/DragBar.js +1 -3
- package/lib/DragContent/index.d.ts +1 -1
- package/lib/DragContent/index.js +22 -9
- package/lib/DragContent/styles/index.d.ts +6 -0
- package/lib/DragContent/styles/index.js +58 -0
- package/lib/FormComp/ChunkUploader/api.js +11 -11
- package/lib/FormComp/ChunkUploader/index.js +123 -130
- package/lib/FormComp/ChunkUploader/lib.js +19 -19
- package/lib/FormComp/ChunkUploader/upload-queue.class.js +52 -53
- package/lib/FormComp/EditButton/index.d.ts +1 -1
- package/lib/FormComp/EditButton/index.js +22 -22
- package/lib/FormComp/FieldComponent/ReUpload.d.ts +1 -1
- package/lib/FormComp/FieldComponent/ReUpload.js +47 -41
- package/lib/FormComp/FieldComponent/RefactorTreeSelect.js +29 -21
- package/lib/FormComp/FieldComponent/TitleNode.d.ts +2 -1
- package/lib/FormComp/FieldComponent/TitleNode.js +1 -2
- package/lib/FormComp/FieldComponent/UploaderViewer.d.ts +2 -0
- package/lib/FormComp/FieldComponent/UploaderViewer.js +102 -0
- package/lib/FormComp/FieldComponent/index.d.ts +1 -1
- package/lib/FormComp/FieldComponent/index.js +83 -107
- package/lib/FormComp/FieldComponent/setReadonlyValues.js +29 -28
- package/lib/FormComp/FieldComponent/style/TreeSelect.d.ts +6 -0
- package/lib/FormComp/FieldComponent/style/TreeSelect.js +48 -0
- package/lib/FormComp/FieldComponent/style/UploaderStyle.d.ts +6 -0
- package/lib/FormComp/FieldComponent/style/UploaderStyle.js +31 -0
- package/lib/FormComp/FieldComponent/style/index.less +26 -21
- package/lib/FormComp/RenderItemGroup/index.d.ts +4 -0
- package/lib/FormComp/RenderItemGroup/index.js +182 -65
- package/lib/FormComp/RenderItemGroup/style/index.d.ts +6 -0
- package/lib/FormComp/RenderItemGroup/style/index.js +46 -0
- package/lib/FormComp/Uploader/index.js +95 -80
- package/lib/FormComp/Uploader/style/index.less +14 -14
- package/lib/FormComp/Uploader/util.d.ts +2 -2
- package/lib/FormComp/VarTemplate/index.js +38 -48
- package/lib/NavLeafScroll/Main.js +451 -0
- package/lib/NavLeafScroll/index.d.ts +2 -0
- package/lib/NavLeafScroll/index.js +21 -398
- package/lib/NavLeafScroll/style/index.d.ts +6 -0
- package/lib/NavLeafScroll/style/index.js +62 -0
- package/lib/NavLeafScroll/style/index.less +22 -22
- package/lib/RefactorTree/index.d.ts +1 -1
- package/lib/RefactorTree/index.js +21 -21
- package/lib/RefactorTree/style/index.less +22 -22
- package/lib/RefactorTree/util.d.ts +2 -2
- package/lib/RefactorTree/util.js +30 -15
- package/lib/SpecIcon/fonts/demo_index.html +559 -5
- package/lib/SpecIcon/fonts/iconfont.css +101 -3
- package/lib/SpecIcon/fonts/iconfont.js +34 -27
- package/lib/SpecIcon/fonts/iconfont.json +168 -0
- package/lib/SpecIcon/fonts/iconfont.svg +163 -171
- 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 -1
- package/lib/SpecIcon/index.js +34 -14
- package/lib/SpecIcon/styles/index(antd-style).d.ts +6 -0
- package/lib/SpecIcon/styles/index(antd-style).js +19 -0
- package/lib/SpecIcon/styles/index.d.ts +6 -0
- package/lib/SpecIcon/styles/index.js +100 -0
- package/lib/StandardContent/SplitterLayout/Pane.js +3 -4
- package/lib/StandardContent/SplitterLayout/index.js +6 -6
- package/lib/StandardContent/SplitterLayout/index.less +0 -1
- package/lib/StandardContent/SubfieldContent.d.ts +3 -2
- package/lib/StandardContent/SubfieldContent.js +24 -13
- package/lib/StandardContent/WrapperContent.d.ts +2 -2
- package/lib/StandardContent/WrapperContent.js +23 -13
- package/lib/StandardContent/styles/Subfield.d.ts +6 -0
- package/lib/StandardContent/styles/Subfield.js +36 -0
- package/lib/StandardContent/styles/Wrapper.d.ts +6 -0
- package/lib/StandardContent/styles/Wrapper.js +34 -0
- package/lib/StandardContent/styles/index.less +67 -0
- package/lib/StandardDragModal/ChangeStandardModal.d.ts +2 -2
- package/lib/StandardDragModal/ChangeStandardModal.js +85 -72
- package/lib/StandardDragModal/DraggableModal.js +11 -8
- package/lib/StandardDragModal/DraggableModalContext.d.ts +1 -1
- package/lib/StandardDragModal/DraggableModalContext.js +3 -4
- package/lib/StandardDragModal/DraggableModalInner.d.ts +2 -2
- package/lib/StandardDragModal/DraggableModalInner.js +38 -30
- package/lib/StandardDragModal/DraggableModalProvider.js +10 -10
- package/lib/StandardDragModal/Modal.d.ts +1 -1
- package/lib/StandardDragModal/Modal.js +7 -5
- package/lib/StandardDragModal/ResizeHandle.js +6 -6
- package/lib/StandardDragModal/clamp.js +2 -3
- package/lib/StandardDragModal/draggableModalReducer.d.ts +4 -4
- package/lib/StandardDragModal/draggableModalReducer.js +34 -29
- package/lib/StandardDragModal/getWindowSize.js +2 -3
- package/lib/StandardDragModal/useDrag.js +4 -5
- package/lib/StandardDragModal/usePrevious.js +2 -3
- package/lib/StandardDragModal/useResize.js +4 -5
- package/lib/StandardFilter/index.d.ts +8 -17
- package/lib/StandardFilter/index.js +281 -207
- package/lib/StandardFilter/style/FilterStyle.d.ts +6 -0
- package/lib/StandardFilter/style/FilterStyle.js +56 -0
- package/lib/StandardFilter/style/index.less +85 -36
- package/lib/StandardForm/ActionList.d.ts +9 -0
- package/lib/StandardForm/ActionList.js +6 -7
- package/lib/StandardForm/StepForm.d.ts +1 -1
- package/lib/StandardForm/StepForm.js +46 -41
- package/lib/StandardForm/TabForm.d.ts +2 -1
- package/lib/StandardForm/TabForm.js +48 -41
- package/lib/StandardForm/index.d.ts +2 -1
- package/lib/StandardForm/index.js +39 -23
- package/lib/StandardForm/style/index.d.ts +6 -0
- package/lib/StandardForm/style/index.js +55 -0
- package/lib/StandardForm/style/index.less +23 -12
- package/lib/StandardModal/UpdateFormRef.js +3 -4
- package/lib/StandardModal/index.d.ts +4 -3
- package/lib/StandardModal/index.js +152 -133
- package/lib/StandardModal/style/index.d.ts +6 -0
- package/lib/StandardModal/style/index.js +52 -0
- package/lib/StandardModal/style/index.less +29 -29
- package/lib/StandardPanel/index.d.ts +1 -1
- package/lib/StandardPanel/index.js +29 -20
- package/lib/StandardPanel/style/index.d.ts +6 -0
- package/lib/StandardPanel/style/index.js +93 -0
- package/lib/StandardPanel/style/index.less +30 -32
- package/lib/StandardTable/index.d.ts +6 -1
- package/lib/StandardTable/index.js +93 -40
- package/lib/StandardTable/style/index.d.ts +6 -1
- package/lib/StandardTable/style/index.js +117 -1
- package/lib/StandardTable/style/index.less +89 -80
- package/lib/components/IconNode/index.d.ts +1 -1
- package/lib/components/IconNode/index.js +13 -3
- package/lib/data/func.code.d.ts +16 -0
- package/lib/data/func.code.js +2 -3
- package/lib/data/general.config.d.ts +191 -0
- package/lib/data/general.config.js +34 -4
- package/lib/data/index.d.ts +3 -0
- package/lib/index.d.ts +7 -6
- package/lib/index.js +24 -12
- package/lib/theme/index.d.ts +27 -0
- package/lib/theme/index.js +35 -0
- package/lib/theme/utils/genStyleHook.d.ts +1 -0
- package/lib/theme/utils/genStyleHook.js +38 -0
- package/lib/utils/ValueFormat.d.ts +3 -0
- package/lib/utils/ValueFormat.js +20 -6
- package/lib/utils/dictSelectUtil.d.ts +36 -0
- package/lib/utils/dictSelectUtil.js +3 -3
- package/lib/utils/filterPermission.d.ts +5 -0
- package/lib/utils/filterPermission.js +9 -16
- package/lib/utils/getParentNodes.d.ts +79 -0
- package/lib/utils/getParentNodes.js +91 -16
- package/lib/utils/index.d.ts +5 -0
- package/lib/utils/index.js +42 -32
- package/lib/utils/transferFile.d.ts +4 -0
- package/lib/utils/transferFile.js +63 -0
- package/lib/utils/urlUtils.d.ts +14 -0
- package/lib/utils/urlUtils.js +84 -0
- package/package.json +80 -33
- package/Readme.md +0 -49
- package/dist/f26952c118ab6cdcd23dc0028ee98c11.svg +0 -173
- package/dist/fan-standard-comp.umd.js +0 -602
- 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 -34
- package/es/ButtonGroup/ButtonMenu.d.ts +0 -2
- package/es/ButtonGroup/ButtonMenu.js +0 -35
- package/es/ButtonGroup/style/index.less +0 -36
- package/es/RefactorTree/indexTreeNode.d.ts +0 -39
- package/es/RefactorTree/indexTreeNode.js +0 -204
- 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 -33
- package/es/SplitterLayout/index.js +0 -325
- package/es/SplitterLayout/index.less +0 -58
- package/es/StandardContent/style/index.less +0 -80
- package/es/theme/spec-variable.less +0 -48
- package/lib/ButtonGroup/ButtonList.d.ts +0 -2
- package/lib/ButtonGroup/ButtonList.js +0 -43
- package/lib/ButtonGroup/ButtonMenu.d.ts +0 -2
- package/lib/ButtonGroup/ButtonMenu.js +0 -44
- package/lib/ButtonGroup/style/index.less +0 -36
- package/lib/RefactorTree/indexTreeNode.d.ts +0 -39
- package/lib/RefactorTree/indexTreeNode.js +0 -214
- 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 -41
- package/lib/SplitterLayout/index.js +0 -332
- package/lib/SplitterLayout/index.less +0 -58
- package/lib/StandardContent/style/index.less +0 -80
- package/lib/theme/spec-variable.less +0 -48
- /package/es/{styles/index.less → ButtonGroup/testStyles/index(cssinjs).d.ts} +0 -0
- /package/lib/{styles/index.less → ButtonGroup/testStyles/index(cssinjs).d.ts} +0 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
formLayout: {
|
|
3
|
+
labelCol: {
|
|
4
|
+
xs: {
|
|
5
|
+
span: number;
|
|
6
|
+
};
|
|
7
|
+
sm: {
|
|
8
|
+
span: number;
|
|
9
|
+
};
|
|
10
|
+
md: {
|
|
11
|
+
span: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
wrapperCol: {
|
|
15
|
+
xs: {
|
|
16
|
+
span: number;
|
|
17
|
+
};
|
|
18
|
+
sm: {
|
|
19
|
+
span: number;
|
|
20
|
+
};
|
|
21
|
+
md: {
|
|
22
|
+
span: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
submitFormLayout: {
|
|
27
|
+
wrapperCol: {
|
|
28
|
+
xs: {
|
|
29
|
+
span: number;
|
|
30
|
+
offset: number;
|
|
31
|
+
};
|
|
32
|
+
sm: {
|
|
33
|
+
span: number;
|
|
34
|
+
offset: number;
|
|
35
|
+
};
|
|
36
|
+
md: {
|
|
37
|
+
span: number;
|
|
38
|
+
offset: number;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
formItemStyle: {
|
|
43
|
+
xs: {
|
|
44
|
+
width: string;
|
|
45
|
+
};
|
|
46
|
+
sm: {
|
|
47
|
+
width: string;
|
|
48
|
+
};
|
|
49
|
+
xsm: {
|
|
50
|
+
width: string;
|
|
51
|
+
};
|
|
52
|
+
md: {
|
|
53
|
+
width: string;
|
|
54
|
+
};
|
|
55
|
+
xmd: {
|
|
56
|
+
width: string;
|
|
57
|
+
};
|
|
58
|
+
lg: {
|
|
59
|
+
width: string;
|
|
60
|
+
};
|
|
61
|
+
xlg: {
|
|
62
|
+
width: string;
|
|
63
|
+
};
|
|
64
|
+
wide: {
|
|
65
|
+
width: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
modalSize: {
|
|
69
|
+
xs: {
|
|
70
|
+
columnNumber: number;
|
|
71
|
+
width: number;
|
|
72
|
+
formLayout: {
|
|
73
|
+
labelCol: {
|
|
74
|
+
span: number;
|
|
75
|
+
};
|
|
76
|
+
wrapperCol: {
|
|
77
|
+
span: number;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
formBlockLayout: {
|
|
81
|
+
labelCol: {
|
|
82
|
+
span: number;
|
|
83
|
+
};
|
|
84
|
+
wrapperCol: {
|
|
85
|
+
span: number;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
sm: {
|
|
90
|
+
columnNumber: number;
|
|
91
|
+
width: number;
|
|
92
|
+
formLayout: {
|
|
93
|
+
labelCol: {
|
|
94
|
+
span: number;
|
|
95
|
+
};
|
|
96
|
+
wrapperCol: {
|
|
97
|
+
span: number;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
formBlockLayout: {
|
|
101
|
+
labelCol: {
|
|
102
|
+
span: number;
|
|
103
|
+
};
|
|
104
|
+
wrapperCol: {
|
|
105
|
+
span: number;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
md: {
|
|
110
|
+
columnNumber: number;
|
|
111
|
+
width: number;
|
|
112
|
+
formLayout: {
|
|
113
|
+
labelCol: {
|
|
114
|
+
span: number;
|
|
115
|
+
};
|
|
116
|
+
wrapperCol: {
|
|
117
|
+
span: number;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
formBlockLayout: {
|
|
121
|
+
labelCol: {
|
|
122
|
+
span: number;
|
|
123
|
+
};
|
|
124
|
+
wrapperCol: {
|
|
125
|
+
span: number;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
lg: {
|
|
130
|
+
columnNumber: number;
|
|
131
|
+
width: number;
|
|
132
|
+
formLayout: {
|
|
133
|
+
labelCol: {
|
|
134
|
+
span: number;
|
|
135
|
+
};
|
|
136
|
+
wrapperCol: {
|
|
137
|
+
span: number;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
formBlockLayout: {
|
|
141
|
+
labelCol: {
|
|
142
|
+
span: number;
|
|
143
|
+
};
|
|
144
|
+
wrapperCol: {
|
|
145
|
+
span: number;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
xlg: {
|
|
150
|
+
columnNumber: number;
|
|
151
|
+
width: number;
|
|
152
|
+
formLayout: {
|
|
153
|
+
labelCol: {
|
|
154
|
+
span: number;
|
|
155
|
+
};
|
|
156
|
+
wrapperCol: {
|
|
157
|
+
span: number;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
formBlockLayout: {
|
|
161
|
+
labelCol: {
|
|
162
|
+
span: number;
|
|
163
|
+
};
|
|
164
|
+
wrapperCol: {
|
|
165
|
+
span: number;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
xxlg: {
|
|
170
|
+
columnNumber: number;
|
|
171
|
+
width: number;
|
|
172
|
+
formLayout: {
|
|
173
|
+
labelCol: {
|
|
174
|
+
span: number;
|
|
175
|
+
};
|
|
176
|
+
wrapperCol: {
|
|
177
|
+
span: number;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
formBlockLayout: {
|
|
181
|
+
labelCol: {
|
|
182
|
+
span: number;
|
|
183
|
+
};
|
|
184
|
+
wrapperCol: {
|
|
185
|
+
span: number;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
export default _default;
|
|
@@ -72,6 +72,8 @@ export default {
|
|
|
72
72
|
// 弹窗梯度大小及对应的表单栅格
|
|
73
73
|
modalSize: {
|
|
74
74
|
xs: {
|
|
75
|
+
columnNumber: 1,
|
|
76
|
+
// 栅格列数量
|
|
75
77
|
width: 420,
|
|
76
78
|
formLayout: {
|
|
77
79
|
labelCol: {
|
|
@@ -91,7 +93,9 @@ export default {
|
|
|
91
93
|
}
|
|
92
94
|
},
|
|
93
95
|
sm: {
|
|
94
|
-
|
|
96
|
+
columnNumber: 1,
|
|
97
|
+
// 栅格列数量
|
|
98
|
+
width: 560,
|
|
95
99
|
formLayout: {
|
|
96
100
|
labelCol: {
|
|
97
101
|
span: 6
|
|
@@ -110,6 +114,8 @@ export default {
|
|
|
110
114
|
}
|
|
111
115
|
},
|
|
112
116
|
md: {
|
|
117
|
+
columnNumber: 2,
|
|
118
|
+
// 栅格列数量
|
|
113
119
|
width: 780,
|
|
114
120
|
formLayout: {
|
|
115
121
|
labelCol: {
|
|
@@ -130,6 +136,8 @@ export default {
|
|
|
130
136
|
},
|
|
131
137
|
// 宽度大,1000px下
|
|
132
138
|
lg: {
|
|
139
|
+
columnNumber: 3,
|
|
140
|
+
// 栅格列数量
|
|
133
141
|
width: 1000,
|
|
134
142
|
formLayout: {
|
|
135
143
|
labelCol: {
|
|
@@ -150,6 +158,8 @@ export default {
|
|
|
150
158
|
},
|
|
151
159
|
// 超级宽度大,1200px下
|
|
152
160
|
xlg: {
|
|
161
|
+
columnNumber: 3,
|
|
162
|
+
// 栅格列数量
|
|
153
163
|
width: 1200,
|
|
154
164
|
formLayout: {
|
|
155
165
|
labelCol: {
|
|
@@ -167,6 +177,27 @@ export default {
|
|
|
167
177
|
span: 21
|
|
168
178
|
}
|
|
169
179
|
}
|
|
180
|
+
},
|
|
181
|
+
xxlg: {
|
|
182
|
+
columnNumber: 4,
|
|
183
|
+
// 栅格列数量
|
|
184
|
+
width: 1400,
|
|
185
|
+
formLayout: {
|
|
186
|
+
labelCol: {
|
|
187
|
+
span: 8
|
|
188
|
+
},
|
|
189
|
+
wrapperCol: {
|
|
190
|
+
span: 16
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
formBlockLayout: {
|
|
194
|
+
labelCol: {
|
|
195
|
+
span: 2
|
|
196
|
+
},
|
|
197
|
+
wrapperCol: {
|
|
198
|
+
span: 22
|
|
199
|
+
}
|
|
200
|
+
}
|
|
170
201
|
}
|
|
171
202
|
}
|
|
172
203
|
};
|
package/es/data/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import general from
|
|
2
|
-
import funcCode from
|
|
1
|
+
import general from "./general.config";
|
|
2
|
+
import funcCode from "./func.code";
|
|
3
3
|
export { general, funcCode };
|
package/es/index.d.ts
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
export { default as SpecIcon } from './SpecIcon';
|
|
2
2
|
export { default as ButtonGroup } from './ButtonGroup';
|
|
3
|
+
export { default as NavLeafScroll } from './NavLeafScroll/';
|
|
4
|
+
export { default as SubfieldContent } from './StandardContent/SubfieldContent';
|
|
5
|
+
export { default as WrapperContent } from './StandardContent/WrapperContent';
|
|
6
|
+
export { default as DragContent } from './DragContent';
|
|
7
|
+
export { default as SplitterLayout } from './StandardContent/SplitterLayout';
|
|
3
8
|
export { default as RefactorTree } from './RefactorTree';
|
|
4
9
|
export { default as StandardPanel } from './StandardPanel';
|
|
5
10
|
export { default as StandardTable } from './StandardTable';
|
|
6
11
|
export { default as StandardForm } from './StandardForm';
|
|
7
12
|
export { default as StepForm } from './StandardForm/StepForm';
|
|
8
13
|
export { default as TabForm } from './StandardForm/TabForm';
|
|
9
|
-
export { default as StandardFilter } from './StandardFilter';
|
|
14
|
+
export { default as StandardFilter } from './StandardFilter/';
|
|
10
15
|
export { default as StandardModal } from './StandardModal';
|
|
11
16
|
export { default as StandardDragModal } from './StandardDragModal/Modal';
|
|
12
17
|
export { default as Uploader } from './FormComp/Uploader';
|
|
@@ -15,11 +20,7 @@ export { default as FieldComponent } from './FormComp/FieldComponent';
|
|
|
15
20
|
export { default as Field } from './FormComp/FieldComponent';
|
|
16
21
|
export { default as RenderItemGroup } from './FormComp/RenderItemGroup';
|
|
17
22
|
export { default as ItemGroup } from './FormComp/RenderItemGroup';
|
|
18
|
-
export { default as SubfieldContent } from './StandardContent/SubfieldContent';
|
|
19
|
-
export { default as WrapperContent } from './StandardContent/WrapperContent';
|
|
20
|
-
export { default as DragContent } from './DragContent';
|
|
21
|
-
export { default as SplitterLayout } from './StandardContent/SplitterLayout';
|
|
22
|
-
export { default as NavLeafScroll } from './NavLeafScroll';
|
|
23
23
|
export * from './components';
|
|
24
24
|
export * from './utils';
|
|
25
25
|
export * from './data';
|
|
26
|
+
export * from './ConfigContext';
|
package/es/index.js
CHANGED
|
@@ -1,32 +1,38 @@
|
|
|
1
|
-
export { default as SpecIcon } from
|
|
2
|
-
export { default as ButtonGroup } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
|
|
11
|
-
export { default as
|
|
12
|
-
export { default as
|
|
13
|
-
|
|
14
|
-
export { default as
|
|
1
|
+
export { default as SpecIcon } from "./SpecIcon";
|
|
2
|
+
export { default as ButtonGroup } from "./ButtonGroup";
|
|
3
|
+
// 其他
|
|
4
|
+
export { default as NavLeafScroll } from "./NavLeafScroll/";
|
|
5
|
+
|
|
6
|
+
// 页面内容结构
|
|
7
|
+
export { default as SubfieldContent } from "./StandardContent/SubfieldContent";
|
|
8
|
+
export { default as WrapperContent } from "./StandardContent/WrapperContent";
|
|
9
|
+
export { default as DragContent } from "./DragContent";
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
export { default as SplitterLayout } from "./StandardContent/SplitterLayout";
|
|
12
|
+
export { default as RefactorTree } from "./RefactorTree";
|
|
13
|
+
// // 通用组件
|
|
14
|
+
export { default as StandardPanel } from "./StandardPanel";
|
|
15
|
+
export { default as StandardTable } from "./StandardTable";
|
|
16
|
+
export { default as StandardForm } from "./StandardForm";
|
|
17
|
+
export { default as StepForm } from "./StandardForm/StepForm";
|
|
18
|
+
export { default as TabForm } from "./StandardForm/TabForm";
|
|
19
|
+
export { default as StandardFilter } from "./StandardFilter/";
|
|
20
|
+
export { default as StandardModal } from "./StandardModal";
|
|
21
|
+
export { default as StandardDragModal } from "./StandardDragModal/Modal";
|
|
22
|
+
export { default as Uploader } from "./FormComp/Uploader";
|
|
23
|
+
export { default as EditButton } from "./FormComp/EditButton";
|
|
15
24
|
// 基础控件
|
|
16
|
-
export { default as FieldComponent } from
|
|
17
|
-
export { default as Field } from
|
|
25
|
+
export { default as FieldComponent } from "./FormComp/FieldComponent";
|
|
26
|
+
export { default as Field } from "./FormComp/FieldComponent";
|
|
18
27
|
// 表单组
|
|
19
|
-
export { default as RenderItemGroup } from
|
|
20
|
-
export { default as ItemGroup } from
|
|
28
|
+
export { default as RenderItemGroup } from "./FormComp/RenderItemGroup";
|
|
29
|
+
export { default as ItemGroup } from "./FormComp/RenderItemGroup";
|
|
21
30
|
// 页面内容结构
|
|
22
|
-
export { default as SubfieldContent } from './StandardContent/SubfieldContent';
|
|
23
|
-
export { default as WrapperContent } from './StandardContent/WrapperContent';
|
|
24
|
-
export { default as DragContent } from './DragContent';
|
|
25
|
-
export { default as SplitterLayout } from './StandardContent/SplitterLayout';
|
|
26
31
|
// 其他
|
|
27
|
-
export
|
|
28
|
-
export * from './components';
|
|
32
|
+
export * from "./components";
|
|
29
33
|
// 工具类
|
|
30
|
-
export * from
|
|
34
|
+
export * from "./utils";
|
|
31
35
|
// 数据类
|
|
32
|
-
export * from
|
|
36
|
+
export * from "./data";
|
|
37
|
+
// 上下文
|
|
38
|
+
export * from "./ConfigContext";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { GlobalToken } from "antd";
|
|
2
|
+
export declare const scrollBar: (token: GlobalToken) => {
|
|
3
|
+
"&::-webkit-scrollbar-track-piece": {
|
|
4
|
+
background: string;
|
|
5
|
+
};
|
|
6
|
+
"&::-webkit-scrollbar": {
|
|
7
|
+
width: string;
|
|
8
|
+
height: string;
|
|
9
|
+
};
|
|
10
|
+
"&::-webkit-scrollbar-thumb": {
|
|
11
|
+
background: string;
|
|
12
|
+
borderRadius: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const scrollBarPrimary: (token: GlobalToken) => {
|
|
16
|
+
"&::-webkit-scrollbar-track-piece": {
|
|
17
|
+
background: string;
|
|
18
|
+
};
|
|
19
|
+
"&::-webkit-scrollbar": {
|
|
20
|
+
width: string;
|
|
21
|
+
height: string;
|
|
22
|
+
};
|
|
23
|
+
"&::-webkit-scrollbar-thumb": {
|
|
24
|
+
background: string;
|
|
25
|
+
borderRadius: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
|
+
import { TinyColor } from '@ctrl/tinycolor';
|
|
6
|
+
export var scrollBar = function scrollBar(token) {
|
|
7
|
+
return _defineProperty(_defineProperty(_defineProperty({}, '&::-webkit-scrollbar-track-piece', {
|
|
8
|
+
background: new TinyColor('#c1c1c1').setAlpha(0.1).toRgbString() // new TinyColor(token.colorPrimary).setAlpha(0.1)
|
|
9
|
+
}), '&::-webkit-scrollbar', {
|
|
10
|
+
width: '6px',
|
|
11
|
+
height: '6px'
|
|
12
|
+
}), '&::-webkit-scrollbar-thumb', {
|
|
13
|
+
background: new TinyColor('#c1c1c1').setAlpha(0.5).toRgbString(),
|
|
14
|
+
// new TinyColor(token.colorPrimary).setAlpha(0.5),
|
|
15
|
+
borderRadius: '20px'
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
export var scrollBarPrimary = function scrollBarPrimary(token) {
|
|
19
|
+
return _defineProperty(_defineProperty(_defineProperty({}, '&::-webkit-scrollbar-track-piece', {
|
|
20
|
+
background: new TinyColor(token.colorPrimary).setAlpha(0.1).toRgbString() // new TinyColor(token.colorPrimary).setAlpha(0.1)
|
|
21
|
+
}), '&::-webkit-scrollbar', {
|
|
22
|
+
width: '6px',
|
|
23
|
+
height: '6px'
|
|
24
|
+
}), '&::-webkit-scrollbar-thumb', {
|
|
25
|
+
background: new TinyColor(token.colorPrimary).setAlpha(0.5).toRgbString(),
|
|
26
|
+
// new TinyColor(token.colorPrimary).setAlpha(0.5),
|
|
27
|
+
borderRadius: '20px'
|
|
28
|
+
});
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createStyleHook: any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { theme } from 'antd';
|
|
8
|
+
import { useStyleRegister } from "@ant-design/cssinjs";
|
|
9
|
+
// import _ from 'lodash'
|
|
10
|
+
|
|
11
|
+
var useToken = theme.useToken;
|
|
12
|
+
export var createStyleHook = function createStyleHook(componentName, styleFn, getDefaultToken) {
|
|
13
|
+
var _useToken = useToken(),
|
|
14
|
+
theme = _useToken.theme,
|
|
15
|
+
token = _useToken.token,
|
|
16
|
+
hashId = _useToken.hashId;
|
|
17
|
+
var prefixCls = 'spec';
|
|
18
|
+
var defaultComponentToken = typeof getDefaultToken === 'function' ? getDefaultToken(token) : getDefaultToken;
|
|
19
|
+
var mergedComponentToken = _objectSpread(_objectSpread({}, defaultComponentToken), token);
|
|
20
|
+
return [useStyleRegister({
|
|
21
|
+
theme: theme,
|
|
22
|
+
token: mergedComponentToken,
|
|
23
|
+
hashId: hashId,
|
|
24
|
+
path: [prefixCls, componentName]
|
|
25
|
+
}, function () {
|
|
26
|
+
return styleFn(mergedComponentToken, {
|
|
27
|
+
theme: theme,
|
|
28
|
+
hashId: hashId,
|
|
29
|
+
path: [prefixCls, componentName]
|
|
30
|
+
});
|
|
31
|
+
}), hashId];
|
|
32
|
+
};
|
package/es/utils/ValueFormat.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import dayjs from 'dayjs';
|
|
1
3
|
/*
|
|
2
4
|
* 工具类: 表单组控件值格式转换工具
|
|
3
5
|
* @params {Object} fieldsValue: 表单组内的控件值
|
|
4
6
|
* @params {Array} formItemGroup: 表单组
|
|
5
7
|
* */
|
|
6
|
-
var
|
|
8
|
+
var dateFieldTypes = ['datePicker', 'dateTimePicker', 'rangePicker', 'rangeTimePicker', 'timePicker', 'timePickerRange'];
|
|
9
|
+
export var UtilValueFormat = function UtilValueFormat(fieldsValue, formItemGroup) {
|
|
7
10
|
formItemGroup && formItemGroup.forEach(function (item) {
|
|
8
11
|
var _item$protoConfig, _fieldsValue$item$fil, _item$protoConfig2, _fieldsValue$item$fil2, _item$protoConfig3, _fieldsValue$item$fil3, _item$protoConfig4;
|
|
9
12
|
if (!fieldsValue[item.filedName]) return;
|
|
@@ -13,7 +16,7 @@ var UtilValueFormat = function UtilValueFormat(fieldsValue, formItemGroup) {
|
|
|
13
16
|
case 'rangePicker':
|
|
14
17
|
case 'rangeTimePicker':
|
|
15
18
|
var pickerFormatNew;
|
|
16
|
-
if (item
|
|
19
|
+
if (item !== null && item !== void 0 && (_item$protoConfig = item.protoConfig) !== null && _item$protoConfig !== void 0 && _item$protoConfig.picker) {
|
|
17
20
|
switch (item.protoConfig.picker) {
|
|
18
21
|
case 'week':
|
|
19
22
|
pickerFormatNew = 'YYYY-wo';
|
|
@@ -30,7 +33,7 @@ var UtilValueFormat = function UtilValueFormat(fieldsValue, formItemGroup) {
|
|
|
30
33
|
} else {
|
|
31
34
|
pickerFormatNew = item.type === 'datePicker' || item.type === 'rangePicker' ? 'YYYY-MM-DD' : 'YYYY-MM-DD HH:mm:ss';
|
|
32
35
|
}
|
|
33
|
-
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
|
|
36
|
+
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 || (_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 || (_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 || (_item$protoConfig4 = item.protoConfig) === null || _item$protoConfig4 === void 0 ? void 0 : _item$protoConfig4.format) || pickerFormatNew)];
|
|
34
37
|
break;
|
|
35
38
|
default:
|
|
36
39
|
break;
|
|
@@ -38,4 +41,14 @@ var UtilValueFormat = function UtilValueFormat(fieldsValue, formItemGroup) {
|
|
|
38
41
|
});
|
|
39
42
|
return fieldsValue;
|
|
40
43
|
};
|
|
41
|
-
|
|
44
|
+
|
|
45
|
+
/*
|
|
46
|
+
* 工具类: 字符串内的时间或日期格式转换成dayjs格式
|
|
47
|
+
* @params {Object} fieldsValue: 表单组内的控件值
|
|
48
|
+
* @params {Array} formItemGroup: 表单组
|
|
49
|
+
* */
|
|
50
|
+
export var dateOrTimeStringToDayjs = function dateOrTimeStringToDayjs() {};
|
|
51
|
+
export var isDate = function isDate(value) {
|
|
52
|
+
// 尝试解析日期,如果无法解析则返回 false
|
|
53
|
+
return dayjs(value).isValid();
|
|
54
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 字典 取值数据
|
|
3
|
+
* author: shomychen
|
|
4
|
+
* date: 2022.12.30
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* 字典值替换文本通用方法
|
|
8
|
+
* @param {Array} dictOptions 字典数组
|
|
9
|
+
* @param {String} text 字典值(多个可以用,隔开)
|
|
10
|
+
* @param {Object} optionName 指定字段值(默认 { value: 'value', label: 'label' })
|
|
11
|
+
*
|
|
12
|
+
* @return String
|
|
13
|
+
*/
|
|
14
|
+
export declare function filterDictText(dictOptions: any[], text: string | number, optionName?: {
|
|
15
|
+
value: string;
|
|
16
|
+
label: string;
|
|
17
|
+
}): string | number;
|
|
18
|
+
/**
|
|
19
|
+
* 字典值替换文本通用方法(多选)
|
|
20
|
+
* @param {Array} dictOptions 字典数组
|
|
21
|
+
* @param {String, Array} text 字典值(多个可以用,隔开或者是数组格式)
|
|
22
|
+
* @param {Object} optionName 指定字段值(默认 { value: 'value', label: 'label' })
|
|
23
|
+
*
|
|
24
|
+
* @return String
|
|
25
|
+
*/
|
|
26
|
+
export declare function filterMultiDictText(dictOptions: any[], text: string | number, optionName?: {
|
|
27
|
+
value: string;
|
|
28
|
+
label: string;
|
|
29
|
+
}): any;
|
|
30
|
+
/**
|
|
31
|
+
* 转换数据字典value为整型
|
|
32
|
+
* @param {Array} dictOptions 字典数组
|
|
33
|
+
*
|
|
34
|
+
* @return Array
|
|
35
|
+
* */
|
|
36
|
+
export declare function transformDictValue(dictOptions: any[]): any[];
|
|
@@ -2,11 +2,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
8
8
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
9
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
9
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
10
10
|
/**
|
|
11
11
|
* 字典 取值数据
|
|
12
12
|
* author: shomychen
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const btnClickFunc: (fn: any, params?: {}) => any;
|
|
2
|
+
declare const btnIsDisabled: (isDisabled: any, params?: {}) => any;
|
|
3
|
+
declare const btnIsHide: (isHide: any, params?: {}) => any;
|
|
4
|
+
declare const removeNoPermission: (array: any, permissionCodes: any, codes: any, params: any) => false | any[];
|
|
5
|
+
export { removeNoPermission, btnIsHide, btnIsDisabled, btnClickFunc };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
2
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
3
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
|
-
function _toPropertyKey(
|
|
5
|
-
function _toPrimitive(
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
6
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
7
|
+
// @ts-nocheck
|
|
7
8
|
import _ from "lodash";
|
|
8
9
|
// 按钮方法
|
|
9
10
|
var btnClickFunc = function btnClickFunc(fn) {
|
|
@@ -18,7 +19,6 @@ var btnClickFunc = function btnClickFunc(fn) {
|
|
|
18
19
|
if (typeof fn === 'function') {
|
|
19
20
|
return fn.apply(void 0, paramsArr); // 表格列返回的是方法
|
|
20
21
|
}
|
|
21
|
-
|
|
22
22
|
return fn;
|
|
23
23
|
};
|
|
24
24
|
// 按钮是否禁用
|
|
@@ -34,7 +34,6 @@ var btnIsDisabled = function btnIsDisabled(isDisabled) {
|
|
|
34
34
|
if (typeof isDisabled === 'function') {
|
|
35
35
|
return isDisabled.apply(void 0, paramsArr); // 表格列返回的是方法
|
|
36
36
|
}
|
|
37
|
-
|
|
38
37
|
return isDisabled;
|
|
39
38
|
};
|
|
40
39
|
// 按钮是否隐藏
|
|
@@ -50,7 +49,6 @@ var btnIsHide = function btnIsHide(isHide) {
|
|
|
50
49
|
if (typeof isHide === 'function') {
|
|
51
50
|
return isHide.apply(void 0, paramsArr); // 表格列返回的是方法
|
|
52
51
|
}
|
|
53
|
-
|
|
54
52
|
return isHide;
|
|
55
53
|
};
|
|
56
54
|
// 重新组合数据(排除不包含在permissionCodes内及isHide数据
|
|
@@ -83,7 +81,7 @@ var removeNoPermission = function removeNoPermission(array, permissionCodes, cod
|
|
|
83
81
|
var _codes$matchIndex;
|
|
84
82
|
// 如果有配置code,则使用func.code.js里面配置的名称
|
|
85
83
|
resultItem = _objectSpread(_objectSpread(_objectSpread({}, resultItem), codes[matchIndex]), {}, {
|
|
86
|
-
icon: resultItem.icon || ((_codes$matchIndex = codes[matchIndex]) === null || _codes$matchIndex === void 0 ? void 0 : _codes$matchIndex.icon)
|
|
84
|
+
icon: resultItem.icon === '' || resultItem.icon === null ? resultItem.icon : resultItem.icon || ((_codes$matchIndex = codes[matchIndex]) === null || _codes$matchIndex === void 0 ? void 0 : _codes$matchIndex.icon)
|
|
87
85
|
});
|
|
88
86
|
}
|
|
89
87
|
}
|