@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,78 @@
|
|
1
|
+
import type { ReactNode } from 'react';
|
2
|
+
import type { Method } from 'axios';
|
3
|
+
import type { IFormFeedback, Form as FormType, FieldPatternTypes } from '@formily/core';
|
4
|
+
import type { IFormLayoutProps } from '@teamix/formily';
|
5
|
+
export interface anyObject {
|
6
|
+
[propName: string]: any;
|
7
|
+
}
|
8
|
+
declare type FieldDisplayTypes = 'none' | 'hidden' | 'visible';
|
9
|
+
export declare type IBaseComponent = 'Input' | 'Password' | 'TextArea' | 'NumberPicker' | 'Percent' | 'Money' | 'Select' | 'MultipleSelect' | 'TreeSelect' | 'Cascader' | 'MultipleCascader' | 'ArbitraryCascader' | 'Radio' | 'Checkbox' | 'Switch' | 'DatePicker' | 'TimePicker' | 'DateTimePicker' | 'WeekPicker' | 'MonthPicker' | 'YearPicker' | 'QuarterPicker' | 'DateRangePicker' | 'TimeRangePicker' | 'DateTimeRangePicker' | 'WeekRangePicker' | 'MonthRangePicker' | 'YearRangePicker' | 'QuarterRangePicker' | 'Transfer' | 'Upload' | 'ColorPicker' | 'ColorRadio' | 'ColorSwatches' | 'ColorTwitter' | 'IconPicker' | 'JsonInput';
|
10
|
+
export declare type IButtonComponent = 'Submit' | 'Reset';
|
11
|
+
export declare type IComboComponent = 'ArrayCards' | 'ArrayCards.Addition' | 'ArrayCards.Remove' | 'ArrayCards.MoveUp' | 'ArrayCards.MoveDown' | 'ArrayCards.Index' | 'ArrayCollapse' | 'ArrayCollapse.CollapsePanel' | 'ArrayCollapse.Addition' | 'ArrayCollapse.Remove' | 'ArrayCollapse.MoveUp' | 'ArrayCollapse.MoveDown' | 'ArrayCollapse.Index' | 'ArrayTable' | 'ArrayTable.Column' | 'ArrayTable.SortHandle' | 'ArrayTable.Addition' | 'ArrayTable.Remove' | 'ArrayTable.MoveDown' | 'ArrayTable.MoveUp' | 'ArrayTable.Index' | 'ArrayItems' | 'ArrayItems.Item' | 'ArrayItems.SortHandle' | 'ArrayItems.Addition' | 'ArrayItems.Remove' | 'ArrayItems.MoveDown' | 'ArrayItems.MoveUp' | 'ArrayItems.Index' | 'Editable' | 'Editable.Popover' | 'Editable.Dialog' | 'Editable.Drawer';
|
12
|
+
export declare type ILayoutComponent = 'FormFlex' | 'FormGrid' | 'FormGroup' | 'FormGroup.GroupPanel' | 'Search' | 'Search.SearchPanel' | 'FormTab' | 'FormTab.TabPane' | 'FormStep' | 'FormStep.StepPane' | 'FormCollapse' | 'FormCollapse.CollapsePanel' | 'FormButtonGroup' | 'FormDialog' | 'FormDrawer' | 'FormDialog.Footer' | 'FormDrawer.Footer';
|
13
|
+
export interface IRequestConfig {
|
14
|
+
url?: string;
|
15
|
+
method?: Method;
|
16
|
+
params?: any;
|
17
|
+
data?: any;
|
18
|
+
when?: (field: any) => any;
|
19
|
+
formatter?: (res: any, utils: any) => any;
|
20
|
+
successMsg?: string;
|
21
|
+
errorMsg?: string;
|
22
|
+
onSuccess?: (res: any, field?: any) => any;
|
23
|
+
onError?: (error: any) => any;
|
24
|
+
}
|
25
|
+
export interface ISchemaProItem {
|
26
|
+
type?: string;
|
27
|
+
name?: string;
|
28
|
+
description?: React.ReactNode;
|
29
|
+
title?: string;
|
30
|
+
component?: IBaseComponent | IButtonComponent | IComboComponent | ILayoutComponent | 'ProField' | any;
|
31
|
+
props?: anyObject | any;
|
32
|
+
decorator?: string | null;
|
33
|
+
decoratorProps?: anyObject;
|
34
|
+
dataSource?: any[];
|
35
|
+
reactions?: any;
|
36
|
+
rules?: any;
|
37
|
+
items?: ISchemaProItem[];
|
38
|
+
children?: ISchemaProItem[];
|
39
|
+
content?: any;
|
40
|
+
tooltip?: string;
|
41
|
+
required?: boolean;
|
42
|
+
display?: FieldDisplayTypes;
|
43
|
+
visible?: boolean;
|
44
|
+
hidden?: boolean;
|
45
|
+
disabled?: boolean;
|
46
|
+
readOnly?: boolean;
|
47
|
+
readPretty?: boolean;
|
48
|
+
pattern?: FieldPatternTypes;
|
49
|
+
default?: any;
|
50
|
+
request?: IRequestConfig;
|
51
|
+
}
|
52
|
+
export declare type ISchemaPro = ISchemaProItem[];
|
53
|
+
export interface IInitialize {
|
54
|
+
(items: ISchemaProItem[], props?: any): ISchemaProItem[];
|
55
|
+
}
|
56
|
+
export interface IInitializeItem {
|
57
|
+
(items: ISchemaProItem, props?: any): ISchemaProItem;
|
58
|
+
}
|
59
|
+
export interface IProFormProps extends IFormLayoutProps {
|
60
|
+
form?: FormType | false;
|
61
|
+
schema: ISchemaPro;
|
62
|
+
scope?: any;
|
63
|
+
components?: {
|
64
|
+
[key: string]: React.FC | React.ComponentClass;
|
65
|
+
};
|
66
|
+
children?: React.ReactNode;
|
67
|
+
initialValues?: object;
|
68
|
+
previewTextPlaceholder?: ReactNode;
|
69
|
+
onChange?: (values: any) => any;
|
70
|
+
onSubmit?: (values: any) => any;
|
71
|
+
onSubmitFailed?: (feedbacks: IFormFeedback[]) => void;
|
72
|
+
}
|
73
|
+
export interface IFilterProps extends IProFormProps {
|
74
|
+
triggerType?: 'keydown' | 'change' | 'submit';
|
75
|
+
onFilter?: (values: any) => void;
|
76
|
+
onReset?: (payload?: any) => void;
|
77
|
+
}
|
78
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
interface IGetRandomName {
|
2
|
+
(prefix?: string): string;
|
3
|
+
}
|
4
|
+
declare const mapSize: (props: any, field: any) => any;
|
5
|
+
declare const mapStatus: (props: any, field: any) => any;
|
6
|
+
declare const getRandomName: IGetRandomName;
|
7
|
+
declare const commonFormat: (obj: any) => any;
|
8
|
+
declare const mergeArrayValue: (arr: any[], v?: any) => any[];
|
9
|
+
export { getRandomName, mapSize, mapStatus, commonFormat, mergeArrayValue };
|
package/es/form/utils.js
ADDED
@@ -0,0 +1,108 @@
|
|
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 _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
6
|
+
|
7
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
8
|
+
|
9
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
10
|
+
|
11
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
12
|
+
|
13
|
+
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); }
|
14
|
+
|
15
|
+
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; }
|
16
|
+
|
17
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
18
|
+
|
19
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
20
|
+
|
21
|
+
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; }
|
22
|
+
|
23
|
+
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; }
|
24
|
+
|
25
|
+
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; }
|
26
|
+
|
27
|
+
import { useFormLayout, useFormShallowLayout } from '@teamix/formily';
|
28
|
+
import { isArr, isObj } from '@teamix/utils';
|
29
|
+
|
30
|
+
var mapSize = function mapSize(props, field) {
|
31
|
+
var layout = _objectSpread(_objectSpread({}, useFormShallowLayout()), useFormLayout());
|
32
|
+
|
33
|
+
var takeSize = function takeSize() {
|
34
|
+
return layout.size === 'default' ? 'medium' : layout.size;
|
35
|
+
};
|
36
|
+
|
37
|
+
return _objectSpread(_objectSpread({}, props), {}, {
|
38
|
+
size: props.size || takeSize()
|
39
|
+
});
|
40
|
+
};
|
41
|
+
|
42
|
+
var mapStatus = function mapStatus(props, field) {
|
43
|
+
var takeStatus = function takeStatus() {
|
44
|
+
var _field$warnings, _field$decoratorProps, _field$decoratorProps2;
|
45
|
+
|
46
|
+
if (!field) return;
|
47
|
+
if (field['loading'] || field['validating']) return 'loading';
|
48
|
+
if (field['invalid']) return 'error';
|
49
|
+
if ((_field$warnings = field['warnings']) === null || _field$warnings === void 0 ? void 0 : _field$warnings.length) return 'warning';
|
50
|
+
if (((_field$decoratorProps = field.decoratorProps) === null || _field$decoratorProps === void 0 ? void 0 : _field$decoratorProps.feedbackStatus) === 'pending') return 'loading'; // 新增
|
51
|
+
|
52
|
+
return (_field$decoratorProps2 = field.decoratorProps) === null || _field$decoratorProps2 === void 0 ? void 0 : _field$decoratorProps2.feedbackStatus;
|
53
|
+
};
|
54
|
+
|
55
|
+
var takeState = function takeState(state) {
|
56
|
+
if (state === 'validating' || state === 'pending') return 'loading';
|
57
|
+
return state;
|
58
|
+
};
|
59
|
+
|
60
|
+
return _objectSpread(_objectSpread({}, props), {}, {
|
61
|
+
state: takeState(props.state) || takeStatus()
|
62
|
+
});
|
63
|
+
};
|
64
|
+
|
65
|
+
var getRandomName = function getRandomName() {
|
66
|
+
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'name';
|
67
|
+
return "".concat(prefix, "_").concat(Math.floor(Math.random() * Math.pow(10, 18)));
|
68
|
+
};
|
69
|
+
|
70
|
+
var commonFormat = function commonFormat(obj) {
|
71
|
+
var temp = {};
|
72
|
+
Object.entries(obj).map(function (_ref) {
|
73
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
74
|
+
key = _ref2[0],
|
75
|
+
value = _ref2[1];
|
76
|
+
|
77
|
+
if (value) {
|
78
|
+
if (isArr(value)) {
|
79
|
+
if (value.length) {
|
80
|
+
temp[key] = value;
|
81
|
+
}
|
82
|
+
} else if (isObj(value)) {
|
83
|
+
if (Object.keys(value).length) {
|
84
|
+
temp[key] = value;
|
85
|
+
}
|
86
|
+
} else {
|
87
|
+
temp[key] = value;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
});
|
91
|
+
return temp;
|
92
|
+
};
|
93
|
+
|
94
|
+
var mergeArrayValue = function mergeArrayValue(arr, v) {
|
95
|
+
if (isArr(v)) {
|
96
|
+
return [].concat(_toConsumableArray(arr), _toConsumableArray(v));
|
97
|
+
}
|
98
|
+
|
99
|
+
return [].concat(_toConsumableArray(arr), [v]);
|
100
|
+
|
101
|
+
if (v !== undefined) {
|
102
|
+
return [].concat(_toConsumableArray(arr), [v]);
|
103
|
+
}
|
104
|
+
|
105
|
+
return arr;
|
106
|
+
};
|
107
|
+
|
108
|
+
export { getRandomName, mapSize, mapStatus, commonFormat, mergeArrayValue };
|
@@ -0,0 +1,20 @@
|
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
2
|
+
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
4
|
+
|
5
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
6
|
+
|
7
|
+
var warning = function warning(item) {
|
8
|
+
var newItem = _objectSpread({}, item); // if (newItem.formItem) {
|
9
|
+
// newItem.decorator = newItem.formItem;
|
10
|
+
// delete newItem.formItem;
|
11
|
+
// console.warn(
|
12
|
+
// '请尽快将“formItem”属性名称升级为“decorator”,正式版将不再支持该名称。',
|
13
|
+
// );
|
14
|
+
// }
|
15
|
+
|
16
|
+
|
17
|
+
return newItem;
|
18
|
+
};
|
19
|
+
|
20
|
+
export default warning;
|
package/es/index.d.ts
CHANGED
@@ -1,23 +1,24 @@
|
|
1
|
-
import ProAction from '
|
2
|
-
import ProCard from '
|
3
|
-
import ProField from '
|
4
|
-
import ProForm from '
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import
|
13
|
-
import * as
|
14
|
-
|
15
|
-
export * from '
|
16
|
-
export * from '
|
17
|
-
export * from '
|
18
|
-
export * from '
|
19
|
-
export * from '
|
20
|
-
export * from '
|
21
|
-
export * from '
|
22
|
-
|
23
|
-
|
1
|
+
import ProAction from './actions';
|
2
|
+
import ProCard from './card';
|
3
|
+
import ProField from './field';
|
4
|
+
import ProForm from './form';
|
5
|
+
import hooks from './hooks';
|
6
|
+
import ProInfo from './info';
|
7
|
+
import ProLayout from './layout';
|
8
|
+
import ProPageContainer from './page-container';
|
9
|
+
import ProPageHeader from './page-header';
|
10
|
+
import ProTable from './table';
|
11
|
+
import ProSkeleton from './skeleton';
|
12
|
+
import utils from './utils';
|
13
|
+
import * as nocode from './nocode';
|
14
|
+
import * as templates from './templates';
|
15
|
+
export * from './actions';
|
16
|
+
export * from './card';
|
17
|
+
export * from './field';
|
18
|
+
export * from './form';
|
19
|
+
export * from './page-container';
|
20
|
+
export * from './page-header';
|
21
|
+
export * from './skeleton';
|
22
|
+
export * from './table';
|
23
|
+
declare const version = "1.0.25";
|
24
|
+
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProLayout, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, hooks, nocode, templates, utils, };
|
package/es/index.js
CHANGED
@@ -1,26 +1,27 @@
|
|
1
|
-
import ProAction from '
|
2
|
-
import ProCard from '
|
3
|
-
import ProField from '
|
4
|
-
import ProForm from '
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import
|
13
|
-
import * as
|
14
|
-
import * as
|
1
|
+
import ProAction from './actions';
|
2
|
+
import ProCard from './card';
|
3
|
+
import ProField from './field';
|
4
|
+
import ProForm from './form';
|
5
|
+
import hooks from './hooks';
|
6
|
+
import ProInfo from './info';
|
7
|
+
import ProLayout from './layout';
|
8
|
+
import ProPageContainer from './page-container';
|
9
|
+
import ProPageHeader from './page-header';
|
10
|
+
import ProTable from './table';
|
11
|
+
import ProSkeleton from './skeleton';
|
12
|
+
import utils from './utils';
|
13
|
+
import * as nocode from './nocode';
|
14
|
+
import * as templates from './templates';
|
15
|
+
import TeamixIcon from '@teamix/icon'; // 设置图标源
|
15
16
|
|
16
17
|
TeamixIcon.setConfig(utils.getTeamixIconConfig());
|
17
|
-
export * from '
|
18
|
-
export * from '
|
19
|
-
export * from '
|
20
|
-
export * from '
|
21
|
-
export * from '
|
22
|
-
export * from '
|
23
|
-
export * from '
|
24
|
-
export * from '
|
25
|
-
var version = '1.0.
|
26
|
-
export { ProAction, ProCard, ProField, ProForm, ProPageContainer, ProPageHeader, ProSkeleton, ProTable,
|
18
|
+
export * from './actions';
|
19
|
+
export * from './card';
|
20
|
+
export * from './field';
|
21
|
+
export * from './form';
|
22
|
+
export * from './page-container';
|
23
|
+
export * from './page-header';
|
24
|
+
export * from './skeleton';
|
25
|
+
export * from './table';
|
26
|
+
var version = '1.0.25';
|
27
|
+
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProLayout, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, hooks, nocode, templates, utils };
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import { Grid } from '@alicloudfe/components';
|
2
|
+
import { BaseSkeleton } from '../../..';
|
3
|
+
import { baseClass, LabelIconTip } from '@teamix/utils';
|
4
|
+
import React from 'react';
|
5
|
+
import './index.scss';
|
6
|
+
var cls = baseClass('teamix-pro-field-info-form-item');
|
7
|
+
var Row = Grid.Row,
|
8
|
+
Col = Grid.Col;
|
9
|
+
|
10
|
+
var FormItem = function FormItem(prop) {
|
11
|
+
var value = prop.value,
|
12
|
+
label = prop.label,
|
13
|
+
baseInfoLayout = prop.baseInfoLayout,
|
14
|
+
headerInfoLayout = prop.headerInfoLayout,
|
15
|
+
loading = prop.loading,
|
16
|
+
tooltip = prop.tooltip,
|
17
|
+
tooltipIcon = prop.tooltipIcon;
|
18
|
+
|
19
|
+
if (baseInfoLayout) {
|
20
|
+
var labelCol = baseInfoLayout.labelCol,
|
21
|
+
wrapperCol = baseInfoLayout.wrapperCol;
|
22
|
+
return /*#__PURE__*/React.createElement("div", {
|
23
|
+
className: cls()
|
24
|
+
}, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {
|
25
|
+
span: labelCol.span,
|
26
|
+
className: cls('label')
|
27
|
+
}, /*#__PURE__*/React.createElement(LabelIconTip, {
|
28
|
+
label: label,
|
29
|
+
tooltip: tooltip,
|
30
|
+
icon: tooltipIcon
|
31
|
+
})), /*#__PURE__*/React.createElement(Col, {
|
32
|
+
span: wrapperCol.span,
|
33
|
+
className: cls('value')
|
34
|
+
}, loading && /*#__PURE__*/React.createElement("div", {
|
35
|
+
style: {
|
36
|
+
width: '100%'
|
37
|
+
}
|
38
|
+
}, /*#__PURE__*/React.createElement(BaseSkeleton.Info, null)), !loading && /*#__PURE__*/React.createElement("div", null, value))));
|
39
|
+
}
|
40
|
+
|
41
|
+
if (headerInfoLayout) {
|
42
|
+
var _headerInfoLayout$lab = headerInfoLayout.labelGutter,
|
43
|
+
labelGutter = _headerInfoLayout$lab === void 0 ? '16px' : _headerInfoLayout$lab;
|
44
|
+
return /*#__PURE__*/React.createElement("div", {
|
45
|
+
className: cls()
|
46
|
+
}, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement("div", {
|
47
|
+
className: cls('header-label')
|
48
|
+
}, /*#__PURE__*/React.createElement(LabelIconTip, {
|
49
|
+
label: label,
|
50
|
+
tooltip: tooltip,
|
51
|
+
icon: tooltipIcon
|
52
|
+
})), /*#__PURE__*/React.createElement("div", {
|
53
|
+
className: cls('header-value'),
|
54
|
+
style: {
|
55
|
+
marginLeft: labelGutter
|
56
|
+
}
|
57
|
+
}, loading && /*#__PURE__*/React.createElement(BaseSkeleton.Info, null), !loading && /*#__PURE__*/React.createElement(React.Fragment, null, value))));
|
58
|
+
}
|
59
|
+
|
60
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
61
|
+
};
|
62
|
+
|
63
|
+
export default FormItem;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
$label-color: var(--color-text1-2, #5a5a5a);
|
2
|
+
$label-size: var(--font-size-body-1, 12px);
|
3
|
+
$label-weight: var(--font-weight-medium, 500);
|
4
|
+
$text-color: var(--color-text1-3, #333333);
|
5
|
+
$text-size: var(--font-size-body-1, 12px);
|
6
|
+
// $text-weight: var(--font-weight-medium, 500);
|
7
|
+
|
8
|
+
$header-label-color: var(--color-text1-2, #5a5a5a);
|
9
|
+
$header-label-size: var(--font-size-body-1, 12px);
|
10
|
+
// $header-label-weight: var(--font-weight-medium, 500);
|
11
|
+
$header-text-color: var(--color-text1-3, #333333);
|
12
|
+
$header-text-size: var(--font-size-body-1, 12px);
|
13
|
+
// $header-text-weight: var(--font-weight-medium, 500);
|
14
|
+
|
15
|
+
$item-padding-bottom: 8px;
|
16
|
+
|
17
|
+
.teamix-pro-field-info-form-item {
|
18
|
+
width: 100%;
|
19
|
+
padding-bottom: $item-padding-bottom;
|
20
|
+
}
|
21
|
+
|
22
|
+
.teamix-pro-field-info-form-item-label {
|
23
|
+
color: $label-color;
|
24
|
+
font-size: $label-size;
|
25
|
+
// font-weight: $label-weight;
|
26
|
+
display: unset;
|
27
|
+
}
|
28
|
+
|
29
|
+
.teamix-pro-field-info-form-item-value {
|
30
|
+
color: $text-color;
|
31
|
+
font-size: $text-size;
|
32
|
+
display: unset;
|
33
|
+
width: 100%;
|
34
|
+
}
|
35
|
+
|
36
|
+
.teamix-pro-field-info-form-item-header-label {
|
37
|
+
color: $header-label-color;
|
38
|
+
font-size: $header-label-size;
|
39
|
+
// font-weight: $header-label-weight;
|
40
|
+
display: inline-block;
|
41
|
+
white-space:nowrap;
|
42
|
+
}
|
43
|
+
|
44
|
+
.teamix-pro-field-info-form-item-header-value {
|
45
|
+
color: $header-text-color;
|
46
|
+
font-size: $header-text-size;
|
47
|
+
display: inline-block;
|
48
|
+
width: 100%;
|
49
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './index.scss';
|
3
|
+
|
4
|
+
var ProInfoGroup = function ProInfoGroup(props) {
|
5
|
+
var children = props.children;
|
6
|
+
return /*#__PURE__*/React.createElement("div", {
|
7
|
+
className: "teamix-pro-info-group"
|
8
|
+
}, children === null || children === void 0 ? void 0 : children.map(function (item, index) {
|
9
|
+
return /*#__PURE__*/React.createElement("div", {
|
10
|
+
className: "teamix-pro-info-group-item",
|
11
|
+
key: index
|
12
|
+
}, item);
|
13
|
+
}));
|
14
|
+
};
|
15
|
+
|
16
|
+
export default ProInfoGroup;
|