@lemon-fe/components 0.1.153 → 1.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/{Actions → actions}/index.d.ts +8 -5
- package/es/{Actions → actions}/index.js +56 -39
- package/es/{Actions → actions}/index.less +5 -5
- package/es/alert/index.d.ts +3 -0
- package/es/alert/index.js +18 -0
- package/es/{BaseTable/Actions.js → base-table/actions.js} +13 -10
- package/es/{BaseTable → base-table}/index.d.ts +0 -1
- package/es/{BaseTable → base-table}/index.js +48 -22
- package/es/{BaseTable/ResizeHeaderCell.js → base-table/resize-header-cell.js} +3 -3
- package/es/{BaseTable → base-table}/utils.d.ts +1 -1
- package/es/{BaseTable/VirtualBody.js → base-table/virtual-body.js} +12 -13
- package/es/{ColorPicker → color-picker}/index.js +7 -7
- package/es/{ColorPicker → color-picker}/index.less +1 -1
- package/es/component-configure/index.d.ts +12 -0
- package/es/component-configure/index.js +4 -0
- package/es/data-grid/cell-editors/date.d.ts +19 -0
- package/es/data-grid/cell-editors/date.js +92 -0
- package/es/data-grid/cell-editors/number.d.ts +32 -0
- package/es/data-grid/cell-editors/number.js +120 -0
- package/es/data-grid/cell-editors/row.d.ts +23 -0
- package/es/data-grid/cell-editors/row.js +119 -0
- package/es/data-grid/cell-editors/select.d.ts +33 -0
- package/es/data-grid/cell-editors/select.js +102 -0
- package/es/data-grid/cell-editors/text.d.ts +10 -0
- package/es/data-grid/cell-editors/text.js +81 -0
- package/es/data-grid/cell-editors/utils.d.ts +10 -0
- package/es/data-grid/cell-editors/utils.js +45 -0
- package/es/data-grid/cell-editors/wrapper.d.ts +5 -0
- package/es/data-grid/cell-editors/wrapper.js +8 -0
- package/es/data-grid/components/custom-panel/drag-context.d.ts +4 -0
- package/es/data-grid/components/custom-panel/drag-context.js +3 -0
- package/es/data-grid/components/custom-panel/field-modal.d.ts +10 -0
- package/es/data-grid/components/custom-panel/field-modal.js +223 -0
- package/es/data-grid/components/custom-panel/index.d.ts +5 -0
- package/es/data-grid/components/custom-panel/index.js +321 -0
- package/es/data-grid/components/custom-panel/item.d.ts +14 -0
- package/es/data-grid/components/custom-panel/item.js +181 -0
- package/es/data-grid/components/custom-panel/typings.d.ts +25 -0
- package/es/data-grid/components/search.d.ts +4 -0
- package/es/data-grid/components/search.js +159 -0
- package/es/data-grid/components/selected.d.ts +7 -0
- package/es/data-grid/components/selected.js +24 -0
- package/es/data-grid/context/grid-store.d.ts +4 -0
- package/es/data-grid/context/grid-store.js +4 -0
- package/es/data-grid/hooks.d.ts +20 -0
- package/es/data-grid/hooks.js +71 -0
- package/es/data-grid/index.d.ts +102 -0
- package/es/data-grid/index.js +1684 -0
- package/es/data-grid/index.less +659 -0
- package/es/data-grid/modules/clipboard/clipboard/clipboardService.d.ts +62 -0
- package/es/data-grid/modules/clipboard/clipboard/clipboardService.js +1007 -0
- package/es/data-grid/modules/clipboard/clipboardModule.d.ts +2 -0
- package/es/data-grid/modules/clipboard/clipboardModule.js +10 -0
- package/es/data-grid/modules/clipboard/main.d.ts +1 -0
- package/es/data-grid/modules/clipboard/main.js +1 -0
- package/es/data-grid/modules/clipboard/version.d.ts +1 -0
- package/es/data-grid/modules/clipboard/version.js +2 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnModelItem.d.ts +26 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnModelItem.js +94 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnToolPanel.d.ts +32 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnToolPanel.js +272 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/modelItemUtils.d.ts +16 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/modelItemUtils.js +209 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/pivotModePanel.d.ts +9 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/pivotModePanel.js +68 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.d.ts +32 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.js +150 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.d.ts +44 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.js +455 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.d.ts +26 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.js +224 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.d.ts +24 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.js +123 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.d.ts +37 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.js +314 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.d.ts +51 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.js +406 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.d.ts +24 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.js +264 -0
- package/es/data-grid/modules/column-tool-panel/columnsToolPanelModule.d.ts +2 -0
- package/es/data-grid/modules/column-tool-panel/columnsToolPanelModule.js +29 -0
- package/es/data-grid/modules/column-tool-panel/main.d.ts +2 -0
- package/es/data-grid/modules/column-tool-panel/main.js +3 -0
- package/es/data-grid/modules/column-tool-panel/version.d.ts +1 -0
- package/es/data-grid/modules/column-tool-panel/version.js +2 -0
- package/es/data-grid/modules/master-detail/main.d.ts +1 -0
- package/es/data-grid/modules/master-detail/main.js +1 -0
- package/es/data-grid/modules/master-detail/masterDetail/detailCellRenderer.d.ts +14 -0
- package/es/data-grid/modules/master-detail/masterDetail/detailCellRenderer.js +144 -0
- package/es/data-grid/modules/master-detail/masterDetail/detailCellRendererCtrl.d.ts +19 -0
- package/es/data-grid/modules/master-detail/masterDetail/detailCellRendererCtrl.js +203 -0
- package/es/data-grid/modules/master-detail/masterDetailModule.d.ts +2 -0
- package/es/data-grid/modules/master-detail/masterDetailModule.js +18 -0
- package/es/data-grid/modules/master-detail/version.d.ts +1 -0
- package/es/data-grid/modules/master-detail/version.js +2 -0
- package/es/data-grid/modules/menu/main.d.ts +1 -0
- package/es/data-grid/modules/menu/main.js +1 -0
- package/es/data-grid/modules/menu/menu/chartMenuItemMapper.d.ts +13 -0
- package/es/data-grid/modules/menu/menu/chartMenuItemMapper.js +351 -0
- package/es/data-grid/modules/menu/menu/contextMenu.d.ts +13 -0
- package/es/data-grid/modules/menu/menu/contextMenu.js +267 -0
- package/es/data-grid/modules/menu/menu/enterpriseMenu.d.ts +66 -0
- package/es/data-grid/modules/menu/menu/enterpriseMenu.js +592 -0
- package/es/data-grid/modules/menu/menu/menuItemMapper.d.ts +13 -0
- package/es/data-grid/modules/menu/menu/menuItemMapper.js +328 -0
- package/es/data-grid/modules/menu/menuModule.d.ts +2 -0
- package/es/data-grid/modules/menu/menuModule.js +12 -0
- package/es/data-grid/modules/menu/version.d.ts +1 -0
- package/es/data-grid/modules/menu/version.js +2 -0
- package/es/data-grid/modules/row-grouping/main.d.ts +4 -0
- package/es/data-grid/modules/row-grouping/main.js +4 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/aggFuncService.d.ts +23 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/aggFuncService.js +250 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/aggregationStage.d.ts +22 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/aggregationStage.js +285 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/batchRemover.d.ts +12 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/batchRemover.js +77 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.d.ts +75 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.js +516 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.d.ts +40 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.js +367 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.d.ts +11 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.js +85 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.d.ts +17 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.js +139 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.d.ts +15 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.js +105 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.d.ts +15 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.js +105 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/filterAggregatesStage.d.ts +9 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/filterAggregatesStage.js +136 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.d.ts +39 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.js +319 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.d.ts +23 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.js +163 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupStage.d.ts +48 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupStage.js +740 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/pivotColDefService.d.ts +24 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/pivotColDefService.js +396 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/pivotStage.d.ts +19 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/pivotStage.js +182 -0
- package/es/data-grid/modules/row-grouping/rowGroupingModule.d.ts +2 -0
- package/es/data-grid/modules/row-grouping/rowGroupingModule.js +28 -0
- package/es/data-grid/modules/row-grouping/version.d.ts +1 -0
- package/es/data-grid/modules/row-grouping/version.js +2 -0
- package/es/data-grid/modules/side-bar/main.d.ts +2 -0
- package/es/data-grid/modules/side-bar/main.js +2 -0
- package/es/data-grid/modules/side-bar/sideBar/common/toolPanelColDefService.d.ts +11 -0
- package/es/data-grid/modules/side-bar/sideBar/common/toolPanelColDefService.js +216 -0
- package/es/data-grid/modules/side-bar/sideBar/horizontalResizeComp.d.ts +19 -0
- package/es/data-grid/modules/side-bar/sideBar/horizontalResizeComp.js +108 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarButtonComp.d.ts +16 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarButtonComp.js +84 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarButtonsComp.d.ts +18 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarButtonsComp.js +89 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarComp.d.ts +28 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarComp.js +325 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarDefParser.d.ts +10 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarDefParser.js +95 -0
- package/es/data-grid/modules/side-bar/sideBar/toolPanelWrapper.d.ts +17 -0
- package/es/data-grid/modules/side-bar/sideBar/toolPanelWrapper.js +103 -0
- package/es/data-grid/modules/side-bar/sideBarModule.d.ts +2 -0
- package/es/data-grid/modules/side-bar/sideBarModule.js +22 -0
- package/es/data-grid/modules/side-bar/version.d.ts +1 -0
- package/es/data-grid/modules/side-bar/version.js +2 -0
- package/es/data-grid/renderer/actions-renderer.d.ts +3 -0
- package/es/data-grid/renderer/actions-renderer.js +50 -0
- package/es/data-grid/renderer/actions.d.ts +11 -0
- package/es/data-grid/renderer/actions.js +72 -0
- package/es/data-grid/renderer/cell-delete-renderer.d.ts +5 -0
- package/es/data-grid/renderer/cell-delete-renderer.js +49 -0
- package/es/data-grid/renderer/cell-index-renderer.d.ts +4 -0
- package/es/data-grid/renderer/cell-index-renderer.js +43 -0
- package/es/data-grid/renderer/cell-renderer.d.ts +4 -0
- package/es/data-grid/renderer/cell-renderer.js +58 -0
- package/es/data-grid/renderer/detali-cell-renderer.d.ts +9 -0
- package/es/data-grid/renderer/detali-cell-renderer.js +59 -0
- package/es/data-grid/renderer/header-renderer.d.ts +6 -0
- package/es/data-grid/renderer/header-renderer.js +98 -0
- package/es/data-grid/typings.d.ts +226 -0
- package/es/data-grid/typings.js +1 -0
- package/es/data-grid/utils.d.ts +51 -0
- package/es/data-grid/utils.js +293 -0
- package/es/dropdown/index.d.ts +14 -0
- package/es/dropdown/index.js +42 -0
- package/es/dropdown/index.less +5 -0
- package/es/{DurationPicker → duration-picker}/index.d.ts +12 -9
- package/es/duration-picker/index.js +204 -0
- package/es/duration-picker/index.less +12 -0
- package/es/{EditableTable/EditableCell.d.ts → editable-table/editable-cell.d.ts} +1 -1
- package/es/editable-table/editable-cell.js +41 -0
- package/es/{EditableTable/EditableTableFormItem.d.ts → editable-table/editable-table-form-item.d.ts} +1 -1
- package/es/{EditableTable/EditableTableFormItem.js → editable-table/editable-table-form-item.js} +3 -5
- package/es/{EditableTable → editable-table}/index.d.ts +3 -3
- package/es/editable-table/index.js +8 -0
- package/es/{EditableTable/Table.d.ts → editable-table/table.d.ts} +1 -1
- package/es/{EditableTable/Table.js → editable-table/table.js} +27 -22
- package/es/{EditableTable → editable-table}/typings.d.ts +2 -2
- package/es/editable-table/util.js +311 -0
- package/es/empty-image/index.d.ts +2 -0
- package/es/empty-image/index.js +78 -0
- package/es/{Filter → filter}/index.d.ts +3 -3
- package/es/filter/index.js +615 -0
- package/es/{Filter → filter}/index.less +5 -5
- package/es/filter/typings.d.ts +70 -0
- package/es/{FormLayout → form-layout}/index.d.ts +5 -0
- package/es/form-layout/index.js +48 -0
- package/es/{FormLayout → form-layout}/index.less +21 -8
- package/es/grey-panel/index.d.ts +6 -0
- package/es/grey-panel/index.js +15 -0
- package/es/grey-panel/index.less +11 -0
- package/es/icons/add.d.ts +6 -0
- package/es/icons/add.js +39 -0
- package/es/{Icons/BigTip → icons/big-tip}/index.d.ts +1 -1
- package/es/{Icons/BigTip → icons/big-tip}/index.js +6 -8
- package/es/{Icons/Down.d.ts → icons/calendar.d.ts} +1 -1
- package/es/icons/calendar.js +35 -0
- package/es/icons/clear.d.ts +3 -0
- package/es/icons/clear.js +18 -0
- package/es/icons/clock.d.ts +5 -0
- package/es/icons/clock.js +27 -0
- package/es/icons/close-light.d.ts +5 -0
- package/es/icons/close-light.js +31 -0
- package/es/{Icons/Close.d.ts → icons/close.d.ts} +1 -1
- package/es/icons/close.js +22 -0
- package/es/{Icons/CollapseUp.d.ts → icons/collapse-up.d.ts} +1 -1
- package/es/icons/collapse-up.js +24 -0
- package/es/{Icons/Search.d.ts → icons/dark-search.d.ts} +1 -1
- package/es/{Icons/DarkSearch.js → icons/dark-search.js} +3 -5
- package/es/icons/delete.d.ts +3 -0
- package/es/icons/delete.js +37 -0
- package/es/icons/down.d.ts +3 -0
- package/es/icons/down.js +18 -0
- package/es/icons/drag/drag.svg +7 -0
- package/es/icons/drag/index.d.ts +3 -0
- package/es/icons/drag/index.js +31 -0
- package/es/{Icons/Empty.d.ts → icons/empty.d.ts} +1 -0
- package/es/icons/index.d.ts +45 -0
- package/es/icons/index.js +45 -0
- package/es/{Icons/LookUp.d.ts → icons/look-up.d.ts} +1 -1
- package/es/{Icons/LookUp.js → icons/look-up.js} +3 -5
- package/es/icons/more.d.ts +3 -0
- package/es/icons/more.js +37 -0
- package/es/icons/new-tag.d.ts +3 -0
- package/es/icons/new-tag.js +19 -0
- package/es/icons/plus/index.d.ts +3 -0
- package/es/icons/plus/index.js +27 -0
- package/es/icons/plus/plus.svg +6 -0
- package/es/icons/question.d.ts +3 -0
- package/es/icons/question.js +18 -0
- package/es/icons/reload.d.ts +3 -0
- package/es/icons/reload.js +18 -0
- package/es/icons/search.d.ts +3 -0
- package/es/icons/search.js +18 -0
- package/es/icons/tip.d.ts +5 -0
- package/es/{Icons/Tip.js → icons/tip.js} +64 -75
- package/es/index.d.ts +43 -32
- package/es/index.js +36 -28
- package/es/input-compact/index.d.ts +11 -0
- package/es/input-compact/index.js +63 -0
- package/es/input-compact/index.less +33 -0
- package/es/input-number/index.d.ts +8 -0
- package/es/input-number/index.js +35 -0
- package/es/input-number/index.less +58 -0
- package/es/{Layout → layout}/index.d.ts +26 -8
- package/es/layout/index.js +253 -0
- package/es/{Layout → layout}/index.less +43 -25
- package/es/{PageLoading → page-loading}/index.d.ts +2 -1
- package/es/{PageLoading → page-loading}/index.js +5 -3
- package/es/popup/index.d.ts +80 -0
- package/es/popup/index.js +260 -0
- package/es/popup/index.less +34 -0
- package/es/portal/index.d.ts +18 -0
- package/es/{Portal → portal}/index.js +48 -14
- package/es/{Section → section}/index.d.ts +10 -2
- package/es/section/index.js +99 -0
- package/es/{Section → section}/index.less +22 -6
- package/es/{Section/TabBar.d.ts → section/tab-bar.d.ts} +2 -1
- package/es/{Section/TabBar.js → section/tab-bar.js} +6 -3
- package/es/select-panel/index.d.ts +17 -0
- package/es/select-panel/index.js +63 -0
- package/es/select-panel/index.less +112 -0
- package/es/select-view/index.d.ts +63 -0
- package/es/select-view/index.js +269 -0
- package/es/select-view/index.less +57 -0
- package/es/{SiderTree → sider-tree}/index.d.ts +6 -12
- package/es/{SiderTree → sider-tree}/index.js +58 -82
- package/es/sider-tree/index.less +151 -0
- package/es/{SiderTree/TreeNodeTitle.js → sider-tree/tree-node-title.js} +13 -10
- package/es/{SiderTree → sider-tree}/typings.d.ts +2 -2
- package/es/state/index.d.ts +8 -0
- package/es/state/index.js +20 -0
- package/es/state/index.less +131 -0
- package/es/styles/empty.png +0 -0
- package/es/styles/index.less +28 -0
- package/es/styles/overrides.less +347 -0
- package/es/styles/theme.less +29 -0
- package/es/{utils.less → styles/utils.less} +18 -18
- package/es/symbol-icon/index.js +30 -0
- package/es/{TabBar → tab-bar}/index.d.ts +2 -3
- package/es/tab-bar/index.js +31 -0
- package/es/tab-bar/index.less +5 -0
- package/es/table/index.js +201 -0
- package/es/{Table → table}/typings.d.ts +2 -3
- package/es/{Table → table}/utils.d.ts +1 -1
- package/es/tip-mark/index.d.ts +8 -0
- package/es/tip-mark/index.js +44 -0
- package/es/utils.d.ts +2 -1
- package/es/utils.js +10 -2
- package/package.json +50 -21
- package/README.md +0 -11
- package/es/Dropdown/index.d.ts +0 -15
- package/es/Dropdown/index.js +0 -45
- package/es/Dropdown/index.less +0 -13
- package/es/DurationPicker/index.js +0 -174
- package/es/DurationPicker/index.less +0 -61
- package/es/EditableTable/EditableCell.js +0 -41
- package/es/EditableTable/index.js +0 -8
- package/es/EditableTable/util.js +0 -311
- package/es/Filter/index.js +0 -555
- package/es/Filter/typings.d.ts +0 -37
- package/es/FormHorizontal/index.d.ts +0 -6
- package/es/FormHorizontal/index.js +0 -30
- package/es/FormHorizontal/index.less +0 -14
- package/es/FormInline/index.d.ts +0 -15
- package/es/FormInline/index.js +0 -74
- package/es/FormInline/index.less +0 -26
- package/es/FormLayout/index.js +0 -36
- package/es/FormTable/index.d.ts +0 -6
- package/es/FormTable/index.js +0 -125
- package/es/FormTable/index.less +0 -11
- package/es/FormTable/typings.d.ts +0 -38
- package/es/Icons/Calendar.d.ts +0 -5
- package/es/Icons/Calendar.js +0 -42
- package/es/Icons/Close.js +0 -24
- package/es/Icons/CollapseUp.js +0 -26
- package/es/Icons/DarkSearch.d.ts +0 -5
- package/es/Icons/Down.js +0 -30
- package/es/Icons/More.d.ts +0 -5
- package/es/Icons/More.js +0 -39
- package/es/Icons/Search.js +0 -30
- package/es/Icons/Tip.d.ts +0 -6
- package/es/Icons/index.d.ts +0 -24
- package/es/Icons/index.js +0 -25
- package/es/InputMaxLength/index.d.ts +0 -14
- package/es/InputMaxLength/index.js +0 -72
- package/es/InputMaxLength/index.less +0 -8
- package/es/Layout/index.js +0 -184
- package/es/MainFramework/components/DropMenu/index.d.ts +0 -11
- package/es/MainFramework/components/DropMenu/index.js +0 -93
- package/es/MainFramework/components/DropMenu/index.less +0 -59
- package/es/MainFramework/components/Menu/index.d.ts +0 -10
- package/es/MainFramework/components/Menu/index.js +0 -603
- package/es/MainFramework/components/Menu/index.less +0 -445
- package/es/MainFramework/components/RefreshButton/index.d.ts +0 -6
- package/es/MainFramework/components/RefreshButton/index.js +0 -63
- package/es/MainFramework/components/RefreshButton/index.less +0 -30
- package/es/MainFramework/components/TabBar/index.d.ts +0 -10
- package/es/MainFramework/components/TabBar/index.js +0 -101
- package/es/MainFramework/components/TabBar/index.less +0 -155
- package/es/MainFramework/components/WaterMark/index.d.ts +0 -6
- package/es/MainFramework/components/WaterMark/index.js +0 -65
- package/es/MainFramework/index.d.ts +0 -28
- package/es/MainFramework/index.js +0 -78
- package/es/MainFramework/index.less +0 -97
- package/es/MainFramework/typings.d.ts +0 -10
- package/es/Popup/index.d.ts +0 -39
- package/es/Popup/index.js +0 -180
- package/es/Popup/index.less +0 -12
- package/es/Portal/index.d.ts +0 -17
- package/es/Section/index.js +0 -90
- package/es/SelectView/index.d.ts +0 -56
- package/es/SelectView/index.js +0 -227
- package/es/SelectView/index.less +0 -60
- package/es/SiderTree/index.less +0 -222
- package/es/SymbolIcon/index.js +0 -27
- package/es/TabBar/index.js +0 -42
- package/es/TabBar/index.less +0 -31
- package/es/Table/index.js +0 -205
- package/es/TipMark/index.d.ts +0 -10
- package/es/TipMark/index.js +0 -35
- package/es/TipMark/index.less +0 -6
- package/es/index.less +0 -26
- package/es/init.d.ts +0 -3
- package/es/init.js +0 -134
- package/es/overrides.less +0 -183
- package/es/theme.less +0 -9
- /package/es/{BaseTable/Actions.d.ts → base-table/actions.d.ts} +0 -0
- /package/es/{BaseTable/BaseTableContext.d.ts → base-table/base-table-context.d.ts} +0 -0
- /package/es/{BaseTable/BaseTableContext.js → base-table/base-table-context.js} +0 -0
- /package/es/{BaseTable → base-table}/empty.png +0 -0
- /package/es/{BaseTable → base-table}/index.less +0 -0
- /package/es/{BaseTable/ResizeHeaderCell.d.ts → base-table/resize-header-cell.d.ts} +0 -0
- /package/es/{BaseTable → base-table}/typings.d.ts +0 -0
- /package/es/{BaseTable → base-table}/utils.js +0 -0
- /package/es/{BaseTable/VirtualBody.d.ts → base-table/virtual-body.d.ts} +0 -0
- /package/es/{ColorPicker → color-picker}/index.d.ts +0 -0
- /package/es/{EditableTable → editable-table}/index.less +0 -0
- /package/es/{EditableTable → editable-table}/util.d.ts +0 -0
- /package/es/{Icons/BigTip → icons/big-tip}/error.png +0 -0
- /package/es/{Icons/BigTip → icons/big-tip}/info.png +0 -0
- /package/es/{Icons/BigTip → icons/big-tip}/success.png +0 -0
- /package/es/{Icons/BigTip → icons/big-tip}/warning.png +0 -0
- /package/es/{Icons/Empty.js → icons/empty.js} +0 -0
- /package/es/{PageLoading → page-loading}/index.less +0 -0
- /package/es/{SiderTree → sider-tree}/empty.png +0 -0
- /package/es/{SiderTree/TreeNodeTitle.d.ts → sider-tree/tree-node-title.d.ts} +0 -0
- /package/es/{SymbolIcon → symbol-icon}/index.d.ts +0 -0
- /package/es/{SymbolIcon → symbol-icon}/index.less +0 -0
- /package/es/{Table → table}/index.d.ts +0 -0
- /package/es/{Table → table}/utils.js +0 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["tabs", "children", "className", "activeKey", "onTabClick", "hideTabBar"];
|
|
3
|
+
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); }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
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."); }
|
|
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
|
+
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; }
|
|
13
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
14
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
|
+
import { useCallback, createContext, useContext } from 'react';
|
|
16
|
+
import React, { useState } from 'react';
|
|
17
|
+
import { Resizable } from 'react-resizable';
|
|
18
|
+
import Portal from "../portal";
|
|
19
|
+
import { mapChildren, prefixClassName } from "../utils";
|
|
20
|
+
import { Spin, Tabs } from 'antd';
|
|
21
|
+
import classNames from 'classnames';
|
|
22
|
+
import { get } from 'lodash';
|
|
23
|
+
var SLOT_HEADER = 'header';
|
|
24
|
+
var SLOT_FOOTER = 'footer';
|
|
25
|
+
var prefix = prefixClassName('layout');
|
|
26
|
+
function Sider(props) {
|
|
27
|
+
var children = props.children,
|
|
28
|
+
onCollapse = props.onCollapse;
|
|
29
|
+
var _useState = useState(242),
|
|
30
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
31
|
+
width = _useState2[0],
|
|
32
|
+
setWidth = _useState2[1];
|
|
33
|
+
var _useState3 = useState(false),
|
|
34
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
35
|
+
collapsed = _useState4[0],
|
|
36
|
+
setCollapsed = _useState4[1];
|
|
37
|
+
var _useState5 = useState(false),
|
|
38
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
39
|
+
dragging = _useState6[0],
|
|
40
|
+
setDragging = _useState6[1];
|
|
41
|
+
var viewWidth = collapsed ? 0 : width;
|
|
42
|
+
return /*#__PURE__*/React.createElement(Resizable, {
|
|
43
|
+
axis: "x",
|
|
44
|
+
width: width,
|
|
45
|
+
height: 0,
|
|
46
|
+
onResizeStart: function onResizeStart() {
|
|
47
|
+
setDragging(true);
|
|
48
|
+
},
|
|
49
|
+
onResizeStop: function onResizeStop() {
|
|
50
|
+
setDragging(false);
|
|
51
|
+
},
|
|
52
|
+
onResize: function onResize(_, data) {
|
|
53
|
+
setWidth(data.size.width);
|
|
54
|
+
},
|
|
55
|
+
handle: /*#__PURE__*/React.createElement("div", {
|
|
56
|
+
className: prefix('left-resizable')
|
|
57
|
+
})
|
|
58
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
59
|
+
style: {
|
|
60
|
+
width: viewWidth
|
|
61
|
+
},
|
|
62
|
+
className: classNames(prefix('left'), _defineProperty(_defineProperty({}, prefix("left-collapsed"), collapsed), prefix("left-resizing"), dragging))
|
|
63
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
64
|
+
className: prefix("left-body")
|
|
65
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
66
|
+
className: prefix("left-content")
|
|
67
|
+
}, children)), /*#__PURE__*/React.createElement("div", {
|
|
68
|
+
className: prefix("left-collapse"),
|
|
69
|
+
onClick: function onClick() {
|
|
70
|
+
var result = !collapsed;
|
|
71
|
+
onCollapse === null || onCollapse === void 0 || onCollapse(result);
|
|
72
|
+
setCollapsed(result);
|
|
73
|
+
}
|
|
74
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
75
|
+
width: "12",
|
|
76
|
+
height: "12",
|
|
77
|
+
version: "1.1",
|
|
78
|
+
viewBox: "0 0 12 12"
|
|
79
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
80
|
+
stroke: "none",
|
|
81
|
+
strokeWidth: "1",
|
|
82
|
+
fill: "none",
|
|
83
|
+
fillRule: "evenodd",
|
|
84
|
+
opacity: "1"
|
|
85
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
86
|
+
transform: "translate(-463.000000, -140.000000)"
|
|
87
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
88
|
+
transform: "translate(463.000000, 140.000000)"
|
|
89
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
90
|
+
opacity: "0.699999988",
|
|
91
|
+
transform: "translate(2.000000, 2.000000)"
|
|
92
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
93
|
+
d: "M9,0.75 C9,1.16421356 8.66421356,1.5 8.25,1.5 L5.75,1.5 C5.33578644,1.5 5,1.16421356 5,0.75 C5,0.335786438 5.33578644,7.6089797e-17 5.75,0 L8.25,0 C8.66421356,-7.6089797e-17 9,0.335786438 9,0.75 Z",
|
|
94
|
+
id: "Rectangle-393",
|
|
95
|
+
fill: "currentColor",
|
|
96
|
+
fillRule: "nonzero"
|
|
97
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
98
|
+
d: "M9,4 C9,4.41421356 8.66421356,4.75 8.25,4.75 L5.75,4.75 C5.33578644,4.75 5,4.41421356 5,4 C5,3.58578644 5.33578644,3.25 5.75,3.25 L8.25,3.25 C8.66421356,3.25 9,3.58578644 9,4 Z",
|
|
99
|
+
id: "Rectangle-394",
|
|
100
|
+
fill: "currentColor",
|
|
101
|
+
fillRule: "nonzero"
|
|
102
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
103
|
+
d: "M9,7.75 C9,8.16421356 8.66421356,8.5 8.25,8.5 L0.75,8.5 C0.335786438,8.5 5.07265313e-17,8.16421356 0,7.75 C-5.07265313e-17,7.33578644 0.335786438,7 0.75,7 L8.25,7 C8.66421356,7 9,7.33578644 9,7.75 Z",
|
|
104
|
+
id: "Rectangle-395",
|
|
105
|
+
fill: "currentColor",
|
|
106
|
+
fillRule: "nonzero"
|
|
107
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
108
|
+
d: "M4.32842712,0.621320344 L1.32842712,0.621320344 L1.32842712,3.62132034",
|
|
109
|
+
stroke: "currentColor",
|
|
110
|
+
strokeWidth: "1.5",
|
|
111
|
+
strokeLinecap: "round",
|
|
112
|
+
strokeLinejoin: "round",
|
|
113
|
+
strokeDasharray: "0,0",
|
|
114
|
+
transform: "translate(2.828427, 2.121320) rotate(-45.000000) translate(-2.828427, -2.121320) "
|
|
115
|
+
})))))))));
|
|
116
|
+
}
|
|
117
|
+
var ActiveContext = /*#__PURE__*/createContext(true);
|
|
118
|
+
function useFocus() {
|
|
119
|
+
return useContext(ActiveContext);
|
|
120
|
+
}
|
|
121
|
+
function Content(props) {
|
|
122
|
+
var left = props.left,
|
|
123
|
+
children = props.children,
|
|
124
|
+
onCollapse = props.onCollapse,
|
|
125
|
+
header = props.header,
|
|
126
|
+
footer = props.footer;
|
|
127
|
+
var focused = useFocus();
|
|
128
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
129
|
+
className: prefix('content')
|
|
130
|
+
}, left ? /*#__PURE__*/React.createElement(Sider, {
|
|
131
|
+
onCollapse: onCollapse
|
|
132
|
+
}, left) : null, /*#__PURE__*/React.createElement("div", {
|
|
133
|
+
className: prefix('main')
|
|
134
|
+
}, children), focused && header ? /*#__PURE__*/React.createElement(Portal, {
|
|
135
|
+
slot: SLOT_HEADER
|
|
136
|
+
}, header) : null, focused && footer ? /*#__PURE__*/React.createElement(Portal, {
|
|
137
|
+
slot: SLOT_FOOTER
|
|
138
|
+
}, footer) : null);
|
|
139
|
+
}
|
|
140
|
+
export default function Layout(props) {
|
|
141
|
+
var className = props.className,
|
|
142
|
+
style = props.style,
|
|
143
|
+
children = props.children,
|
|
144
|
+
_props$loading = props.loading,
|
|
145
|
+
loading = _props$loading === void 0 ? false : _props$loading,
|
|
146
|
+
header = props.header,
|
|
147
|
+
left = props.left,
|
|
148
|
+
footer = props.footer,
|
|
149
|
+
body = props.body,
|
|
150
|
+
onCollapse = props.onCollapse,
|
|
151
|
+
tabs = props.tabs,
|
|
152
|
+
activeKey = props.activeKey,
|
|
153
|
+
onTabClick = props.onTabClick;
|
|
154
|
+
var renderHeader = useCallback(function (node) {
|
|
155
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
156
|
+
className: prefix('header')
|
|
157
|
+
}, node);
|
|
158
|
+
}, []);
|
|
159
|
+
var renderFooter = useCallback(function (node) {
|
|
160
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
161
|
+
className: prefix('footer')
|
|
162
|
+
}, node);
|
|
163
|
+
}, []);
|
|
164
|
+
return /*#__PURE__*/React.createElement(Portal.Host, null, /*#__PURE__*/React.createElement("div", {
|
|
165
|
+
className: classNames(prefix(), className),
|
|
166
|
+
style: style
|
|
167
|
+
}, header ? renderHeader(header) : null, /*#__PURE__*/React.createElement(Portal.Slot, {
|
|
168
|
+
slot: SLOT_HEADER,
|
|
169
|
+
render: renderHeader
|
|
170
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
171
|
+
className: prefix('body')
|
|
172
|
+
}, tabs ? /*#__PURE__*/React.createElement(Tabs, {
|
|
173
|
+
className: prefix('tabs'),
|
|
174
|
+
activeKey: activeKey,
|
|
175
|
+
style: {
|
|
176
|
+
height: 'auto'
|
|
177
|
+
},
|
|
178
|
+
onTabClick: onTabClick,
|
|
179
|
+
items: tabs.map(function (item) {
|
|
180
|
+
return {
|
|
181
|
+
label: item.title,
|
|
182
|
+
key: item.key
|
|
183
|
+
};
|
|
184
|
+
})
|
|
185
|
+
}) : null, body || /*#__PURE__*/React.createElement(Content, {
|
|
186
|
+
onCollapse: onCollapse,
|
|
187
|
+
left: left
|
|
188
|
+
}, children)), /*#__PURE__*/React.createElement(Portal.Slot, {
|
|
189
|
+
slot: SLOT_FOOTER,
|
|
190
|
+
render: renderFooter
|
|
191
|
+
}), footer ? renderFooter(footer) : null, loading && /*#__PURE__*/React.createElement("div", {
|
|
192
|
+
className: prefix('spin')
|
|
193
|
+
}, /*#__PURE__*/React.createElement(Spin, null))));
|
|
194
|
+
}
|
|
195
|
+
function LayoutTabs(props) {
|
|
196
|
+
var _tabs$;
|
|
197
|
+
var _props$tabs = props.tabs,
|
|
198
|
+
tabs = _props$tabs === void 0 ? [] : _props$tabs,
|
|
199
|
+
children = props.children,
|
|
200
|
+
className = props.className,
|
|
201
|
+
activeKey = props.activeKey,
|
|
202
|
+
_onTabClick = props.onTabClick,
|
|
203
|
+
hideTabBar = props.hideTabBar,
|
|
204
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
205
|
+
var _useState7 = useState((_tabs$ = tabs[0]) === null || _tabs$ === void 0 ? void 0 : _tabs$.key),
|
|
206
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
207
|
+
active = _useState8[0],
|
|
208
|
+
setActive = _useState8[1];
|
|
209
|
+
var currentTab = activeKey !== null && activeKey !== void 0 ? activeKey : active;
|
|
210
|
+
return /*#__PURE__*/React.createElement(Layout, _extends({
|
|
211
|
+
className: classNames(className, prefix('tabs-wrapper'), _defineProperty({}, prefix('tabs-hide-tab-bar'), hideTabBar)),
|
|
212
|
+
body: /*#__PURE__*/React.createElement(Tabs, {
|
|
213
|
+
activeKey: currentTab,
|
|
214
|
+
onTabClick: function onTabClick(key, e) {
|
|
215
|
+
if (_onTabClick !== undefined) {
|
|
216
|
+
_onTabClick(key, e);
|
|
217
|
+
}
|
|
218
|
+
setActive(key);
|
|
219
|
+
},
|
|
220
|
+
className: prefix('tabs'),
|
|
221
|
+
renderTabBar: hideTabBar ? function () {
|
|
222
|
+
return null;
|
|
223
|
+
} : undefined,
|
|
224
|
+
items: children ? mapChildren(children, function (node, index) {
|
|
225
|
+
var _get, _get2, _get3, _get4;
|
|
226
|
+
var tab = tabs[index];
|
|
227
|
+
var key = (_get = get(node, 'key')) !== null && _get !== void 0 ? _get : tab === null || tab === void 0 ? void 0 : tab.key;
|
|
228
|
+
return {
|
|
229
|
+
label: (_get2 = get(node, ['props', 'tab'])) !== null && _get2 !== void 0 ? _get2 : tab === null || tab === void 0 ? void 0 : tab.title,
|
|
230
|
+
key: (_get3 = get(node, 'key')) !== null && _get3 !== void 0 ? _get3 : tab === null || tab === void 0 ? void 0 : tab.key,
|
|
231
|
+
forceRender: (_get4 = get(node, ['props', 'forceRender'])) !== null && _get4 !== void 0 ? _get4 : tab === null || tab === void 0 ? void 0 : tab.forceRender,
|
|
232
|
+
children: /*#__PURE__*/React.createElement(ActiveContext.Provider, {
|
|
233
|
+
value: currentTab === key
|
|
234
|
+
}, node)
|
|
235
|
+
};
|
|
236
|
+
}) : tabs.map(function (tab) {
|
|
237
|
+
return {
|
|
238
|
+
label: tab.label || tab.title,
|
|
239
|
+
key: tab.key,
|
|
240
|
+
forceRender: tab.forceRender,
|
|
241
|
+
children: /*#__PURE__*/React.createElement(ActiveContext.Provider, {
|
|
242
|
+
value: currentTab === tab.key
|
|
243
|
+
}, tab.children)
|
|
244
|
+
};
|
|
245
|
+
})
|
|
246
|
+
})
|
|
247
|
+
}, restProps));
|
|
248
|
+
}
|
|
249
|
+
Layout.Tabs = LayoutTabs;
|
|
250
|
+
Layout.Content = Content;
|
|
251
|
+
Layout.useFocus = useFocus;
|
|
252
|
+
Layout.SLOT_HEADER = SLOT_HEADER;
|
|
253
|
+
Layout.SLOT_FOOTER = SLOT_FOOTER;
|
|
@@ -3,38 +3,37 @@
|
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
height: 100%;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
background: #fff;
|
|
7
|
+
|
|
8
|
+
.@{ant-prefix}-modal-body & {
|
|
9
|
+
margin: -@padding-md;
|
|
10
|
+
background: transparent;
|
|
11
|
+
}
|
|
8
12
|
|
|
9
13
|
&-header {
|
|
10
|
-
padding:
|
|
11
|
-
background-color: #f2f2f2;
|
|
14
|
+
padding: @padding-md @padding-md 0;
|
|
12
15
|
}
|
|
13
16
|
|
|
14
17
|
&-body {
|
|
15
18
|
flex: 1;
|
|
16
19
|
min-height: 0;
|
|
17
|
-
|
|
18
|
-
&:first-child {
|
|
19
|
-
margin-top: 8px;
|
|
20
|
-
}
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
&-tabs {
|
|
24
23
|
.fullTabs();
|
|
24
|
+
|
|
25
|
+
& > .@{ant-prefix}-tabs-nav {
|
|
26
|
+
margin: @padding-md @padding-md 0 @padding-md;
|
|
27
|
+
}
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
&-tabs-wrapper &-header {
|
|
28
|
-
padding-bottom:
|
|
31
|
+
padding-bottom: 12px;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
&-content {
|
|
32
35
|
display: flex;
|
|
33
36
|
height: 100%;
|
|
34
|
-
overflow: hidden;
|
|
35
|
-
background-color: #fff;
|
|
36
|
-
border-top-left-radius: 8px;
|
|
37
|
-
border-top-right-radius: 8px;
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
&-left {
|
|
@@ -64,21 +63,21 @@
|
|
|
64
63
|
width: 17px;
|
|
65
64
|
height: 100%;
|
|
66
65
|
padding: 0 8px;
|
|
67
|
-
background-color:
|
|
66
|
+
background-color: @border-color-split;
|
|
68
67
|
background-clip: content-box;
|
|
69
68
|
cursor: col-resize;
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
&-collapse {
|
|
73
72
|
position: absolute;
|
|
74
|
-
top: @
|
|
73
|
+
top: @padding-md;
|
|
75
74
|
right: 0;
|
|
76
75
|
z-index: 100;
|
|
77
76
|
box-sizing: border-box;
|
|
78
|
-
width:
|
|
79
|
-
height:
|
|
77
|
+
width: @padding-md;
|
|
78
|
+
height: @input-height-base;
|
|
80
79
|
font-size: 14px;
|
|
81
|
-
line-height:
|
|
80
|
+
line-height: @input-height-base;
|
|
82
81
|
text-align: center;
|
|
83
82
|
text-decoration: underline overline;
|
|
84
83
|
background-color: #fff;
|
|
@@ -95,13 +94,13 @@
|
|
|
95
94
|
}
|
|
96
95
|
}
|
|
97
96
|
|
|
98
|
-
&-collapsed &-body {
|
|
99
|
-
width: 0;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
97
|
&-collapsed &-collapse {
|
|
103
98
|
transform: rotateY(180deg);
|
|
104
99
|
}
|
|
100
|
+
|
|
101
|
+
&-collapsed &-resizable {
|
|
102
|
+
display: none;
|
|
103
|
+
}
|
|
105
104
|
}
|
|
106
105
|
|
|
107
106
|
&-main {
|
|
@@ -111,7 +110,7 @@
|
|
|
111
110
|
min-width: 0;
|
|
112
111
|
overflow: auto;
|
|
113
112
|
|
|
114
|
-
.scrollBar(
|
|
113
|
+
.scrollBar();
|
|
115
114
|
}
|
|
116
115
|
|
|
117
116
|
&-footer {
|
|
@@ -119,8 +118,8 @@
|
|
|
119
118
|
align-items: center;
|
|
120
119
|
justify-content: center;
|
|
121
120
|
box-sizing: border-box;
|
|
122
|
-
height:
|
|
123
|
-
padding:
|
|
121
|
+
height: 44px;
|
|
122
|
+
padding: 0 @padding-md;
|
|
124
123
|
background: #fff;
|
|
125
124
|
box-shadow: inset 0 1px 0 0 #dfdfdf;
|
|
126
125
|
}
|
|
@@ -137,4 +136,23 @@
|
|
|
137
136
|
justify-content: center;
|
|
138
137
|
background-color: rgba(255, 255, 255, 0.5);
|
|
139
138
|
}
|
|
139
|
+
|
|
140
|
+
&-main > & {
|
|
141
|
+
flex: 1;
|
|
142
|
+
min-height: 0;
|
|
143
|
+
background-color: transparent;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.@{prefixCls}-section + &&-tabs-wrapper {
|
|
147
|
+
margin-top: -@padding-md;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.@{prefixCls}-section + &:not(&-tabs-wrapper),
|
|
151
|
+
.@{prefixCls}-section + &&-tabs-hide-tab-bar {
|
|
152
|
+
margin-top: -@padding-md;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
& + .@{prefixCls}-section {
|
|
156
|
+
padding-top: 0;
|
|
157
|
+
}
|
|
140
158
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { PREFIX_CLS } from "../constants";
|
|
2
3
|
import { Spin } from 'antd';
|
|
3
|
-
import { PREFIX_CLS } from '../constants';
|
|
4
4
|
var PageLoading = function PageLoading(_ref) {
|
|
5
|
-
var tip = _ref.tip
|
|
5
|
+
var tip = _ref.tip,
|
|
6
|
+
style = _ref.style;
|
|
6
7
|
return /*#__PURE__*/React.createElement("div", {
|
|
7
|
-
className: "".concat(PREFIX_CLS, "-page-loading")
|
|
8
|
+
className: "".concat(PREFIX_CLS, "-page-loading"),
|
|
9
|
+
style: style
|
|
8
10
|
}, /*#__PURE__*/React.createElement(Spin, {
|
|
9
11
|
size: "large",
|
|
10
12
|
tip: tip
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { ModalProps } from 'antd/lib/modal';
|
|
3
|
+
export interface BasePopupProps {
|
|
4
|
+
allowClear?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
showLabel?: boolean;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated
|
|
10
|
+
* 请使用beforeOpen
|
|
11
|
+
*/
|
|
12
|
+
disabledTip?: string;
|
|
13
|
+
bordered?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @description 是否仅作为受控的Modal使用
|
|
16
|
+
* 当作为modal使用,请不要传入onOk方法,通过open以及onCancel来控制Modal是否显示
|
|
17
|
+
*/
|
|
18
|
+
modal?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @description 受控open
|
|
21
|
+
*/
|
|
22
|
+
open?: boolean;
|
|
23
|
+
readOnly?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @description 非modal模式,打开Modal之前
|
|
27
|
+
*/
|
|
28
|
+
beforeOpen?: () => boolean | Promise<boolean>;
|
|
29
|
+
autoFocus?: boolean;
|
|
30
|
+
onCancel?: () => void;
|
|
31
|
+
onOpenChange?: (visible: boolean) => void;
|
|
32
|
+
/**
|
|
33
|
+
* 是否在完全关闭popup之后触发onChange,
|
|
34
|
+
* @returns
|
|
35
|
+
*/
|
|
36
|
+
triggerChangeAfterClose?: boolean;
|
|
37
|
+
onClick?: () => void;
|
|
38
|
+
}
|
|
39
|
+
export interface PopupProps<ValueType> extends BasePopupProps, Omit<ModalProps, 'children' | 'onCancel' | 'afterClose'> {
|
|
40
|
+
value?: ValueType;
|
|
41
|
+
onChange?: (value?: ValueType) => void;
|
|
42
|
+
/**
|
|
43
|
+
* @description 渲染函数,这个函数不是作为组件渲染的,偷懒可以直接传入组件,如果需要考虑优化参考demo的传入方式
|
|
44
|
+
*/
|
|
45
|
+
component: (params: {
|
|
46
|
+
value?: ValueType;
|
|
47
|
+
onChange: (value: ValueType, closePopup?: boolean) => void;
|
|
48
|
+
readOnly?: boolean;
|
|
49
|
+
}) => ReactElement | null;
|
|
50
|
+
formatLabel?: (value: ValueType) => string;
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated
|
|
53
|
+
*/
|
|
54
|
+
beforeOk?: (value: ValueType) => ValueType | PromiseLike<ValueType>;
|
|
55
|
+
/**
|
|
56
|
+
* @description 确认事件之前校验
|
|
57
|
+
*/
|
|
58
|
+
beforeOkCheck?: (value?: ValueType) => boolean | PromiseLike<boolean>;
|
|
59
|
+
children?: ReactElement | null | ((props: {
|
|
60
|
+
value?: ValueType;
|
|
61
|
+
disabled?: boolean;
|
|
62
|
+
readOnly?: boolean;
|
|
63
|
+
}) => ReactElement | null);
|
|
64
|
+
/**
|
|
65
|
+
* @description 清空后的值
|
|
66
|
+
*/
|
|
67
|
+
emptyValue?: ValueType;
|
|
68
|
+
renderFooter?: (params: {
|
|
69
|
+
onOk: () => void;
|
|
70
|
+
onCancel: () => void;
|
|
71
|
+
}) => ReactNode;
|
|
72
|
+
}
|
|
73
|
+
interface ValuedPopupProps<ValueType> extends Omit<PopupProps<ValueType>, 'onChange' | 'emptyValue' | 'beforeOkCheck'> {
|
|
74
|
+
onChange?: (value: ValueType) => void;
|
|
75
|
+
emptyValue: ValueType;
|
|
76
|
+
beforeOkCheck?: (value: ValueType) => boolean | PromiseLike<boolean>;
|
|
77
|
+
}
|
|
78
|
+
declare function Popup<ValueType>(props: ValuedPopupProps<ValueType>): JSX.Element;
|
|
79
|
+
declare function Popup<ValueType>(props: PopupProps<ValueType>): JSX.Element;
|
|
80
|
+
export default Popup;
|