amis-editor 4.1.0-beta.4 → 5.2.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/component/BaseControl.d.ts +1831 -0
- package/lib/component/BaseControl.js +366 -0
- package/{dist/component/base → lib/component}/InputComponentName.d.ts +1 -1
- package/lib/component/InputComponentName.js +44 -0
- package/{dist → lib}/component/TableViewEditor.d.ts +2 -2
- package/lib/component/TableViewEditor.js +528 -0
- package/lib/event-action/actions.d.ts +3 -0
- package/lib/event-action/actions.js +188 -0
- package/lib/event-action/schema.d.ts +13 -0
- package/lib/event-action/schema.js +134 -0
- package/{dist → lib}/index.d.ts +27 -31
- package/lib/index.js +181 -0
- package/{dist → lib}/plugin/Alert.d.ts +5 -3
- package/lib/plugin/Alert.js +113 -0
- package/lib/plugin/AnchorNav.d.ts +48 -0
- package/lib/plugin/AnchorNav.js +297 -0
- package/{dist → lib}/plugin/Audio.d.ts +1 -1
- package/lib/plugin/Audio.js +157 -0
- package/{dist → lib}/plugin/Avatar.d.ts +11 -2
- package/lib/plugin/Avatar.js +305 -0
- package/{dist → lib}/plugin/Breadcrumb.d.ts +1 -1
- package/lib/plugin/Breadcrumb.js +116 -0
- package/{dist → lib}/plugin/Button.d.ts +7 -3
- package/lib/plugin/Button.js +297 -0
- package/lib/plugin/ButtonGroup.d.ts +39 -0
- package/lib/plugin/ButtonGroup.js +139 -0
- package/{dist → lib}/plugin/ButtonToolbar.d.ts +5 -11
- package/lib/plugin/ButtonToolbar.js +89 -0
- package/{dist → lib}/plugin/CRUD.d.ts +3 -1
- package/lib/plugin/CRUD.js +1528 -0
- package/{dist → lib}/plugin/Card.d.ts +2 -1
- package/lib/plugin/Card.js +233 -0
- package/{dist → lib}/plugin/Cards.d.ts +3 -2
- package/lib/plugin/Cards.js +254 -0
- package/{dist → lib}/plugin/Carousel.d.ts +2 -1
- package/lib/plugin/Carousel.js +358 -0
- package/{dist → lib}/plugin/Chart.d.ts +4 -1
- package/lib/plugin/Chart.js +192 -0
- package/{dist → lib}/plugin/CodeView.d.ts +1 -1
- package/lib/plugin/CodeView.js +68 -0
- package/{dist → lib}/plugin/Collapse.d.ts +3 -1
- package/lib/plugin/Collapse.js +138 -0
- package/{dist → lib}/plugin/CollapseGroup.d.ts +29 -5
- package/lib/plugin/CollapseGroup.js +237 -0
- package/{dist → lib}/plugin/Container.d.ts +3 -2
- package/lib/plugin/Container.js +100 -0
- package/{dist → lib}/plugin/Custom.d.ts +4 -1
- package/lib/plugin/Custom.js +109 -0
- package/lib/plugin/CustomRegion.d.ts +40 -0
- package/lib/plugin/CustomRegion.js +154 -0
- package/{dist → lib}/plugin/Date.d.ts +1 -1
- package/lib/plugin/Date.js +82 -0
- package/{dist → lib}/plugin/Datetime.d.ts +1 -1
- package/lib/plugin/Datetime.js +77 -0
- package/{dist → lib}/plugin/Dialog.d.ts +13 -3
- package/lib/plugin/Dialog.js +214 -0
- package/{dist → lib}/plugin/Divider.d.ts +1 -1
- package/lib/plugin/Divider.js +49 -0
- package/{dist → lib}/plugin/Drawer.d.ts +13 -3
- package/lib/plugin/Drawer.js +240 -0
- package/{dist → lib}/plugin/DropDownButton.d.ts +13 -12
- package/lib/plugin/DropDownButton.js +229 -0
- package/{dist → lib}/plugin/Each.d.ts +2 -2
- package/lib/plugin/Each.js +131 -0
- package/{dist → lib}/plugin/Flex.d.ts +2 -1
- package/lib/plugin/Flex.js +203 -0
- package/{dist → lib}/plugin/Form/ButtonGroupSelect.d.ts +7 -2
- package/lib/plugin/Form/ButtonGroupSelect.js +161 -0
- package/{dist → lib}/plugin/Form/ButtonToolbar.d.ts +8 -7
- package/lib/plugin/Form/ButtonToolbar.js +107 -0
- package/{dist → lib}/plugin/Form/ChainedSelect.d.ts +8 -2
- package/lib/plugin/Form/ChainedSelect.js +183 -0
- package/{dist → lib}/plugin/Form/Checkbox.d.ts +7 -2
- package/lib/plugin/Form/Checkbox.js +174 -0
- package/{dist → lib}/plugin/Form/Checkboxes.d.ts +8 -2
- package/lib/plugin/Form/Checkboxes.js +213 -0
- package/lib/plugin/Form/CodeEditor.d.ts +25 -0
- package/lib/plugin/Form/CodeEditor.js +201 -0
- package/{dist → lib}/plugin/Form/Combo.d.ts +4 -1
- package/lib/plugin/Form/Combo.js +546 -0
- package/{dist → lib}/plugin/Form/ConditionBuilder.d.ts +1 -1
- package/lib/plugin/Form/ConditionBuilder.js +302 -0
- package/{dist → lib}/plugin/Form/Control.d.ts +7 -2
- package/lib/plugin/Form/Control.js +88 -0
- package/{dist → lib}/plugin/Form/DiffEditor.d.ts +8 -2
- package/lib/plugin/Form/DiffEditor.js +204 -0
- package/{dist → lib}/plugin/Form/FieldSet.d.ts +1 -1
- package/lib/plugin/Form/FieldSet.js +152 -0
- package/lib/plugin/Form/Form.d.ts +42 -0
- package/lib/plugin/Form/Form.js +846 -0
- package/lib/plugin/Form/Formula.d.ts +27 -0
- package/lib/plugin/Form/Formula.js +82 -0
- package/{dist → lib}/plugin/Form/Group.d.ts +1 -1
- package/lib/plugin/Form/Group.js +252 -0
- package/{dist → lib}/plugin/Form/Hidden.d.ts +1 -1
- package/lib/plugin/Form/Hidden.js +58 -0
- package/{dist → lib}/plugin/Form/InputArray.d.ts +1 -1
- package/lib/plugin/Form/InputArray.js +181 -0
- package/{dist → lib}/plugin/Form/InputCity.d.ts +6 -2
- package/lib/plugin/Form/InputCity.js +139 -0
- package/{dist → lib}/plugin/Form/InputColor.d.ts +20 -18
- package/lib/plugin/Form/InputColor.js +295 -0
- package/lib/plugin/Form/InputDate.d.ts +26 -0
- package/lib/plugin/Form/InputDate.js +357 -0
- package/lib/plugin/Form/InputDateRange.d.ts +26 -0
- package/lib/plugin/Form/InputDateRange.js +350 -0
- package/{dist → lib}/plugin/Form/InputDateTime.d.ts +4 -4
- package/lib/plugin/Form/InputDateTime.js +50 -0
- package/lib/plugin/Form/InputDateTimeRange.d.ts +20 -0
- package/lib/plugin/Form/InputDateTimeRange.js +51 -0
- package/{dist → lib}/plugin/Form/InputEmail.d.ts +1 -0
- package/lib/plugin/Form/InputEmail.js +45 -0
- package/lib/plugin/Form/InputExcel.d.ts +23 -0
- package/lib/plugin/Form/InputExcel.js +121 -0
- package/{dist → lib}/plugin/Form/InputFile.d.ts +7 -3
- package/lib/plugin/Form/InputFile.js +354 -0
- package/{dist → lib}/plugin/Form/InputGroup.d.ts +1 -1
- package/lib/plugin/Form/InputGroup.js +100 -0
- package/{dist → lib}/plugin/Form/InputImage.d.ts +6 -2
- package/lib/plugin/Form/InputImage.js +271 -0
- package/{dist → lib}/plugin/Form/InputKV.d.ts +7 -1
- package/lib/plugin/Form/InputKV.js +129 -0
- package/{dist → lib}/plugin/Form/InputMonth.d.ts +1 -0
- package/lib/plugin/Form/InputMonth.js +48 -0
- package/{dist/plugin/Form/InputDate.d.ts → lib/plugin/Form/InputMonthRange.d.ts} +4 -4
- package/lib/plugin/Form/InputMonthRange.js +51 -0
- package/{dist → lib}/plugin/Form/InputNumber.d.ts +7 -2
- package/lib/plugin/Form/InputNumber.js +263 -0
- package/{dist → lib}/plugin/Form/InputPassword.d.ts +1 -0
- package/lib/plugin/Form/InputPassword.js +45 -0
- package/{dist → lib}/plugin/Form/InputQuarter.d.ts +1 -0
- package/lib/plugin/Form/InputQuarter.js +48 -0
- package/{dist → lib}/plugin/Form/InputQuarterRange.d.ts +4 -4
- package/lib/plugin/Form/InputQuarterRange.js +51 -0
- package/{dist → lib}/plugin/Form/InputRange.d.ts +7 -2
- package/lib/plugin/Form/InputRange.js +292 -0
- package/lib/plugin/Form/InputRating.d.ts +25 -0
- package/lib/plugin/Form/InputRating.js +357 -0
- package/{dist → lib}/plugin/Form/InputRepeat.d.ts +1 -1
- package/lib/plugin/Form/InputRepeat.js +65 -0
- package/{dist → lib}/plugin/Form/InputRichText.d.ts +1 -1
- package/lib/plugin/Form/InputRichText.js +193 -0
- package/{dist → lib}/plugin/Form/InputSubForm.d.ts +2 -1
- package/lib/plugin/Form/InputSubForm.js +160 -0
- package/{dist → lib}/plugin/Form/InputTable.d.ts +1 -1
- package/lib/plugin/Form/InputTable.js +400 -0
- package/{dist → lib}/plugin/Form/InputTag.d.ts +6 -2
- package/lib/plugin/Form/InputTag.js +155 -0
- package/lib/plugin/Form/InputText.d.ts +42 -0
- package/lib/plugin/Form/InputText.js +328 -0
- package/{dist → lib}/plugin/Form/InputTime.d.ts +3 -3
- package/lib/plugin/Form/InputTime.js +48 -0
- package/{dist/plugin/Form/InputDateTimeRange.d.ts → lib/plugin/Form/InputTimeRange.d.ts} +4 -4
- package/lib/plugin/Form/InputTimeRange.js +51 -0
- package/{dist → lib}/plugin/Form/InputTree.d.ts +6 -2
- package/lib/plugin/Form/InputTree.js +375 -0
- package/{dist → lib}/plugin/Form/InputURL.d.ts +2 -0
- package/lib/plugin/Form/InputURL.js +46 -0
- package/{dist → lib}/plugin/Form/InputYear.d.ts +1 -0
- package/lib/plugin/Form/InputYear.js +48 -0
- package/{dist/plugin/Form/InputMonthRange.d.ts → lib/plugin/Form/InputYearRange.d.ts} +4 -4
- package/lib/plugin/Form/InputYearRange.js +51 -0
- package/{dist → lib}/plugin/Form/Item.d.ts +2 -2
- package/lib/plugin/Form/Item.js +265 -0
- package/{dist → lib}/plugin/Form/ListSelect.d.ts +6 -2
- package/lib/plugin/Form/ListSelect.js +130 -0
- package/{dist/plugin/Form/InputDateRange.d.ts → lib/plugin/Form/LocationPicker.d.ts} +5 -6
- package/lib/plugin/Form/LocationPicker.js +74 -0
- package/{dist → lib}/plugin/Form/MatrixCheckboxes.d.ts +7 -2
- package/lib/plugin/Form/MatrixCheckboxes.js +234 -0
- package/{dist → lib}/plugin/Form/NestedSelect.d.ts +8 -2
- package/lib/plugin/Form/NestedSelect.js +328 -0
- package/{dist → lib}/plugin/Form/Picker.d.ts +1 -1
- package/lib/plugin/Form/Picker.js +169 -0
- package/{dist → lib}/plugin/Form/Radios.d.ts +7 -2
- package/lib/plugin/Form/Radios.js +189 -0
- package/{dist → lib}/plugin/Form/Select.d.ts +7 -2
- package/lib/plugin/Form/Select.js +304 -0
- package/{dist → lib}/plugin/Form/Static.d.ts +4 -3
- package/lib/plugin/Form/Static.js +312 -0
- package/{dist → lib}/plugin/Form/Switch.d.ts +9 -2
- package/lib/plugin/Form/Switch.js +219 -0
- package/{dist → lib}/plugin/Form/TabsTransfer.d.ts +5 -2
- package/lib/plugin/Form/TabsTransfer.js +348 -0
- package/{dist → lib}/plugin/Form/Textarea.d.ts +8 -2
- package/lib/plugin/Form/Textarea.js +190 -0
- package/{dist → lib}/plugin/Form/Transfer.d.ts +5 -2
- package/lib/plugin/Form/Transfer.js +414 -0
- package/{dist → lib}/plugin/Form/TreeSelect.d.ts +6 -2
- package/lib/plugin/Form/TreeSelect.js +375 -0
- package/{dist → lib}/plugin/Form/UUID.d.ts +1 -1
- package/lib/plugin/Form/UUID.js +55 -0
- package/{dist → lib}/plugin/Grid.d.ts +3 -2
- package/lib/plugin/Grid.js +680 -0
- package/{dist → lib}/plugin/HBox.d.ts +3 -2
- package/lib/plugin/HBox.js +594 -0
- package/{dist → lib}/plugin/IFrame.d.ts +6 -5
- package/lib/plugin/IFrame.js +94 -0
- package/{dist → lib}/plugin/Image.d.ts +1 -1
- package/lib/plugin/Image.js +264 -0
- package/{dist → lib}/plugin/Images.d.ts +1 -1
- package/lib/plugin/Images.js +214 -0
- package/{dist → lib}/plugin/Json.d.ts +2 -1
- package/lib/plugin/Json.js +82 -0
- package/{dist → lib}/plugin/Link.d.ts +2 -1
- package/lib/plugin/Link.js +120 -0
- package/{dist → lib}/plugin/List.d.ts +3 -2
- package/lib/plugin/List.js +220 -0
- package/{dist → lib}/plugin/ListItem.d.ts +1 -1
- package/lib/plugin/ListItem.js +195 -0
- package/{dist → lib}/plugin/Log.d.ts +1 -1
- package/lib/plugin/Log.js +62 -0
- package/{dist → lib}/plugin/Mapping.d.ts +2 -1
- package/lib/plugin/Mapping.js +149 -0
- package/{dist → lib}/plugin/Markdown.d.ts +2 -1
- package/lib/plugin/Markdown.js +58 -0
- package/lib/plugin/Nav.d.ts +48 -0
- package/lib/plugin/Nav.js +181 -0
- package/{dist → lib}/plugin/Operation.d.ts +1 -1
- package/lib/plugin/Operation.js +84 -0
- package/{dist → lib}/plugin/Others/Action.d.ts +6 -2
- package/lib/plugin/Others/Action.js +350 -0
- package/{dist → lib}/plugin/Others/TableCell.d.ts +1 -1
- package/lib/plugin/Others/TableCell.js +393 -0
- package/{dist → lib}/plugin/Page.d.ts +7 -4
- package/lib/plugin/Page.js +363 -0
- package/lib/plugin/Pagination.d.ts +51 -0
- package/lib/plugin/Pagination.js +247 -0
- package/{dist → lib}/plugin/Panel.d.ts +1 -1
- package/lib/plugin/Panel.js +222 -0
- package/{dist → lib}/plugin/Plain.d.ts +1 -1
- package/lib/plugin/Plain.js +88 -0
- package/{dist → lib}/plugin/Progress.d.ts +7 -2
- package/lib/plugin/Progress.js +258 -0
- package/{dist → lib}/plugin/Property.d.ts +1 -1
- package/lib/plugin/Property.js +147 -0
- package/{dist → lib}/plugin/QRCode.d.ts +2 -1
- package/lib/plugin/QRCode.js +107 -0
- package/{dist → lib}/plugin/Reset.d.ts +0 -1
- package/lib/plugin/Reset.js +38 -0
- package/{dist → lib}/plugin/Service.d.ts +5 -1
- package/lib/plugin/Service.js +217 -0
- package/{dist → lib}/plugin/Sparkline.d.ts +2 -1
- package/lib/plugin/Sparkline.js +50 -0
- package/{dist → lib}/plugin/Status.d.ts +2 -1
- package/lib/plugin/Status.js +86 -0
- package/{dist → lib}/plugin/Steps.d.ts +2 -1
- package/lib/plugin/Steps.js +136 -0
- package/{dist → lib}/plugin/Submit.d.ts +0 -1
- package/lib/plugin/Submit.js +38 -0
- package/{dist → lib}/plugin/Table.d.ts +7 -2
- package/lib/plugin/Table.js +594 -0
- package/{dist → lib}/plugin/TableView.d.ts +2 -1
- package/lib/plugin/TableView.js +744 -0
- package/{dist → lib}/plugin/Tabs.d.ts +34 -2
- package/lib/plugin/Tabs.js +429 -0
- package/{dist → lib}/plugin/Tasks.d.ts +2 -1
- package/lib/plugin/Tasks.js +263 -0
- package/{dist → lib}/plugin/Time.d.ts +1 -1
- package/lib/plugin/Time.js +77 -0
- package/{dist → lib}/plugin/TooltipWrapper.d.ts +12 -1
- package/lib/plugin/TooltipWrapper.js +281 -0
- package/{dist → lib}/plugin/Tpl.d.ts +3 -2
- package/lib/plugin/Tpl.js +183 -0
- package/{dist → lib}/plugin/Video.d.ts +2 -1
- package/lib/plugin/Video.js +140 -0
- package/{dist → lib}/plugin/WebComponent.d.ts +2 -1
- package/lib/plugin/WebComponent.js +70 -0
- package/{dist → lib}/plugin/Wizard.d.ts +16 -4
- package/lib/plugin/Wizard.js +799 -0
- package/{dist → lib}/plugin/Wrapper.d.ts +2 -1
- package/lib/plugin/Wrapper.js +136 -0
- package/lib/renderer/APIControl.d.ts +7526 -0
- package/lib/renderer/APIControl.js +791 -0
- package/lib/renderer/BadgeControl.d.ts +134 -0
- package/lib/renderer/BadgeControl.js +290 -0
- package/lib/renderer/DataBindingControl.d.ts +14 -0
- package/lib/renderer/DataBindingControl.js +91 -0
- package/lib/renderer/DataMappingControl.d.ts +11 -0
- package/lib/renderer/DataMappingControl.js +73 -0
- package/lib/renderer/DataPickerControl.d.ts +13 -0
- package/lib/renderer/DataPickerControl.js +83 -0
- package/lib/renderer/DateShortCutControl.d.ts +83 -0
- package/lib/renderer/DateShortCutControl.js +254 -0
- package/lib/renderer/FormulaControl.d.ts +96 -0
- package/lib/renderer/FormulaControl.js +324 -0
- package/{dist/component/Control → lib/renderer}/OptionControl.d.ts +25 -36
- package/lib/renderer/OptionControl.js +672 -0
- package/{dist/component/Control → lib/renderer}/PopoverEdit.d.ts +4 -4
- package/lib/renderer/RangePartsControl.d.ts +91 -0
- package/lib/renderer/RangePartsControl.js +392 -0
- package/lib/renderer/StatusControl.d.ts +39 -0
- package/lib/renderer/StatusControl.js +171 -0
- package/lib/renderer/SwitchMoreControl.d.ts +222 -0
- package/lib/renderer/SwitchMoreControl.js +302 -0
- package/lib/renderer/ValidationControl.d.ts +65 -0
- package/lib/renderer/ValidationControl.js +279 -0
- package/lib/renderer/ValidationItem.d.ts +46 -0
- package/lib/renderer/ValidationItem.js +147 -0
- package/lib/renderer/style-control/Background.d.ts +17 -0
- package/lib/renderer/style-control/Background.js +493 -0
- package/lib/renderer/style-control/Border.d.ts +18 -0
- package/lib/renderer/style-control/Border.js +191 -0
- package/lib/renderer/style-control/BoxModel.d.ts +17 -0
- package/lib/renderer/style-control/BoxModel.js +73 -0
- package/lib/renderer/style-control/BoxShadow.d.ts +18 -0
- package/lib/renderer/style-control/BoxShadow.js +125 -0
- package/lib/renderer/style-control/Display.d.ts +14 -0
- package/lib/renderer/style-control/Display.js +233 -0
- package/lib/renderer/style-control/Font.d.ts +16 -0
- package/lib/renderer/style-control/Font.js +239 -0
- package/lib/renderer/style-control/font-family.d.ts +11 -0
- package/lib/renderer/style-control/font-family.js +149 -0
- package/lib/renderer/style-control/transformation.d.ts +29 -0
- package/lib/renderer/style-control/transformation.js +84 -0
- package/lib/renderer/style-control/types.d.ts +8 -0
- package/lib/tpl/api.d.ts +1 -0
- package/lib/tpl/api.js +378 -0
- package/lib/tpl/common.d.ts +1 -0
- package/lib/tpl/common.js +808 -0
- package/lib/tpl/horizontal.d.ts +1 -0
- package/lib/tpl/horizontal.js +260 -0
- package/lib/tpl/index.d.ts +7 -0
- package/lib/tpl/options.d.ts +1 -0
- package/lib/tpl/options.js +265 -0
- package/{dist/component/schemaTpl.d.ts → lib/tpl/style.d.ts} +0 -4
- package/lib/tpl/style.js +372 -0
- package/lib/tpl/validations.d.ts +1 -0
- package/lib/tpl/validations.js +568 -0
- package/lib/util.d.ts +24 -0
- package/lib/util.js +64 -0
- package/lib/validator.d.ts +62 -0
- package/lib/validator.js +417 -0
- package/package.json +36 -25
- package/dist/150a58f3318ca7541ed9.png +0 -0
- package/dist/471adb97c322b226e589.png +0 -0
- package/dist/4de5f42360bc5946c3c2.png +0 -0
- package/dist/4e9968bba3855f088fed.png +0 -0
- package/dist/7f09c38ebc687fea847a.png +0 -0
- package/dist/c94073576487510314ea.png +0 -0
- package/dist/cebfe0bc5a1dbde02da1.svg +0 -10
- package/dist/compat.d.ts +0 -30
- package/dist/component/Breadcrumb.d.ts +0 -12
- package/dist/component/ClassNameControl.d.ts +0 -31
- package/dist/component/CommonConfigWrapper.d.ts +0 -6
- package/dist/component/ContainerWrapper.d.ts +0 -12
- package/dist/component/Control/APIControl.d.ts +0 -504
- package/dist/component/Control/ValidationControl.d.ts +0 -30
- package/dist/component/Editor.d.ts +0 -62
- package/dist/component/HighlightBox.d.ts +0 -29
- package/dist/component/IFrameBridge.d.ts +0 -32
- package/dist/component/IFramePreview.d.ts +0 -37
- package/dist/component/MiniEditor.d.ts +0 -9
- package/dist/component/NodeWrapper.d.ts +0 -20
- package/dist/component/Panel/AMisCodeEditor.d.ts +0 -37
- package/dist/component/Panel/AvailableRenderersPanel.d.ts +0 -10
- package/dist/component/Panel/CodeEditorPanel.d.ts +0 -6
- package/dist/component/Panel/ContextMenuPanel.d.ts +0 -8
- package/dist/component/Panel/DrawerPanel.d.ts +0 -15
- package/dist/component/Panel/DrawerRendererPanel.d.ts +0 -15
- package/dist/component/Panel/InsertSubRendererPanel.d.ts +0 -11
- package/dist/component/Panel/LeftPanels.d.ts +0 -20
- package/dist/component/Panel/Outline.d.ts +0 -18
- package/dist/component/Panel/RenderersPanel.d.ts +0 -32
- package/dist/component/Panel/RightPanels.d.ts +0 -21
- package/dist/component/Panel/TargetNamePanel.d.ts +0 -7
- package/dist/component/PopOverForm.d.ts +0 -22
- package/dist/component/Preview.d.ts +0 -65
- package/dist/component/RegionHLBox.d.ts +0 -20
- package/dist/component/RegionWrapper.d.ts +0 -192
- package/dist/component/RendererThumb.d.ts +0 -22
- package/dist/component/ScaffoldModal.d.ts +0 -24
- package/dist/component/SubEditor.d.ts +0 -67
- package/dist/component/VRenderer.d.ts +0 -177
- package/dist/component/base/BackTop.d.ts +0 -26
- package/dist/component/base/ErrorRenderer.d.ts +0 -4
- package/dist/component/base/SearchRendererPanel.d.ts +0 -59
- package/dist/component/base/WidthDraggableBtn.d.ts +0 -16
- package/dist/component/base/WidthDraggableContainer.d.ts +0 -2
- package/dist/component/remarkTpl.d.ts +0 -150
- package/dist/dnd/default.d.ts +0 -47
- package/dist/dnd/index.d.ts +0 -119
- package/dist/dnd/interface.d.ts +0 -14
- package/dist/dnd/position-h.d.ts +0 -7
- package/dist/env.d.ts +0 -5
- package/dist/exports.d.ts +0 -8
- package/dist/exports.min.js +0 -1
- package/dist/icons/index.d.ts +0 -2
- package/dist/index.min.js +0 -1
- package/dist/manager.d.ts +0 -445
- package/dist/mocker.d.ts +0 -1
- package/dist/plugin/AnchorNav.d.ts +0 -67
- package/dist/plugin/ButtonGroup.d.ts +0 -60
- package/dist/plugin/ErrorRenderer.d.ts +0 -7
- package/dist/plugin/Form/CodeEditor.d.ts +0 -40
- package/dist/plugin/Form/Form.d.ts +0 -20
- package/dist/plugin/Form/Formula.d.ts +0 -51
- package/dist/plugin/Form/InputExcel.d.ts +0 -58
- package/dist/plugin/Form/InputRating.d.ts +0 -19
- package/dist/plugin/Form/InputText.d.ts +0 -20
- package/dist/plugin/Form/LocationPicker.d.ts +0 -48
- package/dist/plugin/Nav.d.ts +0 -162
- package/dist/plugin/Others/BasicToolbar.d.ts +0 -11
- package/dist/plugin/Others/DataDebug.d.ts +0 -19
- package/dist/plugin/Others/Unknown.d.ts +0 -5
- package/dist/plugin/Panel/AvailableRenderers.d.ts +0 -8
- package/dist/plugin/Panel/Code.d.ts +0 -9
- package/dist/plugin/Panel/Name.d.ts +0 -8
- package/dist/plugin.d.ts +0 -600
- package/dist/store/editor.d.ts +0 -985
- package/dist/store/node.d.ts +0 -259
- package/dist/style.css +0 -1
- package/dist/util.d.ts +0 -72
- package/static/Code-hover.png +0 -0
- package/static/Code.png +0 -0
- package/static/Outline-hover.png +0 -0
- package/static/Outline.png +0 -0
- package/static/Renderers-hover.png +0 -0
- package/static/Renderers.png +0 -0
- package/static/side_hide_left.svg +0 -10
@@ -0,0 +1,493 @@
|
|
1
|
+
/**
|
2
|
+
* amis-editor v5.2.0-beta.1
|
3
|
+
* Copyright 2018-2022 @fex
|
4
|
+
*/
|
5
|
+
|
6
|
+
'use strict';
|
7
|
+
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
9
|
+
|
10
|
+
var tslib = require('tslib');
|
11
|
+
require('axios');
|
12
|
+
var cx = require('classnames');
|
13
|
+
var pick = require('lodash/pick');
|
14
|
+
var omit = require('lodash/omit');
|
15
|
+
var React = require('react');
|
16
|
+
var amis = require('amis');
|
17
|
+
var AMisCodeEditor = require('amis-editor-core');
|
18
|
+
|
19
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
20
|
+
|
21
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
22
|
+
var pick__default = /*#__PURE__*/_interopDefaultLegacy(pick);
|
23
|
+
var omit__default = /*#__PURE__*/_interopDefaultLegacy(omit);
|
24
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
25
|
+
|
26
|
+
/**
|
27
|
+
* @file Background.ts
|
28
|
+
* @description 背景设置
|
29
|
+
*/
|
30
|
+
var Background = function (props) {
|
31
|
+
var _a, _b, _c;
|
32
|
+
var _d = React.useState(0), tabIndex = _d[0], setTabIndex = _d[1];
|
33
|
+
var noImage = props.noImage;
|
34
|
+
var tabList = noImage
|
35
|
+
? ['pure', 'gradient', 'noset']
|
36
|
+
: ['pure', 'gradient', 'image', 'noset'];
|
37
|
+
function onChange(key) {
|
38
|
+
return function (e) {
|
39
|
+
var _a;
|
40
|
+
var _b, _c, _d;
|
41
|
+
var eventValue = e !== null && typeof e === 'object'
|
42
|
+
? typeof e.target === 'object'
|
43
|
+
? e.target.value
|
44
|
+
: e.value
|
45
|
+
: e;
|
46
|
+
var value = props.value, onChange = props.onChange;
|
47
|
+
var result = tslib.__assign(tslib.__assign({}, value), (_a = {}, _a[key] = eventValue, _a));
|
48
|
+
// 透明度
|
49
|
+
if (key === 'alpha') {
|
50
|
+
result.backgroundColor = (_b = result.backgroundColor) === null || _b === void 0 ? void 0 : _b.replace(/,\s(1|0){1}.?[0-9]*\)$/g, ", ".concat(e / 100, ")"));
|
51
|
+
}
|
52
|
+
// 位置
|
53
|
+
if (key === 'backgroundPosition') {
|
54
|
+
result.backgroundPosition = e.target.getAttribute('data-pos');
|
55
|
+
}
|
56
|
+
// 背景大小级平铺模式
|
57
|
+
if (key === 'backgroundSize') {
|
58
|
+
var bsValue = eventValue !== null && eventValue !== void 0 ? eventValue : '';
|
59
|
+
var bsArr = bsValue.split(' ');
|
60
|
+
// 0位size 1位平铺方式
|
61
|
+
if (bsArr.length > 1) {
|
62
|
+
result.backgroundSize = bsArr[0];
|
63
|
+
result.backgroundRepeat = bsArr[1];
|
64
|
+
}
|
65
|
+
else {
|
66
|
+
result.backgroundSize = bsValue;
|
67
|
+
result.backgroundRepeat = 'no-repeat';
|
68
|
+
}
|
69
|
+
}
|
70
|
+
// 渐变色角度
|
71
|
+
if (key === 'angle') {
|
72
|
+
var backgroundImage = (_c = result.backgroundImage) !== null && _c !== void 0 ? _c : '';
|
73
|
+
var lineraGradient = backgroundImage.indexOf('linear-gradient') !== -1
|
74
|
+
? backgroundImage
|
75
|
+
: 'linear-gradient(180deg, transparent, transparent)';
|
76
|
+
result.backgroundImage = lineraGradient.replace(/linear-gradient\(\d{1,3}/g, "linear-gradient(".concat(eventValue));
|
77
|
+
}
|
78
|
+
// 渐变色
|
79
|
+
if (key === 'gradientPrev' || key === 'gradientNext') {
|
80
|
+
var backgroundImage = (_d = result.backgroundImage) !== null && _d !== void 0 ? _d : '';
|
81
|
+
var lineraGradient = backgroundImage.indexOf('linear-gradient') !== -1
|
82
|
+
? backgroundImage
|
83
|
+
: 'linear-gradient(180deg, transparent, transparent)';
|
84
|
+
var tempArr = lineraGradient.split(', ');
|
85
|
+
var len = tempArr.length;
|
86
|
+
// 前景色
|
87
|
+
if (key === 'gradientPrev') {
|
88
|
+
if (len === 3) {
|
89
|
+
tempArr[1] = eventValue;
|
90
|
+
}
|
91
|
+
else if (len === 5 || len === 6) {
|
92
|
+
var startPos = 0;
|
93
|
+
var endPos = 0;
|
94
|
+
for (var i = 0; i < len; i++) {
|
95
|
+
if (tempArr[i].indexOf('rgb') !== -1) {
|
96
|
+
startPos = i;
|
97
|
+
}
|
98
|
+
if (tempArr[i].indexOf(')') !== -1 && endPos === 0) {
|
99
|
+
endPos = i;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
// 后景色是rgb或rgba
|
103
|
+
if (endPos === len - 1) {
|
104
|
+
tempArr.splice(1, 1, eventValue);
|
105
|
+
}
|
106
|
+
else {
|
107
|
+
tempArr.splice(startPos, endPos + 1, eventValue);
|
108
|
+
}
|
109
|
+
}
|
110
|
+
else if (len >= 7) {
|
111
|
+
// 前景色和后景色都是rgb
|
112
|
+
for (var i = 0; i < len; i++) {
|
113
|
+
var pos = tempArr[i].indexOf(')');
|
114
|
+
if (pos !== -1) {
|
115
|
+
tempArr.splice(1, i, eventValue);
|
116
|
+
break;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
// 后景色
|
122
|
+
if (key === 'gradientNext') {
|
123
|
+
if (len === 3) {
|
124
|
+
tempArr[2] = eventValue + ')';
|
125
|
+
}
|
126
|
+
else if (len === 5 || len === 6) {
|
127
|
+
var startPos = 0;
|
128
|
+
var endPos = 0;
|
129
|
+
for (var i = 0; i < len; i++) {
|
130
|
+
if (tempArr[i].indexOf('rgb') !== -1) {
|
131
|
+
startPos = i;
|
132
|
+
}
|
133
|
+
if (tempArr[i].indexOf(')') !== -1 && endPos === 0) {
|
134
|
+
endPos = i;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
// 后景色是rgb或rgba
|
138
|
+
if (endPos === len - 1) {
|
139
|
+
tempArr.splice(startPos, endPos + 1, eventValue + ')');
|
140
|
+
}
|
141
|
+
else {
|
142
|
+
tempArr.splice(-1, 1, eventValue + ')');
|
143
|
+
}
|
144
|
+
}
|
145
|
+
else if (len >= 7) {
|
146
|
+
// 前景色和后景色都是rgb
|
147
|
+
var flag = 0;
|
148
|
+
for (var i = 0; i < len; i++) {
|
149
|
+
var pos = tempArr[i].indexOf('rgb');
|
150
|
+
if (pos !== -1) {
|
151
|
+
flag++;
|
152
|
+
if (flag === 2) {
|
153
|
+
tempArr.splice(i, len - i + 1, eventValue);
|
154
|
+
break;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
}
|
160
|
+
result.backgroundImage = tempArr.join(', ');
|
161
|
+
result = pick__default["default"](result, 'backgroundImage');
|
162
|
+
}
|
163
|
+
// 删除无用属性
|
164
|
+
if (key === 'alpha' || key === 'backgroundColor') {
|
165
|
+
result = pick__default["default"](result, 'backgroundColor');
|
166
|
+
}
|
167
|
+
if (key === 'backgroundImage' ||
|
168
|
+
key === 'backgroundPosition' ||
|
169
|
+
key === 'backgroundSize') {
|
170
|
+
if (/linear-gradient/g.test(result === null || result === void 0 ? void 0 : result.backgroundImage)) {
|
171
|
+
result = pick__default["default"](result, 'backgroundPosition', 'backgroundSize', 'backgroundRepeat');
|
172
|
+
}
|
173
|
+
else {
|
174
|
+
result = pick__default["default"](result, 'backgroundImage', 'backgroundPosition', 'backgroundSize', 'backgroundRepeat');
|
175
|
+
}
|
176
|
+
}
|
177
|
+
onChange(tslib.__assign(tslib.__assign({}, omit__default["default"](value, [
|
178
|
+
'backgroundColor',
|
179
|
+
'backgroundImage',
|
180
|
+
'backgroundPosition',
|
181
|
+
'backgroundSize',
|
182
|
+
'backgroundRepeat',
|
183
|
+
'angle',
|
184
|
+
'gradientNext',
|
185
|
+
'gradientPrev'
|
186
|
+
])), result));
|
187
|
+
};
|
188
|
+
}
|
189
|
+
// 获取渐变颜色
|
190
|
+
function getGradient(type) {
|
191
|
+
var _a;
|
192
|
+
var linearGradient = (_a = props.value) === null || _a === void 0 ? void 0 : _a.backgroundImage;
|
193
|
+
var prevColor = '';
|
194
|
+
var nextColor = '';
|
195
|
+
if (/linear-gradient/g.test(linearGradient)) {
|
196
|
+
var tempArr = linearGradient.split(', ');
|
197
|
+
var len = tempArr.length;
|
198
|
+
if (len === 3) {
|
199
|
+
// 非rgb颜色
|
200
|
+
prevColor = tempArr[1];
|
201
|
+
nextColor = tempArr[2].slice(0, -1);
|
202
|
+
}
|
203
|
+
else if (len === 5 || len === 6) {
|
204
|
+
// rgb或rgba颜色
|
205
|
+
var startPos = 0;
|
206
|
+
var endPos = 0;
|
207
|
+
for (var i = 0; i < len; i++) {
|
208
|
+
if (tempArr[i].indexOf('rgb') !== -1) {
|
209
|
+
startPos = i;
|
210
|
+
}
|
211
|
+
if (tempArr[i].indexOf(')') !== -1 && endPos === 0) {
|
212
|
+
endPos = i;
|
213
|
+
if (i !== len - 1) {
|
214
|
+
prevColor = tempArr.slice(startPos, i + 1).join(', ');
|
215
|
+
nextColor = tempArr
|
216
|
+
.slice(i + 1)
|
217
|
+
.join('')
|
218
|
+
.slice(0, -1);
|
219
|
+
}
|
220
|
+
else {
|
221
|
+
prevColor = tempArr.slice(1, startPos).join('');
|
222
|
+
nextColor = tempArr.slice(startPos, len - 1).join(', ');
|
223
|
+
}
|
224
|
+
}
|
225
|
+
}
|
226
|
+
}
|
227
|
+
else if (len >= 7) {
|
228
|
+
// 前景色和后景色都是rgb或rgba
|
229
|
+
var prevStartPos = 0;
|
230
|
+
var prevEndPos = 0;
|
231
|
+
var nextStartPos = 0;
|
232
|
+
var nextEndPos = 0;
|
233
|
+
for (var i = 0; i < len; i++) {
|
234
|
+
if (tempArr[i].indexOf('rgb') !== -1) {
|
235
|
+
if (prevStartPos === 0) {
|
236
|
+
prevStartPos = i;
|
237
|
+
}
|
238
|
+
else if (nextStartPos === 0) {
|
239
|
+
nextStartPos = i;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
if (tempArr[i].indexOf(')') !== -1) {
|
243
|
+
if (prevEndPos === 0) {
|
244
|
+
prevEndPos = i;
|
245
|
+
}
|
246
|
+
else if (nextEndPos === 0) {
|
247
|
+
nextEndPos = i;
|
248
|
+
}
|
249
|
+
}
|
250
|
+
}
|
251
|
+
prevColor = tempArr.slice(prevStartPos, prevEndPos + 1).join(', ');
|
252
|
+
nextColor = tempArr.slice(nextStartPos, nextEndPos).join(', ');
|
253
|
+
}
|
254
|
+
linearGradient.split('');
|
255
|
+
}
|
256
|
+
var returnColor = type === 'prev' ? prevColor : nextColor;
|
257
|
+
if (returnColor === 'transparent') {
|
258
|
+
return '';
|
259
|
+
}
|
260
|
+
return returnColor;
|
261
|
+
}
|
262
|
+
// 获取渐变角度
|
263
|
+
function getGradientAngle() {
|
264
|
+
var _a;
|
265
|
+
var linearGradient = (_a = props.value) === null || _a === void 0 ? void 0 : _a.backgroundImage;
|
266
|
+
var angle = 180;
|
267
|
+
var match = /linear-gradient\((\d{1,3})/.exec(String(linearGradient || ''));
|
268
|
+
if (match) {
|
269
|
+
angle = +match[1];
|
270
|
+
}
|
271
|
+
return +angle;
|
272
|
+
}
|
273
|
+
// 获取激活的tab
|
274
|
+
function setActiveTab() {
|
275
|
+
var value = props.value;
|
276
|
+
if ((value === null || value === void 0 ? void 0 : value.backgroundColor) || (value === null || value === void 0 ? void 0 : value.alpha)) {
|
277
|
+
// 背景色
|
278
|
+
setTabIndex(0);
|
279
|
+
}
|
280
|
+
else if (value === null || value === void 0 ? void 0 : value.backgroundImage) {
|
281
|
+
if (/linear-gradient/g.test(value.backgroundImage)) {
|
282
|
+
// 渐变色
|
283
|
+
setTabIndex(1);
|
284
|
+
}
|
285
|
+
else {
|
286
|
+
// 图片
|
287
|
+
setTabIndex(2);
|
288
|
+
}
|
289
|
+
}
|
290
|
+
else if ((value === null || value === void 0 ? void 0 : value.backgroundPosition) || (value === null || value === void 0 ? void 0 : value.backgroundSize)) {
|
291
|
+
// 图片
|
292
|
+
setTabIndex(2);
|
293
|
+
}
|
294
|
+
else {
|
295
|
+
// 无背景
|
296
|
+
setTabIndex(tabList.length - 1);
|
297
|
+
}
|
298
|
+
}
|
299
|
+
// 背景图尺寸设置
|
300
|
+
function getbsValue() {
|
301
|
+
var _a, _b;
|
302
|
+
var backgroundSize = (_a = props.value) === null || _a === void 0 ? void 0 : _a.backgroundSize;
|
303
|
+
var backgroundRepeat = (_b = props.value) === null || _b === void 0 ? void 0 : _b.backgroundRepeat;
|
304
|
+
var returnVal = backgroundSize || '';
|
305
|
+
if (backgroundSize === 'auto' && backgroundRepeat) {
|
306
|
+
returnVal = backgroundSize + ' ' + backgroundRepeat;
|
307
|
+
}
|
308
|
+
return returnVal;
|
309
|
+
}
|
310
|
+
// 清空背景颜色、渐变色、背景图
|
311
|
+
function clearValues() {
|
312
|
+
var value = props.value, onChange = props.onChange;
|
313
|
+
var result = tslib.__assign(tslib.__assign({}, value), { backgroundSize: '', backgroundPosition: '', backgroundColor: '', backgroundImage: '' });
|
314
|
+
onChange(result);
|
315
|
+
}
|
316
|
+
function tabChange(index, item) {
|
317
|
+
if (item === 'noset') {
|
318
|
+
clearValues();
|
319
|
+
}
|
320
|
+
setTabIndex(index);
|
321
|
+
}
|
322
|
+
function handleChange(key, keyValue) {
|
323
|
+
var _a;
|
324
|
+
var value = props.value, onChange = props.onChange;
|
325
|
+
var result = tslib.__assign(tslib.__assign({}, value), (_a = {}, _a[key] = keyValue, _a));
|
326
|
+
onChange(result);
|
327
|
+
}
|
328
|
+
var currentItem = tabList[tabIndex];
|
329
|
+
React.useEffect(function () {
|
330
|
+
setActiveTab();
|
331
|
+
}, []);
|
332
|
+
return (React__default["default"].createElement("div", { className: "ae-Background" },
|
333
|
+
React__default["default"].createElement("div", { className: "ae-Background_tabs" },
|
334
|
+
React__default["default"].createElement("ul", { className: "ae-Background_tabs-nav" }, tabList.map(function (item, index) {
|
335
|
+
return (React__default["default"].createElement("li", { key: index, className: cx__default["default"](item, {
|
336
|
+
active: tabIndex === index
|
337
|
+
}), onClick: function () { return tabChange(index, item); } }));
|
338
|
+
})),
|
339
|
+
React__default["default"].createElement("div", { className: "ae-Background_tabs-content" },
|
340
|
+
currentItem === 'pure' && (React__default["default"].createElement("div", { className: "ae-Background_setting" }, amis.render({
|
341
|
+
type: 'input-color',
|
342
|
+
label: '背景色',
|
343
|
+
format: 'rgba',
|
344
|
+
mode: 'normal',
|
345
|
+
value: (_a = props.value) === null || _a === void 0 ? void 0 : _a.backgroundColor
|
346
|
+
}, {
|
347
|
+
onChange: function (value) {
|
348
|
+
return handleChange('backgroundColor', value);
|
349
|
+
}
|
350
|
+
}))),
|
351
|
+
currentItem === 'gradient' && (React__default["default"].createElement("div", { className: "ae-Background_setting" },
|
352
|
+
React__default["default"].createElement("div", { className: "ae-Background_setting-item" },
|
353
|
+
React__default["default"].createElement("div", { className: "ae-Background_setting-item_color" }, amis.render({
|
354
|
+
type: 'input-color',
|
355
|
+
label: '开始颜色',
|
356
|
+
clearable: false,
|
357
|
+
placeholder: '起始色',
|
358
|
+
inputClassName: 'ae-Background-colorpicker',
|
359
|
+
value: getGradient('prev')
|
360
|
+
}, {
|
361
|
+
onChange: onChange('gradientPrev')
|
362
|
+
})),
|
363
|
+
React__default["default"].createElement("div", { className: "ae-Background_setting-item_pic" }),
|
364
|
+
React__default["default"].createElement("div", { className: "ae-Background_setting-item_color" }, amis.render({
|
365
|
+
type: 'input-color',
|
366
|
+
label: '结束颜色',
|
367
|
+
clearable: false,
|
368
|
+
placeholder: '结束色',
|
369
|
+
inputClassName: 'ae-Background-colorpicker',
|
370
|
+
value: getGradient('next')
|
371
|
+
}, {
|
372
|
+
onChange: onChange('gradientNext')
|
373
|
+
}))),
|
374
|
+
React__default["default"].createElement("div", { className: "ae-Background_setting-item" }, amis.render({
|
375
|
+
type: 'input-number',
|
376
|
+
label: '渐变角度',
|
377
|
+
mode: 'row',
|
378
|
+
step: 10,
|
379
|
+
min: 0,
|
380
|
+
max: 360,
|
381
|
+
value: getGradientAngle(),
|
382
|
+
description: '* 角度范围0-360度,0度表示从下至上渐变'
|
383
|
+
}, {
|
384
|
+
onChange: function (value) { return handleChange('angle', value); }
|
385
|
+
})))),
|
386
|
+
currentItem === 'image' && (React__default["default"].createElement("div", { className: "ae-Background_setting" },
|
387
|
+
amis.render({
|
388
|
+
type: 'group',
|
389
|
+
mode: 'horizontal',
|
390
|
+
body: [
|
391
|
+
AMisCodeEditor.getSchemaTpl('backgroundImageUrl', {
|
392
|
+
name: 'backgroundImage',
|
393
|
+
placeholder: '点击或拖拽图片上传',
|
394
|
+
fixedSize: true,
|
395
|
+
value: (_c = (_b = props.data) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.backgroundImage,
|
396
|
+
onChange: onChange('backgroundImage'),
|
397
|
+
fixedSizeClassName: 'ae-Background-upload',
|
398
|
+
accept: '.jpg,.png,.svg,.gif',
|
399
|
+
crop: true,
|
400
|
+
columnRatio: 6,
|
401
|
+
horizontal: {
|
402
|
+
left: 4,
|
403
|
+
right: 8
|
404
|
+
}
|
405
|
+
}),
|
406
|
+
{
|
407
|
+
type: '',
|
408
|
+
label: '图片位置',
|
409
|
+
name: 'backgroundPosition',
|
410
|
+
asFormItem: true,
|
411
|
+
columnRatio: 6,
|
412
|
+
horizontal: {
|
413
|
+
left: 4,
|
414
|
+
right: 8
|
415
|
+
},
|
416
|
+
children: function () { return (React__default["default"].createElement("ul", { className: "ae-Background_setting\u2014pos" }, [
|
417
|
+
'0 0',
|
418
|
+
'50% 0',
|
419
|
+
'100% 0',
|
420
|
+
'0 50%',
|
421
|
+
'50% 50%',
|
422
|
+
'100% 50%',
|
423
|
+
'0 100%',
|
424
|
+
'50% 100%',
|
425
|
+
'100% 100%'
|
426
|
+
].map(function (item) {
|
427
|
+
var _a;
|
428
|
+
return (React__default["default"].createElement("li", { key: item, "data-pos": item, className: cx__default["default"]('ae-Background_setting—pos_item', {
|
429
|
+
active: item === ((_a = props.value) === null || _a === void 0 ? void 0 : _a.backgroundPosition)
|
430
|
+
}), onClick: onChange('backgroundPosition') }));
|
431
|
+
}))); }
|
432
|
+
}
|
433
|
+
]
|
434
|
+
}),
|
435
|
+
amis.render({
|
436
|
+
type: 'select',
|
437
|
+
label: '图片尺寸',
|
438
|
+
name: 'backgroundSize',
|
439
|
+
mode: 'horizontal',
|
440
|
+
placeholder: '图片尺寸',
|
441
|
+
value: getbsValue(),
|
442
|
+
options: [
|
443
|
+
{
|
444
|
+
label: '充满',
|
445
|
+
value: 'cover'
|
446
|
+
},
|
447
|
+
{
|
448
|
+
label: '合适',
|
449
|
+
value: 'contain'
|
450
|
+
},
|
451
|
+
{
|
452
|
+
label: '拉伸',
|
453
|
+
value: '100%'
|
454
|
+
},
|
455
|
+
{
|
456
|
+
label: '平铺',
|
457
|
+
value: 'auto repeat'
|
458
|
+
},
|
459
|
+
{
|
460
|
+
label: '横向平铺',
|
461
|
+
value: 'auto repeat-x'
|
462
|
+
},
|
463
|
+
{
|
464
|
+
label: '纵向平铺',
|
465
|
+
value: 'auto repeat-y'
|
466
|
+
},
|
467
|
+
{
|
468
|
+
label: '原始尺寸',
|
469
|
+
value: 'auto no-repeat'
|
470
|
+
}
|
471
|
+
]
|
472
|
+
}, {
|
473
|
+
onChange: function (value) {
|
474
|
+
return handleChange('backgroundSize', value);
|
475
|
+
}
|
476
|
+
}))),
|
477
|
+
currentItem === 'noset' && (React__default["default"].createElement("div", { className: "ae-Background_setting noset" }))))));
|
478
|
+
};
|
479
|
+
/** @class */ ((function (_super) {
|
480
|
+
tslib.__extends(BackgroundRenderer, _super);
|
481
|
+
function BackgroundRenderer() {
|
482
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
483
|
+
}
|
484
|
+
BackgroundRenderer.prototype.render = function () {
|
485
|
+
return React__default["default"].createElement(Background, tslib.__assign({}, this.props));
|
486
|
+
};
|
487
|
+
BackgroundRenderer = tslib.__decorate([
|
488
|
+
amis.FormItem({ type: 'style-background' })
|
489
|
+
], BackgroundRenderer);
|
490
|
+
return BackgroundRenderer;
|
491
|
+
})(React__default["default"].Component));
|
492
|
+
|
493
|
+
exports["default"] = Background;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* @file 边框圆角
|
3
|
+
* @description 边框 & 圆角设置
|
4
|
+
*/
|
5
|
+
import React from 'react';
|
6
|
+
import type { PlainObject } from './types';
|
7
|
+
import type { FormControlProps } from 'amis-core';
|
8
|
+
declare function BoxBorder({ disableBorder, disableRadius, onChange, value }: {
|
9
|
+
disableBorder?: boolean;
|
10
|
+
disableRadius?: boolean;
|
11
|
+
onChange: (value: PlainObject) => void;
|
12
|
+
value?: PlainObject;
|
13
|
+
}): JSX.Element;
|
14
|
+
declare const _default: typeof BoxBorder;
|
15
|
+
export default _default;
|
16
|
+
export declare class BorderRenderer extends React.Component<FormControlProps> {
|
17
|
+
render(): JSX.Element;
|
18
|
+
}
|