amis-ui 2.0.0 → 2.1.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/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +2 -2
- package/esm/components/AnchorNav.d.ts +9 -2
- package/esm/components/AnchorNav.js +25 -6
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.d.ts +1 -1
- package/esm/components/Badge.js +2 -4
- package/esm/components/BaiduMapPicker.js +3 -3
- package/esm/components/BarCode.js +1 -1
- package/esm/components/BarCode2.js +1 -1
- package/esm/components/Breadcrumb.js +2 -2
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CityDB2.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/ColorPicker2.js +1 -1
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +43 -40
- package/esm/components/DatePicker.js +11 -4
- package/esm/components/DateRangePicker.d.ts +135 -82
- package/esm/components/DateRangePicker.js +115 -57
- package/esm/components/Drawer.d.ts +10 -10
- package/esm/components/Drawer.js +1 -1
- package/esm/components/Editor.d.ts +40 -40
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.d.ts +70 -40
- package/esm/components/ImageGallery.js +97 -15
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.js +1 -1
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Markdown2.js +1 -1
- package/esm/components/Modal.d.ts +42 -40
- package/esm/components/Modal.js +3 -3
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +41 -40
- package/esm/components/NumberInput.js +1 -1
- package/esm/components/Pagination.d.ts +49 -66
- package/esm/components/Pagination.js +3 -3
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.js +1 -1
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.js +8 -4
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.js +1 -1
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.js +7 -3
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +1 -1
- package/esm/components/RichText2.js +1 -1
- package/esm/components/SearchBox.d.ts +127 -42
- package/esm/components/SearchBox.js +183 -20
- package/esm/components/Select.d.ts +389 -194
- package/esm/components/Select.js +17 -22
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.d.ts +40 -40
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.js +1 -1
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.js +1 -3
- package/esm/components/TabsTransfer.js +1 -1
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.d.ts +12 -10
- package/esm/components/Tag.js +16 -5
- package/esm/components/Textarea.js +4 -2
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +3 -3
- package/esm/components/Tinymce.d.ts +1 -3
- package/esm/components/Tinymce.js +1 -1
- package/esm/components/Tinymce2.js +29 -12
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.js +9 -2
- package/esm/components/TransferDropDown.js +2 -3
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.js +34 -33
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.js +1 -1
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.js +4 -2
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.js +14 -7
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.js +1 -1
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Formula.js +1 -1
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.js +1 -1
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.js +1 -1
- package/esm/components/condition-builder/Value.js +1 -1
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/Editor.js +1 -1
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Picker.js +1 -1
- package/esm/components/formula/VariableList.js +1 -1
- package/esm/components/formula/plugin.d.ts +1 -0
- package/esm/components/formula/plugin.js +11 -4
- package/esm/components/icons.d.ts +2 -1
- package/esm/components/icons.js +20 -1
- package/esm/components/json-schema/Array.js +1 -1
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +1 -1
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/schema-editor/Array.js +1 -1
- package/esm/components/schema-editor/Common.js +1 -1
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +1 -1
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.js +1 -1
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.js +1 -1
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.js +1 -1
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +2 -2
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +2 -2
- package/esm/icons/alert-warning.svg.js +2 -2
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check-circle.svg.js +36 -0
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +2 -2
- package/esm/icons/down.svg.js +31 -0
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -2
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +7 -4
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +24 -0
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +7 -4
- package/esm/icons/right-double-arrow.svg.js +24 -0
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +24 -0
- package/esm/icons/rotate-right.svg.js +24 -0
- package/esm/icons/scale-origin.svg.js +26 -0
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +2 -2
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/status-fail.svg.js +1 -1
- package/esm/icons/status-info.svg.js +1 -1
- package/esm/icons/status-success.svg.js +1 -1
- package/esm/icons/status-warning.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +24 -0
- package/esm/icons/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/upload.svg.js +1 -1
- package/esm/icons/user-remove.svg.js +1 -1
- package/esm/icons/view.svg.js +1 -1
- package/esm/icons/volume.svg.js +1 -1
- package/esm/icons/warning-mark.svg.js +1 -1
- package/esm/icons/warning.svg.js +1 -1
- package/esm/icons/window-restore.svg.js +1 -1
- package/esm/icons/zoom-in.svg.js +1 -1
- package/esm/icons/zoom-out.svg.js +1 -1
- package/esm/index.js +2 -1
- package/esm/locale/de-DE.js +7 -1
- package/esm/locale/en-US.js +7 -1
- package/esm/locale/zh-CN.js +9 -3
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +10 -10
- package/lib/components/Alert2.js +2 -2
- package/lib/components/AnchorNav.d.ts +19 -12
- package/lib/components/AnchorNav.js +25 -6
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/AssociatedSelection.js +1 -1
- package/lib/components/Avatar.d.ts +10 -10
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.d.ts +1 -1
- package/lib/components/Badge.js +2 -4
- package/lib/components/BaiduMapPicker.js +3 -3
- package/lib/components/BarCode.js +1 -1
- package/lib/components/BarCode2.js +1 -1
- package/lib/components/Breadcrumb.js +2 -2
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.d.ts +10 -10
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/ChainedSelection.js +1 -1
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CityArea.js +1 -1
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CityDB2.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +10 -10
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/ColorPicker2.js +1 -1
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +43 -40
- package/lib/components/DatePicker.js +11 -4
- package/lib/components/DateRangePicker.d.ts +135 -82
- package/lib/components/DateRangePicker.js +114 -56
- package/lib/components/Drawer.d.ts +10 -10
- package/lib/components/Drawer.js +1 -1
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.d.ts +70 -40
- package/lib/components/ImageGallery.js +97 -14
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +40 -40
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Markdown2.js +1 -1
- package/lib/components/Modal.d.ts +42 -40
- package/lib/components/Modal.js +3 -3
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +41 -40
- package/lib/components/NumberInput.d.ts +10 -10
- package/lib/components/NumberInput.js +1 -1
- package/lib/components/Pagination.d.ts +49 -66
- package/lib/components/Pagination.js +3 -3
- package/lib/components/Picker.js +1 -1
- package/lib/components/PickerColumn.js +1 -1
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.js +1 -1
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +10 -10
- package/lib/components/Progress.js +8 -4
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.d.ts +10 -10
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.js +1 -1
- package/lib/components/Rating.d.ts +10 -10
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +40 -40
- package/lib/components/ResultBox.js +7 -3
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +3 -3
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +8 -8
- package/lib/components/RichText.js +1 -1
- package/lib/components/RichText2.js +1 -1
- package/lib/components/SearchBox.d.ts +127 -42
- package/lib/components/SearchBox.js +185 -19
- package/lib/components/Select.d.ts +389 -194
- package/lib/components/Select.js +17 -22
- package/lib/components/Selection.d.ts +40 -40
- package/lib/components/Selection.js +1 -1
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +10 -10
- package/lib/components/Spinner.js +1 -1
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +1 -1
- package/lib/components/TableSelection.d.ts +40 -40
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +10 -10
- package/lib/components/Tabs.js +1 -3
- package/lib/components/TabsTransfer.js +1 -1
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +12 -10
- package/lib/components/Tag.js +16 -5
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +4 -2
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +3 -3
- package/lib/components/Tinymce.d.ts +1 -3
- package/lib/components/Tinymce.js +1 -1
- package/lib/components/Tinymce2.js +29 -12
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +40 -40
- package/lib/components/Transfer.js +15 -8
- package/lib/components/TransferDropDown.d.ts +40 -40
- package/lib/components/TransferDropDown.js +2 -3
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +3 -3
- package/lib/components/Tree.d.ts +40 -40
- package/lib/components/Tree.js +34 -33
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +1 -1
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/WithRemoteConfig.js +1 -1
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.js +4 -2
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.js +14 -7
- package/lib/components/calendar/MonthsView.js +1 -1
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.js +1 -1
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.js +1 -1
- package/lib/components/condition-builder/Formula.js +1 -1
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.js +1 -1
- package/lib/components/condition-builder/GroupOrItem.js +1 -1
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.js +1 -1
- package/lib/components/condition-builder/Value.js +1 -1
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.js +1 -1
- package/lib/components/formula/Editor.d.ts +40 -40
- package/lib/components/formula/Editor.js +1 -1
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +1 -1
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.d.ts +1 -0
- package/lib/components/formula/plugin.js +11 -4
- package/lib/components/icons.d.ts +2 -1
- package/lib/components/icons.js +20 -1
- package/lib/components/json-schema/Array.js +1 -1
- package/lib/components/json-schema/Item.js +1 -1
- package/lib/components/json-schema/Object.js +1 -1
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/schema-editor/Array.js +1 -1
- package/lib/components/schema-editor/Common.js +1 -1
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.js +1 -1
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.d.ts +40 -40
- package/lib/components/schema-editor/index.js +1 -1
- package/lib/components/table/Cell.d.ts +40 -40
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.js +1 -1
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.js +1 -1
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/index.d.ts +40 -40
- package/lib/components/table/index.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +2 -2
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +2 -2
- package/lib/icons/alert-warning.svg.js +2 -2
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check-circle.svg.js +60 -0
- package/lib/icons/check.svg.js +1 -1
- package/lib/icons/clock.svg.js +1 -1
- package/lib/icons/close-small.svg.js +1 -1
- package/lib/icons/close.svg.js +1 -1
- package/lib/icons/cloud-upload.svg.js +1 -1
- package/lib/icons/column-filter.svg.js +1 -1
- package/lib/icons/columns.svg.js +1 -1
- package/lib/icons/compress-alt.svg.js +1 -1
- package/lib/icons/copy.svg.js +1 -1
- package/lib/icons/date.svg.js +1 -1
- package/lib/icons/department.svg.js +1 -1
- package/lib/icons/desk-empty.svg.js +1 -1
- package/lib/icons/dot.svg.js +1 -1
- package/lib/icons/down-arrow-bold.svg.js +2 -2
- package/lib/icons/down.svg.js +55 -0
- package/lib/icons/download.svg.js +1 -1
- package/lib/icons/drag-bar.svg.js +1 -1
- package/lib/icons/drag.svg.js +1 -1
- package/lib/icons/edit.svg.js +1 -2
- package/lib/icons/ellipsis-v.svg.js +1 -1
- package/lib/icons/enter.svg.js +1 -1
- package/lib/icons/exchange.svg.js +1 -1
- package/lib/icons/expand-alt.svg.js +1 -1
- package/lib/icons/fail.svg.js +1 -1
- package/lib/icons/file.svg.js +1 -1
- package/lib/icons/filter.svg.js +1 -1
- package/lib/icons/folder.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +7 -4
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +48 -0
- package/lib/icons/pause.svg.js +1 -1
- package/lib/icons/pencil.svg.js +1 -1
- package/lib/icons/play.svg.js +1 -1
- package/lib/icons/plus-cicle.svg.js +1 -1
- package/lib/icons/plus-fine.svg.js +1 -1
- package/lib/icons/plus.svg.js +1 -1
- package/lib/icons/post.svg.js +1 -1
- package/lib/icons/question-mark.svg.js +1 -1
- package/lib/icons/question.svg.js +1 -1
- package/lib/icons/redo.svg.js +1 -1
- package/lib/icons/refresh.svg.js +1 -1
- package/lib/icons/reload.svg.js +1 -1
- package/lib/icons/remove.svg.js +1 -1
- package/lib/icons/retry.svg.js +1 -1
- package/lib/icons/right-arrow-bold.svg.js +1 -1
- package/lib/icons/right-arrow.svg.js +7 -4
- package/lib/icons/right-double-arrow.svg.js +48 -0
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +48 -0
- package/lib/icons/rotate-right.svg.js +48 -0
- package/lib/icons/scale-origin.svg.js +50 -0
- package/lib/icons/schedule.svg.js +1 -1
- package/lib/icons/search.svg.js +1 -1
- package/lib/icons/setting.svg.js +1 -1
- package/lib/icons/slider-handle-icon.svg.js +1 -1
- package/lib/icons/sort-asc.svg.js +1 -1
- package/lib/icons/sort-default.svg.js +1 -1
- package/lib/icons/sort-desc.svg.js +1 -1
- package/lib/icons/star.svg.js +2 -2
- package/lib/icons/status-close.svg.js +1 -1
- package/lib/icons/status-fail.svg.js +1 -1
- package/lib/icons/status-info.svg.js +1 -1
- package/lib/icons/status-success.svg.js +1 -1
- package/lib/icons/status-warning.svg.js +1 -1
- package/lib/icons/steps-finsh.svg.js +48 -0
- package/lib/icons/success.svg.js +1 -1
- package/lib/icons/transparent.svg.js +1 -1
- package/lib/icons/trash.svg.js +1 -1
- package/lib/icons/tree-down.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/upload.svg.js +1 -1
- package/lib/icons/user-remove.svg.js +1 -1
- package/lib/icons/view.svg.js +1 -1
- package/lib/icons/volume.svg.js +1 -1
- package/lib/icons/warning-mark.svg.js +1 -1
- package/lib/icons/warning.svg.js +1 -1
- package/lib/icons/window-restore.svg.js +1 -1
- package/lib/icons/zoom-in.svg.js +1 -1
- package/lib/icons/zoom-out.svg.js +1 -1
- package/lib/index.js +3 -1
- package/lib/locale/de-DE.js +7 -1
- package/lib/locale/en-US.js +7 -1
- package/lib/locale/zh-CN.js +9 -3
- package/lib/scss/helper.scss.js +1 -1
- package/lib/scss/helper.scss2.js +1 -1
- package/lib/scss/themes/ang.scss.js +1 -1
- package/lib/scss/themes/ang.scss2.js +1 -1
- package/lib/scss/themes/antd.scss.js +1 -1
- package/lib/scss/themes/antd.scss2.js +1 -1
- package/lib/scss/themes/cxd.scss.js +1 -1
- package/lib/scss/themes/cxd.scss2.js +1 -1
- package/lib/scss/themes/dark.scss.js +1 -1
- package/lib/scss/themes/dark.scss2.js +1 -1
- package/lib/scss/themes/default.scss.js +1 -1
- package/lib/scss/themes/default.scss2.js +1 -1
- package/lib/themes/ang.css +1111 -441
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +1111 -441
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +1135 -468
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1116 -443
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +1135 -468
- package/package.json +10 -10
- package/scss/_properties.scss +101 -22
- package/scss/base/_typography.scss +4 -0
- package/scss/components/_alert.scss +15 -0
- package/scss/components/_anchor-nav.scss +22 -7
- package/scss/components/_badge.scss +1 -0
- package/scss/components/_breadcrumb.scss +12 -1
- package/scss/components/_calendar.scss +32 -14
- package/scss/components/_card.scss +4 -0
- package/scss/components/_collapse-group.scss +13 -1
- package/scss/components/_collapse.scss +2 -1
- package/scss/components/_crud.scss +10 -2
- package/scss/components/_crud2.scss +10 -2
- package/scss/components/_image-gallery.scss +62 -0
- package/scss/components/_input-box.scss +1 -0
- package/scss/components/_log.scss +44 -16
- package/scss/components/_modal.scss +14 -12
- package/scss/components/_pagination.scss +4 -3
- package/scss/components/_progress.scss +2 -1
- package/scss/components/_result-box.scss +6 -8
- package/scss/components/_search-box.scss +120 -10
- package/scss/components/_steps.scss +23 -12
- package/scss/components/_table.scss +96 -11
- package/scss/components/_tabs.scss +46 -4
- package/scss/components/_tag.scss +12 -3
- package/scss/components/_timeline.scss +15 -1
- package/scss/components/form/_checks.scss +13 -2
- package/scss/components/form/_date-range.scss +26 -11
- package/scss/components/form/_date.scss +97 -33
- package/scss/components/form/_form.scss +13 -1
- package/scss/components/form/_nested-select.scss +6 -0
- package/scss/components/form/_number.scss +18 -13
- package/scss/components/form/_picker.scss +8 -0
- package/scss/components/form/_rating.scss +2 -2
- package/scss/components/form/_select.scss +34 -1
- package/scss/components/form/_selection.scss +1 -0
- package/scss/components/form/_text.scss +6 -0
- package/scss/components/form/_textarea.scss +15 -11
- package/scss/components/form/_transfer.scss +2 -5
- package/scss/components/form/_tree.scss +31 -4
- package/scss/components/react-datetime.scss +6 -1
- package/scss/themes/_cxd-variables.scss +9 -8
- package/scss/themes/_dark-variables.scss +5 -2
- package/scss/themes/cxd.scss +2 -8
|
@@ -1,8 +1,24 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
1
|
/// <reference types="hoist-non-react-statics" />
|
|
3
2
|
import React from 'react';
|
|
3
|
+
import _ from 'lodash';
|
|
4
4
|
import { ThemeProps } from 'amis-core';
|
|
5
5
|
import { LocaleProps } from 'amis-core';
|
|
6
|
+
export interface HistoryRecord {
|
|
7
|
+
/** 历史记录值 */
|
|
8
|
+
value: string;
|
|
9
|
+
/** 历史记录生成的unix时间戳 */
|
|
10
|
+
timestamp?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface SearchHistoryOptions {
|
|
13
|
+
/** 是否开启历史记录 */
|
|
14
|
+
enable: boolean;
|
|
15
|
+
/** 本地存储历史记录的key */
|
|
16
|
+
key?: string;
|
|
17
|
+
/** 历史记录数量上限 */
|
|
18
|
+
limit?: number;
|
|
19
|
+
/** 历史记录下拉面板CSS类名 */
|
|
20
|
+
dropdownClassName?: string;
|
|
21
|
+
}
|
|
6
22
|
export interface SearchBoxProps extends ThemeProps, LocaleProps {
|
|
7
23
|
name?: string;
|
|
8
24
|
disabled?: boolean;
|
|
@@ -19,9 +35,14 @@ export interface SearchBoxProps extends ThemeProps, LocaleProps {
|
|
|
19
35
|
onActiveChange?: (active: boolean) => void;
|
|
20
36
|
onSearch?: (value: string) => void;
|
|
21
37
|
onCancel?: () => void;
|
|
38
|
+
/** 历史记录配置 */
|
|
39
|
+
history?: SearchHistoryOptions;
|
|
22
40
|
}
|
|
23
41
|
export interface SearchBoxState {
|
|
24
42
|
isFocused: boolean;
|
|
43
|
+
isHistoryOpened: boolean;
|
|
44
|
+
inputValue: string;
|
|
45
|
+
historyRecords: HistoryRecord[];
|
|
25
46
|
}
|
|
26
47
|
export declare class SearchBox extends React.Component<SearchBoxProps, SearchBoxState> {
|
|
27
48
|
inputRef: React.RefObject<HTMLInputElement>;
|
|
@@ -30,11 +51,16 @@ export declare class SearchBox extends React.Component<SearchBoxProps, SearchBox
|
|
|
30
51
|
enhance: boolean;
|
|
31
52
|
clearable: boolean;
|
|
32
53
|
searchImediately: boolean;
|
|
54
|
+
history: Required<SearchHistoryOptions>;
|
|
33
55
|
};
|
|
34
56
|
state: {
|
|
57
|
+
isHistoryOpened: boolean;
|
|
35
58
|
isFocused: boolean;
|
|
59
|
+
inputValue: string;
|
|
60
|
+
historyRecords: any[];
|
|
36
61
|
};
|
|
37
|
-
lazyEmitSearch:
|
|
62
|
+
lazyEmitSearch: _.DebouncedFunc<() => void>;
|
|
63
|
+
componentDidUpdate(prevProps: SearchBoxProps): void;
|
|
38
64
|
componentWillUnmount(): void;
|
|
39
65
|
handleActive(): void;
|
|
40
66
|
handleCancel(): void;
|
|
@@ -42,14 +68,31 @@ export declare class SearchBox extends React.Component<SearchBoxProps, SearchBox
|
|
|
42
68
|
handleSearch(): void;
|
|
43
69
|
handleKeyDown(e: React.KeyboardEvent<any>): void;
|
|
44
70
|
handleClear(): void;
|
|
71
|
+
handleFocus(): void;
|
|
72
|
+
handleBlur(e: React.FocusEvent<HTMLInputElement>): void;
|
|
73
|
+
handleHistoryRecordSelect(record: HistoryRecord): void;
|
|
74
|
+
/** 获取历史搜索配置 */
|
|
75
|
+
getHistoryOptions(): Required<SearchHistoryOptions>;
|
|
76
|
+
/** 获取历史记录 */
|
|
77
|
+
getHistoryRecords(): any[];
|
|
78
|
+
/** 清空历史记录 */
|
|
79
|
+
clearHistoryRecords(): HistoryRecord[];
|
|
80
|
+
/** 删除一条历史记录 */
|
|
81
|
+
removeHistoryRecord(record: HistoryRecord): HistoryRecord[];
|
|
82
|
+
/** 新增一条历史记录 */
|
|
83
|
+
insertHistoryRecord(value: string): HistoryRecord[];
|
|
84
|
+
renderInput(isHistoryMode?: boolean): JSX.Element;
|
|
85
|
+
renderTag(item: HistoryRecord, index: number): JSX.Element;
|
|
86
|
+
renderHitoryMode(): JSX.Element;
|
|
45
87
|
render(): JSX.Element;
|
|
46
88
|
}
|
|
47
89
|
declare const _default: {
|
|
48
|
-
new (props: Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
90
|
+
new (props: Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
49
91
|
mini: boolean;
|
|
50
92
|
enhance: boolean;
|
|
51
93
|
clearable: boolean;
|
|
52
94
|
searchImediately: boolean;
|
|
95
|
+
history: Required<SearchHistoryOptions>;
|
|
53
96
|
}, never>> & {
|
|
54
97
|
locale?: string | undefined;
|
|
55
98
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -59,21 +102,23 @@ declare const _default: {
|
|
|
59
102
|
getWrappedInstance(): any;
|
|
60
103
|
render(): JSX.Element;
|
|
61
104
|
context: any;
|
|
62
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
105
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
63
106
|
mini: boolean;
|
|
64
107
|
enhance: boolean;
|
|
65
108
|
clearable: boolean;
|
|
66
109
|
searchImediately: boolean;
|
|
110
|
+
history: Required<SearchHistoryOptions>;
|
|
67
111
|
}, never>> & {
|
|
68
112
|
locale?: string | undefined;
|
|
69
113
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
70
114
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
71
115
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
72
|
-
readonly props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
116
|
+
readonly props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
73
117
|
mini: boolean;
|
|
74
118
|
enhance: boolean;
|
|
75
119
|
clearable: boolean;
|
|
76
120
|
searchImediately: boolean;
|
|
121
|
+
history: Required<SearchHistoryOptions>;
|
|
77
122
|
}, never>> & {
|
|
78
123
|
locale?: string | undefined;
|
|
79
124
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -85,69 +130,76 @@ declare const _default: {
|
|
|
85
130
|
[key: string]: React.ReactInstance;
|
|
86
131
|
};
|
|
87
132
|
componentDidMount?(): void;
|
|
88
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
133
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
89
134
|
mini: boolean;
|
|
90
135
|
enhance: boolean;
|
|
91
136
|
clearable: boolean;
|
|
92
137
|
searchImediately: boolean;
|
|
138
|
+
history: Required<SearchHistoryOptions>;
|
|
93
139
|
}, never>> & {
|
|
94
140
|
locale?: string | undefined;
|
|
95
141
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
96
142
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
97
143
|
componentWillUnmount?(): void;
|
|
98
144
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
99
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
145
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
100
146
|
mini: boolean;
|
|
101
147
|
enhance: boolean;
|
|
102
148
|
clearable: boolean;
|
|
103
149
|
searchImediately: boolean;
|
|
150
|
+
history: Required<SearchHistoryOptions>;
|
|
104
151
|
}, never>> & {
|
|
105
152
|
locale?: string | undefined;
|
|
106
153
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
107
154
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
108
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
155
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
109
156
|
mini: boolean;
|
|
110
157
|
enhance: boolean;
|
|
111
158
|
clearable: boolean;
|
|
112
159
|
searchImediately: boolean;
|
|
160
|
+
history: Required<SearchHistoryOptions>;
|
|
113
161
|
}, never>> & {
|
|
114
162
|
locale?: string | undefined;
|
|
115
163
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
116
164
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
117
165
|
componentWillMount?(): void;
|
|
118
166
|
UNSAFE_componentWillMount?(): void;
|
|
119
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
167
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
120
168
|
mini: boolean;
|
|
121
169
|
enhance: boolean;
|
|
122
170
|
clearable: boolean;
|
|
123
171
|
searchImediately: boolean;
|
|
172
|
+
history: Required<SearchHistoryOptions>;
|
|
124
173
|
}, never>> & {
|
|
125
174
|
locale?: string | undefined;
|
|
126
175
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
127
176
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
128
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
177
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
129
178
|
mini: boolean;
|
|
130
179
|
enhance: boolean;
|
|
131
180
|
clearable: boolean;
|
|
132
181
|
searchImediately: boolean;
|
|
182
|
+
history: Required<SearchHistoryOptions>;
|
|
133
183
|
}, never>> & {
|
|
134
184
|
locale?: string | undefined;
|
|
135
185
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
136
186
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
137
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
187
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
138
188
|
mini: boolean;
|
|
139
189
|
enhance: boolean;
|
|
140
190
|
clearable: boolean;
|
|
141
191
|
searchImediately: boolean;
|
|
192
|
+
history: Required<SearchHistoryOptions>;
|
|
142
193
|
}, never>> & {
|
|
143
194
|
locale?: string | undefined;
|
|
144
195
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
145
196
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
146
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
197
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
147
198
|
mini: boolean;
|
|
148
199
|
enhance: boolean;
|
|
149
200
|
clearable: boolean;
|
|
150
201
|
searchImediately: boolean;
|
|
202
|
+
history: Required<SearchHistoryOptions>;
|
|
151
203
|
}, never>> & {
|
|
152
204
|
locale?: string | undefined;
|
|
153
205
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -156,11 +208,12 @@ declare const _default: {
|
|
|
156
208
|
displayName: string;
|
|
157
209
|
contextType: React.Context<string>;
|
|
158
210
|
ComposedComponent: React.ComponentType<{
|
|
159
|
-
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
211
|
+
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
160
212
|
mini: boolean;
|
|
161
213
|
enhance: boolean;
|
|
162
214
|
clearable: boolean;
|
|
163
215
|
searchImediately: boolean;
|
|
216
|
+
history: Required<SearchHistoryOptions>;
|
|
164
217
|
}, never>> & {
|
|
165
218
|
locale?: string | undefined;
|
|
166
219
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -170,21 +223,23 @@ declare const _default: {
|
|
|
170
223
|
getWrappedInstance(): any;
|
|
171
224
|
render(): JSX.Element;
|
|
172
225
|
context: any;
|
|
173
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
226
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
174
227
|
mini: boolean;
|
|
175
228
|
enhance: boolean;
|
|
176
229
|
clearable: boolean;
|
|
177
230
|
searchImediately: boolean;
|
|
231
|
+
history: Required<SearchHistoryOptions>;
|
|
178
232
|
}, never>> & {
|
|
179
233
|
locale?: string | undefined;
|
|
180
234
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
181
235
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
182
236
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
183
|
-
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
237
|
+
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
184
238
|
mini: boolean;
|
|
185
239
|
enhance: boolean;
|
|
186
240
|
clearable: boolean;
|
|
187
241
|
searchImediately: boolean;
|
|
242
|
+
history: Required<SearchHistoryOptions>;
|
|
188
243
|
}, never>> & {
|
|
189
244
|
locale?: string | undefined;
|
|
190
245
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -196,69 +251,76 @@ declare const _default: {
|
|
|
196
251
|
[key: string]: React.ReactInstance;
|
|
197
252
|
};
|
|
198
253
|
componentDidMount?(): void;
|
|
199
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
254
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
200
255
|
mini: boolean;
|
|
201
256
|
enhance: boolean;
|
|
202
257
|
clearable: boolean;
|
|
203
258
|
searchImediately: boolean;
|
|
259
|
+
history: Required<SearchHistoryOptions>;
|
|
204
260
|
}, never>> & {
|
|
205
261
|
locale?: string | undefined;
|
|
206
262
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
207
263
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
208
264
|
componentWillUnmount?(): void;
|
|
209
265
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
210
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
266
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
211
267
|
mini: boolean;
|
|
212
268
|
enhance: boolean;
|
|
213
269
|
clearable: boolean;
|
|
214
270
|
searchImediately: boolean;
|
|
271
|
+
history: Required<SearchHistoryOptions>;
|
|
215
272
|
}, never>> & {
|
|
216
273
|
locale?: string | undefined;
|
|
217
274
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
218
275
|
}>, prevState: Readonly<{}>): any;
|
|
219
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
276
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
220
277
|
mini: boolean;
|
|
221
278
|
enhance: boolean;
|
|
222
279
|
clearable: boolean;
|
|
223
280
|
searchImediately: boolean;
|
|
281
|
+
history: Required<SearchHistoryOptions>;
|
|
224
282
|
}, never>> & {
|
|
225
283
|
locale?: string | undefined;
|
|
226
284
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
227
285
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
228
286
|
componentWillMount?(): void;
|
|
229
287
|
UNSAFE_componentWillMount?(): void;
|
|
230
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
288
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
231
289
|
mini: boolean;
|
|
232
290
|
enhance: boolean;
|
|
233
291
|
clearable: boolean;
|
|
234
292
|
searchImediately: boolean;
|
|
293
|
+
history: Required<SearchHistoryOptions>;
|
|
235
294
|
}, never>> & {
|
|
236
295
|
locale?: string | undefined;
|
|
237
296
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
238
297
|
}>, nextContext: any): void;
|
|
239
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
298
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
240
299
|
mini: boolean;
|
|
241
300
|
enhance: boolean;
|
|
242
301
|
clearable: boolean;
|
|
243
302
|
searchImediately: boolean;
|
|
303
|
+
history: Required<SearchHistoryOptions>;
|
|
244
304
|
}, never>> & {
|
|
245
305
|
locale?: string | undefined;
|
|
246
306
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
247
307
|
}>, nextContext: any): void;
|
|
248
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
308
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
249
309
|
mini: boolean;
|
|
250
310
|
enhance: boolean;
|
|
251
311
|
clearable: boolean;
|
|
252
312
|
searchImediately: boolean;
|
|
313
|
+
history: Required<SearchHistoryOptions>;
|
|
253
314
|
}, never>> & {
|
|
254
315
|
locale?: string | undefined;
|
|
255
316
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
256
317
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
257
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
318
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
258
319
|
mini: boolean;
|
|
259
320
|
enhance: boolean;
|
|
260
321
|
clearable: boolean;
|
|
261
322
|
searchImediately: boolean;
|
|
323
|
+
history: Required<SearchHistoryOptions>;
|
|
262
324
|
}, never>> & {
|
|
263
325
|
locale?: string | undefined;
|
|
264
326
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -268,14 +330,16 @@ declare const _default: {
|
|
|
268
330
|
contextType: React.Context<string>;
|
|
269
331
|
ComposedComponent: React.ComponentType<typeof SearchBox>;
|
|
270
332
|
} & import("hoist-non-react-statics").NonReactStatics<typeof SearchBox, {}> & {
|
|
333
|
+
/** 获取历史记录 */
|
|
271
334
|
ComposedComponent: typeof SearchBox;
|
|
272
335
|
}>;
|
|
273
336
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
274
|
-
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
337
|
+
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
275
338
|
mini: boolean;
|
|
276
339
|
enhance: boolean;
|
|
277
340
|
clearable: boolean;
|
|
278
341
|
searchImediately: boolean;
|
|
342
|
+
history: Required<SearchHistoryOptions>;
|
|
279
343
|
}, never>> & {
|
|
280
344
|
locale?: string | undefined;
|
|
281
345
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -285,21 +349,23 @@ declare const _default: {
|
|
|
285
349
|
getWrappedInstance(): any;
|
|
286
350
|
render(): JSX.Element;
|
|
287
351
|
context: any;
|
|
288
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
352
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
289
353
|
mini: boolean;
|
|
290
354
|
enhance: boolean;
|
|
291
355
|
clearable: boolean;
|
|
292
356
|
searchImediately: boolean;
|
|
357
|
+
history: Required<SearchHistoryOptions>;
|
|
293
358
|
}, never>> & {
|
|
294
359
|
locale?: string | undefined;
|
|
295
360
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
296
361
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
297
362
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
298
|
-
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
363
|
+
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
299
364
|
mini: boolean;
|
|
300
365
|
enhance: boolean;
|
|
301
366
|
clearable: boolean;
|
|
302
367
|
searchImediately: boolean;
|
|
368
|
+
history: Required<SearchHistoryOptions>;
|
|
303
369
|
}, never>> & {
|
|
304
370
|
locale?: string | undefined;
|
|
305
371
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -311,69 +377,76 @@ declare const _default: {
|
|
|
311
377
|
[key: string]: React.ReactInstance;
|
|
312
378
|
};
|
|
313
379
|
componentDidMount?(): void;
|
|
314
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
380
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
315
381
|
mini: boolean;
|
|
316
382
|
enhance: boolean;
|
|
317
383
|
clearable: boolean;
|
|
318
384
|
searchImediately: boolean;
|
|
385
|
+
history: Required<SearchHistoryOptions>;
|
|
319
386
|
}, never>> & {
|
|
320
387
|
locale?: string | undefined;
|
|
321
388
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
322
389
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
323
390
|
componentWillUnmount?(): void;
|
|
324
391
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
325
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
392
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
326
393
|
mini: boolean;
|
|
327
394
|
enhance: boolean;
|
|
328
395
|
clearable: boolean;
|
|
329
396
|
searchImediately: boolean;
|
|
397
|
+
history: Required<SearchHistoryOptions>;
|
|
330
398
|
}, never>> & {
|
|
331
399
|
locale?: string | undefined;
|
|
332
400
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
333
401
|
}>, prevState: Readonly<{}>): any;
|
|
334
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
402
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
335
403
|
mini: boolean;
|
|
336
404
|
enhance: boolean;
|
|
337
405
|
clearable: boolean;
|
|
338
406
|
searchImediately: boolean;
|
|
407
|
+
history: Required<SearchHistoryOptions>;
|
|
339
408
|
}, never>> & {
|
|
340
409
|
locale?: string | undefined;
|
|
341
410
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
342
411
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
343
412
|
componentWillMount?(): void;
|
|
344
413
|
UNSAFE_componentWillMount?(): void;
|
|
345
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
414
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
346
415
|
mini: boolean;
|
|
347
416
|
enhance: boolean;
|
|
348
417
|
clearable: boolean;
|
|
349
418
|
searchImediately: boolean;
|
|
419
|
+
history: Required<SearchHistoryOptions>;
|
|
350
420
|
}, never>> & {
|
|
351
421
|
locale?: string | undefined;
|
|
352
422
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
353
423
|
}>, nextContext: any): void;
|
|
354
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
424
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
355
425
|
mini: boolean;
|
|
356
426
|
enhance: boolean;
|
|
357
427
|
clearable: boolean;
|
|
358
428
|
searchImediately: boolean;
|
|
429
|
+
history: Required<SearchHistoryOptions>;
|
|
359
430
|
}, never>> & {
|
|
360
431
|
locale?: string | undefined;
|
|
361
432
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
362
433
|
}>, nextContext: any): void;
|
|
363
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
434
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
364
435
|
mini: boolean;
|
|
365
436
|
enhance: boolean;
|
|
366
437
|
clearable: boolean;
|
|
367
438
|
searchImediately: boolean;
|
|
439
|
+
history: Required<SearchHistoryOptions>;
|
|
368
440
|
}, never>> & {
|
|
369
441
|
locale?: string | undefined;
|
|
370
442
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
371
443
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
372
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
444
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
373
445
|
mini: boolean;
|
|
374
446
|
enhance: boolean;
|
|
375
447
|
clearable: boolean;
|
|
376
448
|
searchImediately: boolean;
|
|
449
|
+
history: Required<SearchHistoryOptions>;
|
|
377
450
|
}, never>> & {
|
|
378
451
|
locale?: string | undefined;
|
|
379
452
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -383,14 +456,16 @@ declare const _default: {
|
|
|
383
456
|
contextType: React.Context<string>;
|
|
384
457
|
ComposedComponent: React.ComponentType<typeof SearchBox>;
|
|
385
458
|
} & import("hoist-non-react-statics").NonReactStatics<typeof SearchBox, {}> & {
|
|
459
|
+
/** 获取历史记录 */
|
|
386
460
|
ComposedComponent: typeof SearchBox;
|
|
387
461
|
}, {}> & {
|
|
388
462
|
ComposedComponent: {
|
|
389
|
-
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
463
|
+
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
390
464
|
mini: boolean;
|
|
391
465
|
enhance: boolean;
|
|
392
466
|
clearable: boolean;
|
|
393
467
|
searchImediately: boolean;
|
|
468
|
+
history: Required<SearchHistoryOptions>;
|
|
394
469
|
}, never>> & {
|
|
395
470
|
locale?: string | undefined;
|
|
396
471
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -400,21 +475,23 @@ declare const _default: {
|
|
|
400
475
|
getWrappedInstance(): any;
|
|
401
476
|
render(): JSX.Element;
|
|
402
477
|
context: any;
|
|
403
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
478
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
404
479
|
mini: boolean;
|
|
405
480
|
enhance: boolean;
|
|
406
481
|
clearable: boolean;
|
|
407
482
|
searchImediately: boolean;
|
|
483
|
+
history: Required<SearchHistoryOptions>;
|
|
408
484
|
}, never>> & {
|
|
409
485
|
locale?: string | undefined;
|
|
410
486
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
411
487
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
412
488
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
413
|
-
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
489
|
+
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
414
490
|
mini: boolean;
|
|
415
491
|
enhance: boolean;
|
|
416
492
|
clearable: boolean;
|
|
417
493
|
searchImediately: boolean;
|
|
494
|
+
history: Required<SearchHistoryOptions>;
|
|
418
495
|
}, never>> & {
|
|
419
496
|
locale?: string | undefined;
|
|
420
497
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -426,69 +503,76 @@ declare const _default: {
|
|
|
426
503
|
[key: string]: React.ReactInstance;
|
|
427
504
|
};
|
|
428
505
|
componentDidMount?(): void;
|
|
429
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
506
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
430
507
|
mini: boolean;
|
|
431
508
|
enhance: boolean;
|
|
432
509
|
clearable: boolean;
|
|
433
510
|
searchImediately: boolean;
|
|
511
|
+
history: Required<SearchHistoryOptions>;
|
|
434
512
|
}, never>> & {
|
|
435
513
|
locale?: string | undefined;
|
|
436
514
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
437
515
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
438
516
|
componentWillUnmount?(): void;
|
|
439
517
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
440
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
518
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
441
519
|
mini: boolean;
|
|
442
520
|
enhance: boolean;
|
|
443
521
|
clearable: boolean;
|
|
444
522
|
searchImediately: boolean;
|
|
523
|
+
history: Required<SearchHistoryOptions>;
|
|
445
524
|
}, never>> & {
|
|
446
525
|
locale?: string | undefined;
|
|
447
526
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
448
527
|
}>, prevState: Readonly<{}>): any;
|
|
449
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
528
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
450
529
|
mini: boolean;
|
|
451
530
|
enhance: boolean;
|
|
452
531
|
clearable: boolean;
|
|
453
532
|
searchImediately: boolean;
|
|
533
|
+
history: Required<SearchHistoryOptions>;
|
|
454
534
|
}, never>> & {
|
|
455
535
|
locale?: string | undefined;
|
|
456
536
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
457
537
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
458
538
|
componentWillMount?(): void;
|
|
459
539
|
UNSAFE_componentWillMount?(): void;
|
|
460
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
540
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
461
541
|
mini: boolean;
|
|
462
542
|
enhance: boolean;
|
|
463
543
|
clearable: boolean;
|
|
464
544
|
searchImediately: boolean;
|
|
545
|
+
history: Required<SearchHistoryOptions>;
|
|
465
546
|
}, never>> & {
|
|
466
547
|
locale?: string | undefined;
|
|
467
548
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
468
549
|
}>, nextContext: any): void;
|
|
469
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
550
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
470
551
|
mini: boolean;
|
|
471
552
|
enhance: boolean;
|
|
472
553
|
clearable: boolean;
|
|
473
554
|
searchImediately: boolean;
|
|
555
|
+
history: Required<SearchHistoryOptions>;
|
|
474
556
|
}, never>> & {
|
|
475
557
|
locale?: string | undefined;
|
|
476
558
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
477
559
|
}>, nextContext: any): void;
|
|
478
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
560
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
479
561
|
mini: boolean;
|
|
480
562
|
enhance: boolean;
|
|
481
563
|
clearable: boolean;
|
|
482
564
|
searchImediately: boolean;
|
|
565
|
+
history: Required<SearchHistoryOptions>;
|
|
483
566
|
}, never>> & {
|
|
484
567
|
locale?: string | undefined;
|
|
485
568
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
486
569
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
487
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "
|
|
570
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "name" | "defaultValue" | "placeholder" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
|
488
571
|
mini: boolean;
|
|
489
572
|
enhance: boolean;
|
|
490
573
|
clearable: boolean;
|
|
491
574
|
searchImediately: boolean;
|
|
575
|
+
history: Required<SearchHistoryOptions>;
|
|
492
576
|
}, never>> & {
|
|
493
577
|
locale?: string | undefined;
|
|
494
578
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -498,6 +582,7 @@ declare const _default: {
|
|
|
498
582
|
contextType: React.Context<string>;
|
|
499
583
|
ComposedComponent: React.ComponentType<typeof SearchBox>;
|
|
500
584
|
} & import("hoist-non-react-statics").NonReactStatics<typeof SearchBox, {}> & {
|
|
585
|
+
/** 获取历史记录 */
|
|
501
586
|
ComposedComponent: typeof SearchBox;
|
|
502
587
|
};
|
|
503
588
|
};
|