amis-ui 2.0.2 → 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.js +1 -1
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.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 +2 -0
- package/esm/components/DatePicker.js +9 -2
- package/esm/components/DateRangePicker.d.ts +91 -41
- package/esm/components/DateRangePicker.js +92 -51
- 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/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.js +1 -1
- package/esm/components/Select.d.ts +194 -193
- package/esm/components/Select.js +8 -4
- 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.js +1 -1
- 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 +18 -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 +6 -1
- package/esm/locale/en-US.js +6 -1
- package/esm/locale/zh-CN.js +8 -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.js +2 -2
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.js +1 -1
- 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.js +1 -1
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedSelection.js +1 -1
- 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.js +1 -1
- package/lib/components/CollapseGroup.js +1 -1
- 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 +2 -0
- package/lib/components/DatePicker.js +9 -2
- package/lib/components/DateRangePicker.d.ts +91 -41
- package/lib/components/DateRangePicker.js +91 -50
- 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.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.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.js +1 -1
- 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/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.js +8 -4
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.js +1 -1
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.js +7 -3
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +1 -1
- package/lib/components/RichText2.js +1 -1
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.d.ts +194 -193
- package/lib/components/Select.js +8 -4
- 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.js +1 -1
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.js +1 -1
- package/lib/components/TableSelection.js +1 -1
- 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.js +1 -1
- 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.js +9 -2
- package/lib/components/TransferDropDown.js +2 -3
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.js +34 -33
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.js +1 -1
- 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.js +1 -1
- package/lib/components/formula/FuncList.js +1 -1
- 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 +18 -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.js +1 -1
- 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.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 +6 -1
- package/lib/locale/en-US.js +6 -1
- package/lib/locale/zh-CN.js +8 -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 +936 -409
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +936 -409
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +947 -423
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +936 -409
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +947 -423
- package/package.json +10 -10
- package/scss/_properties.scss +96 -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/_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/_modal.scss +14 -12
- package/scss/components/_pagination.scss +4 -3
- package/scss/components/_progress.scss +2 -1
- package/scss/components/_result-box.scss +5 -5
- package/scss/components/_search-box.scss +4 -0
- package/scss/components/_steps.scss +23 -12
- package/scss/components/_table.scss +87 -10
- package/scss/components/_tabs.scss +46 -4
- 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 +8 -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/cxd.scss +2 -8
|
@@ -64,6 +64,11 @@ export interface BasicPaginationProps {
|
|
|
64
64
|
*/
|
|
65
65
|
disabled?: boolean;
|
|
66
66
|
hasNext?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* 弹层挂载节点
|
|
69
|
+
* @default false
|
|
70
|
+
*/
|
|
71
|
+
popOverContainerSelector?: string;
|
|
67
72
|
onPageChange?: (page: number, perPage?: number) => void;
|
|
68
73
|
}
|
|
69
74
|
export interface PaginationProps extends BasicPaginationProps, ThemeProps, LocaleProps {
|
|
@@ -115,7 +120,7 @@ export declare class Pagination extends React.Component<PaginationProps, Paginat
|
|
|
115
120
|
render(): JSX.Element;
|
|
116
121
|
}
|
|
117
122
|
declare const _default: {
|
|
118
|
-
new (props: Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
123
|
+
new (props: Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
119
124
|
layout: PaginationWidget[];
|
|
120
125
|
maxButtons: number;
|
|
121
126
|
mode: MODE_TYPE;
|
|
@@ -131,7 +136,7 @@ declare const _default: {
|
|
|
131
136
|
getWrappedInstance(): any;
|
|
132
137
|
render(): JSX.Element;
|
|
133
138
|
context: any;
|
|
134
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
139
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
135
140
|
layout: PaginationWidget[];
|
|
136
141
|
maxButtons: number;
|
|
137
142
|
mode: MODE_TYPE;
|
|
@@ -143,7 +148,7 @@ declare const _default: {
|
|
|
143
148
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
144
149
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
145
150
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
146
|
-
readonly props: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
151
|
+
readonly props: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
147
152
|
layout: PaginationWidget[];
|
|
148
153
|
maxButtons: number;
|
|
149
154
|
mode: MODE_TYPE;
|
|
@@ -161,7 +166,7 @@ declare const _default: {
|
|
|
161
166
|
[key: string]: React.ReactInstance;
|
|
162
167
|
};
|
|
163
168
|
componentDidMount?(): void;
|
|
164
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
169
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
165
170
|
layout: PaginationWidget[];
|
|
166
171
|
maxButtons: number;
|
|
167
172
|
mode: MODE_TYPE;
|
|
@@ -174,7 +179,7 @@ declare const _default: {
|
|
|
174
179
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
175
180
|
componentWillUnmount?(): void;
|
|
176
181
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
177
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
182
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
178
183
|
layout: PaginationWidget[];
|
|
179
184
|
maxButtons: number;
|
|
180
185
|
mode: MODE_TYPE;
|
|
@@ -185,7 +190,7 @@ declare const _default: {
|
|
|
185
190
|
locale?: string | undefined;
|
|
186
191
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
187
192
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
188
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
193
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
189
194
|
layout: PaginationWidget[];
|
|
190
195
|
maxButtons: number;
|
|
191
196
|
mode: MODE_TYPE;
|
|
@@ -197,15 +202,8 @@ declare const _default: {
|
|
|
197
202
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
198
203
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
199
204
|
componentWillMount?(): void;
|
|
200
|
-
UNSAFE_componentWillMount?(): void;
|
|
201
|
-
|
|
202
|
-
*
|
|
203
|
-
* @param cur 当前页数
|
|
204
|
-
* @param counts 总共页码按钮数
|
|
205
|
-
* @param min 最小页码
|
|
206
|
-
* @param max 最大页码
|
|
207
|
-
*/
|
|
208
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
205
|
+
UNSAFE_componentWillMount?(): void;
|
|
206
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
209
207
|
layout: PaginationWidget[];
|
|
210
208
|
maxButtons: number;
|
|
211
209
|
mode: MODE_TYPE;
|
|
@@ -216,7 +214,7 @@ declare const _default: {
|
|
|
216
214
|
locale?: string | undefined;
|
|
217
215
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
218
216
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
219
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
217
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
220
218
|
layout: PaginationWidget[];
|
|
221
219
|
maxButtons: number;
|
|
222
220
|
mode: MODE_TYPE;
|
|
@@ -227,7 +225,7 @@ declare const _default: {
|
|
|
227
225
|
locale?: string | undefined;
|
|
228
226
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
229
227
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
230
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
228
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
231
229
|
layout: PaginationWidget[];
|
|
232
230
|
maxButtons: number;
|
|
233
231
|
mode: MODE_TYPE;
|
|
@@ -238,7 +236,7 @@ declare const _default: {
|
|
|
238
236
|
locale?: string | undefined;
|
|
239
237
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
240
238
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
241
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
239
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
242
240
|
layout: PaginationWidget[];
|
|
243
241
|
maxButtons: number;
|
|
244
242
|
mode: MODE_TYPE;
|
|
@@ -253,7 +251,7 @@ declare const _default: {
|
|
|
253
251
|
displayName: string;
|
|
254
252
|
contextType: React.Context<string>;
|
|
255
253
|
ComposedComponent: React.ComponentType<{
|
|
256
|
-
new (props: Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
254
|
+
new (props: Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
257
255
|
layout: PaginationWidget[];
|
|
258
256
|
maxButtons: number;
|
|
259
257
|
mode: MODE_TYPE;
|
|
@@ -272,7 +270,7 @@ declare const _default: {
|
|
|
272
270
|
* @default [10, 20, 50, 100]
|
|
273
271
|
*/
|
|
274
272
|
context: any;
|
|
275
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
273
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
276
274
|
layout: PaginationWidget[];
|
|
277
275
|
maxButtons: number;
|
|
278
276
|
mode: MODE_TYPE;
|
|
@@ -284,7 +282,7 @@ declare const _default: {
|
|
|
284
282
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
285
283
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
286
284
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
287
|
-
readonly props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
285
|
+
readonly props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
288
286
|
layout: PaginationWidget[];
|
|
289
287
|
maxButtons: number;
|
|
290
288
|
mode: MODE_TYPE;
|
|
@@ -302,7 +300,7 @@ declare const _default: {
|
|
|
302
300
|
[key: string]: React.ReactInstance;
|
|
303
301
|
};
|
|
304
302
|
componentDidMount?(): void;
|
|
305
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
303
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
306
304
|
layout: PaginationWidget[];
|
|
307
305
|
maxButtons: number;
|
|
308
306
|
mode: MODE_TYPE;
|
|
@@ -315,7 +313,7 @@ declare const _default: {
|
|
|
315
313
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
316
314
|
componentWillUnmount?(): void;
|
|
317
315
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
318
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
316
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
319
317
|
layout: PaginationWidget[];
|
|
320
318
|
maxButtons: number;
|
|
321
319
|
mode: MODE_TYPE;
|
|
@@ -326,7 +324,7 @@ declare const _default: {
|
|
|
326
324
|
locale?: string | undefined;
|
|
327
325
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
328
326
|
}>, prevState: Readonly<{}>): any;
|
|
329
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
327
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
330
328
|
layout: PaginationWidget[];
|
|
331
329
|
maxButtons: number;
|
|
332
330
|
mode: MODE_TYPE;
|
|
@@ -337,14 +335,9 @@ declare const _default: {
|
|
|
337
335
|
locale?: string | undefined;
|
|
338
336
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
339
337
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
340
|
-
componentWillMount?(): void;
|
|
341
|
-
* 渲染...
|
|
342
|
-
*
|
|
343
|
-
* @param key 类型 'prev-ellipsis' | 'next-ellipsis'
|
|
344
|
-
* @param page 页码
|
|
345
|
-
*/
|
|
338
|
+
componentWillMount?(): void;
|
|
346
339
|
UNSAFE_componentWillMount?(): void;
|
|
347
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
340
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
348
341
|
layout: PaginationWidget[];
|
|
349
342
|
maxButtons: number;
|
|
350
343
|
mode: MODE_TYPE;
|
|
@@ -355,7 +348,7 @@ declare const _default: {
|
|
|
355
348
|
locale?: string | undefined;
|
|
356
349
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
357
350
|
}>, nextContext: any): void;
|
|
358
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
351
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
359
352
|
layout: PaginationWidget[];
|
|
360
353
|
maxButtons: number;
|
|
361
354
|
mode: MODE_TYPE;
|
|
@@ -366,7 +359,7 @@ declare const _default: {
|
|
|
366
359
|
locale?: string | undefined;
|
|
367
360
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
368
361
|
}>, nextContext: any): void;
|
|
369
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
362
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
370
363
|
layout: PaginationWidget[];
|
|
371
364
|
maxButtons: number;
|
|
372
365
|
mode: MODE_TYPE;
|
|
@@ -377,7 +370,7 @@ declare const _default: {
|
|
|
377
370
|
locale?: string | undefined;
|
|
378
371
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
379
372
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
380
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
373
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
381
374
|
layout: PaginationWidget[];
|
|
382
375
|
maxButtons: number;
|
|
383
376
|
mode: MODE_TYPE;
|
|
@@ -396,7 +389,7 @@ declare const _default: {
|
|
|
396
389
|
ComposedComponent: typeof Pagination;
|
|
397
390
|
}>;
|
|
398
391
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
399
|
-
new (props: Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
392
|
+
new (props: Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
400
393
|
layout: PaginationWidget[];
|
|
401
394
|
maxButtons: number;
|
|
402
395
|
mode: MODE_TYPE;
|
|
@@ -415,7 +408,7 @@ declare const _default: {
|
|
|
415
408
|
* @default [10, 20, 50, 100]
|
|
416
409
|
*/
|
|
417
410
|
context: any;
|
|
418
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
411
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
419
412
|
layout: PaginationWidget[];
|
|
420
413
|
maxButtons: number;
|
|
421
414
|
mode: MODE_TYPE;
|
|
@@ -427,7 +420,7 @@ declare const _default: {
|
|
|
427
420
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
428
421
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
429
422
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
430
|
-
readonly props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
423
|
+
readonly props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
431
424
|
layout: PaginationWidget[];
|
|
432
425
|
maxButtons: number;
|
|
433
426
|
mode: MODE_TYPE;
|
|
@@ -445,7 +438,7 @@ declare const _default: {
|
|
|
445
438
|
[key: string]: React.ReactInstance;
|
|
446
439
|
};
|
|
447
440
|
componentDidMount?(): void;
|
|
448
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
441
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
449
442
|
layout: PaginationWidget[];
|
|
450
443
|
maxButtons: number;
|
|
451
444
|
mode: MODE_TYPE;
|
|
@@ -458,7 +451,7 @@ declare const _default: {
|
|
|
458
451
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
459
452
|
componentWillUnmount?(): void;
|
|
460
453
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
461
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
454
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
462
455
|
layout: PaginationWidget[];
|
|
463
456
|
maxButtons: number;
|
|
464
457
|
mode: MODE_TYPE;
|
|
@@ -469,7 +462,7 @@ declare const _default: {
|
|
|
469
462
|
locale?: string | undefined;
|
|
470
463
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
471
464
|
}>, prevState: Readonly<{}>): any;
|
|
472
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
465
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
473
466
|
layout: PaginationWidget[];
|
|
474
467
|
maxButtons: number;
|
|
475
468
|
mode: MODE_TYPE;
|
|
@@ -480,14 +473,9 @@ declare const _default: {
|
|
|
480
473
|
locale?: string | undefined;
|
|
481
474
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
482
475
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
483
|
-
componentWillMount?(): void;
|
|
484
|
-
* 渲染...
|
|
485
|
-
*
|
|
486
|
-
* @param key 类型 'prev-ellipsis' | 'next-ellipsis'
|
|
487
|
-
* @param page 页码
|
|
488
|
-
*/
|
|
476
|
+
componentWillMount?(): void;
|
|
489
477
|
UNSAFE_componentWillMount?(): void;
|
|
490
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
478
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
491
479
|
layout: PaginationWidget[];
|
|
492
480
|
maxButtons: number;
|
|
493
481
|
mode: MODE_TYPE;
|
|
@@ -498,7 +486,7 @@ declare const _default: {
|
|
|
498
486
|
locale?: string | undefined;
|
|
499
487
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
500
488
|
}>, nextContext: any): void;
|
|
501
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
489
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
502
490
|
layout: PaginationWidget[];
|
|
503
491
|
maxButtons: number;
|
|
504
492
|
mode: MODE_TYPE;
|
|
@@ -509,7 +497,7 @@ declare const _default: {
|
|
|
509
497
|
locale?: string | undefined;
|
|
510
498
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
511
499
|
}>, nextContext: any): void;
|
|
512
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
500
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
513
501
|
layout: PaginationWidget[];
|
|
514
502
|
maxButtons: number;
|
|
515
503
|
mode: MODE_TYPE;
|
|
@@ -520,7 +508,7 @@ declare const _default: {
|
|
|
520
508
|
locale?: string | undefined;
|
|
521
509
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
522
510
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
523
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
511
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
524
512
|
layout: PaginationWidget[];
|
|
525
513
|
maxButtons: number;
|
|
526
514
|
mode: MODE_TYPE;
|
|
@@ -539,7 +527,7 @@ declare const _default: {
|
|
|
539
527
|
ComposedComponent: typeof Pagination;
|
|
540
528
|
}, {}> & {
|
|
541
529
|
ComposedComponent: {
|
|
542
|
-
new (props: Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
530
|
+
new (props: Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
543
531
|
layout: PaginationWidget[];
|
|
544
532
|
maxButtons: number;
|
|
545
533
|
mode: MODE_TYPE;
|
|
@@ -558,7 +546,7 @@ declare const _default: {
|
|
|
558
546
|
* @default [10, 20, 50, 100]
|
|
559
547
|
*/
|
|
560
548
|
context: any;
|
|
561
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
549
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
562
550
|
layout: PaginationWidget[];
|
|
563
551
|
maxButtons: number;
|
|
564
552
|
mode: MODE_TYPE;
|
|
@@ -570,7 +558,7 @@ declare const _default: {
|
|
|
570
558
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
571
559
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
572
560
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
573
|
-
readonly props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
561
|
+
readonly props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
574
562
|
layout: PaginationWidget[];
|
|
575
563
|
maxButtons: number;
|
|
576
564
|
mode: MODE_TYPE;
|
|
@@ -588,7 +576,7 @@ declare const _default: {
|
|
|
588
576
|
[key: string]: React.ReactInstance;
|
|
589
577
|
};
|
|
590
578
|
componentDidMount?(): void;
|
|
591
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
579
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
592
580
|
layout: PaginationWidget[];
|
|
593
581
|
maxButtons: number;
|
|
594
582
|
mode: MODE_TYPE;
|
|
@@ -601,7 +589,7 @@ declare const _default: {
|
|
|
601
589
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
602
590
|
componentWillUnmount?(): void;
|
|
603
591
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
604
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
592
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
605
593
|
layout: PaginationWidget[];
|
|
606
594
|
maxButtons: number;
|
|
607
595
|
mode: MODE_TYPE;
|
|
@@ -612,7 +600,7 @@ declare const _default: {
|
|
|
612
600
|
locale?: string | undefined;
|
|
613
601
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
614
602
|
}>, prevState: Readonly<{}>): any;
|
|
615
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
603
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
616
604
|
layout: PaginationWidget[];
|
|
617
605
|
maxButtons: number;
|
|
618
606
|
mode: MODE_TYPE;
|
|
@@ -623,14 +611,9 @@ declare const _default: {
|
|
|
623
611
|
locale?: string | undefined;
|
|
624
612
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
625
613
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
626
|
-
componentWillMount?(): void;
|
|
627
|
-
* 渲染...
|
|
628
|
-
*
|
|
629
|
-
* @param key 类型 'prev-ellipsis' | 'next-ellipsis'
|
|
630
|
-
* @param page 页码
|
|
631
|
-
*/
|
|
614
|
+
componentWillMount?(): void;
|
|
632
615
|
UNSAFE_componentWillMount?(): void;
|
|
633
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
616
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
634
617
|
layout: PaginationWidget[];
|
|
635
618
|
maxButtons: number;
|
|
636
619
|
mode: MODE_TYPE;
|
|
@@ -641,7 +624,7 @@ declare const _default: {
|
|
|
641
624
|
locale?: string | undefined;
|
|
642
625
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
643
626
|
}>, nextContext: any): void;
|
|
644
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
627
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
645
628
|
layout: PaginationWidget[];
|
|
646
629
|
maxButtons: number;
|
|
647
630
|
mode: MODE_TYPE;
|
|
@@ -652,7 +635,7 @@ declare const _default: {
|
|
|
652
635
|
locale?: string | undefined;
|
|
653
636
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
654
637
|
}>, nextContext: any): void;
|
|
655
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
638
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
656
639
|
layout: PaginationWidget[];
|
|
657
640
|
maxButtons: number;
|
|
658
641
|
mode: MODE_TYPE;
|
|
@@ -663,7 +646,7 @@ declare const _default: {
|
|
|
663
646
|
locale?: string | undefined;
|
|
664
647
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
665
648
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
666
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
649
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext" | "onPageChange"> & Partial<Pick<Omit<PaginationProps, keyof LocaleProps>, "layout" | "mode" | "maxButtons" | "activePage" | "perPage" | "perPageAvailable">> & Partial<Pick<{
|
|
667
650
|
layout: PaginationWidget[];
|
|
668
651
|
maxButtons: number;
|
|
669
652
|
mode: MODE_TYPE;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.0
|
|
2
|
+
* amis-ui v2.1.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -119,7 +119,7 @@ var Pagination = /** @class */ (function (_super) {
|
|
|
119
119
|
};
|
|
120
120
|
Pagination.prototype.render = function () {
|
|
121
121
|
var _this = this;
|
|
122
|
-
var _a = this.props, layout = _a.layout, maxButtons = _a.maxButtons, mode = _a.mode, activePage = _a.activePage, total = _a.total, showPerPage = _a.showPerPage, perPageAvailable = _a.perPageAvailable, cx = _a.classnames, showPageInput = _a.showPageInput, className = _a.className, disabled = _a.disabled, hasNext = _a.hasNext, __ = _a.translate;
|
|
122
|
+
var _a = this.props, layout = _a.layout, maxButtons = _a.maxButtons, mode = _a.mode, activePage = _a.activePage, total = _a.total, showPerPage = _a.showPerPage, perPageAvailable = _a.perPageAvailable, cx = _a.classnames, showPageInput = _a.showPageInput, className = _a.className, disabled = _a.disabled, hasNext = _a.hasNext, popOverContainerSelector = _a.popOverContainerSelector, __ = _a.translate;
|
|
123
123
|
var _b = this.state, pageNum = _b.pageNum, perPage = _b.perPage;
|
|
124
124
|
var lastPage = this.getLastPage();
|
|
125
125
|
// 简易模式
|
|
@@ -231,7 +231,7 @@ var Pagination = /** @class */ (function (_super) {
|
|
|
231
231
|
var selection = perPageAvailable
|
|
232
232
|
.filter(function (v) { return !!v; })
|
|
233
233
|
.map(function (v) { return ({ label: __('Pagination.select', { count: v }), value: v }); });
|
|
234
|
-
var perPageEle = (React__default.createElement(EnhancedSelect, { key: "perpage", className: cx('Pagination-perpage', 'Pagination-item'), overlayPlacement: "right-bottom-right-top", clearable: false, disabled: disabled, value: perPage, options: selection, onChange: function (p) {
|
|
234
|
+
var perPageEle = (React__default.createElement(EnhancedSelect, { key: "perpage", className: cx('Pagination-perpage', 'Pagination-item'), overlayPlacement: "right-bottom-right-top", clearable: false, disabled: disabled, value: perPage, options: selection, popOverContainerSelector: popOverContainerSelector, onChange: function (p) {
|
|
235
235
|
_this.setState({
|
|
236
236
|
perPage: p.value,
|
|
237
237
|
pageNum: ''
|
package/esm/components/Picker.js
CHANGED
package/esm/components/PopUp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.0
|
|
2
|
+
* amis-ui v2.1.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -81,7 +81,11 @@ var Progress = /** @class */ (function (_super) {
|
|
|
81
81
|
];
|
|
82
82
|
}
|
|
83
83
|
else if (type === 'circle' || type === 'dashboard') {
|
|
84
|
-
var circleWidth = strokeWidth ||
|
|
84
|
+
var circleWidth = strokeWidth || 8;
|
|
85
|
+
var circleStyle = {
|
|
86
|
+
width: circleWidth * 10 + 'px',
|
|
87
|
+
height: circleWidth * 10 + 'px'
|
|
88
|
+
};
|
|
85
89
|
var gapPos = gapPosition || (type === 'dashboard' && 'bottom') || 'top';
|
|
86
90
|
var getGapDegree = function () {
|
|
87
91
|
if (gapDegree || gapDegree === 0) {
|
|
@@ -93,8 +97,8 @@ var Progress = /** @class */ (function (_super) {
|
|
|
93
97
|
return undefined;
|
|
94
98
|
};
|
|
95
99
|
viewValue = [
|
|
96
|
-
React__default.createElement("div", { className: cx(prefixCls, progressClassName
|
|
97
|
-
React__default.createElement(Circle, { percent: value, strokeColor: !isColorClass ? bgColor : '', strokeWidth: circleWidth, trailWidth: circleWidth, prefixCls: isColorClass ? bgColor : '', gapDegree: getGapDegree(), gapPosition: gapPos }),
|
|
100
|
+
React__default.createElement("div", { className: cx(prefixCls, progressClassName), key: "circle", style: circleStyle },
|
|
101
|
+
React__default.createElement(Circle, { percent: value, strokeColor: !isColorClass ? bgColor : '', strokeWidth: circleWidth, trailWidth: circleWidth, prefixCls: isColorClass ? bgColor : '', gapDegree: getGapDegree(), gapPosition: gapPos, style: circleStyle }),
|
|
98
102
|
this.getLabel(prefixCls))
|
|
99
103
|
];
|
|
100
104
|
}
|
package/esm/components/Radios.js
CHANGED
package/esm/components/Range.js
CHANGED
package/esm/components/Rating.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.0
|
|
2
|
+
* amis-ui v2.1.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -116,8 +116,12 @@ var ResultBox = /** @class */ (function (_super) {
|
|
|
116
116
|
_a)), onClick: onResultClick, tabIndex: !allowInput && !disabled && onFocus ? 0 : -1, onKeyPress: allowInput ? undefined : onKeyPress, onFocus: allowInput ? undefined : onFocus, onBlur: allowInput ? undefined : onBlur },
|
|
117
117
|
React__default.createElement("div", { className: cx('ResultBox-value-wrap') },
|
|
118
118
|
Array.isArray(result) && result.length ? (this.renderMultipeTags(result)) : result && !Array.isArray(result) ? (React__default.createElement("span", { className: cx('ResultBox-singleValue') }, isPlainObject(result) ? itemRender(result) : result)) : allowInput && !disabled ? null : (React__default.createElement("span", { className: cx('ResultBox-placeholder') }, __(placeholder || 'placeholder.noData'))),
|
|
119
|
-
allowInput && !disabled ? (React__default.createElement(Input, __assign({}, rest, { className: cx('ResultBox-value-input'), onKeyPress: onKeyPress, ref: this.inputRef, value: value || '', onChange: this.handleChange, placeholder: __(
|
|
120
|
-
|
|
119
|
+
allowInput && !disabled ? (React__default.createElement(Input, __assign({}, rest, { className: cx('ResultBox-value-input'), onKeyPress: onKeyPress, ref: this.inputRef, value: value || '', onChange: this.handleChange, placeholder: __(
|
|
120
|
+
/** 数组模式下输入内容后将不再展示placeholder */
|
|
121
|
+
Array.isArray(result)
|
|
122
|
+
? result.length > 0
|
|
123
|
+
? inputPlaceholder
|
|
124
|
+
: placeholder
|
|
121
125
|
: result
|
|
122
126
|
? ''
|
|
123
127
|
: placeholder), onFocus: this.handleFocus, onBlur: this.handleBlur }))) : null,
|