amis-ui 2.7.2 → 2.8.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 +1 -1
- package/esm/_virtual/react-is.development.js +1 -1
- package/esm/_virtual/react-is.production.min.js +1 -1
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.js +5 -2
- package/esm/components/BaiduMapPicker.js +1 -1
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +23 -13
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +12 -12
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.d.ts +40 -40
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.js +28 -15
- package/esm/components/ConfirmBox.js +9 -6
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +40 -40
- package/esm/components/DatePicker.js +6 -4
- package/esm/components/DateRangePicker.d.ts +40 -40
- package/esm/components/DateRangePicker.js +7 -5
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.js +1 -1
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/InputTable.js +28 -15
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.d.ts +40 -40
- package/esm/components/LocationPicker.js +1 -1
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +40 -40
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.d.ts +15 -11
- package/esm/components/NumberInput.js +9 -9
- package/esm/components/Pagination.js +1 -1
- package/esm/components/Picker.js +4 -4
- package/esm/components/PickerColumn.js +4 -4
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.d.ts +18 -0
- package/esm/components/PopOverContainer.js +42 -9
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +4 -4
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.js +1 -1
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +40 -40
- package/esm/components/ResultBox.js +3 -3
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.d.ts +82 -40
- package/esm/components/SearchBox.js +10 -7
- package/esm/components/Select.d.ts +195 -193
- package/esm/components/Select.js +19 -9
- package/esm/components/Selection.js +3 -3
- package/esm/components/SparkLine.js +4 -4
- package/esm/components/Spinner.js +29 -33
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.d.ts +41 -40
- package/esm/components/Tabs.js +15 -10
- package/esm/components/TabsTransfer.js +1 -1
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.js +1 -1
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +3 -2
- package/esm/components/Tinymce.js +1 -1
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.js +3 -3
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.js +1 -1
- package/esm/components/TransferDropDown.d.ts +44 -40
- package/esm/components/TransferDropDown.js +3 -3
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.d.ts +82 -40
- package/esm/components/Tree.js +45 -28
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.js +32 -13
- package/esm/components/WithRemoteConfig.js +1 -1
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.js +4 -4
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.js +1 -1
- package/esm/components/calendar/MonthsView.js +3 -3
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.js +1 -1
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Formula.js +1 -1
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.js +1 -1
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.js +1 -1
- package/esm/components/condition-builder/Value.js +2 -2
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +5 -4
- package/esm/components/formula/Editor.js +3 -3
- package/esm/components/formula/FuncList.js +4 -4
- package/esm/components/formula/Picker.js +3 -3
- package/esm/components/formula/VariableList.js +3 -2
- package/esm/components/formula/plugin.js +3 -2
- package/esm/components/icons.js +4 -4
- package/esm/components/json-schema/Array.js +4 -4
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +30 -10
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.js +5 -5
- package/esm/components/menu/SubMenu.js +5 -6
- package/esm/components/menu/index.d.ts +6 -9
- package/esm/components/menu/index.js +59 -43
- package/esm/components/schema-editor/Array.js +3 -3
- package/esm/components/schema-editor/Common.d.ts +10 -0
- package/esm/components/schema-editor/Common.js +16 -6
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.d.ts +2 -1
- package/esm/components/schema-editor/Object.js +10 -6
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.d.ts +46 -41
- package/esm/components/schema-editor/index.js +6 -4
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.js +3 -3
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.js +1 -1
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.js +19 -19
- package/esm/components/virtual-list/AutoSizer.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +3 -3
- package/esm/hooks/use-sub-form.js +1 -1
- package/esm/hooks/use-touch.js +3 -3
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +56 -32
- package/esm/icons/alert-danger.svg.js +1 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +1 -1
- package/esm/icons/down.svg.js +1 -1
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -1
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +1 -1
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +1 -1
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +1 -1
- package/esm/icons/right-double-arrow.svg.js +1 -1
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +1 -1
- package/esm/icons/rotate-right.svg.js +1 -1
- package/esm/icons/scale-origin.svg.js +1 -1
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +1 -1
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +1 -1
- package/esm/icons/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/upload.svg.js +1 -1
- package/esm/icons/user-remove.svg.js +1 -1
- package/esm/icons/view.svg.js +1 -1
- package/esm/icons/volume.svg.js +1 -1
- package/esm/icons/warning-mark.svg.js +1 -1
- package/esm/icons/warning.svg.js +1 -1
- package/esm/icons/window-restore.svg.js +1 -1
- package/esm/icons/zoom-in.svg.js +1 -1
- package/esm/icons/zoom-out.svg.js +1 -1
- package/esm/index.js +1 -1
- package/esm/locale/de-DE.js +1 -1
- package/esm/locale/en-US.js +1 -1
- package/esm/locale/zh-CN.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +2 -4
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +2 -4
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/esm/node_modules/rc-overflow/es/Item.js +3 -3
- package/esm/node_modules/rc-overflow/es/Overflow.js +3 -3
- package/esm/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/esm/node_modules/rc-overflow/es/hooks/useBatchFrameState.js +1 -1
- package/esm/node_modules/rc-overflow/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/Collection.js +4 -5
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -7
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/index.js +38 -37
- package/esm/node_modules/rc-resize-observer/es/index.js +13 -11
- package/esm/node_modules/rc-resize-observer/es/utils/observerUtil.js +6 -12
- package/esm/node_modules/rc-util/es/Children/toArray.js +1 -1
- package/esm/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/esm/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useState.js +1 -1
- package/esm/node_modules/rc-util/es/raf.js +1 -1
- package/esm/node_modules/rc-util/es/ref.js +1 -1
- package/esm/node_modules/rc-util/es/warning.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/index.js +1 -1
- package/esm/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/_virtual/index.js +1 -1
- package/lib/_virtual/react-is.development.js +1 -1
- package/lib/_virtual/react-is.production.min.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +10 -10
- package/lib/components/Alert2.js +1 -1
- package/lib/components/AnchorNav.d.ts +10 -10
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/AssociatedSelection.js +1 -1
- package/lib/components/Avatar.d.ts +10 -10
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.js +5 -2
- package/lib/components/BaiduMapPicker.js +1 -1
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.d.ts +10 -10
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +22 -12
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/ChainedSelection.js +1 -1
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CityArea.js +11 -11
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +10 -10
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.js +27 -14
- package/lib/components/ConfirmBox.d.ts +40 -40
- package/lib/components/ConfirmBox.js +8 -5
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +40 -40
- package/lib/components/DatePicker.js +5 -3
- package/lib/components/DateRangePicker.d.ts +40 -40
- package/lib/components/DateRangePicker.js +6 -4
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.d.ts +10 -10
- package/lib/components/Drawer.js +1 -1
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/InputTable.js +27 -14
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +40 -40
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Modal.d.ts +40 -40
- package/lib/components/Modal.js +1 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +40 -40
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +15 -11
- package/lib/components/NumberInput.js +8 -8
- package/lib/components/Pagination.js +1 -1
- package/lib/components/Picker.js +3 -3
- package/lib/components/PickerColumn.js +3 -3
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.d.ts +18 -0
- package/lib/components/PopOverContainer.js +41 -8
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +10 -10
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.js +4 -4
- package/lib/components/Radios.d.ts +10 -10
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.js +1 -1
- package/lib/components/Rating.d.ts +10 -10
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +40 -40
- package/lib/components/ResultBox.js +2 -2
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +82 -40
- package/lib/components/SearchBox.js +9 -6
- package/lib/components/Select.d.ts +195 -193
- package/lib/components/Select.js +18 -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 +3 -3
- package/lib/components/Spinner.d.ts +10 -10
- package/lib/components/Spinner.js +29 -33
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +1 -1
- package/lib/components/TableSelection.d.ts +40 -40
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +41 -40
- package/lib/components/Tabs.js +15 -10
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +1 -1
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +10 -10
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +1 -1
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +3 -2
- package/lib/components/Tinymce.js +1 -1
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.js +2 -2
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +40 -40
- package/lib/components/Transfer.js +1 -1
- package/lib/components/TransferDropDown.d.ts +44 -40
- package/lib/components/TransferDropDown.js +3 -3
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.d.ts +82 -40
- package/lib/components/Tree.js +44 -27
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +1 -1
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +31 -12
- package/lib/components/WithRemoteConfig.js +1 -1
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.js +3 -3
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.js +1 -1
- package/lib/components/calendar/MonthsView.js +2 -2
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.js +1 -1
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.js +1 -1
- package/lib/components/condition-builder/Formula.js +1 -1
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.js +1 -1
- package/lib/components/condition-builder/GroupOrItem.js +1 -1
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.js +1 -1
- package/lib/components/condition-builder/Value.js +2 -2
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.js +4 -3
- package/lib/components/formula/Editor.d.ts +40 -40
- package/lib/components/formula/Editor.js +2 -2
- package/lib/components/formula/FuncList.js +3 -3
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +2 -2
- package/lib/components/formula/VariableList.js +3 -2
- package/lib/components/formula/plugin.js +3 -2
- package/lib/components/icons.js +3 -3
- package/lib/components/json-schema/Array.js +3 -3
- package/lib/components/json-schema/Item.js +1 -1
- package/lib/components/json-schema/Object.js +29 -9
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +5 -5
- package/lib/components/menu/SubMenu.js +4 -5
- package/lib/components/menu/index.d.ts +16 -19
- package/lib/components/menu/index.js +56 -41
- package/lib/components/schema-editor/Array.js +3 -3
- package/lib/components/schema-editor/Common.d.ts +10 -0
- package/lib/components/schema-editor/Common.js +16 -5
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.d.ts +2 -1
- package/lib/components/schema-editor/Object.js +10 -6
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.d.ts +46 -41
- package/lib/components/schema-editor/index.js +6 -4
- package/lib/components/table/Cell.d.ts +40 -40
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.js +2 -2
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.js +1 -1
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/index.d.ts +40 -40
- package/lib/components/table/index.js +18 -18
- package/lib/components/virtual-list/AutoSizer.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/hooks/use-set-state.js +2 -2
- package/lib/hooks/use-sub-form.js +1 -1
- package/lib/hooks/use-touch.js +2 -2
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +55 -31
- package/lib/icons/alert-danger.svg.js +1 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check.svg.js +1 -1
- package/lib/icons/clock.svg.js +1 -1
- package/lib/icons/close-small.svg.js +1 -1
- package/lib/icons/close.svg.js +1 -1
- package/lib/icons/cloud-upload.svg.js +1 -1
- package/lib/icons/column-filter.svg.js +1 -1
- package/lib/icons/columns.svg.js +1 -1
- package/lib/icons/compress-alt.svg.js +1 -1
- package/lib/icons/copy.svg.js +1 -1
- package/lib/icons/date.svg.js +1 -1
- package/lib/icons/department.svg.js +1 -1
- package/lib/icons/desk-empty.svg.js +1 -1
- package/lib/icons/dot.svg.js +1 -1
- package/lib/icons/down-arrow-bold.svg.js +1 -1
- package/lib/icons/down.svg.js +1 -1
- package/lib/icons/download.svg.js +1 -1
- package/lib/icons/drag-bar.svg.js +1 -1
- package/lib/icons/drag.svg.js +1 -1
- package/lib/icons/edit.svg.js +1 -1
- package/lib/icons/ellipsis-v.svg.js +1 -1
- package/lib/icons/enter.svg.js +1 -1
- package/lib/icons/exchange.svg.js +1 -1
- package/lib/icons/expand-alt.svg.js +1 -1
- package/lib/icons/fail.svg.js +1 -1
- package/lib/icons/file.svg.js +1 -1
- package/lib/icons/filter.svg.js +1 -1
- package/lib/icons/folder.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +1 -1
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +1 -1
- package/lib/icons/pause.svg.js +1 -1
- package/lib/icons/pencil.svg.js +1 -1
- package/lib/icons/play.svg.js +1 -1
- package/lib/icons/plus-cicle.svg.js +1 -1
- package/lib/icons/plus-fine.svg.js +1 -1
- package/lib/icons/plus.svg.js +1 -1
- package/lib/icons/post.svg.js +1 -1
- package/lib/icons/question-mark.svg.js +1 -1
- package/lib/icons/question.svg.js +1 -1
- package/lib/icons/redo.svg.js +1 -1
- package/lib/icons/refresh.svg.js +1 -1
- package/lib/icons/reload.svg.js +1 -1
- package/lib/icons/remove.svg.js +1 -1
- package/lib/icons/retry.svg.js +1 -1
- package/lib/icons/right-arrow-bold.svg.js +1 -1
- package/lib/icons/right-arrow.svg.js +1 -1
- package/lib/icons/right-double-arrow.svg.js +1 -1
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +1 -1
- package/lib/icons/rotate-right.svg.js +1 -1
- package/lib/icons/scale-origin.svg.js +1 -1
- package/lib/icons/schedule.svg.js +1 -1
- package/lib/icons/search.svg.js +1 -1
- package/lib/icons/setting.svg.js +1 -1
- package/lib/icons/slider-handle-icon.svg.js +1 -1
- package/lib/icons/sort-asc.svg.js +1 -1
- package/lib/icons/sort-default.svg.js +1 -1
- package/lib/icons/sort-desc.svg.js +1 -1
- package/lib/icons/star.svg.js +1 -1
- package/lib/icons/status-close.svg.js +1 -1
- package/lib/icons/steps-finsh.svg.js +1 -1
- package/lib/icons/success.svg.js +1 -1
- package/lib/icons/transparent.svg.js +1 -1
- package/lib/icons/trash.svg.js +1 -1
- package/lib/icons/tree-down.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/upload.svg.js +1 -1
- package/lib/icons/user-remove.svg.js +1 -1
- package/lib/icons/view.svg.js +1 -1
- package/lib/icons/volume.svg.js +1 -1
- package/lib/icons/warning-mark.svg.js +1 -1
- package/lib/icons/warning.svg.js +1 -1
- package/lib/icons/window-restore.svg.js +1 -1
- package/lib/icons/zoom-in.svg.js +1 -1
- package/lib/icons/zoom-out.svg.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +2 -4
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +2 -4
- package/lib/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/lib/node_modules/rc-overflow/es/Item.js +1 -1
- package/lib/node_modules/rc-overflow/es/Overflow.js +1 -1
- package/lib/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/lib/node_modules/rc-overflow/es/hooks/useBatchFrameState.js +1 -1
- package/lib/node_modules/rc-overflow/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/Collection.js +4 -5
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -7
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/index.js +38 -37
- package/lib/node_modules/rc-resize-observer/es/index.js +11 -9
- package/lib/node_modules/rc-resize-observer/es/utils/observerUtil.js +6 -12
- package/lib/node_modules/rc-util/es/Children/toArray.js +1 -1
- package/lib/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/lib/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useState.js +1 -1
- package/lib/node_modules/rc-util/es/raf.js +1 -1
- package/lib/node_modules/rc-util/es/ref.js +1 -1
- package/lib/node_modules/rc-util/es/warning.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/index.js +1 -1
- package/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/lib/packages/amis-ui/scss/helper.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/ang.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/antd.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/cxd.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/dark.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +903 -429
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +917 -435
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +903 -429
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +903 -429
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +903 -429
- package/package.json +4 -4
- package/scss/_components.scss +464 -6
- package/scss/_properties.scss +3 -199
- package/scss/base/_normalize.scss +11 -0
- package/scss/components/_button.scss +8 -17
- package/scss/components/_formula.scss +13 -0
- package/scss/components/_menu.scss +93 -75
- package/scss/components/_result-box.scss +83 -17
- package/scss/components/_table.scss +0 -5
- package/scss/components/_tabs.scss +4 -0
- package/scss/components/form/_chained-select.scss +5 -0
- package/scss/components/form/_checks.scss +0 -4
- package/scss/components/form/_date-range.scss +73 -11
- package/scss/components/form/_date.scss +93 -23
- package/scss/components/form/_form.scss +0 -1
- package/scss/components/form/_input-group.scss +11 -0
- package/scss/components/form/_location.scss +16 -16
- package/scss/components/form/_nested-select.scss +6 -2
- package/scss/components/form/_number.scss +12 -3
- package/scss/components/form/_select.scss +119 -52
- package/scss/components/form/_selection.scss +62 -40
- package/scss/components/form/_tag.scss +0 -4
- package/scss/components/form/_text.scss +13 -3
- package/scss/components/form/_tree.scss +22 -2
- package/scss/components/react-datetime.scss +8 -2
- package/scss/themes/_antd-variables.scss +20 -6
package/esm/components/Tabs.d.ts
CHANGED
|
@@ -166,6 +166,7 @@ export declare class Tabs extends React.Component<TabsProps, any> {
|
|
|
166
166
|
* 监听导航上的滚动事件
|
|
167
167
|
*/
|
|
168
168
|
handleWheel(e: WheelEvent): void;
|
|
169
|
+
generateTabKey(hash: any, eventKey: any, index: number): string;
|
|
169
170
|
renderNav(child: any, index: number, showClose: boolean): JSX.Element | undefined;
|
|
170
171
|
renderTab(child: any, index: number): React.DetailedReactHTMLElement<any, HTMLElement> | undefined;
|
|
171
172
|
renderArrow(type: 'left' | 'right'): JSX.Element | null | undefined;
|
|
@@ -174,7 +175,7 @@ export declare class Tabs extends React.Component<TabsProps, any> {
|
|
|
174
175
|
render(): JSX.Element | null;
|
|
175
176
|
}
|
|
176
177
|
declare const _default: {
|
|
177
|
-
new (props: Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
178
|
+
new (props: Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
178
179
|
locale?: string | undefined;
|
|
179
180
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
180
181
|
}): {
|
|
@@ -183,12 +184,12 @@ declare const _default: {
|
|
|
183
184
|
getWrappedInstance(): any;
|
|
184
185
|
render(): JSX.Element;
|
|
185
186
|
context: any;
|
|
186
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
187
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
187
188
|
locale?: string | undefined;
|
|
188
189
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
189
190
|
}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
190
191
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
191
|
-
readonly props: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
192
|
+
readonly props: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
192
193
|
locale?: string | undefined;
|
|
193
194
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
194
195
|
}> & Readonly<{
|
|
@@ -199,35 +200,35 @@ declare const _default: {
|
|
|
199
200
|
[key: string]: React.ReactInstance;
|
|
200
201
|
};
|
|
201
202
|
componentDidMount?(): void;
|
|
202
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
203
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
203
204
|
locale?: string | undefined;
|
|
204
205
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
205
206
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
206
207
|
componentWillUnmount?(): void;
|
|
207
208
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
208
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
209
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
209
210
|
locale?: string | undefined;
|
|
210
211
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
211
212
|
}>, prevState: Readonly<{}>): any;
|
|
212
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
213
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
213
214
|
locale?: string | undefined;
|
|
214
215
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
215
216
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
216
217
|
componentWillMount?(): void;
|
|
217
218
|
UNSAFE_componentWillMount?(): void;
|
|
218
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
219
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
219
220
|
locale?: string | undefined;
|
|
220
221
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
221
222
|
}>, nextContext: any): void;
|
|
222
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
223
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
223
224
|
locale?: string | undefined;
|
|
224
225
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
225
226
|
}>, nextContext: any): void;
|
|
226
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
227
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
227
228
|
locale?: string | undefined;
|
|
228
229
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
229
230
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
230
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
231
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
231
232
|
locale?: string | undefined;
|
|
232
233
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
233
234
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -235,15 +236,15 @@ declare const _default: {
|
|
|
235
236
|
displayName: string;
|
|
236
237
|
contextType: React.Context<string>;
|
|
237
238
|
ComposedComponent: React.ComponentType<{
|
|
238
|
-
new (props: Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
239
|
+
new (props: Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps): {
|
|
239
240
|
ref: any;
|
|
240
241
|
childRef(ref: any): void;
|
|
241
242
|
getWrappedInstance(): any;
|
|
242
243
|
render(): JSX.Element;
|
|
243
244
|
context: any;
|
|
244
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
245
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
245
246
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
246
|
-
readonly props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
247
|
+
readonly props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
247
248
|
children?: React.ReactNode;
|
|
248
249
|
}>;
|
|
249
250
|
state: Readonly<{}>;
|
|
@@ -251,17 +252,17 @@ declare const _default: {
|
|
|
251
252
|
[key: string]: React.ReactInstance;
|
|
252
253
|
};
|
|
253
254
|
componentDidMount?(): void;
|
|
254
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
255
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
255
256
|
componentWillUnmount?(): void;
|
|
256
257
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
257
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
258
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
258
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
259
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
259
260
|
componentWillMount?(): void;
|
|
260
261
|
UNSAFE_componentWillMount?(): void;
|
|
261
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
262
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
263
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
264
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
262
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
263
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
264
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
265
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
265
266
|
};
|
|
266
267
|
displayName: string;
|
|
267
268
|
contextType: React.Context<string>;
|
|
@@ -270,15 +271,15 @@ declare const _default: {
|
|
|
270
271
|
ComposedComponent: typeof Tabs;
|
|
271
272
|
}>;
|
|
272
273
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
273
|
-
new (props: Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
274
|
+
new (props: Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps): {
|
|
274
275
|
ref: any;
|
|
275
276
|
childRef(ref: any): void;
|
|
276
277
|
getWrappedInstance(): any;
|
|
277
278
|
render(): JSX.Element;
|
|
278
279
|
context: any;
|
|
279
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
280
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
280
281
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
281
|
-
readonly props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
282
|
+
readonly props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
282
283
|
children?: React.ReactNode;
|
|
283
284
|
}>;
|
|
284
285
|
state: Readonly<{}>;
|
|
@@ -286,17 +287,17 @@ declare const _default: {
|
|
|
286
287
|
[key: string]: React.ReactInstance;
|
|
287
288
|
};
|
|
288
289
|
componentDidMount?(): void;
|
|
289
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
290
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
290
291
|
componentWillUnmount?(): void;
|
|
291
292
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
292
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
293
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
293
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
294
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
294
295
|
componentWillMount?(): void;
|
|
295
296
|
UNSAFE_componentWillMount?(): void;
|
|
296
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
297
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
298
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
299
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
297
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
298
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
299
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
300
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
300
301
|
};
|
|
301
302
|
displayName: string;
|
|
302
303
|
contextType: React.Context<string>;
|
|
@@ -305,15 +306,15 @@ declare const _default: {
|
|
|
305
306
|
ComposedComponent: typeof Tabs;
|
|
306
307
|
}, {}> & {
|
|
307
308
|
ComposedComponent: {
|
|
308
|
-
new (props: Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
309
|
+
new (props: Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps): {
|
|
309
310
|
ref: any;
|
|
310
311
|
childRef(ref: any): void;
|
|
311
312
|
getWrappedInstance(): any;
|
|
312
313
|
render(): JSX.Element;
|
|
313
314
|
context: any;
|
|
314
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
315
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
315
316
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
316
|
-
readonly props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
317
|
+
readonly props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
317
318
|
children?: React.ReactNode;
|
|
318
319
|
}>;
|
|
319
320
|
state: Readonly<{}>;
|
|
@@ -321,17 +322,17 @@ declare const _default: {
|
|
|
321
322
|
[key: string]: React.ReactInstance;
|
|
322
323
|
};
|
|
323
324
|
componentDidMount?(): void;
|
|
324
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
325
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
325
326
|
componentWillUnmount?(): void;
|
|
326
327
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
327
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
328
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
328
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
329
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
329
330
|
componentWillMount?(): void;
|
|
330
331
|
UNSAFE_componentWillMount?(): void;
|
|
331
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
332
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
333
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
334
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "
|
|
332
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
333
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
334
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
335
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "popOverContainer" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
335
336
|
};
|
|
336
337
|
displayName: string;
|
|
337
338
|
contextType: React.Context<string>;
|
package/esm/components/Tabs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.8.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -124,10 +124,11 @@ var Tabs = /** @class */ (function (_super) {
|
|
|
124
124
|
var _a, _b;
|
|
125
125
|
return ({
|
|
126
126
|
eventKey: (_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.eventKey,
|
|
127
|
-
|
|
127
|
+
// 这里 title 可能是 React.ReactNode,只对比 string
|
|
128
|
+
title: typeof ((_b = item === null || item === void 0 ? void 0 : item.props) === null || _b === void 0 ? void 0 : _b.title) === 'string' ? item.props.title : ''
|
|
128
129
|
});
|
|
129
130
|
})
|
|
130
|
-
:
|
|
131
|
+
: []
|
|
131
132
|
}, {
|
|
132
133
|
activeKey: preProps.activeKey,
|
|
133
134
|
children: Array.isArray(preProps.children)
|
|
@@ -135,10 +136,10 @@ var Tabs = /** @class */ (function (_super) {
|
|
|
135
136
|
var _a, _b;
|
|
136
137
|
return ({
|
|
137
138
|
eventKey: (_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.eventKey,
|
|
138
|
-
title: (_b = item === null || item === void 0 ? void 0 : item.props) === null || _b === void 0 ? void 0 : _b.title
|
|
139
|
+
title: typeof ((_b = item === null || item === void 0 ? void 0 : item.props) === null || _b === void 0 ? void 0 : _b.title) === 'string' ? item.props.title : ''
|
|
139
140
|
});
|
|
140
141
|
})
|
|
141
|
-
:
|
|
142
|
+
: []
|
|
142
143
|
});
|
|
143
144
|
// 判断是否是由滚动触发的数据更新,如果是则不需要再次判断容器与内容的关系
|
|
144
145
|
if (!this.scroll && !this.draging && isTabsModified) {
|
|
@@ -335,13 +336,17 @@ var Tabs = /** @class */ (function (_super) {
|
|
|
335
336
|
this.checkArrowStatus();
|
|
336
337
|
this.scroll = true;
|
|
337
338
|
};
|
|
339
|
+
// 处理 hash 作为 key 时重复的问题
|
|
340
|
+
Tabs.prototype.generateTabKey = function (hash, eventKey, index) {
|
|
341
|
+
return (hash === eventKey ? 'hash-' : '') + (eventKey !== null && eventKey !== void 0 ? eventKey : index);
|
|
342
|
+
};
|
|
338
343
|
Tabs.prototype.renderNav = function (child, index, showClose) {
|
|
339
344
|
var _this = this;
|
|
340
345
|
if (!child) {
|
|
341
346
|
return;
|
|
342
347
|
}
|
|
343
348
|
var _a = this.props, cx = _a.classnames, activeKeyProp = _a.activeKey, mode = _a.mode, closable = _a.closable; _a.draggable; var showTip = _a.showTip, showTipClassName = _a.showTipClassName, editable = _a.editable;
|
|
344
|
-
var _b = child.props, eventKey = _b.eventKey, disabled = _b.disabled, icon = _b.icon, iconPosition = _b.iconPosition, title = _b.title, toolbar = _b.toolbar, tabClassName = _b.tabClassName, tabClosable = _b.closable;
|
|
349
|
+
var _b = child.props, eventKey = _b.eventKey, disabled = _b.disabled, icon = _b.icon, iconPosition = _b.iconPosition, title = _b.title, toolbar = _b.toolbar, tabClassName = _b.tabClassName, tabClosable = _b.closable, hash = _b.hash;
|
|
345
350
|
var _c = this.state, editingIndex = _c.editingIndex, editInputText = _c.editInputText;
|
|
346
351
|
var activeKey = activeKeyProp === undefined && index === 0 ? eventKey : activeKeyProp;
|
|
347
352
|
var iconElement = generateIcon(cx, icon, 'Icon');
|
|
@@ -358,7 +363,7 @@ var Tabs = /** @class */ (function (_super) {
|
|
|
358
363
|
" ",
|
|
359
364
|
title))) : (title),
|
|
360
365
|
React__default.isValidElement(toolbar) ? toolbar : null))));
|
|
361
|
-
return (React__default.createElement("li", { className: cx('Tabs-link', activeKey === eventKey ? 'is-active' : '', disabled ? 'is-disabled' : '', tabClassName), key:
|
|
366
|
+
return (React__default.createElement("li", { className: cx('Tabs-link', activeKey === eventKey ? 'is-active' : '', disabled ? 'is-disabled' : '', tabClassName), key: this.generateTabKey(hash, eventKey, index), onClick: function () { return (disabled ? '' : _this.handleSelect(eventKey)); }, onDoubleClick: function () {
|
|
362
367
|
editable && _this.handleStartEdit(index, title);
|
|
363
368
|
} },
|
|
364
369
|
showTip ? (React__default.createElement(TooltipWrapper, { placement: "top", tooltip: title, trigger: "hover", tooltipClassName: showTipClassName }, link)) : (link),
|
|
@@ -378,10 +383,10 @@ var Tabs = /** @class */ (function (_super) {
|
|
|
378
383
|
if (!child) {
|
|
379
384
|
return;
|
|
380
385
|
}
|
|
381
|
-
var _a =
|
|
382
|
-
var
|
|
386
|
+
var _a = (child === null || child === void 0 ? void 0 : child.props) || {}, hash = _a.hash, eventKey = _a.eventKey;
|
|
387
|
+
var _b = this.props, activeKeyProp = _b.activeKey, classnames = _b.classnames;
|
|
383
388
|
var activeKey = activeKeyProp === undefined && index === 0 ? eventKey : activeKeyProp;
|
|
384
|
-
return React__default.cloneElement(child, __assign(__assign({}, child.props), { key: eventKey, classnames: classnames, activeKey: activeKey }));
|
|
389
|
+
return React__default.cloneElement(child, __assign(__assign({}, child.props), { key: this.generateTabKey(hash, eventKey, index), classnames: classnames, activeKey: activeKey }));
|
|
385
390
|
};
|
|
386
391
|
Tabs.prototype.renderArrow = function (type) {
|
|
387
392
|
var _this = this;
|
package/esm/components/Tag.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.8.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
import { __read } from 'tslib';
|
|
6
7
|
import React__default, { useState } from 'react';
|
|
7
8
|
import { themeable, localeable, generateIcon } from 'amis-core';
|
|
8
9
|
import { Icon } from './icons.js';
|
|
@@ -10,7 +11,7 @@ import { Icon } from './icons.js';
|
|
|
10
11
|
function TimelineItem(props) {
|
|
11
12
|
var _a;
|
|
12
13
|
var time = props.time, title = props.title, detail = props.detail, detailCollapsedText = props.detailCollapsedText, detailExpandedText = props.detailExpandedText, color = props.color, icon = props.icon, iconClassName = props.iconClassName, cx = props.classnames, __ = props.translate, classPrefix = props.classPrefix, key = props.key;
|
|
13
|
-
var _b = useState(false), detailVisible = _b[0], setDetailVisible = _b[1];
|
|
14
|
+
var _b = __read(useState(false), 2), detailVisible = _b[0], setDetailVisible = _b[1];
|
|
14
15
|
var renderDetail = function (detail, detailCollapsedText, detailExpandedText) {
|
|
15
16
|
if (detailCollapsedText === void 0) { detailCollapsedText = __('Timeline.collapseText'); }
|
|
16
17
|
if (detailExpandedText === void 0) { detailExpandedText = __('Timeline.expandText'); }
|
package/esm/components/Toast.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.8.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { __extends, __assign, __decorate, __metadata } from 'tslib';
|
|
6
|
+
import { __extends, __assign, __read, __decorate, __metadata } from 'tslib';
|
|
7
7
|
import Transition, { ENTERING, ENTERED, EXITING } from 'react-transition-group/Transition';
|
|
8
8
|
import React__default from 'react';
|
|
9
9
|
import Html from './Html.js';
|
|
@@ -80,7 +80,7 @@ var ToastComponent = /** @class */ (function (_super) {
|
|
|
80
80
|
ToastComponent.prototype.handleDismissed = function (index) {
|
|
81
81
|
var _a;
|
|
82
82
|
var items = this.state.items.concat();
|
|
83
|
-
var
|
|
83
|
+
var _b = __read(items.splice(index, 1), 1), item = _b[0];
|
|
84
84
|
(_a = item === null || item === void 0 ? void 0 : item.onDissmiss) === null || _a === void 0 ? void 0 : _a.call(item);
|
|
85
85
|
this.setState({
|
|
86
86
|
items: items
|