amis-ui 2.6.0 → 2.7.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/esm/_virtual/index.js +8 -0
- package/esm/_virtual/react-is.development.js +8 -0
- package/esm/_virtual/react-is.production.min.js +8 -0
- package/esm/components/404.js +2 -2
- package/esm/components/Alert.js +2 -2
- package/esm/components/Alert2.js +2 -2
- package/esm/components/AnchorNav.js +2 -2
- package/esm/components/ArrayInput.js +2 -2
- package/esm/components/AsideNav.js +2 -2
- package/esm/components/AssociatedSelection.js +2 -2
- package/esm/components/Avatar.js +2 -2
- package/esm/components/Badge.js +2 -2
- package/esm/components/BaiduMapPicker.js +2 -2
- package/esm/components/BarCode.js +2 -2
- package/esm/components/Breadcrumb.js +2 -2
- package/esm/components/Button.js +2 -2
- package/esm/components/CalendarMobile.js +2 -2
- package/esm/components/Card.js +2 -2
- package/esm/components/Cascader.js +2 -2
- package/esm/components/ChainedSelection.js +2 -2
- package/esm/components/Checkbox.js +2 -2
- package/esm/components/CityArea.js +2 -2
- package/esm/components/CityDB.js +2 -2
- package/esm/components/CodeMirror.js +2 -2
- package/esm/components/Collapse.js +5 -3
- package/esm/components/CollapseGroup.js +2 -2
- package/esm/components/ColorPicker.js +2 -2
- package/esm/components/Combo.js +2 -2
- package/esm/components/ConfirmBox.js +2 -2
- package/esm/components/ContextMenu.js +2 -2
- package/esm/components/DatePicker.js +7 -2
- package/esm/components/DateRangePicker.d.ts +7 -4
- package/esm/components/DateRangePicker.js +5 -6
- package/esm/components/DndContainer.d.ts +293 -0
- package/esm/components/DndContainer.js +25 -0
- package/esm/components/Drawer.js +2 -2
- package/esm/components/Editor.js +2 -2
- package/esm/components/Form.js +2 -2
- package/esm/components/FormField.js +2 -2
- package/esm/components/GridNav.js +2 -2
- package/esm/components/GroupedSelection.js +4 -4
- package/esm/components/Html.js +2 -2
- package/esm/components/ImageGallery.d.ts +6 -5
- package/esm/components/ImageGallery.js +26 -10
- package/esm/components/Input.js +2 -2
- package/esm/components/InputBox.js +2 -2
- package/esm/components/InputBoxWithSuggestion.js +2 -2
- package/esm/components/InputTable.js +2 -2
- package/esm/components/Layout.js +2 -2
- package/esm/components/Link.js +2 -2
- package/esm/components/ListGroup.js +2 -2
- package/esm/components/ListMenu.js +2 -2
- package/esm/components/LocationPicker.js +2 -2
- package/esm/components/Markdown.js +2 -2
- package/esm/components/Modal.js +2 -2
- package/esm/components/ModalManager.js +2 -2
- package/esm/components/MultilineText.js +2 -2
- package/esm/components/NumberInput.js +4 -4
- package/esm/components/Pagination.js +2 -2
- package/esm/components/Picker.js +2 -2
- package/esm/components/PickerColumn.js +2 -2
- package/esm/components/PickerContainer.js +2 -2
- package/esm/components/PopOverContainer.js +2 -2
- package/esm/components/PopUp.js +2 -2
- package/esm/components/Progress.js +2 -2
- package/esm/components/PullRefresh.js +2 -2
- package/esm/components/Radios.js +2 -2
- package/esm/components/Range.js +2 -2
- package/esm/components/Rating.d.ts +12 -55
- package/esm/components/Rating.js +32 -16
- package/esm/components/ResultBox.d.ts +41 -40
- package/esm/components/ResultBox.js +16 -7
- package/esm/components/ResultList.d.ts +41 -40
- package/esm/components/ResultList.js +4 -4
- package/esm/components/ResultTableList.js +2 -2
- package/esm/components/ResultTreeList.js +2 -2
- package/esm/components/RichText.js +2 -2
- package/esm/components/SearchBox.js +2 -2
- package/esm/components/Select.d.ts +194 -193
- package/esm/components/Select.js +12 -8
- package/esm/components/Selection.js +2 -2
- package/esm/components/SparkLine.js +2 -2
- package/esm/components/Spinner.js +2 -2
- package/esm/components/Steps.js +2 -2
- package/esm/components/Switch.js +2 -2
- package/esm/components/TableSelection.js +2 -2
- package/esm/components/Tabs.js +16 -12
- package/esm/components/TabsTransfer.d.ts +40 -40
- package/esm/components/TabsTransfer.js +2 -2
- package/esm/components/TabsTransferPicker.js +2 -2
- package/esm/components/Tag.d.ts +14 -10
- package/esm/components/Tag.js +22 -2
- package/esm/components/Textarea.js +2 -2
- package/esm/components/Timeline.js +2 -2
- package/esm/components/TimelineItem.js +2 -2
- package/esm/components/Tinymce.js +2 -2
- package/esm/components/TitleBar.js +2 -2
- package/esm/components/Toast.js +3 -3
- package/esm/components/Tooltip.js +2 -2
- package/esm/components/TooltipWrapper.js +2 -2
- package/esm/components/Transfer.d.ts +41 -40
- package/esm/components/Transfer.js +4 -4
- package/esm/components/TransferDropDown.d.ts +40 -40
- package/esm/components/TransferDropDown.js +4 -4
- package/esm/components/TransferPicker.js +2 -2
- package/esm/components/TransferSearch.js +2 -2
- package/esm/components/Tree.js +21 -8
- package/esm/components/TreeSelection.js +2 -2
- package/esm/components/UserSelect.js +4 -2
- package/esm/components/UserTabSelect.js +4 -2
- package/esm/components/WithRemoteConfig.js +7 -6
- package/esm/components/WithStore.js +2 -2
- package/esm/components/calendar/Calendar.js +2 -2
- package/esm/components/calendar/CalendarContainer.js +2 -2
- package/esm/components/calendar/DaysView.js +2 -2
- package/esm/components/calendar/MonthsView.js +2 -2
- package/esm/components/calendar/QuartersView.js +2 -2
- package/esm/components/calendar/TimeView.js +2 -2
- package/esm/components/calendar/YearsView.js +2 -2
- package/esm/components/condition-builder/Expression.js +2 -2
- package/esm/components/condition-builder/Field.js +2 -2
- package/esm/components/condition-builder/Formula.js +2 -2
- package/esm/components/condition-builder/Func.js +2 -2
- package/esm/components/condition-builder/Group.js +2 -2
- package/esm/components/condition-builder/GroupOrItem.js +2 -2
- package/esm/components/condition-builder/InputSwitch.js +2 -2
- package/esm/components/condition-builder/Item.js +2 -2
- package/esm/components/condition-builder/Value.js +2 -2
- package/esm/components/condition-builder/config.js +2 -2
- package/esm/components/condition-builder/index.js +2 -2
- package/esm/components/formula/Editor.js +2 -2
- package/esm/components/formula/FuncList.js +2 -2
- package/esm/components/formula/Picker.js +2 -2
- package/esm/components/formula/VariableList.js +2 -2
- package/esm/components/formula/plugin.js +2 -2
- package/esm/components/icons.d.ts +2 -1
- package/esm/components/icons.js +31 -15
- package/esm/components/index.d.ts +3 -1
- package/esm/components/json-schema/Array.js +2 -2
- package/esm/components/json-schema/Item.js +2 -2
- package/esm/components/json-schema/Object.js +2 -2
- package/esm/components/json-schema/index.js +2 -2
- package/esm/components/menu/MenuContext.d.ts +73 -0
- package/esm/components/menu/MenuContext.js +25 -0
- package/esm/components/menu/MenuItem.d.ts +84 -0
- package/esm/components/menu/MenuItem.js +125 -0
- package/esm/components/menu/SubMenu.d.ts +88 -0
- package/esm/components/menu/SubMenu.js +141 -0
- package/esm/components/menu/index.d.ts +246 -0
- package/esm/components/menu/index.js +315 -0
- package/esm/components/schema-editor/Array.js +2 -2
- package/esm/components/schema-editor/Common.js +2 -2
- package/esm/components/schema-editor/Item.js +2 -2
- package/esm/components/schema-editor/Object.js +2 -2
- package/esm/components/schema-editor/SchemaVariableList.js +2 -2
- package/esm/components/schema-editor/SchemaVariableListPicker.js +2 -2
- package/esm/components/schema-editor/index.js +2 -2
- package/esm/components/table/Cell.js +2 -2
- package/esm/components/table/HeadCellDropDown.js +2 -2
- package/esm/components/table/HeadCellFilter.js +2 -2
- package/esm/components/table/HeadCellSelect.js +2 -2
- package/esm/components/table/HeadCellSort.d.ts +2 -0
- package/esm/components/table/HeadCellSort.js +25 -17
- package/esm/components/table/ItemActionsWrapper.js +2 -2
- package/esm/components/table/index.d.ts +1 -0
- package/esm/components/table/index.js +16 -9
- package/esm/components/virtual-list/AutoSizer.js +2 -2
- package/esm/components/virtual-list/SizeAndPositionManager.js +2 -2
- package/esm/components/virtual-list/constants.js +2 -2
- package/esm/components/virtual-list/index.js +2 -2
- package/esm/hooks/use-set-state.js +2 -2
- package/esm/hooks/use-sub-form.js +2 -2
- package/esm/hooks/use-touch.js +2 -2
- package/esm/hooks/use-update-effect.js +2 -2
- package/esm/hooks/use-validation-resolver.js +2 -2
- package/esm/icons/alert-danger.svg.js +2 -2
- package/esm/icons/alert-info.svg.js +2 -2
- package/esm/icons/alert-success.svg.js +2 -2
- package/esm/icons/alert-warning.svg.js +2 -2
- package/esm/icons/back.svg.js +2 -2
- package/esm/icons/calendar.svg.js +2 -2
- package/esm/icons/caret.svg.js +2 -2
- package/esm/icons/check.svg.js +2 -2
- package/esm/icons/clock.svg.js +2 -2
- package/esm/icons/close-small.svg.js +2 -2
- package/esm/icons/close.svg.js +2 -2
- package/esm/icons/cloud-upload.svg.js +7 -16
- package/esm/icons/column-filter.svg.js +2 -2
- package/esm/icons/columns.svg.js +2 -2
- package/esm/icons/compress-alt.svg.js +2 -2
- package/esm/icons/copy.svg.js +2 -2
- package/esm/icons/date.svg.js +2 -2
- package/esm/icons/department.svg.js +2 -2
- package/esm/icons/desk-empty.svg.js +2 -2
- package/esm/icons/dot.svg.js +2 -2
- package/esm/icons/down-arrow-bold.svg.js +2 -2
- package/esm/icons/down.svg.js +2 -2
- package/esm/icons/download.svg.js +2 -2
- package/esm/icons/drag-bar.svg.js +2 -2
- package/esm/icons/drag.svg.js +2 -2
- package/esm/icons/edit.svg.js +2 -2
- package/esm/icons/ellipsis-v.svg.js +2 -2
- package/esm/icons/enter.svg.js +2 -2
- package/esm/icons/exchange.svg.js +2 -2
- package/esm/icons/expand-alt.svg.js +2 -2
- package/esm/icons/fail.svg.js +12 -10
- package/esm/icons/file.svg.js +2 -2
- package/esm/icons/filter.svg.js +2 -2
- package/esm/icons/folder.svg.js +2 -2
- package/esm/icons/function.svg.js +2 -2
- package/esm/icons/home.svg.js +2 -2
- package/esm/icons/image.svg.js +2 -2
- package/esm/icons/info-circle.svg.js +2 -2
- package/esm/icons/info.svg.js +2 -2
- package/esm/icons/input-clear.svg.js +2 -2
- package/esm/icons/invisible.svg.js +2 -2
- package/esm/icons/left-arrow.svg.js +2 -2
- package/esm/icons/loading-outline.svg.js +2 -2
- package/esm/icons/location.svg.js +2 -2
- package/esm/icons/menu.svg.js +2 -2
- package/esm/icons/minus.svg.js +2 -2
- package/esm/icons/move.svg.js +2 -2
- package/esm/icons/mute.svg.js +2 -2
- package/esm/icons/new-edit.svg.js +2 -2
- package/esm/icons/pause.svg.js +2 -2
- package/esm/icons/pencil.svg.js +2 -2
- package/esm/icons/play.svg.js +2 -2
- package/esm/icons/plus-cicle.svg.js +2 -2
- package/esm/icons/plus-fine.svg.js +2 -2
- package/esm/icons/plus.svg.js +2 -2
- package/esm/icons/post.svg.js +2 -2
- package/esm/icons/question-mark.svg.js +2 -2
- package/esm/icons/question.svg.js +2 -2
- package/esm/icons/redo.svg.js +2 -2
- package/esm/icons/refresh.svg.js +2 -2
- package/esm/icons/reload.svg.js +2 -2
- package/esm/icons/remove.svg.js +2 -2
- package/esm/icons/retry.svg.js +2 -2
- package/esm/icons/right-arrow-bold.svg.js +2 -2
- package/esm/icons/right-arrow.svg.js +2 -2
- package/esm/icons/right-double-arrow.svg.js +2 -2
- package/esm/icons/role.svg.js +2 -2
- package/esm/icons/rotate-left.svg.js +2 -2
- package/esm/icons/rotate-right.svg.js +2 -2
- package/esm/icons/scale-origin.svg.js +2 -2
- package/esm/icons/schedule.svg.js +2 -2
- package/esm/icons/search.svg.js +2 -2
- package/esm/icons/setting.svg.js +2 -2
- package/esm/icons/slider-handle-icon.svg.js +2 -2
- package/esm/icons/sort-asc.svg.js +2 -2
- package/esm/icons/sort-default.svg.js +2 -2
- package/esm/icons/sort-desc.svg.js +2 -2
- package/esm/icons/star.svg.js +2 -2
- package/esm/icons/status-close.svg.js +2 -2
- package/esm/icons/steps-finsh.svg.js +2 -2
- package/esm/icons/success.svg.js +14 -12
- package/esm/icons/transparent.svg.js +2 -2
- package/esm/icons/trash.svg.js +2 -2
- package/esm/icons/tree-down.svg.js +2 -2
- package/esm/icons/undo.svg.js +2 -2
- package/esm/icons/upload.svg.js +2 -2
- package/esm/icons/user-remove.svg.js +2 -2
- package/esm/icons/view.svg.js +2 -2
- package/esm/icons/volume.svg.js +2 -2
- package/esm/icons/warning-mark.svg.js +2 -2
- package/esm/icons/warning.svg.js +2 -2
- package/esm/icons/window-restore.svg.js +2 -2
- package/esm/icons/zoom-in.svg.js +2 -2
- package/esm/icons/zoom-out.svg.js +2 -2
- package/esm/index.js +4 -2
- package/esm/locale/de-DE.js +2 -2
- package/esm/locale/en-US.js +2 -2
- package/esm/locale/zh-CN.js +2 -2
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +14 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +13 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +12 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +26 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +25 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +23 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +21 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +13 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +25 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +18 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +36 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +30 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +24 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +19 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +18 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +14 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +15 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +19 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +14 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +16 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +17 -0
- package/esm/node_modules/rc-overflow/es/Item.js +90 -0
- package/esm/node_modules/rc-overflow/es/Overflow.js +341 -0
- package/esm/node_modules/rc-overflow/es/RawItem.js +48 -0
- package/esm/node_modules/rc-overflow/es/hooks/useBatchFrameState.js +51 -0
- package/esm/node_modules/rc-overflow/es/index.js +7 -0
- package/esm/node_modules/rc-resize-observer/es/Collection.js +41 -0
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +37 -0
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/index.js +108 -0
- package/esm/node_modules/rc-resize-observer/es/index.js +37 -0
- package/esm/node_modules/rc-resize-observer/es/utils/observerUtil.js +48 -0
- package/esm/node_modules/rc-util/es/Children/toArray.js +28 -0
- package/esm/node_modules/rc-util/es/Dom/canUseDom.js +10 -0
- package/esm/node_modules/rc-util/es/Dom/findDOMNode.js +22 -0
- package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +14 -0
- package/esm/node_modules/rc-util/es/hooks/useState.js +35 -0
- package/esm/node_modules/rc-util/es/raf.js +55 -0
- package/esm/node_modules/rc-util/es/ref.js +55 -0
- package/esm/node_modules/rc-util/es/warning.js +15 -0
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +195 -0
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +31 -0
- package/esm/node_modules/rc-util/node_modules/react-is/index.js +17 -0
- package/esm/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +933 -0
- package/esm/themes/ang.js +2 -2
- package/esm/themes/antd.js +2 -2
- package/esm/themes/cxd.js +2 -2
- package/esm/themes/dark.js +2 -2
- package/lib/_virtual/index.js +12 -0
- package/lib/_virtual/react-is.development.js +12 -0
- package/lib/_virtual/react-is.production.min.js +12 -0
- package/lib/components/404.js +2 -2
- package/lib/components/Alert.d.ts +40 -40
- package/lib/components/Alert.js +2 -2
- package/lib/components/Alert2.d.ts +10 -10
- package/lib/components/Alert2.js +2 -2
- package/lib/components/AnchorNav.d.ts +10 -10
- package/lib/components/AnchorNav.js +2 -2
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +2 -2
- package/lib/components/AsideNav.d.ts +10 -10
- package/lib/components/AsideNav.js +2 -2
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/AssociatedSelection.js +2 -2
- package/lib/components/Avatar.d.ts +10 -10
- package/lib/components/Avatar.js +2 -2
- package/lib/components/Badge.js +2 -2
- package/lib/components/BaiduMapPicker.js +2 -2
- package/lib/components/BarCode.js +2 -2
- package/lib/components/Breadcrumb.js +2 -2
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +2 -2
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +2 -2
- package/lib/components/Card.d.ts +10 -10
- package/lib/components/Card.js +2 -2
- package/lib/components/Cascader.js +2 -2
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/ChainedSelection.js +2 -2
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +2 -2
- package/lib/components/CityArea.js +2 -2
- package/lib/components/CityDB.js +2 -2
- package/lib/components/CodeMirror.js +2 -2
- package/lib/components/Collapse.d.ts +10 -10
- package/lib/components/Collapse.js +5 -3
- package/lib/components/CollapseGroup.d.ts +10 -10
- package/lib/components/CollapseGroup.js +2 -2
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +2 -2
- package/lib/components/Combo.js +2 -2
- package/lib/components/ConfirmBox.d.ts +40 -40
- package/lib/components/ConfirmBox.js +2 -2
- package/lib/components/ContextMenu.js +2 -2
- package/lib/components/DatePicker.d.ts +81 -81
- package/lib/components/DatePicker.js +7 -2
- package/lib/components/DateRangePicker.d.ts +47 -44
- package/lib/components/DateRangePicker.js +5 -6
- package/lib/components/DndContainer.d.ts +293 -0
- package/lib/components/DndContainer.js +34 -0
- package/lib/components/Drawer.d.ts +10 -10
- package/lib/components/Drawer.js +2 -2
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +2 -2
- package/lib/components/Form.js +2 -2
- package/lib/components/FormField.js +2 -2
- package/lib/components/GridNav.js +2 -2
- package/lib/components/GroupedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.js +4 -4
- package/lib/components/Html.js +2 -2
- package/lib/components/ImageGallery.d.ts +46 -45
- package/lib/components/ImageGallery.js +26 -10
- package/lib/components/Input.js +2 -2
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +2 -2
- package/lib/components/InputBoxWithSuggestion.js +2 -2
- package/lib/components/InputTable.js +2 -2
- package/lib/components/Layout.d.ts +10 -10
- package/lib/components/Layout.js +2 -2
- package/lib/components/Link.js +2 -2
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +2 -2
- package/lib/components/ListMenu.d.ts +40 -40
- package/lib/components/ListMenu.js +2 -2
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +2 -2
- package/lib/components/Markdown.js +2 -2
- package/lib/components/Modal.d.ts +40 -40
- package/lib/components/Modal.js +2 -2
- package/lib/components/ModalManager.js +2 -2
- package/lib/components/MonthRangePicker.d.ts +40 -40
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +2 -2
- package/lib/components/NumberInput.d.ts +10 -10
- package/lib/components/NumberInput.js +4 -4
- package/lib/components/Pagination.d.ts +40 -40
- package/lib/components/Pagination.js +2 -2
- package/lib/components/Picker.js +2 -2
- package/lib/components/PickerColumn.js +2 -2
- package/lib/components/PickerContainer.js +2 -2
- package/lib/components/PopOverContainer.js +2 -2
- package/lib/components/PopUp.d.ts +40 -40
- package/lib/components/PopUp.js +2 -2
- package/lib/components/Progress.d.ts +10 -10
- package/lib/components/Progress.js +2 -2
- package/lib/components/PullRefresh.js +2 -2
- package/lib/components/Radios.d.ts +10 -10
- package/lib/components/Radios.js +2 -2
- package/lib/components/Range.js +2 -2
- package/lib/components/Rating.d.ts +22 -65
- package/lib/components/Rating.js +32 -16
- package/lib/components/ResultBox.d.ts +41 -40
- package/lib/components/ResultBox.js +16 -7
- package/lib/components/ResultList.d.ts +41 -40
- package/lib/components/ResultList.js +4 -4
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTableList.js +2 -2
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +2 -2
- package/lib/components/RichText.js +2 -2
- package/lib/components/SearchBox.d.ts +40 -40
- package/lib/components/SearchBox.js +2 -2
- package/lib/components/Select.d.ts +194 -193
- package/lib/components/Select.js +12 -8
- package/lib/components/Selection.d.ts +40 -40
- package/lib/components/Selection.js +2 -2
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +2 -2
- package/lib/components/Spinner.d.ts +10 -10
- package/lib/components/Spinner.js +2 -2
- package/lib/components/Steps.js +2 -2
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +2 -2
- package/lib/components/TableSelection.d.ts +40 -40
- package/lib/components/TableSelection.js +2 -2
- package/lib/components/Tabs.d.ts +40 -40
- package/lib/components/Tabs.js +16 -12
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +2 -2
- package/lib/components/TabsTransferPicker.js +2 -2
- package/lib/components/Tag.d.ts +14 -10
- package/lib/components/Tag.js +22 -2
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +2 -2
- package/lib/components/Timeline.js +2 -2
- package/lib/components/TimelineItem.js +2 -2
- package/lib/components/Tinymce.js +2 -2
- package/lib/components/TitleBar.js +2 -2
- package/lib/components/Toast.d.ts +40 -40
- package/lib/components/Toast.js +3 -3
- package/lib/components/Tooltip.js +2 -2
- package/lib/components/TooltipWrapper.d.ts +10 -10
- package/lib/components/TooltipWrapper.js +2 -2
- package/lib/components/Transfer.d.ts +50 -49
- package/lib/components/Transfer.js +4 -4
- package/lib/components/TransferDropDown.d.ts +40 -40
- package/lib/components/TransferDropDown.js +4 -4
- package/lib/components/TransferPicker.js +2 -2
- package/lib/components/TransferSearch.js +2 -2
- package/lib/components/Tree.d.ts +40 -40
- package/lib/components/Tree.js +21 -8
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +2 -2
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +4 -2
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +4 -2
- package/lib/components/WithRemoteConfig.js +7 -6
- package/lib/components/WithStore.js +2 -2
- package/lib/components/calendar/Calendar.js +2 -2
- package/lib/components/calendar/CalendarContainer.js +2 -2
- package/lib/components/calendar/DaysView.js +2 -2
- package/lib/components/calendar/MonthsView.js +2 -2
- package/lib/components/calendar/QuartersView.js +2 -2
- package/lib/components/calendar/TimeView.js +2 -2
- package/lib/components/calendar/YearsView.js +2 -2
- package/lib/components/condition-builder/Expression.js +2 -2
- package/lib/components/condition-builder/Field.js +2 -2
- package/lib/components/condition-builder/Formula.js +2 -2
- package/lib/components/condition-builder/Func.js +2 -2
- package/lib/components/condition-builder/Group.js +2 -2
- package/lib/components/condition-builder/GroupOrItem.js +2 -2
- package/lib/components/condition-builder/InputSwitch.js +2 -2
- package/lib/components/condition-builder/Item.js +2 -2
- package/lib/components/condition-builder/Value.js +2 -2
- package/lib/components/condition-builder/config.js +2 -2
- package/lib/components/condition-builder/index.d.ts +1 -1
- package/lib/components/condition-builder/index.js +2 -2
- package/lib/components/formula/Editor.d.ts +40 -40
- package/lib/components/formula/Editor.js +2 -2
- package/lib/components/formula/FuncList.js +2 -2
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +2 -2
- package/lib/components/formula/VariableList.js +2 -2
- package/lib/components/formula/plugin.js +2 -2
- package/lib/components/icons.d.ts +2 -1
- package/lib/components/icons.js +30 -14
- package/lib/components/index.d.ts +3 -1
- package/lib/components/json-schema/Array.js +2 -2
- package/lib/components/json-schema/Item.js +2 -2
- package/lib/components/json-schema/Object.js +2 -2
- package/lib/components/json-schema/index.js +2 -2
- package/lib/components/menu/MenuContext.d.ts +73 -0
- package/lib/components/menu/MenuContext.js +29 -0
- package/lib/components/menu/MenuItem.d.ts +84 -0
- package/lib/components/menu/MenuItem.js +135 -0
- package/lib/components/menu/SubMenu.d.ts +88 -0
- package/lib/components/menu/SubMenu.js +151 -0
- package/lib/components/menu/index.d.ts +246 -0
- package/lib/components/menu/index.js +328 -0
- package/lib/components/schema-editor/Array.js +2 -2
- package/lib/components/schema-editor/Common.js +2 -2
- package/lib/components/schema-editor/Item.js +2 -2
- package/lib/components/schema-editor/Object.js +2 -2
- package/lib/components/schema-editor/SchemaVariableList.js +2 -2
- package/lib/components/schema-editor/SchemaVariableListPicker.js +2 -2
- package/lib/components/schema-editor/index.d.ts +40 -40
- package/lib/components/schema-editor/index.js +2 -2
- package/lib/components/table/Cell.d.ts +40 -40
- package/lib/components/table/Cell.js +2 -2
- package/lib/components/table/HeadCellDropDown.js +2 -2
- package/lib/components/table/HeadCellFilter.d.ts +40 -40
- package/lib/components/table/HeadCellFilter.js +2 -2
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- package/lib/components/table/HeadCellSelect.js +2 -2
- package/lib/components/table/HeadCellSort.d.ts +2 -0
- package/lib/components/table/HeadCellSort.js +25 -17
- package/lib/components/table/ItemActionsWrapper.js +2 -2
- package/lib/components/table/index.d.ts +41 -40
- package/lib/components/table/index.js +16 -9
- package/lib/components/virtual-list/AutoSizer.js +2 -2
- package/lib/components/virtual-list/SizeAndPositionManager.js +2 -2
- package/lib/components/virtual-list/constants.js +2 -2
- package/lib/components/virtual-list/index.js +2 -2
- package/lib/hooks/use-set-state.js +2 -2
- package/lib/hooks/use-sub-form.js +2 -2
- package/lib/hooks/use-touch.js +2 -2
- package/lib/hooks/use-update-effect.js +2 -2
- package/lib/hooks/use-validation-resolver.js +2 -2
- package/lib/icons/alert-danger.svg.js +2 -2
- package/lib/icons/alert-info.svg.js +2 -2
- package/lib/icons/alert-success.svg.js +2 -2
- package/lib/icons/alert-warning.svg.js +2 -2
- package/lib/icons/back.svg.js +2 -2
- package/lib/icons/calendar.svg.js +2 -2
- package/lib/icons/caret.svg.js +2 -2
- package/lib/icons/check.svg.js +2 -2
- package/lib/icons/clock.svg.js +2 -2
- package/lib/icons/close-small.svg.js +2 -2
- package/lib/icons/close.svg.js +2 -2
- package/lib/icons/cloud-upload.svg.js +7 -16
- package/lib/icons/column-filter.svg.js +2 -2
- package/lib/icons/columns.svg.js +2 -2
- package/lib/icons/compress-alt.svg.js +2 -2
- package/lib/icons/copy.svg.js +2 -2
- package/lib/icons/date.svg.js +2 -2
- package/lib/icons/department.svg.js +2 -2
- package/lib/icons/desk-empty.svg.js +2 -2
- package/lib/icons/dot.svg.js +2 -2
- package/lib/icons/down-arrow-bold.svg.js +2 -2
- package/lib/icons/down.svg.js +2 -2
- package/lib/icons/download.svg.js +2 -2
- package/lib/icons/drag-bar.svg.js +2 -2
- package/lib/icons/drag.svg.js +2 -2
- package/lib/icons/edit.svg.js +2 -2
- package/lib/icons/ellipsis-v.svg.js +2 -2
- package/lib/icons/enter.svg.js +2 -2
- package/lib/icons/exchange.svg.js +2 -2
- package/lib/icons/expand-alt.svg.js +2 -2
- package/lib/icons/fail.svg.js +12 -10
- package/lib/icons/file.svg.js +2 -2
- package/lib/icons/filter.svg.js +2 -2
- package/lib/icons/folder.svg.js +2 -2
- package/lib/icons/function.svg.js +2 -2
- package/lib/icons/home.svg.js +2 -2
- package/lib/icons/image.svg.js +2 -2
- package/lib/icons/info-circle.svg.js +2 -2
- package/lib/icons/info.svg.js +2 -2
- package/lib/icons/input-clear.svg.js +2 -2
- package/lib/icons/invisible.svg.js +2 -2
- package/lib/icons/left-arrow.svg.js +2 -2
- package/lib/icons/loading-outline.svg.js +2 -2
- package/lib/icons/location.svg.js +2 -2
- package/lib/icons/menu.svg.js +2 -2
- package/lib/icons/minus.svg.js +2 -2
- package/lib/icons/move.svg.js +2 -2
- package/lib/icons/mute.svg.js +2 -2
- package/lib/icons/new-edit.svg.js +2 -2
- package/lib/icons/pause.svg.js +2 -2
- package/lib/icons/pencil.svg.js +2 -2
- package/lib/icons/play.svg.js +2 -2
- package/lib/icons/plus-cicle.svg.js +2 -2
- package/lib/icons/plus-fine.svg.js +2 -2
- package/lib/icons/plus.svg.js +2 -2
- package/lib/icons/post.svg.js +2 -2
- package/lib/icons/question-mark.svg.js +2 -2
- package/lib/icons/question.svg.js +2 -2
- package/lib/icons/redo.svg.js +2 -2
- package/lib/icons/refresh.svg.js +2 -2
- package/lib/icons/reload.svg.js +2 -2
- package/lib/icons/remove.svg.js +2 -2
- package/lib/icons/retry.svg.js +2 -2
- package/lib/icons/right-arrow-bold.svg.js +2 -2
- package/lib/icons/right-arrow.svg.js +2 -2
- package/lib/icons/right-double-arrow.svg.js +2 -2
- package/lib/icons/role.svg.js +2 -2
- package/lib/icons/rotate-left.svg.js +2 -2
- package/lib/icons/rotate-right.svg.js +2 -2
- package/lib/icons/scale-origin.svg.js +2 -2
- package/lib/icons/schedule.svg.js +2 -2
- package/lib/icons/search.svg.js +2 -2
- package/lib/icons/setting.svg.js +2 -2
- package/lib/icons/slider-handle-icon.svg.js +2 -2
- package/lib/icons/sort-asc.svg.js +2 -2
- package/lib/icons/sort-default.svg.js +2 -2
- package/lib/icons/sort-desc.svg.js +2 -2
- package/lib/icons/star.svg.js +2 -2
- package/lib/icons/status-close.svg.js +2 -2
- package/lib/icons/steps-finsh.svg.js +2 -2
- package/lib/icons/success.svg.js +29 -27
- package/lib/icons/transparent.svg.js +2 -2
- package/lib/icons/trash.svg.js +2 -2
- package/lib/icons/tree-down.svg.js +2 -2
- package/lib/icons/undo.svg.js +2 -2
- package/lib/icons/upload.svg.js +2 -2
- package/lib/icons/user-remove.svg.js +2 -2
- package/lib/icons/view.svg.js +2 -2
- package/lib/icons/volume.svg.js +2 -2
- package/lib/icons/warning-mark.svg.js +2 -2
- package/lib/icons/warning.svg.js +2 -2
- package/lib/icons/window-restore.svg.js +2 -2
- package/lib/icons/zoom-in.svg.js +2 -2
- package/lib/icons/zoom-out.svg.js +2 -2
- package/lib/index.js +6 -2
- package/lib/locale/de-DE.js +2 -2
- package/lib/locale/en-US.js +2 -2
- package/lib/locale/zh-CN.js +2 -2
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +18 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +14 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +17 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +16 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/createClass.js +30 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/createSuper.js +29 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js +27 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +25 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +17 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/inherits.js +29 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +22 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +40 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +14 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +34 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +28 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +23 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +22 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +18 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +19 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +23 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +18 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js +20 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +21 -0
- package/lib/node_modules/rc-overflow/es/Item.js +117 -0
- package/lib/node_modules/rc-overflow/es/Overflow.js +368 -0
- package/lib/node_modules/rc-overflow/es/RawItem.js +75 -0
- package/lib/node_modules/rc-overflow/es/hooks/useBatchFrameState.js +55 -0
- package/lib/node_modules/rc-overflow/es/index.js +14 -0
- package/lib/node_modules/rc-resize-observer/es/Collection.js +66 -0
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +61 -0
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/index.js +132 -0
- package/lib/node_modules/rc-resize-observer/es/index.js +61 -0
- package/lib/node_modules/rc-resize-observer/es/utils/observerUtil.js +53 -0
- package/lib/node_modules/rc-util/es/Children/toArray.js +36 -0
- package/lib/node_modules/rc-util/es/Dom/canUseDom.js +14 -0
- package/lib/node_modules/rc-util/es/Dom/findDOMNode.js +31 -0
- package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +38 -0
- package/lib/node_modules/rc-util/es/hooks/useState.js +59 -0
- package/lib/node_modules/rc-util/es/raf.js +59 -0
- package/lib/node_modules/rc-util/es/ref.js +61 -0
- package/lib/node_modules/rc-util/es/warning.js +19 -0
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +199 -0
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +35 -0
- package/lib/node_modules/rc-util/node_modules/react-is/index.js +19 -0
- package/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +937 -0
- package/lib/{scss → packages/amis-ui/scss}/helper.scss.js +2 -2
- package/lib/{scss → packages/amis-ui/scss}/themes/ang.scss.js +2 -2
- package/lib/{scss → packages/amis-ui/scss}/themes/antd.scss.js +2 -2
- package/lib/{scss → packages/amis-ui/scss}/themes/cxd.scss.js +2 -2
- package/lib/{scss → packages/amis-ui/scss}/themes/dark.scss.js +2 -2
- package/lib/{scss → packages/amis-ui/scss}/themes/default.scss.js +2 -2
- package/lib/themes/ang.css +4130 -873
- package/lib/themes/ang.js +2 -2
- package/lib/themes/antd.css +4130 -873
- package/lib/themes/antd.js +2 -2
- package/lib/themes/cxd.css +4131 -873
- package/lib/themes/cxd.js +2 -2
- package/lib/themes/dark.css +4130 -873
- package/lib/themes/dark.js +2 -2
- package/lib/themes/default.css +4131 -873
- package/package.json +5 -3
- package/scss/_components.scss +1752 -72
- package/scss/_mixins.scss +15 -6
- package/scss/_properties.scss +60 -314
- package/scss/base/_typography.scss +13 -0
- package/scss/components/_anchor-nav.scss +3 -3
- package/scss/components/_array-input.scss +1 -0
- package/scss/components/_button.scss +5 -0
- package/scss/components/_collapse-group.scss +2 -1
- package/scss/components/_collapse.scss +49 -35
- package/scss/components/_divider.scss +3 -3
- package/scss/components/_formula.scss +9 -1
- package/scss/components/_link.scss +15 -1
- package/scss/components/_menu.scss +1153 -0
- package/scss/components/_nav.scss +137 -82
- package/scss/components/_panel.scss +44 -17
- package/scss/components/_result-box.scss +4 -0
- package/scss/components/_tabs.scss +405 -137
- package/scss/components/form/_checks.scss +174 -14
- package/scss/components/form/_combo.scss +1 -0
- package/scss/components/form/_file.scss +59 -14
- package/scss/components/form/_form.scss +27 -28
- package/scss/components/form/_image.scss +95 -50
- package/scss/components/form/_list.scss +84 -1
- package/scss/components/form/_number.scss +247 -25
- package/scss/components/form/_range.scss +35 -13
- package/scss/components/form/_rating.scss +9 -3
- package/scss/components/form/_switch.scss +45 -47
- package/scss/components/form/_tag.scss +1 -0
- package/scss/components/form/_text.scss +189 -13
- package/scss/components/form/_textarea.scss +7 -9
- package/scss/components/form/_tree.scss +7 -2
- package/scss/themes/_ang-variables.scss +50 -50
- package/scss/themes/_antd-variables.scss +50 -50
- package/scss/themes/_common.scss +1 -0
- package/scss/themes/_cxd-variables.scss +51 -50
- package/scss/themes/_dark-variables.scss +50 -50
- package/esm/icons/check-circle.svg.js +0 -29
- package/esm/icons/status-fail.svg.js +0 -22
- package/esm/icons/status-info.svg.js +0 -26
- package/esm/icons/status-success.svg.js +0 -22
- package/esm/icons/status-warning.svg.js +0 -26
- package/lib/icons/check-circle.svg.js +0 -53
- package/lib/icons/status-fail.svg.js +0 -46
- package/lib/icons/status-info.svg.js +0 -50
- package/lib/icons/status-success.svg.js +0 -46
- package/lib/icons/status-warning.svg.js +0 -50
|
@@ -130,6 +130,7 @@ export interface TableState {
|
|
|
130
130
|
record: any;
|
|
131
131
|
target: HTMLTableRowElement;
|
|
132
132
|
} | null;
|
|
133
|
+
sort?: SortProps;
|
|
133
134
|
}
|
|
134
135
|
export declare class Table extends React.PureComponent<TableProps, TableState> {
|
|
135
136
|
static defaultProps: {
|
|
@@ -224,7 +225,7 @@ export declare class Table extends React.PureComponent<TableProps, TableState> {
|
|
|
224
225
|
render(): JSX.Element;
|
|
225
226
|
}
|
|
226
227
|
declare const _default: {
|
|
227
|
-
new (props: Omit<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
228
|
+
new (props: Omit<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
228
229
|
title: string;
|
|
229
230
|
className: string;
|
|
230
231
|
dataSource: never[];
|
|
@@ -241,7 +242,7 @@ declare const _default: {
|
|
|
241
242
|
getWrappedInstance(): any;
|
|
242
243
|
render(): JSX.Element;
|
|
243
244
|
context: any;
|
|
244
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
245
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
245
246
|
title: string;
|
|
246
247
|
className: string;
|
|
247
248
|
dataSource: never[];
|
|
@@ -254,7 +255,7 @@ declare const _default: {
|
|
|
254
255
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
255
256
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
256
257
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
257
|
-
readonly props: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
258
|
+
readonly props: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
258
259
|
title: string;
|
|
259
260
|
className: string;
|
|
260
261
|
dataSource: never[];
|
|
@@ -273,7 +274,7 @@ declare const _default: {
|
|
|
273
274
|
[key: string]: React.ReactInstance;
|
|
274
275
|
};
|
|
275
276
|
componentDidMount?(): void;
|
|
276
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
277
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
277
278
|
title: string;
|
|
278
279
|
className: string;
|
|
279
280
|
dataSource: never[];
|
|
@@ -287,7 +288,7 @@ declare const _default: {
|
|
|
287
288
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
288
289
|
componentWillUnmount?(): void;
|
|
289
290
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
290
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
291
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
291
292
|
title: string;
|
|
292
293
|
className: string;
|
|
293
294
|
dataSource: never[];
|
|
@@ -299,7 +300,7 @@ declare const _default: {
|
|
|
299
300
|
locale?: string | undefined;
|
|
300
301
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
301
302
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
302
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
303
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
303
304
|
title: string;
|
|
304
305
|
className: string;
|
|
305
306
|
dataSource: never[];
|
|
@@ -313,7 +314,7 @@ declare const _default: {
|
|
|
313
314
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
314
315
|
componentWillMount?(): void;
|
|
315
316
|
UNSAFE_componentWillMount?(): void;
|
|
316
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
317
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
317
318
|
title: string;
|
|
318
319
|
className: string;
|
|
319
320
|
dataSource: never[];
|
|
@@ -325,7 +326,7 @@ declare const _default: {
|
|
|
325
326
|
locale?: string | undefined;
|
|
326
327
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
327
328
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
328
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
329
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
329
330
|
title: string;
|
|
330
331
|
className: string;
|
|
331
332
|
dataSource: never[];
|
|
@@ -337,7 +338,7 @@ declare const _default: {
|
|
|
337
338
|
locale?: string | undefined;
|
|
338
339
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
339
340
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
340
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
341
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
341
342
|
title: string;
|
|
342
343
|
className: string;
|
|
343
344
|
dataSource: never[];
|
|
@@ -349,7 +350,7 @@ declare const _default: {
|
|
|
349
350
|
locale?: string | undefined;
|
|
350
351
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
351
352
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
352
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
353
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
353
354
|
title: string;
|
|
354
355
|
className: string;
|
|
355
356
|
dataSource: never[];
|
|
@@ -365,7 +366,7 @@ declare const _default: {
|
|
|
365
366
|
displayName: string;
|
|
366
367
|
contextType: React.Context<string>;
|
|
367
368
|
ComposedComponent: React.ComponentType<{
|
|
368
|
-
new (props: Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
369
|
+
new (props: Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
369
370
|
title: string;
|
|
370
371
|
className: string;
|
|
371
372
|
dataSource: never[];
|
|
@@ -382,7 +383,7 @@ declare const _default: {
|
|
|
382
383
|
getWrappedInstance(): any;
|
|
383
384
|
render(): JSX.Element;
|
|
384
385
|
context: any;
|
|
385
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
386
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
386
387
|
title: string;
|
|
387
388
|
className: string;
|
|
388
389
|
dataSource: never[];
|
|
@@ -395,7 +396,7 @@ declare const _default: {
|
|
|
395
396
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
396
397
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
397
398
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
398
|
-
readonly props: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
399
|
+
readonly props: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
399
400
|
title: string;
|
|
400
401
|
className: string;
|
|
401
402
|
dataSource: never[];
|
|
@@ -414,7 +415,7 @@ declare const _default: {
|
|
|
414
415
|
[key: string]: React.ReactInstance;
|
|
415
416
|
};
|
|
416
417
|
componentDidMount?(): void;
|
|
417
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
418
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
418
419
|
title: string;
|
|
419
420
|
className: string;
|
|
420
421
|
dataSource: never[];
|
|
@@ -428,7 +429,7 @@ declare const _default: {
|
|
|
428
429
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
429
430
|
componentWillUnmount?(): void;
|
|
430
431
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
431
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
432
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
432
433
|
title: string;
|
|
433
434
|
className: string;
|
|
434
435
|
dataSource: never[];
|
|
@@ -440,7 +441,7 @@ declare const _default: {
|
|
|
440
441
|
locale?: string | undefined;
|
|
441
442
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
442
443
|
}>, prevState: Readonly<{}>): any;
|
|
443
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
444
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
444
445
|
title: string;
|
|
445
446
|
className: string;
|
|
446
447
|
dataSource: never[];
|
|
@@ -454,7 +455,7 @@ declare const _default: {
|
|
|
454
455
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
455
456
|
componentWillMount?(): void;
|
|
456
457
|
UNSAFE_componentWillMount?(): void;
|
|
457
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
458
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
458
459
|
title: string;
|
|
459
460
|
className: string;
|
|
460
461
|
dataSource: never[];
|
|
@@ -466,7 +467,7 @@ declare const _default: {
|
|
|
466
467
|
locale?: string | undefined;
|
|
467
468
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
468
469
|
}>, nextContext: any): void;
|
|
469
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
470
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
470
471
|
title: string;
|
|
471
472
|
className: string;
|
|
472
473
|
dataSource: never[];
|
|
@@ -478,7 +479,7 @@ declare const _default: {
|
|
|
478
479
|
locale?: string | undefined;
|
|
479
480
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
480
481
|
}>, nextContext: any): void;
|
|
481
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
482
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
482
483
|
title: string;
|
|
483
484
|
className: string;
|
|
484
485
|
dataSource: never[];
|
|
@@ -490,7 +491,7 @@ declare const _default: {
|
|
|
490
491
|
locale?: string | undefined;
|
|
491
492
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
492
493
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
493
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
494
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
494
495
|
title: string;
|
|
495
496
|
className: string;
|
|
496
497
|
dataSource: never[];
|
|
@@ -510,7 +511,7 @@ declare const _default: {
|
|
|
510
511
|
ComposedComponent: typeof Table;
|
|
511
512
|
}>;
|
|
512
513
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
513
|
-
new (props: Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
514
|
+
new (props: Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
514
515
|
title: string;
|
|
515
516
|
className: string;
|
|
516
517
|
dataSource: never[];
|
|
@@ -527,7 +528,7 @@ declare const _default: {
|
|
|
527
528
|
getWrappedInstance(): any;
|
|
528
529
|
render(): JSX.Element;
|
|
529
530
|
context: any;
|
|
530
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
531
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
531
532
|
title: string;
|
|
532
533
|
className: string;
|
|
533
534
|
dataSource: never[];
|
|
@@ -540,7 +541,7 @@ declare const _default: {
|
|
|
540
541
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
541
542
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
542
543
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
543
|
-
readonly props: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
544
|
+
readonly props: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
544
545
|
title: string;
|
|
545
546
|
className: string;
|
|
546
547
|
dataSource: never[];
|
|
@@ -559,7 +560,7 @@ declare const _default: {
|
|
|
559
560
|
[key: string]: React.ReactInstance;
|
|
560
561
|
};
|
|
561
562
|
componentDidMount?(): void;
|
|
562
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
563
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
563
564
|
title: string;
|
|
564
565
|
className: string;
|
|
565
566
|
dataSource: never[];
|
|
@@ -573,7 +574,7 @@ declare const _default: {
|
|
|
573
574
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
574
575
|
componentWillUnmount?(): void;
|
|
575
576
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
576
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
577
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
577
578
|
title: string;
|
|
578
579
|
className: string;
|
|
579
580
|
dataSource: never[];
|
|
@@ -585,7 +586,7 @@ declare const _default: {
|
|
|
585
586
|
locale?: string | undefined;
|
|
586
587
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
587
588
|
}>, prevState: Readonly<{}>): any;
|
|
588
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
589
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
589
590
|
title: string;
|
|
590
591
|
className: string;
|
|
591
592
|
dataSource: never[];
|
|
@@ -599,7 +600,7 @@ declare const _default: {
|
|
|
599
600
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
600
601
|
componentWillMount?(): void;
|
|
601
602
|
UNSAFE_componentWillMount?(): void;
|
|
602
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
603
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
603
604
|
title: string;
|
|
604
605
|
className: string;
|
|
605
606
|
dataSource: never[];
|
|
@@ -611,7 +612,7 @@ declare const _default: {
|
|
|
611
612
|
locale?: string | undefined;
|
|
612
613
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
613
614
|
}>, nextContext: any): void;
|
|
614
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
615
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
615
616
|
title: string;
|
|
616
617
|
className: string;
|
|
617
618
|
dataSource: never[];
|
|
@@ -623,7 +624,7 @@ declare const _default: {
|
|
|
623
624
|
locale?: string | undefined;
|
|
624
625
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
625
626
|
}>, nextContext: any): void;
|
|
626
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
627
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
627
628
|
title: string;
|
|
628
629
|
className: string;
|
|
629
630
|
dataSource: never[];
|
|
@@ -635,7 +636,7 @@ declare const _default: {
|
|
|
635
636
|
locale?: string | undefined;
|
|
636
637
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
637
638
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
638
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
639
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
639
640
|
title: string;
|
|
640
641
|
className: string;
|
|
641
642
|
dataSource: never[];
|
|
@@ -655,7 +656,7 @@ declare const _default: {
|
|
|
655
656
|
ComposedComponent: typeof Table;
|
|
656
657
|
}, {}> & {
|
|
657
658
|
ComposedComponent: {
|
|
658
|
-
new (props: Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
659
|
+
new (props: Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
659
660
|
title: string;
|
|
660
661
|
className: string;
|
|
661
662
|
dataSource: never[];
|
|
@@ -672,7 +673,7 @@ declare const _default: {
|
|
|
672
673
|
getWrappedInstance(): any;
|
|
673
674
|
render(): JSX.Element;
|
|
674
675
|
context: any;
|
|
675
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
676
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
676
677
|
title: string;
|
|
677
678
|
className: string;
|
|
678
679
|
dataSource: never[];
|
|
@@ -685,7 +686,7 @@ declare const _default: {
|
|
|
685
686
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
686
687
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
687
688
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
688
|
-
readonly props: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
689
|
+
readonly props: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
689
690
|
title: string;
|
|
690
691
|
className: string;
|
|
691
692
|
dataSource: never[];
|
|
@@ -704,7 +705,7 @@ declare const _default: {
|
|
|
704
705
|
[key: string]: React.ReactInstance;
|
|
705
706
|
};
|
|
706
707
|
componentDidMount?(): void;
|
|
707
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
708
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
708
709
|
title: string;
|
|
709
710
|
className: string;
|
|
710
711
|
dataSource: never[];
|
|
@@ -718,7 +719,7 @@ declare const _default: {
|
|
|
718
719
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
719
720
|
componentWillUnmount?(): void;
|
|
720
721
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
721
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
722
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
722
723
|
title: string;
|
|
723
724
|
className: string;
|
|
724
725
|
dataSource: never[];
|
|
@@ -730,7 +731,7 @@ declare const _default: {
|
|
|
730
731
|
locale?: string | undefined;
|
|
731
732
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
732
733
|
}>, prevState: Readonly<{}>): any;
|
|
733
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
734
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
734
735
|
title: string;
|
|
735
736
|
className: string;
|
|
736
737
|
dataSource: never[];
|
|
@@ -744,7 +745,7 @@ declare const _default: {
|
|
|
744
745
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
745
746
|
componentWillMount?(): void;
|
|
746
747
|
UNSAFE_componentWillMount?(): void;
|
|
747
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
748
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
748
749
|
title: string;
|
|
749
750
|
className: string;
|
|
750
751
|
dataSource: never[];
|
|
@@ -756,7 +757,7 @@ declare const _default: {
|
|
|
756
757
|
locale?: string | undefined;
|
|
757
758
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
758
759
|
}>, nextContext: any): void;
|
|
759
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
760
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
760
761
|
title: string;
|
|
761
762
|
className: string;
|
|
762
763
|
dataSource: never[];
|
|
@@ -768,7 +769,7 @@ declare const _default: {
|
|
|
768
769
|
locale?: string | undefined;
|
|
769
770
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
770
771
|
}>, nextContext: any): void;
|
|
771
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
772
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
772
773
|
title: string;
|
|
773
774
|
className: string;
|
|
774
775
|
dataSource: never[];
|
|
@@ -780,7 +781,7 @@ declare const _default: {
|
|
|
780
781
|
locale?: string | undefined;
|
|
781
782
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
782
783
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
783
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "
|
|
784
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableProps, keyof LocaleProps>, "footer" | "style" | "onSelect" | "draggable" | "onDrag" | "classPrefix" | "classnames" | "theme" | "size" | "loading" | "loadingConfig" | "onRef" | "resizable" | "onSelectAll" | "scroll" | "rowSelection" | "onSort" | "expandable" | "bordered" | "headSummary" | "footSummary" | "sticky" | "onFilter" | "childrenColumnName" | "keyField" | "onRow" | "rowClassName" | "lineHeight" | "itemActions"> & Partial<Pick<Omit<TableProps, keyof LocaleProps>, "title" | "className" | "placeholder" | "columns" | "dataSource" | "indentSize" | "showHeader">> & Partial<Pick<{
|
|
784
785
|
title: string;
|
|
785
786
|
className: string;
|
|
786
787
|
dataSource: never[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
3
|
-
* Copyright 2018-
|
|
2
|
+
* amis-ui v2.7.0
|
|
3
|
+
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
'use strict';
|
|
@@ -659,12 +659,18 @@ var Table = /** @class */ (function (_super) {
|
|
|
659
659
|
: null)) : null,
|
|
660
660
|
isLeftExpandable && index === 0 ? expandableCell : null,
|
|
661
661
|
data.map(function (item, i) {
|
|
662
|
-
var _a, _b;
|
|
662
|
+
var _a, _b, _c;
|
|
663
663
|
var sort = null;
|
|
664
664
|
if (item.sorter) {
|
|
665
|
-
sort = (React__default["default"].createElement(HeadCellSort["default"], { column: item,
|
|
666
|
-
? onSort
|
|
667
|
-
|
|
665
|
+
sort = (React__default["default"].createElement(HeadCellSort["default"], { column: item, active: !!((_a = _this.state.sort) === null || _a === void 0 ? void 0 : _a.orderBy) &&
|
|
666
|
+
_this.state.sort.orderBy === (item === null || item === void 0 ? void 0 : item.name), onSort: function (payload) {
|
|
667
|
+
_this.setState({
|
|
668
|
+
sort: payload
|
|
669
|
+
});
|
|
670
|
+
if (onSort) {
|
|
671
|
+
onSort(payload);
|
|
672
|
+
}
|
|
673
|
+
else {
|
|
668
674
|
if (typeof item.sorter === 'function') {
|
|
669
675
|
if (payload.orderBy) {
|
|
670
676
|
var sortList = tslib.__spreadArray([], _this.state.dataSource, true);
|
|
@@ -676,7 +682,8 @@ var Table = /** @class */ (function (_super) {
|
|
|
676
682
|
_this.setState({ dataSource: tslib.__spreadArray([], dataSource, true) });
|
|
677
683
|
}
|
|
678
684
|
}
|
|
679
|
-
}
|
|
685
|
+
}
|
|
686
|
+
} }));
|
|
680
687
|
}
|
|
681
688
|
var filter = null;
|
|
682
689
|
if (item.filterDropdown) {
|
|
@@ -688,14 +695,14 @@ var Table = /** @class */ (function (_super) {
|
|
|
688
695
|
// th的最后一行才可调整列宽
|
|
689
696
|
// 分组情况下 最后一行才和列配置个数对应
|
|
690
697
|
// 就可以根据index找到col 不依赖name
|
|
691
|
-
var noChildren = !((
|
|
698
|
+
var noChildren = !((_b = item.children) === null || _b === void 0 ? void 0 : _b.length);
|
|
692
699
|
var cIndex = -1;
|
|
693
700
|
if (noChildren) {
|
|
694
701
|
// 根据name去tdColumns匹配出index
|
|
695
702
|
// 没设置name的 那一定不是要绑定数据的列 一般都是分组的上层 也不会出现调整列宽
|
|
696
703
|
cIndex = tdColumns.findIndex(function (c) { return c.name === item.name; });
|
|
697
704
|
}
|
|
698
|
-
var children = !((
|
|
705
|
+
var children = !((_c = item.children) === null || _c === void 0 ? void 0 : _c.length) ? (React__default["default"].createElement("span", null,
|
|
699
706
|
sort,
|
|
700
707
|
filter,
|
|
701
708
|
resizable ? (React__default["default"].createElement("i", { className: cx('Table-thead-resizable'), onMouseDown: function (e) { return _this.onResizeMouseDown(e, cIndex); } })) : null)) : null;
|