@lemon-fe/components 0.1.154 → 1.1.0-alpha.1
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 +43 -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
package/es/SiderTree/index.less
DELETED
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
@indentWidth: 18px;
|
|
2
|
-
@treeNodeHeight: 36px;
|
|
3
|
-
|
|
4
|
-
.@{prefixCls}-tree {
|
|
5
|
-
&-wrapper {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
height: 100%;
|
|
10
|
-
padding: @space-v 0;
|
|
11
|
-
|
|
12
|
-
.@{prefixCls}-tree-list-scrollbar{
|
|
13
|
-
display: block !important;
|
|
14
|
-
right: -16px !important;
|
|
15
|
-
}
|
|
16
|
-
.@{prefixCls}-tree-list-scrollbar-thumb{
|
|
17
|
-
background: #DDD !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&-menu-popover {
|
|
23
|
-
.@{ant-prefix}-popover-arrow {
|
|
24
|
-
display: none;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.@{ant-prefix}-popover-inner {
|
|
28
|
-
border-radius: 10px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.@{ant-prefix}-popover-inner-content {
|
|
32
|
-
min-width: 140px;
|
|
33
|
-
padding: 8px 0;
|
|
34
|
-
|
|
35
|
-
& > div > ul {
|
|
36
|
-
margin: 0;
|
|
37
|
-
padding: 0;
|
|
38
|
-
|
|
39
|
-
& > li {
|
|
40
|
-
padding: 0 16px;
|
|
41
|
-
color: #333;
|
|
42
|
-
line-height: 36px;
|
|
43
|
-
list-style: none;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
transition: background-color 0.2s;
|
|
46
|
-
|
|
47
|
-
&:hover {
|
|
48
|
-
background-color: #eee;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&-tabs {
|
|
56
|
-
.fullTabs();
|
|
57
|
-
|
|
58
|
-
& > .@{ant-prefix}-tabs-nav {
|
|
59
|
-
margin: 0 @space-h;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&-header {
|
|
64
|
-
padding: 0 @space-h;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&-body {
|
|
68
|
-
min-height: 0;
|
|
69
|
-
padding: 0 @space-h;
|
|
70
|
-
overflow: auto;
|
|
71
|
-
|
|
72
|
-
.scrollBar(8px);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&-header + &-body {
|
|
76
|
-
margin-top: 12px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&-header + .@{ant-prefix}-tabs {
|
|
80
|
-
margin-top: 8px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&-footer {
|
|
84
|
-
margin-top: 12px;
|
|
85
|
-
padding: 0 12px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&-treenode {
|
|
89
|
-
display: flex;
|
|
90
|
-
align-items: center;
|
|
91
|
-
height: @treeNodeHeight;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&-indent {
|
|
95
|
-
align-self: stretch;
|
|
96
|
-
white-space: nowrap;
|
|
97
|
-
user-select: none;
|
|
98
|
-
|
|
99
|
-
&-unit {
|
|
100
|
-
display: inline-block;
|
|
101
|
-
width: @indentWidth;
|
|
102
|
-
vertical-align: top;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&-show-line &-indent-unit {
|
|
107
|
-
position: relative;
|
|
108
|
-
height: 100%;
|
|
109
|
-
|
|
110
|
-
&::before {
|
|
111
|
-
position: absolute;
|
|
112
|
-
top: 0;
|
|
113
|
-
right: @indentWidth / 2;
|
|
114
|
-
bottom: 0;
|
|
115
|
-
border-right: 1px solid #c4c4c4;
|
|
116
|
-
content: '';
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&-switcher {
|
|
121
|
-
position: relative;
|
|
122
|
-
display: block;
|
|
123
|
-
flex: none;
|
|
124
|
-
align-self: stretch;
|
|
125
|
-
width: @indentWidth;
|
|
126
|
-
margin: 0;
|
|
127
|
-
line-height: @treeNodeHeight;
|
|
128
|
-
text-align: center;
|
|
129
|
-
cursor: pointer;
|
|
130
|
-
user-select: none;
|
|
131
|
-
|
|
132
|
-
& svg {
|
|
133
|
-
width: 13px;
|
|
134
|
-
height: 13px;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
&-noop {
|
|
138
|
-
display: none;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&-node-content-wrapper {
|
|
143
|
-
display: flex;
|
|
144
|
-
flex: 1;
|
|
145
|
-
align-items: center;
|
|
146
|
-
min-width: 0;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
&-node-selected &-title {
|
|
150
|
-
color: @primary-color;
|
|
151
|
-
background: .primary(0.1) [] !important;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
&-title {
|
|
155
|
-
display: flex;
|
|
156
|
-
flex: 1;
|
|
157
|
-
align-items: center;
|
|
158
|
-
justify-content: space-between;
|
|
159
|
-
min-width: 56px;
|
|
160
|
-
padding: 0 8px;
|
|
161
|
-
border-radius: 4px;
|
|
162
|
-
cursor: pointer;
|
|
163
|
-
transition: background-color 0.2s;
|
|
164
|
-
|
|
165
|
-
&:hover {
|
|
166
|
-
background-color: #ededed;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
&-content {
|
|
170
|
-
display: block;
|
|
171
|
-
height: @treeNodeHeight;
|
|
172
|
-
overflow: hidden;
|
|
173
|
-
line-height: @treeNodeHeight;
|
|
174
|
-
white-space: nowrap;
|
|
175
|
-
text-overflow: ellipsis;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
&-operators {
|
|
179
|
-
&-item {
|
|
180
|
-
width: 20px;
|
|
181
|
-
height: 20px;
|
|
182
|
-
margin-left: 4px;
|
|
183
|
-
line-height: 1;
|
|
184
|
-
text-align: center;
|
|
185
|
-
border-radius: 4px;
|
|
186
|
-
|
|
187
|
-
& svg {
|
|
188
|
-
vertical-align: middle;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
&-active,
|
|
192
|
-
&:hover {
|
|
193
|
-
background: #d7d7d7;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
&-empty {
|
|
200
|
-
width: 72px;
|
|
201
|
-
margin: 0 auto;
|
|
202
|
-
padding-top: 75px;
|
|
203
|
-
text-align: center;
|
|
204
|
-
|
|
205
|
-
img {
|
|
206
|
-
display: block;
|
|
207
|
-
width: 72px;
|
|
208
|
-
height: 72px;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
div {
|
|
212
|
-
margin-top: 8px;
|
|
213
|
-
color: rgba(51, 51, 51, 0.5);
|
|
214
|
-
font-size: 14px;
|
|
215
|
-
line-height: 22px;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.@{prefixCls}-layout-left .@{prefixCls}-tree-wrapper:first-child .@{prefixCls}-tree-header {
|
|
221
|
-
padding-right: 12px + @space-h;
|
|
222
|
-
}
|
package/es/SymbolIcon/index.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
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 React from 'react';
|
|
5
|
-
import classNames from 'classnames';
|
|
6
|
-
import { PREFIX_CLS } from '../constants';
|
|
7
|
-
export default function Icon(props) {
|
|
8
|
-
var name = props.name,
|
|
9
|
-
size = props.size,
|
|
10
|
-
color = props.color,
|
|
11
|
-
styleProp = props.style,
|
|
12
|
-
className = props.className;
|
|
13
|
-
var style = styleProp;
|
|
14
|
-
if (size || color) {
|
|
15
|
-
style = _objectSpread(_objectSpread({}, style), {}, {
|
|
16
|
-
fontSize: size,
|
|
17
|
-
color: color
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
21
|
-
className: classNames("".concat(PREFIX_CLS, "-symbol-icon"), className),
|
|
22
|
-
"aria-hidden": "true",
|
|
23
|
-
style: style
|
|
24
|
-
}, /*#__PURE__*/React.createElement("use", {
|
|
25
|
-
xlinkHref: "#".concat(name)
|
|
26
|
-
}));
|
|
27
|
-
}
|
package/es/TabBar/index.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
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
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
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); }
|
|
5
|
-
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; }
|
|
6
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
7
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
-
import React, { useEffect, useState } from 'react';
|
|
9
|
-
import classNames from 'classnames';
|
|
10
|
-
import { PREFIX_CLS } from '../constants';
|
|
11
|
-
export default function TabBar(props) {
|
|
12
|
-
var tabs = props.tabs,
|
|
13
|
-
onTabClick = props.onTabClick,
|
|
14
|
-
activeKey = props.activeKey,
|
|
15
|
-
style = props.style,
|
|
16
|
-
className = props.className;
|
|
17
|
-
var prefixCls = "".concat(PREFIX_CLS, "-tab-bar");
|
|
18
|
-
var getKey = function getKey() {
|
|
19
|
-
return activeKey || (tabs.length > 0 ? tabs[0].key || tabs[0].title : undefined);
|
|
20
|
-
};
|
|
21
|
-
var _useState = useState(getKey()),
|
|
22
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
23
|
-
key = _useState2[0],
|
|
24
|
-
setKey = _useState2[1];
|
|
25
|
-
useEffect(function () {
|
|
26
|
-
setKey(getKey());
|
|
27
|
-
}, [activeKey]);
|
|
28
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
29
|
-
className: classNames(prefixCls, className),
|
|
30
|
-
style: style
|
|
31
|
-
}, tabs.map(function (tab, index) {
|
|
32
|
-
var tabKey = tab.key || tab.title;
|
|
33
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
34
|
-
key: tabKey,
|
|
35
|
-
className: classNames("".concat(prefixCls, "-item"), _defineProperty({}, "".concat(prefixCls, "-item-active"), key === tabKey)),
|
|
36
|
-
onClick: function onClick(e) {
|
|
37
|
-
setKey(tabKey);
|
|
38
|
-
onTabClick(tabKey, index, e);
|
|
39
|
-
}
|
|
40
|
-
}, tab.title);
|
|
41
|
-
}));
|
|
42
|
-
}
|
package/es/TabBar/index.less
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
.@{prefixCls}-tab-bar {
|
|
2
|
-
display: flex;
|
|
3
|
-
border-bottom: 1px solid #e5e5e5;
|
|
4
|
-
|
|
5
|
-
&-item {
|
|
6
|
-
position: relative;
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
min-width: 52px;
|
|
9
|
-
padding: 12px 12px 14px;
|
|
10
|
-
color: #61657f;
|
|
11
|
-
font-size: 14px;
|
|
12
|
-
line-height: 22px;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
|
|
15
|
-
&-active {
|
|
16
|
-
color: @primary-color;
|
|
17
|
-
font-weight: 500;
|
|
18
|
-
|
|
19
|
-
&::after {
|
|
20
|
-
position: absolute;
|
|
21
|
-
bottom: -1px;
|
|
22
|
-
left: 0;
|
|
23
|
-
display: block;
|
|
24
|
-
width: 100%;
|
|
25
|
-
height: 2px;
|
|
26
|
-
background-color: @primary-color;
|
|
27
|
-
content: '';
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
package/es/Table/index.js
DELETED
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
var _excluded = ["dataSource", "fetch", "actionRef", "onLoading", "columns", "pagination", "autoLoad"];
|
|
3
|
-
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; }
|
|
4
|
-
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; }
|
|
5
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
7
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
8
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
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(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
14
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
|
-
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; }
|
|
16
|
-
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; }
|
|
17
|
-
import React, { useMemo, useState, useImperativeHandle, useEffect } from 'react';
|
|
18
|
-
import { useRequest } from '@lemon-fe/hooks';
|
|
19
|
-
import BaseTable from '../BaseTable';
|
|
20
|
-
import { isSortValue } from './utils';
|
|
21
|
-
import empty from '../BaseTable/empty.png';
|
|
22
|
-
import { PREFIX_CLS } from '../constants';
|
|
23
|
-
export default function Table(props) {
|
|
24
|
-
var _props$dataSource = props.dataSource,
|
|
25
|
-
dataSource = _props$dataSource === void 0 ? [] : _props$dataSource,
|
|
26
|
-
fetch = props.fetch,
|
|
27
|
-
actionRef = props.actionRef,
|
|
28
|
-
onLoading = props.onLoading,
|
|
29
|
-
columns = props.columns,
|
|
30
|
-
pagination = props.pagination,
|
|
31
|
-
autoLoad = props.autoLoad,
|
|
32
|
-
restProps = _objectWithoutProperties(props, _excluded);
|
|
33
|
-
var defaultPageSize = useMemo(function () {
|
|
34
|
-
var data = pagination || {};
|
|
35
|
-
return data.pageSize || data.defaultPageSize || 50;
|
|
36
|
-
}, []);
|
|
37
|
-
var _useState = useState(1),
|
|
38
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
39
|
-
current = _useState2[0],
|
|
40
|
-
setCurrent = _useState2[1];
|
|
41
|
-
var _useState3 = useState(defaultPageSize),
|
|
42
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
43
|
-
pageSize = _useState4[0],
|
|
44
|
-
setPageSize = _useState4[1];
|
|
45
|
-
var _useState5 = useState([]),
|
|
46
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
47
|
-
sort = _useState6[0],
|
|
48
|
-
setSort = _useState6[1];
|
|
49
|
-
var _useState7 = useState({}),
|
|
50
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
51
|
-
remote = _useState8[0],
|
|
52
|
-
setRemote = _useState8[1];
|
|
53
|
-
var _useRequest = useRequest( /*#__PURE__*/function () {
|
|
54
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
55
|
-
var result;
|
|
56
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
57
|
-
while (1) {
|
|
58
|
-
switch (_context.prev = _context.next) {
|
|
59
|
-
case 0:
|
|
60
|
-
if (onLoading) {
|
|
61
|
-
onLoading(true);
|
|
62
|
-
}
|
|
63
|
-
result = {
|
|
64
|
-
data: [],
|
|
65
|
-
total: 0
|
|
66
|
-
};
|
|
67
|
-
if (!fetch) {
|
|
68
|
-
_context.next = 6;
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
_context.next = 5;
|
|
72
|
-
return fetch(params);
|
|
73
|
-
case 5:
|
|
74
|
-
result = _context.sent;
|
|
75
|
-
case 6:
|
|
76
|
-
return _context.abrupt("return", {
|
|
77
|
-
result: result,
|
|
78
|
-
pageSize: pageSize,
|
|
79
|
-
current: current
|
|
80
|
-
});
|
|
81
|
-
case 7:
|
|
82
|
-
case "end":
|
|
83
|
-
return _context.stop();
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}, _callee);
|
|
87
|
-
}));
|
|
88
|
-
return function (_x) {
|
|
89
|
-
return _ref.apply(this, arguments);
|
|
90
|
-
};
|
|
91
|
-
}(), {
|
|
92
|
-
loadingState: onLoading === undefined,
|
|
93
|
-
onSuccess: function onSuccess(res) {
|
|
94
|
-
if (onLoading) {
|
|
95
|
-
onLoading(false);
|
|
96
|
-
}
|
|
97
|
-
setRemote(_objectSpread(_objectSpread({}, res.result), {}, {
|
|
98
|
-
error: undefined
|
|
99
|
-
}));
|
|
100
|
-
},
|
|
101
|
-
onError: function onError(error) {
|
|
102
|
-
if (onLoading) {
|
|
103
|
-
onLoading(false);
|
|
104
|
-
}
|
|
105
|
-
setRemote({
|
|
106
|
-
data: [],
|
|
107
|
-
total: 0,
|
|
108
|
-
error: error
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
}),
|
|
112
|
-
postData = _useRequest.run,
|
|
113
|
-
loading = _useRequest.loading;
|
|
114
|
-
useImperativeHandle(actionRef, function () {
|
|
115
|
-
return {
|
|
116
|
-
fetch: function fetch(page) {
|
|
117
|
-
var curr = page || 1;
|
|
118
|
-
setCurrent(curr);
|
|
119
|
-
postData({
|
|
120
|
-
current: curr,
|
|
121
|
-
pageSize: pageSize,
|
|
122
|
-
sort: sort
|
|
123
|
-
});
|
|
124
|
-
},
|
|
125
|
-
refresh: function refresh() {
|
|
126
|
-
postData({
|
|
127
|
-
current: current,
|
|
128
|
-
pageSize: pageSize,
|
|
129
|
-
sort: sort
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
}, [pageSize, postData, current, sort]);
|
|
134
|
-
useEffect(function () {
|
|
135
|
-
if (autoLoad) {
|
|
136
|
-
postData({
|
|
137
|
-
current: current,
|
|
138
|
-
pageSize: pageSize,
|
|
139
|
-
sort: sort
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
}, []);
|
|
143
|
-
var _useMemo = useMemo(function () {
|
|
144
|
-
if (fetch) {
|
|
145
|
-
return [remote.total, remote.data];
|
|
146
|
-
}
|
|
147
|
-
return [dataSource.length, dataSource];
|
|
148
|
-
}, [dataSource, fetch, remote]),
|
|
149
|
-
_useMemo2 = _slicedToArray(_useMemo, 2),
|
|
150
|
-
total = _useMemo2[0],
|
|
151
|
-
data = _useMemo2[1];
|
|
152
|
-
return /*#__PURE__*/React.createElement(BaseTable, _objectSpread({
|
|
153
|
-
columns: columns,
|
|
154
|
-
dataSource: data,
|
|
155
|
-
summaryRecord: remote.summary,
|
|
156
|
-
loading: loading,
|
|
157
|
-
scroll: {
|
|
158
|
-
y: true
|
|
159
|
-
},
|
|
160
|
-
onChange: function onChange(mPage, _, mSort) {
|
|
161
|
-
var _mPage$current = mPage.current,
|
|
162
|
-
page = _mPage$current === void 0 ? 1 : _mPage$current,
|
|
163
|
-
_mPage$pageSize = mPage.pageSize,
|
|
164
|
-
size = _mPage$pageSize === void 0 ? defaultPageSize : _mPage$pageSize;
|
|
165
|
-
setPageSize(size);
|
|
166
|
-
setCurrent(page);
|
|
167
|
-
var result = [];
|
|
168
|
-
if (Array.isArray(mSort)) {
|
|
169
|
-
mSort.forEach(function (item) {
|
|
170
|
-
if (isSortValue(item)) {
|
|
171
|
-
result.push({
|
|
172
|
-
field: item.field,
|
|
173
|
-
order: item.order
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
} else if (isSortValue(mSort)) {
|
|
178
|
-
result.push({
|
|
179
|
-
field: mSort.field,
|
|
180
|
-
order: mSort.order
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
setSort(result);
|
|
184
|
-
if (fetch !== undefined) {
|
|
185
|
-
postData({
|
|
186
|
-
current: page,
|
|
187
|
-
pageSize: size,
|
|
188
|
-
sort: result
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
locale: remote.error ? {
|
|
193
|
-
emptyText: /*#__PURE__*/React.createElement("div", {
|
|
194
|
-
className: "".concat(PREFIX_CLS, "-table-empty")
|
|
195
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
196
|
-
src: empty
|
|
197
|
-
}), /*#__PURE__*/React.createElement("div", null, remote.error.message))
|
|
198
|
-
} : undefined,
|
|
199
|
-
pagination: pagination !== false ? _objectSpread({
|
|
200
|
-
current: current,
|
|
201
|
-
pageSize: pageSize,
|
|
202
|
-
total: total
|
|
203
|
-
}, pagination) : false
|
|
204
|
-
}, restProps));
|
|
205
|
-
}
|
package/es/TipMark/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import { TooltipProps, TooltipPlacement } from 'antd/lib/tooltip';
|
|
3
|
-
interface TipMarkProps extends Omit<TooltipProps, 'placement'> {
|
|
4
|
-
infoContent: string | ReactNode;
|
|
5
|
-
prefixCls?: string;
|
|
6
|
-
mode?: string;
|
|
7
|
-
placement?: TooltipPlacement;
|
|
8
|
-
}
|
|
9
|
-
declare const TipMark: ({ prefixCls, infoContent, mode, placement, ...props }: TipMarkProps) => JSX.Element;
|
|
10
|
-
export default TipMark;
|
package/es/TipMark/index.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var _excluded = ["prefixCls", "infoContent", "mode", "placement"];
|
|
2
|
-
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; }
|
|
3
|
-
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; }
|
|
4
|
-
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; }
|
|
5
|
-
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; }
|
|
6
|
-
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; }
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import { QuestionCircleFilled } from '@ant-design/icons';
|
|
9
|
-
import { Tooltip, Popover } from 'antd';
|
|
10
|
-
import { PREFIX_CLS } from '../constants';
|
|
11
|
-
var TipMark = function TipMark(_ref) {
|
|
12
|
-
var _ref$prefixCls = _ref.prefixCls,
|
|
13
|
-
prefixCls = _ref$prefixCls === void 0 ? PREFIX_CLS : _ref$prefixCls,
|
|
14
|
-
infoContent = _ref.infoContent,
|
|
15
|
-
_ref$mode = _ref.mode,
|
|
16
|
-
mode = _ref$mode === void 0 ? 'toolTip' : _ref$mode,
|
|
17
|
-
_ref$placement = _ref.placement,
|
|
18
|
-
placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
|
|
19
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
-
if (mode === 'toolTip') {
|
|
21
|
-
return /*#__PURE__*/React.createElement(Tooltip, _objectSpread({
|
|
22
|
-
title: infoContent,
|
|
23
|
-
placement: placement
|
|
24
|
-
}, props), /*#__PURE__*/React.createElement(QuestionCircleFilled, {
|
|
25
|
-
className: "".concat(prefixCls, "-tip-mark-questionIcon")
|
|
26
|
-
}));
|
|
27
|
-
}
|
|
28
|
-
return /*#__PURE__*/React.createElement(Popover, _objectSpread({
|
|
29
|
-
content: infoContent,
|
|
30
|
-
placement: placement
|
|
31
|
-
}, props), /*#__PURE__*/React.createElement(QuestionCircleFilled, {
|
|
32
|
-
className: "".concat(prefixCls, "-tip-mark-questionIcon")
|
|
33
|
-
}));
|
|
34
|
-
};
|
|
35
|
-
export default TipMark;
|
package/es/TipMark/index.less
DELETED
package/es/index.less
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
@import '~antd/dist/antd.variable.less';
|
|
2
|
-
@import './utils.less';
|
|
3
|
-
@import './overrides.less';
|
|
4
|
-
@import './theme.less';
|
|
5
|
-
@import './Actions/index.less';
|
|
6
|
-
@import './Layout/index.less';
|
|
7
|
-
@import './Section/index.less';
|
|
8
|
-
@import './BaseTable/index.less';
|
|
9
|
-
@import './Filter/index.less';
|
|
10
|
-
@import './DurationPicker/index.less';
|
|
11
|
-
@import './InputMaxLength/index.less';
|
|
12
|
-
@import './TipMark/index.less';
|
|
13
|
-
@import './ColorPicker/index.less';
|
|
14
|
-
@import './Popup/index.less';
|
|
15
|
-
@import './SiderTree/index.less';
|
|
16
|
-
@import './FormLayout/index.less';
|
|
17
|
-
@import './EditableTable/index.less';
|
|
18
|
-
@import './PageLoading/index.less';
|
|
19
|
-
@import './MainFramework/index.less';
|
|
20
|
-
@import './FormHorizontal/index.less';
|
|
21
|
-
@import './FormInline//index.less';
|
|
22
|
-
@import './FormTable/index.less';
|
|
23
|
-
@import './TabBar/index.less';
|
|
24
|
-
@import './SymbolIcon/index.less';
|
|
25
|
-
@import './Dropdown/index.less';
|
|
26
|
-
@import './SelectView/index.less';
|
package/es/init.d.ts
DELETED