amis-ui 2.3.1 → 2.4.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.js +1 -1
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.d.ts +2 -2
- package/esm/components/Avatar.js +4 -4
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.d.ts +1 -1
- package/esm/components/BaiduMapPicker.js +5 -5
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.js +3 -3
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +22 -14
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +13 -5
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.js +10 -3
- package/esm/components/DateRangePicker.js +3 -7
- package/esm/components/Drawer.js +1 -1
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/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/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MultilineText.d.ts +462 -0
- package/esm/components/MultilineText.js +85 -0
- package/esm/components/NumberInput.d.ts +34 -11
- package/esm/components/NumberInput.js +88 -34
- package/esm/components/Pagination.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/esm/components/ResultList.js +17 -15
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.js +10 -8
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.js +1 -1
- package/esm/components/Selection.js +7 -5
- 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 +3 -1
- package/esm/components/TabsTransfer.js +1 -1
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.js +6 -5
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +2 -2
- package/esm/components/Tinymce.d.ts +1 -0
- package/esm/components/Tinymce.js +5 -3
- 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 +19 -14
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.js +1 -1
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.js +3 -1
- package/esm/components/UserTabSelect.js +3 -1
- package/esm/components/WithRemoteConfig.js +1 -1
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.js +2 -6
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.js +1 -1
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.js +2 -2
- 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.d.ts +9 -1
- package/esm/components/condition-builder/Group.js +57 -13
- package/esm/components/condition-builder/GroupOrItem.d.ts +1 -0
- package/esm/components/condition-builder/GroupOrItem.js +7 -5
- 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 +3 -3
- package/esm/components/formula/Editor.js +1 -1
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Picker.js +3 -3
- package/esm/components/formula/VariableList.js +1 -1
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.d.ts +2 -1
- package/esm/components/icons.js +2 -1
- package/esm/components/index.d.ts +12 -7
- 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 +1 -3
- package/esm/icons/alert-info.svg.js +1 -3
- package/esm/icons/alert-success.svg.js +1 -3
- package/esm/icons/alert-warning.svg.js +1 -3
- package/esm/icons/back.svg.js +1 -3
- package/esm/icons/calendar.svg.js +1 -3
- package/esm/icons/caret.svg.js +1 -3
- package/esm/icons/check-circle.svg.js +1 -3
- package/esm/icons/check.svg.js +1 -3
- package/esm/icons/clock.svg.js +1 -3
- package/esm/icons/close-small.svg.js +1 -3
- package/esm/icons/close.svg.js +1 -3
- package/esm/icons/cloud-upload.svg.js +1 -3
- package/esm/icons/column-filter.svg.js +1 -3
- package/esm/icons/columns.svg.js +1 -3
- package/esm/icons/compress-alt.svg.js +1 -3
- package/esm/icons/copy.svg.js +1 -3
- package/esm/icons/date.svg.js +1 -3
- package/esm/icons/department.svg.js +1 -3
- package/esm/icons/desk-empty.svg.js +1 -3
- package/esm/icons/dot.svg.js +1 -3
- package/esm/icons/down-arrow-bold.svg.js +1 -3
- package/esm/icons/down.svg.js +1 -3
- package/esm/icons/download.svg.js +1 -3
- package/esm/icons/drag-bar.svg.js +1 -3
- package/esm/icons/drag.svg.js +1 -3
- package/esm/icons/edit.svg.js +1 -3
- package/esm/icons/ellipsis-v.svg.js +1 -3
- package/esm/icons/enter.svg.js +1 -3
- package/esm/icons/exchange.svg.js +1 -3
- package/esm/icons/expand-alt.svg.js +1 -3
- package/esm/icons/fail.svg.js +1 -3
- package/esm/icons/file.svg.js +1 -3
- package/esm/icons/filter.svg.js +1 -3
- package/esm/icons/folder.svg.js +1 -3
- package/esm/icons/function.svg.js +1 -3
- package/esm/icons/home.svg.js +1 -3
- package/esm/icons/image.svg.js +1 -3
- package/esm/icons/info-circle.svg.js +1 -3
- package/esm/icons/info.svg.js +1 -3
- package/esm/icons/input-clear.svg.js +1 -3
- package/esm/icons/invisible.svg.js +1 -3
- package/esm/icons/left-arrow.svg.js +1 -3
- package/esm/icons/loading-outline.svg.js +1 -3
- package/esm/icons/location.svg.js +1 -3
- package/esm/icons/menu.svg.js +1 -3
- package/esm/icons/minus.svg.js +1 -3
- package/esm/icons/move.svg.js +1 -3
- package/esm/icons/mute.svg.js +1 -3
- package/esm/icons/new-edit.svg.js +1 -3
- package/esm/icons/pause.svg.js +1 -3
- package/esm/icons/pencil.svg.js +1 -3
- package/esm/icons/play.svg.js +1 -3
- package/esm/icons/plus-cicle.svg.js +1 -3
- package/esm/icons/plus-fine.svg.js +1 -3
- package/esm/icons/plus.svg.js +1 -3
- package/esm/icons/post.svg.js +1 -3
- package/esm/icons/question-mark.svg.js +1 -3
- package/esm/icons/question.svg.js +1 -3
- package/esm/icons/redo.svg.js +1 -3
- package/esm/icons/refresh.svg.js +1 -3
- package/esm/icons/reload.svg.js +1 -3
- package/esm/icons/remove.svg.js +1 -3
- package/esm/icons/retry.svg.js +1 -3
- package/esm/icons/right-arrow-bold.svg.js +1 -3
- package/esm/icons/right-arrow.svg.js +1 -3
- package/esm/icons/right-double-arrow.svg.js +1 -3
- package/esm/icons/role.svg.js +1 -3
- package/esm/icons/rotate-left.svg.js +1 -3
- package/esm/icons/rotate-right.svg.js +1 -3
- package/esm/icons/scale-origin.svg.js +1 -3
- package/esm/icons/schedule.svg.js +1 -3
- package/esm/icons/search.svg.js +1 -3
- package/esm/icons/setting.svg.js +1 -3
- package/esm/icons/slider-handle-icon.svg.js +1 -3
- package/esm/icons/sort-asc.svg.js +1 -3
- package/esm/icons/sort-default.svg.js +1 -3
- package/esm/icons/sort-desc.svg.js +1 -3
- package/esm/icons/star.svg.js +1 -3
- package/esm/icons/status-close.svg.js +1 -3
- package/esm/icons/status-fail.svg.js +1 -3
- package/esm/icons/status-info.svg.js +1 -3
- package/esm/icons/status-success.svg.js +1 -3
- package/esm/icons/status-warning.svg.js +1 -3
- package/esm/icons/steps-finsh.svg.js +1 -3
- package/esm/icons/success.svg.js +1 -3
- package/esm/icons/transparent.svg.js +1 -3
- package/esm/icons/trash.svg.js +1 -3
- package/esm/icons/tree-down.svg.js +1 -3
- package/esm/icons/undo.svg.js +1 -3
- package/esm/icons/upload.svg.js +1 -3
- package/esm/icons/user-remove.svg.js +1 -3
- package/esm/icons/view.svg.js +1 -3
- package/esm/icons/volume.svg.js +1 -3
- package/esm/icons/warning-mark.svg.js +1 -3
- package/esm/icons/warning.svg.js +1 -3
- package/esm/icons/window-restore.svg.js +1 -3
- package/esm/icons/zoom-in.svg.js +1 -3
- package/esm/icons/zoom-out.svg.js +1 -3
- package/esm/index.js +4 -1
- package/esm/locale/de-DE.js +3 -1
- package/esm/locale/en-US.js +6 -2
- package/esm/locale/zh-CN.js +8 -4
- 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 +10 -10
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/AssociatedSelection.js +1 -1
- package/lib/components/Avatar.d.ts +12 -12
- package/lib/components/Avatar.js +3 -3
- package/lib/components/Badge.js +1 -1
- package/lib/components/BaiduMapPicker.d.ts +1 -1
- package/lib/components/BaiduMapPicker.js +5 -5
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +3 -3
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.d.ts +10 -10
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +22 -14
- 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 +13 -5
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +10 -10
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +40 -40
- package/lib/components/DatePicker.js +10 -3
- package/lib/components/DateRangePicker.d.ts +40 -40
- package/lib/components/DateRangePicker.js +3 -8
- package/lib/components/Drawer.d.ts +10 -10
- package/lib/components/Drawer.js +1 -1
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +40 -40
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Modal.d.ts +40 -40
- package/lib/components/Modal.js +1 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +40 -40
- package/lib/components/MultilineText.d.ts +462 -0
- package/lib/components/MultilineText.js +94 -0
- package/lib/components/NumberInput.d.ts +34 -11
- package/lib/components/NumberInput.js +88 -33
- package/lib/components/Pagination.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +17 -15
- 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 +10 -8
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +40 -40
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.d.ts +193 -193
- package/lib/components/Select.js +1 -1
- package/lib/components/Selection.d.ts +40 -40
- package/lib/components/Selection.js +7 -5
- 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 +40 -40
- package/lib/components/Tabs.js +3 -1
- package/lib/components/TabsTransfer.js +1 -1
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +10 -10
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +6 -5
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +2 -2
- package/lib/components/Tinymce.d.ts +1 -0
- package/lib/components/Tinymce.js +5 -3
- 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 +18 -13
- package/lib/components/TransferDropDown.d.ts +40 -40
- package/lib/components/TransferDropDown.js +1 -1
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.d.ts +40 -40
- package/lib/components/Tree.js +1 -1
- 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 +3 -1
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +3 -1
- package/lib/components/WithRemoteConfig.js +1 -1
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.js +2 -6
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.js +1 -1
- package/lib/components/calendar/MonthsView.js +1 -1
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.js +2 -2
- 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.d.ts +9 -1
- package/lib/components/condition-builder/Group.js +57 -13
- package/lib/components/condition-builder/GroupOrItem.d.ts +1 -0
- package/lib/components/condition-builder/GroupOrItem.js +7 -5
- 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 +3 -3
- 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 +3 -3
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.d.ts +2 -1
- package/lib/components/icons.js +2 -1
- package/lib/components/index.d.ts +12 -7
- 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/helper.css +3 -0
- 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 +1 -3
- package/lib/icons/alert-info.svg.js +1 -3
- package/lib/icons/alert-success.svg.js +1 -3
- package/lib/icons/alert-warning.svg.js +1 -3
- package/lib/icons/back.svg.js +1 -3
- package/lib/icons/calendar.svg.js +1 -3
- package/lib/icons/caret.svg.js +1 -3
- package/lib/icons/check-circle.svg.js +1 -3
- package/lib/icons/check.svg.js +1 -3
- package/lib/icons/clock.svg.js +1 -3
- package/lib/icons/close-small.svg.js +1 -3
- package/lib/icons/close.svg.js +1 -3
- package/lib/icons/cloud-upload.svg.js +1 -3
- package/lib/icons/column-filter.svg.js +1 -3
- package/lib/icons/columns.svg.js +1 -3
- package/lib/icons/compress-alt.svg.js +1 -3
- package/lib/icons/copy.svg.js +1 -3
- package/lib/icons/date.svg.js +1 -3
- package/lib/icons/department.svg.js +1 -3
- package/lib/icons/desk-empty.svg.js +1 -3
- package/lib/icons/dot.svg.js +1 -3
- package/lib/icons/down-arrow-bold.svg.js +1 -3
- package/lib/icons/down.svg.js +1 -3
- package/lib/icons/download.svg.js +1 -3
- package/lib/icons/drag-bar.svg.js +1 -3
- package/lib/icons/drag.svg.js +1 -3
- package/lib/icons/edit.svg.js +1 -3
- package/lib/icons/ellipsis-v.svg.js +1 -3
- package/lib/icons/enter.svg.js +1 -3
- package/lib/icons/exchange.svg.js +1 -3
- package/lib/icons/expand-alt.svg.js +1 -3
- package/lib/icons/fail.svg.js +1 -3
- package/lib/icons/file.svg.js +1 -3
- package/lib/icons/filter.svg.js +1 -3
- package/lib/icons/folder.svg.js +1 -3
- package/lib/icons/function.svg.js +1 -3
- package/lib/icons/home.svg.js +1 -3
- package/lib/icons/image.svg.js +1 -3
- package/lib/icons/info-circle.svg.js +1 -3
- package/lib/icons/info.svg.js +1 -3
- package/lib/icons/input-clear.svg.js +1 -3
- package/lib/icons/invisible.svg.js +1 -3
- package/lib/icons/left-arrow.svg.js +1 -3
- package/lib/icons/loading-outline.svg.js +1 -3
- package/lib/icons/location.svg.js +1 -3
- package/lib/icons/menu.svg.js +1 -3
- package/lib/icons/minus.svg.js +1 -3
- package/lib/icons/move.svg.js +1 -3
- package/lib/icons/mute.svg.js +1 -3
- package/lib/icons/new-edit.svg.js +1 -3
- package/lib/icons/pause.svg.js +1 -3
- package/lib/icons/pencil.svg.js +1 -3
- package/lib/icons/play.svg.js +1 -3
- package/lib/icons/plus-cicle.svg.js +1 -3
- package/lib/icons/plus-fine.svg.js +1 -3
- package/lib/icons/plus.svg.js +1 -3
- package/lib/icons/post.svg.js +1 -3
- package/lib/icons/question-mark.svg.js +1 -3
- package/lib/icons/question.svg.js +1 -3
- package/lib/icons/redo.svg.js +1 -3
- package/lib/icons/refresh.svg.js +1 -3
- package/lib/icons/reload.svg.js +1 -3
- package/lib/icons/remove.svg.js +1 -3
- package/lib/icons/retry.svg.js +1 -3
- package/lib/icons/right-arrow-bold.svg.js +1 -3
- package/lib/icons/right-arrow.svg.js +1 -3
- package/lib/icons/right-double-arrow.svg.js +1 -3
- package/lib/icons/role.svg.js +1 -3
- package/lib/icons/rotate-left.svg.js +1 -3
- package/lib/icons/rotate-right.svg.js +1 -3
- package/lib/icons/scale-origin.svg.js +1 -3
- package/lib/icons/schedule.svg.js +1 -3
- package/lib/icons/search.svg.js +1 -3
- package/lib/icons/setting.svg.js +1 -3
- package/lib/icons/slider-handle-icon.svg.js +1 -3
- package/lib/icons/sort-asc.svg.js +1 -3
- package/lib/icons/sort-default.svg.js +1 -3
- package/lib/icons/sort-desc.svg.js +1 -3
- package/lib/icons/star.svg.js +1 -3
- package/lib/icons/status-close.svg.js +1 -3
- package/lib/icons/status-fail.svg.js +1 -3
- package/lib/icons/status-info.svg.js +1 -3
- package/lib/icons/status-success.svg.js +1 -3
- package/lib/icons/status-warning.svg.js +1 -3
- package/lib/icons/steps-finsh.svg.js +1 -3
- package/lib/icons/success.svg.js +1 -3
- package/lib/icons/transparent.svg.js +1 -3
- package/lib/icons/trash.svg.js +1 -3
- package/lib/icons/tree-down.svg.js +1 -3
- package/lib/icons/undo.svg.js +1 -3
- package/lib/icons/upload.svg.js +1 -3
- package/lib/icons/user-remove.svg.js +1 -3
- package/lib/icons/view.svg.js +1 -3
- package/lib/icons/volume.svg.js +1 -3
- package/lib/icons/warning-mark.svg.js +1 -3
- package/lib/icons/warning.svg.js +1 -3
- package/lib/icons/window-restore.svg.js +1 -3
- package/lib/icons/zoom-in.svg.js +1 -3
- package/lib/icons/zoom-out.svg.js +1 -3
- package/lib/index.js +7 -1
- package/lib/locale/de-DE.js +3 -1
- package/lib/locale/en-US.js +6 -2
- package/lib/locale/zh-CN.js +8 -4
- package/lib/scss/helper.scss.js +1 -1
- package/lib/scss/themes/ang.scss.js +1 -1
- package/lib/scss/themes/antd.scss.js +1 -1
- package/lib/scss/themes/cxd.scss.js +1 -1
- package/lib/scss/themes/dark.scss.js +1 -1
- package/lib/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +1500 -748
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +2721 -886
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +3104 -1548
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1500 -748
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +3104 -1548
- package/package.json +4 -4
- package/scss/_mixins.scss +144 -45
- package/scss/_properties.scss +155 -312
- package/scss/_utilities.scss +4 -0
- package/scss/base/_normalize.scss +4 -0
- package/scss/components/_alert.scss +0 -1
- package/scss/components/_array-input.scss +8 -3
- package/scss/components/_button.scss +708 -177
- package/scss/components/_code.scss +10 -0
- package/scss/components/_collapse.scss +17 -0
- package/scss/components/_condition-builder.scss +153 -30
- package/scss/components/_drawer.scss +7 -2
- package/scss/components/_formula.scss +4 -0
- package/scss/components/_images.scss +4 -0
- package/scss/components/_list.scss +1 -1
- package/scss/components/_modal.scss +1 -0
- package/scss/components/_multiline-text.scss +20 -0
- package/scss/components/_search-box.scss +1 -1
- package/scss/components/_steps.scss +2 -0
- package/scss/components/_table.scss +14 -0
- package/scss/components/_tabs.scss +1 -1
- package/scss/components/form/_checks.scss +20 -5
- package/scss/components/form/_combo.scss +47 -8
- package/scss/components/form/_date-range.scss +1 -1
- package/scss/components/form/_date.scss +4 -2
- package/scss/components/form/_fieldset.scss +4 -3
- package/scss/components/form/_form.scss +11 -5
- package/scss/components/form/_icon-select.scss +216 -0
- package/scss/components/form/_image.scss +44 -9
- package/scss/components/form/_input-group.scss +3 -0
- package/scss/components/form/_list.scss +33 -28
- package/scss/components/form/_location.scss +4 -0
- package/scss/components/form/_nested-select.scss +1 -1
- package/scss/components/form/_range.scss +4 -0
- package/scss/components/form/_select.scss +2 -1
- package/scss/components/form/_switch.scss +54 -0
- package/scss/components/form/_tag.scss +8 -3
- package/scss/components/form/_text.scss +2 -2
- package/scss/components/form/_textarea.scss +8 -0
- package/scss/components/form/_transfer.scss +213 -20
- package/scss/components/form/_tree-select.scss +7 -0
- package/scss/themes/_antd-variables.scss +1107 -41
- package/scss/themes/_common.scss +3 -0
- package/scss/themes/_cxd-variables.scss +1456 -477
- package/scss/themes/cxd.scss +423 -404
- package/scss/themes/_cxd-colors.scss +0 -56
|
@@ -45,9 +45,32 @@ export interface NumberProps extends ThemeProps {
|
|
|
45
45
|
* 是否是大数
|
|
46
46
|
*/
|
|
47
47
|
big?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* 清空输入内容时的值
|
|
50
|
+
*/
|
|
51
|
+
resetValue?: any;
|
|
48
52
|
}
|
|
49
53
|
export declare class NumberInput extends React.Component<NumberProps, any> {
|
|
50
|
-
static defaultProps: Pick<NumberProps, 'step' | 'readOnly' | 'borderMode'>;
|
|
54
|
+
static defaultProps: Pick<NumberProps, 'step' | 'readOnly' | 'borderMode' | 'resetValue'>;
|
|
55
|
+
/**
|
|
56
|
+
* 处理value值
|
|
57
|
+
*
|
|
58
|
+
* @param value value 值
|
|
59
|
+
* @param min 最小值
|
|
60
|
+
* @param max 最大值
|
|
61
|
+
* @param precision 精度
|
|
62
|
+
* @param resetValue 重置值
|
|
63
|
+
* @param isBig 是否为大数模式
|
|
64
|
+
*/
|
|
65
|
+
static normalizeValue: (value: any, min: number | undefined, max: number | undefined, precision: number, resetValue: any, isBig: boolean | undefined) => any;
|
|
66
|
+
/**
|
|
67
|
+
* 获取精度,合法的精度为0和正整数,不合法的精度统一转化为0
|
|
68
|
+
* 若设置了step,则会基于step的精度生成,最终使用更高的精度
|
|
69
|
+
*
|
|
70
|
+
* @param precision 精度
|
|
71
|
+
* @param step 步长
|
|
72
|
+
*/
|
|
73
|
+
static normalizePrecision: (precision: any, step?: number) => number;
|
|
51
74
|
/**
|
|
52
75
|
* 是否是 bigNumber,如果输入的内容是字符串就自动开启
|
|
53
76
|
*/
|
|
@@ -61,15 +84,15 @@ export declare class NumberInput extends React.Component<NumberProps, any> {
|
|
|
61
84
|
render(): JSX.Element;
|
|
62
85
|
}
|
|
63
86
|
declare const _default: {
|
|
64
|
-
new (props: Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "
|
|
87
|
+
new (props: Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "disabled" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "max" | "min" | "inputRef" | "showSteps" | "precision" | "formatter" | "parser" | "displayMode" | "keyboard"> & Partial<Pick<Omit<NumberProps, keyof ThemeProps>, "step" | "readOnly" | "resetValue" | "borderMode">> & Partial<Pick<Pick<NumberProps, "step" | "readOnly" | "resetValue" | "borderMode">, never>> & import("amis-core/lib/theme").ThemeOutterProps): {
|
|
65
88
|
ref: any;
|
|
66
89
|
childRef(ref: any): void;
|
|
67
90
|
getWrappedInstance(): any;
|
|
68
91
|
render(): JSX.Element;
|
|
69
92
|
context: any;
|
|
70
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "
|
|
93
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "disabled" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "max" | "min" | "inputRef" | "showSteps" | "precision" | "formatter" | "parser" | "displayMode" | "keyboard"> & Partial<Pick<Omit<NumberProps, keyof ThemeProps>, "step" | "readOnly" | "resetValue" | "borderMode">> & Partial<Pick<Pick<NumberProps, "step" | "readOnly" | "resetValue" | "borderMode">, never>> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
71
94
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
72
|
-
readonly props: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "
|
|
95
|
+
readonly props: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "disabled" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "max" | "min" | "inputRef" | "showSteps" | "precision" | "formatter" | "parser" | "displayMode" | "keyboard"> & Partial<Pick<Omit<NumberProps, keyof ThemeProps>, "step" | "readOnly" | "resetValue" | "borderMode">> & Partial<Pick<Pick<NumberProps, "step" | "readOnly" | "resetValue" | "borderMode">, never>> & import("amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
73
96
|
children?: React.ReactNode;
|
|
74
97
|
}>;
|
|
75
98
|
state: Readonly<{}>;
|
|
@@ -77,17 +100,17 @@ declare const _default: {
|
|
|
77
100
|
[key: string]: React.ReactInstance;
|
|
78
101
|
};
|
|
79
102
|
componentDidMount?(): void;
|
|
80
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "
|
|
103
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "disabled" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "max" | "min" | "inputRef" | "showSteps" | "precision" | "formatter" | "parser" | "displayMode" | "keyboard"> & Partial<Pick<Omit<NumberProps, keyof ThemeProps>, "step" | "readOnly" | "resetValue" | "borderMode">> & Partial<Pick<Pick<NumberProps, "step" | "readOnly" | "resetValue" | "borderMode">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
81
104
|
componentWillUnmount?(): void;
|
|
82
105
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
83
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "
|
|
84
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "
|
|
106
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "disabled" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "max" | "min" | "inputRef" | "showSteps" | "precision" | "formatter" | "parser" | "displayMode" | "keyboard"> & Partial<Pick<Omit<NumberProps, keyof ThemeProps>, "step" | "readOnly" | "resetValue" | "borderMode">> & Partial<Pick<Pick<NumberProps, "step" | "readOnly" | "resetValue" | "borderMode">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
107
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "disabled" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "max" | "min" | "inputRef" | "showSteps" | "precision" | "formatter" | "parser" | "displayMode" | "keyboard"> & Partial<Pick<Omit<NumberProps, keyof ThemeProps>, "step" | "readOnly" | "resetValue" | "borderMode">> & Partial<Pick<Pick<NumberProps, "step" | "readOnly" | "resetValue" | "borderMode">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
85
108
|
componentWillMount?(): void;
|
|
86
109
|
UNSAFE_componentWillMount?(): void;
|
|
87
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "
|
|
88
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "
|
|
89
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "
|
|
90
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "
|
|
110
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "disabled" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "max" | "min" | "inputRef" | "showSteps" | "precision" | "formatter" | "parser" | "displayMode" | "keyboard"> & Partial<Pick<Omit<NumberProps, keyof ThemeProps>, "step" | "readOnly" | "resetValue" | "borderMode">> & Partial<Pick<Pick<NumberProps, "step" | "readOnly" | "resetValue" | "borderMode">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
111
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "disabled" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "max" | "min" | "inputRef" | "showSteps" | "precision" | "formatter" | "parser" | "displayMode" | "keyboard"> & Partial<Pick<Omit<NumberProps, keyof ThemeProps>, "step" | "readOnly" | "resetValue" | "borderMode">> & Partial<Pick<Pick<NumberProps, "step" | "readOnly" | "resetValue" | "borderMode">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
112
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "disabled" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "max" | "min" | "inputRef" | "showSteps" | "precision" | "formatter" | "parser" | "displayMode" | "keyboard"> & Partial<Pick<Omit<NumberProps, keyof ThemeProps>, "step" | "readOnly" | "resetValue" | "borderMode">> & Partial<Pick<Pick<NumberProps, "step" | "readOnly" | "resetValue" | "borderMode">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
113
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<NumberProps, keyof ThemeProps>, "big" | "disabled" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "max" | "min" | "inputRef" | "showSteps" | "precision" | "formatter" | "parser" | "displayMode" | "keyboard"> & Partial<Pick<Omit<NumberProps, keyof ThemeProps>, "step" | "readOnly" | "resetValue" | "borderMode">> & Partial<Pick<Pick<NumberProps, "step" | "readOnly" | "resetValue" | "borderMode">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
91
114
|
};
|
|
92
115
|
displayName: string;
|
|
93
116
|
contextType: React.Context<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.4.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -9,6 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
|
|
10
10
|
var tslib = require('tslib');
|
|
11
11
|
var React = require('react');
|
|
12
|
+
var isInteger = require('lodash/isInteger');
|
|
12
13
|
var InputNumber = require('rc-input-number');
|
|
13
14
|
var getMiniDecimal = require('rc-input-number/lib/utils/MiniDecimal');
|
|
14
15
|
var numberUtil = require('rc-input-number/lib/utils/numberUtil');
|
|
@@ -18,6 +19,7 @@ var amisCore = require('amis-core');
|
|
|
18
19
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
20
|
|
|
20
21
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
22
|
+
var isInteger__default = /*#__PURE__*/_interopDefaultLegacy(isInteger);
|
|
21
23
|
var InputNumber__default = /*#__PURE__*/_interopDefaultLegacy(InputNumber);
|
|
22
24
|
var getMiniDecimal__default = /*#__PURE__*/_interopDefaultLegacy(getMiniDecimal);
|
|
23
25
|
|
|
@@ -36,31 +38,10 @@ var NumberInput = /** @class */ (function (_super) {
|
|
|
36
38
|
return _this;
|
|
37
39
|
}
|
|
38
40
|
NumberInput.prototype.handleChange = function (value) {
|
|
39
|
-
var _a = this.props, min = _a.min, max = _a.max, onChange = _a.onChange;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
if (typeof max === 'number') {
|
|
45
|
-
value = Math.min(value, max);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
if (typeof value === 'string') {
|
|
49
|
-
var val = getMiniDecimal__default["default"](value);
|
|
50
|
-
if (typeof min !== 'undefined') {
|
|
51
|
-
var minValue = getMiniDecimal__default["default"](min);
|
|
52
|
-
if (val.lessEquals(minValue)) {
|
|
53
|
-
value = min;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
if (typeof max !== 'undefined') {
|
|
57
|
-
var maxValue = getMiniDecimal__default["default"](max);
|
|
58
|
-
if (maxValue.lessEquals(val)) {
|
|
59
|
-
value = max;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(value);
|
|
41
|
+
var _a = this.props, min = _a.min, max = _a.max, step = _a.step, precision = _a.precision, resetValue = _a.resetValue, onChange = _a.onChange;
|
|
42
|
+
var finalPrecision = NumberInput.normalizePrecision(precision, step);
|
|
43
|
+
var result = NumberInput.normalizeValue(value, min, max, finalPrecision, resetValue, this.isBig);
|
|
44
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(result);
|
|
64
45
|
};
|
|
65
46
|
NumberInput.prototype.handleFocus = function (e) {
|
|
66
47
|
var onFocus = this.props.onFocus;
|
|
@@ -111,11 +92,10 @@ var NumberInput = /** @class */ (function (_super) {
|
|
|
111
92
|
};
|
|
112
93
|
NumberInput.prototype.renderBase = function () {
|
|
113
94
|
var _a;
|
|
114
|
-
var _b = this.props, className = _b.className, ns = _b.classPrefix, cx = _b.classnames, value = _b.value, step = _b.step, precision = _b.precision, max = _b.max, min = _b.min, disabled = _b.disabled, placeholder = _b.placeholder
|
|
115
|
-
var precisionProps = {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
95
|
+
var _b = this.props, className = _b.className, ns = _b.classPrefix, cx = _b.classnames, value = _b.value, step = _b.step, precision = _b.precision, max = _b.max, min = _b.min, disabled = _b.disabled, placeholder = _b.placeholder, showSteps = _b.showSteps, formatter = _b.formatter, parser = _b.parser, borderMode = _b.borderMode, readOnly = _b.readOnly, displayMode = _b.displayMode, inputRef = _b.inputRef, keyboard = _b.keyboard;
|
|
96
|
+
var precisionProps = {
|
|
97
|
+
precision: NumberInput.normalizePrecision(precision, step)
|
|
98
|
+
};
|
|
119
99
|
return (React__default["default"].createElement(InputNumber__default["default"], tslib.__assign({ className: cx(className, showSteps === false ? 'no-steps' : '', displayMode === 'enhance' ? 'Number--enhance-input' : '', (_a = {},
|
|
120
100
|
_a["Number--border".concat(amisCore.ucFirst(borderMode))] = borderMode,
|
|
121
101
|
_a)), ref: inputRef, readOnly: readOnly, prefixCls: "".concat(ns, "Number"), value: value, step: step, max: max, min: min, formatter: formatter, parser: parser, onChange: this.handleChange, disabled: disabled, placeholder: placeholder, onFocus: this.handleFocus, onBlur: this.handleBlur, stringMode: this.isBig ? true : false, keyboard: keyboard }, precisionProps)));
|
|
@@ -123,7 +103,7 @@ var NumberInput = /** @class */ (function (_super) {
|
|
|
123
103
|
NumberInput.prototype.render = function () {
|
|
124
104
|
var _a;
|
|
125
105
|
var _this = this;
|
|
126
|
-
var _b = this.props
|
|
106
|
+
var _b = this.props, cx = _b.classnames, value = _b.value, max = _b.max, min = _b.min, disabled = _b.disabled, showSteps = _b.showSteps, borderMode = _b.borderMode, readOnly = _b.readOnly, displayMode = _b.displayMode;
|
|
127
107
|
return (React__default["default"].createElement(React__default["default"].Fragment, null, displayMode === 'enhance' ? (React__default["default"].createElement("div", { className: cx('Number--enhance', disabled ? 'Number--enhance-disabled' : '', showSteps === false ? 'Number--enhance-no-steps' : '', (_a = {},
|
|
128
108
|
_a["Number--enhance-border".concat(amisCore.ucFirst(borderMode))] = borderMode,
|
|
129
109
|
_a)) },
|
|
@@ -136,7 +116,82 @@ var NumberInput = /** @class */ (function (_super) {
|
|
|
136
116
|
NumberInput.defaultProps = {
|
|
137
117
|
step: 1,
|
|
138
118
|
readOnly: false,
|
|
139
|
-
borderMode: 'full'
|
|
119
|
+
borderMode: 'full',
|
|
120
|
+
resetValue: ''
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* 处理value值
|
|
124
|
+
*
|
|
125
|
+
* @param value value 值
|
|
126
|
+
* @param min 最小值
|
|
127
|
+
* @param max 最大值
|
|
128
|
+
* @param precision 精度
|
|
129
|
+
* @param resetValue 重置值
|
|
130
|
+
* @param isBig 是否为大数模式
|
|
131
|
+
*/
|
|
132
|
+
NumberInput.normalizeValue = function (value, min, max, precision, resetValue, isBig) {
|
|
133
|
+
/**
|
|
134
|
+
* 输入不合法时重置为resetValue
|
|
135
|
+
* 若resetValue为非数字,则直接重置
|
|
136
|
+
* 若resetValue为数字,则需要处理max,min,precision,保证抛出的值满足条件
|
|
137
|
+
*/
|
|
138
|
+
if (value == null) {
|
|
139
|
+
if (typeof resetValue !== 'number') {
|
|
140
|
+
return resetValue !== null && resetValue !== void 0 ? resetValue : '';
|
|
141
|
+
}
|
|
142
|
+
value = resetValue;
|
|
143
|
+
}
|
|
144
|
+
// 处理max & min
|
|
145
|
+
if (typeof value === 'number') {
|
|
146
|
+
if (typeof min === 'number') {
|
|
147
|
+
value = Math.max(value, min);
|
|
148
|
+
}
|
|
149
|
+
if (typeof max === 'number') {
|
|
150
|
+
value = Math.min(value, max);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
// 处理string类型输入
|
|
154
|
+
if (typeof value === 'string') {
|
|
155
|
+
var val = getMiniDecimal__default["default"](value);
|
|
156
|
+
if (typeof min !== 'undefined') {
|
|
157
|
+
var minValue = getMiniDecimal__default["default"](min);
|
|
158
|
+
if (val.lessEquals(minValue)) {
|
|
159
|
+
value = min;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
if (typeof max !== 'undefined') {
|
|
163
|
+
var maxValue = getMiniDecimal__default["default"](max);
|
|
164
|
+
if (maxValue.lessEquals(val)) {
|
|
165
|
+
value = max;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* 非大数模式下,如果精度不满足要求,需要处理value值,遵循四舍五入的处理规则
|
|
171
|
+
*/
|
|
172
|
+
if (!isBig && numberUtil.getNumberPrecision(value) !== precision) {
|
|
173
|
+
value = getMiniDecimal__default["default"](getMiniDecimal.toFixed(numberUtil.num2str(value), '.', precision)).toNumber();
|
|
174
|
+
}
|
|
175
|
+
return value;
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* 获取精度,合法的精度为0和正整数,不合法的精度统一转化为0
|
|
179
|
+
* 若设置了step,则会基于step的精度生成,最终使用更高的精度
|
|
180
|
+
*
|
|
181
|
+
* @param precision 精度
|
|
182
|
+
* @param step 步长
|
|
183
|
+
*/
|
|
184
|
+
NumberInput.normalizePrecision = function (precision, step) {
|
|
185
|
+
if (typeof precision === 'number' &&
|
|
186
|
+
isInteger__default["default"](precision) &&
|
|
187
|
+
precision >= 0) {
|
|
188
|
+
return Math.max(precision, numberUtil.getNumberPrecision(step !== null && step !== void 0 ? step : 1));
|
|
189
|
+
}
|
|
190
|
+
// 如果设置了step,就基于step和precision,选取更高精度
|
|
191
|
+
if (step != null) {
|
|
192
|
+
return Math.max(0, numberUtil.getNumberPrecision(step));
|
|
193
|
+
}
|
|
194
|
+
return 0;
|
|
140
195
|
};
|
|
141
196
|
tslib.__decorate([
|
|
142
197
|
amisCore.autobind,
|
package/lib/components/Picker.js
CHANGED
package/lib/components/PopUp.js
CHANGED
|
@@ -36,15 +36,15 @@ export declare class Progress extends React.Component<ProgressProps, Object> {
|
|
|
36
36
|
render(): JSX.Element;
|
|
37
37
|
}
|
|
38
38
|
declare const _default: {
|
|
39
|
-
new (props: Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "
|
|
39
|
+
new (props: Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps): {
|
|
40
40
|
ref: any;
|
|
41
41
|
childRef(ref: any): void;
|
|
42
42
|
getWrappedInstance(): any;
|
|
43
43
|
render(): JSX.Element;
|
|
44
44
|
context: any;
|
|
45
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "
|
|
45
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
46
46
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
47
|
-
readonly props: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "
|
|
47
|
+
readonly props: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
48
48
|
children?: React.ReactNode;
|
|
49
49
|
}>;
|
|
50
50
|
state: Readonly<{}>;
|
|
@@ -52,17 +52,17 @@ declare const _default: {
|
|
|
52
52
|
[key: string]: React.ReactInstance;
|
|
53
53
|
};
|
|
54
54
|
componentDidMount?(): void;
|
|
55
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "
|
|
55
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
56
56
|
componentWillUnmount?(): void;
|
|
57
57
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
58
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "
|
|
59
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "
|
|
58
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
59
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
60
60
|
componentWillMount?(): void;
|
|
61
61
|
UNSAFE_componentWillMount?(): void;
|
|
62
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "
|
|
63
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "
|
|
64
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "
|
|
65
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "
|
|
62
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
63
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
64
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
65
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
66
66
|
};
|
|
67
67
|
displayName: string;
|
|
68
68
|
contextType: React.Context<string>;
|
|
@@ -53,7 +53,7 @@ export declare class Radios extends React.Component<RadioProps, any> {
|
|
|
53
53
|
render(): JSX.Element;
|
|
54
54
|
}
|
|
55
55
|
declare const _default: {
|
|
56
|
-
new (props: Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "
|
|
56
|
+
new (props: Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "disabled" | "value" | "multiple" | "id" | "placeholder" | "onChange" | "block" | "level" | "loading" | "itemClassName" | "labelClassName" | "options" | "labelField" | "valueField" | "itemHeight" | "multi" | "delimiter" | "pathSeparator" | "simpleValue" | "extractValue" | "creatable" | "virtualThreshold" | "hasError" | "onAdd" | "editable" | "onEdit" | "removable" | "onDelete"> & Partial<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "type" | "inline" | "optionType" | "joinValues" | "clearable" | "resetValue" | "btnActiveLevel" | "columnsCount">> & Partial<Pick<{
|
|
57
57
|
type: string;
|
|
58
58
|
optionType: string;
|
|
59
59
|
btnActiveLevel: string;
|
|
@@ -68,7 +68,7 @@ declare const _default: {
|
|
|
68
68
|
getWrappedInstance(): any;
|
|
69
69
|
render(): JSX.Element;
|
|
70
70
|
context: any;
|
|
71
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "
|
|
71
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "disabled" | "value" | "multiple" | "id" | "placeholder" | "onChange" | "block" | "level" | "loading" | "itemClassName" | "labelClassName" | "options" | "labelField" | "valueField" | "itemHeight" | "multi" | "delimiter" | "pathSeparator" | "simpleValue" | "extractValue" | "creatable" | "virtualThreshold" | "hasError" | "onAdd" | "editable" | "onEdit" | "removable" | "onDelete"> & Partial<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "type" | "inline" | "optionType" | "joinValues" | "clearable" | "resetValue" | "btnActiveLevel" | "columnsCount">> & Partial<Pick<{
|
|
72
72
|
type: string;
|
|
73
73
|
optionType: string;
|
|
74
74
|
btnActiveLevel: string;
|
|
@@ -79,7 +79,7 @@ declare const _default: {
|
|
|
79
79
|
columnsCount: number;
|
|
80
80
|
}, never>> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
81
81
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
82
|
-
readonly props: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "
|
|
82
|
+
readonly props: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "disabled" | "value" | "multiple" | "id" | "placeholder" | "onChange" | "block" | "level" | "loading" | "itemClassName" | "labelClassName" | "options" | "labelField" | "valueField" | "itemHeight" | "multi" | "delimiter" | "pathSeparator" | "simpleValue" | "extractValue" | "creatable" | "virtualThreshold" | "hasError" | "onAdd" | "editable" | "onEdit" | "removable" | "onDelete"> & Partial<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "type" | "inline" | "optionType" | "joinValues" | "clearable" | "resetValue" | "btnActiveLevel" | "columnsCount">> & Partial<Pick<{
|
|
83
83
|
type: string;
|
|
84
84
|
optionType: string;
|
|
85
85
|
btnActiveLevel: string;
|
|
@@ -96,7 +96,7 @@ declare const _default: {
|
|
|
96
96
|
[key: string]: React.ReactInstance;
|
|
97
97
|
};
|
|
98
98
|
componentDidMount?(): void;
|
|
99
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "
|
|
99
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "disabled" | "value" | "multiple" | "id" | "placeholder" | "onChange" | "block" | "level" | "loading" | "itemClassName" | "labelClassName" | "options" | "labelField" | "valueField" | "itemHeight" | "multi" | "delimiter" | "pathSeparator" | "simpleValue" | "extractValue" | "creatable" | "virtualThreshold" | "hasError" | "onAdd" | "editable" | "onEdit" | "removable" | "onDelete"> & Partial<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "type" | "inline" | "optionType" | "joinValues" | "clearable" | "resetValue" | "btnActiveLevel" | "columnsCount">> & Partial<Pick<{
|
|
100
100
|
type: string;
|
|
101
101
|
optionType: string;
|
|
102
102
|
btnActiveLevel: string;
|
|
@@ -108,7 +108,7 @@ declare const _default: {
|
|
|
108
108
|
}, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
109
109
|
componentWillUnmount?(): void;
|
|
110
110
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
111
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "
|
|
111
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "disabled" | "value" | "multiple" | "id" | "placeholder" | "onChange" | "block" | "level" | "loading" | "itemClassName" | "labelClassName" | "options" | "labelField" | "valueField" | "itemHeight" | "multi" | "delimiter" | "pathSeparator" | "simpleValue" | "extractValue" | "creatable" | "virtualThreshold" | "hasError" | "onAdd" | "editable" | "onEdit" | "removable" | "onDelete"> & Partial<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "type" | "inline" | "optionType" | "joinValues" | "clearable" | "resetValue" | "btnActiveLevel" | "columnsCount">> & Partial<Pick<{
|
|
112
112
|
type: string;
|
|
113
113
|
optionType: string;
|
|
114
114
|
btnActiveLevel: string;
|
|
@@ -118,7 +118,7 @@ declare const _default: {
|
|
|
118
118
|
clearable: boolean;
|
|
119
119
|
columnsCount: number;
|
|
120
120
|
}, never>> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
121
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "
|
|
121
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "disabled" | "value" | "multiple" | "id" | "placeholder" | "onChange" | "block" | "level" | "loading" | "itemClassName" | "labelClassName" | "options" | "labelField" | "valueField" | "itemHeight" | "multi" | "delimiter" | "pathSeparator" | "simpleValue" | "extractValue" | "creatable" | "virtualThreshold" | "hasError" | "onAdd" | "editable" | "onEdit" | "removable" | "onDelete"> & Partial<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "type" | "inline" | "optionType" | "joinValues" | "clearable" | "resetValue" | "btnActiveLevel" | "columnsCount">> & Partial<Pick<{
|
|
122
122
|
type: string;
|
|
123
123
|
optionType: string;
|
|
124
124
|
btnActiveLevel: string;
|
|
@@ -130,7 +130,7 @@ declare const _default: {
|
|
|
130
130
|
}, never>> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
131
131
|
componentWillMount?(): void;
|
|
132
132
|
UNSAFE_componentWillMount?(): void;
|
|
133
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "
|
|
133
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "disabled" | "value" | "multiple" | "id" | "placeholder" | "onChange" | "block" | "level" | "loading" | "itemClassName" | "labelClassName" | "options" | "labelField" | "valueField" | "itemHeight" | "multi" | "delimiter" | "pathSeparator" | "simpleValue" | "extractValue" | "creatable" | "virtualThreshold" | "hasError" | "onAdd" | "editable" | "onEdit" | "removable" | "onDelete"> & Partial<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "type" | "inline" | "optionType" | "joinValues" | "clearable" | "resetValue" | "btnActiveLevel" | "columnsCount">> & Partial<Pick<{
|
|
134
134
|
type: string;
|
|
135
135
|
optionType: string;
|
|
136
136
|
btnActiveLevel: string;
|
|
@@ -140,7 +140,7 @@ declare const _default: {
|
|
|
140
140
|
clearable: boolean;
|
|
141
141
|
columnsCount: number;
|
|
142
142
|
}, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
143
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "
|
|
143
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "disabled" | "value" | "multiple" | "id" | "placeholder" | "onChange" | "block" | "level" | "loading" | "itemClassName" | "labelClassName" | "options" | "labelField" | "valueField" | "itemHeight" | "multi" | "delimiter" | "pathSeparator" | "simpleValue" | "extractValue" | "creatable" | "virtualThreshold" | "hasError" | "onAdd" | "editable" | "onEdit" | "removable" | "onDelete"> & Partial<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "type" | "inline" | "optionType" | "joinValues" | "clearable" | "resetValue" | "btnActiveLevel" | "columnsCount">> & Partial<Pick<{
|
|
144
144
|
type: string;
|
|
145
145
|
optionType: string;
|
|
146
146
|
btnActiveLevel: string;
|
|
@@ -150,7 +150,7 @@ declare const _default: {
|
|
|
150
150
|
clearable: boolean;
|
|
151
151
|
columnsCount: number;
|
|
152
152
|
}, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
153
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "
|
|
153
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "disabled" | "value" | "multiple" | "id" | "placeholder" | "onChange" | "block" | "level" | "loading" | "itemClassName" | "labelClassName" | "options" | "labelField" | "valueField" | "itemHeight" | "multi" | "delimiter" | "pathSeparator" | "simpleValue" | "extractValue" | "creatable" | "virtualThreshold" | "hasError" | "onAdd" | "editable" | "onEdit" | "removable" | "onDelete"> & Partial<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "type" | "inline" | "optionType" | "joinValues" | "clearable" | "resetValue" | "btnActiveLevel" | "columnsCount">> & Partial<Pick<{
|
|
154
154
|
type: string;
|
|
155
155
|
optionType: string;
|
|
156
156
|
btnActiveLevel: string;
|
|
@@ -160,7 +160,7 @@ declare const _default: {
|
|
|
160
160
|
clearable: boolean;
|
|
161
161
|
columnsCount: number;
|
|
162
162
|
}, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
163
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "
|
|
163
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "style" | "disabled" | "value" | "multiple" | "id" | "placeholder" | "onChange" | "block" | "level" | "loading" | "itemClassName" | "labelClassName" | "options" | "labelField" | "valueField" | "itemHeight" | "multi" | "delimiter" | "pathSeparator" | "simpleValue" | "extractValue" | "creatable" | "virtualThreshold" | "hasError" | "onAdd" | "editable" | "onEdit" | "removable" | "onDelete"> & Partial<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "type" | "inline" | "optionType" | "joinValues" | "clearable" | "resetValue" | "btnActiveLevel" | "columnsCount">> & Partial<Pick<{
|
|
164
164
|
type: string;
|
|
165
165
|
optionType: string;
|
|
166
166
|
btnActiveLevel: string;
|
package/lib/components/Radios.js
CHANGED
package/lib/components/Range.js
CHANGED