amis-ui 6.10.0 → 6.11.0-beta.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.d.ts +1 -1
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.d.ts +4 -4
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.d.ts +1 -1
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AnchorNav.d.ts +2 -2
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/AnchorNavSection.js +1 -1
- package/esm/components/ArrayInput.d.ts +4 -4
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.d.ts +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.d.ts +4 -4
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/AutoSizer.js +1 -1
- package/esm/components/Avatar.d.ts +1 -1
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.d.ts +1 -1
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.d.ts +1 -1
- package/esm/components/BaiduMapPicker.js +1 -1
- package/esm/components/BarCode.d.ts +1 -1
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.d.ts +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.d.ts +1 -1
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.d.ts +4 -4
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.d.ts +1 -1
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.d.ts +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.d.ts +4 -4
- package/esm/components/ChainedDropdownSelection.js +1 -1
- package/esm/components/ChainedSelection.d.ts +4 -4
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.d.ts +1 -1
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.d.ts +4 -4
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.d.ts +1 -1
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.d.ts +1 -1
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.d.ts +4 -4
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.d.ts +4 -4
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConditionBuilder.js +1 -1
- package/esm/components/ConfirmBox.d.ts +4 -4
- package/esm/components/ConfirmBox.js +1 -1
- package/esm/components/ContextMenu.d.ts +1 -1
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +4 -4
- package/esm/components/DatePicker.js +1 -1
- package/esm/components/DateRangePicker.d.ts +4 -4
- package/esm/components/DateRangePicker.js +1 -1
- package/esm/components/DiffEditor.js +1 -1
- package/esm/components/DndContainer.d.ts +4 -4
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.d.ts +1 -1
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.d.ts +4 -4
- package/esm/components/DropDownSelection.js +1 -1
- package/esm/components/Editor.d.ts +4 -4
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.d.ts +4 -4
- package/esm/components/FormField.js +1 -1
- package/esm/components/FormulaPicker.js +1 -1
- package/esm/components/GaodeMapPicker.d.ts +1 -1
- package/esm/components/GaodeMapPicker.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GridNavItem.js +1 -1
- package/esm/components/GroupedSelection.d.ts +4 -4
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/HeadCellDropDown.js +1 -1
- package/esm/components/Html.d.ts +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/Icon.js +1 -1
- package/esm/components/ImageGallery.d.ts +4 -4
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.d.ts +1 -1
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.d.ts +4 -4
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/InputJSONSchema.js +1 -1
- package/esm/components/InputTable.d.ts +4 -4
- package/esm/components/InputTable.js +1 -1
- package/esm/components/JSONSchemaEditor.js +1 -1
- package/esm/components/Layout.d.ts +1 -1
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.d.ts +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.d.ts +1 -1
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.d.ts +4 -4
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.d.ts +4 -4
- package/esm/components/LocationPicker.js +1 -1
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Menu.js +1 -1
- package/esm/components/MobileDevTool.js +1 -1
- package/esm/components/Modal.d.ts +11 -11
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +4 -4
- package/esm/components/MultilineText.d.ts +4 -4
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.d.ts +1 -1
- package/esm/components/NumberInput.js +1 -1
- package/esm/components/OverflowTpl.d.ts +1 -1
- package/esm/components/OverflowTpl.js +1 -1
- package/esm/components/Pagination.d.ts +4 -4
- package/esm/components/Pagination.js +1 -1
- package/esm/components/PdfViewer.d.ts +1 -1
- package/esm/components/PdfViewer.js +1 -1
- package/esm/components/Picker.d.ts +4 -4
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.d.ts +1 -1
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.d.ts +4 -4
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.js +1 -1
- package/esm/components/PopUp.d.ts +4 -4
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.d.ts +1 -1
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.d.ts +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.d.ts +1 -1
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.d.ts +1 -1
- package/esm/components/Range.js +1 -1
- package/esm/components/Rating.d.ts +1 -1
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +4 -4
- package/esm/components/ResultBox.js +1 -1
- package/esm/components/ResultList.d.ts +4 -4
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.d.ts +4 -4
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.d.ts +4 -4
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.d.ts +4 -4
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.d.ts +5 -5
- package/esm/components/Select.js +1 -1
- package/esm/components/SelectMobile.js +1 -1
- package/esm/components/Selection.d.ts +4 -4
- package/esm/components/Selection.js +1 -1
- package/esm/components/Signature.d.ts +4 -4
- package/esm/components/Signature.js +7 -2
- package/esm/components/SparkLine.d.ts +4 -4
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.d.ts +1 -1
- package/esm/components/Spinner.js +1 -1
- package/esm/components/Steps.d.ts +1 -1
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.d.ts +1 -1
- package/esm/components/Switch.js +1 -1
- package/esm/components/Tab.js +1 -1
- package/esm/components/Table.js +1 -1
- package/esm/components/TableSelection.d.ts +4 -4
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.d.ts +6 -6
- package/esm/components/Tabs.js +3 -3
- package/esm/components/TabsTransfer.d.ts +4 -4
- package/esm/components/TabsTransfer.js +1 -1
- package/esm/components/TabsTransferPicker.d.ts +4 -4
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.d.ts +2 -2
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.d.ts +4 -4
- package/esm/components/Textarea.js +1 -1
- package/esm/components/Timeline.d.ts +1 -1
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.d.ts +4 -4
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.js +1 -1
- package/esm/components/TitleBar.d.ts +1 -1
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.d.ts +4 -4
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.d.ts +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.d.ts +1 -1
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +4 -4
- package/esm/components/Transfer.js +1 -1
- package/esm/components/TransferDropDown.d.ts +4 -4
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.d.ts +4 -4
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.d.ts +4 -4
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.d.ts +4 -4
- package/esm/components/Tree.js +1 -1
- package/esm/components/TreeSelection.d.ts +4 -4
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.d.ts +45 -44
- package/esm/components/UserSelect.js +3 -3
- package/esm/components/UserTabSelect.d.ts +45 -44
- package/esm/components/UserTabSelect.js +3 -3
- package/esm/components/VerificationCode.d.ts +1 -1
- package/esm/components/VerificationCode.js +1 -1
- package/esm/components/VirtualList.js +1 -1
- package/esm/components/WithRemoteConfig.d.ts +1 -1
- package/esm/components/WithRemoteConfig.js +1 -1
- package/esm/components/WithStore.d.ts +1 -1
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.js +1 -1
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.d.ts +1 -1
- package/esm/components/calendar/DaysView.js +1 -1
- package/esm/components/calendar/MonthsView.d.ts +1 -1
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.d.ts +1 -1
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.d.ts +1 -1
- package/esm/components/calendar/TimeView.js +1 -1
- package/esm/components/calendar/YearsView.d.ts +1 -1
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.d.ts +4 -4
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.d.ts +4 -4
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Formula.d.ts +4 -4
- package/esm/components/condition-builder/Func.d.ts +4 -4
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.d.ts +4 -4
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.d.ts +1 -1
- package/esm/components/condition-builder/GroupOrItem.js +1 -1
- package/esm/components/condition-builder/InputSwitch.d.ts +1 -1
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.d.ts +4 -4
- package/esm/components/condition-builder/Item.js +1 -1
- package/esm/components/condition-builder/Value.d.ts +4 -4
- 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 +4 -4
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/CodeEditor.d.ts +1 -1
- package/esm/components/formula/CodeEditor.js +1 -1
- package/esm/components/formula/Editor.d.ts +4 -4
- package/esm/components/formula/Editor.js +1 -1
- package/esm/components/formula/FuncList.d.ts +1 -1
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Input.d.ts +4 -4
- package/esm/components/formula/Input.js +1 -1
- package/esm/components/formula/Picker.d.ts +4 -4
- package/esm/components/formula/Picker.js +1 -1
- package/esm/components/formula/VariableList.d.ts +1 -1
- package/esm/components/formula/VariableList.js +1 -1
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.js +2 -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.d.ts +4 -4
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.d.ts +1 -1
- package/esm/components/menu/MenuItem.js +1 -1
- package/esm/components/menu/SubMenu.d.ts +1 -1
- package/esm/components/menu/SubMenu.js +1 -1
- package/esm/components/menu/index.d.ts +1 -1
- package/esm/components/menu/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.d.ts +4 -4
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.d.ts +4 -4
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.d.ts +4 -4
- package/esm/components/schema-editor/index.js +1 -1
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/ColGroup.js +1 -1
- package/esm/components/table/Head.js +1 -1
- package/esm/components/table/HeadCellDropDown.d.ts +4 -4
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.d.ts +4 -4
- package/esm/components/table/HeadCellFilter.js +1 -1
- package/esm/components/table/HeadCellSelect.d.ts +4 -4
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.d.ts +4 -4
- package/esm/components/table/HeadCellSort.js +1 -1
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/Row.js +1 -1
- package/esm/components/table/SummaryRow.js +1 -1
- package/esm/components/table/index.d.ts +4 -4
- package/esm/components/table/index.js +1 -1
- package/esm/components/table/util.js +1 -1
- package/esm/components/virtual-list/AutoSizer.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/components/withBadge.js +1 -1
- package/esm/hooks/use-on-screen.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-sub-form.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +1 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/arrow-double-left.svg.js +1 -1
- package/esm/icons/arrow-double-right.svg.js +1 -1
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +1 -1
- package/esm/icons/down.svg.js +1 -1
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -1
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/fullscreen.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/if.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +1 -1
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +1 -1
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +1 -1
- package/esm/icons/right-double-arrow.svg.js +1 -1
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +1 -1
- package/esm/icons/rotate-right.svg.js +1 -1
- package/esm/icons/rotate-screen.svg.js +1 -1
- package/esm/icons/scale-origin.svg.js +1 -1
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +1 -1
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +1 -1
- package/esm/icons/sub-plus.svg.js +1 -1
- package/esm/icons/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo-normal.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/unfullscreen.svg.js +1 -1
- package/esm/icons/upload.svg.js +1 -1
- package/esm/icons/user-remove.svg.js +1 -1
- package/esm/icons/view.svg.js +1 -1
- package/esm/icons/volume.svg.js +1 -1
- package/esm/icons/warning-mark.svg.js +1 -1
- package/esm/icons/warning.svg.js +1 -1
- package/esm/icons/window-restore.svg.js +1 -1
- package/esm/icons/zoom-in.svg.js +1 -1
- package/esm/icons/zoom-out.svg.js +1 -1
- package/esm/index.js +1 -1
- package/esm/locale/de-DE.js +1 -1
- package/esm/locale/en-US.js +1 -1
- package/esm/locale/zh-CN.js +1 -1
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/esm/utils/index.d.ts +2 -0
- package/esm/utils/smoothSignature.d.ts +86 -0
- package/esm/utils/smoothSignature.js +386 -0
- package/esm/withRemoteConfig.js +1 -1
- package/esm/withStore.js +1 -1
- package/lib/components/404.d.ts +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.d.ts +4 -4
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +1 -1
- package/lib/components/Alert2.js +1 -1
- package/lib/components/AnchorNav.d.ts +2 -2
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/AnchorNavSection.js +1 -1
- package/lib/components/ArrayInput.d.ts +4 -4
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.d.ts +1 -1
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +4 -4
- package/lib/components/AssociatedSelection.js +1 -1
- package/lib/components/AutoSizer.js +1 -1
- package/lib/components/Avatar.d.ts +1 -1
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.d.ts +1 -1
- package/lib/components/Badge.js +1 -1
- package/lib/components/BaiduMapPicker.d.ts +1 -1
- package/lib/components/BaiduMapPicker.js +1 -1
- package/lib/components/BarCode.d.ts +1 -1
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.d.ts +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +1 -1
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +4 -4
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.d.ts +1 -1
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.d.ts +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedDropdownSelection.d.ts +4 -4
- package/lib/components/ChainedDropdownSelection.js +1 -1
- package/lib/components/ChainedSelection.d.ts +4 -4
- package/lib/components/ChainedSelection.js +1 -1
- package/lib/components/Checkbox.d.ts +1 -1
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CityArea.d.ts +4 -4
- package/lib/components/CityArea.js +1 -1
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +1 -1
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.d.ts +1 -1
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +4 -4
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.d.ts +4 -4
- package/lib/components/Combo.js +1 -1
- package/lib/components/ConditionBuilder.js +1 -1
- package/lib/components/ConfirmBox.d.ts +4 -4
- package/lib/components/ConfirmBox.js +1 -1
- package/lib/components/ContextMenu.d.ts +1 -1
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +4 -4
- package/lib/components/DatePicker.js +1 -1
- package/lib/components/DateRangePicker.d.ts +4 -4
- package/lib/components/DateRangePicker.js +1 -1
- package/lib/components/DiffEditor.js +1 -1
- package/lib/components/DndContainer.d.ts +4 -4
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.d.ts +1 -1
- package/lib/components/Drawer.js +1 -1
- package/lib/components/DropDownSelection.d.ts +4 -4
- package/lib/components/DropDownSelection.js +1 -1
- package/lib/components/Editor.d.ts +4 -4
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.d.ts +4 -4
- package/lib/components/FormField.js +1 -1
- package/lib/components/FormulaPicker.js +1 -1
- package/lib/components/GaodeMapPicker.d.ts +1 -1
- package/lib/components/GaodeMapPicker.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GridNavItem.js +1 -1
- package/lib/components/GroupedSelection.d.ts +4 -4
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/HeadCellDropDown.js +1 -1
- package/lib/components/Html.d.ts +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/Icon.js +1 -1
- package/lib/components/ImageGallery.d.ts +4 -4
- package/lib/components/ImageGallery.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +1 -1
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.d.ts +4 -4
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/InputJSONSchema.js +1 -1
- package/lib/components/InputTable.d.ts +4 -4
- package/lib/components/InputTable.js +1 -1
- package/lib/components/JSONSchemaEditor.js +1 -1
- package/lib/components/Layout.d.ts +1 -1
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.d.ts +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +1 -1
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +4 -4
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.d.ts +4 -4
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Menu.js +1 -1
- package/lib/components/MobileDevTool.js +1 -1
- package/lib/components/Modal.d.ts +11 -11
- package/lib/components/Modal.js +1 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +4 -4
- package/lib/components/MultilineText.d.ts +4 -4
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +1 -1
- package/lib/components/NumberInput.js +1 -1
- package/lib/components/OverflowTpl.d.ts +1 -1
- package/lib/components/OverflowTpl.js +1 -1
- package/lib/components/Pagination.d.ts +4 -4
- package/lib/components/Pagination.js +1 -1
- package/lib/components/PdfViewer.d.ts +1 -1
- package/lib/components/PdfViewer.js +1 -1
- package/lib/components/Picker.d.ts +4 -4
- package/lib/components/Picker.js +1 -1
- package/lib/components/PickerColumn.d.ts +1 -1
- package/lib/components/PickerColumn.js +1 -1
- package/lib/components/PickerContainer.d.ts +4 -4
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.js +1 -1
- package/lib/components/PopUp.d.ts +4 -4
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +1 -1
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.d.ts +1 -1
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.d.ts +1 -1
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.d.ts +1 -1
- package/lib/components/Range.js +1 -1
- package/lib/components/Rating.d.ts +1 -1
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +4 -4
- package/lib/components/ResultBox.js +1 -1
- package/lib/components/ResultList.d.ts +4 -4
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.d.ts +4 -4
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.d.ts +4 -4
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +4 -4
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.d.ts +5 -5
- package/lib/components/Select.js +1 -1
- package/lib/components/SelectMobile.js +1 -1
- package/lib/components/Selection.d.ts +4 -4
- package/lib/components/Selection.js +1 -1
- package/lib/components/Signature.d.ts +4 -4
- package/lib/components/Signature.js +8 -4
- package/lib/components/SparkLine.d.ts +4 -4
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +1 -1
- package/lib/components/Spinner.js +1 -1
- package/lib/components/Steps.d.ts +1 -1
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +1 -1
- package/lib/components/Switch.js +1 -1
- package/lib/components/Tab.js +1 -1
- package/lib/components/Table.js +1 -1
- package/lib/components/TableSelection.d.ts +4 -4
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +6 -6
- package/lib/components/Tabs.js +3 -3
- package/lib/components/TabsTransfer.d.ts +4 -4
- package/lib/components/TabsTransfer.js +1 -1
- package/lib/components/TabsTransferPicker.d.ts +4 -4
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +2 -2
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +4 -4
- package/lib/components/Textarea.js +1 -1
- package/lib/components/Timeline.d.ts +1 -1
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.d.ts +4 -4
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.js +1 -1
- package/lib/components/TitleBar.d.ts +1 -1
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.d.ts +4 -4
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.d.ts +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.d.ts +1 -1
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +4 -4
- package/lib/components/Transfer.js +1 -1
- package/lib/components/TransferDropDown.d.ts +4 -4
- package/lib/components/TransferDropDown.js +1 -1
- package/lib/components/TransferPicker.d.ts +4 -4
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.d.ts +4 -4
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.d.ts +4 -4
- package/lib/components/Tree.js +1 -1
- package/lib/components/TreeSelection.d.ts +4 -4
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.d.ts +45 -44
- package/lib/components/UserSelect.js +3 -3
- package/lib/components/UserTabSelect.d.ts +45 -44
- package/lib/components/UserTabSelect.js +3 -3
- package/lib/components/VerificationCode.d.ts +1 -1
- package/lib/components/VerificationCode.js +1 -1
- package/lib/components/VirtualList.js +1 -1
- package/lib/components/WithRemoteConfig.d.ts +1 -1
- package/lib/components/WithRemoteConfig.js +1 -1
- package/lib/components/WithStore.d.ts +1 -1
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.js +1 -1
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.d.ts +1 -1
- package/lib/components/calendar/DaysView.js +1 -1
- package/lib/components/calendar/MonthsView.d.ts +1 -1
- package/lib/components/calendar/MonthsView.js +1 -1
- package/lib/components/calendar/QuartersView.d.ts +1 -1
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.d.ts +1 -1
- package/lib/components/calendar/TimeView.js +1 -1
- package/lib/components/calendar/YearsView.d.ts +1 -1
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.d.ts +4 -4
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.d.ts +4 -4
- package/lib/components/condition-builder/Field.js +1 -1
- package/lib/components/condition-builder/Formula.d.ts +4 -4
- package/lib/components/condition-builder/Func.d.ts +4 -4
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.d.ts +4 -4
- package/lib/components/condition-builder/Group.js +1 -1
- package/lib/components/condition-builder/GroupOrItem.d.ts +1 -1
- package/lib/components/condition-builder/GroupOrItem.js +1 -1
- package/lib/components/condition-builder/InputSwitch.d.ts +1 -1
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.d.ts +4 -4
- package/lib/components/condition-builder/Item.js +1 -1
- package/lib/components/condition-builder/Value.d.ts +4 -4
- 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 +4 -4
- package/lib/components/condition-builder/index.js +1 -1
- package/lib/components/formula/CodeEditor.d.ts +1 -1
- package/lib/components/formula/CodeEditor.js +1 -1
- package/lib/components/formula/Editor.d.ts +4 -4
- package/lib/components/formula/Editor.js +1 -1
- package/lib/components/formula/FuncList.d.ts +1 -1
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Input.d.ts +4 -4
- package/lib/components/formula/Input.js +1 -1
- package/lib/components/formula/Picker.d.ts +4 -4
- package/lib/components/formula/Picker.js +1 -1
- package/lib/components/formula/VariableList.d.ts +1 -1
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.js +2 -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.d.ts +4 -4
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.d.ts +1 -1
- package/lib/components/menu/MenuItem.js +1 -1
- package/lib/components/menu/SubMenu.d.ts +1 -1
- package/lib/components/menu/SubMenu.js +1 -1
- package/lib/components/menu/index.d.ts +1 -1
- package/lib/components/menu/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.d.ts +4 -4
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.d.ts +4 -4
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.d.ts +4 -4
- package/lib/components/schema-editor/index.js +1 -1
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/ColGroup.js +1 -1
- package/lib/components/table/Head.js +1 -1
- package/lib/components/table/HeadCellDropDown.d.ts +4 -4
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.d.ts +4 -4
- package/lib/components/table/HeadCellFilter.js +1 -1
- package/lib/components/table/HeadCellSelect.d.ts +4 -4
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.d.ts +4 -4
- package/lib/components/table/HeadCellSort.js +1 -1
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/Row.js +1 -1
- package/lib/components/table/SummaryRow.js +1 -1
- package/lib/components/table/index.d.ts +4 -4
- package/lib/components/table/index.js +1 -1
- package/lib/components/table/util.js +1 -1
- package/lib/components/virtual-list/AutoSizer.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/components/withBadge.js +1 -1
- package/lib/hooks/use-on-screen.js +1 -1
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-sub-form.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +1 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/arrow-double-left.svg.js +1 -1
- package/lib/icons/arrow-double-right.svg.js +1 -1
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check.svg.js +1 -1
- package/lib/icons/clock.svg.js +1 -1
- package/lib/icons/close-small.svg.js +1 -1
- package/lib/icons/close.svg.js +1 -1
- package/lib/icons/cloud-upload.svg.js +1 -1
- package/lib/icons/column-filter.svg.js +1 -1
- package/lib/icons/columns.svg.js +1 -1
- package/lib/icons/compress-alt.svg.js +1 -1
- package/lib/icons/copy.svg.js +1 -1
- package/lib/icons/date.svg.js +1 -1
- package/lib/icons/department.svg.js +1 -1
- package/lib/icons/desk-empty.svg.js +1 -1
- package/lib/icons/dot.svg.js +1 -1
- package/lib/icons/down-arrow-bold.svg.js +1 -1
- package/lib/icons/down.svg.js +1 -1
- package/lib/icons/download.svg.js +1 -1
- package/lib/icons/drag-bar.svg.js +1 -1
- package/lib/icons/drag.svg.js +1 -1
- package/lib/icons/edit.svg.js +1 -1
- package/lib/icons/ellipsis-v.svg.js +1 -1
- package/lib/icons/enter.svg.js +1 -1
- package/lib/icons/exchange.svg.js +1 -1
- package/lib/icons/expand-alt.svg.js +1 -1
- package/lib/icons/fail.svg.js +1 -1
- package/lib/icons/file.svg.js +1 -1
- package/lib/icons/filter.svg.js +1 -1
- package/lib/icons/folder.svg.js +1 -1
- package/lib/icons/fullscreen.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/if.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +1 -1
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +1 -1
- package/lib/icons/pause.svg.js +1 -1
- package/lib/icons/pencil.svg.js +1 -1
- package/lib/icons/play.svg.js +1 -1
- package/lib/icons/plus-cicle.svg.js +1 -1
- package/lib/icons/plus-fine.svg.js +1 -1
- package/lib/icons/plus.svg.js +1 -1
- package/lib/icons/post.svg.js +1 -1
- package/lib/icons/question-mark.svg.js +1 -1
- package/lib/icons/question.svg.js +1 -1
- package/lib/icons/redo.svg.js +1 -1
- package/lib/icons/refresh.svg.js +1 -1
- package/lib/icons/reload.svg.js +1 -1
- package/lib/icons/remove.svg.js +1 -1
- package/lib/icons/retry.svg.js +1 -1
- package/lib/icons/right-arrow-bold.svg.js +1 -1
- package/lib/icons/right-arrow.svg.js +1 -1
- package/lib/icons/right-double-arrow.svg.js +1 -1
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +1 -1
- package/lib/icons/rotate-right.svg.js +1 -1
- package/lib/icons/rotate-screen.svg.js +1 -1
- package/lib/icons/scale-origin.svg.js +1 -1
- package/lib/icons/schedule.svg.js +1 -1
- package/lib/icons/search.svg.js +1 -1
- package/lib/icons/setting.svg.js +1 -1
- package/lib/icons/slider-handle-icon.svg.js +1 -1
- package/lib/icons/sort-asc.svg.js +1 -1
- package/lib/icons/sort-default.svg.js +1 -1
- package/lib/icons/sort-desc.svg.js +1 -1
- package/lib/icons/star.svg.js +1 -1
- package/lib/icons/status-close.svg.js +1 -1
- package/lib/icons/steps-finsh.svg.js +1 -1
- package/lib/icons/sub-plus.svg.js +1 -1
- package/lib/icons/success.svg.js +1 -1
- package/lib/icons/transparent.svg.js +1 -1
- package/lib/icons/trash.svg.js +1 -1
- package/lib/icons/tree-down.svg.js +1 -1
- package/lib/icons/undo-normal.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/unfullscreen.svg.js +1 -1
- package/lib/icons/upload.svg.js +1 -1
- package/lib/icons/user-remove.svg.js +1 -1
- package/lib/icons/view.svg.js +1 -1
- package/lib/icons/volume.svg.js +1 -1
- package/lib/icons/warning-mark.svg.js +1 -1
- package/lib/icons/warning.svg.js +1 -1
- package/lib/icons/window-restore.svg.js +1 -1
- package/lib/icons/zoom-in.svg.js +1 -1
- package/lib/icons/zoom-out.svg.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/scss/helper.scss.js +1 -1
- package/lib/scss/themes/ang.scss.js +1 -1
- package/lib/scss/themes/antd.scss.js +1 -1
- package/lib/scss/themes/cxd.scss.js +1 -1
- package/lib/scss/themes/dark.scss.js +1 -1
- package/lib/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +12 -9
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +12 -9
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +12 -9
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +12 -9
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +12 -9
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/smoothSignature.d.ts +86 -0
- package/lib/utils/smoothSignature.js +390 -0
- package/lib/withRemoteConfig.js +1 -1
- package/lib/withStore.js +1 -1
- package/package.json +3 -4
- package/scss/_components.scss +4 -4
- package/scss/components/_crud.scss +1 -1
- package/scss/components/_table.scss +2 -1
- package/scss/components/form/_checks.scss +1 -2
- package/scss/components/form/_picker.scss +5 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
interface IOptions {
|
|
2
|
+
width?: number;
|
|
3
|
+
height?: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
bgColor?: string;
|
|
6
|
+
scale?: number;
|
|
7
|
+
openSmooth?: boolean;
|
|
8
|
+
minWidth?: number;
|
|
9
|
+
maxWidth?: number;
|
|
10
|
+
minSpeed?: number;
|
|
11
|
+
maxWidthDiffRate?: number;
|
|
12
|
+
maxHistoryLength?: number;
|
|
13
|
+
onStart?: (event: any) => void;
|
|
14
|
+
onEnd?: (event: any) => void;
|
|
15
|
+
}
|
|
16
|
+
interface IPoint {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
t: number;
|
|
20
|
+
speed?: number;
|
|
21
|
+
distance?: number;
|
|
22
|
+
lineWidth?: number;
|
|
23
|
+
}
|
|
24
|
+
interface IRadianData {
|
|
25
|
+
val: number;
|
|
26
|
+
pos: -1 | 1;
|
|
27
|
+
}
|
|
28
|
+
declare class SmoothSignature {
|
|
29
|
+
constructor(canvas: HTMLCanvasElement, options: IOptions);
|
|
30
|
+
canvas: HTMLCanvasElement;
|
|
31
|
+
ctx: CanvasRenderingContext2D;
|
|
32
|
+
width: number;
|
|
33
|
+
height: number;
|
|
34
|
+
scale: number;
|
|
35
|
+
color: string;
|
|
36
|
+
bgColor: string;
|
|
37
|
+
canDraw: boolean;
|
|
38
|
+
openSmooth: boolean;
|
|
39
|
+
minWidth: number;
|
|
40
|
+
maxWidth: number;
|
|
41
|
+
minSpeed: number;
|
|
42
|
+
maxWidthDiffRate: number;
|
|
43
|
+
points: IPoint[];
|
|
44
|
+
canAddHistory: boolean;
|
|
45
|
+
historyList: string[];
|
|
46
|
+
maxHistoryLength: number;
|
|
47
|
+
onStart: any;
|
|
48
|
+
onEnd: any;
|
|
49
|
+
init(canvas: HTMLCanvasElement, options?: IOptions): void;
|
|
50
|
+
addListener: () => void;
|
|
51
|
+
removeListener: () => void;
|
|
52
|
+
onDrawStart: (e: any) => void;
|
|
53
|
+
onDrawMove: (e: any) => void;
|
|
54
|
+
onDraw: (prePoint: any, point: any) => void;
|
|
55
|
+
onDrawEnd: (e: any) => void;
|
|
56
|
+
getLineWidth: (speed: number) => number;
|
|
57
|
+
getRadianData: (x1: number, y1: number, x2: number, y2: number) => IRadianData;
|
|
58
|
+
getRadianPoints: (radianData: IRadianData, x: number, y: number, halfLineWidth: number) => {
|
|
59
|
+
x: number;
|
|
60
|
+
y: number;
|
|
61
|
+
}[];
|
|
62
|
+
initPoint: (event: any) => void;
|
|
63
|
+
drawSmoothLine: (prePoint: any, point: any) => void;
|
|
64
|
+
drawNoSmoothLine: (prePoint: any, point: any) => void;
|
|
65
|
+
drawCurveLine: (x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, lineWidth: number) => void;
|
|
66
|
+
drawTrapezoid: (point1: any, point2: any, point3: any, point4: any) => void;
|
|
67
|
+
drawBgColor: () => void;
|
|
68
|
+
drawByImageUrl: (url: string) => void;
|
|
69
|
+
addHistory: () => void;
|
|
70
|
+
clear: () => void;
|
|
71
|
+
undo: () => void;
|
|
72
|
+
toDataURL: (type?: string, quality?: number) => string;
|
|
73
|
+
getPNG: () => string;
|
|
74
|
+
getJPG: (quality?: number) => string;
|
|
75
|
+
isEmpty: () => boolean;
|
|
76
|
+
getRotateCanvas: (degree?: number) => HTMLCanvasElement;
|
|
77
|
+
/**
|
|
78
|
+
* drawImage base64
|
|
79
|
+
* @date 2024-12-02 星期一
|
|
80
|
+
* @function
|
|
81
|
+
* @param {}
|
|
82
|
+
* @return {}
|
|
83
|
+
*/
|
|
84
|
+
loadFromBase64(base64: string): void;
|
|
85
|
+
}
|
|
86
|
+
export default SmoothSignature;
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-ui v6.11.0-beta.0
|
|
3
|
+
* Copyright 2018-2024 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
|
+
|
|
10
|
+
var isMobile = /Android|iPhone|iPad|Mobile/i.test(navigator.userAgent);
|
|
11
|
+
var SmoothSignature = /** @class */ (function () {
|
|
12
|
+
function SmoothSignature(canvas, options) {
|
|
13
|
+
var _this = this;
|
|
14
|
+
this.canvas = {};
|
|
15
|
+
this.ctx = {};
|
|
16
|
+
this.width = 320;
|
|
17
|
+
this.height = 200;
|
|
18
|
+
this.scale = window.devicePixelRatio || 1;
|
|
19
|
+
this.color = 'black';
|
|
20
|
+
this.bgColor = '';
|
|
21
|
+
this.canDraw = false;
|
|
22
|
+
this.openSmooth = true;
|
|
23
|
+
this.minWidth = 2;
|
|
24
|
+
this.maxWidth = 6;
|
|
25
|
+
this.minSpeed = 1.5;
|
|
26
|
+
this.maxWidthDiffRate = 20;
|
|
27
|
+
this.points = [];
|
|
28
|
+
this.canAddHistory = true;
|
|
29
|
+
this.historyList = [];
|
|
30
|
+
this.maxHistoryLength = 20;
|
|
31
|
+
this.onStart = function () { };
|
|
32
|
+
this.onEnd = function () { };
|
|
33
|
+
this.addListener = function () {
|
|
34
|
+
_this.removeListener();
|
|
35
|
+
_this.canvas.style.touchAction = 'none';
|
|
36
|
+
if (isMobile && ('ontouchstart' in window || navigator.maxTouchPoints)) {
|
|
37
|
+
_this.canvas.addEventListener('touchstart', _this.onDrawStart, {
|
|
38
|
+
passive: false
|
|
39
|
+
});
|
|
40
|
+
_this.canvas.addEventListener('touchmove', _this.onDrawMove, {
|
|
41
|
+
passive: false
|
|
42
|
+
});
|
|
43
|
+
document.addEventListener('touchcancel', _this.onDrawEnd, {
|
|
44
|
+
passive: false
|
|
45
|
+
});
|
|
46
|
+
document.addEventListener('touchend', _this.onDrawEnd, { passive: false });
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
_this.canvas.addEventListener('mousedown', _this.onDrawStart);
|
|
50
|
+
_this.canvas.addEventListener('mousemove', _this.onDrawMove);
|
|
51
|
+
document.addEventListener('mouseup', _this.onDrawEnd);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
this.removeListener = function () {
|
|
55
|
+
_this.canvas.style.touchAction = 'auto';
|
|
56
|
+
_this.canvas.removeEventListener('touchstart', _this.onDrawStart);
|
|
57
|
+
_this.canvas.removeEventListener('touchmove', _this.onDrawMove);
|
|
58
|
+
document.removeEventListener('touchend', _this.onDrawEnd);
|
|
59
|
+
document.removeEventListener('touchcancel', _this.onDrawEnd);
|
|
60
|
+
_this.canvas.removeEventListener('mousedown', _this.onDrawStart);
|
|
61
|
+
_this.canvas.removeEventListener('mousemove', _this.onDrawMove);
|
|
62
|
+
document.removeEventListener('mouseup', _this.onDrawEnd);
|
|
63
|
+
};
|
|
64
|
+
this.onDrawStart = function (e) {
|
|
65
|
+
e.preventDefault();
|
|
66
|
+
_this.canDraw = true;
|
|
67
|
+
_this.canAddHistory = true;
|
|
68
|
+
_this.ctx.strokeStyle = _this.color;
|
|
69
|
+
_this.initPoint(e);
|
|
70
|
+
_this.onStart && _this.onStart(e);
|
|
71
|
+
};
|
|
72
|
+
this.onDrawMove = function (e) {
|
|
73
|
+
e.preventDefault();
|
|
74
|
+
if (!_this.canDraw)
|
|
75
|
+
return;
|
|
76
|
+
_this.initPoint(e);
|
|
77
|
+
if (_this.points.length < 2)
|
|
78
|
+
return;
|
|
79
|
+
_this.addHistory();
|
|
80
|
+
var point = _this.points.slice(-1)[0];
|
|
81
|
+
var prePoint = _this.points.slice(-2, -1)[0];
|
|
82
|
+
if (window.requestAnimationFrame) {
|
|
83
|
+
window.requestAnimationFrame(function () { return _this.onDraw(prePoint, point); });
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
_this.onDraw(prePoint, point);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
this.onDraw = function (prePoint, point) {
|
|
90
|
+
if (_this.openSmooth) {
|
|
91
|
+
_this.drawSmoothLine(prePoint, point);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
_this.drawNoSmoothLine(prePoint, point);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
this.onDrawEnd = function (e) {
|
|
98
|
+
if (!_this.canDraw)
|
|
99
|
+
return;
|
|
100
|
+
_this.canDraw = false;
|
|
101
|
+
_this.canAddHistory = true;
|
|
102
|
+
_this.points = [];
|
|
103
|
+
_this.onEnd && _this.onEnd(e);
|
|
104
|
+
};
|
|
105
|
+
this.getLineWidth = function (speed) {
|
|
106
|
+
var minSpeed = _this.minSpeed > 10 ? 10 : _this.minSpeed < 1 ? 1 : _this.minSpeed;
|
|
107
|
+
var addWidth = ((_this.maxWidth - _this.minWidth) * speed) / minSpeed;
|
|
108
|
+
var lineWidth = Math.max(_this.maxWidth - addWidth, _this.minWidth);
|
|
109
|
+
return Math.min(lineWidth, _this.maxWidth);
|
|
110
|
+
};
|
|
111
|
+
this.getRadianData = function (x1, y1, x2, y2) {
|
|
112
|
+
var dis_x = x2 - x1;
|
|
113
|
+
var dis_y = y2 - y1;
|
|
114
|
+
if (dis_x === 0) {
|
|
115
|
+
return { val: 0, pos: -1 };
|
|
116
|
+
}
|
|
117
|
+
if (dis_y === 0) {
|
|
118
|
+
return { val: 0, pos: 1 };
|
|
119
|
+
}
|
|
120
|
+
var val = Math.abs(Math.atan(dis_y / dis_x));
|
|
121
|
+
if ((x2 > x1 && y2 < y1) || (x2 < x1 && y2 > y1)) {
|
|
122
|
+
return { val: val, pos: 1 };
|
|
123
|
+
}
|
|
124
|
+
return { val: val, pos: -1 };
|
|
125
|
+
};
|
|
126
|
+
this.getRadianPoints = function (radianData, x, y, halfLineWidth) {
|
|
127
|
+
if (radianData.val === 0) {
|
|
128
|
+
if (radianData.pos === 1) {
|
|
129
|
+
return [
|
|
130
|
+
{ x: x, y: y + halfLineWidth },
|
|
131
|
+
{ x: x, y: y - halfLineWidth }
|
|
132
|
+
];
|
|
133
|
+
}
|
|
134
|
+
return [
|
|
135
|
+
{ y: y, x: x + halfLineWidth },
|
|
136
|
+
{ y: y, x: x - halfLineWidth }
|
|
137
|
+
];
|
|
138
|
+
}
|
|
139
|
+
var dis_x = Math.sin(radianData.val) * halfLineWidth;
|
|
140
|
+
var dis_y = Math.cos(radianData.val) * halfLineWidth;
|
|
141
|
+
if (radianData.pos === 1) {
|
|
142
|
+
return [
|
|
143
|
+
{ x: x + dis_x, y: y + dis_y },
|
|
144
|
+
{ x: x - dis_x, y: y - dis_y }
|
|
145
|
+
];
|
|
146
|
+
}
|
|
147
|
+
return [
|
|
148
|
+
{ x: x + dis_x, y: y - dis_y },
|
|
149
|
+
{ x: x - dis_x, y: y + dis_y }
|
|
150
|
+
];
|
|
151
|
+
};
|
|
152
|
+
this.initPoint = function (event) {
|
|
153
|
+
var t = Date.now();
|
|
154
|
+
var prePoint = _this.points.slice(-1)[0];
|
|
155
|
+
if (prePoint && prePoint.t === t) {
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
var rect = _this.canvas.getBoundingClientRect();
|
|
159
|
+
var e = (event.touches && event.touches[0]) || event;
|
|
160
|
+
var x = e.clientX - rect.left;
|
|
161
|
+
var y = e.clientY - rect.top;
|
|
162
|
+
if (prePoint && prePoint.x === x && prePoint.y === y) {
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
var point = { x: x, y: y, t: t };
|
|
166
|
+
if (_this.openSmooth && prePoint) {
|
|
167
|
+
var prePoint2 = _this.points.slice(-2, -1)[0];
|
|
168
|
+
point.distance = Math.sqrt(Math.pow(point.x - prePoint.x, 2) + Math.pow(point.y - prePoint.y, 2));
|
|
169
|
+
point.speed = point.distance / (point.t - prePoint.t || 0.1);
|
|
170
|
+
point.lineWidth = _this.getLineWidth(point.speed);
|
|
171
|
+
if (prePoint2 && prePoint2.lineWidth && prePoint.lineWidth) {
|
|
172
|
+
var rate = (point.lineWidth - prePoint.lineWidth) / prePoint.lineWidth;
|
|
173
|
+
var maxRate = _this.maxWidthDiffRate / 100;
|
|
174
|
+
maxRate = maxRate > 1 ? 1 : maxRate < 0.01 ? 0.01 : maxRate;
|
|
175
|
+
if (Math.abs(rate) > maxRate) {
|
|
176
|
+
var per = rate > 0 ? maxRate : -maxRate;
|
|
177
|
+
point.lineWidth = prePoint.lineWidth * (1 + per);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
_this.points.push(point);
|
|
182
|
+
_this.points = _this.points.slice(-3);
|
|
183
|
+
};
|
|
184
|
+
this.drawSmoothLine = function (prePoint, point) {
|
|
185
|
+
var dis_x = point.x - prePoint.x;
|
|
186
|
+
var dis_y = point.y - prePoint.y;
|
|
187
|
+
if (Math.abs(dis_x) + Math.abs(dis_y) <= _this.scale) {
|
|
188
|
+
point.lastX1 = point.lastX2 = prePoint.x + dis_x * 0.5;
|
|
189
|
+
point.lastY1 = point.lastY2 = prePoint.y + dis_y * 0.5;
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
point.lastX1 = prePoint.x + dis_x * 0.3;
|
|
193
|
+
point.lastY1 = prePoint.y + dis_y * 0.3;
|
|
194
|
+
point.lastX2 = prePoint.x + dis_x * 0.7;
|
|
195
|
+
point.lastY2 = prePoint.y + dis_y * 0.7;
|
|
196
|
+
}
|
|
197
|
+
point.perLineWidth = (prePoint.lineWidth + point.lineWidth) / 2;
|
|
198
|
+
if (typeof prePoint.lastX1 === 'number') {
|
|
199
|
+
_this.drawCurveLine(prePoint.lastX2, prePoint.lastY2, prePoint.x, prePoint.y, point.lastX1, point.lastY1, point.perLineWidth);
|
|
200
|
+
if (prePoint.isFirstPoint)
|
|
201
|
+
return;
|
|
202
|
+
if (prePoint.lastX1 === prePoint.lastX2 &&
|
|
203
|
+
prePoint.lastY1 === prePoint.lastY2)
|
|
204
|
+
return;
|
|
205
|
+
var data = _this.getRadianData(prePoint.lastX1, prePoint.lastY1, prePoint.lastX2, prePoint.lastY2);
|
|
206
|
+
var points1 = _this.getRadianPoints(data, prePoint.lastX1, prePoint.lastY1, prePoint.perLineWidth / 2);
|
|
207
|
+
var points2 = _this.getRadianPoints(data, prePoint.lastX2, prePoint.lastY2, point.perLineWidth / 2);
|
|
208
|
+
_this.drawTrapezoid(points1[0], points2[0], points2[1], points1[1]);
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
point.isFirstPoint = true;
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
this.drawNoSmoothLine = function (prePoint, point) {
|
|
215
|
+
point.lastX = prePoint.x + (point.x - prePoint.x) * 0.5;
|
|
216
|
+
point.lastY = prePoint.y + (point.y - prePoint.y) * 0.5;
|
|
217
|
+
if (typeof prePoint.lastX === 'number') {
|
|
218
|
+
_this.drawCurveLine(prePoint.lastX, prePoint.lastY, prePoint.x, prePoint.y, point.lastX, point.lastY, _this.maxWidth);
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
this.drawCurveLine = function (x1, y1, x2, y2, x3, y3, lineWidth) {
|
|
222
|
+
_this.ctx.lineWidth = Number(lineWidth.toFixed(1));
|
|
223
|
+
_this.ctx.beginPath();
|
|
224
|
+
_this.ctx.moveTo(Number(x1.toFixed(1)), Number(y1.toFixed(1)));
|
|
225
|
+
_this.ctx.quadraticCurveTo(Number(x2.toFixed(1)), Number(y2.toFixed(1)), Number(x3.toFixed(1)), Number(y3.toFixed(1)));
|
|
226
|
+
_this.ctx.stroke();
|
|
227
|
+
};
|
|
228
|
+
this.drawTrapezoid = function (point1, point2, point3, point4) {
|
|
229
|
+
_this.ctx.beginPath();
|
|
230
|
+
_this.ctx.moveTo(Number(point1.x.toFixed(1)), Number(point1.y.toFixed(1)));
|
|
231
|
+
_this.ctx.lineTo(Number(point2.x.toFixed(1)), Number(point2.y.toFixed(1)));
|
|
232
|
+
_this.ctx.lineTo(Number(point3.x.toFixed(1)), Number(point3.y.toFixed(1)));
|
|
233
|
+
_this.ctx.lineTo(Number(point4.x.toFixed(1)), Number(point4.y.toFixed(1)));
|
|
234
|
+
_this.ctx.fillStyle = _this.color;
|
|
235
|
+
_this.ctx.fill();
|
|
236
|
+
};
|
|
237
|
+
this.drawBgColor = function () {
|
|
238
|
+
if (!_this.bgColor)
|
|
239
|
+
return;
|
|
240
|
+
_this.ctx.fillStyle = _this.bgColor;
|
|
241
|
+
_this.ctx.fillRect(0, 0, _this.width, _this.height);
|
|
242
|
+
};
|
|
243
|
+
this.drawByImageUrl = function (url) {
|
|
244
|
+
var image = new Image();
|
|
245
|
+
image.onload = function () {
|
|
246
|
+
_this.ctx.clearRect(0, 0, _this.width, _this.height);
|
|
247
|
+
_this.ctx.drawImage(image, 0, 0, _this.width, _this.height);
|
|
248
|
+
};
|
|
249
|
+
image.crossOrigin = 'anonymous';
|
|
250
|
+
image.src = url;
|
|
251
|
+
};
|
|
252
|
+
this.addHistory = function () {
|
|
253
|
+
if (!_this.maxHistoryLength || !_this.canAddHistory)
|
|
254
|
+
return;
|
|
255
|
+
_this.canAddHistory = false;
|
|
256
|
+
_this.historyList.push(_this.canvas.toDataURL());
|
|
257
|
+
_this.historyList = _this.historyList.slice(-_this.maxHistoryLength);
|
|
258
|
+
};
|
|
259
|
+
this.clear = function () {
|
|
260
|
+
_this.ctx.clearRect(0, 0, _this.width, _this.height);
|
|
261
|
+
_this.drawBgColor();
|
|
262
|
+
_this.historyList.length = 0;
|
|
263
|
+
};
|
|
264
|
+
this.undo = function () {
|
|
265
|
+
var dataUrl = _this.historyList.splice(-1)[0];
|
|
266
|
+
dataUrl && _this.drawByImageUrl(dataUrl);
|
|
267
|
+
};
|
|
268
|
+
this.toDataURL = function (type, quality) {
|
|
269
|
+
if (type === void 0) { type = 'image/png'; }
|
|
270
|
+
if (quality === void 0) { quality = 1; }
|
|
271
|
+
if (_this.canvas.width === _this.width) {
|
|
272
|
+
return _this.canvas.toDataURL(type, quality);
|
|
273
|
+
}
|
|
274
|
+
var canvas = document.createElement('canvas');
|
|
275
|
+
canvas.width = _this.width;
|
|
276
|
+
canvas.height = _this.height;
|
|
277
|
+
var ctx = canvas.getContext('2d');
|
|
278
|
+
ctx.drawImage(_this.canvas, 0, 0, canvas.width, canvas.height);
|
|
279
|
+
return canvas.toDataURL(type, quality);
|
|
280
|
+
};
|
|
281
|
+
this.getPNG = function () {
|
|
282
|
+
return _this.toDataURL();
|
|
283
|
+
};
|
|
284
|
+
this.getJPG = function (quality) {
|
|
285
|
+
if (quality === void 0) { quality = 0.8; }
|
|
286
|
+
return _this.toDataURL('image/jpeg', quality);
|
|
287
|
+
};
|
|
288
|
+
this.isEmpty = function () {
|
|
289
|
+
var canvas = document.createElement('canvas');
|
|
290
|
+
var ctx = canvas.getContext('2d');
|
|
291
|
+
canvas.width = _this.canvas.width;
|
|
292
|
+
canvas.height = _this.canvas.height;
|
|
293
|
+
if (_this.bgColor) {
|
|
294
|
+
ctx.fillStyle = _this.bgColor;
|
|
295
|
+
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
296
|
+
}
|
|
297
|
+
else if (_this.scale !== 1) {
|
|
298
|
+
ctx.scale(_this.scale, _this.scale);
|
|
299
|
+
}
|
|
300
|
+
return canvas.toDataURL() === _this.canvas.toDataURL();
|
|
301
|
+
};
|
|
302
|
+
this.getRotateCanvas = function (degree) {
|
|
303
|
+
if (degree === void 0) { degree = 90; }
|
|
304
|
+
if (degree > 0) {
|
|
305
|
+
degree = degree > 90 ? 180 : 90;
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
degree = degree < -90 ? 180 : -90;
|
|
309
|
+
}
|
|
310
|
+
var canvas = document.createElement('canvas');
|
|
311
|
+
var w = _this.width;
|
|
312
|
+
var h = _this.height;
|
|
313
|
+
if (degree === 180) {
|
|
314
|
+
canvas.width = w;
|
|
315
|
+
canvas.height = h;
|
|
316
|
+
}
|
|
317
|
+
else {
|
|
318
|
+
canvas.width = h;
|
|
319
|
+
canvas.height = w;
|
|
320
|
+
}
|
|
321
|
+
var ctx = canvas.getContext('2d');
|
|
322
|
+
ctx.rotate((degree * Math.PI) / 180);
|
|
323
|
+
if (degree === 90) {
|
|
324
|
+
// 顺时针90度
|
|
325
|
+
ctx.drawImage(_this.canvas, 0, -h, w, h);
|
|
326
|
+
}
|
|
327
|
+
else if (degree === -90) {
|
|
328
|
+
// 逆时针90度
|
|
329
|
+
ctx.drawImage(_this.canvas, -w, 0, w, h);
|
|
330
|
+
}
|
|
331
|
+
else if (degree === 180) {
|
|
332
|
+
ctx.drawImage(_this.canvas, -w, -h, w, h);
|
|
333
|
+
}
|
|
334
|
+
return canvas;
|
|
335
|
+
};
|
|
336
|
+
this.init(canvas, options);
|
|
337
|
+
}
|
|
338
|
+
SmoothSignature.prototype.init = function (canvas, options) {
|
|
339
|
+
if (options === void 0) { options = {}; }
|
|
340
|
+
if (!canvas)
|
|
341
|
+
return;
|
|
342
|
+
this.canvas = canvas;
|
|
343
|
+
this.ctx = canvas.getContext('2d');
|
|
344
|
+
this.width = options.width || canvas.clientWidth || this.width;
|
|
345
|
+
this.height = options.height || canvas.clientHeight || this.height;
|
|
346
|
+
this.scale = options.scale || this.scale;
|
|
347
|
+
this.color = options.color || this.color;
|
|
348
|
+
this.bgColor = options.bgColor || this.bgColor;
|
|
349
|
+
this.openSmooth =
|
|
350
|
+
options.openSmooth === undefined ? this.openSmooth : !!options.openSmooth;
|
|
351
|
+
this.minWidth = options.minWidth || this.minWidth;
|
|
352
|
+
this.maxWidth = options.maxWidth || this.maxWidth;
|
|
353
|
+
this.minSpeed = options.minSpeed || this.minSpeed;
|
|
354
|
+
this.maxWidthDiffRate = options.maxWidthDiffRate || this.maxWidthDiffRate;
|
|
355
|
+
this.maxHistoryLength = options.maxHistoryLength || this.maxHistoryLength;
|
|
356
|
+
this.onStart = options.onStart;
|
|
357
|
+
this.onEnd = options.onEnd;
|
|
358
|
+
if (this.scale > 0) {
|
|
359
|
+
this.canvas.height = this.height * this.scale;
|
|
360
|
+
this.canvas.width = this.width * this.scale;
|
|
361
|
+
if (this.scale !== 1) {
|
|
362
|
+
this.canvas.style.width = this.width + 'px';
|
|
363
|
+
this.canvas.style.height = this.height + 'px';
|
|
364
|
+
this.ctx.scale(this.scale, this.scale);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
this.ctx.lineCap = 'round';
|
|
368
|
+
this.drawBgColor();
|
|
369
|
+
this.addListener();
|
|
370
|
+
};
|
|
371
|
+
/**
|
|
372
|
+
* drawImage base64
|
|
373
|
+
* @date 2024-12-02 星期一
|
|
374
|
+
* @function
|
|
375
|
+
* @param {}
|
|
376
|
+
* @return {}
|
|
377
|
+
*/
|
|
378
|
+
SmoothSignature.prototype.loadFromBase64 = function (base64) {
|
|
379
|
+
var _this = this;
|
|
380
|
+
var image = new Image();
|
|
381
|
+
image.onload = function () {
|
|
382
|
+
_this.ctx.clearRect(0, 0, _this.width, _this.height);
|
|
383
|
+
_this.ctx.drawImage(image, 0, 0, _this.width, _this.height);
|
|
384
|
+
};
|
|
385
|
+
image.src = base64;
|
|
386
|
+
};
|
|
387
|
+
return SmoothSignature;
|
|
388
|
+
}());
|
|
389
|
+
|
|
390
|
+
exports["default"] = SmoothSignature;
|
package/lib/withRemoteConfig.js
CHANGED
package/lib/withStore.js
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"main": "lib/index.js",
|
|
4
4
|
"module": "esm/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
|
-
"version": "6.
|
|
6
|
+
"version": "6.11.0-beta.0",
|
|
7
7
|
"description": "",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "npm run clean-dist && cross-env NODE_ENV=production rollup -c ",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@rc-component/mini-decimal": "^1.0.1",
|
|
39
|
-
"amis-core": "^6.
|
|
40
|
-
"amis-formula": "^6.
|
|
39
|
+
"amis-core": "^6.11.0-beta.0",
|
|
40
|
+
"amis-formula": "^6.11.0-beta.0",
|
|
41
41
|
"animate.css": "4.1.1",
|
|
42
42
|
"classnames": "2.3.2",
|
|
43
43
|
"codemirror": "^5.63.0",
|
|
@@ -70,7 +70,6 @@
|
|
|
70
70
|
"react-textarea-autosize": "8.3.3",
|
|
71
71
|
"react-transition-group": "4.4.2",
|
|
72
72
|
"react-visibility-sensor": "5.1.1",
|
|
73
|
-
"smooth-signature": "^1.0.15",
|
|
74
73
|
"sortablejs": "1.15.0",
|
|
75
74
|
"tinymce": "^6.1.2",
|
|
76
75
|
"tslib": "^2.3.1",
|
package/scss/_components.scss
CHANGED
|
@@ -1907,9 +1907,9 @@
|
|
|
1907
1907
|
--radio-default-default-distance: var(--sizes-size-5);
|
|
1908
1908
|
@include margin(
|
|
1909
1909
|
--radio-default-default,
|
|
1910
|
-
var(--sizes-size-0),
|
|
1911
|
-
var(--sizes-size-9),
|
|
1912
1910
|
var(--sizes-size-4),
|
|
1911
|
+
var(--sizes-size-9),
|
|
1912
|
+
var(--sizes-size-0),
|
|
1913
1913
|
var(--sizes-size-0)
|
|
1914
1914
|
);
|
|
1915
1915
|
|
|
@@ -1931,9 +1931,9 @@
|
|
|
1931
1931
|
|
|
1932
1932
|
@include margin(
|
|
1933
1933
|
--radio-default-vertical,
|
|
1934
|
-
var(--sizes-size-0),
|
|
1935
|
-
var(--sizes-size-5),
|
|
1936
1934
|
var(--sizes-size-4),
|
|
1935
|
+
var(--sizes-size-5),
|
|
1936
|
+
var(--sizes-size-0),
|
|
1937
1937
|
var(--sizes-size-0)
|
|
1938
1938
|
);
|
|
1939
1939
|
|
|
@@ -1018,8 +1018,9 @@
|
|
|
1018
1018
|
margin-bottom: 0;
|
|
1019
1019
|
|
|
1020
1020
|
> .#{$ns}Table-contentWrap {
|
|
1021
|
-
> .#{$ns}Table-content table {
|
|
1021
|
+
> .#{$ns}Table-content > table {
|
|
1022
1022
|
border-top: none; // 不然会导致拖动时顶部露出内容
|
|
1023
|
+
min-height: 100%; // 为了让表格占满高度
|
|
1023
1024
|
}
|
|
1024
1025
|
|
|
1025
1026
|
> .#{$ns}Table-content table thead {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.#{$ns}Checkbox {
|
|
2
|
-
margin:
|
|
2
|
+
margin: var(--Form-label-paddingTop) var(--gap-sm) 0 0;
|
|
3
3
|
font-weight: var(--fontWeightNormal);
|
|
4
4
|
display: inline-block;
|
|
5
5
|
cursor: pointer;
|
|
@@ -376,7 +376,6 @@
|
|
|
376
376
|
.#{$ns}CheckboxesControl {
|
|
377
377
|
.#{$ns}Checkbox {
|
|
378
378
|
display: block;
|
|
379
|
-
margin-bottom: var(--Form-label-paddingTop);
|
|
380
379
|
}
|
|
381
380
|
|
|
382
381
|
&.is-inline .#{$ns}Checkbox {
|
|
@@ -97,6 +97,10 @@
|
|
|
97
97
|
|
|
98
98
|
.#{$ns}Picker-values {
|
|
99
99
|
display: inline;
|
|
100
|
+
|
|
101
|
+
.#{$ns}Picker-valueLabel {
|
|
102
|
+
pointer-events: auto;
|
|
103
|
+
}
|
|
100
104
|
}
|
|
101
105
|
|
|
102
106
|
&-valueWrap {
|
|
@@ -158,7 +162,7 @@
|
|
|
158
162
|
&-overflow {
|
|
159
163
|
&-wrapper {
|
|
160
164
|
display: flex;
|
|
161
|
-
flex-
|
|
165
|
+
flex-wrap: wrap;
|
|
162
166
|
justify-content: flex-start;
|
|
163
167
|
align-items: flex-start;
|
|
164
168
|
overflow-x: hidden;
|