amis-editor 5.2.1-beta.35 → 5.2.3-beta.16
Sign up to get free protection for your applications and to get access to all the features.
- package/esm/component/BaseControl.d.ts +1 -0
- package/esm/component/BaseControl.js +4 -4
- package/esm/component/InputComponentName.js +2 -2
- package/esm/component/TableViewEditor.js +2 -2
- package/esm/icons/btn/btn-group.svg.js +2 -2
- package/esm/icons/btn/btn-select.svg.js +2 -2
- package/esm/icons/btn/btn-toolbar.svg.js +2 -2
- package/esm/icons/btn/button.svg.js +2 -2
- package/esm/icons/btn/dropdown-btn.svg.js +2 -2
- package/esm/icons/container/anchor-nav.svg.js +2 -2
- package/esm/icons/container/collapse.svg.js +2 -2
- package/esm/icons/container/container.svg.js +2 -2
- package/esm/icons/container/flex-container.svg.js +2 -2
- package/esm/icons/container/form-group.svg.js +2 -2
- package/esm/icons/container/grid.svg.js +2 -2
- package/esm/icons/container/iframe.svg.js +2 -2
- package/esm/icons/container/panel.svg.js +2 -2
- package/esm/icons/container/table-view.svg.js +2 -2
- package/esm/icons/container/tabs.svg.js +2 -2
- package/esm/icons/container/tooltip-wrapper.svg.js +2 -2
- package/esm/icons/container/web-component.svg.js +2 -2
- package/esm/icons/feat/audio.svg.js +2 -2
- package/esm/icons/feat/custom.svg.js +2 -2
- package/esm/icons/feat/each.svg.js +2 -2
- package/esm/icons/feat/form.svg.js +2 -2
- package/esm/icons/feat/nav.svg.js +2 -2
- package/esm/icons/feat/qrcode.svg.js +2 -2
- package/esm/icons/feat/service.svg.js +2 -2
- package/esm/icons/feat/table.svg.js +2 -2
- package/esm/icons/feat/tasks.svg.js +2 -2
- package/esm/icons/feat/video.svg.js +2 -2
- package/esm/icons/feat/wizard.svg.js +2 -2
- package/esm/icons/form/chained-select.svg.js +2 -2
- package/esm/icons/form/checkbox.svg.js +2 -2
- package/esm/icons/form/checkboxes.svg.js +2 -2
- package/esm/icons/form/combo.svg.js +2 -2
- package/esm/icons/form/condition-builder.svg.js +2 -2
- package/esm/icons/form/diff-editor.svg.js +2 -2
- package/esm/icons/form/editor.svg.js +2 -2
- package/esm/icons/form/formula.svg.js +2 -2
- package/esm/icons/form/hidden.svg.js +2 -2
- package/esm/icons/form/input-city.svg.js +2 -2
- package/esm/icons/form/input-color.svg.js +2 -2
- package/esm/icons/form/input-date-range.svg.js +2 -2
- package/esm/icons/form/input-date.svg.js +2 -2
- package/esm/icons/form/input-datetime.svg.js +2 -2
- package/esm/icons/form/input-email.svg.js +2 -2
- package/esm/icons/form/input-excel.svg.js +2 -2
- package/esm/icons/form/input-file.svg.js +2 -2
- package/esm/icons/form/input-group.svg.js +2 -2
- package/esm/icons/form/input-image.svg.js +2 -2
- package/esm/icons/form/input-kv.svg.js +2 -2
- package/esm/icons/form/input-month-range.svg.js +2 -2
- package/esm/icons/form/input-number.svg.js +2 -2
- package/esm/icons/form/input-password.svg.js +2 -2
- package/esm/icons/form/input-quarter-range.svg.js +2 -2
- package/esm/icons/form/input-range.svg.js +2 -2
- package/esm/icons/form/input-rating.svg.js +2 -2
- package/esm/icons/form/input-repeat.svg.js +2 -2
- package/esm/icons/form/input-rich-text.svg.js +2 -2
- package/esm/icons/form/input-tag.svg.js +2 -2
- package/esm/icons/form/input-text.svg.js +2 -2
- package/esm/icons/form/input-time-range.svg.js +2 -2
- package/esm/icons/form/input-time.svg.js +2 -2
- package/esm/icons/form/input-tree.svg.js +2 -2
- package/esm/icons/form/input-url.svg.js +2 -2
- package/esm/icons/form/input-year.svg.js +2 -2
- package/esm/icons/form/inputArray.svg.js +2 -2
- package/esm/icons/form/list-select.svg.js +2 -2
- package/esm/icons/form/location-picker.svg.js +2 -2
- package/esm/icons/form/matrix-checkboxes.svg.js +2 -2
- package/esm/icons/form/month.svg.js +2 -2
- package/esm/icons/form/nested-select.svg.js +2 -2
- package/esm/icons/form/picker.svg.js +2 -2
- package/esm/icons/form/quarter.svg.js +2 -2
- package/esm/icons/form/radios.svg.js +2 -2
- package/esm/icons/form/select.svg.js +2 -2
- package/esm/icons/form/static.svg.js +2 -2
- package/esm/icons/form/sub-form.svg.js +2 -2
- package/esm/icons/form/switch.svg.js +2 -2
- package/esm/icons/form/tabs-transfer.svg.js +2 -2
- package/esm/icons/form/textarea.svg.js +2 -2
- package/esm/icons/form/transfer.svg.js +2 -2
- package/esm/icons/form/tree-select.svg.js +2 -2
- package/esm/icons/form/uuid.svg.js +2 -2
- package/esm/icons/index.js +2 -2
- package/esm/icons/layout/layout-1with2.svg.js +2 -2
- package/esm/icons/layout/layout-2cols.svg.js +2 -2
- package/esm/icons/layout/layout-2row.svg.js +2 -2
- package/esm/icons/layout/layout-2with1.svg.js +2 -2
- package/esm/icons/layout/layout-3cols.svg.js +2 -2
- package/esm/icons/layout/layout-3row.svg.js +2 -2
- package/esm/icons/layout/layout-absolute.svg.js +2 -2
- package/esm/icons/layout/layout-fixed.svg.js +2 -2
- package/esm/icons/layout/layout-full.svg.js +2 -2
- package/esm/icons/layout/layout1-2.svg.js +2 -2
- package/esm/icons/layout/layout2-1.svg.js +2 -2
- package/esm/icons/layout/layout3-1.svg.js +2 -2
- package/esm/icons/layout/layout3-2.svg.js +2 -2
- package/esm/icons/other/divider.svg.js +2 -2
- package/esm/icons/other/property-sheet.svg.js +2 -2
- package/esm/icons/other/tooltip.svg.js +2 -2
- package/esm/icons/show/URL.svg.js +2 -2
- package/esm/icons/show/avatar.svg.js +2 -2
- package/esm/icons/show/breadcrumb.svg.js +2 -2
- package/esm/icons/show/card.svg.js +2 -2
- package/esm/icons/show/cards.svg.js +2 -2
- package/esm/icons/show/carousel.svg.js +2 -2
- package/esm/icons/show/chart.svg.js +2 -2
- package/esm/icons/show/code.svg.js +2 -2
- package/esm/icons/show/date.svg.js +2 -2
- package/esm/icons/show/datetime.svg.js +2 -2
- package/esm/icons/show/image.svg.js +2 -2
- package/esm/icons/show/images.svg.js +2 -2
- package/esm/icons/show/json-view.svg.js +2 -2
- package/esm/icons/show/list.svg.js +2 -2
- package/esm/icons/show/log.svg.js +2 -2
- package/esm/icons/show/mapping.svg.js +2 -2
- package/esm/icons/show/markdown.svg.js +2 -2
- package/esm/icons/show/plain.svg.js +2 -2
- package/esm/icons/show/progress.svg.js +2 -2
- package/esm/icons/show/sparkline.svg.js +2 -2
- package/esm/icons/show/status.svg.js +2 -2
- package/esm/icons/show/steps.svg.js +2 -2
- package/esm/icons/show/time.svg.js +2 -2
- package/esm/index.js +2 -2
- package/esm/locale/en-US.js +13 -7
- package/esm/locale/zh-CN.js +9 -3
- package/esm/plugin/Alert.js +2 -2
- package/esm/plugin/AnchorNav.js +3 -8
- package/esm/plugin/Audio.js +2 -2
- package/esm/plugin/Avatar.js +3 -11
- package/esm/plugin/Breadcrumb.js +2 -2
- package/esm/plugin/Button.js +34 -9
- package/esm/plugin/ButtonGroup.js +2 -2
- package/esm/plugin/CRUD.d.ts +2 -2
- package/esm/plugin/CRUD.js +321 -345
- package/esm/plugin/CRUD2.js +2 -2
- package/esm/plugin/Card.js +4 -19
- package/esm/plugin/Card2.js +2 -2
- package/esm/plugin/Cards.js +8 -13
- package/esm/plugin/Carousel.js +4 -14
- package/esm/plugin/Chart.js +2 -2
- package/esm/plugin/CodeView.d.ts +2 -2
- package/esm/plugin/CodeView.js +25 -23
- package/esm/plugin/Collapse.js +4 -19
- package/esm/plugin/CollapseGroup.js +2 -2
- package/esm/plugin/ColumnToggler.js +2 -2
- package/esm/plugin/Container.js +8 -7
- package/esm/plugin/Custom.js +2 -2
- package/esm/plugin/CustomRegion.js +2 -2
- package/esm/plugin/Date.js +2 -2
- package/esm/plugin/Datetime.js +2 -2
- package/esm/plugin/Dialog.js +2 -2
- package/esm/plugin/Divider.d.ts +1 -0
- package/esm/plugin/Divider.js +13 -3
- package/esm/plugin/Drawer.js +2 -2
- package/esm/plugin/DropDownButton.js +5 -7
- package/esm/plugin/Each.js +4 -6
- package/esm/plugin/Flex.js +2 -2
- package/esm/plugin/Form/ButtonGroupSelect.js +3 -7
- package/esm/plugin/Form/ButtonToolbar.js +2 -2
- package/esm/plugin/Form/ChainedSelect.js +2 -2
- package/esm/plugin/Form/Checkbox.js +2 -2
- package/esm/plugin/Form/Checkboxes.js +2 -6
- package/esm/plugin/Form/CodeEditor.js +2 -2
- package/esm/plugin/Form/Combo.js +2 -2
- package/esm/plugin/Form/ConditionBuilder.d.ts +1 -1
- package/esm/plugin/Form/ConditionBuilder.js +39 -36
- package/esm/plugin/Form/Control.js +2 -2
- package/esm/plugin/Form/DiffEditor.js +2 -2
- package/esm/plugin/Form/FieldSet.js +3 -8
- package/esm/plugin/Form/Form.d.ts +1 -1
- package/esm/plugin/Form/Form.js +124 -140
- package/esm/plugin/Form/Formula.js +2 -2
- package/esm/plugin/Form/Group.js +2 -2
- package/esm/plugin/Form/Hidden.js +2 -2
- package/esm/plugin/Form/InputArray.js +2 -2
- package/esm/plugin/Form/InputCity.js +2 -4
- package/esm/plugin/Form/InputColor.js +2 -2
- package/esm/plugin/Form/InputDate.js +2 -2
- package/esm/plugin/Form/InputDateRange.js +3 -13
- package/esm/plugin/Form/InputDateTime.js +2 -2
- package/esm/plugin/Form/InputDateTimeRange.js +2 -2
- package/esm/plugin/Form/InputEmail.js +2 -2
- package/esm/plugin/Form/InputExcel.js +2 -2
- package/esm/plugin/Form/InputFile.js +3 -8
- package/esm/plugin/Form/InputGroup.js +2 -2
- package/esm/plugin/Form/InputImage.js +2 -2
- package/esm/plugin/Form/InputKV.js +2 -2
- package/esm/plugin/Form/InputMonth.js +2 -2
- package/esm/plugin/Form/InputMonthRange.js +2 -2
- package/esm/plugin/Form/InputNumber.js +4 -40
- package/esm/plugin/Form/InputPassword.js +2 -2
- package/esm/plugin/Form/InputQuarter.js +2 -2
- package/esm/plugin/Form/InputQuarterRange.js +2 -2
- package/esm/plugin/Form/InputRange.js +5 -12
- package/esm/plugin/Form/InputRating.js +6 -27
- package/esm/plugin/Form/InputRepeat.js +2 -2
- package/esm/plugin/Form/InputRichText.js +2 -2
- package/esm/plugin/Form/InputSubForm.js +6 -8
- package/esm/plugin/Form/InputTable.d.ts +1 -1
- package/esm/plugin/Form/InputTable.js +70 -67
- package/esm/plugin/Form/InputTag.js +3 -8
- package/esm/plugin/Form/InputText.js +2 -2
- package/esm/plugin/Form/InputTime.js +2 -2
- package/esm/plugin/Form/InputTimeRange.js +2 -2
- package/esm/plugin/Form/InputTree.js +2 -2
- package/esm/plugin/Form/InputURL.js +2 -2
- package/esm/plugin/Form/InputYear.js +2 -2
- package/esm/plugin/Form/InputYearRange.js +2 -2
- package/esm/plugin/Form/Item.js +2 -2
- package/esm/plugin/Form/ListSelect.js +2 -6
- package/esm/plugin/Form/LocationPicker.js +2 -2
- package/esm/plugin/Form/MatrixCheckboxes.js +5 -17
- package/esm/plugin/Form/NestedSelect.js +2 -2
- package/esm/plugin/Form/Picker.js +2 -2
- package/esm/plugin/Form/Radios.js +2 -6
- package/esm/plugin/Form/Select.js +2 -2
- package/esm/plugin/Form/Static.js +2 -2
- package/esm/plugin/Form/Switch.js +3 -7
- package/esm/plugin/Form/TabsTransfer.d.ts +1 -13
- package/esm/plugin/Form/TabsTransfer.js +5 -6
- package/esm/plugin/Form/Textarea.js +3 -8
- package/esm/plugin/Form/Transfer.js +2 -2
- package/esm/plugin/Form/TreeSelect.js +2 -2
- package/esm/plugin/Form/UUID.js +2 -2
- package/esm/plugin/Grid.js +5 -3
- package/esm/plugin/HBox.js +2 -2
- package/esm/plugin/IFrame.js +2 -2
- package/esm/plugin/Image.js +4 -10
- package/esm/plugin/Images.js +5 -11
- package/esm/plugin/Json.js +2 -2
- package/esm/plugin/Layout/FlexPluginBase.js +5 -3
- package/esm/plugin/Layout/Layout1_2_v4.js +2 -2
- package/esm/plugin/Layout/Layout_fixed.js +2 -2
- package/esm/plugin/Layout/Layout_free_container.js +2 -2
- package/esm/plugin/Layout/Layout_sorption_container.js +2 -2
- package/esm/plugin/Link.js +3 -7
- package/esm/plugin/List.js +3 -7
- package/esm/plugin/ListItem.js +2 -2
- package/esm/plugin/Log.js +2 -2
- package/esm/plugin/Mapping.js +6 -8
- package/esm/plugin/Markdown.js +2 -2
- package/esm/plugin/Nav.js +4 -6
- package/esm/plugin/Operation.js +2 -2
- package/esm/plugin/Others/Action.js +2 -2
- package/esm/plugin/Others/TableCell.js +6 -13
- package/esm/plugin/Page.js +12 -12
- package/esm/plugin/Pagination.js +2 -2
- package/esm/plugin/Panel.js +6 -10
- package/esm/plugin/Plain.d.ts +3 -0
- package/esm/plugin/Plain.js +63 -3
- package/esm/plugin/Progress.js +2 -2
- package/esm/plugin/Property.js +2 -2
- package/esm/plugin/QRCode.js +2 -2
- package/esm/plugin/Reset.js +2 -2
- package/esm/plugin/Service.js +2 -2
- package/esm/plugin/Sparkline.js +2 -2
- package/esm/plugin/Status.js +6 -8
- package/esm/plugin/Steps.js +4 -16
- package/esm/plugin/Submit.js +2 -2
- package/esm/plugin/Table.d.ts +2 -2
- package/esm/plugin/Table.js +88 -84
- package/esm/plugin/Table2.d.ts +1 -1
- package/esm/plugin/Table2.js +19 -17
- package/esm/plugin/TableCell2.js +2 -2
- package/esm/plugin/TableView.js +3 -7
- package/esm/plugin/Tabs.js +5 -6
- package/esm/plugin/Tasks.js +7 -36
- package/esm/plugin/Time.js +2 -2
- package/esm/plugin/Timeline.js +2 -2
- package/esm/plugin/TooltipWrapper.js +4 -10
- package/esm/plugin/Tpl.d.ts +3 -0
- package/esm/plugin/Tpl.js +63 -3
- package/esm/plugin/Video.js +2 -2
- package/esm/plugin/WebComponent.js +6 -6
- package/esm/plugin/Wizard.js +6 -29
- package/esm/plugin/Wrapper.js +5 -3
- package/esm/renderer/APIControl.d.ts +78 -0
- package/esm/renderer/APIControl.js +2 -2
- package/esm/renderer/BadgeControl.js +2 -2
- package/esm/renderer/DataBindingControl.js +2 -2
- package/esm/renderer/DataMappingControl.js +2 -2
- package/esm/renderer/DataPickerControl.js +2 -2
- package/esm/renderer/DateShortCutControl.js +2 -2
- package/esm/renderer/ExpressionFormulaControl.js +2 -2
- package/esm/renderer/FeatureControl.js +2 -2
- package/esm/renderer/FormulaControl.js +2 -2
- package/esm/renderer/GoConfigControl.js +2 -2
- package/esm/renderer/OptionControl.js +2 -2
- package/esm/renderer/RangePartsControl.js +2 -2
- package/esm/renderer/StatusControl.js +2 -2
- package/esm/renderer/SwitchMoreControl.js +2 -2
- package/esm/renderer/TimelineItemControl.js +2 -2
- package/esm/renderer/TransferTableControl.js +2 -2
- package/esm/renderer/TreeOptionControl.js +2 -2
- package/esm/renderer/ValidationControl.js +2 -2
- package/esm/renderer/ValidationItem.js +5 -3
- package/esm/renderer/event-control/action-config-dialog.js +2 -2
- package/esm/renderer/event-control/action-config-panel.js +2 -2
- package/esm/renderer/event-control/comp-action-select.js +2 -2
- package/esm/renderer/event-control/helper.d.ts +22 -21
- package/esm/renderer/event-control/helper.js +1305 -109
- package/esm/renderer/event-control/index.js +4 -4
- package/esm/renderer/style-control/Background.js +2 -2
- package/esm/renderer/style-control/Border.js +2 -2
- package/esm/renderer/style-control/BoxModel.js +2 -2
- package/esm/renderer/style-control/BoxShadow.js +2 -2
- package/esm/renderer/style-control/Display.js +2 -2
- package/esm/renderer/style-control/Font.js +2 -2
- package/esm/renderer/style-control/InsetBoxModel.js +2 -2
- package/esm/renderer/style-control/font-family.js +2 -2
- package/esm/renderer/style-control/transformation.js +2 -2
- package/esm/renderer/textarea-formula/FormulaPicker.d.ts +3 -0
- package/esm/renderer/textarea-formula/FormulaPicker.js +2 -2
- package/esm/renderer/textarea-formula/TextareaFormulaControl.d.ts +9 -0
- package/esm/renderer/textarea-formula/TextareaFormulaControl.js +17 -5
- package/esm/renderer/textarea-formula/plugin.js +2 -2
- package/esm/renderer/textarea-formula/utils.js +2 -2
- package/esm/tpl/api.js +2 -2
- package/esm/tpl/common.js +366 -3
- package/esm/tpl/horizontal.js +2 -2
- package/esm/tpl/layout.js +91 -23
- package/esm/tpl/options.js +2 -2
- package/esm/tpl/style.js +2 -2
- package/esm/tpl/validations.js +2 -2
- package/esm/util.js +2 -3
- package/esm/validator.js +2 -2
- package/lib/component/BaseControl.d.ts +1 -0
- package/lib/component/BaseControl.js +4 -4
- package/lib/component/InputComponentName.js +2 -2
- package/lib/component/TableViewEditor.js +2 -2
- package/lib/icons/btn/btn-group.svg.js +2 -2
- package/lib/icons/btn/btn-select.svg.js +2 -2
- package/lib/icons/btn/btn-toolbar.svg.js +2 -2
- package/lib/icons/btn/button.svg.js +2 -2
- package/lib/icons/btn/dropdown-btn.svg.js +2 -2
- package/lib/icons/container/anchor-nav.svg.js +2 -2
- package/lib/icons/container/collapse.svg.js +2 -2
- package/lib/icons/container/container.svg.js +2 -2
- package/lib/icons/container/flex-container.svg.js +2 -2
- package/lib/icons/container/form-group.svg.js +2 -2
- package/lib/icons/container/grid.svg.js +2 -2
- package/lib/icons/container/iframe.svg.js +2 -2
- package/lib/icons/container/panel.svg.js +2 -2
- package/lib/icons/container/table-view.svg.js +2 -2
- package/lib/icons/container/tabs.svg.js +2 -2
- package/lib/icons/container/tooltip-wrapper.svg.js +2 -2
- package/lib/icons/container/web-component.svg.js +2 -2
- package/lib/icons/feat/audio.svg.js +2 -2
- package/lib/icons/feat/custom.svg.js +2 -2
- package/lib/icons/feat/each.svg.js +2 -2
- package/lib/icons/feat/form.svg.js +2 -2
- package/lib/icons/feat/nav.svg.js +2 -2
- package/lib/icons/feat/qrcode.svg.js +2 -2
- package/lib/icons/feat/service.svg.js +2 -2
- package/lib/icons/feat/table.svg.js +2 -2
- package/lib/icons/feat/tasks.svg.js +2 -2
- package/lib/icons/feat/video.svg.js +2 -2
- package/lib/icons/feat/wizard.svg.js +2 -2
- package/lib/icons/form/chained-select.svg.js +2 -2
- package/lib/icons/form/checkbox.svg.js +2 -2
- package/lib/icons/form/checkboxes.svg.js +2 -2
- package/lib/icons/form/combo.svg.js +2 -2
- package/lib/icons/form/condition-builder.svg.js +2 -2
- package/lib/icons/form/diff-editor.svg.js +2 -2
- package/lib/icons/form/editor.svg.js +2 -2
- package/lib/icons/form/formula.svg.js +2 -2
- package/lib/icons/form/hidden.svg.js +2 -2
- package/lib/icons/form/input-city.svg.js +2 -2
- package/lib/icons/form/input-color.svg.js +2 -2
- package/lib/icons/form/input-date-range.svg.js +2 -2
- package/lib/icons/form/input-date.svg.js +2 -2
- package/lib/icons/form/input-datetime.svg.js +2 -2
- package/lib/icons/form/input-email.svg.js +2 -2
- package/lib/icons/form/input-excel.svg.js +2 -2
- package/lib/icons/form/input-file.svg.js +2 -2
- package/lib/icons/form/input-group.svg.js +2 -2
- package/lib/icons/form/input-image.svg.js +2 -2
- package/lib/icons/form/input-kv.svg.js +2 -2
- package/lib/icons/form/input-month-range.svg.js +2 -2
- package/lib/icons/form/input-number.svg.js +2 -2
- package/lib/icons/form/input-password.svg.js +2 -2
- package/lib/icons/form/input-quarter-range.svg.js +2 -2
- package/lib/icons/form/input-range.svg.js +2 -2
- package/lib/icons/form/input-rating.svg.js +2 -2
- package/lib/icons/form/input-repeat.svg.js +2 -2
- package/lib/icons/form/input-rich-text.svg.js +2 -2
- package/lib/icons/form/input-tag.svg.js +2 -2
- package/lib/icons/form/input-text.svg.js +2 -2
- package/lib/icons/form/input-time-range.svg.js +2 -2
- package/lib/icons/form/input-time.svg.js +2 -2
- package/lib/icons/form/input-tree.svg.js +2 -2
- package/lib/icons/form/input-url.svg.js +2 -2
- package/lib/icons/form/input-year.svg.js +2 -2
- package/lib/icons/form/inputArray.svg.js +2 -2
- package/lib/icons/form/list-select.svg.js +2 -2
- package/lib/icons/form/location-picker.svg.js +2 -2
- package/lib/icons/form/matrix-checkboxes.svg.js +2 -2
- package/lib/icons/form/month.svg.js +2 -2
- package/lib/icons/form/nested-select.svg.js +2 -2
- package/lib/icons/form/picker.svg.js +2 -2
- package/lib/icons/form/quarter.svg.js +2 -2
- package/lib/icons/form/radios.svg.js +2 -2
- package/lib/icons/form/select.svg.js +2 -2
- package/lib/icons/form/static.svg.js +2 -2
- package/lib/icons/form/sub-form.svg.js +2 -2
- package/lib/icons/form/switch.svg.js +2 -2
- package/lib/icons/form/tabs-transfer.svg.js +2 -2
- package/lib/icons/form/textarea.svg.js +2 -2
- package/lib/icons/form/transfer.svg.js +2 -2
- package/lib/icons/form/tree-select.svg.js +2 -2
- package/lib/icons/form/uuid.svg.js +2 -2
- package/lib/icons/index.js +2 -2
- package/lib/icons/layout/layout-1with2.svg.js +2 -2
- package/lib/icons/layout/layout-2cols.svg.js +2 -2
- package/lib/icons/layout/layout-2row.svg.js +2 -2
- package/lib/icons/layout/layout-2with1.svg.js +2 -2
- package/lib/icons/layout/layout-3cols.svg.js +2 -2
- package/lib/icons/layout/layout-3row.svg.js +2 -2
- package/lib/icons/layout/layout-absolute.svg.js +2 -2
- package/lib/icons/layout/layout-fixed.svg.js +2 -2
- package/lib/icons/layout/layout-full.svg.js +2 -2
- package/lib/icons/layout/layout1-2.svg.js +2 -2
- package/lib/icons/layout/layout2-1.svg.js +2 -2
- package/lib/icons/layout/layout3-1.svg.js +2 -2
- package/lib/icons/layout/layout3-2.svg.js +2 -2
- package/lib/icons/other/divider.svg.js +2 -2
- package/lib/icons/other/property-sheet.svg.js +2 -2
- package/lib/icons/other/tooltip.svg.js +2 -2
- package/lib/icons/show/URL.svg.js +2 -2
- package/lib/icons/show/avatar.svg.js +2 -2
- package/lib/icons/show/breadcrumb.svg.js +2 -2
- package/lib/icons/show/card.svg.js +2 -2
- package/lib/icons/show/cards.svg.js +2 -2
- package/lib/icons/show/carousel.svg.js +2 -2
- package/lib/icons/show/chart.svg.js +2 -2
- package/lib/icons/show/code.svg.js +2 -2
- package/lib/icons/show/date.svg.js +2 -2
- package/lib/icons/show/datetime.svg.js +2 -2
- package/lib/icons/show/image.svg.js +2 -2
- package/lib/icons/show/images.svg.js +2 -2
- package/lib/icons/show/json-view.svg.js +2 -2
- package/lib/icons/show/list.svg.js +2 -2
- package/lib/icons/show/log.svg.js +2 -2
- package/lib/icons/show/mapping.svg.js +2 -2
- package/lib/icons/show/markdown.svg.js +2 -2
- package/lib/icons/show/plain.svg.js +2 -2
- package/lib/icons/show/progress.svg.js +2 -2
- package/lib/icons/show/sparkline.svg.js +2 -2
- package/lib/icons/show/status.svg.js +2 -2
- package/lib/icons/show/steps.svg.js +2 -2
- package/lib/icons/show/time.svg.js +2 -2
- package/lib/index.js +2 -2
- package/lib/locale/en-US.js +13 -7
- package/lib/locale/zh-CN.js +9 -3
- package/lib/plugin/Alert.js +2 -2
- package/lib/plugin/AnchorNav.js +3 -8
- package/lib/plugin/Audio.js +2 -2
- package/lib/plugin/Avatar.js +3 -11
- package/lib/plugin/Breadcrumb.js +2 -2
- package/lib/plugin/Button.js +34 -9
- package/lib/plugin/ButtonGroup.js +2 -2
- package/lib/plugin/CRUD.d.ts +2 -2
- package/lib/plugin/CRUD.js +319 -343
- package/lib/plugin/CRUD2.d.ts +1 -1
- package/lib/plugin/CRUD2.js +2 -2
- package/lib/plugin/Card.js +4 -19
- package/lib/plugin/Card2.js +2 -2
- package/lib/plugin/Cards.js +8 -13
- package/lib/plugin/Carousel.js +4 -14
- package/lib/plugin/Chart.js +2 -2
- package/lib/plugin/CodeView.d.ts +2 -2
- package/lib/plugin/CodeView.js +25 -23
- package/lib/plugin/Collapse.js +3 -18
- package/lib/plugin/CollapseGroup.js +2 -2
- package/lib/plugin/ColumnToggler.js +2 -2
- package/lib/plugin/Container.js +8 -7
- package/lib/plugin/Custom.js +2 -2
- package/lib/plugin/CustomRegion.js +2 -2
- package/lib/plugin/Date.js +2 -2
- package/lib/plugin/Datetime.js +2 -2
- package/lib/plugin/Dialog.js +2 -2
- package/lib/plugin/Divider.d.ts +1 -0
- package/lib/plugin/Divider.js +13 -3
- package/lib/plugin/Drawer.js +2 -2
- package/lib/plugin/DropDownButton.js +5 -7
- package/lib/plugin/Each.js +4 -6
- package/lib/plugin/Flex.js +2 -2
- package/lib/plugin/Form/ButtonGroupSelect.js +3 -7
- package/lib/plugin/Form/ButtonToolbar.js +2 -2
- package/lib/plugin/Form/ChainedSelect.js +2 -2
- package/lib/plugin/Form/Checkbox.js +2 -2
- package/lib/plugin/Form/Checkboxes.js +2 -6
- package/lib/plugin/Form/CodeEditor.js +2 -2
- package/lib/plugin/Form/Combo.js +2 -2
- package/lib/plugin/Form/ConditionBuilder.d.ts +1 -1
- package/lib/plugin/Form/ConditionBuilder.js +39 -36
- package/lib/plugin/Form/Control.js +2 -2
- package/lib/plugin/Form/DiffEditor.js +2 -2
- package/lib/plugin/Form/FieldSet.js +3 -8
- package/lib/plugin/Form/Form.d.ts +1 -1
- package/lib/plugin/Form/Form.js +123 -139
- package/lib/plugin/Form/Formula.js +2 -2
- package/lib/plugin/Form/Group.js +2 -2
- package/lib/plugin/Form/Hidden.js +2 -2
- package/lib/plugin/Form/InputArray.js +2 -2
- package/lib/plugin/Form/InputCity.js +2 -4
- package/lib/plugin/Form/InputColor.js +2 -2
- package/lib/plugin/Form/InputDate.js +2 -2
- package/lib/plugin/Form/InputDateRange.js +3 -13
- package/lib/plugin/Form/InputDateTime.js +2 -2
- package/lib/plugin/Form/InputDateTimeRange.js +2 -2
- package/lib/plugin/Form/InputEmail.js +2 -2
- package/lib/plugin/Form/InputExcel.js +2 -2
- package/lib/plugin/Form/InputFile.js +3 -8
- package/lib/plugin/Form/InputGroup.js +2 -2
- package/lib/plugin/Form/InputImage.js +2 -2
- package/lib/plugin/Form/InputKV.js +2 -2
- package/lib/plugin/Form/InputMonth.js +2 -2
- package/lib/plugin/Form/InputMonthRange.js +2 -2
- package/lib/plugin/Form/InputNumber.js +3 -39
- package/lib/plugin/Form/InputPassword.js +2 -2
- package/lib/plugin/Form/InputQuarter.js +2 -2
- package/lib/plugin/Form/InputQuarterRange.js +2 -2
- package/lib/plugin/Form/InputRange.js +5 -12
- package/lib/plugin/Form/InputRating.js +6 -27
- package/lib/plugin/Form/InputRepeat.js +2 -2
- package/lib/plugin/Form/InputRichText.js +2 -2
- package/lib/plugin/Form/InputSubForm.js +6 -8
- package/lib/plugin/Form/InputTable.d.ts +1 -1
- package/lib/plugin/Form/InputTable.js +70 -67
- package/lib/plugin/Form/InputTag.js +3 -8
- package/lib/plugin/Form/InputText.js +2 -2
- package/lib/plugin/Form/InputTime.js +2 -2
- package/lib/plugin/Form/InputTimeRange.js +2 -2
- package/lib/plugin/Form/InputTree.js +2 -2
- package/lib/plugin/Form/InputURL.js +2 -2
- package/lib/plugin/Form/InputYear.js +2 -2
- package/lib/plugin/Form/InputYearRange.js +2 -2
- package/lib/plugin/Form/Item.js +2 -2
- package/lib/plugin/Form/ListSelect.js +2 -6
- package/lib/plugin/Form/LocationPicker.js +2 -2
- package/lib/plugin/Form/MatrixCheckboxes.js +5 -17
- package/lib/plugin/Form/NestedSelect.js +2 -2
- package/lib/plugin/Form/Picker.js +2 -2
- package/lib/plugin/Form/Radios.js +2 -6
- package/lib/plugin/Form/Select.js +2 -2
- package/lib/plugin/Form/Static.js +2 -2
- package/lib/plugin/Form/Switch.js +3 -7
- package/lib/plugin/Form/TabsTransfer.d.ts +1 -13
- package/lib/plugin/Form/TabsTransfer.js +5 -6
- package/lib/plugin/Form/Textarea.js +3 -8
- package/lib/plugin/Form/Transfer.js +2 -2
- package/lib/plugin/Form/TreeSelect.js +2 -2
- package/lib/plugin/Form/UUID.js +2 -2
- package/lib/plugin/Grid.js +5 -3
- package/lib/plugin/HBox.js +2 -2
- package/lib/plugin/IFrame.js +2 -2
- package/lib/plugin/Image.js +4 -10
- package/lib/plugin/Images.js +5 -11
- package/lib/plugin/Json.js +2 -2
- package/lib/plugin/Layout/FlexPluginBase.js +5 -3
- package/lib/plugin/Layout/Layout1_2_v4.js +2 -2
- package/lib/plugin/Layout/Layout_fixed.js +2 -2
- package/lib/plugin/Layout/Layout_free_container.js +2 -2
- package/lib/plugin/Layout/Layout_sorption_container.js +2 -2
- package/lib/plugin/Link.js +3 -7
- package/lib/plugin/List.js +3 -7
- package/lib/plugin/ListItem.js +2 -2
- package/lib/plugin/Log.js +2 -2
- package/lib/plugin/Mapping.js +6 -8
- package/lib/plugin/Markdown.js +2 -2
- package/lib/plugin/Nav.js +4 -6
- package/lib/plugin/Operation.js +2 -2
- package/lib/plugin/Others/Action.js +2 -2
- package/lib/plugin/Others/TableCell.js +6 -13
- package/lib/plugin/Page.js +12 -12
- package/lib/plugin/Pagination.js +2 -2
- package/lib/plugin/Panel.js +6 -10
- package/lib/plugin/Plain.d.ts +3 -0
- package/lib/plugin/Plain.js +62 -2
- package/lib/plugin/Progress.js +2 -2
- package/lib/plugin/Property.js +2 -2
- package/lib/plugin/QRCode.js +2 -2
- package/lib/plugin/Reset.js +2 -2
- package/lib/plugin/Service.js +2 -2
- package/lib/plugin/Sparkline.js +2 -2
- package/lib/plugin/Status.js +6 -8
- package/lib/plugin/Steps.js +4 -16
- package/lib/plugin/Submit.js +2 -2
- package/lib/plugin/Table.d.ts +2 -2
- package/lib/plugin/Table.js +87 -83
- package/lib/plugin/Table2.d.ts +1 -1
- package/lib/plugin/Table2.js +18 -16
- package/lib/plugin/TableCell2.js +2 -2
- package/lib/plugin/TableView.js +3 -7
- package/lib/plugin/Tabs.d.ts +1 -0
- package/lib/plugin/Tabs.js +5 -6
- package/lib/plugin/Tasks.js +7 -36
- package/lib/plugin/Time.js +2 -2
- package/lib/plugin/Timeline.js +2 -2
- package/lib/plugin/TooltipWrapper.js +4 -10
- package/lib/plugin/Tpl.d.ts +3 -0
- package/lib/plugin/Tpl.js +62 -2
- package/lib/plugin/Video.js +2 -2
- package/lib/plugin/WebComponent.js +6 -6
- package/lib/plugin/Wizard.js +5 -28
- package/lib/plugin/Wrapper.js +5 -3
- package/lib/renderer/APIControl.d.ts +80 -2
- package/lib/renderer/APIControl.js +2 -2
- package/lib/renderer/BadgeControl.d.ts +10 -10
- package/lib/renderer/BadgeControl.js +2 -2
- package/lib/renderer/DataBindingControl.js +2 -2
- package/lib/renderer/DataMappingControl.js +2 -2
- package/lib/renderer/DataPickerControl.js +2 -2
- package/lib/renderer/DateShortCutControl.js +2 -2
- package/lib/renderer/ExpressionFormulaControl.js +2 -2
- package/lib/renderer/FeatureControl.js +2 -2
- package/lib/renderer/FormulaControl.js +2 -2
- package/lib/renderer/GoConfigControl.js +2 -2
- package/lib/renderer/OptionControl.js +2 -2
- package/lib/renderer/RangePartsControl.js +2 -2
- package/lib/renderer/StatusControl.js +2 -2
- package/lib/renderer/SwitchMoreControl.d.ts +62 -62
- package/lib/renderer/SwitchMoreControl.js +2 -2
- package/lib/renderer/TimelineItemControl.js +2 -2
- package/lib/renderer/TransferTableControl.js +2 -2
- package/lib/renderer/TreeOptionControl.js +2 -2
- package/lib/renderer/ValidationControl.js +2 -2
- package/lib/renderer/ValidationItem.js +5 -3
- package/lib/renderer/event-control/action-config-dialog.js +2 -2
- package/lib/renderer/event-control/action-config-panel.js +2 -2
- package/lib/renderer/event-control/comp-action-select.js +2 -2
- package/lib/renderer/event-control/helper.d.ts +22 -21
- package/lib/renderer/event-control/helper.js +1305 -108
- package/lib/renderer/event-control/index.js +4 -3
- package/lib/renderer/style-control/Background.js +2 -2
- package/lib/renderer/style-control/Border.js +2 -2
- package/lib/renderer/style-control/BoxModel.js +2 -2
- package/lib/renderer/style-control/BoxShadow.js +2 -2
- package/lib/renderer/style-control/Display.js +2 -2
- package/lib/renderer/style-control/Font.js +2 -2
- package/lib/renderer/style-control/InsetBoxModel.js +2 -2
- package/lib/renderer/style-control/font-family.js +2 -2
- package/lib/renderer/style-control/transformation.js +2 -2
- package/lib/renderer/textarea-formula/FormulaPicker.d.ts +3 -0
- package/lib/renderer/textarea-formula/FormulaPicker.js +2 -2
- package/lib/renderer/textarea-formula/TextareaFormulaControl.d.ts +9 -0
- package/lib/renderer/textarea-formula/TextareaFormulaControl.js +17 -5
- package/lib/renderer/textarea-formula/plugin.js +2 -2
- package/lib/renderer/textarea-formula/utils.js +2 -2
- package/lib/tpl/api.js +2 -2
- package/lib/tpl/common.js +366 -3
- package/lib/tpl/horizontal.js +2 -2
- package/lib/tpl/layout.js +91 -23
- package/lib/tpl/options.js +2 -2
- package/lib/tpl/style.js +2 -2
- package/lib/tpl/validations.js +2 -2
- package/lib/util.js +2 -3
- package/lib/validator.js +2 -2
- package/package.json +1 -5
- package/esm/renderer/event-control/actions.d.ts +0 -3
- package/esm/renderer/event-control/actions.js +0 -1211
- package/lib/renderer/event-control/actions.d.ts +0 -3
- package/lib/renderer/event-control/actions.js +0 -1219
@@ -1,1211 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* amis-editor v5.2.1-beta.35
|
3
|
-
* Copyright 2018-2022 @fex
|
4
|
-
*/
|
5
|
-
|
6
|
-
import { __assign, __spreadArray } from 'tslib';
|
7
|
-
import { Button } from 'amis';
|
8
|
-
import { defaultValue, getSchemaTpl, tipedLabel } from 'amis-editor-core';
|
9
|
-
import React__default from 'react';
|
10
|
-
import { normalizeApi } from 'amis-core';
|
11
|
-
import { getArgsWrapper, renderCmptSelect, FORMITEM_CMPTS, SUPPORT_DISABLED_CMPTS, SUPPORT_STATIC_FORMITEM_CMPTS, IS_DATA_CONTAINER, renderCmptActionSelect, SHOW_SELECT_PROP } from './helper.js';
|
12
|
-
import { i18n } from 'i18n-runtime';
|
13
|
-
|
14
|
-
var MSG_TYPES = {
|
15
|
-
info: i18n("02d9819ddaaaeb1b7b22b12608c7e5ca"),
|
16
|
-
warning: i18n("900c70fa5f7dbc014e6f762d5e0e885c"),
|
17
|
-
success: i18n("330363dfc524cff2488f2ebde0500896"),
|
18
|
-
error: i18n("7030ff64701a938becbc5aa67ddb86e8")
|
19
|
-
};
|
20
|
-
var ACTION_TYPE_TREE = function (manager) {
|
21
|
-
return [{
|
22
|
-
actionLabel: i18n("59ceff465ad16932d8972191ad815dfb"),
|
23
|
-
actionType: 'page',
|
24
|
-
children: [{
|
25
|
-
actionLabel: i18n("dec2eb7145e149f281cb7e75fbe8972a"),
|
26
|
-
actionType: 'url',
|
27
|
-
description: i18n("ae10a948eca808b3dd77506b24f3fd0e"),
|
28
|
-
innerArgs: ['url', 'params', 'blank'],
|
29
|
-
descDetail: function (info) {
|
30
|
-
var _a;
|
31
|
-
return React__default.createElement("div", null, "\u8DF3\u8F6C\u81F3", React__default.createElement("span", {
|
32
|
-
className: "variable-left"
|
33
|
-
}, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.url) || '-'));
|
34
|
-
},
|
35
|
-
schema: getArgsWrapper([{
|
36
|
-
type: 'wrapper',
|
37
|
-
className: 'p-none',
|
38
|
-
body: [
|
39
|
-
/**
|
40
|
-
{
|
41
|
-
label: '页面地址',
|
42
|
-
type: 'input-formula',
|
43
|
-
variables: '${variables}',
|
44
|
-
evalMode: false,
|
45
|
-
variableMode: 'tabs',
|
46
|
-
inputMode: 'input-group',
|
47
|
-
name: 'url',
|
48
|
-
placeholder: 'http://',
|
49
|
-
mode: 'horizontal',
|
50
|
-
size: 'lg',
|
51
|
-
required: true,
|
52
|
-
visibleOn: 'data.actionType === "url"'
|
53
|
-
},
|
54
|
-
*/
|
55
|
-
{
|
56
|
-
name: 'url',
|
57
|
-
label: i18n("8f1c078c6d42759e6ccb1a9bf35f1629"),
|
58
|
-
type: 'ae-textareaFormulaControl',
|
59
|
-
variables: '${variables}',
|
60
|
-
mode: 'horizontal',
|
61
|
-
// placeholder: 'http://', 长文本暂不支持
|
62
|
-
size: 'lg',
|
63
|
-
required: true,
|
64
|
-
visibleOn: 'data.actionType === "url"'
|
65
|
-
}, {
|
66
|
-
type: 'combo',
|
67
|
-
name: 'params',
|
68
|
-
label: i18n("0b72392143e4038e98128cb0f6f679b3"),
|
69
|
-
multiple: true,
|
70
|
-
mode: 'horizontal',
|
71
|
-
size: 'lg',
|
72
|
-
items: [{
|
73
|
-
name: 'key',
|
74
|
-
placeholder: i18n("c068b579db3bf0a553bd0af4f81cc14f"),
|
75
|
-
type: 'input-text'
|
76
|
-
},
|
77
|
-
/**
|
78
|
-
{
|
79
|
-
name: 'val',
|
80
|
-
placeholder: '参数值',
|
81
|
-
type: 'input-formula',
|
82
|
-
variables: '${variables}',
|
83
|
-
evalMode: false,
|
84
|
-
variableMode: 'tabs',
|
85
|
-
inputMode: 'input-group',
|
86
|
-
size: 'xs'
|
87
|
-
},
|
88
|
-
*/
|
89
|
-
{
|
90
|
-
type: 'ae-formulaControl',
|
91
|
-
variables: '${variables}',
|
92
|
-
name: 'val',
|
93
|
-
variableMode: 'tabs',
|
94
|
-
placeholder: i18n("bfed4943c5f487de1b63a82f7230cce2")
|
95
|
-
}]
|
96
|
-
}, {
|
97
|
-
type: 'switch',
|
98
|
-
name: 'blank',
|
99
|
-
label: i18n("56aa76ab3c987377e855ae2c6c612050"),
|
100
|
-
onText: i18n("0a60ac8f02ccd2cf723f927284877851"),
|
101
|
-
offText: i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
|
102
|
-
mode: 'horizontal',
|
103
|
-
pipeIn: defaultValue(true)
|
104
|
-
}]
|
105
|
-
}])
|
106
|
-
}, {
|
107
|
-
actionLabel: i18n("fd5fb471ecce1eea63a6a95b6707f815"),
|
108
|
-
actionType: 'link',
|
109
|
-
description: i18n("67e21dd387607ae3fb59846504fa2c4c"),
|
110
|
-
innerArgs: ['link', 'params', 'pageName', '__pageInputSchema'],
|
111
|
-
descDetail: function (info) {
|
112
|
-
var _a;
|
113
|
-
return React__default.createElement("div", null, "\u6253\u5F00", React__default.createElement("span", {
|
114
|
-
className: "variable-left variable-right"
|
115
|
-
}, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.pageName) || '-'), "\u9875\u9762");
|
116
|
-
},
|
117
|
-
schema: getArgsWrapper([{
|
118
|
-
type: 'wrapper',
|
119
|
-
className: 'p-none',
|
120
|
-
body: [getSchemaTpl('app-page'), getSchemaTpl('app-page-args')]
|
121
|
-
}])
|
122
|
-
}, {
|
123
|
-
actionLabel: i18n("39e107b7c4aa580f913ccbebc00f7534"),
|
124
|
-
actionType: 'refresh',
|
125
|
-
description: i18n("261242fe62b18b620419802c7dd7da7f")
|
126
|
-
}, {
|
127
|
-
actionLabel: i18n("ca180138a862543561d3a2c4f08b2e1b"),
|
128
|
-
actionType: 'goBack',
|
129
|
-
description: i18n("5f6b9e7a050ae3f34b38191435e14b24"),
|
130
|
-
descDetail: function (info) {
|
131
|
-
return React__default.createElement("div", null, "\u8FD4\u56DE\u4E0A\u4E00\u9875");
|
132
|
-
}
|
133
|
-
}]
|
134
|
-
}, {
|
135
|
-
actionLabel: i18n("f80d12dcd65429fd28841e768062d3c2"),
|
136
|
-
actionType: 'dialogs',
|
137
|
-
children: [{
|
138
|
-
actionLabel: i18n("0561589c26e732981f29709a9b574234"),
|
139
|
-
actionType: 'openDialog',
|
140
|
-
description: i18n("256dbc5161ae393ec8a0e83ae6cf9469"),
|
141
|
-
actions: [{
|
142
|
-
actionType: 'dialog'
|
143
|
-
}, {
|
144
|
-
actionType: 'drawer'
|
145
|
-
}],
|
146
|
-
schema: [{
|
147
|
-
type: 'radios',
|
148
|
-
label: i18n("226b0912184333c81babf2f1894ec0c1"),
|
149
|
-
name: 'groupType',
|
150
|
-
mode: 'horizontal',
|
151
|
-
value: 'dialog',
|
152
|
-
required: true,
|
153
|
-
pipeIn: defaultValue('dialog'),
|
154
|
-
inputClassName: 'event-action-radio',
|
155
|
-
options: [{
|
156
|
-
label: i18n("6cff4b6d794cc17f5d24dbe0d21e5732"),
|
157
|
-
value: 'dialog'
|
158
|
-
}, {
|
159
|
-
label: i18n("2a2924380dfcaea998bd8a49703545a9"),
|
160
|
-
value: 'drawer'
|
161
|
-
}],
|
162
|
-
visibleOn: 'data.actionType === "openDialog"'
|
163
|
-
}, {
|
164
|
-
name: 'dialog',
|
165
|
-
label: i18n("507c1d40c5d6b990cf8c832b0a91cadb"),
|
166
|
-
mode: 'horizontal',
|
167
|
-
required: true,
|
168
|
-
pipeIn: defaultValue({
|
169
|
-
title: i18n("8a089992349df754f182a5d02de8e8e0"),
|
170
|
-
body: i18n("b680997c50ca749acd4e6075cdca244e"),
|
171
|
-
showCloseButton: true,
|
172
|
-
showErrorMsg: true,
|
173
|
-
showLoading: true
|
174
|
-
}),
|
175
|
-
asFormItem: true,
|
176
|
-
visibleOn: 'data.groupType === "dialog"',
|
177
|
-
children: function (_a) {
|
178
|
-
var value = _a.value,
|
179
|
-
onChange = _a.onChange,
|
180
|
-
data = _a.data;
|
181
|
-
return React__default.createElement(Button, {
|
182
|
-
size: "sm",
|
183
|
-
className: "action-btn-width",
|
184
|
-
onClick: function () {
|
185
|
-
return manager.openSubEditor({
|
186
|
-
title: i18n("c3c8422fcecd8c1cc922cba15ab5cbc0"),
|
187
|
-
value: __assign({
|
188
|
-
type: 'dialog'
|
189
|
-
}, value),
|
190
|
-
data: data,
|
191
|
-
onChange: function (value) {
|
192
|
-
return onChange(value);
|
193
|
-
}
|
194
|
-
});
|
195
|
-
},
|
196
|
-
block: true
|
197
|
-
}, i18n('a532be3ad5f3fda70d228b8542e81835'));
|
198
|
-
}
|
199
|
-
}, {
|
200
|
-
name: 'drawer',
|
201
|
-
label: i18n("b67cbb1ca7439053f06d59aac5e410dc"),
|
202
|
-
mode: 'horizontal',
|
203
|
-
required: true,
|
204
|
-
pipeIn: defaultValue({
|
205
|
-
title: i18n("8a089992349df754f182a5d02de8e8e0"),
|
206
|
-
body: i18n("b680997c50ca749acd4e6075cdca244e")
|
207
|
-
}),
|
208
|
-
asFormItem: true,
|
209
|
-
visibleOn: 'data.groupType === "drawer"',
|
210
|
-
children: function (_a) {
|
211
|
-
var value = _a.value,
|
212
|
-
onChange = _a.onChange;
|
213
|
-
_a.data;
|
214
|
-
return React__default.createElement(Button, {
|
215
|
-
size: "sm",
|
216
|
-
className: "action-btn-width",
|
217
|
-
onClick: function () {
|
218
|
-
return manager.openSubEditor({
|
219
|
-
title: i18n("262c7c7b9874ae5607fb51da468d0e8c"),
|
220
|
-
value: __assign({
|
221
|
-
type: 'drawer'
|
222
|
-
}, value),
|
223
|
-
onChange: function (value) {
|
224
|
-
return onChange(value);
|
225
|
-
}
|
226
|
-
});
|
227
|
-
},
|
228
|
-
block: true
|
229
|
-
}, i18n('a532be3ad5f3fda70d228b8542e81835'));
|
230
|
-
}
|
231
|
-
}]
|
232
|
-
}, {
|
233
|
-
actionLabel: i18n("3b02248ca3790e356e47b6900c0e3931"),
|
234
|
-
actionType: 'closeDialog',
|
235
|
-
description: i18n("f33c2c6ff58bcec40d3e74e591bb3df2") // 或者关闭指定弹窗
|
236
|
-
// schema: getArgsWrapper({
|
237
|
-
// type: 'wrapper',
|
238
|
-
// className: 'p-none',
|
239
|
-
// body: [
|
240
|
-
// {
|
241
|
-
// type: 'radios',
|
242
|
-
// label: '类型',
|
243
|
-
// name: 'groupType',
|
244
|
-
// mode: 'horizontal',
|
245
|
-
// value: 'closeDialog',
|
246
|
-
// required: true,
|
247
|
-
// pipeIn: defaultValue('closeDialog'),
|
248
|
-
// options: [
|
249
|
-
// {
|
250
|
-
// label: '弹窗',
|
251
|
-
// value: 'closeDialog'
|
252
|
-
// },
|
253
|
-
// {
|
254
|
-
// label: '抽屉',
|
255
|
-
// value: 'closeDrawer'
|
256
|
-
// }
|
257
|
-
// ],
|
258
|
-
// visibleOn: 'data.actionType === "closeDialog"'
|
259
|
-
// }
|
260
|
-
// ]
|
261
|
-
// })
|
262
|
-
},
|
263
|
-
// 暂时下掉,看后面具体设计
|
264
|
-
// {
|
265
|
-
// actionLabel: '打开提示对话框',
|
266
|
-
// actionType: 'alert',
|
267
|
-
// description: '弹个提示对话框'
|
268
|
-
// },
|
269
|
-
// {
|
270
|
-
// actionLabel: '打开确认对话框',
|
271
|
-
// actionType: 'confirm',
|
272
|
-
// description: '弹个确认对话框'
|
273
|
-
// },
|
274
|
-
{
|
275
|
-
actionLabel: i18n("e495f416b83e4c7ff3c66ec3be96a76f"),
|
276
|
-
actionType: 'toast',
|
277
|
-
description: i18n("61d7aaa88181c527cfb936d4c686d267"),
|
278
|
-
innerArgs: ['title', 'msgType', 'msg', 'position', 'timeout', 'closeButton', 'showIcon'],
|
279
|
-
descDetail: function (info) {
|
280
|
-
var _a, _b;
|
281
|
-
return React__default.createElement("div", null, MSG_TYPES[(_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.msgType] || '', "\u6D88\u606F\uFF1A", React__default.createElement("span", {
|
282
|
-
className: "variable-left"
|
283
|
-
}, ((_b = info === null || info === void 0 ? void 0 : info.args) === null || _b === void 0 ? void 0 : _b.msg) || '-'));
|
284
|
-
},
|
285
|
-
schema: getArgsWrapper({
|
286
|
-
type: 'wrapper',
|
287
|
-
className: 'p-none',
|
288
|
-
body: [{
|
289
|
-
type: 'button-group-select',
|
290
|
-
name: 'msgType',
|
291
|
-
label: i18n("6d00710a2528332bfcac14b58e412042"),
|
292
|
-
value: 'info',
|
293
|
-
required: true,
|
294
|
-
mode: 'horizontal',
|
295
|
-
options: Object.keys(MSG_TYPES).map(function (key) {
|
296
|
-
return {
|
297
|
-
label: MSG_TYPES[key],
|
298
|
-
value: key,
|
299
|
-
level: 'default'
|
300
|
-
};
|
301
|
-
})
|
302
|
-
},
|
303
|
-
/*
|
304
|
-
{
|
305
|
-
name: 'msg',
|
306
|
-
label: '消息内容',
|
307
|
-
mode: 'horizontal',
|
308
|
-
type: 'input-formula',
|
309
|
-
variables: '${variables}',
|
310
|
-
evalMode: false,
|
311
|
-
variableMode: 'tabs',
|
312
|
-
inputMode: 'input-group',
|
313
|
-
size: 'lg',
|
314
|
-
required: true
|
315
|
-
},
|
316
|
-
*/
|
317
|
-
{
|
318
|
-
name: 'msg',
|
319
|
-
label: i18n("b87b77561e776367e6756e11ea652217"),
|
320
|
-
type: 'ae-textareaFormulaControl',
|
321
|
-
mode: 'horizontal',
|
322
|
-
variables: '${variables}',
|
323
|
-
size: 'lg',
|
324
|
-
required: true
|
325
|
-
},
|
326
|
-
/*
|
327
|
-
{
|
328
|
-
name: 'title',
|
329
|
-
type: 'input-formula',
|
330
|
-
variables: '${variables}',
|
331
|
-
evalMode: false,
|
332
|
-
variableMode: 'tabs',
|
333
|
-
inputMode: 'input-group',
|
334
|
-
label: '标题内容',
|
335
|
-
size: 'lg',
|
336
|
-
mode: 'horizontal'
|
337
|
-
},
|
338
|
-
*/
|
339
|
-
{
|
340
|
-
name: 'title',
|
341
|
-
label: i18n("43ab9af06e1e0f0b2a8767b46cf8b1cf"),
|
342
|
-
type: 'ae-textareaFormulaControl',
|
343
|
-
variables: '${variables}',
|
344
|
-
mode: 'horizontal',
|
345
|
-
size: 'lg'
|
346
|
-
},
|
347
|
-
/*
|
348
|
-
{
|
349
|
-
name: 'timeout',
|
350
|
-
type: 'input-formula',
|
351
|
-
variables: '${variables}',
|
352
|
-
evalMode: false,
|
353
|
-
variableMode: 'tabs',
|
354
|
-
inputMode: 'input-group',
|
355
|
-
label: '持续时间(ms)',
|
356
|
-
size: 'lg',
|
357
|
-
mode: 'horizontal'
|
358
|
-
},
|
359
|
-
*/
|
360
|
-
{
|
361
|
-
name: 'timeout',
|
362
|
-
label: i18n("f41a94bb85c5223181c4cdf83ea9021b"),
|
363
|
-
type: 'ae-formulaControl',
|
364
|
-
rendererSchema: {
|
365
|
-
type: 'input-number'
|
366
|
-
},
|
367
|
-
valueType: 'number',
|
368
|
-
variables: '${variables}',
|
369
|
-
size: 'lg',
|
370
|
-
mode: 'horizontal'
|
371
|
-
}, {
|
372
|
-
type: 'button-group-select',
|
373
|
-
name: 'position',
|
374
|
-
value: 'top-right',
|
375
|
-
mode: 'horizontal',
|
376
|
-
label: i18n("a0a837f2873de80bc9ec353c30e73171"),
|
377
|
-
options: [{
|
378
|
-
label: i18n("f3296f64a8a1330d7a07f1d269a1db92"),
|
379
|
-
value: 'top-left'
|
380
|
-
}, {
|
381
|
-
label: i18n("b97a5adf068bee6c852db9dcea3a9799"),
|
382
|
-
value: 'top-center'
|
383
|
-
}, {
|
384
|
-
label: i18n("eafeba264b6338939f11f1b1adf40d2b"),
|
385
|
-
value: 'top-right'
|
386
|
-
}, {
|
387
|
-
label: i18n("d429ffb093e9aa3bf80da125f1be318c"),
|
388
|
-
value: 'bottom-left'
|
389
|
-
}, {
|
390
|
-
label: i18n("c241aa8f427118a719b94cbd8f2bb22d"),
|
391
|
-
value: 'bottom-center'
|
392
|
-
}, {
|
393
|
-
label: i18n("9cd707caffdfb314d939298f2f2c267c"),
|
394
|
-
value: 'bottom-right'
|
395
|
-
}]
|
396
|
-
}, {
|
397
|
-
type: 'switch',
|
398
|
-
name: 'closeButton',
|
399
|
-
value: true,
|
400
|
-
label: i18n("8c8fbec263e20f087555c9abcb6dd07a"),
|
401
|
-
mode: 'horizontal'
|
402
|
-
}, {
|
403
|
-
type: 'switch',
|
404
|
-
name: 'showIcon',
|
405
|
-
value: true,
|
406
|
-
label: i18n("3f3a016027e540ef10a16dbd49fffde9"),
|
407
|
-
mode: 'horizontal'
|
408
|
-
}]
|
409
|
-
})
|
410
|
-
}]
|
411
|
-
}, {
|
412
|
-
actionLabel: i18n("47d68cd0f4c3e91a86d23afe8afccfb8"),
|
413
|
-
actionType: 'service',
|
414
|
-
children: [{
|
415
|
-
actionLabel: i18n("4f02d2efe05a20232ab9da63c090595c"),
|
416
|
-
actionType: 'ajax',
|
417
|
-
description: i18n("0cd902f953656adb29985b68e6fc9754"),
|
418
|
-
innerArgs: ['api', 'options'],
|
419
|
-
descDetail: function (info) {
|
420
|
-
var _a;
|
421
|
-
var apiInfo = (_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.api;
|
422
|
-
if (typeof apiInfo === 'string') {
|
423
|
-
apiInfo = normalizeApi(apiInfo);
|
424
|
-
}
|
425
|
-
return React__default.createElement("div", null, "\u53D1\u9001", React__default.createElement("span", {
|
426
|
-
className: "variable-right variable-left"
|
427
|
-
}, (apiInfo === null || apiInfo === void 0 ? void 0 : apiInfo.method) || '-'), "\u8BF7\u6C42\uFF1A", React__default.createElement("span", {
|
428
|
-
className: "variable-left"
|
429
|
-
}, (apiInfo === null || apiInfo === void 0 ? void 0 : apiInfo.url) || '-'));
|
430
|
-
},
|
431
|
-
schema: {
|
432
|
-
type: 'wrapper',
|
433
|
-
className: 'p-none',
|
434
|
-
body: [getArgsWrapper([getSchemaTpl('apiControl', {
|
435
|
-
name: 'api',
|
436
|
-
label: i18n("88bdaf32c27ab169d3d686b86b3fae99"),
|
437
|
-
mode: 'horizontal',
|
438
|
-
size: 'lg',
|
439
|
-
inputClassName: 'm-b-none',
|
440
|
-
renderLabel: true,
|
441
|
-
required: true
|
442
|
-
}), {
|
443
|
-
name: 'options',
|
444
|
-
type: 'combo',
|
445
|
-
label: tipedLabel(i18n("6e6d4269d0dc3324d551062350a2ae9f"), i18n("56e13c39822a814ab39b0d5a0867d7dc")),
|
446
|
-
mode: 'horizontal',
|
447
|
-
items: [{
|
448
|
-
type: 'switch',
|
449
|
-
name: 'silent',
|
450
|
-
label: false,
|
451
|
-
onText: i18n("cc42dd3170fdf36bdc2b0f58ab23eb84"),
|
452
|
-
offText: i18n("b15d91274e9fc68608c609999e0413fa"),
|
453
|
-
mode: 'horizontal',
|
454
|
-
pipeIn: defaultValue(false)
|
455
|
-
}]
|
456
|
-
}], false, {
|
457
|
-
className: 'action-apiControl'
|
458
|
-
}), {
|
459
|
-
name: 'outputVar',
|
460
|
-
type: 'input-text',
|
461
|
-
label: i18n("e3b49b5bbbdea05598525e91dbdfa638"),
|
462
|
-
placeholder: i18n("4dca05af026848011eedee1b53efa61c"),
|
463
|
-
description: i18n("4da82260041107e5780bcbb3a14ef791"),
|
464
|
-
mode: 'horizontal',
|
465
|
-
size: 'lg',
|
466
|
-
value: 'responseResult',
|
467
|
-
required: true
|
468
|
-
}]
|
469
|
-
},
|
470
|
-
outputVarDataSchema: [{
|
471
|
-
type: 'object',
|
472
|
-
properties: {
|
473
|
-
'event.data.${outputVar}.responseData': {
|
474
|
-
type: 'object',
|
475
|
-
title: i18n("0d83078816aa273f2941c9b55ec82bf3")
|
476
|
-
},
|
477
|
-
'event.data.${outputVar}.responseStatus': {
|
478
|
-
type: 'number',
|
479
|
-
title: i18n("3f9e257178738d5d180ddc2996809c10")
|
480
|
-
},
|
481
|
-
'event.data.${outputVar}.responseMsg': {
|
482
|
-
type: 'string',
|
483
|
-
title: i18n("99c74120cc62f4bf31d661e3212b7121")
|
484
|
-
}
|
485
|
-
}
|
486
|
-
}]
|
487
|
-
}, {
|
488
|
-
actionLabel: i18n("5dfd5a78e2ba1bc8afb482a8745454ea"),
|
489
|
-
actionType: 'download',
|
490
|
-
description: i18n("89049706952412d790b801def284629e"),
|
491
|
-
innerArgs: ['api'],
|
492
|
-
schema: {
|
493
|
-
type: 'wrapper',
|
494
|
-
style: {
|
495
|
-
padding: '0'
|
496
|
-
},
|
497
|
-
body: [getArgsWrapper(getSchemaTpl('apiControl', {
|
498
|
-
name: 'api',
|
499
|
-
label: i18n("88bdaf32c27ab169d3d686b86b3fae99"),
|
500
|
-
mode: 'horizontal',
|
501
|
-
inputClassName: 'm-b-none',
|
502
|
-
size: 'lg',
|
503
|
-
renderLabel: true,
|
504
|
-
required: true
|
505
|
-
}), false, {
|
506
|
-
className: 'action-apiControl'
|
507
|
-
})]
|
508
|
-
}
|
509
|
-
}]
|
510
|
-
}, {
|
511
|
-
actionLabel: i18n("bb79667f37035e9562ec6bcffd6cf8ef"),
|
512
|
-
actionType: 'cmpt',
|
513
|
-
children: [{
|
514
|
-
actionLabel: i18n("c852fb60f1b8ce921c3def1eba000bc5"),
|
515
|
-
actionType: 'visibility',
|
516
|
-
description: i18n("1bd4cfded5e11a7a8ea4dcfd2fa17e15"),
|
517
|
-
actions: [{
|
518
|
-
actionType: 'show',
|
519
|
-
descDetail: function (info) {
|
520
|
-
return React__default.createElement("div", null, "\u663E\u793A", React__default.createElement("span", {
|
521
|
-
className: "variable-left variable-right"
|
522
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
|
523
|
-
}
|
524
|
-
}, {
|
525
|
-
actionType: 'hidden',
|
526
|
-
descDetail: function (info) {
|
527
|
-
return React__default.createElement("div", null, "\u9690\u85CF", React__default.createElement("span", {
|
528
|
-
className: "variable-left variable-right"
|
529
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
|
530
|
-
}
|
531
|
-
}, {
|
532
|
-
actionType: 'visibility',
|
533
|
-
descDetail: function (info) {
|
534
|
-
return React__default.createElement("div", null, "\u7EC4\u4EF6", React__default.createElement("span", {
|
535
|
-
className: "variable-left variable-right"
|
536
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u8868\u8FBE\u5F0F\u5DF2\u914D\u7F6E");
|
537
|
-
}
|
538
|
-
}],
|
539
|
-
supportComponents: '*',
|
540
|
-
schema: __spreadArray(__spreadArray([], renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true), true), [{
|
541
|
-
type: 'radios',
|
542
|
-
label: i18n("69fbb2e5fc9eb3ba06096cbedbf5a622"),
|
543
|
-
name: 'groupType',
|
544
|
-
mode: 'horizontal',
|
545
|
-
value: 'static',
|
546
|
-
required: true,
|
547
|
-
inputClassName: 'event-action-radio',
|
548
|
-
options: [{
|
549
|
-
label: i18n("8baf21fa26d6d24b4faa872953275d8d"),
|
550
|
-
value: 'static'
|
551
|
-
}, {
|
552
|
-
label: i18n("a9400c408441f1f7f6d6954deb05ae9a"),
|
553
|
-
value: 'visibility'
|
554
|
-
}]
|
555
|
-
}, {
|
556
|
-
type: 'radios',
|
557
|
-
label: i18n("edf25860e3d457eb8ca9cb5dca06dfd7"),
|
558
|
-
name: '__statusType',
|
559
|
-
mode: 'horizontal',
|
560
|
-
value: 'show',
|
561
|
-
required: true,
|
562
|
-
pipeIn: defaultValue('show'),
|
563
|
-
inputClassName: 'event-action-radio',
|
564
|
-
visibleOn: "this.groupType === 'static'",
|
565
|
-
options: [{
|
566
|
-
label: i18n("4d775d4cd79e2ed6a2fc66fd1e7139c8"),
|
567
|
-
value: 'show'
|
568
|
-
}, {
|
569
|
-
label: i18n("dce5379cb978a8259ecfca8f08f00817"),
|
570
|
-
value: 'hidden'
|
571
|
-
}]
|
572
|
-
}, {
|
573
|
-
type: 'ae-expressionFormulaControl',
|
574
|
-
mode: 'horizontal',
|
575
|
-
label: i18n("a9400c408441f1f7f6d6954deb05ae9a"),
|
576
|
-
required: true,
|
577
|
-
size: 'lg',
|
578
|
-
variables: '${variables}',
|
579
|
-
evalMode: true,
|
580
|
-
name: '__actionExpression',
|
581
|
-
visibleOn: "this.groupType === 'visibility'"
|
582
|
-
}], false)
|
583
|
-
}, {
|
584
|
-
actionLabel: i18n("12c8d50c55eeec7059ddd5c303e34f77"),
|
585
|
-
actionType: 'usability',
|
586
|
-
description: i18n("5e75800641ec5c1198092bcf9d34f180"),
|
587
|
-
actions: [{
|
588
|
-
actionType: 'enabled',
|
589
|
-
descDetail: function (info) {
|
590
|
-
return React__default.createElement("div", null, "\u542F\u7528", React__default.createElement("span", {
|
591
|
-
className: "variable-left variable-right"
|
592
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
|
593
|
-
}
|
594
|
-
}, {
|
595
|
-
actionType: 'disabled',
|
596
|
-
descDetail: function (info) {
|
597
|
-
return React__default.createElement("div", null, "\u7981\u7528", React__default.createElement("span", {
|
598
|
-
className: "variable-left variable-right"
|
599
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
|
600
|
-
}
|
601
|
-
}, {
|
602
|
-
actionType: 'usability',
|
603
|
-
descDetail: function (info) {
|
604
|
-
return React__default.createElement("div", null, "\u7EC4\u4EF6", React__default.createElement("span", {
|
605
|
-
className: "variable-left variable-right"
|
606
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u8868\u8FBE\u5F0F\u5DF2\u914D\u7F6E");
|
607
|
-
}
|
608
|
-
}],
|
609
|
-
supportComponents: __spreadArray(__spreadArray(['form'], FORMITEM_CMPTS, true), SUPPORT_DISABLED_CMPTS, true),
|
610
|
-
schema: __spreadArray(__spreadArray([], renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true), true), [{
|
611
|
-
type: 'radios',
|
612
|
-
label: i18n("69fbb2e5fc9eb3ba06096cbedbf5a622"),
|
613
|
-
name: 'groupType',
|
614
|
-
mode: 'horizontal',
|
615
|
-
inputClassName: 'event-action-radio',
|
616
|
-
value: 'static',
|
617
|
-
required: true,
|
618
|
-
options: [{
|
619
|
-
label: i18n("8baf21fa26d6d24b4faa872953275d8d"),
|
620
|
-
value: 'static'
|
621
|
-
}, {
|
622
|
-
label: i18n("a9400c408441f1f7f6d6954deb05ae9a"),
|
623
|
-
value: 'usability'
|
624
|
-
}]
|
625
|
-
}, {
|
626
|
-
type: 'radios',
|
627
|
-
label: i18n("d86d5919f595226b7a1e8264635ca23d"),
|
628
|
-
name: '__statusType',
|
629
|
-
mode: 'horizontal',
|
630
|
-
inputClassName: 'event-action-radio',
|
631
|
-
value: 'enabled',
|
632
|
-
required: true,
|
633
|
-
pipeIn: defaultValue('enabled'),
|
634
|
-
visibleOn: "this.groupType === 'static'",
|
635
|
-
options: [{
|
636
|
-
label: i18n("7854b52a889b3ef0590d9f542efeb4c8"),
|
637
|
-
value: 'enabled'
|
638
|
-
}, {
|
639
|
-
label: i18n("710ad08b11419332713360d2750cd707"),
|
640
|
-
value: 'disabled'
|
641
|
-
}]
|
642
|
-
}, {
|
643
|
-
type: 'ae-expressionFormulaControl',
|
644
|
-
mode: 'horizontal',
|
645
|
-
label: i18n("a9400c408441f1f7f6d6954deb05ae9a"),
|
646
|
-
required: true,
|
647
|
-
size: 'lg',
|
648
|
-
evalMode: true,
|
649
|
-
name: '__actionExpression',
|
650
|
-
visibleOn: "this.groupType === 'usability'"
|
651
|
-
}], false)
|
652
|
-
}, {
|
653
|
-
actionLabel: i18n("e052287273ad39a1d3fa9fa3decb5fd9"),
|
654
|
-
actionType: 'staticStatus',
|
655
|
-
description: i18n("506f28f48dbebd5d19e19dfc721e13be"),
|
656
|
-
actions: [{
|
657
|
-
actionType: 'static',
|
658
|
-
descDetail: function (info) {
|
659
|
-
return React__default.createElement("div", null, React__default.createElement("span", {
|
660
|
-
className: "variable-right"
|
661
|
-
}, info === null || info === void 0 ? void 0 : info.rendererLabel), "\u7EC4\u4EF6\u5207\u6362\u4E3A\u9759\u6001");
|
662
|
-
}
|
663
|
-
}, {
|
664
|
-
actionType: 'nonstatic',
|
665
|
-
descDetail: function (info) {
|
666
|
-
return React__default.createElement("div", null, React__default.createElement("span", {
|
667
|
-
className: "variable-right"
|
668
|
-
}, info === null || info === void 0 ? void 0 : info.rendererLabel), "\u7EC4\u4EF6\u5207\u6362\u4E3A\u8F93\u5165\u6001");
|
669
|
-
}
|
670
|
-
}],
|
671
|
-
supportComponents: __spreadArray(['form'], SUPPORT_STATIC_FORMITEM_CMPTS, true),
|
672
|
-
schema: __spreadArray(__spreadArray([], renderCmptSelect(i18n("d80bc0fcbfb250480320b683e48b1467"), true), true), [{
|
673
|
-
type: 'radios',
|
674
|
-
label: i18n("d2e930293da37452638759e17d771adf"),
|
675
|
-
name: 'groupType',
|
676
|
-
mode: 'horizontal',
|
677
|
-
inputClassName: 'event-action-radio',
|
678
|
-
value: 'nonstatic',
|
679
|
-
required: true,
|
680
|
-
pipeIn: defaultValue('nonstatic'),
|
681
|
-
options: [{
|
682
|
-
label: i18n("b535bea11c97ec5588b1494799de4d60"),
|
683
|
-
value: 'nonstatic'
|
684
|
-
}, {
|
685
|
-
label: i18n("f7784642f42d33f506ba05f3daefc3c4"),
|
686
|
-
value: 'static'
|
687
|
-
}]
|
688
|
-
}], false)
|
689
|
-
}, {
|
690
|
-
actionLabel: i18n("c5a9b6e8c522de8a14ad7fab51c1a1e3"),
|
691
|
-
actionType: 'reload',
|
692
|
-
description: i18n("be4b778e7f5aa6aa5a811d7db4e1a8b3"),
|
693
|
-
descDetail: function (info) {
|
694
|
-
return React__default.createElement("div", null, "\u5237\u65B0", React__default.createElement("span", {
|
695
|
-
className: "variable-left variable-right"
|
696
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
|
697
|
-
},
|
698
|
-
supportComponents: 'byComponent',
|
699
|
-
schema: __spreadArray(__spreadArray([], renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true, function (value, oldVal, data, form) {
|
700
|
-
form.setValueByName('args.resetPage', true);
|
701
|
-
form.setValueByName('__addParam', true);
|
702
|
-
form.setValueByName('__customData', false);
|
703
|
-
form.setValueByName('__containerType', 'all');
|
704
|
-
form.setValueByName('__reloadParam', []);
|
705
|
-
}), true), [{
|
706
|
-
type: 'switch',
|
707
|
-
name: '__resetPage',
|
708
|
-
label: tipedLabel(i18n("697af73997072e0ce9ee65b15a7b3715"), i18n("d7bf42dd6e66f2818f9a232603c4a53b")),
|
709
|
-
onText: i18n("0a60ac8f02ccd2cf723f927284877851"),
|
710
|
-
offText: i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
|
711
|
-
mode: 'horizontal',
|
712
|
-
pipeIn: defaultValue(true),
|
713
|
-
visibleOn: "data.actionType === \"reload\" && data.__rendererName === \"crud\""
|
714
|
-
}, {
|
715
|
-
type: 'switch',
|
716
|
-
name: '__addParam',
|
717
|
-
label: tipedLabel(i18n("fee99f2bcced486e4753a8f58f511d3f"), i18n("0f9803bd27434940d4017007c105a861")),
|
718
|
-
onText: i18n("0a60ac8f02ccd2cf723f927284877851"),
|
719
|
-
offText: i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
|
720
|
-
mode: 'horizontal',
|
721
|
-
pipeIn: defaultValue(true),
|
722
|
-
visibleOn: "data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER)
|
723
|
-
}, {
|
724
|
-
type: 'switch',
|
725
|
-
name: '__customData',
|
726
|
-
label: tipedLabel(i18n("fd951a59a7c635d5330bc1aeec22c813"), i18n("b62ce3df3c0d5772006c525b60d5eeab")),
|
727
|
-
onText: i18n("0a60ac8f02ccd2cf723f927284877851"),
|
728
|
-
offText: i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
|
729
|
-
mode: 'horizontal',
|
730
|
-
pipeIn: defaultValue(true),
|
731
|
-
visibleOn: "data.__addParam && data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER),
|
732
|
-
onChange: function (value, oldVal, data, form) {
|
733
|
-
form.setValueByName('__containerType', 'all');
|
734
|
-
}
|
735
|
-
}, {
|
736
|
-
type: 'radios',
|
737
|
-
name: '__containerType',
|
738
|
-
mode: 'horizontal',
|
739
|
-
label: '',
|
740
|
-
pipeIn: defaultValue('all'),
|
741
|
-
visibleOn: "data.__addParam && data.__customData && data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER),
|
742
|
-
options: [{
|
743
|
-
label: i18n("77b1081c177fa3334cc93c99f0ecee75"),
|
744
|
-
value: 'all'
|
745
|
-
}, {
|
746
|
-
label: i18n("f5c5e3d69daee06ea1606378ef466765"),
|
747
|
-
value: 'appoint'
|
748
|
-
}],
|
749
|
-
onChange: function (value, oldVal, data, form) {
|
750
|
-
form.setValueByName('__reloadParams', []);
|
751
|
-
form.setValueByName('__valueInput', undefined);
|
752
|
-
}
|
753
|
-
},
|
754
|
-
/*
|
755
|
-
{
|
756
|
-
name: '__valueInput',
|
757
|
-
type: 'input-formula',
|
758
|
-
variables: '${variables}',
|
759
|
-
evalMode: false,
|
760
|
-
required: true,
|
761
|
-
variableMode: 'tabs',
|
762
|
-
inputMode: 'input-group',
|
763
|
-
label: '',
|
764
|
-
size: 'lg',
|
765
|
-
mode: 'horizontal',
|
766
|
-
visibleOn: `data.__addParam && data.__customData && data.__containerType === "all" && data.actionType === "reload" && ${IS_DATA_CONTAINER}`
|
767
|
-
},
|
768
|
-
*/
|
769
|
-
{
|
770
|
-
name: '__valueInput',
|
771
|
-
label: '',
|
772
|
-
type: 'ae-formulaControl',
|
773
|
-
variables: '${variables}',
|
774
|
-
size: 'lg',
|
775
|
-
mode: 'horizontal',
|
776
|
-
required: true,
|
777
|
-
visibleOn: "data.__addParam && data.__customData && data.__containerType === \"all\" && data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER)
|
778
|
-
}, {
|
779
|
-
type: 'combo',
|
780
|
-
name: '__reloadParams',
|
781
|
-
label: '',
|
782
|
-
multiple: true,
|
783
|
-
removable: true,
|
784
|
-
addable: true,
|
785
|
-
strictMode: false,
|
786
|
-
canAccessSuperData: true,
|
787
|
-
size: 'lg',
|
788
|
-
mode: 'horizontal',
|
789
|
-
items: [{
|
790
|
-
name: 'key',
|
791
|
-
type: 'input-text',
|
792
|
-
placeholder: i18n("c068b579db3bf0a553bd0af4f81cc14f"),
|
793
|
-
labelField: 'label',
|
794
|
-
valueField: 'value',
|
795
|
-
required: true
|
796
|
-
},
|
797
|
-
/*
|
798
|
-
{
|
799
|
-
name: 'val',
|
800
|
-
type: 'input-formula',
|
801
|
-
placeholder: '参数值',
|
802
|
-
variables: '${variables}',
|
803
|
-
evalMode: false,
|
804
|
-
variableMode: 'tabs',
|
805
|
-
inputMode: 'input-group'
|
806
|
-
}
|
807
|
-
*/
|
808
|
-
{
|
809
|
-
name: 'val',
|
810
|
-
type: 'ae-formulaControl',
|
811
|
-
variables: '${variables}',
|
812
|
-
placeholder: i18n("bfed4943c5f487de1b63a82f7230cce2")
|
813
|
-
}],
|
814
|
-
visibleOn: "data.__addParam && data.__customData && data.__containerType === \"appoint\" && data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER)
|
815
|
-
}, {
|
816
|
-
type: 'radios',
|
817
|
-
name: 'dataMergeMode',
|
818
|
-
mode: 'horizontal',
|
819
|
-
label: tipedLabel(i18n("2aecb19ca1655d66fc80fc27a783cc9e"), i18n("b67b01a3b9170f1daf78082cfd0df793")),
|
820
|
-
pipeIn: defaultValue('merge'),
|
821
|
-
visibleOn: "data.__addParam && data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER),
|
822
|
-
options: [{
|
823
|
-
label: i18n("bd81577a6fd4956e676cec499bb70d00"),
|
824
|
-
value: 'merge'
|
825
|
-
}, {
|
826
|
-
label: i18n("e09fea40f7e4abd4b2a495b315940688"),
|
827
|
-
value: 'override'
|
828
|
-
}]
|
829
|
-
}], false)
|
830
|
-
}, {
|
831
|
-
actionLabel: i18n("fa644cb20c66f7530d8a376d4fa6a36e"),
|
832
|
-
actionType: 'setValue',
|
833
|
-
description: i18n("7d9260bd45b2e85a09398f218c25f220"),
|
834
|
-
innerArgs: ['value', 'index', '__valueInput', '__comboType', '__containerType'],
|
835
|
-
descDetail: function (info) {
|
836
|
-
return React__default.createElement("div", null, "\u8BBE\u7F6E", React__default.createElement("span", {
|
837
|
-
className: "variable-left variable-right"
|
838
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
|
839
|
-
},
|
840
|
-
supportComponents: 'byComponent',
|
841
|
-
schema: __spreadArray(__spreadArray([], renderCmptActionSelect(i18n("6afde638796d237377b0755506d08ded"), true, function (value, oldVal, data, form) {
|
842
|
-
form.setValueByName('args.__containerType', 'all');
|
843
|
-
form.setValueByName('args.__comboType', 'all');
|
844
|
-
}), true), [getArgsWrapper({
|
845
|
-
type: 'wrapper',
|
846
|
-
className: 'p-none',
|
847
|
-
body: [{
|
848
|
-
type: 'radios',
|
849
|
-
name: '__containerType',
|
850
|
-
mode: 'horizontal',
|
851
|
-
label: i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
|
852
|
-
pipeIn: defaultValue('all'),
|
853
|
-
visibleOn: "".concat(IS_DATA_CONTAINER),
|
854
|
-
options: [{
|
855
|
-
label: i18n("77b1081c177fa3334cc93c99f0ecee75"),
|
856
|
-
value: 'all'
|
857
|
-
}, {
|
858
|
-
label: i18n("f5c5e3d69daee06ea1606378ef466765"),
|
859
|
-
value: 'appoint'
|
860
|
-
}],
|
861
|
-
onChange: function (value, oldVal, data, form) {
|
862
|
-
form.setValueByName('value', []);
|
863
|
-
form.setValueByName('__valueInput', undefined);
|
864
|
-
}
|
865
|
-
}, {
|
866
|
-
type: 'radios',
|
867
|
-
name: '__comboType',
|
868
|
-
inputClassName: 'event-action-radio',
|
869
|
-
mode: 'horizontal',
|
870
|
-
label: i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
|
871
|
-
pipeIn: defaultValue('all'),
|
872
|
-
visibleOn: "data.__rendererName === 'combo'",
|
873
|
-
options: [{
|
874
|
-
label: i18n("c60ad696dee4e1eeff6f0f2c2e9b9fc0"),
|
875
|
-
value: 'all'
|
876
|
-
}, {
|
877
|
-
label: i18n("139294edcce271bf483dda437c421c29"),
|
878
|
-
value: 'appoint'
|
879
|
-
}],
|
880
|
-
onChange: function (value, oldVal, data, form) {
|
881
|
-
form.setValueByName('index', undefined);
|
882
|
-
form.setValueByName('value', []);
|
883
|
-
form.setValueByName('__valueInput', undefined);
|
884
|
-
}
|
885
|
-
}, {
|
886
|
-
type: 'input-number',
|
887
|
-
required: true,
|
888
|
-
name: 'index',
|
889
|
-
mode: 'horizontal',
|
890
|
-
label: i18n("a7b0b80a7bea1e5e973967c179866ef0"),
|
891
|
-
size: 'lg',
|
892
|
-
placeholder: i18n("e887792fbbd65d21e43e832a5cd63aac"),
|
893
|
-
visibleOn: "data.__comboType === 'appoint' && data.__rendererName === 'combo'"
|
894
|
-
}, {
|
895
|
-
type: 'combo',
|
896
|
-
name: 'value',
|
897
|
-
label: '',
|
898
|
-
multiple: true,
|
899
|
-
removable: true,
|
900
|
-
required: true,
|
901
|
-
addable: true,
|
902
|
-
strictMode: false,
|
903
|
-
canAccessSuperData: true,
|
904
|
-
size: 'lg',
|
905
|
-
mode: 'horizontal',
|
906
|
-
items: [{
|
907
|
-
name: 'key',
|
908
|
-
type: 'input-text',
|
909
|
-
placeholder: i18n("a25657422b40023f2731619587940bc7"),
|
910
|
-
source: '${__setValueDs}',
|
911
|
-
labelField: 'label',
|
912
|
-
valueField: 'value',
|
913
|
-
required: true
|
914
|
-
},
|
915
|
-
/*
|
916
|
-
{
|
917
|
-
name: 'val',
|
918
|
-
type: 'input-formula',
|
919
|
-
placeholder: '字段值',
|
920
|
-
variables: '${variables}',
|
921
|
-
evalMode: false,
|
922
|
-
variableMode: 'tabs',
|
923
|
-
inputMode: 'input-group'
|
924
|
-
}
|
925
|
-
*/
|
926
|
-
{
|
927
|
-
name: 'val',
|
928
|
-
type: 'ae-formulaControl',
|
929
|
-
variables: '${variables}',
|
930
|
-
placeholder: i18n("a33903526e8fb3d1ac3066da70e7941e")
|
931
|
-
}],
|
932
|
-
visibleOn: "".concat(IS_DATA_CONTAINER, " && data.__containerType === 'appoint' || data.__comboType === 'appoint'")
|
933
|
-
}, {
|
934
|
-
type: 'combo',
|
935
|
-
name: 'value',
|
936
|
-
label: '',
|
937
|
-
multiple: true,
|
938
|
-
removable: true,
|
939
|
-
required: true,
|
940
|
-
addable: true,
|
941
|
-
strictMode: false,
|
942
|
-
canAccessSuperData: true,
|
943
|
-
mode: 'horizontal',
|
944
|
-
size: 'lg',
|
945
|
-
items: [{
|
946
|
-
type: 'combo',
|
947
|
-
name: 'item',
|
948
|
-
label: false,
|
949
|
-
renderLabel: false,
|
950
|
-
multiple: true,
|
951
|
-
removable: true,
|
952
|
-
required: true,
|
953
|
-
addable: true,
|
954
|
-
strictMode: false,
|
955
|
-
canAccessSuperData: true,
|
956
|
-
className: 'm-l',
|
957
|
-
size: 'lg',
|
958
|
-
mode: 'horizontal',
|
959
|
-
items: [{
|
960
|
-
name: 'key',
|
961
|
-
type: 'input-text',
|
962
|
-
source: '${__setValueDs}',
|
963
|
-
labelField: 'label',
|
964
|
-
valueField: 'value',
|
965
|
-
required: true,
|
966
|
-
visibleOn: "data.__rendererName"
|
967
|
-
},
|
968
|
-
/*
|
969
|
-
{
|
970
|
-
name: 'val',
|
971
|
-
type: 'input-formula',
|
972
|
-
variables: '${variables}',
|
973
|
-
evalMode: false,
|
974
|
-
variableMode: 'tabs',
|
975
|
-
inputMode: 'input-group'
|
976
|
-
}
|
977
|
-
*/
|
978
|
-
{
|
979
|
-
name: 'val',
|
980
|
-
type: 'ae-formulaControl',
|
981
|
-
variables: '${variables}'
|
982
|
-
}]
|
983
|
-
}],
|
984
|
-
visibleOn: "data.__rendererName === 'combo' && data.__comboType === 'all'"
|
985
|
-
},
|
986
|
-
/*
|
987
|
-
{
|
988
|
-
name: '__valueInput',
|
989
|
-
type: 'input-formula',
|
990
|
-
variables: '${variables}',
|
991
|
-
evalMode: false,
|
992
|
-
variableMode: 'tabs',
|
993
|
-
inputMode: 'input-group',
|
994
|
-
label: '',
|
995
|
-
size: 'lg',
|
996
|
-
mode: 'horizontal',
|
997
|
-
visibleOn: `(${IS_DATA_CONTAINER} || ${SHOW_SELECT_PROP}) && data.__containerType === 'all'`,
|
998
|
-
required: true
|
999
|
-
},
|
1000
|
-
*/
|
1001
|
-
{
|
1002
|
-
name: '__valueInput',
|
1003
|
-
label: '',
|
1004
|
-
type: 'ae-formulaControl',
|
1005
|
-
variables: '${variables}',
|
1006
|
-
size: 'lg',
|
1007
|
-
mode: 'horizontal',
|
1008
|
-
visibleOn: "(".concat(IS_DATA_CONTAINER, " || ").concat(SHOW_SELECT_PROP, ") && data.__containerType === 'all'"),
|
1009
|
-
required: true
|
1010
|
-
},,
|
1011
|
-
/*
|
1012
|
-
{
|
1013
|
-
name: '__valueInput',
|
1014
|
-
type: 'input-formula',
|
1015
|
-
variables: '${variables}',
|
1016
|
-
evalMode: false,
|
1017
|
-
variableMode: 'tabs',
|
1018
|
-
inputMode: 'input-group',
|
1019
|
-
label: '数据设置',
|
1020
|
-
size: 'lg',
|
1021
|
-
mode: 'horizontal',
|
1022
|
-
visibleOn: `data.__rendererName && !${IS_DATA_CONTAINER} && data.__rendererName !== 'combo'`,
|
1023
|
-
required: true
|
1024
|
-
}
|
1025
|
-
*/
|
1026
|
-
{
|
1027
|
-
name: '__valueInput',
|
1028
|
-
label: i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
|
1029
|
-
type: 'ae-formulaControl',
|
1030
|
-
variables: '${variables}',
|
1031
|
-
size: 'lg',
|
1032
|
-
mode: 'horizontal',
|
1033
|
-
visibleOn: "data.__rendererName && !".concat(IS_DATA_CONTAINER, " && data.__rendererName !== 'combo'"),
|
1034
|
-
required: true
|
1035
|
-
}]
|
1036
|
-
})], false)
|
1037
|
-
}, {
|
1038
|
-
actionLabel: i18n("4e34003861eee3de1e0c9c1222249bbb"),
|
1039
|
-
actionType: 'submit',
|
1040
|
-
description: i18n("a360c5d4e723ad78a5e52eb1f5f3f2a2"),
|
1041
|
-
descDetail: function (info) {
|
1042
|
-
return React__default.createElement("div", null, "\u63D0\u4EA4", React__default.createElement("span", {
|
1043
|
-
className: "variable-left variable-right"
|
1044
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
|
1045
|
-
},
|
1046
|
-
supportComponents: 'form',
|
1047
|
-
schema: renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true)
|
1048
|
-
}, {
|
1049
|
-
actionLabel: i18n("4a3deab45c0a7218b8ae58a33fd24c28"),
|
1050
|
-
actionType: 'clear',
|
1051
|
-
description: i18n("82986a4cab1d0efdbc23b3ac5f0fd509"),
|
1052
|
-
descDetail: function (info) {
|
1053
|
-
return React__default.createElement("div", null, "\u6E05\u7A7A", React__default.createElement("span", {
|
1054
|
-
className: "variable-left variable-right"
|
1055
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
|
1056
|
-
},
|
1057
|
-
supportComponents: 'form',
|
1058
|
-
schema: renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true)
|
1059
|
-
}, {
|
1060
|
-
actionLabel: i18n("1b6f5cc49e71c90a5b85a796285e3135"),
|
1061
|
-
actionType: 'reset',
|
1062
|
-
description: i18n("f457845da8c119a8688e333a3554284f"),
|
1063
|
-
descDetail: function (info) {
|
1064
|
-
return React__default.createElement("div", null, "\u91CD\u7F6E", React__default.createElement("span", {
|
1065
|
-
className: "variable-left variable-right"
|
1066
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
|
1067
|
-
},
|
1068
|
-
supportComponents: 'form',
|
1069
|
-
schema: renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true)
|
1070
|
-
}, {
|
1071
|
-
actionLabel: i18n("17f2bf425eeb7d20d79c595344e9dc94"),
|
1072
|
-
actionType: 'validate',
|
1073
|
-
description: i18n("a84a1311bea7370f1749341ffa6f75e1"),
|
1074
|
-
descDetail: function (info) {
|
1075
|
-
return React__default.createElement("div", null, "\u6821\u9A8C", React__default.createElement("span", {
|
1076
|
-
className: "variable-left variable-right"
|
1077
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
|
1078
|
-
},
|
1079
|
-
supportComponents: 'form',
|
1080
|
-
schema: renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true)
|
1081
|
-
}, {
|
1082
|
-
actionLabel: i18n("51325230409d4b7c64aaeb3db9904801"),
|
1083
|
-
actionType: 'component',
|
1084
|
-
description: i18n("98d130cb9a360df782f6510abacbc022"),
|
1085
|
-
supportComponents: '*',
|
1086
|
-
schema: renderCmptActionSelect(i18n("6afde638796d237377b0755506d08ded"))
|
1087
|
-
}]
|
1088
|
-
}, {
|
1089
|
-
actionLabel: i18n("0d98c74797e49d00bcc4c17c9d557a2b"),
|
1090
|
-
actionType: 'others',
|
1091
|
-
children: [{
|
1092
|
-
actionLabel: i18n("6a086902a84969a835423002718e86b4"),
|
1093
|
-
actionType: 'copy',
|
1094
|
-
description: i18n("557d01c07aa7c4450a414932e6c1ed2a"),
|
1095
|
-
innerArgs: ['content', 'copyFormat'],
|
1096
|
-
descDetail: function (info) {
|
1097
|
-
var _a;
|
1098
|
-
return React__default.createElement("div", null, "\u590D\u5236\u5185\u5BB9\uFF1A", React__default.createElement("span", {
|
1099
|
-
className: "variable-left"
|
1100
|
-
}, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.content) || '-'));
|
1101
|
-
},
|
1102
|
-
schema: getArgsWrapper({
|
1103
|
-
type: 'wrapper',
|
1104
|
-
className: 'p-none',
|
1105
|
-
body: [
|
1106
|
-
/*
|
1107
|
-
{
|
1108
|
-
name: 'content',
|
1109
|
-
type: 'input-formula',
|
1110
|
-
variables: '${variables}',
|
1111
|
-
evalMode: false,
|
1112
|
-
variableMode: 'tabs',
|
1113
|
-
inputMode: 'input-group',
|
1114
|
-
label: '内容模板',
|
1115
|
-
mode: 'horizontal',
|
1116
|
-
size: 'lg',
|
1117
|
-
visibleOn: 'data.actionType === "copy"',
|
1118
|
-
required: true
|
1119
|
-
},
|
1120
|
-
*/
|
1121
|
-
{
|
1122
|
-
name: 'content',
|
1123
|
-
label: i18n("ac04259507be8ba6b891dc9dc208f491"),
|
1124
|
-
type: 'ae-textareaFormulaControl',
|
1125
|
-
variables: '${variables}',
|
1126
|
-
mode: 'horizontal',
|
1127
|
-
size: 'lg',
|
1128
|
-
visibleOn: 'data.actionType === "copy"',
|
1129
|
-
required: true
|
1130
|
-
}, {
|
1131
|
-
type: 'select',
|
1132
|
-
name: 'copyFormat',
|
1133
|
-
mode: 'horizontal',
|
1134
|
-
value: 'text/plain',
|
1135
|
-
size: 'lg',
|
1136
|
-
options: [{
|
1137
|
-
label: i18n("ffb01e5bcf4c00447f5150d3cba81371"),
|
1138
|
-
value: 'text/plain'
|
1139
|
-
}, {
|
1140
|
-
label: i18n("e2591e971f4c28db7c80a5f546084a1d"),
|
1141
|
-
value: 'text/html'
|
1142
|
-
}],
|
1143
|
-
label: i18n("c28f4d63beabc4833b17aaa10ca550db")
|
1144
|
-
}]
|
1145
|
-
})
|
1146
|
-
}, {
|
1147
|
-
actionLabel: i18n("c7f16d729f3bca8f6936416884a74fb8"),
|
1148
|
-
actionType: 'custom',
|
1149
|
-
description: i18n("1b5a6299ef404c1f7b4292c290b80f55"),
|
1150
|
-
schema: {
|
1151
|
-
type: 'js-editor',
|
1152
|
-
allowFullscreen: true,
|
1153
|
-
required: true,
|
1154
|
-
name: 'script',
|
1155
|
-
label: i18n("c7f16d729f3bca8f6936416884a74fb8"),
|
1156
|
-
mode: 'horizontal',
|
1157
|
-
options: {
|
1158
|
-
automaticLayout: true,
|
1159
|
-
lineNumbers: 'off',
|
1160
|
-
glyphMargin: false,
|
1161
|
-
tabSize: 2,
|
1162
|
-
fontSize: '12px',
|
1163
|
-
wordWrap: 'on',
|
1164
|
-
lineDecorationsWidth: 0,
|
1165
|
-
lineNumbersMinChars: 0,
|
1166
|
-
selectOnLineNumbers: true,
|
1167
|
-
scrollBeyondLastLine: false,
|
1168
|
-
folding: true
|
1169
|
-
},
|
1170
|
-
className: 'ae-event-control-action-js-editor',
|
1171
|
-
value: "/* \u81EA\u5B9A\u4E49JS\u4F7F\u7528\u8BF4\u660E\uFF1A\n * 1.\u52A8\u4F5C\u6267\u884C\u51FD\u6570doAction\uFF0C\u53EF\u4EE5\u6267\u884C\u6240\u6709\u7C7B\u578B\u7684\u52A8\u4F5C\n * 2.\u901A\u8FC7\u4E0A\u4E0B\u6587\u5BF9\u8C61context\u53EF\u4EE5\u83B7\u53D6\u5F53\u524D\u7EC4\u4EF6\u5B9E\u4F8B\uFF0C\u4F8B\u5982context.props\u53EF\u4EE5\u83B7\u53D6\u8BE5\u7EC4\u4EF6\u76F8\u5173\u5C5E\u6027\n * 3.\u4E8B\u4EF6\u5BF9\u8C61event\uFF0C\u5728doAction\u4E4B\u540E\u6267\u884Cevent.stopPropagation = true;\u53EF\u4EE5\u963B\u6B62\u540E\u7EED\u52A8\u4F5C\u6267\u884C\n*/\nconst myMsg = '\u6211\u662F\u81EA\u5B9A\u4E49JS';\ndoAction({\n actionType: 'toast',\n args: {\n msg: myMsg\n }\n});\n"
|
1172
|
-
}
|
1173
|
-
}
|
1174
|
-
// {
|
1175
|
-
// actionLabel: '广播',
|
1176
|
-
// actionType: 'broadcast',
|
1177
|
-
// description: '发送广播事件',
|
1178
|
-
// schema: {
|
1179
|
-
// type: 'wrapper',
|
1180
|
-
// className: 'p-none',
|
1181
|
-
// body: [
|
1182
|
-
// {
|
1183
|
-
// type: 'input-text',
|
1184
|
-
// name: 'eventName',
|
1185
|
-
// label: '广播标识',
|
1186
|
-
// mode: 'horizontal',
|
1187
|
-
// required: true,
|
1188
|
-
// description: '广播事件标识派发出去后,其他组件可以进行监听并作出响应'
|
1189
|
-
// },
|
1190
|
-
// {
|
1191
|
-
// type: 'input-text',
|
1192
|
-
// label: '广播名称',
|
1193
|
-
// name: 'eventLabel',
|
1194
|
-
// mode: 'horizontal',
|
1195
|
-
// required: true
|
1196
|
-
// },
|
1197
|
-
// {
|
1198
|
-
// type: 'textarea',
|
1199
|
-
// label: '描述',
|
1200
|
-
// name: 'description',
|
1201
|
-
// mode: 'horizontal',
|
1202
|
-
// required: true
|
1203
|
-
// }
|
1204
|
-
// ]
|
1205
|
-
// }
|
1206
|
-
// }
|
1207
|
-
]
|
1208
|
-
}];
|
1209
|
-
};
|
1210
|
-
|
1211
|
-
export { ACTION_TYPE_TREE as default };
|