@teamix/pro 1.0.22 → 1.1.0
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/dist/all.css +1 -1
- package/dist/all.js +12421 -13334
- package/dist/all.min.css +1 -1
- package/dist/all.min.js +1 -1
- package/es/actions/base.d.ts +13 -0
- package/es/actions/base.js +23 -0
- package/es/actions/confirm.d.ts +7 -0
- package/es/actions/confirm.js +11 -0
- package/es/actions/danger-confirm.d.ts +7 -0
- package/es/actions/danger-confirm.js +14 -0
- package/es/actions/dialog-component.d.ts +10 -0
- package/es/actions/dialog-component.js +25 -0
- package/es/actions/dialog-form.d.ts +15 -0
- package/es/actions/dialog-form.js +129 -0
- package/es/actions/dialog-table.d.ts +4 -0
- package/es/actions/dialog-table.js +1 -0
- package/es/actions/dialog.d.ts +17 -0
- package/es/actions/dialog.js +197 -0
- package/es/actions/drawer-form.d.ts +6 -0
- package/es/actions/drawer-form.js +7 -0
- package/es/actions/drawer-table.d.ts +2 -0
- package/es/actions/drawer-table.js +1 -0
- package/es/actions/drawer.d.ts +6 -0
- package/es/actions/drawer.js +7 -0
- package/es/actions/error.d.ts +7 -0
- package/es/actions/error.js +11 -0
- package/es/actions/index.d.ts +76 -0
- package/es/actions/index.js +317 -0
- package/es/actions/index.scss +34 -0
- package/es/actions/link.d.ts +14 -0
- package/es/actions/link.js +45 -0
- package/es/actions/notice.d.ts +7 -0
- package/es/actions/notice.js +11 -0
- package/es/actions/request.d.ts +9 -0
- package/es/actions/request.js +60 -0
- package/es/card/index.d.ts +30 -0
- package/es/card/index.js +159 -0
- package/es/card/index.scss +98 -0
- package/es/field/index.d.ts +3 -0
- package/es/field/index.js +3 -0
- package/es/form/Components/Editable/index.d.ts +20 -0
- package/es/form/Components/Editable/index.js +228 -0
- package/es/form/Components/FormGroup/index.d.ts +13 -0
- package/es/form/Components/FormGroup/index.js +89 -0
- package/es/form/Components/FormGroup/index.scss +23 -0
- package/es/form/Components/ProField/index.d.ts +150 -0
- package/es/form/Components/ProField/index.js +53 -0
- package/es/form/Components/Query/index.d.ts +4 -0
- package/es/form/Components/Query/index.js +70 -0
- package/es/form/Components/Query/index.scss +90 -0
- package/es/form/Components/QueryFilter/index.d.ts +3 -0
- package/es/form/Components/QueryFilter/index.js +111 -0
- package/es/form/Components/Search/index.d.ts +11 -0
- package/es/form/Components/Search/index.js +89 -0
- package/es/form/Filter/index.d.ts +16 -0
- package/es/form/Filter/index.js +218 -0
- package/es/form/ProForm/index.d.ts +5 -0
- package/es/form/ProForm/index.js +100 -0
- package/es/form/ProForm/index.scss +248 -0
- package/es/form/SchemaForm/adapterComponent.d.ts +5 -0
- package/es/form/SchemaForm/adapterComponent.js +17 -0
- package/es/form/SchemaForm/adapterDecorator.d.ts +6 -0
- package/es/form/SchemaForm/adapterDecorator.js +28 -0
- package/es/form/SchemaForm/adapterType.d.ts +5 -0
- package/es/form/SchemaForm/adapterType.js +54 -0
- package/es/form/SchemaForm/index.d.ts +4 -0
- package/es/form/SchemaForm/index.js +258 -0
- package/es/form/SchemaForm/initializeArrayCards.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayCards.js +69 -0
- package/es/form/SchemaForm/initializeArrayCollapse.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayCollapse.js +78 -0
- package/es/form/SchemaForm/initializeArrayIcon.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayIcon.js +50 -0
- package/es/form/SchemaForm/initializeArrayItems.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayItems.js +97 -0
- package/es/form/SchemaForm/initializeArrayTable.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayTable.js +66 -0
- package/es/form/SchemaForm/initializeFormButton.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormButton.js +75 -0
- package/es/form/SchemaForm/initializeFormCollapse.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormCollapse.js +43 -0
- package/es/form/SchemaForm/initializeFormGroup.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormGroup.js +46 -0
- package/es/form/SchemaForm/initializeFormStep.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormStep.js +48 -0
- package/es/form/SchemaForm/initializeFormTab.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormTab.js +53 -0
- package/es/form/SchemaForm/initializeProField.d.ts +5 -0
- package/es/form/SchemaForm/initializeProField.js +69 -0
- package/es/form/SchemaForm/initializeRequest.d.ts +11 -0
- package/es/form/SchemaForm/initializeRequest.js +25 -0
- package/es/form/SchemaForm/reactions.d.ts +4 -0
- package/es/form/SchemaForm/reactions.js +62 -0
- package/es/form/index.d.ts +20 -0
- package/es/form/index.js +24 -0
- package/es/form/typing.d.ts +78 -0
- package/es/form/typing.js +1 -0
- package/es/form/utils.d.ts +9 -0
- package/es/form/utils.js +108 -0
- package/es/form/warning.d.ts +3 -0
- package/es/form/warning.js +20 -0
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/index.js +2 -0
- package/es/index.d.ts +24 -22
- package/es/index.js +25 -23
- package/es/info/components/FormItem/index.d.ts +5 -0
- package/es/info/components/FormItem/index.js +63 -0
- package/es/info/components/FormItem/index.scss +49 -0
- package/es/info/components/InfoGroup/index.d.ts +5 -0
- package/es/info/components/InfoGroup/index.js +16 -0
- package/es/info/components/InfoGroup/index.scss +8 -0
- package/es/info/components/InfoValueItem/index.d.ts +5 -0
- package/es/info/components/InfoValueItem/index.js +211 -0
- package/es/info/components/InfoValueItem/index.scss +21 -0
- package/es/info/components/baseInfo/index.d.ts +7 -0
- package/es/info/components/baseInfo/index.js +72 -0
- package/es/info/components/baseInfo/index.scss +3 -0
- package/es/info/components/headerInfo/index.d.ts +7 -0
- package/es/info/components/headerInfo/index.js +84 -0
- package/es/info/components/headerInfo/index.scss +0 -0
- package/es/info/components/tableInfo/index.d.ts +8 -0
- package/es/info/components/tableInfo/index.js +172 -0
- package/es/info/components/tableInfo/index.scss +18 -0
- package/es/info/index.d.ts +9 -0
- package/es/info/index.js +85 -0
- package/es/info/index.scss +8 -0
- package/es/info/typing.d.ts +143 -0
- package/es/info/typing.js +1 -0
- package/es/info/utils/index.d.ts +3 -0
- package/es/info/utils/index.js +12 -0
- package/es/info/utils/layout.d.ts +2 -0
- package/es/info/utils/layout.js +58 -0
- package/es/info/utils/useInfoRequest.d.ts +14 -0
- package/es/info/utils/useInfoRequest.js +73 -0
- package/es/info/utils/utils.d.ts +1 -0
- package/es/info/utils/utils.js +13 -0
- package/es/layout/index.d.ts +3 -0
- package/es/layout/index.js +3 -0
- package/es/nocode/configurators/Card.d.ts +3 -0
- package/es/nocode/configurators/Card.js +109 -0
- package/es/nocode/configurators/PageHeader.d.ts +3 -0
- package/es/nocode/configurators/PageHeader.js +196 -0
- package/es/nocode/configurators/ProTable.d.ts +3 -0
- package/es/nocode/configurators/ProTable.js +317 -0
- package/es/nocode/configurators/common.d.ts +176 -0
- package/es/nocode/configurators/common.js +314 -0
- package/es/nocode/configurators/index.d.ts +15 -0
- package/es/nocode/configurators/index.js +27 -0
- package/es/nocode/configurators/map.d.ts +2 -0
- package/es/nocode/configurators/map.js +8 -0
- package/es/nocode/index.d.ts +8 -0
- package/es/nocode/index.js +11 -0
- package/es/nocode/index.scss +93 -0
- package/es/nocode/pages/editor.d.ts +12 -0
- package/es/nocode/pages/editor.js +40 -0
- package/es/nocode/pages/index.d.ts +14 -0
- package/es/nocode/pages/index.js +41 -0
- package/es/nocode/pages/playground.d.ts +11 -0
- package/es/nocode/pages/playground.js +130 -0
- package/es/nocode/pages/renderer.d.ts +10 -0
- package/es/nocode/pages/renderer.js +144 -0
- package/es/nocode/playground.d.ts +14 -0
- package/es/nocode/playground.js +68 -0
- package/es/page-container/index.d.ts +3 -0
- package/es/page-container/index.js +3 -0
- package/es/page-header/index.d.ts +42 -0
- package/es/page-header/index.js +222 -0
- package/es/page-header/index.scss +171 -0
- package/es/skeleton/index.d.ts +3 -0
- package/es/skeleton/index.js +3 -0
- package/es/table/components/Filter/index.d.ts +9 -0
- package/es/table/components/Filter/index.js +231 -0
- package/es/table/components/Filter/index.scss +23 -0
- package/es/table/components/Layout/index.d.ts +5 -0
- package/es/table/components/Layout/index.js +241 -0
- package/es/table/components/Layout/index.scss +39 -0
- package/es/table/components/QuickAction/index.d.ts +10 -0
- package/es/table/components/QuickAction/index.js +53 -0
- package/es/table/components/QuickAction/index.scss +0 -0
- package/es/table/components/ToolBar/DensityIcon.d.ts +4 -0
- package/es/table/components/ToolBar/DensityIcon.js +117 -0
- package/es/table/components/ToolBar/FilterColumnIcon.d.ts +4 -0
- package/es/table/components/ToolBar/FilterColumnIcon.js +284 -0
- package/es/table/components/ToolBar/FullScreenIcon.d.ts +4 -0
- package/es/table/components/ToolBar/FullScreenIcon.js +89 -0
- package/es/table/components/ToolBar/Fullscreen.d.ts +10 -0
- package/es/table/components/ToolBar/Fullscreen.js +68 -0
- package/es/table/components/ToolBar/RefreshIcon.d.ts +4 -0
- package/es/table/components/ToolBar/RefreshIcon.js +45 -0
- package/es/table/components/ToolBar/index.d.ts +5 -0
- package/es/table/components/ToolBar/index.js +79 -0
- package/es/table/components/ToolBar/index.scss +110 -0
- package/es/table/index.d.ts +7 -0
- package/es/table/index.js +620 -0
- package/es/table/index.scss +104 -0
- package/es/table/typing.d.ts +222 -0
- package/es/table/typing.js +1 -0
- package/es/table/utils/columnRender.d.ts +13 -0
- package/es/table/utils/columnRender.js +185 -0
- package/es/table/utils/genProColumnToColumn.d.ts +9 -0
- package/es/table/utils/genProColumnToColumn.js +51 -0
- package/es/table/utils/getTableProps.d.ts +2 -0
- package/es/table/utils/getTableProps.js +4 -0
- package/es/table/utils/getTableSortIcons.d.ts +3 -0
- package/es/table/utils/getTableSortIcons.js +21 -0
- package/es/table/utils/index.d.ts +4 -0
- package/es/table/utils/index.js +100 -0
- package/es/table/utils/useTableSelection.d.ts +3 -0
- package/es/table/utils/useTableSelection.js +107 -0
- package/es/templates/Detail/index.d.ts +2 -0
- package/es/templates/Detail/index.js +5 -0
- package/es/templates/Detail/index.scss +3 -0
- package/es/templates/Form/index.d.ts +2 -0
- package/es/templates/Form/index.js +5 -0
- package/es/templates/Form/index.scss +3 -0
- package/es/templates/List/index.d.ts +9 -0
- package/es/templates/List/index.js +45 -0
- package/es/templates/List/index.scss +3 -0
- package/es/templates/index.d.ts +5 -0
- package/es/templates/index.js +7 -0
- package/es/templates/index.scss +3 -0
- package/es/utils/index.d.ts +2 -0
- package/es/utils/index.js +2 -0
- package/lib/actions/base.d.ts +13 -0
- package/lib/actions/base.js +33 -0
- package/lib/actions/confirm.d.ts +7 -0
- package/lib/actions/confirm.js +25 -0
- package/lib/actions/danger-confirm.d.ts +7 -0
- package/lib/actions/danger-confirm.js +28 -0
- package/lib/actions/dialog-component.d.ts +10 -0
- package/lib/actions/dialog-component.js +39 -0
- package/lib/actions/dialog-form.d.ts +15 -0
- package/lib/actions/dialog-form.js +152 -0
- package/lib/actions/dialog-table.d.ts +4 -0
- package/lib/actions/dialog-table.js +5 -0
- package/lib/actions/dialog.d.ts +17 -0
- package/lib/actions/dialog.js +219 -0
- package/lib/actions/drawer-form.d.ts +6 -0
- package/lib/actions/drawer-form.js +18 -0
- package/lib/actions/drawer-table.d.ts +2 -0
- package/lib/actions/drawer-table.js +5 -0
- package/lib/actions/drawer.d.ts +6 -0
- package/lib/actions/drawer.js +20 -0
- package/lib/actions/error.d.ts +7 -0
- package/lib/actions/error.js +25 -0
- package/lib/actions/index.d.ts +76 -0
- package/lib/actions/index.js +356 -0
- package/lib/actions/index.scss +34 -0
- package/lib/actions/link.d.ts +14 -0
- package/lib/actions/link.js +60 -0
- package/lib/actions/notice.d.ts +7 -0
- package/lib/actions/notice.js +25 -0
- package/lib/actions/request.d.ts +9 -0
- package/lib/actions/request.js +75 -0
- package/lib/card/index.d.ts +30 -0
- package/lib/card/index.js +179 -0
- package/lib/card/index.scss +98 -0
- package/lib/field/index.d.ts +3 -0
- package/lib/field/index.js +30 -0
- package/lib/form/Components/Editable/index.d.ts +20 -0
- package/lib/form/Components/Editable/index.js +251 -0
- package/lib/form/Components/FormGroup/index.d.ts +13 -0
- package/lib/form/Components/FormGroup/index.js +103 -0
- package/lib/form/Components/FormGroup/index.scss +23 -0
- package/lib/form/Components/ProField/index.d.ts +150 -0
- package/lib/form/Components/ProField/index.js +68 -0
- package/lib/form/Components/Query/index.d.ts +4 -0
- package/lib/form/Components/Query/index.js +91 -0
- package/lib/form/Components/Query/index.scss +90 -0
- package/lib/form/Components/QueryFilter/index.d.ts +3 -0
- package/lib/form/Components/QueryFilter/index.js +130 -0
- package/lib/form/Components/Search/index.d.ts +11 -0
- package/lib/form/Components/Search/index.js +103 -0
- package/lib/form/Filter/index.d.ts +16 -0
- package/lib/form/Filter/index.js +242 -0
- package/lib/form/ProForm/index.d.ts +5 -0
- package/lib/form/ProForm/index.js +125 -0
- package/lib/form/ProForm/index.scss +248 -0
- package/lib/form/SchemaForm/adapterComponent.d.ts +5 -0
- package/lib/form/SchemaForm/adapterComponent.js +27 -0
- package/lib/form/SchemaForm/adapterDecorator.d.ts +6 -0
- package/lib/form/SchemaForm/adapterDecorator.js +34 -0
- package/lib/form/SchemaForm/adapterType.d.ts +5 -0
- package/lib/form/SchemaForm/adapterType.js +64 -0
- package/lib/form/SchemaForm/index.d.ts +4 -0
- package/lib/form/SchemaForm/index.js +301 -0
- package/lib/form/SchemaForm/initializeArrayCards.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayCards.js +76 -0
- package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayCollapse.js +85 -0
- package/lib/form/SchemaForm/initializeArrayIcon.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayIcon.js +61 -0
- package/lib/form/SchemaForm/initializeArrayItems.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayItems.js +104 -0
- package/lib/form/SchemaForm/initializeArrayTable.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayTable.js +73 -0
- package/lib/form/SchemaForm/initializeFormButton.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormButton.js +82 -0
- package/lib/form/SchemaForm/initializeFormCollapse.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormCollapse.js +50 -0
- package/lib/form/SchemaForm/initializeFormGroup.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormGroup.js +53 -0
- package/lib/form/SchemaForm/initializeFormStep.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormStep.js +55 -0
- package/lib/form/SchemaForm/initializeFormTab.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormTab.js +60 -0
- package/lib/form/SchemaForm/initializeProField.d.ts +5 -0
- package/lib/form/SchemaForm/initializeProField.js +76 -0
- package/lib/form/SchemaForm/initializeRequest.d.ts +11 -0
- package/lib/form/SchemaForm/initializeRequest.js +34 -0
- package/lib/form/SchemaForm/reactions.d.ts +4 -0
- package/lib/form/SchemaForm/reactions.js +72 -0
- package/lib/form/index.d.ts +20 -0
- package/lib/form/index.js +149 -0
- package/lib/form/typing.d.ts +78 -0
- package/lib/form/typing.js +5 -0
- package/lib/form/utils.d.ts +9 -0
- package/lib/form/utils.js +124 -0
- package/lib/form/warning.d.ts +3 -0
- package/lib/form/warning.js +28 -0
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.js +17 -0
- package/lib/index.d.ts +24 -22
- package/lib/index.js +84 -57
- package/lib/info/components/FormItem/index.d.ts +5 -0
- package/lib/info/components/FormItem/index.js +78 -0
- package/lib/info/components/FormItem/index.scss +49 -0
- package/lib/info/components/InfoGroup/index.d.ts +5 -0
- package/lib/info/components/InfoGroup/index.js +27 -0
- package/lib/info/components/InfoGroup/index.scss +8 -0
- package/lib/info/components/InfoValueItem/index.d.ts +5 -0
- package/lib/info/components/InfoValueItem/index.js +237 -0
- package/lib/info/components/InfoValueItem/index.scss +21 -0
- package/lib/info/components/baseInfo/index.d.ts +7 -0
- package/lib/info/components/baseInfo/index.js +99 -0
- package/lib/info/components/baseInfo/index.scss +3 -0
- package/lib/info/components/headerInfo/index.d.ts +7 -0
- package/lib/info/components/headerInfo/index.js +111 -0
- package/lib/info/components/headerInfo/index.scss +0 -0
- package/lib/info/components/tableInfo/index.d.ts +8 -0
- package/lib/info/components/tableInfo/index.js +193 -0
- package/lib/info/components/tableInfo/index.scss +18 -0
- package/lib/info/index.d.ts +9 -0
- package/lib/info/index.js +121 -0
- package/lib/info/index.scss +8 -0
- package/lib/info/typing.d.ts +143 -0
- package/lib/info/typing.js +5 -0
- package/lib/info/utils/index.d.ts +3 -0
- package/lib/info/utils/index.js +19 -0
- package/lib/info/utils/layout.d.ts +2 -0
- package/lib/info/utils/layout.js +65 -0
- package/lib/info/utils/useInfoRequest.d.ts +14 -0
- package/lib/info/utils/useInfoRequest.js +82 -0
- package/lib/info/utils/utils.d.ts +1 -0
- package/lib/info/utils/utils.js +20 -0
- package/lib/layout/index.d.ts +3 -0
- package/lib/layout/index.js +30 -0
- package/lib/nocode/configurators/Card.d.ts +3 -0
- package/lib/nocode/configurators/Card.js +116 -0
- package/lib/nocode/configurators/PageHeader.d.ts +3 -0
- package/lib/nocode/configurators/PageHeader.js +205 -0
- package/lib/nocode/configurators/ProTable.d.ts +3 -0
- package/lib/nocode/configurators/ProTable.js +326 -0
- package/lib/nocode/configurators/common.d.ts +176 -0
- package/lib/nocode/configurators/common.js +325 -0
- package/lib/nocode/configurators/index.d.ts +15 -0
- package/lib/nocode/configurators/index.js +44 -0
- package/lib/nocode/configurators/map.d.ts +2 -0
- package/lib/nocode/configurators/map.js +21 -0
- package/lib/nocode/index.d.ts +8 -0
- package/lib/nocode/index.js +76 -0
- package/lib/nocode/index.scss +93 -0
- package/lib/nocode/pages/editor.d.ts +12 -0
- package/lib/nocode/pages/editor.js +58 -0
- package/lib/nocode/pages/index.d.ts +14 -0
- package/lib/nocode/pages/index.js +93 -0
- package/lib/nocode/pages/playground.d.ts +11 -0
- package/lib/nocode/pages/playground.js +158 -0
- package/lib/nocode/pages/renderer.d.ts +10 -0
- package/lib/nocode/pages/renderer.js +164 -0
- package/lib/nocode/playground.d.ts +14 -0
- package/lib/nocode/playground.js +91 -0
- package/lib/page-container/index.d.ts +3 -0
- package/lib/page-container/index.js +30 -0
- package/lib/page-header/index.d.ts +42 -0
- package/lib/page-header/index.js +240 -0
- package/lib/page-header/index.scss +171 -0
- package/lib/skeleton/index.d.ts +3 -0
- package/lib/skeleton/index.js +30 -0
- package/lib/table/components/Filter/index.d.ts +9 -0
- package/lib/table/components/Filter/index.js +252 -0
- package/lib/table/components/Filter/index.scss +23 -0
- package/lib/table/components/Layout/index.d.ts +5 -0
- package/lib/table/components/Layout/index.js +265 -0
- package/lib/table/components/Layout/index.scss +39 -0
- package/lib/table/components/QuickAction/index.d.ts +10 -0
- package/lib/table/components/QuickAction/index.js +65 -0
- package/lib/table/components/QuickAction/index.scss +0 -0
- package/lib/table/components/ToolBar/DensityIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/DensityIcon.js +135 -0
- package/lib/table/components/ToolBar/FilterColumnIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/FilterColumnIcon.js +303 -0
- package/lib/table/components/ToolBar/FullScreenIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/FullScreenIcon.js +107 -0
- package/lib/table/components/ToolBar/Fullscreen.d.ts +10 -0
- package/lib/table/components/ToolBar/Fullscreen.js +85 -0
- package/lib/table/components/ToolBar/RefreshIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/RefreshIcon.js +60 -0
- package/lib/table/components/ToolBar/index.d.ts +5 -0
- package/lib/table/components/ToolBar/index.js +96 -0
- package/lib/table/components/ToolBar/index.scss +110 -0
- package/lib/table/index.d.ts +7 -0
- package/lib/table/index.js +681 -0
- package/lib/table/index.scss +104 -0
- package/lib/table/typing.d.ts +222 -0
- package/lib/table/typing.js +5 -0
- package/lib/table/utils/columnRender.d.ts +13 -0
- package/lib/table/utils/columnRender.js +201 -0
- package/lib/table/utils/genProColumnToColumn.d.ts +9 -0
- package/lib/table/utils/genProColumnToColumn.js +62 -0
- package/lib/table/utils/getTableProps.d.ts +2 -0
- package/lib/table/utils/getTableProps.js +13 -0
- package/lib/table/utils/getTableSortIcons.d.ts +3 -0
- package/lib/table/utils/getTableSortIcons.js +34 -0
- package/lib/table/utils/index.d.ts +4 -0
- package/lib/table/utils/index.js +112 -0
- package/lib/table/utils/useTableSelection.d.ts +3 -0
- package/lib/table/utils/useTableSelection.js +112 -0
- package/lib/templates/Detail/index.d.ts +2 -0
- package/lib/templates/Detail/index.js +18 -0
- package/lib/templates/Detail/index.scss +3 -0
- package/lib/templates/Form/index.d.ts +2 -0
- package/lib/templates/Form/index.js +18 -0
- package/lib/templates/Form/index.scss +3 -0
- package/lib/templates/List/index.d.ts +9 -0
- package/lib/templates/List/index.js +67 -0
- package/lib/templates/List/index.scss +3 -0
- package/lib/templates/index.d.ts +5 -0
- package/lib/templates/index.js +59 -0
- package/lib/templates/index.scss +3 -0
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.js +17 -0
- package/package.json +21 -11
@@ -0,0 +1,218 @@
|
|
1
|
+
var _excluded = ["schema", "triggerType", "onFilter"],
|
2
|
+
_excluded2 = ["schema", "triggerType", "onFilter"];
|
3
|
+
|
4
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
5
|
+
|
6
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
7
|
+
|
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
|
+
|
10
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
11
|
+
|
12
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
13
|
+
|
14
|
+
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; }
|
15
|
+
|
16
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
17
|
+
|
18
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
19
|
+
|
20
|
+
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; }
|
21
|
+
|
22
|
+
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; }
|
23
|
+
|
24
|
+
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; }
|
25
|
+
|
26
|
+
import React, { memo, useMemo } from 'react';
|
27
|
+
import cls from 'classnames';
|
28
|
+
import { usePrefixCls, getMessage } from '@teamix/utils';
|
29
|
+
import { createForm } from '@formily/core';
|
30
|
+
import ProForm from '../ProForm';
|
31
|
+
import { mergeArrayValue } from '../utils';
|
32
|
+
var searchText = getMessage('search');
|
33
|
+
|
34
|
+
var getEventProps = function getEventProps(triggerType, onFilter) {
|
35
|
+
var keydownEvent = {
|
36
|
+
onSubmit: onFilter
|
37
|
+
};
|
38
|
+
var changeEvent = {
|
39
|
+
onChange: onFilter
|
40
|
+
};
|
41
|
+
var eventMap = {
|
42
|
+
keydown: keydownEvent,
|
43
|
+
change: _objectSpread(_objectSpread({}, keydownEvent), changeEvent),
|
44
|
+
submit: keydownEvent
|
45
|
+
};
|
46
|
+
return eventMap[triggerType];
|
47
|
+
};
|
48
|
+
/**
|
49
|
+
* 简单筛选
|
50
|
+
*/
|
51
|
+
|
52
|
+
|
53
|
+
var SimpleFilter = /*#__PURE__*/memo(function (props) {
|
54
|
+
var schema = props.schema,
|
55
|
+
triggerType = props.triggerType,
|
56
|
+
onFilter = props.onFilter,
|
57
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
58
|
+
|
59
|
+
var prefixCls = usePrefixCls('formily-filter-simple');
|
60
|
+
var simpleSchema = useMemo(function () {
|
61
|
+
return [{
|
62
|
+
component: 'FormFlex',
|
63
|
+
props: {
|
64
|
+
size: 8
|
65
|
+
},
|
66
|
+
children: [].concat(_toConsumableArray(schema), [{
|
67
|
+
type: 'void',
|
68
|
+
decorator: null,
|
69
|
+
component: 'Submit',
|
70
|
+
props: {
|
71
|
+
style: _objectSpread({}, triggerType === 'submit' ? {} : {
|
72
|
+
display: 'none'
|
73
|
+
})
|
74
|
+
}
|
75
|
+
}])
|
76
|
+
}];
|
77
|
+
}, [schema]);
|
78
|
+
var eventProps = getEventProps(triggerType, onFilter);
|
79
|
+
return /*#__PURE__*/React.createElement(ProForm, _objectSpread(_objectSpread(_objectSpread({
|
80
|
+
feedbackLayout: "none",
|
81
|
+
breakpoints: [],
|
82
|
+
inset: true
|
83
|
+
}, otherProps), eventProps), {}, {
|
84
|
+
className: cls(prefixCls, props.className),
|
85
|
+
schema: simpleSchema
|
86
|
+
}));
|
87
|
+
});
|
88
|
+
SimpleFilter.defaultProps = {
|
89
|
+
triggerType: 'change'
|
90
|
+
};
|
91
|
+
/**
|
92
|
+
* 查询筛选
|
93
|
+
*/
|
94
|
+
|
95
|
+
var QueryFilter = /*#__PURE__*/memo(function (props) {
|
96
|
+
var schema = props.schema,
|
97
|
+
triggerType = props.triggerType,
|
98
|
+
onFilter = props.onFilter,
|
99
|
+
otherProps = _objectWithoutProperties(props, _excluded2);
|
100
|
+
|
101
|
+
var prefixCls = usePrefixCls('formily-filter-query');
|
102
|
+
var querySchema = useMemo(function () {
|
103
|
+
return [{
|
104
|
+
component: 'QueryFilter',
|
105
|
+
props: {
|
106
|
+
placeholder: 'placeholder'
|
107
|
+
},
|
108
|
+
children: schema
|
109
|
+
}, {
|
110
|
+
type: 'void',
|
111
|
+
decorator: null,
|
112
|
+
component: 'Submit',
|
113
|
+
props: {
|
114
|
+
style: _objectSpread({}, triggerType === 'submit' ? {} : {
|
115
|
+
display: 'none'
|
116
|
+
})
|
117
|
+
}
|
118
|
+
}];
|
119
|
+
}, [schema]);
|
120
|
+
var eventProps = getEventProps(triggerType, onFilter);
|
121
|
+
return /*#__PURE__*/React.createElement(ProForm, _objectSpread(_objectSpread(_objectSpread({
|
122
|
+
feedbackLayout: "none",
|
123
|
+
breakpoints: [],
|
124
|
+
bordered: false
|
125
|
+
}, otherProps), eventProps), {}, {
|
126
|
+
className: cls(prefixCls, props.className),
|
127
|
+
schema: querySchema
|
128
|
+
}));
|
129
|
+
});
|
130
|
+
/**
|
131
|
+
* 高级筛选
|
132
|
+
*/
|
133
|
+
|
134
|
+
var AdvancedFilter = /*#__PURE__*/memo(function (props) {
|
135
|
+
var form = useMemo(function () {
|
136
|
+
return (props === null || props === void 0 ? void 0 : props.form) || createForm();
|
137
|
+
}, []);
|
138
|
+
var schema = props.schema,
|
139
|
+
triggerType = props.triggerType,
|
140
|
+
onFilter = props.onFilter,
|
141
|
+
onReset = props.onReset,
|
142
|
+
layout = props.layout,
|
143
|
+
labelAlign = props.labelAlign,
|
144
|
+
wrapperAlign = props.wrapperAlign,
|
145
|
+
labelCol = props.labelCol,
|
146
|
+
wrapperCol = props.wrapperCol;
|
147
|
+
var prefixCls = usePrefixCls('formily-filter-advanced');
|
148
|
+
var gridSchema = useMemo(function () {
|
149
|
+
return [{
|
150
|
+
name: 'FormGrid',
|
151
|
+
component: 'FormGrid',
|
152
|
+
props: {
|
153
|
+
breakpoints: [480, 720, 990, 1200, Infinity],
|
154
|
+
maxColumns: [1, 2, 3, 3, 4],
|
155
|
+
columnGap: 16,
|
156
|
+
rowGap: 12
|
157
|
+
},
|
158
|
+
children: [].concat(_toConsumableArray(schema), [{
|
159
|
+
component: 'FormButtonGroup',
|
160
|
+
decorator: 'Space',
|
161
|
+
decoratorProps: {
|
162
|
+
style: {
|
163
|
+
gridColumnEnd: -1,
|
164
|
+
alignItems: 'flex-end',
|
165
|
+
justifyContent: 'flex-end'
|
166
|
+
}
|
167
|
+
},
|
168
|
+
children: [{
|
169
|
+
component: 'Reset',
|
170
|
+
props: {
|
171
|
+
onResetValidateSuccess: onReset,
|
172
|
+
style: _objectSpread({}, triggerType === 'submit' ? {} : {
|
173
|
+
marginRight: -16
|
174
|
+
})
|
175
|
+
}
|
176
|
+
}, {
|
177
|
+
component: 'Submit',
|
178
|
+
props: {
|
179
|
+
style: _objectSpread({}, triggerType === 'submit' ? {
|
180
|
+
marginRight: -8
|
181
|
+
} : {
|
182
|
+
display: 'none'
|
183
|
+
})
|
184
|
+
},
|
185
|
+
content: searchText
|
186
|
+
}]
|
187
|
+
}])
|
188
|
+
}];
|
189
|
+
}, [searchText, onReset]);
|
190
|
+
var getTeamixLayout = useMemo(function () {
|
191
|
+
return {
|
192
|
+
breakpoints: [990],
|
193
|
+
layout: mergeArrayValue(['vertical'], layout),
|
194
|
+
labelAlign: mergeArrayValue(['left'], labelAlign),
|
195
|
+
wrapperAlign: mergeArrayValue(['left'], wrapperAlign),
|
196
|
+
labelCol: mergeArrayValue([24], labelCol),
|
197
|
+
wrapperCol: mergeArrayValue([24], wrapperCol)
|
198
|
+
};
|
199
|
+
}, [layout, labelAlign, wrapperAlign, labelCol, wrapperCol]);
|
200
|
+
var eventProps = getEventProps(triggerType, onFilter);
|
201
|
+
return /*#__PURE__*/React.createElement(ProForm, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
202
|
+
feedbackLayout: "none"
|
203
|
+
}, props), eventProps), getTeamixLayout), {}, {
|
204
|
+
form: form,
|
205
|
+
className: cls(prefixCls, props.className),
|
206
|
+
schema: gridSchema,
|
207
|
+
onSubmit: onFilter
|
208
|
+
}));
|
209
|
+
});
|
210
|
+
AdvancedFilter.defaultProps = {
|
211
|
+
triggerType: 'change',
|
212
|
+
layout: 'horizontal',
|
213
|
+
labelAlign: 'right',
|
214
|
+
labelCol: 6,
|
215
|
+
wrapperCol: 18
|
216
|
+
};
|
217
|
+
export { AdvancedFilter, SimpleFilter, QueryFilter };
|
218
|
+
export default AdvancedFilter;
|
@@ -0,0 +1,100 @@
|
|
1
|
+
var _excluded = ["form", "initialValues", "schema", "scope", "components", "children", "layout", "labelAlign", "wrapperAlign", "labelCol", "wrapperCol", "breakpoints", "onChange", "onSubmit", "onSubmitFailed"];
|
2
|
+
|
3
|
+
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; }
|
4
|
+
|
5
|
+
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; }
|
6
|
+
|
7
|
+
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; }
|
8
|
+
|
9
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
10
|
+
|
11
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
12
|
+
|
13
|
+
import React, { memo, useEffect, useMemo } from 'react';
|
14
|
+
import { createForm, onFormValuesChange } from '@formily/core';
|
15
|
+
import { toJS } from '@formily/reactive';
|
16
|
+
import { Form, FormLayout } from '@teamix/formily';
|
17
|
+
import TeamixIcon from '@teamix/icon';
|
18
|
+
import { isObj } from '@teamix/utils';
|
19
|
+
import SchemaForm from '../SchemaForm';
|
20
|
+
import { mergeArrayValue } from '../utils';
|
21
|
+
import './index.scss';
|
22
|
+
var ProForm = /*#__PURE__*/memo(function (_ref) {
|
23
|
+
var outerForm = _ref.form,
|
24
|
+
initialValues = _ref.initialValues,
|
25
|
+
schema = _ref.schema,
|
26
|
+
scope = _ref.scope,
|
27
|
+
components = _ref.components,
|
28
|
+
children = _ref.children,
|
29
|
+
layout = _ref.layout,
|
30
|
+
labelAlign = _ref.labelAlign,
|
31
|
+
wrapperAlign = _ref.wrapperAlign,
|
32
|
+
labelCol = _ref.labelCol,
|
33
|
+
wrapperCol = _ref.wrapperCol,
|
34
|
+
breakpoints = _ref.breakpoints,
|
35
|
+
onChange = _ref.onChange,
|
36
|
+
onSubmit = _ref.onSubmit,
|
37
|
+
onSubmitFailed = _ref.onSubmitFailed,
|
38
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
39
|
+
|
40
|
+
var form = useMemo(function () {
|
41
|
+
return outerForm || createForm();
|
42
|
+
}, []);
|
43
|
+
var getTeamixLayout = useMemo(function () {
|
44
|
+
return breakpoints ? {
|
45
|
+
breakpoints: breakpoints,
|
46
|
+
layout: layout,
|
47
|
+
labelAlign: labelAlign,
|
48
|
+
wrapperAlign: wrapperAlign,
|
49
|
+
labelCol: labelCol,
|
50
|
+
wrapperCol: wrapperCol
|
51
|
+
} : {
|
52
|
+
breakpoints: [480],
|
53
|
+
layout: mergeArrayValue(['vertical'], layout),
|
54
|
+
labelAlign: mergeArrayValue(['left'], labelAlign),
|
55
|
+
wrapperAlign: mergeArrayValue(['left'], wrapperAlign),
|
56
|
+
labelCol: mergeArrayValue([24], labelCol),
|
57
|
+
wrapperCol: mergeArrayValue([24], wrapperCol)
|
58
|
+
};
|
59
|
+
}, [breakpoints, layout, labelAlign, wrapperAlign, labelCol, wrapperCol]);
|
60
|
+
var formChildren = useMemo(function () {
|
61
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SchemaForm, {
|
62
|
+
schema: schema,
|
63
|
+
scope: scope,
|
64
|
+
components: components
|
65
|
+
}), children);
|
66
|
+
}, [schema, scope, components, children]); // 添加onChange
|
67
|
+
|
68
|
+
useEffect(function () {
|
69
|
+
form.addEffects('onChange', function () {
|
70
|
+
onFormValuesChange(function (form) {
|
71
|
+
if (onChange) {
|
72
|
+
onChange(toJS(form.values));
|
73
|
+
}
|
74
|
+
});
|
75
|
+
});
|
76
|
+
}, [form, onChange]); // 从组件属性设置初始值(会触发onFormValuesChange,需先注册onFormValuesChange)
|
77
|
+
|
78
|
+
useEffect(function () {
|
79
|
+
if (isObj(initialValues)) {
|
80
|
+
form.setInitialValues(initialValues);
|
81
|
+
}
|
82
|
+
}, []);
|
83
|
+
return outerForm === false ?
|
84
|
+
/*#__PURE__*/
|
85
|
+
// 特殊表单,无需渲染form实例,例如FormDialog等
|
86
|
+
React.createElement(FormLayout, _objectSpread(_objectSpread({}, otherProps), getTeamixLayout), formChildren) : /*#__PURE__*/React.createElement(Form, _objectSpread(_objectSpread(_objectSpread({}, otherProps), getTeamixLayout), {}, {
|
87
|
+
form: form,
|
88
|
+
onAutoSubmit: onSubmit,
|
89
|
+
onAutoSubmitFailed: onSubmitFailed
|
90
|
+
}), formChildren);
|
91
|
+
});
|
92
|
+
ProForm.defaultProps = {
|
93
|
+
colon: false,
|
94
|
+
labelAlign: 'left',
|
95
|
+
tooltipIcon: /*#__PURE__*/React.createElement(TeamixIcon, {
|
96
|
+
type: "info-circle-line",
|
97
|
+
size: "small"
|
98
|
+
})
|
99
|
+
};
|
100
|
+
export default ProForm;
|
@@ -0,0 +1,248 @@
|
|
1
|
+
@import '~@alifd/next/lib/core/index-noreset.scss';
|
2
|
+
|
3
|
+
$form-item-cls: #{$css-prefix}formily-item;
|
4
|
+
|
5
|
+
// FormItem 样式重写
|
6
|
+
.#{$form-item-cls} {
|
7
|
+
// 标签加粗 主题颜色
|
8
|
+
.#{$form-item-cls}-label label {
|
9
|
+
color: var(--form-label-color, #333333);
|
10
|
+
font-weight: $font-weight-medium;
|
11
|
+
}
|
12
|
+
|
13
|
+
// 溢出label样式
|
14
|
+
.#{$form-item-cls}-label-tooltip {
|
15
|
+
label {
|
16
|
+
border: 0;
|
17
|
+
}
|
18
|
+
* {
|
19
|
+
cursor: default;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
// 不撑满
|
24
|
+
> .#{$form-item-cls}-control {
|
25
|
+
> .#{$form-item-cls}-control-content {
|
26
|
+
> .#{$form-item-cls}-control-content-component {
|
27
|
+
width: auto;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
// 行高 todo 根据size配置
|
33
|
+
> .#{$form-item-cls}-control {
|
34
|
+
> .#{$form-item-cls}-control-content {
|
35
|
+
> .#{$form-item-cls}-control-content-component {
|
36
|
+
line-height: initial;
|
37
|
+
> .teamix-pro-field-checkbox,
|
38
|
+
.teamix-pro-field-radio,
|
39
|
+
.teamix-pro-field-switch,
|
40
|
+
.teamix-pro-field-colorradio {
|
41
|
+
line-height: var(--form-element-medium-height, 32px);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
// 预览态行高
|
48
|
+
.#{$css-prefix}form-preview {
|
49
|
+
line-height: var(--form-element-medium-height, 32px);
|
50
|
+
}
|
51
|
+
|
52
|
+
// 星号重写
|
53
|
+
.#{$form-item-cls}-asterisk {
|
54
|
+
display: none;
|
55
|
+
}
|
56
|
+
.#{$form-item-cls}-asterisk-pro::after {
|
57
|
+
margin-left: 4px;
|
58
|
+
font-family: Verdana;
|
59
|
+
content: '*';
|
60
|
+
color: var(--color-error-5, #e84738);
|
61
|
+
position: relative;
|
62
|
+
top: 2px;
|
63
|
+
}
|
64
|
+
.#{$form-item-cls}-help {
|
65
|
+
margin-top: 2px;
|
66
|
+
line-height: 18px;
|
67
|
+
}
|
68
|
+
.#{$form-item-cls}-extra {
|
69
|
+
margin: 2px 0;
|
70
|
+
line-height: 18px;
|
71
|
+
}
|
72
|
+
.#{$form-item-cls}-colon {
|
73
|
+
margin-left: 4px;
|
74
|
+
margin-right: 12px;
|
75
|
+
}
|
76
|
+
|
77
|
+
// info图标颜色
|
78
|
+
.#{$form-item-cls}-label-tooltip-icon {
|
79
|
+
color: var(--color-text1-8, #848484);
|
80
|
+
&:hover {
|
81
|
+
color: var(--color-text1-2, #5a5a5a);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
// 帮助和反馈颜色
|
86
|
+
.#{$form-item-cls}-help,
|
87
|
+
.#{$form-item-cls}-extra {
|
88
|
+
color: var(--color-text1-8, #848484);
|
89
|
+
}
|
90
|
+
|
91
|
+
// 前缀 后缀
|
92
|
+
.#{$form-item-cls}-control {
|
93
|
+
.#{$form-item-cls}-control-content {
|
94
|
+
.#{$form-item-cls}-addon-before {
|
95
|
+
margin-right: 16px;
|
96
|
+
}
|
97
|
+
.#{$form-item-cls}-addon-after {
|
98
|
+
margin-left: 16px;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
// 撑满模式
|
105
|
+
.#{$form-item-cls}-fullness {
|
106
|
+
> .#{$form-item-cls}-control {
|
107
|
+
> .#{$form-item-cls}-control-content {
|
108
|
+
> .#{$form-item-cls}-control-content-component {
|
109
|
+
width: 100%;
|
110
|
+
> *:first-child {
|
111
|
+
width: 100%;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
// 内嵌模式
|
119
|
+
$inset-font-weight-medium: calc(
|
120
|
+
var(--form-element-medium-height, 32px) - var(--input-border-width, 1px) * 2
|
121
|
+
);
|
122
|
+
// 内嵌模式 - 行高
|
123
|
+
.#{$form-item-cls}-inset {
|
124
|
+
line-height: $inset-font-weight-medium;
|
125
|
+
.#{$form-item-cls}-label-content {
|
126
|
+
min-height: $inset-font-weight-medium;
|
127
|
+
}
|
128
|
+
.#{$form-item-cls}-control {
|
129
|
+
.#{$form-item-cls}-control-content {
|
130
|
+
.#{$form-item-cls}-control-content-component {
|
131
|
+
min-height: $inset-font-weight-medium;
|
132
|
+
.#{$css-prefix}input.#{$css-prefix}medium,
|
133
|
+
.#{$css-prefix}date-picker2-input.#{$css-prefix}date-picker2-input-medium {
|
134
|
+
height: $inset-font-weight-medium;
|
135
|
+
line-height: $inset-font-weight-medium;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
// 内嵌模式 - 基础
|
142
|
+
.#{$form-item-cls}-inset {
|
143
|
+
.#{$form-item-cls}-label {
|
144
|
+
.#{$form-item-cls}-label-content {
|
145
|
+
label {
|
146
|
+
color: var(--color-text1-8, #848484);
|
147
|
+
font-weight: $font-weight-2;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
.#{$form-item-cls}-colon {
|
151
|
+
margin-right: 4px;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
.teamix-pro-field-money button,
|
155
|
+
.teamix-pro-field-icon button {
|
156
|
+
border: 0 !important;
|
157
|
+
}
|
158
|
+
.teamix-pro-field-color-swatch {
|
159
|
+
box-shadow: none !important;
|
160
|
+
}
|
161
|
+
.#{$css-prefix}date-picker2-input,
|
162
|
+
.#{$css-prefix}date-picker2-input-range {
|
163
|
+
border: 0 !important;
|
164
|
+
box-shadow: none !important;
|
165
|
+
}
|
166
|
+
.#{$css-prefix}input-group {
|
167
|
+
border: 0;
|
168
|
+
}
|
169
|
+
.#{$css-prefix}input-group-addon {
|
170
|
+
.#{$css-prefix}btn {
|
171
|
+
border: 0;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
}
|
175
|
+
|
176
|
+
// 数组类组件添加按钮
|
177
|
+
.#{$css-prefix}formily-array-base-addition {
|
178
|
+
.teamix-icon {
|
179
|
+
margin-right: 4px;
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
183
|
+
// Editable预览态行高
|
184
|
+
.#{$css-prefix}formily-editable-content {
|
185
|
+
line-height: $s-8;
|
186
|
+
}
|
187
|
+
|
188
|
+
// 折叠面板
|
189
|
+
.#{$css-prefix}formily-collapse,
|
190
|
+
.#{$css-prefix}formily-array-collapse-item {
|
191
|
+
.#{$css-prefix}collapse-panel-hidden {
|
192
|
+
.#{$css-prefix}collapse-panel-content {
|
193
|
+
padding-top: 4px;
|
194
|
+
padding-bottom: 0;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
.#{$css-prefix}collapse-panel-content {
|
198
|
+
padding-top: 20px;
|
199
|
+
padding-bottom: 0;
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
// 按钮样式
|
204
|
+
.#{$css-prefix}formily-button-group {
|
205
|
+
margin-top: var(--form-element-medium-height, 32px);
|
206
|
+
}
|
207
|
+
|
208
|
+
.#{$form-item-cls} {
|
209
|
+
.#{$css-prefix}formily-button-group {
|
210
|
+
margin-top: 12px;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
.#{$css-prefix}formily-filter-advanced,
|
215
|
+
.#{$css-prefix}drawer-footer {
|
216
|
+
.#{$css-prefix}formily-button-group {
|
217
|
+
margin-top: 0;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
|
221
|
+
.#{$css-prefix}formily-button-group-sticky {
|
222
|
+
margin-top: var(--form-element-medium-height, 32px);
|
223
|
+
padding: 12px 16px 12px 24px;
|
224
|
+
border: 0;
|
225
|
+
background: var(--color-fill1-1, #fff);
|
226
|
+
box-shadow: 0 -1px 5px 0 rgba(38, 38, 38, 0.14);
|
227
|
+
.#{$css-prefix}formily-button-group {
|
228
|
+
margin-top: 0;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
|
232
|
+
// FormStep
|
233
|
+
.#{$css-prefix}formily-step {
|
234
|
+
.#{$css-prefix}step {
|
235
|
+
margin-bottom: var(--form-element-medium-height, 32px) !important;
|
236
|
+
}
|
237
|
+
}
|
238
|
+
|
239
|
+
// 高级筛选
|
240
|
+
.#{$css-prefix}formily-filter-advanced {
|
241
|
+
.#{$css-prefix}date-picker2-input {
|
242
|
+
.#{$css-prefix}input {
|
243
|
+
input {
|
244
|
+
width: inherit;
|
245
|
+
}
|
246
|
+
}
|
247
|
+
}
|
248
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
var _componentMap;
|
2
|
+
|
3
|
+
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; }
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Formily组件在ProForm的别名
|
7
|
+
*/
|
8
|
+
var componentMap = (_componentMap = {
|
9
|
+
FormFlex: 'Space'
|
10
|
+
}, _defineProperty(_componentMap, 'Editable.Dialog', 'EditableDialog'), _defineProperty(_componentMap, 'Editable.Drawer', 'EditableDrawer'), _defineProperty(_componentMap, 'Editable.Popover', 'EditablePopover'), _defineProperty(_componentMap, 'FormDrawer.Footer', 'FormDrawerFooter'), _defineProperty(_componentMap, 'FormDialog.Footer', 'FormDialogFooter'), _componentMap);
|
11
|
+
export default (function (component) {
|
12
|
+
if (componentMap[component]) {
|
13
|
+
return componentMap[component];
|
14
|
+
}
|
15
|
+
|
16
|
+
return component;
|
17
|
+
});
|
@@ -0,0 +1,28 @@
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
2
|
+
|
3
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
4
|
+
|
5
|
+
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); }
|
6
|
+
|
7
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
8
|
+
|
9
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
10
|
+
|
11
|
+
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; }
|
12
|
+
|
13
|
+
/**
|
14
|
+
* 优先使用配置,即非 undefined
|
15
|
+
* 未配置则按默认规则为基础组件和某些聚合组件添加FormItem
|
16
|
+
*/
|
17
|
+
import { proFieldTypeMap } from './initializeProField';
|
18
|
+
export default (function (decorator, component) {
|
19
|
+
if (decorator !== undefined) {
|
20
|
+
return decorator;
|
21
|
+
}
|
22
|
+
|
23
|
+
if ([].concat(_toConsumableArray(Object.keys(proFieldTypeMap)), ['Upload', 'ArrayCards', 'ArrayCollapse', 'ArrayTable', 'ArrayItems']).includes(component)) {
|
24
|
+
return 'FormItem';
|
25
|
+
}
|
26
|
+
|
27
|
+
return decorator;
|
28
|
+
});
|