amis-ui 2.0.2 → 2.2.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 +8 -8
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.d.ts +11 -11
- 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 +38 -2
- 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 +3 -9
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +2 -2
- package/esm/components/CityDB.js +4097 -2
- 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 +198 -2
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +43 -40
- package/esm/components/DatePicker.js +11 -4
- package/esm/components/DateRangePicker.d.ts +144 -81
- package/esm/components/DateRangePicker.js +191 -80
- package/esm/components/Drawer.d.ts +10 -10
- package/esm/components/Drawer.js +1 -1
- package/esm/components/Editor.d.ts +47 -41
- package/esm/components/Editor.js +9 -8
- 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 +56 -2
- package/esm/components/Modal.d.ts +60 -58
- package/esm/components/Modal.js +9 -4
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/NumberInput.js +2 -2
- package/esm/components/Pagination.d.ts +49 -66
- package/esm/components/Pagination.js +4 -4
- 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.d.ts +1 -0
- package/esm/components/PopOverContainer.js +3 -3
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.d.ts +16 -10
- package/esm/components/Progress.js +27 -5
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.js +3 -2
- 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 +258 -2
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.d.ts +194 -193
- package/esm/components/Select.js +9 -5
- 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.d.ts +149 -13
- package/esm/components/Tabs.js +39 -11
- 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 +4 -4
- package/esm/components/Tinymce.d.ts +1 -3
- package/esm/components/Tinymce.js +561 -2
- 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 +11 -4
- package/esm/components/TransferDropDown.js +4 -5
- 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 +5 -3
- 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.d.ts +1 -0
- package/esm/components/calendar/Calendar.js +7 -2
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.d.ts +1 -1
- package/esm/components/calendar/DaysView.js +65 -29
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.d.ts +0 -1
- package/esm/components/calendar/TimeView.js +5 -6
- 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 +4 -4
- 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.d.ts +1 -0
- package/esm/components/formula/Picker.js +10 -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.d.ts +2 -1
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.d.ts +3 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.d.ts +3 -2
- package/esm/components/table/HeadCellFilter.js +4 -4
- package/esm/components/table/HeadCellSelect.d.ts +3 -2
- package/esm/components/table/HeadCellSelect.js +4 -2
- package/esm/components/table/HeadCellSort.d.ts +4 -3
- package/esm/components/table/HeadCellSort.js +6 -6
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.d.ts +3 -4
- package/esm/components/table/index.js +9 -9
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.d.ts +3 -3
- 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 +25 -5
- package/esm/locale/en-US.js +21 -1
- package/esm/locale/zh-CN.js +25 -7
- 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 +8 -8
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.d.ts +11 -11
- 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 +41 -4
- 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 +3 -9
- package/lib/components/ChainedSelection.js +1 -1
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CityArea.js +2 -2
- package/lib/components/CityDB.js +4099 -8
- 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 +200 -4
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +43 -40
- package/lib/components/DatePicker.js +11 -4
- package/lib/components/DateRangePicker.d.ts +144 -81
- package/lib/components/DateRangePicker.js +191 -78
- package/lib/components/Drawer.d.ts +10 -10
- package/lib/components/Drawer.js +1 -1
- package/lib/components/Editor.d.ts +47 -41
- package/lib/components/Editor.js +9 -9
- 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 +59 -4
- package/lib/components/Modal.d.ts +60 -58
- package/lib/components/Modal.js +9 -4
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/NumberInput.js +2 -2
- package/lib/components/Pagination.d.ts +49 -66
- package/lib/components/Pagination.js +4 -4
- 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.d.ts +1 -0
- package/lib/components/PopOverContainer.js +3 -3
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +16 -10
- package/lib/components/Progress.js +27 -5
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.js +3 -2
- 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 +261 -3
- 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.d.ts +149 -13
- package/lib/components/Tabs.js +39 -11
- 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 +4 -4
- package/lib/components/Tinymce.d.ts +1 -3
- package/lib/components/Tinymce.js +563 -3
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.js +11 -4
- package/lib/components/TransferDropDown.js +4 -5
- 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 +5 -3
- 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.d.ts +1 -0
- package/lib/components/calendar/Calendar.js +7 -2
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.d.ts +1 -1
- package/lib/components/calendar/DaysView.js +69 -29
- package/lib/components/calendar/MonthsView.js +1 -1
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.d.ts +0 -1
- package/lib/components/calendar/TimeView.js +5 -6
- 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 +4 -4
- 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.d.ts +1 -0
- package/lib/components/formula/Picker.js +10 -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.d.ts +2 -1
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/HeadCellDropDown.d.ts +3 -1
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.d.ts +3 -2
- package/lib/components/table/HeadCellFilter.js +4 -4
- package/lib/components/table/HeadCellSelect.d.ts +3 -2
- package/lib/components/table/HeadCellSelect.js +4 -2
- package/lib/components/table/HeadCellSort.d.ts +4 -3
- package/lib/components/table/HeadCellSort.js +6 -6
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/index.d.ts +3 -4
- package/lib/components/table/index.js +9 -9
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.d.ts +3 -3
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/helper.css +0 -8335
- 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 +25 -5
- package/lib/locale/en-US.js +21 -1
- package/lib/locale/zh-CN.js +25 -7
- package/lib/scss/helper.scss.js +3 -5
- package/lib/scss/themes/ang.scss.js +3 -5
- package/lib/scss/themes/antd.scss.js +3 -5
- package/lib/scss/themes/cxd.scss.js +3 -5
- package/lib/scss/themes/dark.scss.js +3 -5
- package/lib/scss/themes/default.scss.js +3 -5
- package/lib/themes/ang.css +1751 -913
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +1751 -913
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +1800 -961
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1755 -917
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +1800 -961
- package/package.json +14 -12
- package/scss/_properties.scss +100 -23
- 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/_column-toggler.scss +7 -1
- package/scss/components/_crud.scss +10 -2
- package/scss/components/_crud2.scss +10 -2
- package/scss/components/_drawer.scss +58 -5
- package/scss/components/_dropdown.scss +1 -0
- package/scss/components/_image-gallery.scss +62 -0
- package/scss/components/_input-box.scss +1 -0
- package/scss/components/_modal.scss +7 -10
- package/scss/components/_page.scss +1 -1
- package/scss/components/_pagination.scss +4 -3
- package/scss/components/_progress.scss +15 -1
- package/scss/components/_result-box.scss +5 -6
- package/scss/components/_search-box.scss +4 -0
- package/scss/components/_steps.scss +23 -12
- package/scss/components/_table.scss +124 -12
- package/scss/components/{_table-v2.scss → _table2.scss} +1 -1
- package/scss/components/_tabs.scss +91 -5
- package/scss/components/_timeline.scss +15 -1
- package/scss/components/form/_checks.scss +13 -2
- package/scss/components/form/_date-range.scss +40 -11
- package/scss/components/form/_date.scss +99 -33
- package/scss/components/form/_editor.scss +11 -0
- package/scss/components/form/_form.scss +14 -3
- 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 -3
- 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 +33 -11
- package/scss/components/form/_tree.scss +33 -7
- package/scss/components/react-datetime.scss +6 -1
- package/scss/themes/_common.scss +1 -1
- package/scss/themes/_cxd-variables.scss +9 -8
- package/scss/themes/cxd.scss +6 -8
- package/esm/components/BarCode2.js +0 -42
- package/esm/components/CityDB2.js +0 -4101
- package/esm/components/ColorPicker2.js +0 -202
- package/esm/components/Markdown2.js +0 -60
- package/esm/components/RichText2.js +0 -262
- package/esm/components/Tinymce2.js +0 -548
- package/lib/components/BarCode2.js +0 -52
- package/lib/components/CityDB2.js +0 -4108
- package/lib/components/ColorPicker2.js +0 -211
- package/lib/components/Markdown2.js +0 -70
- package/lib/components/RichText2.js +0 -272
- package/lib/components/Tinymce2.js +0 -557
- package/lib/scss/helper.scss2.js +0 -12
- package/lib/scss/themes/ang.scss2.js +0 -12
- package/lib/scss/themes/antd.scss2.js +0 -12
- package/lib/scss/themes/cxd.scss2.js +0 -12
- package/lib/scss/themes/dark.scss2.js +0 -12
- package/lib/scss/themes/default.scss2.js +0 -12
package/esm/components/Tabs.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/// <reference types="hoist-non-react-statics" />
|
|
7
7
|
/// <reference types="lodash" />
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import
|
|
9
|
+
import { ClassName, LocaleProps, Schema } from 'amis-core';
|
|
10
10
|
import { ThemeProps } from 'amis-core';
|
|
11
11
|
import Sortable from 'sortablejs';
|
|
12
12
|
export declare type TabsMode = '' | 'line' | 'card' | 'radio' | 'vertical' | 'chrome' | 'simple' | 'strong' | 'tiled' | 'sidebar';
|
|
@@ -64,7 +64,7 @@ export declare const Tab: {
|
|
|
64
64
|
} & import("hoist-non-react-statics").NonReactStatics<typeof TabComponent, {}> & {
|
|
65
65
|
ComposedComponent: typeof TabComponent;
|
|
66
66
|
};
|
|
67
|
-
export interface TabsProps extends ThemeProps {
|
|
67
|
+
export interface TabsProps extends ThemeProps, LocaleProps {
|
|
68
68
|
mode: TabsMode;
|
|
69
69
|
tabsMode?: TabsMode;
|
|
70
70
|
additionBtns?: React.ReactNode;
|
|
@@ -89,12 +89,15 @@ export interface TabsProps extends ThemeProps {
|
|
|
89
89
|
onEdit?: (index: number, text: string) => void;
|
|
90
90
|
sidePosition?: 'left' | 'right';
|
|
91
91
|
addBtnText?: string;
|
|
92
|
+
collapseOnExceed?: number;
|
|
93
|
+
collapseBtnLabel?: string;
|
|
94
|
+
popOverContainer?: any;
|
|
92
95
|
}
|
|
93
96
|
export interface IDragInfo {
|
|
94
97
|
nodeId: string;
|
|
95
98
|
}
|
|
96
99
|
export declare class Tabs extends React.Component<TabsProps, any> {
|
|
97
|
-
static defaultProps: Pick<TabsProps, 'mode' | 'contentClassName' | 'showTip' | 'showTipClassName' | 'sidePosition' | 'addBtnText'>;
|
|
100
|
+
static defaultProps: Pick<TabsProps, 'mode' | 'contentClassName' | 'showTip' | 'showTipClassName' | 'sidePosition' | 'addBtnText' | 'collapseBtnLabel'>;
|
|
98
101
|
static Tab: {
|
|
99
102
|
new (props: Omit<TabProps, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps): {
|
|
100
103
|
ref: any;
|
|
@@ -167,18 +170,28 @@ export declare class Tabs extends React.Component<TabsProps, any> {
|
|
|
167
170
|
renderTab(child: any, index: number): React.DetailedReactHTMLElement<any, HTMLElement> | undefined;
|
|
168
171
|
renderArrow(type: 'left' | 'right'): JSX.Element | null | undefined;
|
|
169
172
|
handleAddBtn(): void;
|
|
173
|
+
renderNavs(showClose?: boolean): any[] | null;
|
|
170
174
|
render(): JSX.Element | null;
|
|
171
175
|
}
|
|
172
176
|
declare const _default: {
|
|
173
|
-
new (props: Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">, never>> & import("amis-core/lib/theme").ThemeOutterProps
|
|
177
|
+
new (props: Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
178
|
+
locale?: string | undefined;
|
|
179
|
+
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
180
|
+
}): {
|
|
174
181
|
ref: any;
|
|
175
182
|
childRef(ref: any): void;
|
|
176
183
|
getWrappedInstance(): any;
|
|
177
184
|
render(): JSX.Element;
|
|
178
185
|
context: any;
|
|
179
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">, never>> & import("amis-core/lib/theme").ThemeOutterProps
|
|
186
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
187
|
+
locale?: string | undefined;
|
|
188
|
+
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
189
|
+
}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
180
190
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
181
|
-
readonly props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">, never>> & import("amis-core/lib/theme").ThemeOutterProps> &
|
|
191
|
+
readonly props: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
192
|
+
locale?: string | undefined;
|
|
193
|
+
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
194
|
+
}> & Readonly<{
|
|
182
195
|
children?: React.ReactNode;
|
|
183
196
|
}>;
|
|
184
197
|
state: Readonly<{}>;
|
|
@@ -186,23 +199,146 @@ declare const _default: {
|
|
|
186
199
|
[key: string]: React.ReactInstance;
|
|
187
200
|
};
|
|
188
201
|
componentDidMount?(): void;
|
|
189
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">, never>> & import("amis-core/lib/theme").ThemeOutterProps
|
|
202
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
203
|
+
locale?: string | undefined;
|
|
204
|
+
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
205
|
+
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
190
206
|
componentWillUnmount?(): void;
|
|
191
207
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
192
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">, never>> & import("amis-core/lib/theme").ThemeOutterProps
|
|
193
|
-
|
|
208
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
209
|
+
locale?: string | undefined;
|
|
210
|
+
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
211
|
+
}>, prevState: Readonly<{}>): any;
|
|
212
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
213
|
+
locale?: string | undefined;
|
|
214
|
+
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
215
|
+
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
194
216
|
componentWillMount?(): void;
|
|
195
217
|
UNSAFE_componentWillMount?(): void;
|
|
196
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">, never>> & import("amis-core/lib/theme").ThemeOutterProps
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
218
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
219
|
+
locale?: string | undefined;
|
|
220
|
+
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
221
|
+
}>, nextContext: any): void;
|
|
222
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
223
|
+
locale?: string | undefined;
|
|
224
|
+
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
225
|
+
}>, nextContext: any): void;
|
|
226
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
227
|
+
locale?: string | undefined;
|
|
228
|
+
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
229
|
+
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
230
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
231
|
+
locale?: string | undefined;
|
|
232
|
+
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
233
|
+
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
234
|
+
};
|
|
235
|
+
displayName: string;
|
|
236
|
+
contextType: React.Context<string>;
|
|
237
|
+
ComposedComponent: React.ComponentType<{
|
|
238
|
+
new (props: Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps): {
|
|
239
|
+
ref: any;
|
|
240
|
+
childRef(ref: any): void;
|
|
241
|
+
getWrappedInstance(): any;
|
|
242
|
+
render(): JSX.Element;
|
|
243
|
+
context: any;
|
|
244
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
245
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
246
|
+
readonly props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
247
|
+
children?: React.ReactNode;
|
|
248
|
+
}>;
|
|
249
|
+
state: Readonly<{}>;
|
|
250
|
+
refs: {
|
|
251
|
+
[key: string]: React.ReactInstance;
|
|
252
|
+
};
|
|
253
|
+
componentDidMount?(): void;
|
|
254
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
255
|
+
componentWillUnmount?(): void;
|
|
256
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
257
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
258
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
259
|
+
componentWillMount?(): void;
|
|
260
|
+
UNSAFE_componentWillMount?(): void;
|
|
261
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
262
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
263
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
264
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
265
|
+
};
|
|
266
|
+
displayName: string;
|
|
267
|
+
contextType: React.Context<string>;
|
|
268
|
+
ComposedComponent: React.ComponentType<typeof Tabs>;
|
|
269
|
+
} & import("hoist-non-react-statics").NonReactStatics<typeof Tabs, {}> & {
|
|
270
|
+
ComposedComponent: typeof Tabs;
|
|
271
|
+
}>;
|
|
272
|
+
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
273
|
+
new (props: Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps): {
|
|
274
|
+
ref: any;
|
|
275
|
+
childRef(ref: any): void;
|
|
276
|
+
getWrappedInstance(): any;
|
|
277
|
+
render(): JSX.Element;
|
|
278
|
+
context: any;
|
|
279
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
280
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
281
|
+
readonly props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
282
|
+
children?: React.ReactNode;
|
|
283
|
+
}>;
|
|
284
|
+
state: Readonly<{}>;
|
|
285
|
+
refs: {
|
|
286
|
+
[key: string]: React.ReactInstance;
|
|
287
|
+
};
|
|
288
|
+
componentDidMount?(): void;
|
|
289
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
290
|
+
componentWillUnmount?(): void;
|
|
291
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
292
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
293
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
294
|
+
componentWillMount?(): void;
|
|
295
|
+
UNSAFE_componentWillMount?(): void;
|
|
296
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
297
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
298
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
299
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
200
300
|
};
|
|
201
301
|
displayName: string;
|
|
202
302
|
contextType: React.Context<string>;
|
|
203
303
|
ComposedComponent: React.ComponentType<typeof Tabs>;
|
|
204
304
|
} & import("hoist-non-react-statics").NonReactStatics<typeof Tabs, {}> & {
|
|
205
305
|
ComposedComponent: typeof Tabs;
|
|
306
|
+
}, {}> & {
|
|
307
|
+
ComposedComponent: {
|
|
308
|
+
new (props: Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps): {
|
|
309
|
+
ref: any;
|
|
310
|
+
childRef(ref: any): void;
|
|
311
|
+
getWrappedInstance(): any;
|
|
312
|
+
render(): JSX.Element;
|
|
313
|
+
context: any;
|
|
314
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
315
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
316
|
+
readonly props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
317
|
+
children?: React.ReactNode;
|
|
318
|
+
}>;
|
|
319
|
+
state: Readonly<{}>;
|
|
320
|
+
refs: {
|
|
321
|
+
[key: string]: React.ReactInstance;
|
|
322
|
+
};
|
|
323
|
+
componentDidMount?(): void;
|
|
324
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
325
|
+
componentWillUnmount?(): void;
|
|
326
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
327
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
328
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
329
|
+
componentWillMount?(): void;
|
|
330
|
+
UNSAFE_componentWillMount?(): void;
|
|
331
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
332
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
333
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
334
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "onClose" | "toolbar" | "locale" | "translate" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "popOverContainer" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable" | "collapseOnExceed"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText" | "collapseBtnLabel">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
335
|
+
};
|
|
336
|
+
displayName: string;
|
|
337
|
+
contextType: React.Context<string>;
|
|
338
|
+
ComposedComponent: React.ComponentType<typeof Tabs>;
|
|
339
|
+
} & import("hoist-non-react-statics").NonReactStatics<typeof Tabs, {}> & {
|
|
340
|
+
ComposedComponent: typeof Tabs;
|
|
341
|
+
};
|
|
206
342
|
} & {
|
|
207
343
|
Tab: typeof Tab;
|
|
208
344
|
};
|
package/esm/components/Tabs.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.0
|
|
2
|
+
* amis-ui v2.2.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { __extends, __assign, __decorate, __metadata } from 'tslib';
|
|
7
7
|
import React__default from 'react';
|
|
8
|
+
import { themeable, guid, resizeSensor, generateIcon, autobind, localeable, uncontrollable } from 'amis-core';
|
|
8
9
|
import Transition, { ENTERING, ENTERED } from 'react-transition-group/Transition';
|
|
9
|
-
import { themeable, guid, resizeSensor, generateIcon, autobind, uncontrollable } from 'amis-core';
|
|
10
10
|
import { Icon } from './icons.js';
|
|
11
11
|
import debounce from 'lodash/debounce';
|
|
12
12
|
import { findDOMNode } from 'react-dom';
|
|
13
13
|
import TooltipWrapper from './TooltipWrapper.js';
|
|
14
|
+
import { PopOverContainer } from './PopOverContainer.js';
|
|
14
15
|
import Sortable from 'sortablejs';
|
|
15
16
|
|
|
16
17
|
/**
|
|
@@ -325,10 +326,8 @@ var Tabs = /** @class */ (function (_super) {
|
|
|
325
326
|
} })) : (React__default.createElement(React__default.Fragment, null,
|
|
326
327
|
icon ? (iconPosition === 'right' ? (React__default.createElement(React__default.Fragment, null,
|
|
327
328
|
title,
|
|
328
|
-
" ",
|
|
329
329
|
iconElement)) : (React__default.createElement(React__default.Fragment, null,
|
|
330
330
|
iconElement,
|
|
331
|
-
" ",
|
|
332
331
|
title))) : (title),
|
|
333
332
|
React__default.isValidElement(toolbar) ? toolbar : null))));
|
|
334
333
|
return (React__default.createElement("li", { className: cx('Tabs-link', activeKey === eventKey ? 'is-active' : '', disabled ? 'is-disabled' : '', tabClassName), key: eventKey !== null && eventKey !== void 0 ? eventKey : index, onClick: function () { return (disabled ? '' : _this.handleSelect(eventKey)); }, onDoubleClick: function () {
|
|
@@ -373,6 +372,36 @@ var Tabs = /** @class */ (function (_super) {
|
|
|
373
372
|
var onAdd = this.props.onAdd;
|
|
374
373
|
onAdd && onAdd();
|
|
375
374
|
};
|
|
375
|
+
Tabs.prototype.renderNavs = function (showClose) {
|
|
376
|
+
var _this = this;
|
|
377
|
+
if (showClose === void 0) { showClose = false; }
|
|
378
|
+
var _a = this.props, children = _a.children, collapseOnExceed = _a.collapseOnExceed, __ = _a.translate, cx = _a.classnames, popOverContainer = _a.popOverContainer, collapseBtnLabel = _a.collapseBtnLabel;
|
|
379
|
+
if (!Array.isArray(children)) {
|
|
380
|
+
return null;
|
|
381
|
+
}
|
|
382
|
+
var doms = children.map(function (tab, index) {
|
|
383
|
+
return _this.renderNav(tab, index, showClose);
|
|
384
|
+
});
|
|
385
|
+
if (typeof collapseOnExceed == 'number' &&
|
|
386
|
+
collapseOnExceed &&
|
|
387
|
+
doms.length > collapseOnExceed) {
|
|
388
|
+
var rest_1 = doms.splice(collapseOnExceed - 1, doms.length + 1 - collapseOnExceed);
|
|
389
|
+
doms.push(React__default.createElement(PopOverContainer, { key: "togglor", placement: "center-bottom-center-top center-top-center-bottom", popOverClassName: cx('Tabs-PopOver'), popOverContainer: popOverContainer || (function () { return findDOMNode(_this); }), popOverRender: function (_a) {
|
|
390
|
+
var onClose = _a.onClose;
|
|
391
|
+
return (React__default.createElement("ul", { className: cx('Tabs-PopOverList', 'DropDown-menu'), onClick: onClose }, rest_1));
|
|
392
|
+
} }, function (_a) {
|
|
393
|
+
var onClick = _a.onClick; _a.ref; var isOpened = _a.isOpened;
|
|
394
|
+
return (React__default.createElement("li", { className: cx('Tabs-link', rest_1.some(function (item) { return ~item.props.className.indexOf('is-active'); })
|
|
395
|
+
? 'is-active'
|
|
396
|
+
: '') },
|
|
397
|
+
React__default.createElement("a", { className: cx('Tabs-togglor', isOpened ? 'is-opened' : ''), onClick: onClick },
|
|
398
|
+
React__default.createElement("span", null, __(collapseBtnLabel || 'more')),
|
|
399
|
+
React__default.createElement("span", { className: cx('Tabs-togglor-arrow') },
|
|
400
|
+
React__default.createElement(Icon, { icon: "right-arrow-bold", className: "icon" })))));
|
|
401
|
+
}));
|
|
402
|
+
}
|
|
403
|
+
return doms;
|
|
404
|
+
};
|
|
376
405
|
Tabs.prototype.render = function () {
|
|
377
406
|
var _a;
|
|
378
407
|
var _this = this;
|
|
@@ -396,15 +425,13 @@ var Tabs = /** @class */ (function (_super) {
|
|
|
396
425
|
this.renderArrow('left'),
|
|
397
426
|
React__default.createElement("div", { className: cx('Tabs-linksContainer-main') },
|
|
398
427
|
React__default.createElement("ul", { className: cx('Tabs-links', linksClassName), role: "tablist", ref: this.navMain },
|
|
399
|
-
|
|
400
|
-
return _this.renderNav(tab, index, true);
|
|
401
|
-
}),
|
|
428
|
+
this.renderNavs(true),
|
|
402
429
|
additionBtns,
|
|
403
430
|
!isOverflow && toolButtons)),
|
|
404
431
|
this.renderArrow('right')),
|
|
405
432
|
isOverflow && toolButtons)) : (React__default.createElement("div", { className: cx('Tabs-linksWrapper') },
|
|
406
433
|
React__default.createElement("ul", { className: cx('Tabs-links', linksClassName), role: "tablist" },
|
|
407
|
-
|
|
434
|
+
this.renderNavs(),
|
|
408
435
|
additionBtns,
|
|
409
436
|
toolbar))),
|
|
410
437
|
React__default.createElement("div", { className: cx('Tabs-content', contentClassName) }, children.map(function (child, index) {
|
|
@@ -418,7 +445,8 @@ var Tabs = /** @class */ (function (_super) {
|
|
|
418
445
|
showTip: false,
|
|
419
446
|
showTipClassName: '',
|
|
420
447
|
sidePosition: 'left',
|
|
421
|
-
addBtnText: '新增'
|
|
448
|
+
addBtnText: '新增',
|
|
449
|
+
collapseBtnLabel: 'more'
|
|
422
450
|
};
|
|
423
451
|
Tabs.Tab = Tab;
|
|
424
452
|
__decorate([
|
|
@@ -465,8 +493,8 @@ var Tabs = /** @class */ (function (_super) {
|
|
|
465
493
|
], Tabs.prototype, "handleWheel", null);
|
|
466
494
|
return Tabs;
|
|
467
495
|
}(React__default.Component));
|
|
468
|
-
var ThemedTabs = themeable(uncontrollable(Tabs, {
|
|
496
|
+
var ThemedTabs = localeable(themeable(uncontrollable(Tabs, {
|
|
469
497
|
activeKey: 'onSelect'
|
|
470
|
-
}));
|
|
498
|
+
})));
|
|
471
499
|
|
|
472
500
|
export { Tab, Tabs, ThemedTabs as default };
|
package/esm/components/Tag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.0
|
|
2
|
+
* amis-ui v2.2.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -88,7 +88,9 @@ var Textarea = /** @class */ (function (_super) {
|
|
|
88
88
|
_a['is-focused'] = this.state.focused,
|
|
89
89
|
_a['is-disabled'] = disabled,
|
|
90
90
|
_a), className) },
|
|
91
|
-
React__default.createElement(BaseTextArea, { className: cx("TextareaControl-input"
|
|
91
|
+
React__default.createElement(BaseTextArea, { className: cx("TextareaControl-input", {
|
|
92
|
+
'TextareaControl-input--counter': showCounter
|
|
93
|
+
}), autoComplete: "off", ref: this.inputRef, name: name, disabled: disabled, value: this.valueToString(value), placeholder: placeholder, autoCorrect: "off", spellCheck: "false", readOnly: readOnly, minRows: minRows || undefined, maxRows: maxRows || undefined, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }),
|
|
92
94
|
clearable && !disabled && value ? (React__default.createElement("a", { onClick: this.handleClear, className: cx('TextareaControl-clear') },
|
|
93
95
|
React__default.createElement(Icon, { icon: "input-clear", className: "icon" }))) : null,
|
|
94
96
|
showCounter ? (React__default.createElement("span", { className: cx('TextareaControl-counter', {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.0
|
|
2
|
+
* amis-ui v2.2.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -15,9 +15,9 @@ function TimelineItem(props) {
|
|
|
15
15
|
if (detailExpandedText === void 0) { detailExpandedText = __('Timeline.expandText'); }
|
|
16
16
|
return (React__default.createElement(React__default.Fragment, null,
|
|
17
17
|
React__default.createElement("div", { className: cx('TimelineItem-detail-button'), onClick: function () { return setDetailVisible(!detailVisible); } },
|
|
18
|
-
detailVisible ?
|
|
18
|
+
detailVisible ? detailCollapsedText : detailExpandedText,
|
|
19
19
|
React__default.createElement("div", { className: cx('TimelineItem-detail-arrow', "".concat(detailVisible && 'TimelineItem-detail-arrow-top')) },
|
|
20
|
-
React__default.createElement(Icon, { icon: "
|
|
20
|
+
React__default.createElement(Icon, { icon: "down-arrow-bold" }))),
|
|
21
21
|
React__default.createElement("div", { className: cx("".concat(detailVisible
|
|
22
22
|
? 'TimelineItem-detail-visible'
|
|
23
23
|
: 'TimelineItem-detail-invisible')) }, detail)));
|
|
@@ -28,7 +28,7 @@ function TimelineItem(props) {
|
|
|
28
28
|
var levelColor = !isColorVal && color;
|
|
29
29
|
return (React__default.createElement("div", { className: cx('TimelineItem'), key: key },
|
|
30
30
|
React__default.createElement("div", { className: cx('TimelineItem-axle') },
|
|
31
|
-
React__default.createElement("div", { className: cx('TimelineItem-line') }),
|
|
31
|
+
React__default.createElement("div", { className: cx('TimelineItem-line', icon ? 'TimelineItem-line-icon' : '') }),
|
|
32
32
|
icon ? (React__default.createElement("div", { className: cx('TimelineItem-icon') },
|
|
33
33
|
React__default.createElement(Icon, { icon: icon, className: "icon" }))) : (React__default.createElement("div", { className: cx('TimelineItem-round', levelColor && "TimelineItem-round--".concat(levelColor)), style: isColorVal ? { backgroundColor: color } : undefined }))),
|
|
34
34
|
React__default.createElement("div", { className: cx('TimelineItem-content') },
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import 'tinymce/icons/default/index';
|
|
3
3
|
import 'tinymce/themes/silver';
|
|
4
|
+
import 'tinymce/models/dom/model';
|
|
4
5
|
import 'tinymce/plugins/advlist';
|
|
5
6
|
import 'tinymce/plugins/autolink';
|
|
6
7
|
import 'tinymce/plugins/lists';
|
|
7
8
|
import 'tinymce/plugins/link';
|
|
8
9
|
import 'tinymce/plugins/image';
|
|
9
10
|
import 'tinymce/plugins/charmap';
|
|
10
|
-
import 'tinymce/plugins/print';
|
|
11
11
|
import 'tinymce/plugins/preview';
|
|
12
12
|
import 'tinymce/plugins/anchor';
|
|
13
13
|
import 'tinymce/plugins/searchreplace';
|
|
@@ -17,10 +17,8 @@ import 'tinymce/plugins/fullscreen';
|
|
|
17
17
|
import 'tinymce/plugins/insertdatetime';
|
|
18
18
|
import 'tinymce/plugins/media';
|
|
19
19
|
import 'tinymce/plugins/table';
|
|
20
|
-
import 'tinymce/plugins/paste';
|
|
21
20
|
import 'tinymce/plugins/help';
|
|
22
21
|
import 'tinymce/plugins/wordcount';
|
|
23
|
-
import 'tinymce/plugins/hr';
|
|
24
22
|
import 'tinymce/plugins/pagebreak';
|
|
25
23
|
import 'tinymce/plugins/visualchars';
|
|
26
24
|
import 'tinymce/plugins/template';
|