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
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-ui v2.7.0
|
|
3
|
+
* Copyright 2018-2023 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
|
+
|
|
10
|
+
var tslib = require('tslib');
|
|
11
|
+
var React = require('react');
|
|
12
|
+
var pick = require('lodash/pick');
|
|
13
|
+
var RcMenu = require('rc-menu');
|
|
14
|
+
var amisCore = require('amis-core');
|
|
15
|
+
var icons = require('../icons.js');
|
|
16
|
+
var Badge = require('../Badge.js');
|
|
17
|
+
var MenuContext = require('./MenuContext.js');
|
|
18
|
+
|
|
19
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
20
|
+
|
|
21
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
22
|
+
var pick__default = /*#__PURE__*/_interopDefaultLegacy(pick);
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @file SubMenu
|
|
26
|
+
* @description 导航子菜单
|
|
27
|
+
* @author fex
|
|
28
|
+
*/
|
|
29
|
+
var CaretIcon = icons.getIcon('caret');
|
|
30
|
+
var DragIcon = icons.getIcon('drag-bar');
|
|
31
|
+
var SubMenu = /** @class */ (function (_super) {
|
|
32
|
+
tslib.__extends(SubMenu, _super);
|
|
33
|
+
function SubMenu() {
|
|
34
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
35
|
+
/**
|
|
36
|
+
* 内部使用的属性
|
|
37
|
+
*
|
|
38
|
+
* @memberof SubMenu
|
|
39
|
+
*/
|
|
40
|
+
_this.internalProps = [
|
|
41
|
+
'key',
|
|
42
|
+
'style',
|
|
43
|
+
'className',
|
|
44
|
+
'title',
|
|
45
|
+
'children',
|
|
46
|
+
'disabled',
|
|
47
|
+
'eventKey',
|
|
48
|
+
'warnKey',
|
|
49
|
+
'itemIcon',
|
|
50
|
+
'expandIcon',
|
|
51
|
+
'onMouseEnter',
|
|
52
|
+
'onMouseLeave',
|
|
53
|
+
'popupClassName',
|
|
54
|
+
'popupOffset',
|
|
55
|
+
'onClick',
|
|
56
|
+
'onTitleClick',
|
|
57
|
+
'onTitleMouseEnter',
|
|
58
|
+
'onTitleMouseLeave'
|
|
59
|
+
];
|
|
60
|
+
return _this;
|
|
61
|
+
}
|
|
62
|
+
SubMenu.prototype.handleSubmenuTitleActived = function (_a) {
|
|
63
|
+
var key = _a.key, domEvent = _a.domEvent;
|
|
64
|
+
var _b = this.context, onSubmenuClick = _b.onSubmenuClick, stacked = _b.stacked;
|
|
65
|
+
stacked && (onSubmenuClick === null || onSubmenuClick === void 0 ? void 0 : onSubmenuClick({ key: key, domEvent: domEvent, props: this.props }));
|
|
66
|
+
};
|
|
67
|
+
SubMenu.prototype.getDynamicStyle = function (hasIcon) {
|
|
68
|
+
var stacked = this.context.stacked;
|
|
69
|
+
var depth = this.props.depth;
|
|
70
|
+
var isHorizontal = !stacked;
|
|
71
|
+
var indentWidth = "(\n ".concat(hasIcon ? 'var(--Menu-icon-size) + var(--gap-sm) +' : '', "\n ").concat(isHorizontal
|
|
72
|
+
? 'var(--Menu-Submenu-title-paddingX) * 2'
|
|
73
|
+
: depth === 1
|
|
74
|
+
? '0px'
|
|
75
|
+
: 'var(--Menu-Submenu-title-paddingX)', "\n )");
|
|
76
|
+
return {
|
|
77
|
+
maxWidth: isHorizontal
|
|
78
|
+
? "calc(var(--Menu-width) - ".concat(indentWidth, ")")
|
|
79
|
+
: "calc(100% - ".concat(indentWidth, ")")
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
/** 检查icon参数值是否为文件路径 */
|
|
83
|
+
SubMenu.prototype.isImgPath = function (raw) {
|
|
84
|
+
return (typeof raw === 'string' &&
|
|
85
|
+
(!!~raw.indexOf('.') || /^\/images\//.test(raw)));
|
|
86
|
+
};
|
|
87
|
+
SubMenu.prototype.renderSubMenuTitle = function () {
|
|
88
|
+
var _a, _b, _c, _d;
|
|
89
|
+
var _e, _f;
|
|
90
|
+
var _g = this.context, collapsed = _g.collapsed, stacked = _g.stacked, mode = _g.mode, draggable = _g.draggable, onDragStart = _g.onDragStart;
|
|
91
|
+
var _h = this.props, cx = _h.classnames, id = _h.id, label = _h.label, icon = _h.icon, path = _h.path, depth = _h.depth, badge = _h.badge, badgeClassName = _h.badgeClassName, disabled = _h.disabled, defaultData = _h.data, extra = _h.extra, renderLink = _h.renderLink;
|
|
92
|
+
var isCollapsedNode = collapsed && depth === 1;
|
|
93
|
+
var link = renderLink && typeof renderLink === 'function'
|
|
94
|
+
? renderLink(this.props)
|
|
95
|
+
: path || '';
|
|
96
|
+
var iconNode = icon ? (typeof icon === 'string' ? (this.isImgPath(icon) ? (React__default["default"].createElement("div", { className: cx("Menu-item-icon") },
|
|
97
|
+
React__default["default"].createElement("img", { width: "14px", src: icon }))) : (React__default["default"].createElement("i", { key: "icon", className: cx("Menu-item-icon", icon, (_a = {},
|
|
98
|
+
_a['Menu-item-icon-collapsed'] = isCollapsedNode,
|
|
99
|
+
_a)) }))) : React__default["default"].isValidElement(icon) ? (React__default["default"].cloneElement(icon, {
|
|
100
|
+
className: cx("Menu-item-icon", (_e = icon.props) === null || _e === void 0 ? void 0 : _e.className, (_b = {},
|
|
101
|
+
_b['Menu-item-icon-svg-collapsed'] = isCollapsedNode,
|
|
102
|
+
_b))
|
|
103
|
+
})) : null) : null;
|
|
104
|
+
var labelNode = label && typeof label === 'string' ? (React__default["default"].createElement("span", { className: cx('Nav-Menu-item-label', (_c = {},
|
|
105
|
+
_c['Nav-Menu-item-label-collapsed'] = isCollapsedNode,
|
|
106
|
+
_c['Nav-Menu-item-label-subTitle'] = !isCollapsedNode,
|
|
107
|
+
_c)), title: isCollapsedNode ? '' : label, style: this.getDynamicStyle(!!iconNode) }, label)) : React__default["default"].isValidElement(label) ? (React__default["default"].cloneElement(label, {
|
|
108
|
+
className: cx('Nav-Menu-item-label', (_f = label === null || label === void 0 ? void 0 : label.props) === null || _f === void 0 ? void 0 : _f.className, (_d = {},
|
|
109
|
+
_d['Nav-Menu-item-label-collapsed'] = isCollapsedNode,
|
|
110
|
+
_d['Nav-Menu-item-label-subTitle'] = !isCollapsedNode,
|
|
111
|
+
_d)),
|
|
112
|
+
style: this.getDynamicStyle(!!iconNode)
|
|
113
|
+
})) : null;
|
|
114
|
+
var dragNode = !disabled && stacked && mode === 'inline' && !collapsed && draggable ? (React__default["default"].createElement("span", { className: cx('Nav-Menu-item-dragBar'), draggable: true },
|
|
115
|
+
React__default["default"].createElement(DragIcon, null))) : null;
|
|
116
|
+
var renderContent = function () {
|
|
117
|
+
return isCollapsedNode ? (React__default["default"].createElement(React__default["default"].Fragment, null, iconNode || labelNode)) : (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
118
|
+
dragNode,
|
|
119
|
+
iconNode,
|
|
120
|
+
labelNode,
|
|
121
|
+
!stacked ? (React__default["default"].createElement("span", { key: "expand-toggle", className: cx('Nav-Menu-submenu-arrow') },
|
|
122
|
+
React__default["default"].createElement(CaretIcon, null))) : null));
|
|
123
|
+
};
|
|
124
|
+
return (React__default["default"].createElement("div", { className: cx('Nav-Menu-item-wrap') },
|
|
125
|
+
React__default["default"].createElement(Badge.Badge, { classnames: cx, badge: badge ? tslib.__assign(tslib.__assign({}, badge), { className: badgeClassName }) : null, data: amisCore.createObject(defaultData, link) },
|
|
126
|
+
React__default["default"].createElement("a", { className: cx("Nav-Menu-item-link"), "data-id": (link === null || link === void 0 ? void 0 : link.__id) || id, "data-depth": depth, onDragStart: onDragStart === null || onDragStart === void 0 ? void 0 : onDragStart(link) }, renderContent())),
|
|
127
|
+
extra ? (React__default["default"].createElement("div", { className: cx('Nav-Menu-item-extra') }, extra)) : null));
|
|
128
|
+
};
|
|
129
|
+
SubMenu.prototype.render = function () {
|
|
130
|
+
var _a, _b;
|
|
131
|
+
var _c = this.props, className = _c.className, popupClassName = _c.popupClassName, cx = _c.classnames, hidden = _c.hidden;
|
|
132
|
+
var isDarkTheme = this.context.themeColor === 'dark';
|
|
133
|
+
return hidden ? null : (React__default["default"].createElement(RcMenu.SubMenu, tslib.__assign({}, pick__default["default"](this.props, this.internalProps), { className: cx('Nav-Menu-submenu', (_a = {},
|
|
134
|
+
_a['Nav-Menu-submenu-dark'] = isDarkTheme,
|
|
135
|
+
_a), className), popupClassName: cx('Nav-Menu-submenu-popup', (_b = {},
|
|
136
|
+
_b['Nav-Menu-submenu-popup-dark'] = isDarkTheme,
|
|
137
|
+
_b), popupClassName), title: this.renderSubMenuTitle(), onTitleClick: this.handleSubmenuTitleActived })));
|
|
138
|
+
};
|
|
139
|
+
SubMenu.contextType = MenuContext.MenuContext;
|
|
140
|
+
tslib.__decorate([
|
|
141
|
+
amisCore.autobind,
|
|
142
|
+
tslib.__metadata("design:type", Function),
|
|
143
|
+
tslib.__metadata("design:paramtypes", [Object]),
|
|
144
|
+
tslib.__metadata("design:returntype", void 0)
|
|
145
|
+
], SubMenu.prototype, "handleSubmenuTitleActived", null);
|
|
146
|
+
return SubMenu;
|
|
147
|
+
}(React__default["default"].Component));
|
|
148
|
+
var SubMenu$1 = amisCore.themeable(SubMenu);
|
|
149
|
+
|
|
150
|
+
exports.SubMenu = SubMenu;
|
|
151
|
+
exports["default"] = SubMenu$1;
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Menu
|
|
3
|
+
* @description 导航菜单,基于rc-menu实现:https://github.com/react-component/menu
|
|
4
|
+
* @author fex
|
|
5
|
+
*/
|
|
6
|
+
/// <reference types="hoist-non-react-statics" />
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { MenuProps as RcMenuProps } from 'rc-menu';
|
|
9
|
+
import Sortable from 'sortablejs';
|
|
10
|
+
import { ClassNamesFn } from 'amis-core';
|
|
11
|
+
import { BadgeObject } from '../Badge';
|
|
12
|
+
import { SubMenuProps } from './SubMenu';
|
|
13
|
+
export interface NavigationItem {
|
|
14
|
+
id?: string;
|
|
15
|
+
label?: string | React.ReactNode;
|
|
16
|
+
icon?: string | React.ReactNode;
|
|
17
|
+
expandIcon?: string | React.ReactNode;
|
|
18
|
+
path?: string;
|
|
19
|
+
paths?: NavigationItem[];
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
disabledTip?: string;
|
|
22
|
+
children?: Array<NavigationItem>;
|
|
23
|
+
className?: string;
|
|
24
|
+
badgeClassName?: string;
|
|
25
|
+
tooltipClassName?: string;
|
|
26
|
+
component?: React.ReactNode;
|
|
27
|
+
hidden?: boolean;
|
|
28
|
+
isDivider?: boolean;
|
|
29
|
+
permission?: string;
|
|
30
|
+
persistState?: boolean;
|
|
31
|
+
keepInHistory?: boolean;
|
|
32
|
+
[propName: string]: any;
|
|
33
|
+
}
|
|
34
|
+
export interface MenuProps extends Omit<RcMenuProps, 'mode'> {
|
|
35
|
+
className?: string;
|
|
36
|
+
classPrefix: string;
|
|
37
|
+
classnames: ClassNamesFn;
|
|
38
|
+
/**
|
|
39
|
+
* 导航项数据,支持树状结构
|
|
40
|
+
*/
|
|
41
|
+
navigations: Array<NavigationItem>;
|
|
42
|
+
/**
|
|
43
|
+
* 导航排列方式 stacked为true垂直 默认为false
|
|
44
|
+
*/
|
|
45
|
+
stacked?: true | false;
|
|
46
|
+
/**
|
|
47
|
+
* 垂直模式 非折叠状态下 控制菜单打开方式
|
|
48
|
+
*/
|
|
49
|
+
mode?: 'inline' | 'float';
|
|
50
|
+
/**
|
|
51
|
+
* 主题配色
|
|
52
|
+
*/
|
|
53
|
+
themeColor: 'light' | 'dark';
|
|
54
|
+
/**
|
|
55
|
+
* 菜单是否折叠收起,仅在mode为vertical时生效
|
|
56
|
+
*/
|
|
57
|
+
collapsed?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* 子菜单触发方式
|
|
60
|
+
*/
|
|
61
|
+
triggerSubMenuAction: 'hover' | 'click';
|
|
62
|
+
/**
|
|
63
|
+
* 布局排列方式,默认rtl(right to left)
|
|
64
|
+
*/
|
|
65
|
+
direction: 'rtl' | 'ltr';
|
|
66
|
+
/**
|
|
67
|
+
* 渲染popover子菜单的位置,mode为vertical和horizontal时生效
|
|
68
|
+
*/
|
|
69
|
+
popOverContainer: (node: HTMLElement) => HTMLElement;
|
|
70
|
+
/**
|
|
71
|
+
* 水平导航模式下,Menu折叠状态的图标或文案
|
|
72
|
+
*/
|
|
73
|
+
overflowedIndicator?: React.ReactNode;
|
|
74
|
+
/**
|
|
75
|
+
* 水平导航模式下,是否禁用响应式收纳
|
|
76
|
+
*/
|
|
77
|
+
disabledOverflow?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* 响应式收纳展示最大个数
|
|
80
|
+
*/
|
|
81
|
+
overflowMaxCount?: number;
|
|
82
|
+
/**
|
|
83
|
+
* 自定义响应浮层元素
|
|
84
|
+
*/
|
|
85
|
+
overflowComponent?: string;
|
|
86
|
+
/**
|
|
87
|
+
* 响应式收纳展开浮层样式
|
|
88
|
+
*/
|
|
89
|
+
overflowedIndicatorPopupClassName?: string;
|
|
90
|
+
/**
|
|
91
|
+
* 导航列表后缀节点
|
|
92
|
+
*/
|
|
93
|
+
overflowSuffix?: React.ReactNode;
|
|
94
|
+
/**
|
|
95
|
+
* 响应收纳项宽度
|
|
96
|
+
*/
|
|
97
|
+
overflowItemWidth?: number;
|
|
98
|
+
/**
|
|
99
|
+
* 响应收纳最外层元素样式
|
|
100
|
+
*/
|
|
101
|
+
overflowStyle?: Object;
|
|
102
|
+
/**
|
|
103
|
+
* 切换展开状态的ICON
|
|
104
|
+
*/
|
|
105
|
+
expandIcon?: string | React.ReactNode;
|
|
106
|
+
/**
|
|
107
|
+
* 垂直导航水平缩进值
|
|
108
|
+
*/
|
|
109
|
+
inlineIndent?: number;
|
|
110
|
+
/**
|
|
111
|
+
* 禁用状态
|
|
112
|
+
*/
|
|
113
|
+
disabled?: boolean;
|
|
114
|
+
location?: any;
|
|
115
|
+
history?: any;
|
|
116
|
+
/**
|
|
117
|
+
* 统一路由前缀
|
|
118
|
+
*/
|
|
119
|
+
prefix?: string;
|
|
120
|
+
/**
|
|
121
|
+
* 导航项是否展开
|
|
122
|
+
*/
|
|
123
|
+
isOpen: (link: NavigationItem) => boolean;
|
|
124
|
+
/**
|
|
125
|
+
* 导航项是否激活
|
|
126
|
+
*/
|
|
127
|
+
isActive: Function;
|
|
128
|
+
/**
|
|
129
|
+
* 导航项渲染方式
|
|
130
|
+
*/
|
|
131
|
+
renderLink: Function;
|
|
132
|
+
/**
|
|
133
|
+
* 展开/收起子菜单Event
|
|
134
|
+
*/
|
|
135
|
+
onToggleExpand?: (keys: String[]) => void;
|
|
136
|
+
onSelect?: any;
|
|
137
|
+
onToggle: (link: any, forceFold?: boolean) => void;
|
|
138
|
+
onDragStart?: (link: any) => (event: React.DragEvent<HTMLAnchorElement>) => void;
|
|
139
|
+
badge?: BadgeObject;
|
|
140
|
+
data?: any;
|
|
141
|
+
/**
|
|
142
|
+
* 垂直inline模式下 菜单互斥展开
|
|
143
|
+
*/
|
|
144
|
+
accordion?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* 支持排序
|
|
147
|
+
*/
|
|
148
|
+
draggable?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* 展开按钮在最前面
|
|
151
|
+
*/
|
|
152
|
+
expandBefore?: boolean;
|
|
153
|
+
}
|
|
154
|
+
interface MenuState {
|
|
155
|
+
navigations: Array<NavigationItem>;
|
|
156
|
+
activeKey: Array<string> | undefined;
|
|
157
|
+
defaultOpenKeys: string[];
|
|
158
|
+
openKeys: string[];
|
|
159
|
+
[propName: string]: any;
|
|
160
|
+
}
|
|
161
|
+
export declare class Menu extends React.Component<MenuProps, MenuState> {
|
|
162
|
+
static defaultProps: Pick<MenuProps, 'collapsed' | 'themeColor' | 'stacked' | 'mode' | 'direction' | 'prefix' | 'triggerSubMenuAction' | 'popOverContainer' | 'renderLink' | 'isActive' | 'isOpen' | 'inlineIndent'>;
|
|
163
|
+
sortable?: Sortable;
|
|
164
|
+
constructor(props: MenuProps);
|
|
165
|
+
componentDidUpdate(prevProps: MenuProps, prevState: MenuState): void;
|
|
166
|
+
getKeyPaths(navigations: Array<NavigationItem>, key: string): string[];
|
|
167
|
+
normalizeNavigations(props: MenuProps): {
|
|
168
|
+
transformedNav: any[];
|
|
169
|
+
activeKey: string[];
|
|
170
|
+
defaultOpenKeys: string[];
|
|
171
|
+
openKeys: string[];
|
|
172
|
+
};
|
|
173
|
+
handleItemClick({ key, domEvent, keyPath }: {
|
|
174
|
+
key: string;
|
|
175
|
+
domEvent: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
|
|
176
|
+
keyPath: string[];
|
|
177
|
+
}): Promise<void>;
|
|
178
|
+
handleSubMenuTitleClick({ key, domEvent, props }: {
|
|
179
|
+
key: string;
|
|
180
|
+
domEvent: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
|
|
181
|
+
props: SubMenuProps;
|
|
182
|
+
}): void;
|
|
183
|
+
selectSubItem({ key, domEvent, props }: {
|
|
184
|
+
key: string;
|
|
185
|
+
domEvent: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
|
|
186
|
+
props: SubMenuProps;
|
|
187
|
+
}): void;
|
|
188
|
+
handleToggleExpand(ctx: {
|
|
189
|
+
isSelected?: boolean;
|
|
190
|
+
isOpen?: boolean;
|
|
191
|
+
isSubMenu?: boolean;
|
|
192
|
+
disabled?: boolean;
|
|
193
|
+
[propName: string]: any;
|
|
194
|
+
}): void;
|
|
195
|
+
renderExpandIcon(ctx: {
|
|
196
|
+
isSelected?: boolean;
|
|
197
|
+
isOpen?: boolean;
|
|
198
|
+
isSubMenu?: boolean;
|
|
199
|
+
disabled?: boolean;
|
|
200
|
+
[propName: string]: any;
|
|
201
|
+
}): JSX.Element;
|
|
202
|
+
renderMenuContent(list: NavigationItem[]): JSX.Element[];
|
|
203
|
+
render(): JSX.Element;
|
|
204
|
+
}
|
|
205
|
+
declare const _default: {
|
|
206
|
+
new (props: Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "data" | "slot" | "title" | "id" | "expandIcon" | "disabled" | "children" | "hidden" | "onClick" | "onSelect" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "prefixCls" | "rootClassName" | "items" | "disabledOverflow" | "inlineCollapsed" | "defaultOpenKeys" | "openKeys" | "activeKey" | "defaultActiveFirst" | "selectable" | "multiple" | "defaultSelectedKeys" | "selectedKeys" | "onDeselect" | "motion" | "defaultMotions" | "subMenuOpenDelay" | "subMenuCloseDelay" | "forceSubMenuRender" | "builtinPlacements" | "itemIcon" | "overflowedIndicator" | "overflowedIndicatorPopupClassName" | "getPopupContainer" | "onOpenChange" | "_internalRenderMenuItem" | "_internalRenderSubMenuItem" | "navigations" | "overflowMaxCount" | "overflowComponent" | "overflowSuffix" | "overflowItemWidth" | "overflowStyle" | "location" | "history" | "onToggleExpand" | "onToggle" | "badge" | "accordion" | "expandBefore"> & Partial<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">> & Partial<Pick<Pick<MenuProps, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps): {
|
|
207
|
+
ref: any;
|
|
208
|
+
childRef(ref: any): void;
|
|
209
|
+
getWrappedInstance(): any;
|
|
210
|
+
/**
|
|
211
|
+
* 渲染popover子菜单的位置,mode为vertical和horizontal时生效
|
|
212
|
+
*/
|
|
213
|
+
render(): JSX.Element;
|
|
214
|
+
context: any;
|
|
215
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "data" | "slot" | "title" | "id" | "expandIcon" | "disabled" | "children" | "hidden" | "onClick" | "onSelect" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "prefixCls" | "rootClassName" | "items" | "disabledOverflow" | "inlineCollapsed" | "defaultOpenKeys" | "openKeys" | "activeKey" | "defaultActiveFirst" | "selectable" | "multiple" | "defaultSelectedKeys" | "selectedKeys" | "onDeselect" | "motion" | "defaultMotions" | "subMenuOpenDelay" | "subMenuCloseDelay" | "forceSubMenuRender" | "builtinPlacements" | "itemIcon" | "overflowedIndicator" | "overflowedIndicatorPopupClassName" | "getPopupContainer" | "onOpenChange" | "_internalRenderMenuItem" | "_internalRenderSubMenuItem" | "navigations" | "overflowMaxCount" | "overflowComponent" | "overflowSuffix" | "overflowItemWidth" | "overflowStyle" | "location" | "history" | "onToggleExpand" | "onToggle" | "badge" | "accordion" | "expandBefore"> & Partial<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">> & Partial<Pick<Pick<MenuProps, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
216
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
217
|
+
readonly props: Readonly<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "data" | "slot" | "title" | "id" | "expandIcon" | "disabled" | "children" | "hidden" | "onClick" | "onSelect" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "prefixCls" | "rootClassName" | "items" | "disabledOverflow" | "inlineCollapsed" | "defaultOpenKeys" | "openKeys" | "activeKey" | "defaultActiveFirst" | "selectable" | "multiple" | "defaultSelectedKeys" | "selectedKeys" | "onDeselect" | "motion" | "defaultMotions" | "subMenuOpenDelay" | "subMenuCloseDelay" | "forceSubMenuRender" | "builtinPlacements" | "itemIcon" | "overflowedIndicator" | "overflowedIndicatorPopupClassName" | "getPopupContainer" | "onOpenChange" | "_internalRenderMenuItem" | "_internalRenderSubMenuItem" | "navigations" | "overflowMaxCount" | "overflowComponent" | "overflowSuffix" | "overflowItemWidth" | "overflowStyle" | "location" | "history" | "onToggleExpand" | "onToggle" | "badge" | "accordion" | "expandBefore"> & Partial<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">> & Partial<Pick<Pick<MenuProps, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
218
|
+
children?: React.ReactNode;
|
|
219
|
+
}>;
|
|
220
|
+
state: Readonly<{}>;
|
|
221
|
+
refs: {
|
|
222
|
+
[key: string]: React.ReactInstance;
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* 垂直导航水平缩进值
|
|
226
|
+
*/
|
|
227
|
+
componentDidMount?(): void;
|
|
228
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "data" | "slot" | "title" | "id" | "expandIcon" | "disabled" | "children" | "hidden" | "onClick" | "onSelect" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "prefixCls" | "rootClassName" | "items" | "disabledOverflow" | "inlineCollapsed" | "defaultOpenKeys" | "openKeys" | "activeKey" | "defaultActiveFirst" | "selectable" | "multiple" | "defaultSelectedKeys" | "selectedKeys" | "onDeselect" | "motion" | "defaultMotions" | "subMenuOpenDelay" | "subMenuCloseDelay" | "forceSubMenuRender" | "builtinPlacements" | "itemIcon" | "overflowedIndicator" | "overflowedIndicatorPopupClassName" | "getPopupContainer" | "onOpenChange" | "_internalRenderMenuItem" | "_internalRenderSubMenuItem" | "navigations" | "overflowMaxCount" | "overflowComponent" | "overflowSuffix" | "overflowItemWidth" | "overflowStyle" | "location" | "history" | "onToggleExpand" | "onToggle" | "badge" | "accordion" | "expandBefore"> & Partial<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">> & Partial<Pick<Pick<MenuProps, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
229
|
+
componentWillUnmount?(): void;
|
|
230
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
231
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "data" | "slot" | "title" | "id" | "expandIcon" | "disabled" | "children" | "hidden" | "onClick" | "onSelect" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "prefixCls" | "rootClassName" | "items" | "disabledOverflow" | "inlineCollapsed" | "defaultOpenKeys" | "openKeys" | "activeKey" | "defaultActiveFirst" | "selectable" | "multiple" | "defaultSelectedKeys" | "selectedKeys" | "onDeselect" | "motion" | "defaultMotions" | "subMenuOpenDelay" | "subMenuCloseDelay" | "forceSubMenuRender" | "builtinPlacements" | "itemIcon" | "overflowedIndicator" | "overflowedIndicatorPopupClassName" | "getPopupContainer" | "onOpenChange" | "_internalRenderMenuItem" | "_internalRenderSubMenuItem" | "navigations" | "overflowMaxCount" | "overflowComponent" | "overflowSuffix" | "overflowItemWidth" | "overflowStyle" | "location" | "history" | "onToggleExpand" | "onToggle" | "badge" | "accordion" | "expandBefore"> & Partial<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">> & Partial<Pick<Pick<MenuProps, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
232
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "data" | "slot" | "title" | "id" | "expandIcon" | "disabled" | "children" | "hidden" | "onClick" | "onSelect" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "prefixCls" | "rootClassName" | "items" | "disabledOverflow" | "inlineCollapsed" | "defaultOpenKeys" | "openKeys" | "activeKey" | "defaultActiveFirst" | "selectable" | "multiple" | "defaultSelectedKeys" | "selectedKeys" | "onDeselect" | "motion" | "defaultMotions" | "subMenuOpenDelay" | "subMenuCloseDelay" | "forceSubMenuRender" | "builtinPlacements" | "itemIcon" | "overflowedIndicator" | "overflowedIndicatorPopupClassName" | "getPopupContainer" | "onOpenChange" | "_internalRenderMenuItem" | "_internalRenderSubMenuItem" | "navigations" | "overflowMaxCount" | "overflowComponent" | "overflowSuffix" | "overflowItemWidth" | "overflowStyle" | "location" | "history" | "onToggleExpand" | "onToggle" | "badge" | "accordion" | "expandBefore"> & Partial<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">> & Partial<Pick<Pick<MenuProps, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
233
|
+
componentWillMount?(): void;
|
|
234
|
+
UNSAFE_componentWillMount?(): void;
|
|
235
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "data" | "slot" | "title" | "id" | "expandIcon" | "disabled" | "children" | "hidden" | "onClick" | "onSelect" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "prefixCls" | "rootClassName" | "items" | "disabledOverflow" | "inlineCollapsed" | "defaultOpenKeys" | "openKeys" | "activeKey" | "defaultActiveFirst" | "selectable" | "multiple" | "defaultSelectedKeys" | "selectedKeys" | "onDeselect" | "motion" | "defaultMotions" | "subMenuOpenDelay" | "subMenuCloseDelay" | "forceSubMenuRender" | "builtinPlacements" | "itemIcon" | "overflowedIndicator" | "overflowedIndicatorPopupClassName" | "getPopupContainer" | "onOpenChange" | "_internalRenderMenuItem" | "_internalRenderSubMenuItem" | "navigations" | "overflowMaxCount" | "overflowComponent" | "overflowSuffix" | "overflowItemWidth" | "overflowStyle" | "location" | "history" | "onToggleExpand" | "onToggle" | "badge" | "accordion" | "expandBefore"> & Partial<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">> & Partial<Pick<Pick<MenuProps, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
236
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "data" | "slot" | "title" | "id" | "expandIcon" | "disabled" | "children" | "hidden" | "onClick" | "onSelect" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "prefixCls" | "rootClassName" | "items" | "disabledOverflow" | "inlineCollapsed" | "defaultOpenKeys" | "openKeys" | "activeKey" | "defaultActiveFirst" | "selectable" | "multiple" | "defaultSelectedKeys" | "selectedKeys" | "onDeselect" | "motion" | "defaultMotions" | "subMenuOpenDelay" | "subMenuCloseDelay" | "forceSubMenuRender" | "builtinPlacements" | "itemIcon" | "overflowedIndicator" | "overflowedIndicatorPopupClassName" | "getPopupContainer" | "onOpenChange" | "_internalRenderMenuItem" | "_internalRenderSubMenuItem" | "navigations" | "overflowMaxCount" | "overflowComponent" | "overflowSuffix" | "overflowItemWidth" | "overflowStyle" | "location" | "history" | "onToggleExpand" | "onToggle" | "badge" | "accordion" | "expandBefore"> & Partial<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">> & Partial<Pick<Pick<MenuProps, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
237
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "data" | "slot" | "title" | "id" | "expandIcon" | "disabled" | "children" | "hidden" | "onClick" | "onSelect" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "prefixCls" | "rootClassName" | "items" | "disabledOverflow" | "inlineCollapsed" | "defaultOpenKeys" | "openKeys" | "activeKey" | "defaultActiveFirst" | "selectable" | "multiple" | "defaultSelectedKeys" | "selectedKeys" | "onDeselect" | "motion" | "defaultMotions" | "subMenuOpenDelay" | "subMenuCloseDelay" | "forceSubMenuRender" | "builtinPlacements" | "itemIcon" | "overflowedIndicator" | "overflowedIndicatorPopupClassName" | "getPopupContainer" | "onOpenChange" | "_internalRenderMenuItem" | "_internalRenderSubMenuItem" | "navigations" | "overflowMaxCount" | "overflowComponent" | "overflowSuffix" | "overflowItemWidth" | "overflowStyle" | "location" | "history" | "onToggleExpand" | "onToggle" | "badge" | "accordion" | "expandBefore"> & Partial<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">> & Partial<Pick<Pick<MenuProps, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
238
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "data" | "slot" | "title" | "id" | "expandIcon" | "disabled" | "children" | "hidden" | "onClick" | "onSelect" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "prefixCls" | "rootClassName" | "items" | "disabledOverflow" | "inlineCollapsed" | "defaultOpenKeys" | "openKeys" | "activeKey" | "defaultActiveFirst" | "selectable" | "multiple" | "defaultSelectedKeys" | "selectedKeys" | "onDeselect" | "motion" | "defaultMotions" | "subMenuOpenDelay" | "subMenuCloseDelay" | "forceSubMenuRender" | "builtinPlacements" | "itemIcon" | "overflowedIndicator" | "overflowedIndicatorPopupClassName" | "getPopupContainer" | "onOpenChange" | "_internalRenderMenuItem" | "_internalRenderSubMenuItem" | "navigations" | "overflowMaxCount" | "overflowComponent" | "overflowSuffix" | "overflowItemWidth" | "overflowStyle" | "location" | "history" | "onToggleExpand" | "onToggle" | "badge" | "accordion" | "expandBefore"> & Partial<Pick<Omit<MenuProps, keyof import("amis-core").ThemeProps>, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">> & Partial<Pick<Pick<MenuProps, "mode" | "prefix" | "direction" | "inlineIndent" | "triggerSubMenuAction" | "stacked" | "themeColor" | "collapsed" | "popOverContainer" | "isOpen" | "isActive" | "renderLink">, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
239
|
+
};
|
|
240
|
+
displayName: string;
|
|
241
|
+
contextType: React.Context<string>;
|
|
242
|
+
ComposedComponent: React.ComponentType<typeof Menu>;
|
|
243
|
+
} & import("hoist-non-react-statics").NonReactStatics<typeof Menu, {}> & {
|
|
244
|
+
ComposedComponent: typeof Menu;
|
|
245
|
+
};
|
|
246
|
+
export default _default;
|