@teamix/pro 1.0.25 → 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 +10401 -14141
- 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 -23
- package/es/index.js +25 -24
- 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 -23
- package/lib/index.js +79 -61
- 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,325 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.actions = actions;
|
7
|
+
exports.array = array;
|
8
|
+
exports.filter = filter;
|
9
|
+
|
10
|
+
function array(title, name, fields, main, arrayTitle) {
|
11
|
+
return {
|
12
|
+
title: title,
|
13
|
+
children: [{
|
14
|
+
name: name,
|
15
|
+
title: arrayTitle,
|
16
|
+
component: 'ArrayItems',
|
17
|
+
props: {
|
18
|
+
itemType: 'card'
|
19
|
+
},
|
20
|
+
items: [{
|
21
|
+
component: 'FormFlex',
|
22
|
+
children: [{
|
23
|
+
component: 'ArrayItems.SortHandle'
|
24
|
+
}, {
|
25
|
+
component: 'ArrayItems.Index'
|
26
|
+
}]
|
27
|
+
}, {
|
28
|
+
name: 'drawer',
|
29
|
+
component: 'Editable.Drawer',
|
30
|
+
type: 'void',
|
31
|
+
title: '编辑详情',
|
32
|
+
reactions: {
|
33
|
+
dependencies: [".drawer.layout.".concat(main ? main : fields[0].name)],
|
34
|
+
fulfill: {
|
35
|
+
schema: {
|
36
|
+
title: '{{$deps[0]}}'
|
37
|
+
}
|
38
|
+
}
|
39
|
+
},
|
40
|
+
children: [{
|
41
|
+
name: 'layout',
|
42
|
+
component: 'FormLayout',
|
43
|
+
props: {
|
44
|
+
layout: 'vertical',
|
45
|
+
labelAlign: 'left',
|
46
|
+
colon: false,
|
47
|
+
labelCol: 24,
|
48
|
+
wrapperCol: 24
|
49
|
+
},
|
50
|
+
children: fields
|
51
|
+
}]
|
52
|
+
}, {
|
53
|
+
component: 'ArrayItems.Remove'
|
54
|
+
}],
|
55
|
+
children: [{
|
56
|
+
title: '添加一条'
|
57
|
+
}]
|
58
|
+
}]
|
59
|
+
};
|
60
|
+
}
|
61
|
+
|
62
|
+
function actions(props) {
|
63
|
+
var _ref = props || {},
|
64
|
+
_ref$title = _ref.title,
|
65
|
+
title = _ref$title === void 0 ? '操作项' : _ref$title,
|
66
|
+
_ref$name = _ref.name,
|
67
|
+
name = _ref$name === void 0 ? 'actions' : _ref$name,
|
68
|
+
arrayTitle = _ref.arrayTitle;
|
69
|
+
|
70
|
+
return array(title, name, [{
|
71
|
+
name: 'children',
|
72
|
+
title: '文字',
|
73
|
+
component: 'Input',
|
74
|
+
default: '操作'
|
75
|
+
}, {
|
76
|
+
name: 'icon',
|
77
|
+
title: '图标',
|
78
|
+
component: 'IconPicker',
|
79
|
+
props: {
|
80
|
+
width: '100%'
|
81
|
+
}
|
82
|
+
}, {
|
83
|
+
name: 'type',
|
84
|
+
title: '按钮类型',
|
85
|
+
component: 'Select',
|
86
|
+
dataSource: [{
|
87
|
+
label: '普通',
|
88
|
+
value: 'normal'
|
89
|
+
}, {
|
90
|
+
label: '次要',
|
91
|
+
value: 'secondary'
|
92
|
+
}, {
|
93
|
+
label: '主要',
|
94
|
+
value: 'primary'
|
95
|
+
}]
|
96
|
+
}, {
|
97
|
+
name: 'config',
|
98
|
+
type: 'object',
|
99
|
+
children: [{
|
100
|
+
name: 'type',
|
101
|
+
title: '操作类型',
|
102
|
+
component: 'Select',
|
103
|
+
dataSource: [{
|
104
|
+
label: '数据请求',
|
105
|
+
value: 'request'
|
106
|
+
}, {
|
107
|
+
label: '跳转链接',
|
108
|
+
value: 'link'
|
109
|
+
}, {
|
110
|
+
label: '二次确认',
|
111
|
+
value: 'confirm'
|
112
|
+
}, {
|
113
|
+
label: '弹窗表单',
|
114
|
+
value: 'dialog-form'
|
115
|
+
}, {
|
116
|
+
label: '弹窗表格',
|
117
|
+
value: 'dialog-table'
|
118
|
+
}, {
|
119
|
+
label: '抽屉表单',
|
120
|
+
value: 'drawer-form'
|
121
|
+
}, {
|
122
|
+
label: '抽屉表格',
|
123
|
+
value: 'drawer-table'
|
124
|
+
}],
|
125
|
+
default: 'request'
|
126
|
+
}, {
|
127
|
+
name: 'to',
|
128
|
+
title: '链接地址',
|
129
|
+
component: 'Input',
|
130
|
+
reactions: {
|
131
|
+
dependencies: ['.type'],
|
132
|
+
fulfill: {
|
133
|
+
state: {
|
134
|
+
visible: "{{$deps[0] === 'link'}}"
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}, {
|
139
|
+
name: 'blank',
|
140
|
+
title: '打开新页面',
|
141
|
+
component: 'Switch',
|
142
|
+
reactions: {
|
143
|
+
dependencies: ['.type'],
|
144
|
+
fulfill: {
|
145
|
+
state: {
|
146
|
+
visible: "{{$deps[0] === 'link'}}"
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}, {
|
151
|
+
name: 'title',
|
152
|
+
title: '标题',
|
153
|
+
component: 'Input',
|
154
|
+
reactions: {
|
155
|
+
dependencies: ['.type'],
|
156
|
+
fulfill: {
|
157
|
+
state: {
|
158
|
+
visible: "{{$deps[0] !== 'link' && $deps[0] !== 'request'}}"
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}, {
|
163
|
+
name: 'content',
|
164
|
+
title: '确认内容',
|
165
|
+
component: 'Input',
|
166
|
+
reactions: {
|
167
|
+
dependencies: ['.type'],
|
168
|
+
fulfill: {
|
169
|
+
state: {
|
170
|
+
visible: "{{$deps[0] === 'confirm'}}"
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
}, {
|
175
|
+
name: 'url',
|
176
|
+
title: '请求地址',
|
177
|
+
component: 'Input',
|
178
|
+
reactions: {
|
179
|
+
dependencies: ['.type'],
|
180
|
+
fulfill: {
|
181
|
+
state: {
|
182
|
+
visible: "{{$deps[0] !== 'link'}}"
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}, {
|
187
|
+
name: 'method',
|
188
|
+
title: '请求方式',
|
189
|
+
component: 'Radio',
|
190
|
+
dataSource: [{
|
191
|
+
label: 'get',
|
192
|
+
value: 'get'
|
193
|
+
}, {
|
194
|
+
label: 'post',
|
195
|
+
value: 'post'
|
196
|
+
}],
|
197
|
+
reactions: {
|
198
|
+
dependencies: ['.type'],
|
199
|
+
fulfill: {
|
200
|
+
state: {
|
201
|
+
visible: "{{$deps[0] !== 'link'}}"
|
202
|
+
}
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}, {
|
206
|
+
name: 'params',
|
207
|
+
title: '请求参数',
|
208
|
+
component: 'JsonInput',
|
209
|
+
reactions: {
|
210
|
+
dependencies: ['.type'],
|
211
|
+
fulfill: {
|
212
|
+
state: {
|
213
|
+
visible: "{{$deps[0] !== 'link'}}"
|
214
|
+
}
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}, {
|
218
|
+
name: 'initialValues',
|
219
|
+
title: '表单初始值',
|
220
|
+
component: 'Input',
|
221
|
+
reactions: {
|
222
|
+
dependencies: ['.type'],
|
223
|
+
fulfill: {
|
224
|
+
state: {
|
225
|
+
visible: "{{$deps[0] === 'dialog-form' || $deps[0] === 'drawer-form'}}"
|
226
|
+
}
|
227
|
+
}
|
228
|
+
}
|
229
|
+
}, {
|
230
|
+
name: 'schema',
|
231
|
+
title: 'Schema',
|
232
|
+
component: 'JsonInput',
|
233
|
+
reactions: {
|
234
|
+
dependencies: ['.type'],
|
235
|
+
fulfill: {
|
236
|
+
state: {
|
237
|
+
visible: "{{$deps[0] !== 'link' && $deps[0] !== 'request' && $deps[0] !== 'confirm'}}"
|
238
|
+
}
|
239
|
+
}
|
240
|
+
}
|
241
|
+
}, {
|
242
|
+
name: 'successMsg',
|
243
|
+
title: '请求成功提示',
|
244
|
+
component: 'Input',
|
245
|
+
reactions: {
|
246
|
+
dependencies: ['.type'],
|
247
|
+
fulfill: {
|
248
|
+
state: {
|
249
|
+
visible: "{{$deps[0] !== 'link'}}"
|
250
|
+
}
|
251
|
+
}
|
252
|
+
}
|
253
|
+
}, {
|
254
|
+
name: 'onSuccess',
|
255
|
+
title: '请求成功回调',
|
256
|
+
component: 'Input',
|
257
|
+
reactions: {
|
258
|
+
dependencies: ['.type'],
|
259
|
+
fulfill: {
|
260
|
+
state: {
|
261
|
+
visible: "{{$deps[0] !== 'link'}}"
|
262
|
+
}
|
263
|
+
}
|
264
|
+
}
|
265
|
+
}]
|
266
|
+
}, {
|
267
|
+
name: 'visible',
|
268
|
+
title: '是否可见',
|
269
|
+
component: 'Input'
|
270
|
+
}, {
|
271
|
+
name: 'disabled',
|
272
|
+
title: '是否禁用',
|
273
|
+
component: 'Input'
|
274
|
+
}], 'children', arrayTitle);
|
275
|
+
}
|
276
|
+
|
277
|
+
function filter(name) {
|
278
|
+
return {
|
279
|
+
name: name,
|
280
|
+
type: 'object',
|
281
|
+
children: [array('表单项', 'schema', [{
|
282
|
+
name: 'name',
|
283
|
+
title: 'ID',
|
284
|
+
component: 'Input',
|
285
|
+
required: true
|
286
|
+
}, {
|
287
|
+
name: 'title',
|
288
|
+
title: '标题',
|
289
|
+
component: 'Input'
|
290
|
+
}, {
|
291
|
+
name: 'component',
|
292
|
+
title: '组件类型',
|
293
|
+
component: 'Select',
|
294
|
+
dataSource: [{
|
295
|
+
label: 'Input',
|
296
|
+
value: 'Input'
|
297
|
+
}, {
|
298
|
+
label: 'Select',
|
299
|
+
value: 'Select'
|
300
|
+
}]
|
301
|
+
}, array('数据源', 'dataSource', [{
|
302
|
+
name: 'value',
|
303
|
+
title: '值',
|
304
|
+
component: 'Input',
|
305
|
+
required: true
|
306
|
+
}, {
|
307
|
+
name: 'label',
|
308
|
+
title: '文案',
|
309
|
+
component: 'Input',
|
310
|
+
required: true
|
311
|
+
}, {
|
312
|
+
name: 'color',
|
313
|
+
title: '颜色',
|
314
|
+
component: 'ColorPicker'
|
315
|
+
}], undefined, '数据源'), {
|
316
|
+
name: 'required',
|
317
|
+
title: '是否必填',
|
318
|
+
component: 'Switch'
|
319
|
+
}, {
|
320
|
+
name: 'props',
|
321
|
+
title: '属性',
|
322
|
+
component: 'JsonInput'
|
323
|
+
}])]
|
324
|
+
};
|
325
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare type ConfiguratorSchema = any[];
|
3
|
+
export interface Configurator<T = any> {
|
4
|
+
schema: ConfiguratorSchema;
|
5
|
+
initialValues?: T;
|
6
|
+
defaultValues?: T;
|
7
|
+
}
|
8
|
+
export declare type ConfiguratorMap = {
|
9
|
+
[key: string]: Configurator;
|
10
|
+
};
|
11
|
+
export interface ConfiguratorProps<T = any> {
|
12
|
+
initialValues?: T;
|
13
|
+
onValuesChange?: (values: T) => void;
|
14
|
+
}
|
15
|
+
export declare const initConfigurator: <T>(schema: ConfiguratorSchema, defaultInitialValues?: T, defaultValues?: T) => React.FC<ConfiguratorProps<T>>;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.initConfigurator = void 0;
|
9
|
+
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
11
|
+
|
12
|
+
var _form = _interopRequireWildcard(require("../../form"));
|
13
|
+
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
15
|
+
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
17
|
+
|
18
|
+
var initConfigurator = function initConfigurator(schema, defaultInitialValues, defaultValues) {
|
19
|
+
return function (props) {
|
20
|
+
var initialValues = props.initialValues,
|
21
|
+
onValuesChange = props.onValuesChange;
|
22
|
+
var form = (0, _react.useMemo)(function () {
|
23
|
+
return (0, _form.createForm)({
|
24
|
+
initialValues: Object.assign({}, defaultValues, initialValues || defaultInitialValues)
|
25
|
+
});
|
26
|
+
}, []);
|
27
|
+
|
28
|
+
var onChange = function onChange(values) {
|
29
|
+
onValuesChange && onValuesChange(values);
|
30
|
+
};
|
31
|
+
|
32
|
+
return /*#__PURE__*/_react.default.createElement(_form.default, {
|
33
|
+
labelCol: 6,
|
34
|
+
wrapperCol: 18,
|
35
|
+
labelAlign: "left",
|
36
|
+
colon: false,
|
37
|
+
form: form,
|
38
|
+
schema: schema,
|
39
|
+
onChange: onChange
|
40
|
+
});
|
41
|
+
};
|
42
|
+
};
|
43
|
+
|
44
|
+
exports.initConfigurator = initConfigurator;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.ComponentConfiguratorMap = void 0;
|
7
|
+
|
8
|
+
var _Card = _interopRequireDefault(require("./Card"));
|
9
|
+
|
10
|
+
var _PageHeader = _interopRequireDefault(require("./PageHeader"));
|
11
|
+
|
12
|
+
var _ProTable = _interopRequireDefault(require("./ProTable"));
|
13
|
+
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
|
+
|
16
|
+
var ComponentConfiguratorMap = {
|
17
|
+
Card: _Card.default,
|
18
|
+
PageHeader: _PageHeader.default,
|
19
|
+
ProTable: _ProTable.default
|
20
|
+
};
|
21
|
+
exports.ComponentConfiguratorMap = ComponentConfiguratorMap;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import './index.scss';
|
2
|
+
import PageContainer from '../page-container';
|
3
|
+
export { PageContainer };
|
4
|
+
export type { PageProps } from '../page-container';
|
5
|
+
export * from './configurators';
|
6
|
+
export * from './configurators/map';
|
7
|
+
export * from './pages';
|
8
|
+
export * from './playground';
|
@@ -0,0 +1,76 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
var _exportNames = {
|
7
|
+
PageContainer: true
|
8
|
+
};
|
9
|
+
Object.defineProperty(exports, "PageContainer", {
|
10
|
+
enumerable: true,
|
11
|
+
get: function get() {
|
12
|
+
return _pageContainer.default;
|
13
|
+
}
|
14
|
+
});
|
15
|
+
|
16
|
+
require("./index.scss");
|
17
|
+
|
18
|
+
var _pageContainer = _interopRequireDefault(require("../page-container"));
|
19
|
+
|
20
|
+
var _configurators = require("./configurators");
|
21
|
+
|
22
|
+
Object.keys(_configurators).forEach(function (key) {
|
23
|
+
if (key === "default" || key === "__esModule") return;
|
24
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
25
|
+
if (key in exports && exports[key] === _configurators[key]) return;
|
26
|
+
Object.defineProperty(exports, key, {
|
27
|
+
enumerable: true,
|
28
|
+
get: function get() {
|
29
|
+
return _configurators[key];
|
30
|
+
}
|
31
|
+
});
|
32
|
+
});
|
33
|
+
|
34
|
+
var _map = require("./configurators/map");
|
35
|
+
|
36
|
+
Object.keys(_map).forEach(function (key) {
|
37
|
+
if (key === "default" || key === "__esModule") return;
|
38
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
39
|
+
if (key in exports && exports[key] === _map[key]) return;
|
40
|
+
Object.defineProperty(exports, key, {
|
41
|
+
enumerable: true,
|
42
|
+
get: function get() {
|
43
|
+
return _map[key];
|
44
|
+
}
|
45
|
+
});
|
46
|
+
});
|
47
|
+
|
48
|
+
var _pages = require("./pages");
|
49
|
+
|
50
|
+
Object.keys(_pages).forEach(function (key) {
|
51
|
+
if (key === "default" || key === "__esModule") return;
|
52
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
53
|
+
if (key in exports && exports[key] === _pages[key]) return;
|
54
|
+
Object.defineProperty(exports, key, {
|
55
|
+
enumerable: true,
|
56
|
+
get: function get() {
|
57
|
+
return _pages[key];
|
58
|
+
}
|
59
|
+
});
|
60
|
+
});
|
61
|
+
|
62
|
+
var _playground = require("./playground");
|
63
|
+
|
64
|
+
Object.keys(_playground).forEach(function (key) {
|
65
|
+
if (key === "default" || key === "__esModule") return;
|
66
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
67
|
+
if (key in exports && exports[key] === _playground[key]) return;
|
68
|
+
Object.defineProperty(exports, key, {
|
69
|
+
enumerable: true,
|
70
|
+
get: function get() {
|
71
|
+
return _playground[key];
|
72
|
+
}
|
73
|
+
});
|
74
|
+
});
|
75
|
+
|
76
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
@@ -0,0 +1,93 @@
|
|
1
|
+
.teamix-nocode {
|
2
|
+
&-empty {
|
3
|
+
display: flex;
|
4
|
+
flex-direction: column;
|
5
|
+
align-items: center;
|
6
|
+
justify-content: center;
|
7
|
+
padding: 20px;
|
8
|
+
|
9
|
+
p {
|
10
|
+
color: var(--color-text1-8, #848484);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
&-playground {
|
15
|
+
display: flex;
|
16
|
+
position: relative;
|
17
|
+
border: 1px solid var(--color-line1-1, #eaeaea);
|
18
|
+
|
19
|
+
&-component {
|
20
|
+
padding: 20px;
|
21
|
+
flex-grow: 1;
|
22
|
+
border-right: 1px solid var(--color-line1-1, #eaeaea);
|
23
|
+
|
24
|
+
&>.teamix-pro-page-container {
|
25
|
+
padding: 0;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
&-configurator {
|
30
|
+
padding: 0;
|
31
|
+
flex-shrink: 0;
|
32
|
+
width: 360px;
|
33
|
+
overflow: auto;
|
34
|
+
|
35
|
+
--tab-item-margin-lr-size-m: 8px;
|
36
|
+
|
37
|
+
ul.next-tabs-nav {
|
38
|
+
padding: 0 16px;
|
39
|
+
--tab-item-text-size-m: 13px;
|
40
|
+
}
|
41
|
+
|
42
|
+
.next-collapse-panel-content {
|
43
|
+
padding: 16px 16px 0 !important;
|
44
|
+
}
|
45
|
+
|
46
|
+
.next-table-empty {
|
47
|
+
padding: 8px 0;
|
48
|
+
}
|
49
|
+
|
50
|
+
& > .next-formily-layout {
|
51
|
+
height: 100%;
|
52
|
+
& > form {
|
53
|
+
height: 100%;
|
54
|
+
& > .next-tabs {
|
55
|
+
height: 100%;
|
56
|
+
display: flex;
|
57
|
+
flex-direction: column;
|
58
|
+
& > .next-tabs-bar {
|
59
|
+
flex-shrink: 0;
|
60
|
+
}
|
61
|
+
& > .next-tabs-content {
|
62
|
+
flex-grow: 1;
|
63
|
+
overflow: auto;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
.teamix-pro-field-icon {
|
70
|
+
button {
|
71
|
+
width: 100%;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
&-tools {
|
77
|
+
position: absolute;
|
78
|
+
right: 20px;
|
79
|
+
bottom: 20px;
|
80
|
+
|
81
|
+
&>i {
|
82
|
+
cursor: pointer;
|
83
|
+
color: var(--color-text1-8, #848484);
|
84
|
+
background-color: rgba(0, 0, 0, 0.06);
|
85
|
+
padding: 8px;
|
86
|
+
border-radius: 4px;
|
87
|
+
&:hover {
|
88
|
+
color: var(--color-text1-3, #333333);
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Field } from '@alicloudfe/components';
|
2
|
+
import { ConfiguratorMap } from '../configurators';
|
3
|
+
import { PageMap, PageType, PageDefaultInitialValues } from '.';
|
4
|
+
export interface PageEditorProps {
|
5
|
+
type: PageType;
|
6
|
+
initialValues?: any;
|
7
|
+
field?: Field;
|
8
|
+
configuratorMap?: ConfiguratorMap;
|
9
|
+
pageMap?: PageMap;
|
10
|
+
pageDefaultInitialValues?: PageDefaultInitialValues;
|
11
|
+
}
|
12
|
+
export declare const PageEditor: (props: PageEditorProps) => JSX.Element;
|
@@ -0,0 +1,58 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.PageEditor = void 0;
|
7
|
+
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
9
|
+
|
10
|
+
var _svg = _interopRequireDefault(require("@teamix/svg"));
|
11
|
+
|
12
|
+
var _utils = require("@teamix/utils");
|
13
|
+
|
14
|
+
var _playground = require("./playground");
|
15
|
+
|
16
|
+
var _ = require(".");
|
17
|
+
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
19
|
+
|
20
|
+
var cls = (0, _utils.baseClass)('teamix-pro-pager');
|
21
|
+
|
22
|
+
var PageEditor = function PageEditor(props) {
|
23
|
+
var type = props.type,
|
24
|
+
initialValues = props.initialValues,
|
25
|
+
field = props.field,
|
26
|
+
configuratorMap = props.configuratorMap,
|
27
|
+
pageMap = props.pageMap,
|
28
|
+
pageDefaultInitialValues = props.pageDefaultInitialValues;
|
29
|
+
var values = initialValues || _.PageDefaultInitialValues[type] || (pageDefaultInitialValues === null || pageDefaultInitialValues === void 0 ? void 0 : pageDefaultInitialValues[type]);
|
30
|
+
|
31
|
+
_react.default.useEffect(function () {
|
32
|
+
field && field.setValues(values);
|
33
|
+
}, []);
|
34
|
+
|
35
|
+
var onValuesChange = function onValuesChange(values) {
|
36
|
+
field && field.setValues(values);
|
37
|
+
};
|
38
|
+
|
39
|
+
var Page = _.PageMap[type] || (pageMap === null || pageMap === void 0 ? void 0 : pageMap[type]);
|
40
|
+
|
41
|
+
if (!Page) {
|
42
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
43
|
+
className: cls('empty')
|
44
|
+
}, /*#__PURE__*/_react.default.createElement(_svg.default.Status404, {
|
45
|
+
width: 160,
|
46
|
+
height: 160
|
47
|
+
}), /*#__PURE__*/_react.default.createElement("p", null, "\u9519\u8BEF\u7684\u9875\u9762\u7C7B\u578B"));
|
48
|
+
}
|
49
|
+
|
50
|
+
return /*#__PURE__*/_react.default.createElement(_playground.PagePlayground, {
|
51
|
+
page: Page,
|
52
|
+
initialValues: values,
|
53
|
+
onValuesChange: onValuesChange,
|
54
|
+
configuratorMap: configuratorMap
|
55
|
+
});
|
56
|
+
};
|
57
|
+
|
58
|
+
exports.PageEditor = PageEditor;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { PageProps } from '../../page-container';
|
3
|
+
export * from './editor';
|
4
|
+
export * from './playground';
|
5
|
+
export * from './renderer';
|
6
|
+
export declare type PageType = 'LIST' | 'DETAIL' | 'FORM' | string;
|
7
|
+
export declare type PageMap = {
|
8
|
+
[key in PageType]: React.FC<PageProps>;
|
9
|
+
};
|
10
|
+
export declare const PageMap: PageMap;
|
11
|
+
export declare type PageDefaultInitialValues = {
|
12
|
+
[key in PageType]: any;
|
13
|
+
};
|
14
|
+
export declare const PageDefaultInitialValues: PageDefaultInitialValues;
|