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