@teamix/pro 1.6.0-beta.4 → 1.6.0-beta.6
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/README.md +1 -1
- package/dist/pro.all.min.css +1 -0
- package/dist/pro.css +1 -1
- package/dist/pro.js +70007 -54355
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/dist/pro.min.js.LICENSE.txt +9 -0
- package/dist/pro.xconsole.min.css +1 -0
- package/es/actions/base.d.ts +24 -0
- package/es/actions/base.js +1 -1
- package/es/actions/confirm.d.ts +7 -0
- package/es/actions/danger-confirm.d.ts +7 -0
- package/es/actions/danger-pop-confirm.d.ts +5 -0
- package/es/actions/dialog-component.d.ts +10 -0
- package/es/actions/dialog-component.js +4 -1
- package/es/actions/dialog-form.d.ts +29 -0
- package/es/actions/dialog-form.js +8 -8
- package/es/actions/dialog-info.d.ts +9 -0
- package/es/actions/dialog-table.d.ts +9 -0
- package/es/actions/dialog.d.ts +40 -0
- package/es/actions/dialog.js +8 -7
- package/es/actions/drawer-form.d.ts +6 -0
- package/es/actions/drawer-info.d.ts +6 -0
- package/es/actions/drawer-table.d.ts +6 -0
- package/es/actions/drawer.d.ts +6 -0
- package/es/actions/error.d.ts +7 -0
- package/es/actions/index.d.ts +114 -0
- package/es/actions/index.js +69 -60
- package/es/actions/index.scss +10 -1
- package/es/actions/link.d.ts +8 -0
- package/es/actions/link.js +4 -3
- package/es/actions/notice.d.ts +7 -0
- package/es/actions/pop-confirm.d.ts +9 -0
- package/es/actions/quick.d.ts +2 -0
- package/es/actions/quick.js +26 -0
- package/es/actions/request.d.ts +9 -0
- package/es/actions/request.js +4 -3
- package/es/actions/utils.d.ts +1 -0
- package/es/card/card-container.d.ts +18 -0
- package/es/card/card-container.js +5 -12
- package/es/card/divider.d.ts +6 -0
- package/es/card/divider.js +4 -2
- package/es/card/index.d.ts +109 -0
- package/es/card/index.js +11 -22
- package/es/card/index.scss +15 -0
- package/es/card/selectable.d.ts +13 -0
- package/es/card/selectable.js +4 -2
- package/es/card/tab.d.ts +6 -0
- package/es/card/tab.js +4 -2
- package/es/card/utils.d.ts +9 -0
- package/es/card/xconsole.scss +3 -0
- package/es/field/index.d.ts +3 -0
- package/es/form/Components/Editable/index.d.ts +20 -0
- package/es/form/Components/Editable/index.js +2 -2
- package/es/form/Components/FormGroup/index.d.ts +14 -0
- package/es/form/Components/FormGroup/index.js +3 -4
- package/es/form/Components/FormItem2/animation.scss +72 -0
- package/es/form/Components/FormItem2/grid.scss +173 -0
- package/es/form/Components/FormItem2/index.d.ts +41 -0
- package/es/form/Components/FormItem2/index.js +286 -0
- package/es/form/Components/FormItem2/main.scss +413 -0
- package/es/form/Components/FormItem2/scss/variable.scss +118 -0
- package/es/form/Components/FormItem2/style.d.ts +1 -0
- package/es/form/Components/FormItem2/style.js +1 -0
- package/es/form/Components/LightFilter/componentMap.d.ts +3 -0
- package/es/form/Components/LightFilter/index.d.ts +17 -0
- package/es/form/Components/LightFilter/index.js +2 -11
- package/es/form/Components/LightFilter/index.scss +4 -0
- package/es/form/Components/ProField/index.d.ts +2 -0
- package/es/form/Components/ProField/index.js +4 -2
- package/es/form/Components/ProField/mapDateFormat.d.ts +3 -0
- package/es/form/Components/Text/index.d.ts +8 -0
- package/es/form/Components/Text/index.js +4 -2
- package/es/form/Components/__builtins__/empty.d.ts +1 -0
- package/es/form/Components/__builtins__/empty.js +51 -0
- package/es/form/Components/__builtins__/hooks/index.d.ts +2 -0
- package/es/form/Components/__builtins__/hooks/index.js +2 -0
- package/es/form/Components/__builtins__/hooks/useClickAway.d.ts +5 -0
- package/es/form/Components/__builtins__/hooks/useClickAway.js +37 -0
- package/es/form/Components/__builtins__/hooks/usePrefixCls.d.ts +3 -0
- package/es/form/Components/__builtins__/hooks/usePrefixCls.js +8 -0
- package/es/form/Components/__builtins__/icons.d.ts +20 -0
- package/es/form/Components/__builtins__/icons.js +153 -0
- package/es/form/Components/__builtins__/index.d.ts +8 -0
- package/es/form/Components/__builtins__/index.js +8 -0
- package/es/form/Components/__builtins__/loading.d.ts +1 -0
- package/es/form/Components/__builtins__/loading.js +41 -0
- package/es/form/Components/__builtins__/mapSize.d.ts +1 -0
- package/es/form/Components/__builtins__/mapSize.js +13 -0
- package/es/form/Components/__builtins__/mapStatus.d.ts +2 -0
- package/es/form/Components/__builtins__/mapStatus.js +20 -0
- package/es/form/Components/__builtins__/moment.d.ts +2 -0
- package/es/form/Components/__builtins__/moment.js +47 -0
- package/es/form/Components/__builtins__/pickDataProps.d.ts +1 -0
- package/es/form/Components/__builtins__/pickDataProps.js +9 -0
- package/es/form/Components/form-layout/index.d.ts +74 -0
- package/es/form/Components/form-layout/index.js +71 -0
- package/es/form/Components/form-layout/main.scss +0 -0
- package/es/form/Components/form-layout/style.d.ts +1 -0
- package/es/form/Components/form-layout/style.js +3 -0
- package/es/form/Components/form-layout/useResponsiveFormLayout.d.ts +18 -0
- package/es/form/Components/form-layout/useResponsiveFormLayout.js +87 -0
- package/es/form/Filter/AdvancedFilter.d.ts +7 -0
- package/es/form/Filter/AdvancedFilter.js +16 -18
- package/es/form/Filter/Layout.d.ts +5 -0
- package/es/form/Filter/LightFilter.d.ts +7 -0
- package/es/form/Filter/LightFilter.js +9 -13
- package/es/form/Filter/SimpleFilter.d.ts +7 -0
- package/es/form/Filter/SimpleFilter.js +5 -8
- package/es/form/Filter/index.d.ts +9 -0
- package/es/form/Filter/index.js +19 -25
- package/es/form/Filter/index.scss +1 -0
- package/es/form/Filter/index2.d.ts +13 -0
- package/es/form/Filter/index2.js +20 -25
- package/es/form/Filter/index2.scss +1 -0
- package/es/form/Filter/useBindUrl.d.ts +2 -0
- package/es/form/Filter/useBindUrl.js +0 -3
- package/es/form/Filter/useSpecialProps.d.ts +6 -0
- package/es/form/Filter/useSpecialProps.js +0 -1
- package/es/form/ProForm/addCascadeEffect.d.ts +2 -0
- package/es/form/ProForm/customComponent.d.ts +3 -0
- package/es/form/ProForm/index.d.ts +5 -0
- package/es/form/ProForm/index.js +21 -17
- package/es/form/ProForm/useAutoLayout.d.ts +9 -0
- package/es/form/ProForm/useAutoLayout.js +0 -4
- package/es/form/ProForm/useAutoSubmit.d.ts +6 -0
- package/es/form/ProForm/useAutoSubmit.js +4 -3
- package/es/form/ProForm/useFieldRequest.d.ts +5 -0
- package/es/form/ProForm/useFormDisplayValues.d.ts +4 -0
- package/es/form/ProForm/useFormDisplayValues.js +0 -1
- package/es/form/ProForm/useInitialRequest.d.ts +6 -0
- package/es/form/SchemaForm/adapterComponent.d.ts +5 -0
- package/es/form/SchemaForm/adapterComponent.js +0 -1
- package/es/form/SchemaForm/adapterDecorator.d.ts +6 -0
- package/es/form/SchemaForm/adapterDecorator.js +0 -1
- package/es/form/SchemaForm/adapterType.d.ts +5 -0
- package/es/form/SchemaForm/adapterType.js +0 -1
- package/es/form/SchemaForm/index.d.ts +4 -0
- package/es/form/SchemaForm/index.js +0 -13
- package/es/form/SchemaForm/initializeArrayCards.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayCollapse.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayItems.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayTable.d.ts +3 -0
- package/es/form/SchemaForm/initializeDataSource.d.ts +15 -0
- package/es/form/SchemaForm/initializeDataSource.js +0 -7
- package/es/form/SchemaForm/initializeFormButton.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormButton.js +0 -2
- package/es/form/SchemaForm/initializeFormCollapse.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormGroup.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormStep.d.ts +5 -0
- package/es/form/SchemaForm/initializeFormTab.d.ts +3 -0
- package/es/form/SchemaForm/initializeReactions.d.ts +2 -0
- package/es/form/SchemaForm/initializeReactions.js +0 -1
- package/es/form/SchemaForm/initializeRequest.d.ts +11 -0
- package/es/form/SchemaForm/initializeRules.d.ts +11 -0
- package/es/form/SchemaForm/initializeSelectTable.d.ts +3 -0
- package/es/form/SchemaForm/initializeSelectTable.js +0 -1
- package/es/form/SchemaForm/reactions.d.ts +6 -0
- package/es/form/SchemaForm/reactions.js +0 -5
- package/es/form/docs/ActionResponse.d.ts +8 -0
- package/es/form/fieldTypeMap.d.ts +7 -0
- package/es/form/index.d.ts +125 -0
- package/es/form/index.js +0 -4
- package/es/form/locales/validate.d.ts +159 -0
- package/es/form/schemaNameMap.d.ts +5 -0
- package/es/form/typing.d.ts +194 -0
- package/es/form/utils/parseSchema.d.ts +3 -0
- package/es/form/utils/parseSchema.js +38 -0
- package/es/form/utils.d.ts +55 -0
- package/es/form/utils.js +0 -12
- package/es/form/warning.d.ts +3 -0
- package/es/form/warning.js +0 -2
- package/es/global.scss +3 -1
- package/es/hooks/index.d.ts +2 -0
- package/es/image/index.d.ts +22 -0
- package/es/image/index.js +73 -0
- package/es/image/index.scss +3 -0
- package/es/index-without-icon.d.ts +32 -0
- package/es/index.d.ts +34 -0
- package/es/index.js +14 -3
- package/es/info/components/InfoGroup/index.d.ts +5 -0
- package/es/info/components/InfoGroup/index.js +4 -2
- package/es/info/components/InfoValueItem/index.d.ts +5 -0
- package/es/info/components/InfoValueItem/index.js +20 -32
- package/es/info/components/ProInfoItem/index.d.ts +5 -0
- package/es/info/components/ProInfoItem/index.js +0 -1
- package/es/info/components/baseInfo/index.d.ts +8 -0
- package/es/info/components/baseInfo/index.js +4 -5
- package/es/info/components/headerInfo/index.d.ts +8 -0
- package/es/info/components/tableInfo/index.d.ts +7 -0
- package/es/info/components/tableInfo/index.js +4 -6
- package/es/info/index.d.ts +6 -0
- package/es/info/index.js +17 -21
- package/es/info/typing.d.ts +220 -0
- package/es/info/utils/index.d.ts +20 -0
- package/es/info/utils/index.js +0 -3
- package/es/info/utils/layout.d.ts +2 -0
- package/es/info/utils/utils.d.ts +1 -0
- package/es/layout/index.d.ts +2 -0
- package/es/layout/index.js +0 -2
- package/es/next-xconsole.scss +34 -0
- package/es/nocode/configurators/Card.d.ts +3 -0
- package/es/nocode/configurators/PageHeader.d.ts +3 -0
- package/es/nocode/configurators/ProTable.d.ts +3 -0
- package/es/nocode/configurators/ProTable.js +1 -22
- package/es/nocode/configurators/common.d.ts +280 -0
- package/es/nocode/configurators/index.d.ts +15 -0
- package/es/nocode/configurators/index.js +1 -0
- package/es/nocode/configurators/map.d.ts +2 -0
- package/es/nocode/index.d.ts +8 -0
- package/es/nocode/index.js +0 -2
- package/es/nocode/pages/editor.d.ts +12 -0
- package/es/nocode/pages/index.d.ts +14 -0
- package/es/nocode/pages/index.js +1 -29
- package/es/nocode/pages/playground.d.ts +11 -0
- package/es/nocode/pages/playground.js +5 -3
- package/es/nocode/pages/renderer.d.ts +10 -0
- package/es/nocode/pages/renderer.js +6 -4
- package/es/nocode/playground.d.ts +14 -0
- package/es/nocode/playground.js +4 -2
- package/es/page-container/index.d.ts +3 -0
- package/es/page-header/index.d.ts +74 -0
- package/es/page-header/index.js +13 -23
- package/es/page-header/index.scss +2 -1
- package/es/page-header/xconsole.scss +5 -0
- package/es/sidebar/components/sidebar-container/index.d.ts +5 -0
- package/es/sidebar/components/sidebar-container/index.js +7 -10
- package/es/sidebar/components/tree/index.d.ts +6 -0
- package/es/sidebar/components/tree/index.js +24 -28
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +15 -0
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.js +4 -3
- package/es/sidebar/components/tree-node/components/IconAction/index.d.ts +12 -0
- package/es/sidebar/components/tree-node/components/IconAction/index.js +2 -4
- package/es/sidebar/components/tree-node/components/IconSwitch/index.d.ts +23 -0
- package/es/sidebar/components/tree-node/components/IconSwitch/index.js +0 -1
- package/es/sidebar/components/tree-node/components/IconSwitch/index.scss +1 -1
- package/es/sidebar/components/tree-node/index.d.ts +7 -0
- package/es/sidebar/components/tree-node/index.js +16 -29
- package/es/sidebar/index.d.ts +9 -0
- package/es/sidebar/index.js +13 -18
- package/es/sidebar/typing.d.ts +145 -0
- package/es/sidebar/utils/action-ref.d.ts +3 -0
- package/es/sidebar/utils/index.d.ts +364 -0
- package/es/sidebar/utils/index.js +18 -19
- package/es/skeleton/index.d.ts +3 -0
- package/es/table/components/CardView/index.d.ts +5 -0
- package/es/table/components/CardView/index.js +387 -0
- package/es/table/components/CardView/index.scss +46 -0
- package/es/table/components/EmptyContent/index.d.ts +2 -0
- package/es/table/components/Filter/index.d.ts +12 -0
- package/es/table/components/Filter/index.js +110 -79
- package/es/table/components/Layout/index.d.ts +5 -0
- package/es/table/components/Layout/index.js +16 -16
- package/es/table/components/Layout/index.scss +1 -0
- package/es/table/components/LoadMore/index.d.ts +20 -0
- package/es/table/components/LoadMore/index.js +88 -0
- package/es/table/components/LoadMore/index.scss +19 -0
- package/es/table/components/Pagination/index.d.ts +8 -0
- package/es/table/components/Pagination/index.js +48 -31
- package/es/table/components/QuickAction/index.d.ts +11 -0
- package/es/table/components/QuickAction/index.js +2 -3
- package/es/table/components/ToolBar/CardSwitch.d.ts +8 -0
- package/es/table/components/ToolBar/CardSwitch.js +52 -0
- package/es/table/components/ToolBar/DensityIcon.d.ts +4 -0
- package/es/table/components/ToolBar/DensityIcon.js +2 -7
- package/es/table/components/ToolBar/FilterColumnIcon.d.ts +4 -0
- package/es/table/components/ToolBar/FilterColumnIcon.js +41 -35
- package/es/table/components/ToolBar/FullScreenIcon.d.ts +4 -0
- package/es/table/components/ToolBar/FullScreenIcon.js +0 -1
- package/es/table/components/ToolBar/Fullscreen.d.ts +10 -0
- package/es/table/components/ToolBar/Fullscreen.js +10 -3
- package/es/table/components/ToolBar/RefreshIcon.d.ts +4 -0
- package/es/table/components/ToolBar/RefreshIcon.js +162 -26
- package/es/table/components/ToolBar/index.d.ts +5 -0
- package/es/table/components/ToolBar/index.js +65 -33
- package/es/table/components/ToolBar/index.scss +27 -1
- package/es/table/index.d.ts +6 -0
- package/es/table/index.js +308 -137
- package/es/table/index.scss +8 -0
- package/es/table/typing.d.ts +426 -0
- package/es/table/utils/columnRender.d.ts +13 -0
- package/es/table/utils/columnRender.js +32 -37
- package/es/table/utils/genProColumnToColumn.d.ts +13 -0
- package/es/table/utils/genProColumnToColumn.js +10 -3
- package/es/table/utils/getTableProps.d.ts +2 -0
- package/es/table/utils/getTableSortIcons.d.ts +3 -0
- package/es/table/utils/index.d.ts +19 -0
- package/es/table/utils/index.js +0 -6
- package/es/table/utils/pureColumnRender.d.ts +9 -0
- package/es/table/utils/pureColumnRender.js +1 -9
- package/es/table/utils/pureGenProColumnToColumn.d.ts +7 -0
- package/es/table/utils/useTableSelection.d.ts +3 -0
- package/es/table/utils/util.d.ts +5 -0
- package/es/table/utils/util.js +19 -0
- package/es/templates/Detail/index.d.ts +2 -0
- package/es/templates/Form/index.d.ts +2 -0
- package/es/templates/List/index.d.ts +9 -0
- package/es/templates/List/index.js +6 -4
- package/es/templates/index.d.ts +3 -0
- package/es/templates/index.js +1 -2
- package/es/timeline/ProTimeLineItem/index.d.ts +5 -0
- package/es/timeline/ProTimeLineItem/index.js +5 -9
- package/es/timeline/index.d.ts +10 -0
- package/es/timeline/index.js +5 -5
- package/es/timeline/typing.d.ts +107 -0
- package/es/utils/aspect.d.ts +2 -0
- package/es/utils/aspect.js +60 -0
- package/es/utils/index.d.ts +3 -0
- package/es/utils/message.d.ts +3 -0
- package/es/utils/message.js +5 -3
- package/es/xconsole.scss +527 -0
- package/lib/actions/base.d.ts +24 -0
- package/lib/actions/base.js +1 -1
- package/lib/actions/confirm.d.ts +7 -0
- package/lib/actions/danger-confirm.d.ts +7 -0
- package/lib/actions/danger-pop-confirm.d.ts +5 -0
- package/lib/actions/dialog-component.d.ts +10 -0
- package/lib/actions/dialog-component.js +4 -1
- package/lib/actions/dialog-form.d.ts +29 -0
- package/lib/actions/dialog-form.js +7 -9
- package/lib/actions/dialog-info.d.ts +9 -0
- package/lib/actions/dialog-table.d.ts +9 -0
- package/lib/actions/dialog.d.ts +40 -0
- package/lib/actions/dialog.js +7 -8
- package/lib/actions/drawer-form.d.ts +6 -0
- package/lib/actions/drawer-info.d.ts +6 -0
- package/lib/actions/drawer-table.d.ts +6 -0
- package/lib/actions/drawer.d.ts +6 -0
- package/lib/actions/error.d.ts +7 -0
- package/lib/actions/index.d.ts +114 -0
- package/lib/actions/index.js +89 -58
- package/lib/actions/index.scss +10 -1
- package/lib/actions/link.d.ts +8 -0
- package/lib/actions/link.js +2 -3
- package/lib/actions/notice.d.ts +7 -0
- package/lib/actions/pop-confirm.d.ts +9 -0
- package/lib/actions/quick.d.ts +2 -0
- package/lib/actions/quick.js +33 -0
- package/lib/actions/request.d.ts +9 -0
- package/lib/actions/request.js +2 -3
- package/lib/actions/utils.d.ts +1 -0
- package/lib/card/card-container.d.ts +18 -0
- package/lib/card/card-container.js +4 -6
- package/lib/card/divider.d.ts +6 -0
- package/lib/card/divider.js +4 -2
- package/lib/card/index.d.ts +109 -0
- package/lib/card/index.js +10 -20
- package/lib/card/index.scss +15 -0
- package/lib/card/selectable.d.ts +13 -0
- package/lib/card/selectable.js +4 -2
- package/lib/card/tab.d.ts +6 -0
- package/lib/card/tab.js +4 -2
- package/lib/card/utils.d.ts +9 -0
- package/lib/card/xconsole.scss +3 -0
- package/lib/field/index.d.ts +3 -0
- package/lib/form/Components/Editable/index.d.ts +20 -0
- package/lib/form/Components/Editable/index.js +2 -2
- package/lib/form/Components/FormGroup/index.d.ts +14 -0
- package/lib/form/Components/FormGroup/index.js +3 -4
- package/lib/form/Components/FormItem2/animation.scss +72 -0
- package/lib/form/Components/FormItem2/grid.scss +173 -0
- package/lib/form/Components/FormItem2/index.d.ts +41 -0
- package/lib/form/Components/FormItem2/index.js +299 -0
- package/lib/form/Components/FormItem2/main.scss +413 -0
- package/lib/form/Components/FormItem2/scss/variable.scss +118 -0
- package/lib/form/Components/FormItem2/style.d.ts +1 -0
- package/lib/form/Components/FormItem2/style.js +3 -0
- package/lib/form/Components/LightFilter/componentMap.d.ts +3 -0
- package/lib/form/Components/LightFilter/index.d.ts +17 -0
- package/lib/form/Components/LightFilter/index.js +2 -11
- package/lib/form/Components/LightFilter/index.scss +4 -0
- package/lib/form/Components/ProField/index.d.ts +2 -0
- package/lib/form/Components/ProField/index.js +4 -2
- package/lib/form/Components/ProField/mapDateFormat.d.ts +3 -0
- package/lib/form/Components/Text/index.d.ts +8 -0
- package/lib/form/Components/Text/index.js +4 -2
- package/lib/form/Components/__builtins__/empty.d.ts +1 -0
- package/lib/form/Components/__builtins__/empty.js +59 -0
- package/lib/form/Components/__builtins__/hooks/index.d.ts +2 -0
- package/lib/form/Components/__builtins__/hooks/index.js +27 -0
- package/lib/form/Components/__builtins__/hooks/useClickAway.d.ts +5 -0
- package/lib/form/Components/__builtins__/hooks/useClickAway.js +44 -0
- package/lib/form/Components/__builtins__/hooks/usePrefixCls.d.ts +3 -0
- package/lib/form/Components/__builtins__/hooks/usePrefixCls.js +15 -0
- package/lib/form/Components/__builtins__/icons.d.ts +20 -0
- package/lib/form/Components/__builtins__/icons.js +174 -0
- package/lib/form/Components/__builtins__/index.d.ts +8 -0
- package/lib/form/Components/__builtins__/index.js +93 -0
- package/lib/form/Components/__builtins__/loading.d.ts +1 -0
- package/lib/form/Components/__builtins__/loading.js +48 -0
- package/lib/form/Components/__builtins__/mapSize.d.ts +1 -0
- package/lib/form/Components/__builtins__/mapSize.js +20 -0
- package/lib/form/Components/__builtins__/mapStatus.d.ts +2 -0
- package/lib/form/Components/__builtins__/mapStatus.js +27 -0
- package/lib/form/Components/__builtins__/moment.d.ts +2 -0
- package/lib/form/Components/__builtins__/moment.js +56 -0
- package/lib/form/Components/__builtins__/pickDataProps.d.ts +1 -0
- package/lib/form/Components/__builtins__/pickDataProps.js +16 -0
- package/lib/form/Components/form-layout/index.d.ts +74 -0
- package/lib/form/Components/form-layout/index.js +88 -0
- package/lib/form/Components/form-layout/main.scss +0 -0
- package/lib/form/Components/form-layout/style.d.ts +1 -0
- package/lib/form/Components/form-layout/style.js +3 -0
- package/lib/form/Components/form-layout/useResponsiveFormLayout.d.ts +18 -0
- package/lib/form/Components/form-layout/useResponsiveFormLayout.js +94 -0
- package/lib/form/Filter/AdvancedFilter.d.ts +7 -0
- package/lib/form/Filter/AdvancedFilter.js +16 -18
- package/lib/form/Filter/Layout.d.ts +5 -0
- package/lib/form/Filter/LightFilter.d.ts +7 -0
- package/lib/form/Filter/LightFilter.js +9 -13
- package/lib/form/Filter/SimpleFilter.d.ts +7 -0
- package/lib/form/Filter/SimpleFilter.js +5 -8
- package/lib/form/Filter/index.d.ts +9 -0
- package/lib/form/Filter/index.js +19 -25
- package/lib/form/Filter/index.scss +1 -0
- package/lib/form/Filter/index2.d.ts +13 -0
- package/lib/form/Filter/index2.js +20 -25
- package/lib/form/Filter/index2.scss +1 -0
- package/lib/form/Filter/useBindUrl.d.ts +2 -0
- package/lib/form/Filter/useBindUrl.js +0 -3
- package/lib/form/Filter/useSpecialProps.d.ts +6 -0
- package/lib/form/ProForm/addCascadeEffect.d.ts +2 -0
- package/lib/form/ProForm/customComponent.d.ts +3 -0
- package/lib/form/ProForm/index.d.ts +5 -0
- package/lib/form/ProForm/index.js +20 -16
- package/lib/form/ProForm/useAutoLayout.d.ts +9 -0
- package/lib/form/ProForm/useAutoLayout.js +0 -4
- package/lib/form/ProForm/useAutoSubmit.d.ts +6 -0
- package/lib/form/ProForm/useAutoSubmit.js +2 -3
- package/lib/form/ProForm/useFieldRequest.d.ts +5 -0
- package/lib/form/ProForm/useFormDisplayValues.d.ts +4 -0
- package/lib/form/ProForm/useFormDisplayValues.js +0 -1
- package/lib/form/ProForm/useInitialRequest.d.ts +6 -0
- package/lib/form/SchemaForm/adapterComponent.d.ts +5 -0
- package/lib/form/SchemaForm/adapterComponent.js +0 -1
- package/lib/form/SchemaForm/adapterDecorator.d.ts +6 -0
- package/lib/form/SchemaForm/adapterType.d.ts +5 -0
- package/lib/form/SchemaForm/adapterType.js +0 -1
- package/lib/form/SchemaForm/index.d.ts +4 -0
- package/lib/form/SchemaForm/index.js +0 -13
- package/lib/form/SchemaForm/initializeArrayCards.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayItems.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayTable.d.ts +3 -0
- package/lib/form/SchemaForm/initializeDataSource.d.ts +15 -0
- package/lib/form/SchemaForm/initializeDataSource.js +2 -9
- package/lib/form/SchemaForm/initializeFormButton.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormButton.js +0 -2
- package/lib/form/SchemaForm/initializeFormCollapse.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormGroup.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormStep.d.ts +5 -0
- package/lib/form/SchemaForm/initializeFormTab.d.ts +3 -0
- package/lib/form/SchemaForm/initializeReactions.d.ts +2 -0
- package/lib/form/SchemaForm/initializeReactions.js +0 -1
- package/lib/form/SchemaForm/initializeRequest.d.ts +11 -0
- package/lib/form/SchemaForm/initializeRules.d.ts +11 -0
- package/lib/form/SchemaForm/initializeSelectTable.d.ts +3 -0
- package/lib/form/SchemaForm/reactions.d.ts +6 -0
- package/lib/form/SchemaForm/reactions.js +0 -5
- package/lib/form/docs/ActionResponse.d.ts +8 -0
- package/lib/form/fieldTypeMap.d.ts +7 -0
- package/lib/form/index.d.ts +125 -0
- package/lib/form/locales/validate.d.ts +159 -0
- package/lib/form/schemaNameMap.d.ts +5 -0
- package/lib/form/typing.d.ts +194 -0
- package/lib/form/typing.js +5 -1
- package/lib/form/utils/parseSchema.d.ts +3 -0
- package/lib/form/utils/parseSchema.js +45 -0
- package/lib/form/utils.d.ts +55 -0
- package/lib/form/utils.js +0 -11
- package/lib/form/warning.d.ts +3 -0
- package/lib/form/warning.js +0 -2
- package/lib/global.scss +3 -1
- package/lib/hooks/index.d.ts +2 -0
- package/lib/image/index.d.ts +22 -0
- package/lib/image/index.js +83 -0
- package/lib/image/index.scss +3 -0
- package/lib/index-without-icon.d.ts +32 -0
- package/lib/index.d.ts +34 -0
- package/lib/index.js +31 -2
- package/lib/info/components/InfoGroup/index.d.ts +5 -0
- package/lib/info/components/InfoGroup/index.js +4 -2
- package/lib/info/components/InfoValueItem/index.d.ts +5 -0
- package/lib/info/components/InfoValueItem/index.js +20 -32
- package/lib/info/components/ProInfoItem/index.d.ts +5 -0
- package/lib/info/components/ProInfoItem/index.js +0 -1
- package/lib/info/components/baseInfo/index.d.ts +8 -0
- package/lib/info/components/baseInfo/index.js +4 -5
- package/lib/info/components/headerInfo/index.d.ts +8 -0
- package/lib/info/components/tableInfo/index.d.ts +7 -0
- package/lib/info/components/tableInfo/index.js +4 -6
- package/lib/info/index.d.ts +6 -0
- package/lib/info/index.js +16 -20
- package/lib/info/typing.d.ts +220 -0
- package/lib/info/typing.js +5 -1
- package/lib/info/utils/index.d.ts +20 -0
- package/lib/info/utils/index.js +0 -3
- package/lib/info/utils/layout.d.ts +2 -0
- package/lib/info/utils/utils.d.ts +1 -0
- package/lib/layout/index.d.ts +2 -0
- package/lib/next-xconsole.scss +34 -0
- package/lib/nocode/configurators/Card.d.ts +3 -0
- package/lib/nocode/configurators/PageHeader.d.ts +3 -0
- package/lib/nocode/configurators/ProTable.d.ts +3 -0
- package/lib/nocode/configurators/ProTable.js +1 -22
- package/lib/nocode/configurators/common.d.ts +280 -0
- package/lib/nocode/configurators/index.d.ts +15 -0
- package/lib/nocode/configurators/index.js +1 -0
- package/lib/nocode/configurators/map.d.ts +2 -0
- package/lib/nocode/index.d.ts +8 -0
- package/lib/nocode/pages/editor.d.ts +12 -0
- package/lib/nocode/pages/index.d.ts +14 -0
- package/lib/nocode/pages/index.js +2 -27
- package/lib/nocode/pages/playground.d.ts +11 -0
- package/lib/nocode/pages/playground.js +5 -3
- package/lib/nocode/pages/renderer.d.ts +10 -0
- package/lib/nocode/pages/renderer.js +6 -4
- package/lib/nocode/playground.d.ts +14 -0
- package/lib/nocode/playground.js +4 -2
- package/lib/page-container/index.d.ts +3 -0
- package/lib/page-header/index.d.ts +74 -0
- package/lib/page-header/index.js +11 -22
- package/lib/page-header/index.scss +2 -1
- package/lib/page-header/xconsole.scss +5 -0
- package/lib/sidebar/components/sidebar-container/index.d.ts +5 -0
- package/lib/sidebar/components/sidebar-container/index.js +7 -10
- package/lib/sidebar/components/tree/index.d.ts +6 -0
- package/lib/sidebar/components/tree/index.js +24 -28
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +15 -0
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.js +4 -3
- package/lib/sidebar/components/tree-node/components/IconAction/index.d.ts +12 -0
- package/lib/sidebar/components/tree-node/components/IconAction/index.js +2 -4
- package/lib/sidebar/components/tree-node/components/IconSwitch/index.d.ts +23 -0
- package/lib/sidebar/components/tree-node/components/IconSwitch/index.js +0 -1
- package/lib/sidebar/components/tree-node/components/IconSwitch/index.scss +1 -1
- package/lib/sidebar/components/tree-node/index.d.ts +7 -0
- package/lib/sidebar/components/tree-node/index.js +16 -29
- package/lib/sidebar/index.d.ts +9 -0
- package/lib/sidebar/index.js +20 -18
- package/lib/sidebar/typing.d.ts +145 -0
- package/lib/sidebar/typing.js +5 -1
- package/lib/sidebar/utils/action-ref.d.ts +3 -0
- package/lib/sidebar/utils/index.d.ts +364 -0
- package/lib/sidebar/utils/index.js +18 -19
- package/lib/skeleton/index.d.ts +3 -0
- package/lib/table/components/CardView/index.d.ts +5 -0
- package/lib/table/components/CardView/index.js +397 -0
- package/lib/table/components/CardView/index.scss +46 -0
- package/lib/table/components/EmptyContent/index.d.ts +2 -0
- package/lib/table/components/Filter/index.d.ts +12 -0
- package/lib/table/components/Filter/index.js +109 -78
- package/lib/table/components/Layout/index.d.ts +5 -0
- package/lib/table/components/Layout/index.js +17 -17
- package/lib/table/components/Layout/index.scss +1 -0
- package/lib/table/components/LoadMore/index.d.ts +20 -0
- package/lib/table/components/LoadMore/index.js +99 -0
- package/lib/table/components/LoadMore/index.scss +19 -0
- package/lib/table/components/Pagination/index.d.ts +8 -0
- package/lib/table/components/Pagination/index.js +47 -30
- package/lib/table/components/QuickAction/index.d.ts +11 -0
- package/lib/table/components/QuickAction/index.js +2 -3
- package/lib/table/components/ToolBar/CardSwitch.d.ts +8 -0
- package/lib/table/components/ToolBar/CardSwitch.js +60 -0
- package/lib/table/components/ToolBar/DensityIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/DensityIcon.js +2 -7
- package/lib/table/components/ToolBar/FilterColumnIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/FilterColumnIcon.js +40 -34
- package/lib/table/components/ToolBar/FullScreenIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/FullScreenIcon.js +0 -1
- package/lib/table/components/ToolBar/Fullscreen.d.ts +10 -0
- package/lib/table/components/ToolBar/Fullscreen.js +10 -3
- package/lib/table/components/ToolBar/RefreshIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/RefreshIcon.js +164 -29
- package/lib/table/components/ToolBar/index.d.ts +5 -0
- package/lib/table/components/ToolBar/index.js +64 -32
- package/lib/table/components/ToolBar/index.scss +27 -1
- package/lib/table/index.d.ts +6 -0
- package/lib/table/index.js +307 -136
- package/lib/table/index.scss +8 -0
- package/lib/table/typing.d.ts +426 -0
- package/lib/table/typing.js +5 -1
- package/lib/table/utils/columnRender.d.ts +13 -0
- package/lib/table/utils/columnRender.js +32 -36
- package/lib/table/utils/genProColumnToColumn.d.ts +13 -0
- package/lib/table/utils/genProColumnToColumn.js +10 -3
- package/lib/table/utils/getTableProps.d.ts +2 -0
- package/lib/table/utils/getTableSortIcons.d.ts +3 -0
- package/lib/table/utils/index.d.ts +19 -0
- package/lib/table/utils/index.js +0 -6
- package/lib/table/utils/pureColumnRender.d.ts +9 -0
- package/lib/table/utils/pureColumnRender.js +1 -9
- package/lib/table/utils/pureGenProColumnToColumn.d.ts +7 -0
- package/lib/table/utils/useTableSelection.d.ts +3 -0
- package/lib/table/utils/util.d.ts +5 -0
- package/lib/table/utils/util.js +25 -0
- package/lib/templates/Detail/index.d.ts +2 -0
- package/lib/templates/Form/index.d.ts +2 -0
- package/lib/templates/List/index.d.ts +9 -0
- package/lib/templates/List/index.js +6 -4
- package/lib/templates/index.d.ts +3 -0
- package/lib/timeline/ProTimeLineItem/index.d.ts +5 -0
- package/lib/timeline/ProTimeLineItem/index.js +5 -9
- package/lib/timeline/index.d.ts +10 -0
- package/lib/timeline/index.js +5 -5
- package/lib/timeline/typing.d.ts +107 -0
- package/lib/timeline/typing.js +5 -1
- package/lib/utils/aspect.d.ts +2 -0
- package/lib/utils/aspect.js +67 -0
- package/lib/utils/index.d.ts +3 -0
- package/lib/utils/message.d.ts +3 -0
- package/lib/utils/message.js +5 -3
- package/lib/xconsole.scss +527 -0
- package/package.json +9 -8
|
@@ -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,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;
|
package/es/nocode/pages/index.js
CHANGED
|
@@ -2,9 +2,6 @@ import { FormPage, DetailPage, ListPage } from '../../templates';
|
|
|
2
2
|
export * from './editor';
|
|
3
3
|
export * from './playground';
|
|
4
4
|
export * from './renderer';
|
|
5
|
-
|
|
6
|
-
// 页面类型
|
|
7
|
-
|
|
8
5
|
// 全部页面模板
|
|
9
6
|
export var PageMap = {
|
|
10
7
|
LIST: ListPage,
|
|
@@ -13,32 +10,7 @@ export var PageMap = {
|
|
|
13
10
|
};
|
|
14
11
|
// 全部页面模板默认初始值
|
|
15
12
|
export var PageDefaultInitialValues = {
|
|
16
|
-
LIST: {
|
|
17
|
-
header: {
|
|
18
|
-
title: '页面标题'
|
|
19
|
-
},
|
|
20
|
-
content: {
|
|
21
|
-
header: {
|
|
22
|
-
title: '表格标题'
|
|
23
|
-
},
|
|
24
|
-
columns: [{
|
|
25
|
-
dataIndex: 'instanceName',
|
|
26
|
-
title: '实例ID/实例名称'
|
|
27
|
-
}, {
|
|
28
|
-
dataIndex: 'organizationName',
|
|
29
|
-
title: '组织',
|
|
30
|
-
tooltip: '我这一列是可以被复制的~',
|
|
31
|
-
render: {
|
|
32
|
-
copy: true
|
|
33
|
-
}
|
|
34
|
-
}],
|
|
35
|
-
url: 'https://oneapi.alibaba-inc.com/mock/teamix-pro/api/getTableResource',
|
|
36
|
-
formatResult: {
|
|
37
|
-
data: 'data',
|
|
38
|
-
total: 'pageInfo.total'
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
},
|
|
13
|
+
LIST: {},
|
|
42
14
|
DETAIL: {},
|
|
43
15
|
FORM: {}
|
|
44
16
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PageProps } from '../../page-container';
|
|
3
|
+
import { ConfiguratorMap } from '../configurators';
|
|
4
|
+
interface PagePlayGroundProps<T = any> {
|
|
5
|
+
initialValues: T;
|
|
6
|
+
page: React.FC<PageProps<T>>;
|
|
7
|
+
onValuesChange?: (values: any) => void;
|
|
8
|
+
configuratorMap?: ConfiguratorMap;
|
|
9
|
+
}
|
|
10
|
+
export declare const PagePlayground: (props: PagePlayGroundProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
function
|
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
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; }
|
|
2
4
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
5
|
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."); }
|
|
4
6
|
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); }
|
|
@@ -86,7 +88,7 @@ export var PagePlayground = function PagePlayground(props) {
|
|
|
86
88
|
return "page-".concat(Math.random());
|
|
87
89
|
}, [pageProps]);
|
|
88
90
|
return /*#__PURE__*/React.createElement(PlayGroundLayout, {
|
|
89
|
-
component: /*#__PURE__*/React.createElement(PageContainer,
|
|
91
|
+
component: /*#__PURE__*/React.createElement(PageContainer, _objectSpread({
|
|
90
92
|
key: pageKey
|
|
91
93
|
}, pageContainerProps)),
|
|
92
94
|
configurator: Configurator ? /*#__PURE__*/React.createElement(Configurator, {
|
|
@@ -101,7 +103,7 @@ export var PagePlayground = function PagePlayground(props) {
|
|
|
101
103
|
}), /*#__PURE__*/React.createElement("p", null, "\u8BF7\u9009\u62E9\u4E00\u4E2A\u7EC4\u4EF6\u8FDB\u884C\u7F16\u8F91")),
|
|
102
104
|
tools: /*#__PURE__*/React.createElement(Balloon, {
|
|
103
105
|
align: "l",
|
|
104
|
-
trigger: /*#__PURE__*/React.createElement(Icon,
|
|
106
|
+
trigger: /*#__PURE__*/React.createElement(Icon, _objectSpread({
|
|
105
107
|
type: "set-line",
|
|
106
108
|
size: "large"
|
|
107
109
|
}, setterAction)),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PageProps } from '../../page-container';
|
|
2
|
+
import { PageMap } from '.';
|
|
3
|
+
export interface PageRendererProps<T = any> extends PageProps<T> {
|
|
4
|
+
type?: any;
|
|
5
|
+
error?: any;
|
|
6
|
+
title?: string;
|
|
7
|
+
pageMap?: PageMap;
|
|
8
|
+
}
|
|
9
|
+
export declare const PageRenderer: (props: PageRendererProps) => JSX.Element;
|
|
10
|
+
export default PageRenderer;
|
|
@@ -12,7 +12,9 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
|
|
|
12
12
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
13
13
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
14
14
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
15
|
-
function
|
|
15
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
17
|
+
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; }
|
|
16
18
|
import React from 'react';
|
|
17
19
|
import Helmet from 'react-helmet';
|
|
18
20
|
import SVG from '@teamix/svg';
|
|
@@ -23,7 +25,7 @@ import { usePrefixCls } from '@teamix/utils';
|
|
|
23
25
|
import { PageMap } from '.';
|
|
24
26
|
var cls = usePrefixCls('teamix-pro-nocode');
|
|
25
27
|
var Loading = function Loading(props) {
|
|
26
|
-
return /*#__PURE__*/React.createElement(PageContainer,
|
|
28
|
+
return /*#__PURE__*/React.createElement(PageContainer, _objectSpread({
|
|
27
29
|
header: /*#__PURE__*/React.createElement(PageHeader, {
|
|
28
30
|
loading: true,
|
|
29
31
|
title: "",
|
|
@@ -90,7 +92,7 @@ export var PageRenderer = function PageRenderer(props) {
|
|
|
90
92
|
});
|
|
91
93
|
}
|
|
92
94
|
if (!type) {
|
|
93
|
-
return /*#__PURE__*/React.createElement(Loading, others);
|
|
95
|
+
return /*#__PURE__*/React.createElement(Loading, _objectSpread({}, others));
|
|
94
96
|
}
|
|
95
97
|
var Page = PageMap[type] || (pageMap === null || pageMap === void 0 ? void 0 : pageMap[type]);
|
|
96
98
|
if (!Page) {
|
|
@@ -101,7 +103,7 @@ export var PageRenderer = function PageRenderer(props) {
|
|
|
101
103
|
}
|
|
102
104
|
return /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(Helmet, {
|
|
103
105
|
title: title
|
|
104
|
-
}), /*#__PURE__*/React.createElement(Page,
|
|
106
|
+
}), /*#__PURE__*/React.createElement(Page, _objectSpread({
|
|
105
107
|
loading: loading,
|
|
106
108
|
pageProps: pageProps || {}
|
|
107
109
|
}, others)));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Configurator } from './configurators';
|
|
3
|
+
export interface PlayGroundLayoutProps {
|
|
4
|
+
component: React.ReactNode;
|
|
5
|
+
configurator: React.ReactNode;
|
|
6
|
+
tools?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const PlayGroundLayout: (props: PlayGroundLayoutProps) => JSX.Element;
|
|
9
|
+
export interface PlayGround<T = any> {
|
|
10
|
+
component: React.FC<T>;
|
|
11
|
+
configurator: Configurator;
|
|
12
|
+
initialValues: T;
|
|
13
|
+
}
|
|
14
|
+
export declare const PlayGround: <T extends {}>(props: PlayGround<T>) => JSX.Element;
|
package/es/nocode/playground.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
function
|
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
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; }
|
|
2
4
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
5
|
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."); }
|
|
4
6
|
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); }
|
|
@@ -42,7 +44,7 @@ export var PlayGround = function PlayGround(props) {
|
|
|
42
44
|
}),
|
|
43
45
|
onValuesChange = _useDebounceFn.run;
|
|
44
46
|
return /*#__PURE__*/React.createElement(PlayGroundLayout, {
|
|
45
|
-
component: /*#__PURE__*/React.createElement(Component,
|
|
47
|
+
component: /*#__PURE__*/React.createElement(Component, _objectSpread({
|
|
46
48
|
key: componentKey
|
|
47
49
|
}, componentState)),
|
|
48
50
|
configurator: /*#__PURE__*/React.createElement(Configurator, {
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ItemProps } from '@alicloudfe/components/types/breadcrumb';
|
|
3
|
+
import { LinkPath } from '@teamix/utils';
|
|
4
|
+
import { CapsuleTabType, ProTagItem } from '../field';
|
|
5
|
+
import { ProActionGroupProps } from '../actions';
|
|
6
|
+
import { ProInfoProps } from '../info';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface ProPageHeaderBreadcrumbItem extends ItemProps {
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated 建议使用 children 代替
|
|
11
|
+
*/
|
|
12
|
+
text?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare type ProPageHeaderTagItem = ProTagItem;
|
|
15
|
+
declare type Color = 'blue' | 'green' | 'orange' | 'red' | 'yellow' | string;
|
|
16
|
+
export declare type ProPageHeaderDataItem = {
|
|
17
|
+
title: string;
|
|
18
|
+
num: number;
|
|
19
|
+
color?: Color;
|
|
20
|
+
} & React.HTMLAttributes<HTMLElement>;
|
|
21
|
+
export declare type ProPageHeaderProps = {
|
|
22
|
+
/** 标题 */
|
|
23
|
+
title?: React.ReactNode;
|
|
24
|
+
/** 标题说明 */
|
|
25
|
+
titleTooltip?: React.ReactNode;
|
|
26
|
+
/** 描述 */
|
|
27
|
+
description?: React.ReactNode;
|
|
28
|
+
/** 图标 */
|
|
29
|
+
icon?: React.ReactNode;
|
|
30
|
+
/** 图标颜色 */
|
|
31
|
+
iconColor?: Color;
|
|
32
|
+
/** 图标背景类型 */
|
|
33
|
+
iconBackgroundType?: 'circle' | 'square';
|
|
34
|
+
/** 图标背景色 */
|
|
35
|
+
iconBackgroundColor?: Color;
|
|
36
|
+
/** 返回按钮配置 */
|
|
37
|
+
goback?: boolean | LinkPath | ((e: React.MouseEvent) => void);
|
|
38
|
+
/** 背景图 */
|
|
39
|
+
image?: string;
|
|
40
|
+
/** 加载中 */
|
|
41
|
+
loading?: boolean;
|
|
42
|
+
/** 面包屑配置 */
|
|
43
|
+
breadcrumb?: ProPageHeaderBreadcrumbItem[];
|
|
44
|
+
/** 额外信息区配置 */
|
|
45
|
+
extra?: ProActionGroupProps | React.ReactNode | any[];
|
|
46
|
+
/** 操作区配置 */
|
|
47
|
+
operation?: ProActionGroupProps | React.ReactNode | any[];
|
|
48
|
+
/** 标签组 */
|
|
49
|
+
tags?: ProPageHeaderTagItem[];
|
|
50
|
+
/** 数据概览项 */
|
|
51
|
+
data?: ProPageHeaderDataItem[];
|
|
52
|
+
/** 底部详情 */
|
|
53
|
+
info?: ProInfoProps | React.ReactNode;
|
|
54
|
+
/** 切换 tabs */
|
|
55
|
+
tabs?: CapsuleTabType;
|
|
56
|
+
} & Omit<React.HTMLAttributes<HTMLElement>, 'title'>;
|
|
57
|
+
declare const ProPageHeader: React.FC<ProPageHeaderProps>;
|
|
58
|
+
export default ProPageHeader;
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated 建议使用 ProPageHeaderBreadcrumbItem 代替
|
|
61
|
+
*/
|
|
62
|
+
export declare type BreadcrumbItem = ProPageHeaderBreadcrumbItem;
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated 建议使用 ProPageHeaderTagItem 代替
|
|
65
|
+
*/
|
|
66
|
+
export declare type TagItem = ProPageHeaderTagItem;
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated 建议使用 ProPageHeaderDataItem 代替
|
|
69
|
+
*/
|
|
70
|
+
export declare type DataItem = ProPageHeaderDataItem;
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated 建议使用 ProPageHeaderProps 代替
|
|
73
|
+
*/
|
|
74
|
+
export declare type PageHeaderProps = ProPageHeaderProps;
|
package/es/page-header/index.js
CHANGED
|
@@ -4,11 +4,11 @@ var _excluded = ["text", "children"],
|
|
|
4
4
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
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; }
|
|
7
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
8
7
|
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; }
|
|
9
8
|
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; }
|
|
10
9
|
import React from 'react';
|
|
11
|
-
import {
|
|
10
|
+
// import { useHistory } from 'react-router-dom';
|
|
11
|
+
import { useRealHistory } from '@teamix/utils';
|
|
12
12
|
import classnames from 'classnames';
|
|
13
13
|
import TeamixIcon from '@teamix/icon';
|
|
14
14
|
import { Breadcrumb, Balloon } from '@alicloudfe/components';
|
|
@@ -26,7 +26,7 @@ var renderNav = function renderNav(breadcrumbs) {
|
|
|
26
26
|
var text = b.text,
|
|
27
27
|
children = b.children,
|
|
28
28
|
others = _objectWithoutProperties(b, _excluded);
|
|
29
|
-
return /*#__PURE__*/React.createElement(Breadcrumb.Item,
|
|
29
|
+
return /*#__PURE__*/React.createElement(Breadcrumb.Item, _objectSpread({
|
|
30
30
|
key: i
|
|
31
31
|
}, others), text || children);
|
|
32
32
|
}));
|
|
@@ -45,7 +45,7 @@ var renderActionGroup = function renderActionGroup(group, defaultProps) {
|
|
|
45
45
|
type: buttonType
|
|
46
46
|
}, item);
|
|
47
47
|
});
|
|
48
|
-
return /*#__PURE__*/React.createElement(ProActionGroup,
|
|
48
|
+
return /*#__PURE__*/React.createElement(ProActionGroup, _objectSpread(_objectSpread(_objectSpread({}, defaultProps), actionGroup), {}, {
|
|
49
49
|
actions: actions
|
|
50
50
|
}));
|
|
51
51
|
}
|
|
@@ -84,7 +84,7 @@ var renderData = function renderData(data) {
|
|
|
84
84
|
var _getColorAndStyle = getColorAndStyle(color),
|
|
85
85
|
className = _getColorAndStyle.className,
|
|
86
86
|
style = _getColorAndStyle.style;
|
|
87
|
-
return /*#__PURE__*/React.createElement("div",
|
|
87
|
+
return /*#__PURE__*/React.createElement("div", _objectSpread({
|
|
88
88
|
key: i,
|
|
89
89
|
className: classnames(cls('data-item'), customClassName)
|
|
90
90
|
}, others), /*#__PURE__*/React.createElement("div", {
|
|
@@ -97,7 +97,7 @@ var renderData = function renderData(data) {
|
|
|
97
97
|
};
|
|
98
98
|
var renderInfo = function renderInfo(info) {
|
|
99
99
|
if (info === null || info === void 0 ? void 0 : info.columns) {
|
|
100
|
-
return /*#__PURE__*/React.createElement(ProInfo,
|
|
100
|
+
return /*#__PURE__*/React.createElement(ProInfo, _objectSpread({
|
|
101
101
|
type: "header"
|
|
102
102
|
}, info));
|
|
103
103
|
}
|
|
@@ -105,7 +105,7 @@ var renderInfo = function renderInfo(info) {
|
|
|
105
105
|
};
|
|
106
106
|
var renderTabs = function renderTabs(tabs) {
|
|
107
107
|
if (tabs) {
|
|
108
|
-
return /*#__PURE__*/React.createElement(CapsuleTab, tabs);
|
|
108
|
+
return /*#__PURE__*/React.createElement(CapsuleTab, _objectSpread({}, tabs));
|
|
109
109
|
}
|
|
110
110
|
return null;
|
|
111
111
|
};
|
|
@@ -132,12 +132,7 @@ var ProPageHeader = function ProPageHeader(props) {
|
|
|
132
132
|
style = props.style,
|
|
133
133
|
tabs = props.tabs,
|
|
134
134
|
others = _objectWithoutProperties(props, _excluded3);
|
|
135
|
-
|
|
136
|
-
// const history = useHistory();
|
|
137
|
-
// console.log('history', history);
|
|
138
|
-
var navigate = useNavigate();
|
|
139
|
-
// console.log('navigate', useNavigate);
|
|
140
|
-
|
|
135
|
+
var history = useRealHistory();
|
|
141
136
|
var backgroundImage = image ? "url('".concat(image, "')") : undefined;
|
|
142
137
|
var showList = function showList(list) {
|
|
143
138
|
var _list$actions;
|
|
@@ -159,11 +154,10 @@ var ProPageHeader = function ProPageHeader(props) {
|
|
|
159
154
|
return;
|
|
160
155
|
}
|
|
161
156
|
if (goback === true) {
|
|
162
|
-
|
|
163
|
-
navigate(-1);
|
|
157
|
+
history && history.go && history.go(-1);
|
|
164
158
|
return;
|
|
165
159
|
}
|
|
166
|
-
goToLink(goback,
|
|
160
|
+
goToLink(goback, history);
|
|
167
161
|
};
|
|
168
162
|
return /*#__PURE__*/React.createElement(React.Fragment, null, goback && /*#__PURE__*/React.createElement(TeamixIcon, {
|
|
169
163
|
className: cls('goback'),
|
|
@@ -187,7 +181,7 @@ var ProPageHeader = function ProPageHeader(props) {
|
|
|
187
181
|
align: "t"
|
|
188
182
|
}, titleTooltip)), renderTags(tags, 'large'), renderTabs(tabs !== null && tabs !== void 0 ? tabs : {}));
|
|
189
183
|
};
|
|
190
|
-
return /*#__PURE__*/React.createElement("header",
|
|
184
|
+
return /*#__PURE__*/React.createElement("header", _objectSpread({
|
|
191
185
|
className: classnames(cls(), className),
|
|
192
186
|
style: _objectSpread({
|
|
193
187
|
backgroundImage: loading ? undefined : backgroundImage
|
|
@@ -219,10 +213,6 @@ var ProPageHeader = function ProPageHeader(props) {
|
|
|
219
213
|
className: cls('operation')
|
|
220
214
|
}, !loading && renderActionGroup(operation)))), info && /*#__PURE__*/React.createElement("section", {
|
|
221
215
|
className: classnames(cls('section'), cls('info'))
|
|
222
|
-
}, !loading && renderInfo(info), loading && /*#__PURE__*/React.createElement(ProSkeletonRaw.Info.Header, null)), children);
|
|
216
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, !loading && renderInfo(info), loading && /*#__PURE__*/React.createElement(ProSkeletonRaw.Info.Header, null))), children);
|
|
223
217
|
};
|
|
224
|
-
export default ProPageHeader;
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* @deprecated 建议使用 ProPageHeaderBreadcrumbItem 代替
|
|
228
|
-
*/
|
|
218
|
+
export default ProPageHeader;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@import "xconsole";
|
|
1
2
|
$prefix: 'teamix-pro-page-header';
|
|
2
3
|
|
|
3
4
|
.#{$prefix} {
|
|
@@ -12,7 +13,7 @@ $prefix: 'teamix-pro-page-header';
|
|
|
12
13
|
justify-content: space-between;
|
|
13
14
|
align-items: center;
|
|
14
15
|
min-height: 18px;
|
|
15
|
-
height:
|
|
16
|
+
height: auto;
|
|
16
17
|
margin-bottom: var(--s-2, 8px);
|
|
17
18
|
|
|
18
19
|
&.with-description {
|
|
@@ -3,7 +3,9 @@ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableTo
|
|
|
3
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
4
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
5
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
-
function
|
|
6
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
|
+
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; }
|
|
7
9
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
10
|
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."); }
|
|
9
11
|
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); }
|
|
@@ -51,13 +53,11 @@ var ProSidebarContainer = function ProSidebarContainer(props) {
|
|
|
51
53
|
_useState2 = _slicedToArray(_useState, 2),
|
|
52
54
|
treeHeight = _useState2[0],
|
|
53
55
|
setTreeHeight = _useState2[1];
|
|
54
|
-
|
|
55
56
|
// 展开全部状态
|
|
56
57
|
var _useState3 = useState(false),
|
|
57
58
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
58
59
|
expandAllState = _useState4[0],
|
|
59
60
|
setExpandAllState = _useState4[1];
|
|
60
|
-
|
|
61
61
|
// 展开层级状态
|
|
62
62
|
var _useState5 = useState(1),
|
|
63
63
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
@@ -85,13 +85,12 @@ var ProSidebarContainer = function ProSidebarContainer(props) {
|
|
|
85
85
|
onExpandAllChange === null || onExpandAllChange === void 0 ? void 0 : onExpandAllChange(expandAllStateProp);
|
|
86
86
|
});
|
|
87
87
|
}, [expandAllStateProp]);
|
|
88
|
-
|
|
89
88
|
// 渲染搜索区域
|
|
90
89
|
var renderSearch = function renderSearch() {
|
|
91
90
|
if (customSearch || showSearch) {
|
|
92
91
|
return /*#__PURE__*/React.createElement("div", {
|
|
93
92
|
className: cls('search')
|
|
94
|
-
}, !!customSearch && customSearch, showSearch && /*#__PURE__*/React.createElement(ProField,
|
|
93
|
+
}, !!customSearch && customSearch, showSearch && /*#__PURE__*/React.createElement(ProField, _objectSpread({
|
|
95
94
|
mode: "edit",
|
|
96
95
|
type: "text",
|
|
97
96
|
placeholder: searchPlaceholder,
|
|
@@ -101,16 +100,15 @@ var ProSidebarContainer = function ProSidebarContainer(props) {
|
|
|
101
100
|
}
|
|
102
101
|
return null;
|
|
103
102
|
};
|
|
104
|
-
|
|
105
103
|
// 渲染通知区域
|
|
106
104
|
var renderNotice = function renderNotice() {
|
|
107
105
|
if (message || customMessage) {
|
|
108
106
|
return /*#__PURE__*/React.createElement("div", {
|
|
109
107
|
className: cls('notice')
|
|
110
|
-
}, message && /*#__PURE__*/React.createElement(Message,
|
|
108
|
+
}, message && /*#__PURE__*/React.createElement(Message, _objectSpread(_objectSpread({
|
|
111
109
|
type: "notice",
|
|
112
110
|
closeable: true
|
|
113
|
-
}, messageProps, {
|
|
111
|
+
}, messageProps), {}, {
|
|
114
112
|
onClose: function onClose() {
|
|
115
113
|
var _ref$current$offsetTo2, _ref$current2;
|
|
116
114
|
var remainHeight = (_ref$current$offsetTo2 = ref === null || ref === void 0 ? void 0 : (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.offsetTop) !== null && _ref$current$offsetTo2 !== void 0 ? _ref$current$offsetTo2 : 0 + 40;
|
|
@@ -120,7 +118,6 @@ var ProSidebarContainer = function ProSidebarContainer(props) {
|
|
|
120
118
|
}
|
|
121
119
|
return null;
|
|
122
120
|
};
|
|
123
|
-
|
|
124
121
|
// 渲染折叠区
|
|
125
122
|
var renderFold = function renderFold() {
|
|
126
123
|
if (showExpandAll || showExpandLevel) {
|
|
@@ -156,7 +153,7 @@ var ProSidebarContainer = function ProSidebarContainer(props) {
|
|
|
156
153
|
'': true,
|
|
157
154
|
'not-is-tree': !isTree
|
|
158
155
|
})
|
|
159
|
-
}, /*#__PURE__*/React.createElement(ProCard,
|
|
156
|
+
}, /*#__PURE__*/React.createElement(ProCard, _objectSpread({
|
|
160
157
|
bordered: false,
|
|
161
158
|
compacted: true
|
|
162
159
|
}, others), renderSearch(), renderNotice(), renderFold(), /*#__PURE__*/React.createElement("div", {
|