amis-ui 6.11.0-beta.9 → 6.12.0-ab.1
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 +1 -1
- package/esm/components/AlphabetIndexer.d.ts +11 -0
- package/esm/components/AlphabetIndexer.js +48 -0
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/AnchorNavSection.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/AutoSizer.js +1 -1
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.d.ts +9 -0
- package/esm/components/BaiduMapPicker.js +50 -12
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.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/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/Combo.js +1 -1
- package/esm/components/ConditionBuilder.js +1 -1
- package/esm/components/ConfirmBox.js +1 -1
- package/esm/components/ContextMenu.d.ts +1 -0
- package/esm/components/ContextMenu.js +6 -3
- package/esm/components/DatePicker.js +1 -1
- package/esm/components/DateRangePicker.js +1 -1
- package/esm/components/DiffEditor.js +1 -1
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.js +1 -1
- package/esm/components/DropdownContextMenus.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/FormulaPicker.js +1 -1
- package/esm/components/GaodeMapPicker.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GridNavItem.js +1 -1
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/HeadCellDropDown.js +1 -1
- package/esm/components/HorizontalScroll.d.ts +75 -0
- package/esm/components/HorizontalScroll.js +271 -0
- package/esm/components/Html.d.ts +2 -0
- package/esm/components/Html.js +6 -3
- package/esm/components/Icon.js +1 -1
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.d.ts +10 -10
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/InputJSONSchema.js +1 -1
- package/esm/components/InputTable.js +1 -1
- package/esm/components/JSONSchemaEditor.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.d.ts +41 -40
- package/esm/components/LocationPicker.js +6 -6
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Menu.js +1 -1
- package/esm/components/MobileDevTool.js +1 -1
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.js +1 -1
- package/esm/components/OverflowTpl.js +1 -1
- package/esm/components/Pagination.d.ts +47 -0
- package/esm/components/Pagination.js +25 -26
- package/esm/components/PdfViewer.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.d.ts +12 -0
- package/esm/components/PullRefresh.js +23 -13
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.js +1 -1
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +40 -40
- package/esm/components/ResultBox.js +1 -1
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.js +1 -1
- package/esm/components/SelectMobile.js +1 -1
- package/esm/components/Selection.js +1 -1
- package/esm/components/Shape.js +1 -1
- package/esm/components/Signature.d.ts +2 -3
- package/esm/components/Signature.js +29 -21
- package/esm/components/Slider.d.ts +56 -0
- package/esm/components/Slider.js +140 -0
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.js +1 -1
- package/esm/components/Steps.d.ts +7 -0
- package/esm/components/Steps.js +6 -6
- package/esm/components/Switch.js +1 -1
- package/esm/components/Tab.js +1 -1
- package/esm/components/Table.js +1 -1
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.js +1 -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 +1 -1
- package/esm/components/Timeline.d.ts +8 -1
- package/esm/components/Timeline.js +46 -5
- package/esm/components/TimelineItem.d.ts +984 -23
- package/esm/components/TimelineItem.js +86 -30
- package/esm/components/Tinymce.js +1 -1
- 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 +3 -3
- package/esm/components/Transfer.js +1 -1
- 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.d.ts +47 -46
- package/esm/components/Tree.js +52 -12
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/VerificationCode.js +1 -1
- package/esm/components/VirtualList.js +1 -1
- package/esm/components/WithRemoteConfig.js +1 -1
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.js +1 -1
- 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 +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/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/CodeEditor.js +1 -1
- package/esm/components/formula/Editor.js +13 -9
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Input.js +1 -1
- package/esm/components/formula/Picker.js +14 -10
- package/esm/components/formula/VariableList.js +1 -1
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.js +1 -1
- package/esm/components/index.d.ts +5 -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/menu/MenuContext.d.ts +12 -2
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.js +1 -1
- package/esm/components/menu/PanelMenu.d.ts +46 -0
- package/esm/components/menu/PanelMenu.js +68 -0
- package/esm/components/menu/SubMenu.d.ts +1 -1
- package/esm/components/menu/SubMenu.js +16 -5
- package/esm/components/menu/index.d.ts +29 -25
- package/esm/components/menu/index.js +23 -8
- 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.d.ts +2 -0
- package/esm/components/table/Cell.js +10 -3
- package/esm/components/table/ColGroup.js +1 -1
- package/esm/components/table/Head.d.ts +1 -0
- package/esm/components/table/Head.js +12 -17
- 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/Row.js +1 -1
- package/esm/components/table/SummaryRow.js +1 -1
- package/esm/components/table/index.js +18 -7
- package/esm/components/table/util.d.ts +1 -0
- package/esm/components/table/util.js +23 -2
- package/esm/components/virtual-list/AutoSizer.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/components/withBadge.js +1 -1
- package/esm/hooks/use-click-away.d.ts +12 -0
- package/esm/hooks/use-click-away.js +55 -0
- package/esm/hooks/use-on-screen.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-sub-form.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 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/arrow-double-left.svg.js +1 -1
- package/esm/icons/arrow-double-right.svg.js +1 -1
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +1 -1
- package/esm/icons/down.svg.js +1 -1
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -1
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/fullscreen.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/if.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +1 -1
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +1 -1
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +1 -1
- package/esm/icons/right-double-arrow.svg.js +1 -1
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +1 -1
- package/esm/icons/rotate-right.svg.js +1 -1
- package/esm/icons/rotate-screen.svg.js +1 -1
- package/esm/icons/scale-origin.svg.js +1 -1
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +1 -1
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +1 -1
- package/esm/icons/sub-plus.svg.js +1 -1
- package/esm/icons/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo-normal.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/unfullscreen.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.d.ts +2 -1
- package/esm/index.js +5 -2
- package/esm/locale/de-DE.js +2 -1
- package/esm/locale/en-US.js +2 -1
- package/esm/locale/zh-CN.js +2 -1
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/esm/utils/vectorComputed.js +1 -1
- package/esm/withRemoteConfig.js +1 -1
- package/esm/withStore.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.d.ts +40 -40
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +20 -20
- package/lib/components/Alert2.js +1 -1
- package/lib/components/AlphabetIndexer.d.ts +11 -0
- package/lib/components/AlphabetIndexer.js +59 -0
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/AnchorNavSection.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/AutoSizer.js +1 -1
- package/lib/components/Avatar.d.ts +110 -110
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.d.ts +1 -1
- package/lib/components/Badge.js +1 -1
- package/lib/components/BaiduMapPicker.d.ts +9 -0
- package/lib/components/BaiduMapPicker.js +50 -12
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +30 -30
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.d.ts +80 -80
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedDropdownSelection.d.ts +40 -40
- package/lib/components/ChainedDropdownSelection.js +1 -1
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/ChainedSelection.js +1 -1
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CityArea.js +1 -1
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +60 -60
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.d.ts +50 -50
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.js +1 -1
- package/lib/components/ConditionBuilder.js +1 -1
- package/lib/components/ConfirmBox.d.ts +80 -80
- package/lib/components/ConfirmBox.js +1 -1
- package/lib/components/ContextMenu.d.ts +1 -0
- package/lib/components/ContextMenu.js +6 -3
- package/lib/components/DatePicker.d.ts +40 -40
- package/lib/components/DatePicker.js +1 -1
- package/lib/components/DateRangePicker.d.ts +40 -40
- package/lib/components/DateRangePicker.js +1 -1
- package/lib/components/DiffEditor.js +1 -1
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.d.ts +10 -10
- package/lib/components/Drawer.js +1 -1
- package/lib/components/DropDownSelection.d.ts +40 -40
- package/lib/components/DropDownSelection.js +1 -1
- package/lib/components/DropdownContextMenus.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/FormulaPicker.js +1 -1
- package/lib/components/GaodeMapPicker.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GridNavItem.js +1 -1
- package/lib/components/GroupedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/HeadCellDropDown.js +1 -1
- package/lib/components/HorizontalScroll.d.ts +75 -0
- package/lib/components/HorizontalScroll.js +283 -0
- package/lib/components/Html.d.ts +2 -0
- package/lib/components/Html.js +6 -2
- package/lib/components/Icon.js +1 -1
- package/lib/components/ImageGallery.d.ts +40 -40
- 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/InputJSONSchema.js +1 -1
- package/lib/components/InputTable.js +1 -1
- package/lib/components/JSONSchemaEditor.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 +41 -40
- package/lib/components/LocationPicker.js +6 -6
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Menu.js +1 -1
- package/lib/components/MobileDevTool.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 +40 -40
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +10 -10
- package/lib/components/NumberInput.js +1 -1
- package/lib/components/OverflowTpl.js +1 -1
- package/lib/components/Pagination.d.ts +87 -40
- package/lib/components/Pagination.js +25 -26
- package/lib/components/PdfViewer.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.d.ts +40 -40
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +90 -90
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.d.ts +12 -0
- package/lib/components/PullRefresh.js +23 -13
- 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 +20 -20
- 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 +1 -1
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +40 -40
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.d.ts +187 -188
- package/lib/components/Select.js +1 -1
- package/lib/components/SelectMobile.js +1 -1
- package/lib/components/Selection.d.ts +40 -40
- package/lib/components/Selection.js +1 -1
- package/lib/components/Shape.js +1 -1
- package/lib/components/Signature.d.ts +2 -3
- package/lib/components/Signature.js +31 -21
- package/lib/components/Slider.d.ts +56 -0
- package/lib/components/Slider.js +146 -0
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +20 -20
- package/lib/components/Spinner.js +1 -1
- package/lib/components/Steps.d.ts +7 -0
- package/lib/components/Steps.js +6 -6
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +1 -1
- package/lib/components/Tab.js +1 -1
- package/lib/components/Table.js +1 -1
- package/lib/components/TableSelection.d.ts +40 -40
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +80 -80
- package/lib/components/Tabs.js +1 -1
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +1 -1
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +70 -70
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +1 -1
- package/lib/components/Timeline.d.ts +8 -1
- package/lib/components/Timeline.js +44 -3
- package/lib/components/TimelineItem.d.ts +984 -23
- package/lib/components/TimelineItem.js +88 -27
- package/lib/components/Tinymce.js +1 -1
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.d.ts +40 -40
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.d.ts +20 -20
- package/lib/components/TooltipWrapper.js +3 -3
- package/lib/components/Transfer.d.ts +40 -40
- package/lib/components/Transfer.js +1 -1
- 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 +47 -46
- package/lib/components/Tree.js +51 -11
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +1 -1
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/VerificationCode.js +1 -1
- package/lib/components/VirtualList.js +1 -1
- package/lib/components/WithRemoteConfig.d.ts +0 -1
- package/lib/components/WithRemoteConfig.js +1 -1
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.js +1 -1
- 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 +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/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/CodeEditor.js +1 -1
- package/lib/components/formula/Editor.d.ts +40 -40
- package/lib/components/formula/Editor.js +13 -9
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Input.js +1 -1
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +14 -10
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.js +1 -1
- package/lib/components/index.d.ts +5 -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/menu/MenuContext.d.ts +12 -2
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +1 -1
- package/lib/components/menu/PanelMenu.d.ts +46 -0
- package/lib/components/menu/PanelMenu.js +74 -0
- package/lib/components/menu/SubMenu.d.ts +1 -1
- package/lib/components/menu/SubMenu.js +16 -5
- package/lib/components/menu/index.d.ts +29 -25
- package/lib/components/menu/index.js +23 -8
- 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 +2 -0
- package/lib/components/table/Cell.js +10 -3
- package/lib/components/table/ColGroup.js +1 -1
- package/lib/components/table/Head.d.ts +1 -0
- package/lib/components/table/Head.js +11 -16
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.d.ts +40 -40
- package/lib/components/table/HeadCellFilter.js +1 -1
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- 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/Row.js +1 -1
- package/lib/components/table/SummaryRow.js +1 -1
- package/lib/components/table/index.d.ts +120 -120
- package/lib/components/table/index.js +18 -7
- package/lib/components/table/util.d.ts +6 -5
- package/lib/components/table/util.js +23 -1
- package/lib/components/virtual-list/AutoSizer.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/components/withBadge.js +1 -1
- package/lib/hooks/use-click-away.d.ts +12 -0
- package/lib/hooks/use-click-away.js +59 -0
- package/lib/hooks/use-on-screen.js +1 -1
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-sub-form.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 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/arrow-double-left.svg.js +1 -1
- package/lib/icons/arrow-double-right.svg.js +1 -1
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check.svg.js +1 -1
- package/lib/icons/clock.svg.js +1 -1
- package/lib/icons/close-small.svg.js +1 -1
- package/lib/icons/close.svg.js +1 -1
- package/lib/icons/cloud-upload.svg.js +1 -1
- package/lib/icons/column-filter.svg.js +1 -1
- package/lib/icons/columns.svg.js +1 -1
- package/lib/icons/compress-alt.svg.js +1 -1
- package/lib/icons/copy.svg.js +1 -1
- package/lib/icons/date.svg.js +1 -1
- package/lib/icons/department.svg.js +1 -1
- package/lib/icons/desk-empty.svg.js +1 -1
- package/lib/icons/dot.svg.js +1 -1
- package/lib/icons/down-arrow-bold.svg.js +1 -1
- package/lib/icons/down.svg.js +1 -1
- package/lib/icons/download.svg.js +1 -1
- package/lib/icons/drag-bar.svg.js +1 -1
- package/lib/icons/drag.svg.js +1 -1
- package/lib/icons/edit.svg.js +1 -1
- package/lib/icons/ellipsis-v.svg.js +1 -1
- package/lib/icons/enter.svg.js +1 -1
- package/lib/icons/exchange.svg.js +1 -1
- package/lib/icons/expand-alt.svg.js +1 -1
- package/lib/icons/fail.svg.js +1 -1
- package/lib/icons/file.svg.js +1 -1
- package/lib/icons/filter.svg.js +1 -1
- package/lib/icons/folder.svg.js +1 -1
- package/lib/icons/fullscreen.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/if.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +1 -1
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +1 -1
- package/lib/icons/pause.svg.js +1 -1
- package/lib/icons/pencil.svg.js +1 -1
- package/lib/icons/play.svg.js +1 -1
- package/lib/icons/plus-cicle.svg.js +1 -1
- package/lib/icons/plus-fine.svg.js +1 -1
- package/lib/icons/plus.svg.js +1 -1
- package/lib/icons/post.svg.js +1 -1
- package/lib/icons/question-mark.svg.js +1 -1
- package/lib/icons/question.svg.js +1 -1
- package/lib/icons/redo.svg.js +1 -1
- package/lib/icons/refresh.svg.js +1 -1
- package/lib/icons/reload.svg.js +1 -1
- package/lib/icons/remove.svg.js +1 -1
- package/lib/icons/retry.svg.js +1 -1
- package/lib/icons/right-arrow-bold.svg.js +1 -1
- package/lib/icons/right-arrow.svg.js +1 -1
- package/lib/icons/right-double-arrow.svg.js +1 -1
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +1 -1
- package/lib/icons/rotate-right.svg.js +1 -1
- package/lib/icons/rotate-screen.svg.js +1 -1
- package/lib/icons/scale-origin.svg.js +1 -1
- package/lib/icons/schedule.svg.js +1 -1
- package/lib/icons/search.svg.js +1 -1
- package/lib/icons/setting.svg.js +1 -1
- package/lib/icons/slider-handle-icon.svg.js +1 -1
- package/lib/icons/sort-asc.svg.js +1 -1
- package/lib/icons/sort-default.svg.js +1 -1
- package/lib/icons/sort-desc.svg.js +1 -1
- package/lib/icons/star.svg.js +1 -1
- package/lib/icons/status-close.svg.js +1 -1
- package/lib/icons/steps-finsh.svg.js +1 -1
- package/lib/icons/sub-plus.svg.js +1 -1
- package/lib/icons/success.svg.js +1 -1
- package/lib/icons/transparent.svg.js +1 -1
- package/lib/icons/trash.svg.js +1 -1
- package/lib/icons/tree-down.svg.js +1 -1
- package/lib/icons/undo-normal.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/unfullscreen.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.d.ts +2 -1
- package/lib/index.js +8 -1
- package/lib/locale/de-DE.js +2 -1
- package/lib/locale/en-US.js +2 -1
- package/lib/locale/zh-CN.js +2 -1
- 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 +1109 -129
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +1109 -129
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +1109 -129
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1109 -129
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +1109 -129
- package/lib/utils/vectorComputed.js +1 -1
- package/lib/withRemoteConfig.js +1 -1
- package/lib/withStore.js +1 -1
- package/package.json +4 -3
- package/scss/_components.scss +22 -10
- package/scss/_properties.scss +13 -1
- package/scss/base/_animate.scss +84 -0
- package/scss/components/_cards.scss +26 -0
- package/scss/components/_carousel.scss +9 -8
- package/scss/components/_context-menu.scss +34 -42
- package/scss/components/_dropdown.scss +0 -1
- package/scss/components/_horizontal-scroll.scss +51 -0
- package/scss/components/_images.scss +435 -0
- package/scss/components/_list.scss +57 -0
- package/scss/components/_menu.scss +58 -0
- package/scss/components/_page.scss +27 -1
- package/scss/components/_pagination.scss +96 -3
- package/scss/components/_popoverable.scss +6 -5
- package/scss/components/_signature.scss +1 -0
- package/scss/components/_slider.scss +27 -0
- package/scss/components/_steps.scss +17 -2
- package/scss/components/_table.scss +19 -1
- package/scss/components/_table2.scss +28 -0
- package/scss/components/_timeline.scss +366 -88
- package/scss/themes/_common.scss +3 -0
- package/esm/utils/smoothSignature.js +0 -386
- package/lib/utils/smoothSignature.js +0 -390
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.
|
|
2
|
+
* amis-ui v6.12.0-ab.1
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -44,7 +44,9 @@ var Pagination = /** @class */ (function (_super) {
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
Pagination.prototype.componentWillReceiveProps = function (nextProps) {
|
|
47
|
-
if (
|
|
47
|
+
if (
|
|
48
|
+
// 原本作用在simple上的样式和部分方法变成了normal的,这里需要重置内部状态
|
|
49
|
+
this.props.mode !== 'simple' &&
|
|
48
50
|
nextProps.activePage !== Number(this.state.internalPageNum)) {
|
|
49
51
|
this.setState({ internalPageNum: String(nextProps.activePage) });
|
|
50
52
|
}
|
|
@@ -198,40 +200,38 @@ var Pagination = /** @class */ (function (_super) {
|
|
|
198
200
|
};
|
|
199
201
|
Pagination.prototype.render = function () {
|
|
200
202
|
var _this = this;
|
|
201
|
-
var _a = this.props, layout = _a.layout, mode = _a.mode, activePage = _a.activePage, total = _a.total, showPerPage = _a.showPerPage, perPageAvailable = _a.perPageAvailable, cx = _a.classnames, showPageInput = _a.showPageInput, className = _a.className, style = _a.style, disabled = _a.disabled
|
|
203
|
+
var _a = this.props, layout = _a.layout, mode = _a.mode, activePage = _a.activePage, total = _a.total, showPerPage = _a.showPerPage, perPageAvailable = _a.perPageAvailable, cx = _a.classnames, showPageInput = _a.showPageInput, className = _a.className, style = _a.style, disabled = _a.disabled; _a.hasNext; var popOverContainer = _a.popOverContainer, popOverContainerSelector = _a.popOverContainerSelector, mobileUI = _a.mobileUI, size = _a.size, __ = _a.translate, buttonType = _a.buttonType, testIdBuilder = _a.testIdBuilder;
|
|
202
204
|
var maxButtons = this.props.maxButtons;
|
|
203
205
|
var _b = this.state, pageNum = _b.pageNum, perPage = _b.perPage, internalPageNum = _b.internalPageNum;
|
|
204
206
|
var lastPage = this.getLastPage();
|
|
205
|
-
var
|
|
206
|
-
//
|
|
207
|
-
if (mode === 'simple') {
|
|
208
|
-
|
|
207
|
+
var basePager = null;
|
|
208
|
+
// 非简洁模式
|
|
209
|
+
if ((mode !== 'simple' && mobileUI) || (mode === 'simple' && !mobileUI)) {
|
|
210
|
+
basePager = (_J$X_("li", { className: cx('Pagination-simplego'), key: "simple-go" },
|
|
209
211
|
_J$X_("input", tslib.__assign({ className: cx('Pagination-simplego-input'), key: "simple-input", type: "text", disabled: disabled, onChange: this.handleSimpleKeyUp, onKeyUp: this.handleSimpleKeyUp, onBlur: this.handleSimpleBlur, value: internalPageNum }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('simple-input').getTestId())),
|
|
210
212
|
"/",
|
|
211
213
|
_J$X_("span", { className: cx('Pagination-simplego-right'), key: "go-right" }, lastPage)));
|
|
212
214
|
return (_J$X_("div", tslib.__assign({ className: cx('Pagination-wrap', "Pagination-wrap-size--".concat(size), 'Pagination-simple', { disabled: disabled }, className), style: style }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getTestId()),
|
|
213
215
|
_J$X_("ul", { key: "pager-items", className: cx('Pagination', 'Pagination--sm', 'Pagination-pager-items', 'Pagination-item') },
|
|
214
216
|
_J$X_("li", { className: cx('Pagination-prev', {
|
|
215
|
-
'is-disabled':
|
|
217
|
+
'is-disabled': Number(internalPageNum) < 2
|
|
216
218
|
}), onClick: function (e) {
|
|
217
|
-
if (
|
|
219
|
+
if (Number(internalPageNum) < 2) {
|
|
218
220
|
return e.preventDefault();
|
|
219
221
|
}
|
|
220
222
|
return _this.handlePageNumChange(activePage - 1, undefined, 'backward');
|
|
221
223
|
}, key: "prev" },
|
|
222
|
-
_J$X_("span", tslib.__assign({}, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild("go-prev").getTestId()),
|
|
223
|
-
|
|
224
|
-
simplePager,
|
|
224
|
+
_J$X_("span", tslib.__assign({}, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild("go-prev").getTestId()), buttonType === 'icon' ? (_J$X_(icons.Icon, { icon: "left-arrow", className: "icon" })) : buttonType === 'text' ? ('上一页') : null)),
|
|
225
|
+
basePager,
|
|
225
226
|
_J$X_("li", { className: cx('Pagination-next', {
|
|
226
|
-
'is-disabled':
|
|
227
|
+
'is-disabled': Number(internalPageNum) >= lastPage
|
|
227
228
|
}), onClick: function (e) {
|
|
228
|
-
if (
|
|
229
|
+
if (Number(internalPageNum) === lastPage) {
|
|
229
230
|
return e.preventDefault();
|
|
230
231
|
}
|
|
231
232
|
return _this.handlePageNumChange(activePage + 1, perPage, 'forward');
|
|
232
233
|
}, key: "next" },
|
|
233
|
-
_J$X_("span", tslib.__assign({}, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild("go-next").getTestId()),
|
|
234
|
-
_J$X_(icons.Icon, { icon: "right-arrow", className: "icon" }))))));
|
|
234
|
+
_J$X_("span", tslib.__assign({}, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild("go-next").getTestId()), buttonType === 'icon' ? (_J$X_(icons.Icon, { icon: "right-arrow", className: "icon" })) : buttonType === 'text' ? ('下一页') : null)))));
|
|
235
235
|
}
|
|
236
236
|
var pageButtons = [];
|
|
237
237
|
var layoutList = Array.isArray(layout)
|
|
@@ -285,8 +285,7 @@ var Pagination = /** @class */ (function (_super) {
|
|
|
285
285
|
}
|
|
286
286
|
return _this.handlePageNumChange(activePage - 1, perPage);
|
|
287
287
|
}, key: "prev" },
|
|
288
|
-
_J$X_("span", tslib.__assign({}, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('go-prev').getTestId()),
|
|
289
|
-
_J$X_(icons.Icon, { icon: "left-arrow", className: "icon" }))));
|
|
288
|
+
_J$X_("span", tslib.__assign({}, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('go-prev').getTestId()), buttonType === 'icon' ? (_J$X_(icons.Icon, { icon: "left-arrow", className: "icon" })) : buttonType === 'text' ? ('上一页') : null)));
|
|
290
289
|
pageButtons.push(_J$X_("li", { className: cx('Pagination-next', {
|
|
291
290
|
'is-disabled': activePage === lastPage
|
|
292
291
|
}), onClick: function (e) {
|
|
@@ -295,17 +294,16 @@ var Pagination = /** @class */ (function (_super) {
|
|
|
295
294
|
}
|
|
296
295
|
return _this.handlePageNumChange(activePage + 1, perPage);
|
|
297
296
|
}, key: "next" },
|
|
298
|
-
_J$X_("span", tslib.__assign({}, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('go-next').getTestId()),
|
|
299
|
-
_J$X_(icons.Icon, { icon: "right-arrow", className: "icon" }))));
|
|
297
|
+
_J$X_("span", tslib.__assign({}, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('go-next').getTestId()), buttonType === 'icon' ? (_J$X_(icons.Icon, { icon: "right-arrow", className: "icon" })) : buttonType === 'text' ? ('下一页') : null)));
|
|
300
298
|
if (mobileUI) {
|
|
301
299
|
pageButtons = [
|
|
302
300
|
pageButtons[0],
|
|
303
|
-
this.renderPageItem(activePage),
|
|
301
|
+
// this.renderPageItem(activePage),
|
|
304
302
|
pageButtons[pageButtons.length - 1]
|
|
305
303
|
];
|
|
306
304
|
}
|
|
307
|
-
var go = (_J$X_("div", { className: cx('Pagination-inputGroup Pagination-item'), key: "go" },
|
|
308
|
-
|
|
305
|
+
var go = mobileUI ? null : (_J$X_("div", { className: cx('Pagination-inputGroup Pagination-item'), key: "go" },
|
|
306
|
+
_J$X_("span", { className: cx('Pagination-inputGroup-left'), key: "go-left" }, __('Pagination.goto')),
|
|
309
307
|
_J$X_("input", tslib.__assign({ className: cx('Pagination-inputGroup-input'), key: "go-input", type: "text", disabled: disabled, onChange: this.handlePageChange, onFocus: function (e) { return e.currentTarget.select(); }, onKeyUp: function (e) {
|
|
310
308
|
var v = parseInt(e.currentTarget.value, 10);
|
|
311
309
|
if (!v || e.code != 'Enter') {
|
|
@@ -324,7 +322,7 @@ var Pagination = /** @class */ (function (_super) {
|
|
|
324
322
|
var selection = perPageAvailable
|
|
325
323
|
.filter(function (v) { return !!v; })
|
|
326
324
|
.map(function (v) { return ({ label: __('Pagination.select', { count: v }), value: v }); });
|
|
327
|
-
var perPageEle = (_J$X_(Select["default"], tslib.__assign({ key: "perpage", className: cx('Pagination-perpage', 'Pagination-item'), clearable: false, disabled: disabled, value: perPage, options: selection, popOverContainer: popOverContainer, popOverContainerSelector: popOverContainerSelector, onChange: function (p) {
|
|
325
|
+
var perPageEle = mobileUI ? null : (_J$X_(Select["default"], tslib.__assign({ key: "perpage", className: cx('Pagination-perpage', 'Pagination-item'), clearable: false, disabled: disabled, value: perPage, options: selection || [], popOverContainer: popOverContainer, popOverContainerSelector: popOverContainerSelector, onChange: function (p) {
|
|
328
326
|
_this.setState({
|
|
329
327
|
perPage: p.value,
|
|
330
328
|
pageNum: ''
|
|
@@ -332,7 +330,7 @@ var Pagination = /** @class */ (function (_super) {
|
|
|
332
330
|
_this.handlePageNumChange(1, p.value);
|
|
333
331
|
} }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('perpage').getTestId())));
|
|
334
332
|
// total或者lastpage不存在,不渲染总数
|
|
335
|
-
var totalPage = !(total || lastPage) ? null : (_J$X_("div", { className: cx('Pagination-total Pagination-item'), key: "total" }, total || total === 0
|
|
333
|
+
var totalPage = !(total || lastPage) || mobileUI ? null : (_J$X_("div", { className: cx('Pagination-total Pagination-item'), key: "total" }, total || total === 0
|
|
336
334
|
? __('Pagination.totalCount', { total: total })
|
|
337
335
|
: __('Pagination.totalPage', { lastPage: lastPage })));
|
|
338
336
|
return (_J$X_("div", tslib.__assign({ className: cx('Pagination-wrap', "Pagination-wrap-size--".concat(size), { disabled: disabled }, className) }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getTestId()), layoutList.map(function (layoutItem) {
|
|
@@ -361,7 +359,8 @@ var Pagination = /** @class */ (function (_super) {
|
|
|
361
359
|
perPage: 10,
|
|
362
360
|
perPageAvailable: [10, 20, 50, 100],
|
|
363
361
|
ellipsisPageGap: 5,
|
|
364
|
-
size: 'md'
|
|
362
|
+
size: 'md',
|
|
363
|
+
buttonType: 'icon'
|
|
365
364
|
};
|
|
366
365
|
tslib.__decorate([
|
|
367
366
|
amisCore.autobind,
|
package/lib/components/Picker.js
CHANGED
|
@@ -42,7 +42,7 @@ export declare class PopUp extends React.PureComponent<PopUpPorps> {
|
|
|
42
42
|
render(): React.JSX.Element;
|
|
43
43
|
}
|
|
44
44
|
declare const _default: {
|
|
45
|
-
new (props: Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
45
|
+
new (props: Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
46
46
|
className?: string | undefined;
|
|
47
47
|
overlay?: boolean | undefined;
|
|
48
48
|
isShow?: boolean | undefined;
|
|
@@ -58,7 +58,7 @@ declare const _default: {
|
|
|
58
58
|
getWrappedInstance(): any;
|
|
59
59
|
render(): React.JSX.Element;
|
|
60
60
|
context: unknown;
|
|
61
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
61
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
62
62
|
className?: string | undefined;
|
|
63
63
|
overlay?: boolean | undefined;
|
|
64
64
|
isShow?: boolean | undefined;
|
|
@@ -70,7 +70,7 @@ declare const _default: {
|
|
|
70
70
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
71
71
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
72
72
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
73
|
-
readonly props: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
73
|
+
readonly props: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
74
74
|
className?: string | undefined;
|
|
75
75
|
overlay?: boolean | undefined;
|
|
76
76
|
isShow?: boolean | undefined;
|
|
@@ -86,7 +86,7 @@ declare const _default: {
|
|
|
86
86
|
[key: string]: React.ReactInstance;
|
|
87
87
|
};
|
|
88
88
|
componentDidMount?(): void;
|
|
89
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
89
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
90
90
|
className?: string | undefined;
|
|
91
91
|
overlay?: boolean | undefined;
|
|
92
92
|
isShow?: boolean | undefined;
|
|
@@ -99,7 +99,7 @@ declare const _default: {
|
|
|
99
99
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
100
100
|
componentWillUnmount?(): void;
|
|
101
101
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
102
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
102
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
103
103
|
className?: string | undefined;
|
|
104
104
|
overlay?: boolean | undefined;
|
|
105
105
|
isShow?: boolean | undefined;
|
|
@@ -110,7 +110,7 @@ declare const _default: {
|
|
|
110
110
|
locale?: string | undefined;
|
|
111
111
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
112
112
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
|
|
113
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
113
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
114
114
|
className?: string | undefined;
|
|
115
115
|
overlay?: boolean | undefined;
|
|
116
116
|
isShow?: boolean | undefined;
|
|
@@ -123,7 +123,7 @@ declare const _default: {
|
|
|
123
123
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
124
124
|
componentWillMount?(): void;
|
|
125
125
|
UNSAFE_componentWillMount?(): void;
|
|
126
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
126
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
127
127
|
className?: string | undefined;
|
|
128
128
|
overlay?: boolean | undefined;
|
|
129
129
|
isShow?: boolean | undefined;
|
|
@@ -134,7 +134,7 @@ declare const _default: {
|
|
|
134
134
|
locale?: string | undefined;
|
|
135
135
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
136
136
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
137
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
137
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
138
138
|
className?: string | undefined;
|
|
139
139
|
overlay?: boolean | undefined;
|
|
140
140
|
isShow?: boolean | undefined;
|
|
@@ -145,7 +145,7 @@ declare const _default: {
|
|
|
145
145
|
locale?: string | undefined;
|
|
146
146
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
147
147
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
148
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
148
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
149
149
|
className?: string | undefined;
|
|
150
150
|
overlay?: boolean | undefined;
|
|
151
151
|
isShow?: boolean | undefined;
|
|
@@ -156,7 +156,7 @@ declare const _default: {
|
|
|
156
156
|
locale?: string | undefined;
|
|
157
157
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
158
158
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
159
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
159
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
160
160
|
className?: string | undefined;
|
|
161
161
|
overlay?: boolean | undefined;
|
|
162
162
|
isShow?: boolean | undefined;
|
|
@@ -171,7 +171,7 @@ declare const _default: {
|
|
|
171
171
|
displayName: string;
|
|
172
172
|
contextType: React.Context<string>;
|
|
173
173
|
ComposedComponent: React.ComponentType<{
|
|
174
|
-
new (props: Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
174
|
+
new (props: Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
175
175
|
className?: string | undefined;
|
|
176
176
|
overlay?: boolean | undefined;
|
|
177
177
|
isShow?: boolean | undefined;
|
|
@@ -187,7 +187,7 @@ declare const _default: {
|
|
|
187
187
|
getWrappedInstance(): any;
|
|
188
188
|
render(): React.JSX.Element;
|
|
189
189
|
context: unknown;
|
|
190
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
190
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
191
191
|
className?: string | undefined;
|
|
192
192
|
overlay?: boolean | undefined;
|
|
193
193
|
isShow?: boolean | undefined;
|
|
@@ -199,7 +199,7 @@ declare const _default: {
|
|
|
199
199
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
200
200
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
201
201
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
202
|
-
readonly props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
202
|
+
readonly props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
203
203
|
className?: string | undefined;
|
|
204
204
|
overlay?: boolean | undefined;
|
|
205
205
|
isShow?: boolean | undefined;
|
|
@@ -215,7 +215,7 @@ declare const _default: {
|
|
|
215
215
|
[key: string]: React.ReactInstance;
|
|
216
216
|
};
|
|
217
217
|
componentDidMount?(): void;
|
|
218
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
218
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
219
219
|
className?: string | undefined;
|
|
220
220
|
overlay?: boolean | undefined;
|
|
221
221
|
isShow?: boolean | undefined;
|
|
@@ -228,7 +228,7 @@ declare const _default: {
|
|
|
228
228
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
229
229
|
componentWillUnmount?(): void;
|
|
230
230
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
231
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
231
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
232
232
|
className?: string | undefined;
|
|
233
233
|
overlay?: boolean | undefined;
|
|
234
234
|
isShow?: boolean | undefined;
|
|
@@ -239,7 +239,7 @@ declare const _default: {
|
|
|
239
239
|
locale?: string | undefined;
|
|
240
240
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
241
241
|
}>, prevState: Readonly<{}>): any;
|
|
242
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
242
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
243
243
|
className?: string | undefined;
|
|
244
244
|
overlay?: boolean | undefined;
|
|
245
245
|
isShow?: boolean | undefined;
|
|
@@ -252,7 +252,7 @@ declare const _default: {
|
|
|
252
252
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
253
253
|
componentWillMount?(): void;
|
|
254
254
|
UNSAFE_componentWillMount?(): void;
|
|
255
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
255
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
256
256
|
className?: string | undefined;
|
|
257
257
|
overlay?: boolean | undefined;
|
|
258
258
|
isShow?: boolean | undefined;
|
|
@@ -263,7 +263,7 @@ declare const _default: {
|
|
|
263
263
|
locale?: string | undefined;
|
|
264
264
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
265
265
|
}>, nextContext: any): void;
|
|
266
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
266
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
267
267
|
className?: string | undefined;
|
|
268
268
|
overlay?: boolean | undefined;
|
|
269
269
|
isShow?: boolean | undefined;
|
|
@@ -274,7 +274,7 @@ declare const _default: {
|
|
|
274
274
|
locale?: string | undefined;
|
|
275
275
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
276
276
|
}>, nextContext: any): void;
|
|
277
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
277
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
278
278
|
className?: string | undefined;
|
|
279
279
|
overlay?: boolean | undefined;
|
|
280
280
|
isShow?: boolean | undefined;
|
|
@@ -285,7 +285,7 @@ declare const _default: {
|
|
|
285
285
|
locale?: string | undefined;
|
|
286
286
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
287
287
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
288
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
288
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
289
289
|
className?: string | undefined;
|
|
290
290
|
overlay?: boolean | undefined;
|
|
291
291
|
isShow?: boolean | undefined;
|
|
@@ -304,7 +304,7 @@ declare const _default: {
|
|
|
304
304
|
ComposedComponent: typeof PopUp;
|
|
305
305
|
}>;
|
|
306
306
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
307
|
-
new (props: Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
307
|
+
new (props: Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
308
308
|
className?: string | undefined;
|
|
309
309
|
overlay?: boolean | undefined;
|
|
310
310
|
isShow?: boolean | undefined;
|
|
@@ -320,7 +320,7 @@ declare const _default: {
|
|
|
320
320
|
getWrappedInstance(): any;
|
|
321
321
|
render(): React.JSX.Element;
|
|
322
322
|
context: unknown;
|
|
323
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
323
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
324
324
|
className?: string | undefined;
|
|
325
325
|
overlay?: boolean | undefined;
|
|
326
326
|
isShow?: boolean | undefined;
|
|
@@ -332,7 +332,7 @@ declare const _default: {
|
|
|
332
332
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
333
333
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
334
334
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
335
|
-
readonly props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
335
|
+
readonly props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
336
336
|
className?: string | undefined;
|
|
337
337
|
overlay?: boolean | undefined;
|
|
338
338
|
isShow?: boolean | undefined;
|
|
@@ -348,7 +348,7 @@ declare const _default: {
|
|
|
348
348
|
[key: string]: React.ReactInstance;
|
|
349
349
|
};
|
|
350
350
|
componentDidMount?(): void;
|
|
351
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
351
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
352
352
|
className?: string | undefined;
|
|
353
353
|
overlay?: boolean | undefined;
|
|
354
354
|
isShow?: boolean | undefined;
|
|
@@ -361,7 +361,7 @@ declare const _default: {
|
|
|
361
361
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
362
362
|
componentWillUnmount?(): void;
|
|
363
363
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
364
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
364
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
365
365
|
className?: string | undefined;
|
|
366
366
|
overlay?: boolean | undefined;
|
|
367
367
|
isShow?: boolean | undefined;
|
|
@@ -372,7 +372,7 @@ declare const _default: {
|
|
|
372
372
|
locale?: string | undefined;
|
|
373
373
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
374
374
|
}>, prevState: Readonly<{}>): any;
|
|
375
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
375
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
376
376
|
className?: string | undefined;
|
|
377
377
|
overlay?: boolean | undefined;
|
|
378
378
|
isShow?: boolean | undefined;
|
|
@@ -385,7 +385,7 @@ declare const _default: {
|
|
|
385
385
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
386
386
|
componentWillMount?(): void;
|
|
387
387
|
UNSAFE_componentWillMount?(): void;
|
|
388
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
388
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
389
389
|
className?: string | undefined;
|
|
390
390
|
overlay?: boolean | undefined;
|
|
391
391
|
isShow?: boolean | undefined;
|
|
@@ -396,7 +396,7 @@ declare const _default: {
|
|
|
396
396
|
locale?: string | undefined;
|
|
397
397
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
398
398
|
}>, nextContext: any): void;
|
|
399
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
399
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
400
400
|
className?: string | undefined;
|
|
401
401
|
overlay?: boolean | undefined;
|
|
402
402
|
isShow?: boolean | undefined;
|
|
@@ -407,7 +407,7 @@ declare const _default: {
|
|
|
407
407
|
locale?: string | undefined;
|
|
408
408
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
409
409
|
}>, nextContext: any): void;
|
|
410
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
410
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
411
411
|
className?: string | undefined;
|
|
412
412
|
overlay?: boolean | undefined;
|
|
413
413
|
isShow?: boolean | undefined;
|
|
@@ -418,7 +418,7 @@ declare const _default: {
|
|
|
418
418
|
locale?: string | undefined;
|
|
419
419
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
420
420
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
421
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
421
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
422
422
|
className?: string | undefined;
|
|
423
423
|
overlay?: boolean | undefined;
|
|
424
424
|
isShow?: boolean | undefined;
|
|
@@ -437,7 +437,7 @@ declare const _default: {
|
|
|
437
437
|
ComposedComponent: typeof PopUp;
|
|
438
438
|
}, {}> & {
|
|
439
439
|
ComposedComponent: {
|
|
440
|
-
new (props: Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
440
|
+
new (props: Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
441
441
|
className?: string | undefined;
|
|
442
442
|
overlay?: boolean | undefined;
|
|
443
443
|
isShow?: boolean | undefined;
|
|
@@ -453,7 +453,7 @@ declare const _default: {
|
|
|
453
453
|
getWrappedInstance(): any;
|
|
454
454
|
render(): React.JSX.Element;
|
|
455
455
|
context: unknown;
|
|
456
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
456
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
457
457
|
className?: string | undefined;
|
|
458
458
|
overlay?: boolean | undefined;
|
|
459
459
|
isShow?: boolean | undefined;
|
|
@@ -465,7 +465,7 @@ declare const _default: {
|
|
|
465
465
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
466
466
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
467
467
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
468
|
-
readonly props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
468
|
+
readonly props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
469
469
|
className?: string | undefined;
|
|
470
470
|
overlay?: boolean | undefined;
|
|
471
471
|
isShow?: boolean | undefined;
|
|
@@ -481,7 +481,7 @@ declare const _default: {
|
|
|
481
481
|
[key: string]: React.ReactInstance;
|
|
482
482
|
};
|
|
483
483
|
componentDidMount?(): void;
|
|
484
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
484
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
485
485
|
className?: string | undefined;
|
|
486
486
|
overlay?: boolean | undefined;
|
|
487
487
|
isShow?: boolean | undefined;
|
|
@@ -494,7 +494,7 @@ declare const _default: {
|
|
|
494
494
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
495
495
|
componentWillUnmount?(): void;
|
|
496
496
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
497
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
497
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
498
498
|
className?: string | undefined;
|
|
499
499
|
overlay?: boolean | undefined;
|
|
500
500
|
isShow?: boolean | undefined;
|
|
@@ -505,7 +505,7 @@ declare const _default: {
|
|
|
505
505
|
locale?: string | undefined;
|
|
506
506
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
507
507
|
}>, prevState: Readonly<{}>): any;
|
|
508
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
508
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
509
509
|
className?: string | undefined;
|
|
510
510
|
overlay?: boolean | undefined;
|
|
511
511
|
isShow?: boolean | undefined;
|
|
@@ -518,7 +518,7 @@ declare const _default: {
|
|
|
518
518
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
519
519
|
componentWillMount?(): void;
|
|
520
520
|
UNSAFE_componentWillMount?(): void;
|
|
521
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
521
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
522
522
|
className?: string | undefined;
|
|
523
523
|
overlay?: boolean | undefined;
|
|
524
524
|
isShow?: boolean | undefined;
|
|
@@ -529,7 +529,7 @@ declare const _default: {
|
|
|
529
529
|
locale?: string | undefined;
|
|
530
530
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
531
531
|
}>, nextContext: any): void;
|
|
532
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
532
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
533
533
|
className?: string | undefined;
|
|
534
534
|
overlay?: boolean | undefined;
|
|
535
535
|
isShow?: boolean | undefined;
|
|
@@ -540,7 +540,7 @@ declare const _default: {
|
|
|
540
540
|
locale?: string | undefined;
|
|
541
541
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
542
542
|
}>, nextContext: any): void;
|
|
543
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
543
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
544
544
|
className?: string | undefined;
|
|
545
545
|
overlay?: boolean | undefined;
|
|
546
546
|
isShow?: boolean | undefined;
|
|
@@ -551,7 +551,7 @@ declare const _default: {
|
|
|
551
551
|
locale?: string | undefined;
|
|
552
552
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
553
553
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
554
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "
|
|
554
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classnames" | "classPrefix" | "theme" | "mobileUI" | "style" | "children" | "header" | "title" | "onHide" | "showConfirm" | "placement" | "onExited" | "onEntered"> & {
|
|
555
555
|
className?: string | undefined;
|
|
556
556
|
overlay?: boolean | undefined;
|
|
557
557
|
isShow?: boolean | undefined;
|
package/lib/components/PopUp.js
CHANGED