@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
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
a[title='站长统计'] {
|
|
2
|
+
display: none;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@blue-base: #2357df;
|
|
6
|
+
|
|
7
|
+
::selection {
|
|
8
|
+
color: inherit;
|
|
9
|
+
background: #d3ddf9;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** basic */
|
|
13
|
+
|
|
14
|
+
@height-base: 32px;
|
|
15
|
+
@border-color-base: #d9d9d9;
|
|
16
|
+
@border-color-split: #dcdcdc;
|
|
17
|
+
@border-radius-base: 4px;
|
|
18
|
+
@label-color: #666666;
|
|
19
|
+
|
|
20
|
+
@padding-lg: 16px;
|
|
21
|
+
@padding-md: 12px;
|
|
22
|
+
@padding-sm: 8px;
|
|
23
|
+
@padding-xs: 6px;
|
|
24
|
+
|
|
25
|
+
/** table */
|
|
26
|
+
|
|
27
|
+
@table-header-bg: #f0f0f0;
|
|
28
|
+
@table-header-color: rgba(51, 51, 51, 0.65);
|
|
29
|
+
@table-padding-vertical: 14px;
|
|
30
|
+
@table-border-color: #e1e1e1;
|
|
31
|
+
@table-border-radius-base: 4px;
|
|
32
|
+
@table-row-hover-bg: #eee;
|
|
33
|
+
|
|
34
|
+
.@{ant-prefix}-table-thead > tr > th {
|
|
35
|
+
border-bottom: none;
|
|
36
|
+
|
|
37
|
+
&::before {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.@{ant-prefix}-table-body {
|
|
43
|
+
.scrollBar();
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.@{ant-prefix}-table-tbody > tr.@{ant-prefix}-table-row-selected > td {
|
|
47
|
+
border-color: @table-border-color;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.@{ant-prefix}-table-cell {
|
|
51
|
+
.@{ant-prefix}-checkbox-checked .@{ant-prefix}-checkbox-inner::after {
|
|
52
|
+
transition: none !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.@{ant-prefix}-checkbox-inner {
|
|
56
|
+
transition: none !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.@{ant-prefix}-checkbox-checked::after {
|
|
60
|
+
animation: none !important;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.@{ant-prefix}-table-pagination.@{ant-prefix}-pagination {
|
|
65
|
+
margin-bottom: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** modal */
|
|
69
|
+
@modal-header-padding-horizontal: 0;
|
|
70
|
+
@modal-header-padding-vertical: 0;
|
|
71
|
+
@modal-header-border-width: 0;
|
|
72
|
+
@modal-header-title-line-height: 24px;
|
|
73
|
+
@modal-body-padding: 0;
|
|
74
|
+
@modal-footer-padding-horizontal: 0;
|
|
75
|
+
@modal-footer-padding-vertical: 0;
|
|
76
|
+
@modal-border-radius: 8px;
|
|
77
|
+
@modal-footer-border-width: 0;
|
|
78
|
+
@modal-confirm-body-padding: 0;
|
|
79
|
+
|
|
80
|
+
.@{ant-prefix}-modal-content {
|
|
81
|
+
padding: @padding-md;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.@{ant-prefix}-modal-confirm .@{ant-prefix}-modal-content {
|
|
85
|
+
padding: 20px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.@{ant-prefix}-modal-header {
|
|
89
|
+
padding-bottom: @padding-md;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.@{ant-prefix}-modal-footer {
|
|
93
|
+
padding-top: @padding-md;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.@{ant-prefix}-modal-confirm-body > .anticon {
|
|
97
|
+
margin-right: 8px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.@{ant-prefix}-modal-confirm-body
|
|
101
|
+
> .anticon
|
|
102
|
+
+ .@{ant-prefix}-modal-confirm-title
|
|
103
|
+
+ .@{ant-prefix}-modal-confirm-content {
|
|
104
|
+
margin-left: 30px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.@{ant-prefix}-modal-confirm-body .@{ant-prefix}-modal-confirm-content {
|
|
108
|
+
color: fade(#333, 70);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.@{ant-prefix}-modal-close {
|
|
112
|
+
top: @padding-md;
|
|
113
|
+
right: @padding-md - 5px;
|
|
114
|
+
border-radius: 4px;
|
|
115
|
+
transition: background-color 0.3s;
|
|
116
|
+
|
|
117
|
+
&:hover {
|
|
118
|
+
background-color: #f2f3f5;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&-x {
|
|
122
|
+
width: 24px;
|
|
123
|
+
height: 24px;
|
|
124
|
+
color: rgba(51, 51, 51, 0.5);
|
|
125
|
+
font-size: 14px;
|
|
126
|
+
line-height: 24px;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/** pagination */
|
|
131
|
+
|
|
132
|
+
.@{ant-prefix}-pagination {
|
|
133
|
+
color: #666;
|
|
134
|
+
|
|
135
|
+
.@{ant-prefix}-select {
|
|
136
|
+
color: #666;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.@{ant-prefix}-pagination-item {
|
|
141
|
+
font-size: 12px;
|
|
142
|
+
|
|
143
|
+
a {
|
|
144
|
+
color: #666;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.@{ant-prefix}-pagination-item-active {
|
|
149
|
+
background: @primary-color;
|
|
150
|
+
|
|
151
|
+
a {
|
|
152
|
+
color: #fff;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&:hover a {
|
|
156
|
+
color: #fff;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.@{ant-prefix}-pagination-options .@{ant-prefix}-select.@{ant-prefix}-select-in-form-item {
|
|
161
|
+
width: auto;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/** input */
|
|
165
|
+
@input-height-base: 28px;
|
|
166
|
+
@input-padding-horizontal-base: 8px;
|
|
167
|
+
@input-icon-color: rgba(51, 51, 51, 0.7);
|
|
168
|
+
@input-padding-vertical-base: (
|
|
169
|
+
round(((@input-height-base - @font-size-base * @line-height-base) / 2) * 10) / 10
|
|
170
|
+
) - @border-width-base;
|
|
171
|
+
@input-disabled-color: fade(#333, 50);
|
|
172
|
+
@input-disabled-bg: #fff;
|
|
173
|
+
|
|
174
|
+
.@{ant-prefix}-input-prefix,
|
|
175
|
+
.@{ant-prefix}-input-suffix {
|
|
176
|
+
color: rgba(51, 51, 51, 0.7);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/** picker */
|
|
180
|
+
.@{ant-prefix}-picker {
|
|
181
|
+
.@{ant-prefix}-picker-clear {
|
|
182
|
+
padding: 1px;
|
|
183
|
+
font-size: 14px;
|
|
184
|
+
background-color: #fff;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&-suffix {
|
|
188
|
+
color: fade(#333, 70);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&&-disabled &-suffix {
|
|
192
|
+
color: fade(#333, 40);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/** select */
|
|
197
|
+
@select-multiple-item-disabled-color: @input-disabled-color;
|
|
198
|
+
.@{ant-prefix}-select {
|
|
199
|
+
&-arrow {
|
|
200
|
+
color: fade(#333, 70);
|
|
201
|
+
font-size: 14px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&-disabled&:not(&-customize-input) &-selector {
|
|
205
|
+
color: @input-disabled-color;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&-disabled &-arrow {
|
|
209
|
+
color: fade(#333, 49);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/** tree */
|
|
214
|
+
@tree-title-height: 28px;
|
|
215
|
+
@tree-node-hover-bg: #f2f3f5;
|
|
216
|
+
@tree-node-selected-bg: (.primary(0.1) []);
|
|
217
|
+
@tree-node-padding: 0;
|
|
218
|
+
@tree-node-indent-width: 16px;
|
|
219
|
+
|
|
220
|
+
.@{ant-prefix}-tree {
|
|
221
|
+
&-switcher {
|
|
222
|
+
width: @tree-node-indent-width;
|
|
223
|
+
|
|
224
|
+
&-leaf-line {
|
|
225
|
+
vertical-align: top;
|
|
226
|
+
|
|
227
|
+
&::before {
|
|
228
|
+
right: (@tree-node-indent-width / 2);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
&::after {
|
|
232
|
+
width: (@tree-node-indent-width / 2);
|
|
233
|
+
height: (@tree-title-height / 2);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&-indent {
|
|
239
|
+
&-unit {
|
|
240
|
+
width: @tree-node-indent-width;
|
|
241
|
+
vertical-align: top;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&-show-line &-indent {
|
|
246
|
+
&-unit {
|
|
247
|
+
&::before {
|
|
248
|
+
right: (@tree-node-indent-width / 2);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
& &-treenode-leaf-last &-switcher-leaf-line::before {
|
|
254
|
+
height: (@tree-title-height / 2) !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
& &-treenode-draggable &-draggable-icon {
|
|
258
|
+
width: @tree-node-indent-width;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/** button **/
|
|
263
|
+
@btn-height-base: 28px;
|
|
264
|
+
@btn-height-sm: 24px;
|
|
265
|
+
@btn-default-border: #c4c4c4;
|
|
266
|
+
@btn-padding-horizontal-base: 11px;
|
|
267
|
+
|
|
268
|
+
/** empty */
|
|
269
|
+
.@{ant-prefix}-empty {
|
|
270
|
+
color: #00000040;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/** tabs **/
|
|
274
|
+
@tabs-horizontal-padding: 5px 0;
|
|
275
|
+
@tabs-horizontal-gutter: 40px;
|
|
276
|
+
@tabs-card-horizontal-padding: 5px;
|
|
277
|
+
|
|
278
|
+
/** checkbox **/
|
|
279
|
+
@checkbox-group-item-margin-right: 12px;
|
|
280
|
+
|
|
281
|
+
.@{ant-prefix}-checkbox + span {
|
|
282
|
+
padding-right: 0;
|
|
283
|
+
padding-left: 4px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.@{ant-prefix}-checkbox-wrapper {
|
|
287
|
+
& + & {
|
|
288
|
+
margin-left: 12px;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.@{ant-prefix}-checkbox-group {
|
|
293
|
+
&-item + &-item {
|
|
294
|
+
margin-left: 0px;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/** radio **/
|
|
299
|
+
@radio-wrapper-margin-right: 12px;
|
|
300
|
+
span.@{ant-prefix}-radio + * {
|
|
301
|
+
padding-right: 0;
|
|
302
|
+
padding-left: 4px;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.@{ant-prefix}-radio-wrapper:last-child {
|
|
306
|
+
margin-right: 0;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/** message **/
|
|
310
|
+
@message-notice-content-padding: 4px 12px;
|
|
311
|
+
|
|
312
|
+
.@{ant-prefix}-message {
|
|
313
|
+
&-notice-content {
|
|
314
|
+
color: fade(#333, 80);
|
|
315
|
+
border-radius: 15px;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.anticon {
|
|
319
|
+
margin-right: 4px;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/** tooltip **/
|
|
324
|
+
@tooltip-arrow-width: 5px * sqrt(2);
|
|
325
|
+
|
|
326
|
+
/** form **/
|
|
327
|
+
.@{ant-prefix}-form-item {
|
|
328
|
+
&-explain-error {
|
|
329
|
+
margin-top: 4px;
|
|
330
|
+
color: #ff4128;
|
|
331
|
+
font-weight: 400;
|
|
332
|
+
font-size: 12px;
|
|
333
|
+
line-height: 20px;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/** alert **/
|
|
338
|
+
@alert-padding-vertical: @padding-xs - 2;
|
|
339
|
+
|
|
340
|
+
.@{ant-prefix}-alert {
|
|
341
|
+
align-items: flex-start;
|
|
342
|
+
|
|
343
|
+
&-icon {
|
|
344
|
+
padding: 2px 0;
|
|
345
|
+
font-size: 18px;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@prefixCls: lemon;
|
|
2
|
+
@space: 16px;
|
|
3
|
+
|
|
4
|
+
@space-h: 12px;
|
|
5
|
+
@space-v: 12px;
|
|
6
|
+
|
|
7
|
+
html {
|
|
8
|
+
--lemon-primary-color: 35, 87, 223;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.@{prefixCls}-thin-scroll-bar {
|
|
12
|
+
::-webkit-scrollbar {
|
|
13
|
+
width: 8px;
|
|
14
|
+
height: 8px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
::-webkit-scrollbar-track {
|
|
18
|
+
background-color: transparent;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
::-webkit-scrollbar-thumb {
|
|
22
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
23
|
+
border-radius: 4px;
|
|
24
|
+
|
|
25
|
+
&:hover {
|
|
26
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -62,18 +62,18 @@
|
|
|
62
62
|
height: 100%;
|
|
63
63
|
|
|
64
64
|
& > .@{ant-prefix}-tabs-nav {
|
|
65
|
-
margin-bottom:
|
|
65
|
+
margin-bottom: @padding-md;
|
|
66
66
|
|
|
67
67
|
.@{ant-prefix}-tabs-tab {
|
|
68
|
-
padding:
|
|
68
|
+
padding: 0 0 5px;
|
|
69
69
|
|
|
70
70
|
&.@{ant-prefix}-tabs-tab-active .@{ant-prefix}-tabs-tab-btn {
|
|
71
71
|
text-shadow: unset;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
.@{ant-prefix}-tabs-
|
|
76
|
-
|
|
75
|
+
.@{ant-prefix}-tabs-nav-more {
|
|
76
|
+
padding: 0;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -90,21 +90,21 @@
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
.scrollBar (@width:
|
|
94
|
-
scrollbar-width: thin;
|
|
93
|
+
.scrollBar (@width: 8px) {
|
|
94
|
+
// scrollbar-width: thin;
|
|
95
95
|
|
|
96
|
-
&::-webkit-scrollbar {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
96
|
+
// &::-webkit-scrollbar {
|
|
97
|
+
// width: @width;
|
|
98
|
+
// height: 8px;
|
|
99
|
+
// }
|
|
100
100
|
|
|
101
|
-
&::-webkit-scrollbar-track {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
101
|
+
// &::-webkit-scrollbar-track {
|
|
102
|
+
// background-color: #fff;
|
|
103
|
+
// border-radius: 4px;
|
|
104
|
+
// }
|
|
105
105
|
|
|
106
|
-
&::-webkit-scrollbar-thumb {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
106
|
+
// &::-webkit-scrollbar-thumb {
|
|
107
|
+
// background-color: #ddd;
|
|
108
|
+
// border-radius: 4px;
|
|
109
|
+
// }
|
|
110
110
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { PREFIX_CLS } from "../constants";
|
|
9
|
+
import classNames from 'classnames';
|
|
10
|
+
export default function Icon(props) {
|
|
11
|
+
var name = props.name,
|
|
12
|
+
size = props.size,
|
|
13
|
+
color = props.color,
|
|
14
|
+
styleProp = props.style,
|
|
15
|
+
className = props.className;
|
|
16
|
+
var style = styleProp;
|
|
17
|
+
if (size || color) {
|
|
18
|
+
style = _objectSpread(_objectSpread({}, style), {}, {
|
|
19
|
+
fontSize: size,
|
|
20
|
+
color: color
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
24
|
+
className: classNames("".concat(PREFIX_CLS, "-symbol-icon"), className),
|
|
25
|
+
"aria-hidden": "true",
|
|
26
|
+
style: style
|
|
27
|
+
}, /*#__PURE__*/React.createElement("use", {
|
|
28
|
+
xlinkHref: "#".concat(name)
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import type { MouseEvent } from 'react';
|
|
1
|
+
import type { MouseEvent, CSSProperties, KeyboardEvent } from 'react';
|
|
3
2
|
interface Props {
|
|
4
3
|
tabs: {
|
|
5
4
|
title: string;
|
|
@@ -8,7 +7,7 @@ interface Props {
|
|
|
8
7
|
activeKey?: string;
|
|
9
8
|
className?: string;
|
|
10
9
|
style?: CSSProperties;
|
|
11
|
-
onTabClick: (key: string, index: number, e: MouseEvent) => void;
|
|
10
|
+
onTabClick: (key: string, index: number, e: MouseEvent | KeyboardEvent) => void;
|
|
12
11
|
}
|
|
13
12
|
export default function TabBar(props: Props): JSX.Element;
|
|
14
13
|
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { prefixClassName } from "../utils";
|
|
3
|
+
import { Tabs } from 'antd';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
export default function TabBar(props) {
|
|
6
|
+
var tabs = props.tabs,
|
|
7
|
+
_onTabClick = props.onTabClick,
|
|
8
|
+
activeKey = props.activeKey,
|
|
9
|
+
style = props.style,
|
|
10
|
+
className = props.className;
|
|
11
|
+
var getKey = function getKey(tab) {
|
|
12
|
+
return tab.key || tab.title;
|
|
13
|
+
};
|
|
14
|
+
return /*#__PURE__*/React.createElement(Tabs, {
|
|
15
|
+
onTabClick: function onTabClick(key, e) {
|
|
16
|
+
var index = tabs.findIndex(function (item) {
|
|
17
|
+
return getKey(item) === key;
|
|
18
|
+
});
|
|
19
|
+
_onTabClick(key, index, e);
|
|
20
|
+
},
|
|
21
|
+
activeKey: activeKey,
|
|
22
|
+
style: style,
|
|
23
|
+
className: classNames(prefixClassName('tab-bar')(), className),
|
|
24
|
+
items: tabs.map(function (item) {
|
|
25
|
+
return {
|
|
26
|
+
label: item.title,
|
|
27
|
+
key: getKey(item)
|
|
28
|
+
};
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
}
|