@lemon-fe/components 0.1.154 → 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
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
.@{prefixCls}-nav-tabs-layout {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-grow: 1;
|
|
5
|
-
flex-wrap: nowrap;
|
|
6
|
-
align-items: flex-end;
|
|
7
|
-
justify-content: space-between;
|
|
8
|
-
overflow-x: hidden;
|
|
9
|
-
|
|
10
|
-
&-icon {
|
|
11
|
-
align-self: center;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.@{prefixCls}-nav-tabs {
|
|
16
|
-
position: relative;
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-wrap: nowrap;
|
|
19
|
-
align-items: flex-end;
|
|
20
|
-
padding: 7px 16px 0;
|
|
21
|
-
overflow-x: hidden;
|
|
22
|
-
|
|
23
|
-
&::before {
|
|
24
|
-
position: absolute;
|
|
25
|
-
top: 0;
|
|
26
|
-
left: 0;
|
|
27
|
-
z-index: 4;
|
|
28
|
-
display: block;
|
|
29
|
-
width: 16px;
|
|
30
|
-
height: 100%;
|
|
31
|
-
background-color: #fff;
|
|
32
|
-
border-bottom-right-radius: 10px;
|
|
33
|
-
content: '';
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&::after {
|
|
37
|
-
position: absolute;
|
|
38
|
-
top: 0;
|
|
39
|
-
right: 0;
|
|
40
|
-
z-index: 4;
|
|
41
|
-
display: block;
|
|
42
|
-
width: 16px;
|
|
43
|
-
height: 100%;
|
|
44
|
-
background-color: #fff;
|
|
45
|
-
border-bottom-left-radius: 10px;
|
|
46
|
-
content: '';
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.@{prefixCls}-nav-tab {
|
|
51
|
-
position: relative;
|
|
52
|
-
box-sizing: content-box;
|
|
53
|
-
min-width: 66px;
|
|
54
|
-
max-width: 120px;
|
|
55
|
-
height: 43px;
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
|
|
58
|
-
&::before {
|
|
59
|
-
position: absolute;
|
|
60
|
-
top: 15px;
|
|
61
|
-
left: 0;
|
|
62
|
-
z-index: 5;
|
|
63
|
-
display: block;
|
|
64
|
-
width: 1px;
|
|
65
|
-
height: 12px;
|
|
66
|
-
background-color: #c4c4c4;
|
|
67
|
-
opacity: 0.2;
|
|
68
|
-
content: '';
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&::after {
|
|
72
|
-
position: absolute;
|
|
73
|
-
right: -10px;
|
|
74
|
-
bottom: 0;
|
|
75
|
-
left: -10px;
|
|
76
|
-
z-index: 1;
|
|
77
|
-
display: block;
|
|
78
|
-
height: 10px;
|
|
79
|
-
background-color: #fff;
|
|
80
|
-
transition: background-color 0.2s;
|
|
81
|
-
content: '';
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&-title {
|
|
85
|
-
position: relative;
|
|
86
|
-
z-index: 4;
|
|
87
|
-
display: flex;
|
|
88
|
-
align-items: center;
|
|
89
|
-
padding: 7px 12px 14px;
|
|
90
|
-
background-color: #fff;
|
|
91
|
-
border-radius: 10px;
|
|
92
|
-
transition: background-color 0.2s;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&:hover:not(&-active) &-title,
|
|
96
|
-
&:hover:not(&-active)::after {
|
|
97
|
-
background-color: #f9f9f9;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&-active &-title,
|
|
101
|
-
&-active::after {
|
|
102
|
-
background-color: #f2f2f2;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&:hover::after {
|
|
106
|
-
z-index: 2;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&-active::after {
|
|
110
|
-
z-index: 3;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&-active::before,
|
|
114
|
-
&-active + &::before,
|
|
115
|
-
&:hover::before,
|
|
116
|
-
&:hover + &::before {
|
|
117
|
-
opacity: 0;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&-active &-inner {
|
|
121
|
-
opacity: 1;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&-inner {
|
|
125
|
-
flex: 1;
|
|
126
|
-
min-width: 28px;
|
|
127
|
-
overflow: hidden;
|
|
128
|
-
color: #333;
|
|
129
|
-
font-size: 14px;
|
|
130
|
-
line-height: 22px;
|
|
131
|
-
white-space: nowrap;
|
|
132
|
-
text-overflow: ellipsis;
|
|
133
|
-
opacity: 0.7;
|
|
134
|
-
|
|
135
|
-
&::after {
|
|
136
|
-
display: inline-block;
|
|
137
|
-
width: 16px;
|
|
138
|
-
content: ' ';
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&-close {
|
|
143
|
-
width: 14px;
|
|
144
|
-
height: 14px;
|
|
145
|
-
color: #c4c4c4;
|
|
146
|
-
line-height: 14px;
|
|
147
|
-
text-align: center;
|
|
148
|
-
border-radius: 50%;
|
|
149
|
-
|
|
150
|
-
&:hover {
|
|
151
|
-
color: #f2f2f2;
|
|
152
|
-
background-color: #c1c1c1;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { useEffect, useRef } from 'react';
|
|
3
|
-
import { createPortal } from 'react-dom';
|
|
4
|
-
function createImgBase(options) {
|
|
5
|
-
var canvas = document.createElement('canvas');
|
|
6
|
-
var ratio = window.devicePixelRatio;
|
|
7
|
-
canvas.width = options.width * ratio;
|
|
8
|
-
canvas.height = options.height * ratio;
|
|
9
|
-
var ctx = canvas.getContext('2d');
|
|
10
|
-
if (ctx) {
|
|
11
|
-
ctx.font = "".concat(options.fontSize * ratio, "px ").concat(options.fontFamily);
|
|
12
|
-
ctx.fillStyle = options.color;
|
|
13
|
-
ctx.rotate(options.rotateDegree);
|
|
14
|
-
ctx.textAlign = 'center';
|
|
15
|
-
ctx.fillText(options.content, canvas.width / 2, canvas.height / 2);
|
|
16
|
-
}
|
|
17
|
-
return canvas.toDataURL('image/png');
|
|
18
|
-
}
|
|
19
|
-
function genWaterMark(_ref) {
|
|
20
|
-
var className = _ref.className,
|
|
21
|
-
_ref$width = _ref.width,
|
|
22
|
-
width = _ref$width === void 0 ? 225 : _ref$width,
|
|
23
|
-
_ref$height = _ref.height,
|
|
24
|
-
height = _ref$height === void 0 ? 225 : _ref$height,
|
|
25
|
-
_ref$content = _ref.content,
|
|
26
|
-
content = _ref$content === void 0 ? '水印' : _ref$content,
|
|
27
|
-
_ref$fontFamily = _ref.fontFamily,
|
|
28
|
-
fontFamily = _ref$fontFamily === void 0 ? '"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif' : _ref$fontFamily,
|
|
29
|
-
_ref$fontSize = _ref.fontSize,
|
|
30
|
-
fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize,
|
|
31
|
-
_ref$color = _ref.color,
|
|
32
|
-
color = _ref$color === void 0 ? 'rgba(156, 162, 169, 0.1)' : _ref$color,
|
|
33
|
-
_ref$rotate = _ref.rotate,
|
|
34
|
-
rotate = _ref$rotate === void 0 ? -24 : _ref$rotate;
|
|
35
|
-
var option = {
|
|
36
|
-
width: width,
|
|
37
|
-
height: height,
|
|
38
|
-
content: content,
|
|
39
|
-
fontSize: fontSize,
|
|
40
|
-
fontFamily: fontFamily,
|
|
41
|
-
color: color,
|
|
42
|
-
rotateDegree: rotate * Math.PI / 180
|
|
43
|
-
};
|
|
44
|
-
// 为了实现交错水印的效果,此处生成两张位置不同的水印 固定相对位置
|
|
45
|
-
var dataUri = createImgBase(option);
|
|
46
|
-
return ".".concat(className, " {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 10000;\n background-repeat: repeat;\n background-image: url(").concat(dataUri, "), url(").concat(dataUri, ");\n background-size: ").concat(option.width, "px ").concat(option.height, "px;\n background-position: ").concat(width / 2, "px ").concat(height / 2, "px, 0 0;\n pointer-events: none;\n }");
|
|
47
|
-
}
|
|
48
|
-
export default function WaterMark(props) {
|
|
49
|
-
var waterMark = props.waterMark;
|
|
50
|
-
var ref = useRef(null);
|
|
51
|
-
var name = 'EVudqS';
|
|
52
|
-
useEffect(function () {
|
|
53
|
-
if (waterMark && ref.current !== null) {
|
|
54
|
-
ref.current.innerHTML = genWaterMark({
|
|
55
|
-
className: name,
|
|
56
|
-
content: waterMark
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
}, [waterMark]);
|
|
60
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement("style", {
|
|
61
|
-
ref: ref
|
|
62
|
-
}), document.head), /*#__PURE__*/React.createElement("div", {
|
|
63
|
-
className: name
|
|
64
|
-
}));
|
|
65
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { ReactElement, ReactNode, CSSProperties } from 'react';
|
|
2
|
-
import type { MenuFavorites, MenuItem } from './typings';
|
|
3
|
-
interface Props<T> {
|
|
4
|
-
title: string | ReactNode;
|
|
5
|
-
logo?: string | false | ReactElement;
|
|
6
|
-
active: number;
|
|
7
|
-
tabs: T[];
|
|
8
|
-
onTabClick: (index: number) => void;
|
|
9
|
-
onTabClose: (index: number) => void;
|
|
10
|
-
onRefresh: () => void;
|
|
11
|
-
onCloseOther: () => void;
|
|
12
|
-
onCloseAll: () => void;
|
|
13
|
-
menus?: MenuItem[];
|
|
14
|
-
onMenuClick?: (menu: MenuItem) => void;
|
|
15
|
-
renderMenu?: () => ReactNode;
|
|
16
|
-
favorites?: MenuFavorites;
|
|
17
|
-
onFavoritesChange?: (value: MenuFavorites) => void;
|
|
18
|
-
right?: ReactNode;
|
|
19
|
-
children?: ReactNode;
|
|
20
|
-
className?: string;
|
|
21
|
-
style?: CSSProperties;
|
|
22
|
-
waterMark?: string;
|
|
23
|
-
}
|
|
24
|
-
export default function MainFramework<TabType extends {
|
|
25
|
-
title: string;
|
|
26
|
-
closable?: boolean;
|
|
27
|
-
}>(props: Props<TabType>): JSX.Element;
|
|
28
|
-
export {};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import TabBar from './components/TabBar';
|
|
4
|
-
import Menu from './components/Menu';
|
|
5
|
-
import { PREFIX_CLS as prefixCls } from '../constants';
|
|
6
|
-
import RefreshButton from './components/RefreshButton';
|
|
7
|
-
import WaterMark from './components/WaterMark';
|
|
8
|
-
export default function MainFramework(props) {
|
|
9
|
-
var className = props.className,
|
|
10
|
-
tabs = props.tabs,
|
|
11
|
-
active = props.active,
|
|
12
|
-
children = props.children,
|
|
13
|
-
right = props.right,
|
|
14
|
-
_props$menus = props.menus,
|
|
15
|
-
menus = _props$menus === void 0 ? [] : _props$menus,
|
|
16
|
-
onTabClick = props.onTabClick,
|
|
17
|
-
onMenuClick = props.onMenuClick,
|
|
18
|
-
onTabClose = props.onTabClose,
|
|
19
|
-
onRefresh = props.onRefresh,
|
|
20
|
-
onCloseOther = props.onCloseOther,
|
|
21
|
-
onCloseAll = props.onCloseAll,
|
|
22
|
-
logo = props.logo,
|
|
23
|
-
title = props.title,
|
|
24
|
-
favorites = props.favorites,
|
|
25
|
-
onFavoritesChange = props.onFavoritesChange,
|
|
26
|
-
renderMenu = props.renderMenu,
|
|
27
|
-
style = props.style,
|
|
28
|
-
waterMark = props.waterMark;
|
|
29
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
30
|
-
className: classNames("".concat(prefixCls, "-main"), className),
|
|
31
|
-
style: style
|
|
32
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
33
|
-
className: "".concat(prefixCls, "-nav")
|
|
34
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
35
|
-
className: "".concat(prefixCls, "-nav-left")
|
|
36
|
-
}, logo !== false && /*#__PURE__*/React.createElement("div", {
|
|
37
|
-
className: "".concat(prefixCls, "-nav-logo")
|
|
38
|
-
}, typeof logo === 'string' ? /*#__PURE__*/React.createElement("img", {
|
|
39
|
-
src: logo
|
|
40
|
-
}) : logo || /*#__PURE__*/React.createElement("svg", {
|
|
41
|
-
width: "15",
|
|
42
|
-
height: "22",
|
|
43
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
44
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
45
|
-
fill: "currentColor",
|
|
46
|
-
fillRule: "nonzero"
|
|
47
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
48
|
-
d: "M3.403 10.313c.194-.163.393-.324.6-.481 1.47-1.123 2.592-2.339 3.333-3.622a7.805 7.805 0 0 0 1.101-4.036L8.427.966C8.159.657 7.906.335 7.67 0c-.26.384-.544.752-.849 1.103a15.52 15.52 0 0 1-2.336 2.165C2.853 4.514 1.67 5.858.938 7.28c.563 1.06 1.391 2.073 2.461 3.027M3.602 12.008a17.318 17.318 0 0 1-.835-.711C1.782 10.4.99 9.44.402 8.437a8.004 8.004 0 0 0 .362 5.91c.677 1.448 1.812 2.814 3.375 4.053.502.398.981.828 1.434 1.288v-.264a8.913 8.913 0 0 1 .99-4.146c-.687-1.157-1.683-2.256-2.96-3.276M11.025 12.036c-1.482 1.092-2.611 2.27-3.355 3.51a7.355 7.355 0 0 0-1.107 3.91l.008 1.173c.272.298.528.61.764.933.263-.372.549-.73.856-1.07a15.398 15.398 0 0 1 2.346-2.098c2.984-2.196 4.486-4.693 4.463-7.42a7.134 7.134 0 0 0-.489-2.537c-.802 1.278-1.971 2.484-3.486 3.597M11.353 9.828c.186.156.371.317.553.485.945-.983 1.668-2.02 2.156-3.096-.675-1.429-1.765-2.778-3.239-4.01-.496-.411-.968-.856-1.414-1.332v.268a9.617 9.617 0 0 1-.972 4.298c.68 1.201 1.661 2.34 2.917 3.387"
|
|
49
|
-
})))), /*#__PURE__*/React.createElement("div", {
|
|
50
|
-
className: "".concat(prefixCls, "-nav-title")
|
|
51
|
-
}, title, waterMark && /*#__PURE__*/React.createElement(WaterMark, {
|
|
52
|
-
waterMark: waterMark
|
|
53
|
-
}))), /*#__PURE__*/React.createElement(TabBar, {
|
|
54
|
-
tabs: tabs,
|
|
55
|
-
active: active,
|
|
56
|
-
onClick: onTabClick,
|
|
57
|
-
onClose: onTabClose
|
|
58
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
59
|
-
className: "".concat(prefixCls, "-nav-right")
|
|
60
|
-
}, /*#__PURE__*/React.createElement(RefreshButton, {
|
|
61
|
-
onRefresh: onRefresh,
|
|
62
|
-
onCloseAll: onCloseAll,
|
|
63
|
-
onCloseOther: onCloseOther
|
|
64
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
65
|
-
className: "".concat(prefixCls, "-nav-divider")
|
|
66
|
-
}), right)), /*#__PURE__*/React.createElement("div", {
|
|
67
|
-
className: "".concat(prefixCls, "-body")
|
|
68
|
-
}, renderMenu ? /*#__PURE__*/React.createElement("div", {
|
|
69
|
-
className: "".concat(prefixCls, "-menu")
|
|
70
|
-
}, renderMenu()) : /*#__PURE__*/React.createElement(Menu, {
|
|
71
|
-
data: menus,
|
|
72
|
-
onClick: onMenuClick,
|
|
73
|
-
favorites: favorites,
|
|
74
|
-
onFavoritesChange: onFavoritesChange
|
|
75
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
76
|
-
className: "".concat(prefixCls, "-content")
|
|
77
|
-
}, children)));
|
|
78
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
@import './components/Menu/index.less';
|
|
2
|
-
@import './components/TabBar/index.less';
|
|
3
|
-
@import './components/DropMenu/index.less';
|
|
4
|
-
@import './components/RefreshButton/index.less';
|
|
5
|
-
|
|
6
|
-
.@{prefixCls}-main {
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
width: 100vw;
|
|
10
|
-
min-width: 768px;
|
|
11
|
-
height: 100vh;
|
|
12
|
-
background: #f2f2f2;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.@{prefixCls}-nav {
|
|
16
|
-
position: relative;
|
|
17
|
-
z-index: 4;
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-wrap: nowrap;
|
|
20
|
-
align-items: center;
|
|
21
|
-
box-sizing: border-box;
|
|
22
|
-
width: 100%;
|
|
23
|
-
height: 50px;
|
|
24
|
-
padding: 0 16px;
|
|
25
|
-
background: #ffff;
|
|
26
|
-
|
|
27
|
-
&-logo {
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
height: 24px;
|
|
32
|
-
margin-right: 8px;
|
|
33
|
-
color: .primary(1) [];
|
|
34
|
-
|
|
35
|
-
& > img {
|
|
36
|
-
display: block;
|
|
37
|
-
height: 24px;
|
|
38
|
-
margin: 0 auto;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&-title {
|
|
43
|
-
color: #000;
|
|
44
|
-
font-weight: 500;
|
|
45
|
-
font-size: 16px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&-left,
|
|
49
|
-
&-right {
|
|
50
|
-
display: flex;
|
|
51
|
-
align-items: center;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&-left {
|
|
55
|
-
flex: 0 0 184px;
|
|
56
|
-
box-sizing: border-box;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&-right {
|
|
60
|
-
flex-shrink: 0;
|
|
61
|
-
flex-wrap: nowrap;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&-divider {
|
|
65
|
-
width: 1px;
|
|
66
|
-
height: 14px;
|
|
67
|
-
margin: 0 9px;
|
|
68
|
-
background: #c4c4c4;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.@{prefixCls}-body {
|
|
73
|
-
position: relative;
|
|
74
|
-
display: flex;
|
|
75
|
-
flex: 1;
|
|
76
|
-
min-height: 0;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.@{prefixCls}-content {
|
|
80
|
-
position: relative;
|
|
81
|
-
z-index: 1;
|
|
82
|
-
flex: 1;
|
|
83
|
-
min-width: 0;
|
|
84
|
-
|
|
85
|
-
&-loading {
|
|
86
|
-
position: absolute;
|
|
87
|
-
top: 0;
|
|
88
|
-
left: 0;
|
|
89
|
-
z-index: 1;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
& > div {
|
|
93
|
-
width: 100%;
|
|
94
|
-
height: 100%;
|
|
95
|
-
overflow: auto;
|
|
96
|
-
}
|
|
97
|
-
}
|
package/es/Popup/index.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import type { ModalProps } from 'antd/lib/modal';
|
|
3
|
-
export interface PopupProps<ValueType> extends ModalProps {
|
|
4
|
-
value?: ValueType;
|
|
5
|
-
onChange?: (value?: ValueType) => void;
|
|
6
|
-
/**
|
|
7
|
-
* @description 渲染函数,这个函数不是作为组件渲染的,偷懒可以直接传入组件,如果需要考虑优化参考demo的传入方式
|
|
8
|
-
*/
|
|
9
|
-
component: (params: {
|
|
10
|
-
value?: ValueType;
|
|
11
|
-
onChange: (value: ValueType) => void;
|
|
12
|
-
}) => ReactElement | null;
|
|
13
|
-
formatLabel?: (value: ValueType) => string;
|
|
14
|
-
beforeOk?: (value: ValueType) => ValueType | PromiseLike<ValueType>;
|
|
15
|
-
/** 确认事件之前校验 */
|
|
16
|
-
beforeOkCheck?: (value?: ValueType) => boolean | PromiseLike<boolean>;
|
|
17
|
-
children?: JSX.Element | ((props: {
|
|
18
|
-
value?: ValueType;
|
|
19
|
-
}) => JSX.Element);
|
|
20
|
-
allowClear?: boolean;
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
autoFocus?: boolean;
|
|
23
|
-
showLabel?: boolean;
|
|
24
|
-
placeholder?: string;
|
|
25
|
-
disabledTip?: string;
|
|
26
|
-
bordered?: boolean;
|
|
27
|
-
onClick?: () => void;
|
|
28
|
-
/**
|
|
29
|
-
* @description 清空后的值
|
|
30
|
-
*/
|
|
31
|
-
emptyValue?: ValueType;
|
|
32
|
-
}
|
|
33
|
-
interface ValuedPopupProps<ValueType> extends Omit<PopupProps<ValueType>, 'onChange' | 'emptyValue'> {
|
|
34
|
-
onChange?: (value: ValueType) => void;
|
|
35
|
-
emptyValue: ValueType;
|
|
36
|
-
}
|
|
37
|
-
declare function Popup<ValueType>(props: ValuedPopupProps<ValueType>): JSX.Element;
|
|
38
|
-
declare function Popup<ValueType>(props: PopupProps<ValueType>): JSX.Element;
|
|
39
|
-
export default Popup;
|