@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
package/es/actions/index.js
CHANGED
|
@@ -1,45 +1,44 @@
|
|
|
1
1
|
var _excluded = ["type"],
|
|
2
|
-
_excluded2 = ["config", "icon", "iconSize", "type", "context", "children", "visible", "disabled", "onClick", "tooltip", "disabledTooltip", "tooltipProps"],
|
|
2
|
+
_excluded2 = ["config", "icon", "iconSize", "type", "context", "children", "visible", "disabled", "onClick", "tooltip", "disabledTooltip", "tooltipProps", "data-teamix-spm"],
|
|
3
3
|
_excluded3 = ["loading"],
|
|
4
4
|
_excluded4 = ["icon", "iconSize", "label", "actions", "children", "context", "type", "className", "noArrow"],
|
|
5
5
|
_excluded5 = ["context", "text"],
|
|
6
6
|
_excluded6 = ["key", "actions"],
|
|
7
7
|
_excluded7 = ["key", "config"],
|
|
8
|
-
_excluded8 = ["type", "divider", "max", "moreText", "more", "context", "actions", "className"];
|
|
8
|
+
_excluded8 = ["type", "divider", "max", "moreText", "more", "context", "actions", "className", "data-teamix-spm"];
|
|
9
9
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
10
10
|
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."); }
|
|
11
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); }
|
|
12
12
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
13
13
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
14
14
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
15
|
-
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); }
|
|
16
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; }
|
|
17
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; }
|
|
18
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; }
|
|
19
18
|
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; }
|
|
20
19
|
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; }
|
|
21
|
-
import
|
|
22
|
-
import cls from 'classnames';
|
|
23
|
-
import { Button, MenuButton, Menu, Divider, Balloon } from '@alicloudfe/components';
|
|
20
|
+
import { Balloon, Button, Divider, Menu, MenuButton } from '@alicloudfe/components';
|
|
24
21
|
import Icon from '@teamix/icon';
|
|
25
|
-
import {
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import { useDialogAction } from './dialog';
|
|
22
|
+
import { getMessage, getTargetValue, usePrefixCls } from '@teamix/utils';
|
|
23
|
+
import cls from 'classnames';
|
|
24
|
+
import React from 'react';
|
|
29
25
|
import { useConfirmAction } from './confirm';
|
|
30
26
|
import { useDangerConfirmAction } from './danger-confirm';
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
27
|
+
import { useDangerPopConfirmAction } from './danger-pop-confirm';
|
|
28
|
+
import { useDialogAction } from './dialog';
|
|
33
29
|
import { useDialogFormAction } from './dialog-form';
|
|
34
|
-
import { useDialogTableAction } from './dialog-table';
|
|
35
30
|
import { useDialogInfoAction } from './dialog-info';
|
|
31
|
+
import { useDialogTableAction } from './dialog-table';
|
|
36
32
|
import { useDrawerAction } from './drawer';
|
|
37
33
|
import { useDrawerFormAction } from './drawer-form';
|
|
38
|
-
import { useDrawerTableAction } from './drawer-table';
|
|
39
34
|
import { useDrawerInfoAction } from './drawer-info';
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
35
|
+
import { useDrawerTableAction } from './drawer-table';
|
|
36
|
+
import { useErrorAction } from './error';
|
|
42
37
|
import './index.scss';
|
|
38
|
+
import { useLinkAction } from './link';
|
|
39
|
+
import { useNoticeAction } from './notice';
|
|
40
|
+
import { usePopConfirmAction } from './pop-confirm';
|
|
41
|
+
import { useRequestAction } from './request';
|
|
43
42
|
var RegistedActions = new Map();
|
|
44
43
|
export function registerActionHandler(id, extendActionId, defaultConfig) {
|
|
45
44
|
RegistedActions.set(id, {
|
|
@@ -115,6 +114,7 @@ var buttonContent = function buttonContent(content, iconType, iconSize, context)
|
|
|
115
114
|
return renderedContent;
|
|
116
115
|
}
|
|
117
116
|
return [/*#__PURE__*/React.createElement(Icon, {
|
|
117
|
+
className: 'teamix-pro-action-prefix-icon',
|
|
118
118
|
type: iconType,
|
|
119
119
|
size: iconSize,
|
|
120
120
|
key: "teamix-button-icon"
|
|
@@ -124,7 +124,7 @@ export var ProActionButton = function ProActionButton(props) {
|
|
|
124
124
|
var config = props.config,
|
|
125
125
|
icon = props.icon,
|
|
126
126
|
_props$iconSize = props.iconSize,
|
|
127
|
-
iconSize = _props$iconSize === void 0 ? '
|
|
127
|
+
iconSize = _props$iconSize === void 0 ? 'small' : _props$iconSize,
|
|
128
128
|
_props$type = props.type,
|
|
129
129
|
type = _props$type === void 0 ? 'primary' : _props$type,
|
|
130
130
|
context = props.context,
|
|
@@ -135,6 +135,7 @@ export var ProActionButton = function ProActionButton(props) {
|
|
|
135
135
|
tooltip = props.tooltip,
|
|
136
136
|
disabledTooltip = props.disabledTooltip,
|
|
137
137
|
tooltipProps = props.tooltipProps,
|
|
138
|
+
dataTeamixSpm = props['data-teamix-spm'],
|
|
138
139
|
others = _objectWithoutProperties(props, _excluded2);
|
|
139
140
|
var actionProps = useAction(config, context);
|
|
140
141
|
var buttonProps = _onClick ? _objectSpread(_objectSpread(_objectSpread({
|
|
@@ -146,7 +147,10 @@ export var ProActionButton = function ProActionButton(props) {
|
|
|
146
147
|
}) : _objectSpread(_objectSpread({
|
|
147
148
|
disabled: disabled
|
|
148
149
|
}, actionProps), others);
|
|
149
|
-
|
|
150
|
+
if (dataTeamixSpm) {
|
|
151
|
+
buttonProps['data-teamix-spm'] = dataTeamixSpm;
|
|
152
|
+
}
|
|
153
|
+
var content = /*#__PURE__*/React.createElement(Button, _objectSpread({
|
|
150
154
|
type: type
|
|
151
155
|
}, buttonProps), buttonContent(children, icon, iconSize, context));
|
|
152
156
|
var baseToolTipProps = _objectSpread({
|
|
@@ -157,22 +161,23 @@ export var ProActionButton = function ProActionButton(props) {
|
|
|
157
161
|
if (tooltip || disabledTooltip) {
|
|
158
162
|
if (tooltip && !disabledTooltip) {
|
|
159
163
|
if (!disabled) {
|
|
160
|
-
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, tooltip);
|
|
164
|
+
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), tooltip);
|
|
161
165
|
}
|
|
162
166
|
} else if (!tooltip && disabledTooltip) {
|
|
163
167
|
if (disabled) {
|
|
164
|
-
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, disabledTooltip);
|
|
168
|
+
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), disabledTooltip);
|
|
165
169
|
}
|
|
166
170
|
} else if (tooltip && disabledTooltip) {
|
|
167
171
|
var showToolTip = disabled ? disabledTooltip : tooltip;
|
|
168
|
-
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, showToolTip);
|
|
172
|
+
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), showToolTip);
|
|
169
173
|
}
|
|
170
174
|
}
|
|
171
175
|
return content;
|
|
172
176
|
};
|
|
173
177
|
var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
|
|
174
178
|
var action = props.action,
|
|
175
|
-
context = props.context
|
|
179
|
+
context = props.context,
|
|
180
|
+
dataTeamixSpm = props['data-teamix-spm'];
|
|
176
181
|
var config = action.config,
|
|
177
182
|
btnContext = action.context,
|
|
178
183
|
_onClick2 = action.onClick,
|
|
@@ -197,7 +202,10 @@ var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
|
|
|
197
202
|
return _onClick2(e, context);
|
|
198
203
|
}
|
|
199
204
|
}) : _objectSpread({}, menuItemProps);
|
|
200
|
-
|
|
205
|
+
if (dataTeamixSpm) {
|
|
206
|
+
buttonProps['data-teamix-spm'] = dataTeamixSpm;
|
|
207
|
+
}
|
|
208
|
+
var content = buttonContent(children, icon, 'small', context);
|
|
201
209
|
var baseToolTipProps = _objectSpread({
|
|
202
210
|
triggerType: 'hover',
|
|
203
211
|
align: 't',
|
|
@@ -206,22 +214,22 @@ var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
|
|
|
206
214
|
if (tooltip || disabledTooltip) {
|
|
207
215
|
if (tooltip && !disabledTooltip) {
|
|
208
216
|
if (!disabled) {
|
|
209
|
-
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, tooltip);
|
|
217
|
+
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), tooltip);
|
|
210
218
|
}
|
|
211
219
|
} else if (!tooltip && disabledTooltip) {
|
|
212
220
|
if (disabled) {
|
|
213
|
-
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, disabledTooltip);
|
|
221
|
+
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), disabledTooltip);
|
|
214
222
|
}
|
|
215
223
|
} else if (tooltip && disabledTooltip) {
|
|
216
224
|
var showToolTip = disabled ? disabledTooltip : tooltip;
|
|
217
|
-
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, showToolTip);
|
|
225
|
+
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), showToolTip);
|
|
218
226
|
}
|
|
219
227
|
}
|
|
220
|
-
return /*#__PURE__*/React.createElement("div",
|
|
228
|
+
return /*#__PURE__*/React.createElement("div", _objectSpread({
|
|
221
229
|
className: cls(_defineProperty({}, basePrefix('disabled'), disabled), basePrefix('menu-item'), prefixCls('menu-item'))
|
|
222
230
|
}, buttonProps), content);
|
|
223
231
|
};
|
|
224
|
-
function renderCommonActionButtonMenuItem(action, key, context) {
|
|
232
|
+
function renderCommonActionButtonMenuItem(action, key, context, dataTeamixSpm) {
|
|
225
233
|
if (action.type === 'divider') {
|
|
226
234
|
return /*#__PURE__*/React.createElement(Menu.Divider, {
|
|
227
235
|
key: key
|
|
@@ -233,18 +241,20 @@ function renderCommonActionButtonMenuItem(action, key, context) {
|
|
|
233
241
|
key: key,
|
|
234
242
|
label: menuBtn.label || menuBtn.children
|
|
235
243
|
}, menuBtn.actions.map(function (a) {
|
|
236
|
-
return renderCommonActionButtonMenuItem(a, a.key, context);
|
|
244
|
+
return renderCommonActionButtonMenuItem(a, a.key, context, a['data-teamix-spm']);
|
|
237
245
|
}));
|
|
238
246
|
}
|
|
239
247
|
return /*#__PURE__*/React.createElement(ProActionMenuButtonItem, {
|
|
240
248
|
key: key,
|
|
241
249
|
action: action,
|
|
242
|
-
context: context
|
|
250
|
+
context: context,
|
|
251
|
+
"data-teamix-spm": "".concat(dataTeamixSpm, "-").concat(key)
|
|
243
252
|
});
|
|
244
253
|
}
|
|
245
254
|
export var ProActionMenuButton = function ProActionMenuButton(props) {
|
|
246
255
|
var icon = props.icon,
|
|
247
|
-
|
|
256
|
+
_props$iconSize2 = props.iconSize,
|
|
257
|
+
iconSize = _props$iconSize2 === void 0 ? 'small' : _props$iconSize2,
|
|
248
258
|
label = props.label,
|
|
249
259
|
actions = props.actions,
|
|
250
260
|
children = props.children,
|
|
@@ -254,7 +264,7 @@ export var ProActionMenuButton = function ProActionMenuButton(props) {
|
|
|
254
264
|
className = props.className,
|
|
255
265
|
noArrow = props.noArrow,
|
|
256
266
|
others = _objectWithoutProperties(props, _excluded4);
|
|
257
|
-
return /*#__PURE__*/React.createElement(MenuButton,
|
|
267
|
+
return /*#__PURE__*/React.createElement(MenuButton, _objectSpread({
|
|
258
268
|
popupTriggerType: "hover",
|
|
259
269
|
autoWidth: false,
|
|
260
270
|
menuProps: {
|
|
@@ -270,7 +280,7 @@ export var ProActionMenuButton = function ProActionMenuButton(props) {
|
|
|
270
280
|
'teamix-pro-actions-text-menu-btn-no-arrow': noArrow
|
|
271
281
|
})
|
|
272
282
|
}, others), actions.map(function (action, i) {
|
|
273
|
-
return renderCommonActionButtonMenuItem(action, action.key || i, context);
|
|
283
|
+
return renderCommonActionButtonMenuItem(action, action.key || i, context, others === null || others === void 0 ? void 0 : others['data-teamix-spm']);
|
|
274
284
|
}));
|
|
275
285
|
};
|
|
276
286
|
// 超出 max,则折叠起来
|
|
@@ -284,7 +294,6 @@ function foldExtraActions(actions, max, moreConfig) {
|
|
|
284
294
|
actions: actions.slice(max - 1)
|
|
285
295
|
})]);
|
|
286
296
|
}
|
|
287
|
-
|
|
288
297
|
// 如果 actions 数量超过了 max,则把第 max 个和剩余超出部分折叠起来成为一个 menu
|
|
289
298
|
// divider 不计数
|
|
290
299
|
function formatGroupActions(actions, max, moreConfig) {
|
|
@@ -298,27 +307,28 @@ function formatGroupActions(actions, max, moreConfig) {
|
|
|
298
307
|
}
|
|
299
308
|
return foldExtraActions(actions, Math.max(index, MAX), moreConfig);
|
|
300
309
|
}
|
|
301
|
-
|
|
302
310
|
// 渲染一个 button 或者 menu button
|
|
303
|
-
function renderCommonActionButton(button, context, isTypeText) {
|
|
311
|
+
function renderCommonActionButton(button, context, isTypeText, dataTeamixSpm) {
|
|
304
312
|
if (button.type === 'divider') {
|
|
305
313
|
return /*#__PURE__*/React.createElement(Divider, {
|
|
306
314
|
key: button.key,
|
|
307
315
|
direction: "ver"
|
|
308
316
|
});
|
|
309
317
|
}
|
|
310
|
-
var
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
others = _objectWithoutProperties(_ref, _excluded5);
|
|
318
|
+
var buttonContext = button.context,
|
|
319
|
+
text = button.text,
|
|
320
|
+
others = _objectWithoutProperties(button, _excluded5);
|
|
314
321
|
var buttonProps = _objectSpread({
|
|
315
322
|
context: Object.assign({}, context, buttonContext),
|
|
316
323
|
text: text || isTypeText
|
|
317
324
|
}, others);
|
|
325
|
+
if (dataTeamixSpm) {
|
|
326
|
+
buttonProps['data-teamix-spm'] = dataTeamixSpm;
|
|
327
|
+
}
|
|
318
328
|
if (!button.actions) {
|
|
319
|
-
return /*#__PURE__*/React.createElement(ProActionButton, buttonProps);
|
|
329
|
+
return /*#__PURE__*/React.createElement(ProActionButton, _objectSpread({}, buttonProps));
|
|
320
330
|
}
|
|
321
|
-
return /*#__PURE__*/React.createElement(ProActionMenuButton, buttonProps);
|
|
331
|
+
return /*#__PURE__*/React.createElement(ProActionMenuButton, _objectSpread({}, buttonProps));
|
|
322
332
|
}
|
|
323
333
|
function getDefaultMoreButton(type, more) {
|
|
324
334
|
var defaultConfig = type === 'button' ? {
|
|
@@ -348,10 +358,9 @@ function getKey(index, key) {
|
|
|
348
358
|
}
|
|
349
359
|
function getActionConfig(action, index, context) {
|
|
350
360
|
if (action.actions) {
|
|
351
|
-
var
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
_others = _objectWithoutProperties(_ref2, _excluded6);
|
|
361
|
+
var _key = action.key,
|
|
362
|
+
actions = action.actions,
|
|
363
|
+
_others = _objectWithoutProperties(action, _excluded6);
|
|
355
364
|
return _objectSpread({
|
|
356
365
|
key: getKey(index, _key),
|
|
357
366
|
actions: actions.map(function (a, j) {
|
|
@@ -361,10 +370,9 @@ function getActionConfig(action, index, context) {
|
|
|
361
370
|
})
|
|
362
371
|
}, getTargetValue(_others, context));
|
|
363
372
|
}
|
|
364
|
-
var
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
others = _objectWithoutProperties(_ref3, _excluded7);
|
|
373
|
+
var key = action.key,
|
|
374
|
+
config = action.config,
|
|
375
|
+
others = _objectWithoutProperties(action, _excluded7);
|
|
368
376
|
return _objectSpread({
|
|
369
377
|
key: getKey(index, key),
|
|
370
378
|
config: config
|
|
@@ -383,6 +391,7 @@ export function ProActionGroup(props) {
|
|
|
383
391
|
_props$actions = props.actions,
|
|
384
392
|
actions = _props$actions === void 0 ? [] : _props$actions,
|
|
385
393
|
className = props.className,
|
|
394
|
+
dataTeamixSpm = props['data-teamix-spm'],
|
|
386
395
|
containerProps = _objectWithoutProperties(props, _excluded8);
|
|
387
396
|
var isTypeText = type === 'text';
|
|
388
397
|
var filteredActions = actions.map(function (action, index) {
|
|
@@ -391,13 +400,19 @@ export function ProActionGroup(props) {
|
|
|
391
400
|
return action.visible !== false;
|
|
392
401
|
});
|
|
393
402
|
var formatedActions = formatGroupActions(filteredActions, max, getDefaultMoreButton(type, more || moreText));
|
|
394
|
-
return /*#__PURE__*/React.createElement("div",
|
|
403
|
+
return /*#__PURE__*/React.createElement("div", _objectSpread({
|
|
395
404
|
className: cls('teamix-pro-actions', "teamix-pro-actions-type-".concat(type), className, {
|
|
396
405
|
'teamix-pro-actions-divider': type === 'button' ? false : divider
|
|
397
406
|
})
|
|
398
407
|
}, containerProps), formatedActions.map(function (actionBtn, i) {
|
|
399
408
|
var isLastOne = i === formatedActions.length - 1;
|
|
400
|
-
|
|
409
|
+
if (dataTeamixSpm) {
|
|
410
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
411
|
+
key: actionBtn.key
|
|
412
|
+
}, renderCommonActionButton(actionBtn, context, isTypeText, "".concat(dataTeamixSpm, "-").concat(actionBtn.key || i)), isTypeText && divider && !isLastOne && /*#__PURE__*/React.createElement(Divider, {
|
|
413
|
+
direction: "ver"
|
|
414
|
+
}));
|
|
415
|
+
} else return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
401
416
|
key: actionBtn.key
|
|
402
417
|
}, renderCommonActionButton(actionBtn, context, isTypeText), isTypeText && divider && !isLastOne && /*#__PURE__*/React.createElement(Divider, {
|
|
403
418
|
direction: "ver"
|
|
@@ -408,22 +423,16 @@ var ProAction = function ProAction(props) {
|
|
|
408
423
|
return renderCommonActionButton(props);
|
|
409
424
|
};
|
|
410
425
|
export default ProAction;
|
|
411
|
-
|
|
426
|
+
export * from './quick';
|
|
412
427
|
/**
|
|
413
428
|
* @deprecated 建议使用 ProActionGroup 代替
|
|
414
429
|
*/
|
|
415
430
|
export var ActionGroup = ProActionGroup;
|
|
416
|
-
|
|
417
431
|
/**
|
|
418
432
|
* @deprecated 建议使用 ProActionButton 代替
|
|
419
433
|
*/
|
|
420
434
|
export var ActionButton = ProActionButton;
|
|
421
|
-
|
|
422
435
|
/**
|
|
423
436
|
* @deprecated 建议使用 ProActionMenuButton 代替
|
|
424
437
|
*/
|
|
425
|
-
export var ActionMenuButton = ProActionMenuButton;
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* @deprecated 建议使用 ProActionConfig 代替
|
|
429
|
-
*/
|
|
438
|
+
export var ActionMenuButton = ProActionMenuButton;
|
package/es/actions/index.scss
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&.teamix-pro-actions-type-button {
|
|
13
|
-
& > button {
|
|
13
|
+
& > button,& > span {
|
|
14
14
|
&:not(:last-child) {
|
|
15
15
|
margin-right: var(--s-2);
|
|
16
16
|
}
|
|
@@ -110,15 +110,20 @@
|
|
|
110
110
|
|
|
111
111
|
.next-dialog-body {
|
|
112
112
|
.teamix-pro-info {
|
|
113
|
+
padding-right: 16px;
|
|
113
114
|
.next-card-content-container {
|
|
114
115
|
margin-top: 10px;
|
|
115
116
|
padding-bottom: 10px;
|
|
117
|
+
padding-right: 0;
|
|
116
118
|
.next-col.next-col-24:last-child {
|
|
117
119
|
.teamix-pro-info-item:last-child {
|
|
118
120
|
padding-bottom: 0px;
|
|
119
121
|
}
|
|
120
122
|
}
|
|
121
123
|
}
|
|
124
|
+
.teamix-pro-info-item-value {
|
|
125
|
+
padding-right: 0px;
|
|
126
|
+
}
|
|
122
127
|
}
|
|
123
128
|
}
|
|
124
129
|
|
|
@@ -134,3 +139,7 @@
|
|
|
134
139
|
background: var(--drawer-bg);
|
|
135
140
|
}
|
|
136
141
|
}
|
|
142
|
+
|
|
143
|
+
.teamix-pro-action-prefix-icon {
|
|
144
|
+
margin-right: 4px
|
|
145
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LocationHistory } from '@teamix/utils';
|
|
2
|
+
import { BaseAction } from './base';
|
|
3
|
+
export interface LinkAction extends BaseAction, LocationHistory {
|
|
4
|
+
}
|
|
5
|
+
export declare function useLinkAction(action: LinkAction, actionContext?: any): {
|
|
6
|
+
[x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
export default useLinkAction;
|
package/es/actions/link.js
CHANGED
|
@@ -2,13 +2,14 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
2
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
3
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
4
|
import { getTargetValue, goToLink } from '@teamix/utils';
|
|
5
|
-
import {
|
|
5
|
+
// import { useHistory } from 'react-router-dom';
|
|
6
|
+
import { useRealHistory } from '@teamix/utils';
|
|
6
7
|
import { eventHandler } from './base';
|
|
7
8
|
export function useLinkAction(action, actionContext) {
|
|
8
|
-
var
|
|
9
|
+
var history = useRealHistory();
|
|
9
10
|
return _objectSpread({}, eventHandler(action, actionContext, function (context) {
|
|
10
11
|
var linkAction = getTargetValue(action, context);
|
|
11
|
-
goToLink(linkAction,
|
|
12
|
+
goToLink(linkAction, history);
|
|
12
13
|
}));
|
|
13
14
|
}
|
|
14
15
|
export default useLinkAction;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DialogAction } from './dialog';
|
|
2
|
+
export interface NoticeAction extends DialogAction {
|
|
3
|
+
}
|
|
4
|
+
export declare function useNoticeAction(action: DialogAction, context?: any): {
|
|
5
|
+
[x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
|
|
6
|
+
};
|
|
7
|
+
export default useNoticeAction;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IPopConfirmProps } from '@teamix/pop-confirm';
|
|
2
|
+
import { DialogAction } from './dialog';
|
|
3
|
+
export declare type PopConfirmAction = DialogAction & Omit<IPopConfirmProps, 'type' | 'trigger'> & {
|
|
4
|
+
popType?: IPopConfirmProps['type'];
|
|
5
|
+
};
|
|
6
|
+
export declare function usePopConfirmAction(action: PopConfirmAction, context?: any): {
|
|
7
|
+
[x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
export default usePopConfirmAction;
|
|
@@ -0,0 +1,26 @@
|
|
|
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; }
|
|
4
|
+
import ProAction from './';
|
|
5
|
+
import ReactDom from 'react-dom';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
export function createAction(props) {
|
|
8
|
+
var parentDom = document.getElementById('teamix-pro-actions-identification-par');
|
|
9
|
+
if (!parentDom) {
|
|
10
|
+
parentDom = document.createElement('div');
|
|
11
|
+
parentDom.setAttribute('id', 'teamix-pro-actions-identification-par');
|
|
12
|
+
document.body.appendChild(parentDom);
|
|
13
|
+
} else {
|
|
14
|
+
parentDom.innerHTML = '';
|
|
15
|
+
}
|
|
16
|
+
var divDom = document.createElement('div');
|
|
17
|
+
divDom.style.display = 'none';
|
|
18
|
+
divDom.setAttribute('class', 'teamix-pro-actions-identification');
|
|
19
|
+
ReactDom.render( /*#__PURE__*/React.createElement(ProAction, _objectSpread({}, props)), divDom);
|
|
20
|
+
parentDom.appendChild(divDom);
|
|
21
|
+
setTimeout(function () {
|
|
22
|
+
var _divDom$children, _divDom$children$, _divDom$children$$cli;
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
divDom === null || divDom === void 0 ? void 0 : (_divDom$children = divDom.children) === null || _divDom$children === void 0 ? void 0 : (_divDom$children$ = _divDom$children[0]) === null || _divDom$children$ === void 0 ? void 0 : (_divDom$children$$cli = _divDom$children$.click) === null || _divDom$children$$cli === void 0 ? void 0 : _divDom$children$$cli.call(_divDom$children$);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CommonRequestConfig } from '@teamix/utils';
|
|
2
|
+
import { BaseAction } from './base';
|
|
3
|
+
export interface RequestAction extends CommonRequestConfig, BaseAction {
|
|
4
|
+
}
|
|
5
|
+
export declare function doRequest(action: RequestAction, context?: any, history?: any, extraParams?: any): Promise<unknown>;
|
|
6
|
+
export declare function useRequestAction(action: RequestAction, actionContext?: any): {
|
|
7
|
+
loading: boolean;
|
|
8
|
+
};
|
|
9
|
+
export default useRequestAction;
|
package/es/actions/request.js
CHANGED
|
@@ -12,7 +12,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12
12
|
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; }
|
|
13
13
|
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; }
|
|
14
14
|
import { useState } from 'react';
|
|
15
|
-
import {
|
|
15
|
+
// import { useHistory } from 'react-router-dom';
|
|
16
|
+
import { useRealHistory } from '@teamix/utils';
|
|
16
17
|
import { doCommonRequest } from '@teamix/utils';
|
|
17
18
|
import { eventHandler } from './base';
|
|
18
19
|
// action 里的数据请求都默认是 post 类型
|
|
@@ -29,12 +30,12 @@ export function useRequestAction(action, actionContext) {
|
|
|
29
30
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30
31
|
loading = _useState2[0],
|
|
31
32
|
setLoading = _useState2[1];
|
|
32
|
-
var
|
|
33
|
+
var history = useRealHistory();
|
|
33
34
|
var onFinish = action.onFinish,
|
|
34
35
|
others = _objectWithoutProperties(action, _excluded2);
|
|
35
36
|
return _objectSpread(_objectSpread({}, eventHandler(action, actionContext, function (context) {
|
|
36
37
|
setLoading(true);
|
|
37
|
-
doRequest(_objectSpread({}, others), context,
|
|
38
|
+
doRequest(_objectSpread({}, others), context, history).then(function () {
|
|
38
39
|
setLoading(false);
|
|
39
40
|
onFinish && onFinish();
|
|
40
41
|
}).catch(function () {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function addContext(props?: any, context?: any): any;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ProCardProps } from './index';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated 建议使用 ProCardProps 代替
|
|
5
|
+
*/
|
|
6
|
+
export declare type ProCardContainerProps = ProCardProps;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated 建议使用 ProCard 代替
|
|
9
|
+
*/
|
|
10
|
+
export declare const ProCardContainer: React.FC<ProCardContainerProps>;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated 建议使用 ProCardContainer 代替
|
|
13
|
+
*/
|
|
14
|
+
export declare const CardContainer: React.FC<ProCardProps>;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated 建议使用 ProCardContainerProps 代替
|
|
17
|
+
*/
|
|
18
|
+
export declare type CardContainerProps = ProCardContainerProps;
|
|
@@ -1,26 +1,19 @@
|
|
|
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; }
|
|
1
4
|
import React from 'react';
|
|
2
5
|
import { ProCard } from './index';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated 建议使用 ProCardProps 代替
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
6
|
/**
|
|
9
7
|
* @deprecated 建议使用 ProCard 代替
|
|
10
8
|
*/
|
|
11
9
|
export var ProCardContainer = function ProCardContainer(props) {
|
|
12
|
-
return /*#__PURE__*/React.createElement(ProCard, props);
|
|
10
|
+
return /*#__PURE__*/React.createElement(ProCard, _objectSpread({}, props));
|
|
13
11
|
};
|
|
14
12
|
ProCardContainer.defaultProps = {
|
|
15
13
|
compacted: true,
|
|
16
14
|
direction: 'column'
|
|
17
15
|
};
|
|
18
|
-
|
|
19
16
|
/**
|
|
20
17
|
* @deprecated 建议使用 ProCardContainer 代替
|
|
21
18
|
*/
|
|
22
|
-
export var CardContainer = ProCardContainer;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated 建议使用 ProCardContainerProps 代替
|
|
26
|
-
*/
|
|
19
|
+
export var CardContainer = ProCardContainer;
|
package/es/card/divider.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
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
|
import React from 'react';
|
|
3
5
|
var ProCardDivider = function ProCardDivider(props) {
|
|
4
|
-
return /*#__PURE__*/React.createElement("div",
|
|
6
|
+
return /*#__PURE__*/React.createElement("div", _objectSpread({
|
|
5
7
|
className: "teamix-pro-card-divider"
|
|
6
8
|
}, props));
|
|
7
9
|
};
|