@epxing/designer 0.0.0-stage → 5.3.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API.md +160 -0
- package/README.md +45 -2
- package/dist/_virtual/_plugin-vue_export-helper.js +10 -0
- package/dist/_virtual/preload-helper.js +88 -0
- package/dist/assets/default-icon-2193FMjv.png +0 -0
- package/dist/assets/technology_bg-oWIS2awO.jpg +0 -0
- package/dist/assets/theme_black-Ctdygcr4.png +0 -0
- package/dist/assets/theme_technology-DJk-2e7g.png +0 -0
- package/dist/assets/theme_white-uMQ6JYml.png +0 -0
- package/dist/src/assets/images/dashboard/theme_black.png.js +4 -0
- package/dist/src/assets/images/dashboard/theme_technology.png.js +4 -0
- package/dist/src/assets/images/dashboard/theme_white.png.js +4 -0
- package/dist/src/assets/images/default-icon.png.js +4 -0
- package/dist/src/index.js +53 -0
- package/dist/src/page-designer/PageConfigPreview.js +102 -0
- package/dist/src/page-designer/PageDesigner.js +844 -0
- package/dist/src/page-designer/designer.js +1120 -0
- package/dist/src/page-designer/index.js +52 -0
- package/dist/src/page-designer/mixins/dragSourceMixin.js +95 -0
- package/dist/src/page-designer/page-variable-panel/JsonEditor.js +106 -0
- package/dist/src/page-designer/page-variable-panel/PageVariablePanel.js +939 -0
- package/dist/src/page-designer/page-variable-panel/index.js +7 -0
- package/dist/src/page-designer/page-variable-panel/jsonlint.js +230 -0
- package/dist/src/page-designer/previews/add-form/Preview.js +8 -0
- package/dist/src/page-designer/previews/add-form/Preview.vue.js +328 -0
- package/dist/src/page-designer/previews/add-form-item/Preview.js +194 -0
- package/dist/src/page-designer/previews/button/Preview.js +30 -0
- package/dist/src/page-designer/previews/card/Preview.js +87 -0
- package/dist/src/page-designer/previews/carousel/CarouselItemPreview.js +33 -0
- package/dist/src/page-designer/previews/carousel/Preview.js +61 -0
- package/dist/src/page-designer/previews/collapse/CollapseItemPreview.js +118 -0
- package/dist/src/page-designer/previews/collapse/Preview.js +35 -0
- package/dist/src/page-designer/previews/dropdown/Preview.js +68 -0
- package/dist/src/page-designer/previews/entity-list/Preview.js +522 -0
- package/dist/src/page-designer/previews/entity-sub-list/Preview.js +352 -0
- package/dist/src/page-designer/previews/entity-virtual-list/Preview.js +11 -0
- package/dist/src/page-designer/previews/form-field/preview/Checkbox.js +91 -0
- package/dist/src/page-designer/previews/form-field/preview/Date.js +77 -0
- package/dist/src/page-designer/previews/form-field/preview/Input.js +74 -0
- package/dist/src/page-designer/previews/form-field/preview/InputNumber.js +74 -0
- package/dist/src/page-designer/previews/form-field/preview/Object.js +77 -0
- package/dist/src/page-designer/previews/form-field/preview/Radio.js +146 -0
- package/dist/src/page-designer/previews/form-field/preview/Select.js +78 -0
- package/dist/src/page-designer/previews/form-field/preview/Textarea.js +78 -0
- package/dist/src/page-designer/previews/grid/Preview.js +139 -0
- package/dist/src/page-designer/previews/html/Preview.js +18 -0
- package/dist/src/page-designer/previews/icon/Preview.js +20 -0
- package/dist/src/page-designer/previews/image/Preview.js +36 -0
- package/dist/src/page-designer/previews/index.js +74 -0
- package/dist/src/page-designer/previews/layout/ColumnPreview.js +47 -0
- package/dist/src/page-designer/previews/layout/Preview.js +110 -0
- package/dist/src/page-designer/previews/num/Preview.js +132 -0
- package/dist/src/page-designer/previews/page-tabs/Preview.js +75 -0
- package/dist/src/page-designer/previews/step/Preview.js +207 -0
- package/dist/src/page-designer/previews/tabs/Preview.js +95 -0
- package/dist/src/page-designer/previews/tabs/tab-pane/Preview.js +33 -0
- package/dist/src/page-designer/previews/text/Preview.js +38 -0
- package/dist/src/page-designer/previews/text-editor/Preview.js +23 -0
- package/dist/src/page-designer/previews/video/Preview.js +10 -0
- package/dist/src/page-designer/setting-panel/Advance.js +281 -0
- package/dist/src/page-designer/setting-panel/CodeEditor.js +94 -0
- package/dist/src/page-designer/setting-panel/Property.js +165 -0
- package/dist/src/page-designer/setting-panel/Setting.js +296 -0
- package/dist/src/page-designer/setting-panel/Style.js +1591 -0
- package/dist/src/page-designer/setting-panel/css-editor/CssEditor.js +98 -0
- package/dist/src/page-designer/setting-panel/css-editor/css-hint.js +84 -0
- package/dist/src/page-designer/setting-panel/index.js +11 -0
- package/dist/src/page-designer/template-attribute-panel/TemplateAttributePanel.js +487 -0
- package/dist/src/page-designer/template-attribute-panel/index.js +5 -0
- package/dist/src/page-designer/template-library/Library.js +219 -0
- package/dist/src/page-designer/template-library/index.js +5 -0
- package/dist/src/page-designer/widget-library/Base.js +170 -0
- package/dist/src/page-designer/widget-library/Library.js +213 -0
- package/dist/src/page-designer/widget-library/index.js +7 -0
- package/dist/src/page-designer/widget-preview/Container.js +80 -0
- package/dist/src/page-designer/widget-preview/DragGhost.js +54 -0
- package/dist/src/page-designer/widget-preview/DropZoneOverlay.js +42 -0
- package/dist/src/page-designer/widget-preview/HoverOverlay.js +61 -0
- package/dist/src/page-designer/widget-preview/Mixin.js +260 -0
- package/dist/src/page-designer/widget-preview/Placeholder.js +28 -0
- package/dist/src/page-designer/widget-preview/Preview.js +277 -0
- package/dist/src/page-designer/widget-preview/PreviewItem.js +83 -0
- package/dist/src/page-designer/widget-preview/SelectedOverlay.js +332 -0
- package/dist/src/page-designer/widget-preview/Template.js +66 -0
- package/dist/src/page-designer/widget-preview/WidgetWrapper.js +170 -0
- package/dist/src/page-designer/widget-preview/directive.js +159 -0
- package/dist/src/page-designer/widget-preview/dropPosition.js +50 -0
- package/dist/src/page-designer/widget-preview/index.js +23 -0
- package/dist/src/page-designer/widget-preview/overlayPositionMixin.js +87 -0
- package/dist/src/page-designer/widget-preview/resolvePreviewName.js +32 -0
- package/dist/src/page-designer/widget-tree/Item.js +580 -0
- package/dist/src/page-designer/widget-tree/Tree.js +855 -0
- package/dist/src/page-designer/widget-tree/index.js +7 -0
- package/dist/src/visual/AddForm.js +172 -0
- package/dist/src/visual/AddFormItem.js +480 -0
- package/dist/src/visual/AppIndex.js +243 -0
- package/dist/src/visual/ApplyForm.js +135 -0
- package/dist/src/visual/AttributeList.js +344 -0
- package/dist/src/visual/BasePage.js +77 -0
- package/dist/src/visual/Button.js +5 -0
- package/dist/src/visual/Button.vue.js +89 -0
- package/dist/src/visual/CardNum.js +74 -0
- package/dist/src/visual/CategoryList.js +569 -0
- package/dist/src/visual/Chart.js +27 -0
- package/dist/src/visual/ChartNew.js +5 -0
- package/dist/src/visual/ChartNew.vue.js +54 -0
- package/dist/src/visual/CheckForm.js +110 -0
- package/dist/src/visual/ClientList.js +41 -0
- package/dist/src/visual/CodeManage.js +113 -0
- package/dist/src/visual/Component.js +6 -0
- package/dist/src/visual/Component.vue.js +1332 -0
- package/dist/src/visual/ComponentList.js +280 -0
- package/dist/src/visual/Config.js +8 -0
- package/dist/src/visual/Config.vue.js +862 -0
- package/dist/src/visual/ConfigItem.js +8 -0
- package/dist/src/visual/ConfigItem.vue.js +192 -0
- package/dist/src/visual/ConfigSelectItems.js +8 -0
- package/dist/src/visual/ConfigSelectItems.vue.js +260 -0
- package/dist/src/visual/CreatePage.js +389 -0
- package/dist/src/visual/DashboardDiv.js +58 -0
- package/dist/src/visual/DashboardTabs.js +9 -0
- package/dist/src/visual/DashboardTabs.vue.js +127 -0
- package/dist/src/visual/DashboardWidget.js +5 -0
- package/dist/src/visual/DashboardWidget.vue.js +62 -0
- package/dist/src/visual/DblogList.js +82 -0
- package/dist/src/visual/EntityAddPage.js +49 -0
- package/dist/src/visual/EntityApplyPage.js +54 -0
- package/dist/src/visual/EntityCardList.js +455 -0
- package/dist/src/visual/EntityCheckPage.js +66 -0
- package/dist/src/visual/EntityFindPage.js +45 -0
- package/dist/src/visual/EntityList.js +6 -0
- package/dist/src/visual/EntityList.vue.js +1221 -0
- package/dist/src/visual/EntityListPage.js +43 -0
- package/dist/src/visual/EntityNoSubmitSubList.js +267 -0
- package/dist/src/visual/EntityRightSubList.js +29 -0
- package/dist/src/visual/EntitySubAdd.js +10 -0
- package/dist/src/visual/EntitySubGridItem.js +66 -0
- package/dist/src/visual/EntitySubList.js +434 -0
- package/dist/src/visual/EntityTreeFindPage.js +32 -0
- package/dist/src/visual/EntityTreeManage.js +49 -0
- package/dist/src/visual/EntityTreePage.js +42 -0
- package/dist/src/visual/ExcelPreview.js +10 -0
- package/dist/src/visual/FormField.js +5 -0
- package/dist/src/visual/FormField.vue.js +121 -0
- package/dist/src/visual/HeaderNew.js +161 -0
- package/dist/src/visual/Html.js +8 -0
- package/dist/src/visual/Html.vue.js +109 -0
- package/dist/src/visual/Import.js +53 -0
- package/dist/src/visual/InterfaceSubList.js +21 -0
- package/dist/src/visual/ListFirst.js +704 -0
- package/dist/src/visual/MEntityAddPage.js +66 -0
- package/dist/src/visual/MEntityList.js +485 -0
- package/dist/src/visual/MEntityListPage.js +40 -0
- package/dist/src/visual/MEntitySubList.js +237 -0
- package/dist/src/visual/MetaList.js +23 -0
- package/dist/src/visual/ModuleIndexPage.js +67 -0
- package/dist/src/visual/ModuleList.js +47 -0
- package/dist/src/visual/NavAddForm.js +173 -0
- package/dist/src/visual/NavFormCatalogItem.js +44 -0
- package/dist/src/visual/NumItem.js +70 -0
- package/dist/src/visual/NumStatistic.js +6 -0
- package/dist/src/visual/NumStatistic.vue.js +81 -0
- package/dist/src/visual/OrgChart.js +107 -0
- package/dist/src/visual/PageCatalog.js +27 -0
- package/dist/src/visual/PageConfig.js +223 -0
- package/dist/src/visual/PageTabs.js +49 -0
- package/dist/src/visual/Progress.js +40 -0
- package/dist/src/visual/ProgressItem.js +44 -0
- package/dist/src/visual/SystemManager.js +77 -0
- package/dist/src/visual/Title.js +45 -0
- package/dist/src/visual/TodoList.js +14 -0
- package/dist/src/visual/UserFormItem.js +41 -0
- package/dist/src/visual/UserManage.js +35 -0
- package/dist/src/visual/chart/CircularPie.js +9 -0
- package/dist/src/visual/chart/Column.js +70 -0
- package/dist/src/visual/chart/HoriColumn.js +9 -0
- package/dist/src/visual/chart/Line.js +9 -0
- package/dist/src/visual/chart/Pie.js +9 -0
- package/dist/src/visual/config/Background.js +526 -0
- package/dist/src/visual/config/Chart.js +154 -0
- package/dist/src/visual/config/Checkbox.js +63 -0
- package/dist/src/visual/config/Color.js +41 -0
- package/dist/src/visual/config/DesignReport.js +24 -0
- package/dist/src/visual/config/Event.js +304 -0
- package/dist/src/visual/config/Field.js +520 -0
- package/dist/src/visual/config/Font.js +202 -0
- package/dist/src/visual/config/FormItem.js +23 -0
- package/dist/src/visual/config/Function.js +114 -0
- package/dist/src/visual/config/Html.js +111 -0
- package/dist/src/visual/config/Image.js +102 -0
- package/dist/src/visual/config/Input.js +177 -0
- package/dist/src/visual/config/Input.vue.js +479 -0
- package/dist/src/visual/config/LazyDialog.js +41 -0
- package/dist/src/visual/config/List.js +65 -0
- package/dist/src/visual/config/ListField.js +2080 -0
- package/dist/src/visual/config/MField.js +733 -0
- package/dist/src/visual/config/Number.js +37 -0
- package/dist/src/visual/config/Object.js +168 -0
- package/dist/src/visual/config/Operate.js +1109 -0
- package/dist/src/visual/config/OperateItem.js +1186 -0
- package/dist/src/visual/config/Options.js +8 -0
- package/dist/src/visual/config/Options.vue.js +278 -0
- package/dist/src/visual/config/OrderField.js +505 -0
- package/dist/src/visual/config/Page.js +76 -0
- package/dist/src/visual/config/Params.js +353 -0
- package/dist/src/visual/config/Radio.js +127 -0
- package/dist/src/visual/config/Row.js +104 -0
- package/dist/src/visual/config/Scope.js +350 -0
- package/dist/src/visual/config/Select.js +95 -0
- package/dist/src/visual/config/Switch.js +37 -0
- package/dist/src/visual/config/Textarea.js +175 -0
- package/dist/src/visual/config/Textarea.vue.js +507 -0
- package/dist/src/visual/config/Tree.js +138 -0
- package/dist/src/visual/config/remote-cache.js +30 -0
- package/dist/src/visual/config/show-condition.js +20 -0
- package/dist/src/visual/config/variable-sources.js +27 -0
- package/dist/src/visual/config/wait-ref.js +19 -0
- package/dist/src/visual/config-page/ComponentLibrary.js +170 -0
- package/dist/src/visual/config-page/ComponentLibraryDialog.js +250 -0
- package/dist/src/visual/config-page/ComponentList.js +9 -0
- package/dist/src/visual/config-page/ComponentList.vue.js +292 -0
- package/dist/src/visual/config-page/ComponentPreview.js +8 -0
- package/dist/src/visual/config-page/ComponentPreview.vue.js +151 -0
- package/dist/src/visual/config-page/ConfigOption.js +13 -0
- package/dist/src/visual/config-page/ConfigPanel.js +302 -0
- package/dist/src/visual/config-page/Dashboard.js +2160 -0
- package/dist/src/visual/config-page/DashboardDesign.js +606 -0
- package/dist/src/visual/config-page/DashboardGlobalConfig.js +6 -0
- package/dist/src/visual/config-page/DashboardGlobalConfig.vue.js +292 -0
- package/dist/src/visual/config-page/DashboardMobile.js +1115 -0
- package/dist/src/visual/config-page/DashboardSetting.js +86 -0
- package/dist/src/visual/config-page/PagePreview.js +8 -0
- package/dist/src/visual/config-page/PagePreview.vue.js +72 -0
- package/dist/src/visual/config-page/StyleConfig.js +979 -0
- package/dist/src/visual/config-page/VisualConfigPage.js +645 -0
- package/dist/src/visual/config-page/dashboard-theme-setting/Background.js +180 -0
- package/dist/src/visual/config-page/dashboard-theme-setting/Border.js +314 -0
- package/dist/src/visual/config-page/dashboard-theme-setting/Font.js +192 -0
- package/dist/src/visual/config-page/dashboard-theme-setting/Index.js +545 -0
- package/dist/src/visual/config-page/dashboard-theme-setting/Shadow.js +174 -0
- package/dist/src/visual/config-page/index.js +90 -0
- package/dist/src/visual/index.js +151 -0
- package/dist/src/visual/mixins/innerGridMixin.js +122 -0
- package/dist/src/visual/search/Filter.js +49 -0
- package/dist/src/visual/step/Index.js +8 -0
- package/dist/src/visual/step/Index.vue.js +485 -0
- package/dist/src/visual/step/Item.js +139 -0
- package/dist/src/visual/widgets/CardFormItemVisual.js +45 -0
- package/dist/src/visual/widgets/CarouselVisual.js +8 -0
- package/dist/src/visual/widgets/CarouselVisual.vue.js +303 -0
- package/dist/src/visual/widgets/CollapseVisual.js +8 -0
- package/dist/src/visual/widgets/CollapseVisual.vue.js +202 -0
- package/dist/src/visual/widgets/DropdownVisual.js +8 -0
- package/dist/src/visual/widgets/DropdownVisual.vue.js +955 -0
- package/dist/src/visual/widgets/LayoutConfig.js +8 -0
- package/dist/src/visual/widgets/LayoutConfig.vue.js +168 -0
- package/dist/src/visual/widgets/ListVisual.js +349 -0
- package/dist/src/visual/widgets/MEntityListFindVisual.js +76 -0
- package/dist/src/visual/widgets/ProcessFormItemVisual.js +5 -0
- package/dist/src/visual/widgets/ProcessFormItemVisual.vue.js +45 -0
- package/dist/src/visual/widgets/TabsConfig.js +8 -0
- package/dist/src/visual/widgets/TabsConfig.vue.js +343 -0
- package/dist/style.css +9907 -0
- package/package.json +104 -3
- package/src/index.js +27 -0
- package/src/page-designer/PageConfigPreview.vue +103 -0
- package/src/page-designer/PageDesigner.vue +1017 -0
- package/src/page-designer/designer.js +1299 -0
- package/src/page-designer/index.js +38 -0
- package/src/page-designer/mixins/dragSourceMixin.js +113 -0
- package/src/page-designer/page-variable-panel/JsonEditor.vue +109 -0
- package/src/page-designer/page-variable-panel/PageVariablePanel.vue +781 -0
- package/src/page-designer/page-variable-panel/index.js +6 -0
- package/src/page-designer/page-variable-panel/jsonlint.js +2 -0
- package/src/page-designer/previews/add-form/Preview.vue +331 -0
- package/src/page-designer/previews/add-form-item/Preview.vue +167 -0
- package/src/page-designer/previews/button/Preview.vue +27 -0
- package/src/page-designer/previews/card/Preview.vue +78 -0
- package/src/page-designer/previews/carousel/CarouselItemPreview.vue +32 -0
- package/src/page-designer/previews/carousel/Preview.vue +36 -0
- package/src/page-designer/previews/collapse/CollapseItemPreview.vue +136 -0
- package/src/page-designer/previews/collapse/Preview.vue +28 -0
- package/src/page-designer/previews/dropdown/Preview.vue +21 -0
- package/src/page-designer/previews/entity-list/Preview.vue +382 -0
- package/src/page-designer/previews/entity-sub-list/Preview.vue +283 -0
- package/src/page-designer/previews/entity-virtual-list/Preview.vue +14 -0
- package/src/page-designer/previews/form-field/preview/Checkbox.vue +57 -0
- package/src/page-designer/previews/form-field/preview/Date.vue +56 -0
- package/src/page-designer/previews/form-field/preview/Input.vue +53 -0
- package/src/page-designer/previews/form-field/preview/InputNumber.vue +53 -0
- package/src/page-designer/previews/form-field/preview/Object.vue +53 -0
- package/src/page-designer/previews/form-field/preview/Radio.vue +69 -0
- package/src/page-designer/previews/form-field/preview/Select.vue +55 -0
- package/src/page-designer/previews/form-field/preview/Textarea.vue +57 -0
- package/src/page-designer/previews/grid/Preview.vue +156 -0
- package/src/page-designer/previews/html/Preview.vue +11 -0
- package/src/page-designer/previews/icon/Preview.vue +12 -0
- package/src/page-designer/previews/image/Preview.vue +37 -0
- package/src/page-designer/previews/index.js +74 -0
- package/src/page-designer/previews/layout/ColumnPreview.vue +89 -0
- package/src/page-designer/previews/layout/Preview.vue +96 -0
- package/src/page-designer/previews/num/Preview.vue +100 -0
- package/src/page-designer/previews/page-tabs/Preview.vue +53 -0
- package/src/page-designer/previews/step/Preview.vue +190 -0
- package/src/page-designer/previews/tabs/Preview.vue +66 -0
- package/src/page-designer/previews/tabs/tab-pane/Preview.vue +32 -0
- package/src/page-designer/previews/text/Preview.vue +26 -0
- package/src/page-designer/previews/text-editor/Preview.vue +14 -0
- package/src/page-designer/previews/video/Preview.vue +9 -0
- package/src/page-designer/setting-panel/Advance.vue +175 -0
- package/src/page-designer/setting-panel/CodeEditor.vue +88 -0
- package/src/page-designer/setting-panel/Property.vue +163 -0
- package/src/page-designer/setting-panel/Setting.vue +271 -0
- package/src/page-designer/setting-panel/Style.vue +1096 -0
- package/src/page-designer/setting-panel/css-editor/CssEditor.vue +93 -0
- package/src/page-designer/setting-panel/css-editor/css-hint.js +58 -0
- package/src/page-designer/setting-panel/index.js +10 -0
- package/src/page-designer/template-attribute-panel/TemplateAttributePanel.vue +383 -0
- package/src/page-designer/template-attribute-panel/index.js +2 -0
- package/src/page-designer/template-library/Library.vue +153 -0
- package/src/page-designer/template-library/index.js +4 -0
- package/src/page-designer/widget-library/Base.vue +156 -0
- package/src/page-designer/widget-library/Library.vue +282 -0
- package/src/page-designer/widget-library/index.js +6 -0
- package/src/page-designer/widget-preview/Container.vue +89 -0
- package/src/page-designer/widget-preview/DragGhost.vue +83 -0
- package/src/page-designer/widget-preview/DropZoneOverlay.vue +51 -0
- package/src/page-designer/widget-preview/HoverOverlay.vue +85 -0
- package/src/page-designer/widget-preview/Mixin.js +285 -0
- package/src/page-designer/widget-preview/Placeholder.vue +22 -0
- package/src/page-designer/widget-preview/Preview.vue +322 -0
- package/src/page-designer/widget-preview/PreviewItem.vue +162 -0
- package/src/page-designer/widget-preview/SelectedOverlay.vue +340 -0
- package/src/page-designer/widget-preview/Template.vue +77 -0
- package/src/page-designer/widget-preview/WidgetWrapper.vue +197 -0
- package/src/page-designer/widget-preview/directive.js +258 -0
- package/src/page-designer/widget-preview/dropPosition.js +51 -0
- package/src/page-designer/widget-preview/index.js +23 -0
- package/src/page-designer/widget-preview/overlayPositionMixin.js +88 -0
- package/src/page-designer/widget-preview/resolvePreviewName.js +33 -0
- package/src/page-designer/widget-tree/Item.vue +719 -0
- package/src/page-designer/widget-tree/Tree.vue +995 -0
- package/src/page-designer/widget-tree/index.js +6 -0
- package/src/visual/AddForm.vue +172 -0
- package/src/visual/AddFormItem.vue +482 -0
- package/src/visual/AppIndex.vue +245 -0
- package/src/visual/ApplyForm.vue +140 -0
- package/src/visual/AttributeList.vue +344 -0
- package/src/visual/BasePage.vue +76 -0
- package/src/visual/Button.vue +80 -0
- package/src/visual/CardNum.vue +73 -0
- package/src/visual/CategoryList.vue +563 -0
- package/src/visual/Chart.vue +29 -0
- package/src/visual/ChartNew.vue +49 -0
- package/src/visual/CheckForm.vue +106 -0
- package/src/visual/ClientList.vue +42 -0
- package/src/visual/CodeManage.vue +116 -0
- package/src/visual/Component.vue +1342 -0
- package/src/visual/ComponentList.vue +280 -0
- package/src/visual/Config.vue +881 -0
- package/src/visual/ConfigItem.vue +218 -0
- package/src/visual/ConfigSelectItems.vue +445 -0
- package/src/visual/CreatePage.vue +389 -0
- package/src/visual/DashboardDiv.vue +197 -0
- package/src/visual/DashboardTabs.vue +118 -0
- package/src/visual/DashboardWidget.vue +55 -0
- package/src/visual/DblogList.vue +84 -0
- package/src/visual/EntityAddPage.vue +52 -0
- package/src/visual/EntityApplyPage.vue +57 -0
- package/src/visual/EntityCardList.vue +449 -0
- package/src/visual/EntityCheckPage.vue +69 -0
- package/src/visual/EntityFindPage.vue +55 -0
- package/src/visual/EntityList.vue +838 -0
- package/src/visual/EntityListPage.vue +97 -0
- package/src/visual/EntityNoSubmitSubList.vue +273 -0
- package/src/visual/EntityRightSubList.vue +32 -0
- package/src/visual/EntitySubAdd.vue +11 -0
- package/src/visual/EntitySubGridItem.vue +67 -0
- package/src/visual/EntitySubList.vue +440 -0
- package/src/visual/EntityTreeFindPage.vue +36 -0
- package/src/visual/EntityTreeManage.vue +50 -0
- package/src/visual/EntityTreePage.vue +45 -0
- package/src/visual/ExcelPreview.vue +11 -0
- package/src/visual/FormField.vue +113 -0
- package/src/visual/HeaderNew.vue +176 -0
- package/src/visual/Html.vue +104 -0
- package/src/visual/Import.vue +55 -0
- package/src/visual/InterfaceSubList.vue +23 -0
- package/src/visual/ListFirst.vue +614 -0
- package/src/visual/MEntityAddPage.vue +71 -0
- package/src/visual/MEntityList.vue +488 -0
- package/src/visual/MEntityListPage.vue +46 -0
- package/src/visual/MEntitySubList.vue +237 -0
- package/src/visual/MetaList.vue +24 -0
- package/src/visual/ModuleIndexPage.vue +70 -0
- package/src/visual/ModuleList.vue +46 -0
- package/src/visual/NavAddForm.vue +177 -0
- package/src/visual/NavFormCatalogItem.vue +47 -0
- package/src/visual/NumItem.vue +69 -0
- package/src/visual/NumStatistic.vue +242 -0
- package/src/visual/OrgChart.vue +113 -0
- package/src/visual/PageCatalog.vue +26 -0
- package/src/visual/PageConfig.vue +278 -0
- package/src/visual/PageTabs.vue +55 -0
- package/src/visual/Progress.vue +39 -0
- package/src/visual/ProgressItem.vue +43 -0
- package/src/visual/SystemManager.vue +80 -0
- package/src/visual/Title.vue +44 -0
- package/src/visual/TodoList.vue +18 -0
- package/src/visual/UserFormItem.vue +49 -0
- package/src/visual/UserManage.vue +36 -0
- package/src/visual/chart/CircularPie.vue +7 -0
- package/src/visual/chart/Column.vue +73 -0
- package/src/visual/chart/HoriColumn.vue +7 -0
- package/src/visual/chart/Line.vue +7 -0
- package/src/visual/chart/Pie.vue +7 -0
- package/src/visual/config/Background.vue +398 -0
- package/src/visual/config/Chart.vue +139 -0
- package/src/visual/config/Checkbox.vue +64 -0
- package/src/visual/config/Color.vue +40 -0
- package/src/visual/config/DesignReport.vue +20 -0
- package/src/visual/config/Event.vue +220 -0
- package/src/visual/config/Field.vue +597 -0
- package/src/visual/config/Font.vue +149 -0
- package/src/visual/config/FormItem.vue +25 -0
- package/src/visual/config/Function.vue +78 -0
- package/src/visual/config/Html.vue +98 -0
- package/src/visual/config/Image.vue +132 -0
- package/src/visual/config/Input.vue +712 -0
- package/src/visual/config/LazyDialog.vue +44 -0
- package/src/visual/config/List.vue +68 -0
- package/src/visual/config/ListField.vue +1714 -0
- package/src/visual/config/MField.vue +601 -0
- package/src/visual/config/Number.vue +41 -0
- package/src/visual/config/Object.vue +177 -0
- package/src/visual/config/Operate.vue +1083 -0
- package/src/visual/config/OperateItem.vue +917 -0
- package/src/visual/config/Options.vue +330 -0
- package/src/visual/config/OrderField.vue +587 -0
- package/src/visual/config/Page.vue +45 -0
- package/src/visual/config/Params.vue +228 -0
- package/src/visual/config/Radio.vue +93 -0
- package/src/visual/config/Row.vue +78 -0
- package/src/visual/config/Scope.vue +363 -0
- package/src/visual/config/Select.vue +93 -0
- package/src/visual/config/Switch.vue +36 -0
- package/src/visual/config/Textarea.vue +754 -0
- package/src/visual/config/Tree.vue +135 -0
- package/src/visual/config/remote-cache.js +35 -0
- package/src/visual/config/show-condition.js +21 -0
- package/src/visual/config/variable-sources.js +27 -0
- package/src/visual/config/wait-ref.js +17 -0
- package/src/visual/config-page/ComponentLibrary.vue +220 -0
- package/src/visual/config-page/ComponentLibraryDialog.vue +262 -0
- package/src/visual/config-page/ComponentList.vue +580 -0
- package/src/visual/config-page/ComponentPreview.vue +206 -0
- package/src/visual/config-page/ConfigOption.vue +16 -0
- package/src/visual/config-page/ConfigPanel.vue +301 -0
- package/src/visual/config-page/Dashboard.vue +2331 -0
- package/src/visual/config-page/DashboardDesign.vue +656 -0
- package/src/visual/config-page/DashboardGlobalConfig.vue +158 -0
- package/src/visual/config-page/DashboardMobile.vue +1118 -0
- package/src/visual/config-page/DashboardSetting.vue +47 -0
- package/src/visual/config-page/PagePreview.vue +105 -0
- package/src/visual/config-page/StyleConfig.vue +656 -0
- package/src/visual/config-page/VisualConfigPage.vue +746 -0
- package/src/visual/config-page/dashboard-theme-setting/Background.vue +98 -0
- package/src/visual/config-page/dashboard-theme-setting/Border.vue +185 -0
- package/src/visual/config-page/dashboard-theme-setting/Font.vue +101 -0
- package/src/visual/config-page/dashboard-theme-setting/Index.vue +471 -0
- package/src/visual/config-page/dashboard-theme-setting/Shadow.vue +102 -0
- package/src/visual/config-page/index.js +93 -0
- package/src/visual/index.js +23 -0
- package/src/visual/mixins/innerGridMixin.js +128 -0
- package/src/visual/search/Filter.vue +50 -0
- package/src/visual/step/Index.vue +361 -0
- package/src/visual/step/Item.vue +140 -0
- package/src/visual/widgets/CardFormItemVisual.vue +46 -0
- package/src/visual/widgets/CarouselVisual.vue +291 -0
- package/src/visual/widgets/CollapseVisual.vue +203 -0
- package/src/visual/widgets/DropdownVisual.vue +541 -0
- package/src/visual/widgets/LayoutConfig.vue +186 -0
- package/src/visual/widgets/ListVisual.vue +349 -0
- package/src/visual/widgets/MEntityListFindVisual.vue +77 -0
- package/src/visual/widgets/ProcessFormItemVisual.vue +58 -0
- package/src/visual/widgets/TabsConfig.vue +266 -0
- package/types/index.d.ts +22 -0
- package/types/page-designer.d.ts +3 -0
- package/types/visual-component.d.ts +1 -0
- package/types/visual-entity-list.d.ts +1 -0
- package/types/visual-entity-sub-list.d.ts +1 -0
|
@@ -0,0 +1,979 @@
|
|
|
1
|
+
import '../../../style.css';
|
|
2
|
+
import { resolveComponent, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createVNode, withCtx, createBlock, createTextVNode } from "vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const _sfc_main = {
|
|
6
|
+
name: "epx-component-style-config",
|
|
7
|
+
props: {
|
|
8
|
+
value: {
|
|
9
|
+
type: Object,
|
|
10
|
+
default() {
|
|
11
|
+
return {};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
data() {
|
|
16
|
+
return {
|
|
17
|
+
style: {},
|
|
18
|
+
unfold: {},
|
|
19
|
+
space: [
|
|
20
|
+
{ label: "超大", value: "24px" },
|
|
21
|
+
{ label: "大", value: "16px" },
|
|
22
|
+
{ label: "中", value: "12px" },
|
|
23
|
+
{ label: "小", value: "4px" },
|
|
24
|
+
{ label: "无", value: "0px" },
|
|
25
|
+
{ label: "默认", value: "default" },
|
|
26
|
+
{ label: "自定义", value: "custom" }
|
|
27
|
+
],
|
|
28
|
+
backgroundStyle: "color"
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
computed: {
|
|
32
|
+
clearSuffix() {
|
|
33
|
+
return (v = "") => Number((v || "").toString().replace(/px/, ""));
|
|
34
|
+
},
|
|
35
|
+
isSameMargin() {
|
|
36
|
+
const { marginTop, marginRight, marginBottom, marginLeft } = this.style;
|
|
37
|
+
return marginTop === marginRight && marginTop === marginBottom && marginTop === marginLeft;
|
|
38
|
+
},
|
|
39
|
+
isSamePadding() {
|
|
40
|
+
const { paddingTop, paddingRight, paddingBottom, paddingLeft } = this.style;
|
|
41
|
+
return paddingTop === paddingRight && paddingTop === paddingBottom && paddingTop === paddingLeft;
|
|
42
|
+
},
|
|
43
|
+
componentStyle() {
|
|
44
|
+
const {
|
|
45
|
+
margin,
|
|
46
|
+
marginTop,
|
|
47
|
+
marginRight,
|
|
48
|
+
marginBottom,
|
|
49
|
+
marginLeft,
|
|
50
|
+
padding,
|
|
51
|
+
paddingTop,
|
|
52
|
+
paddingRight,
|
|
53
|
+
paddingBottom,
|
|
54
|
+
paddingLeft,
|
|
55
|
+
hShadow = 0,
|
|
56
|
+
vShadow = 0,
|
|
57
|
+
shadowBlur = 0,
|
|
58
|
+
shadowSpread = 0,
|
|
59
|
+
shadowColor,
|
|
60
|
+
backgroundImage,
|
|
61
|
+
text,
|
|
62
|
+
...otherStyle
|
|
63
|
+
} = this.style;
|
|
64
|
+
const style = {
|
|
65
|
+
...otherStyle
|
|
66
|
+
};
|
|
67
|
+
if (hShadow || vShadow || shadowBlur) {
|
|
68
|
+
style.boxShadow = `${hShadow} ${vShadow} ${shadowBlur} ${shadowSpread} ${shadowColor}`;
|
|
69
|
+
}
|
|
70
|
+
if (margin) {
|
|
71
|
+
if (!this.isSameMargin) {
|
|
72
|
+
if (![marginTop, marginRight, marginBottom, marginLeft].includes("default") && ![marginTop, marginRight, marginBottom, marginLeft].includes(void 0)) {
|
|
73
|
+
style.margin = `${marginTop} ${marginRight} ${marginBottom} ${marginLeft}`;
|
|
74
|
+
} else {
|
|
75
|
+
if (marginTop && marginTop !== "default") style.marginTop = marginTop;
|
|
76
|
+
if (marginRight && marginRight !== "default") style.marginRight = marginRight;
|
|
77
|
+
if (marginBottom && marginBottom !== "default") style.marginBottom = marginBottom;
|
|
78
|
+
if (marginLeft && marginLeft !== "default") style.marginLeft = marginLeft;
|
|
79
|
+
}
|
|
80
|
+
} else {
|
|
81
|
+
style.margin = margin;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if (padding) {
|
|
85
|
+
if (!this.isSamePadding) {
|
|
86
|
+
if (![paddingTop, paddingRight, paddingBottom, paddingLeft].includes("default") && ![paddingTop, paddingRight, paddingBottom, paddingLeft].includes(void 0)) {
|
|
87
|
+
style.padding = `${paddingTop} ${paddingRight} ${paddingBottom} ${paddingLeft}`;
|
|
88
|
+
} else {
|
|
89
|
+
if (paddingTop && paddingTop !== "default") style.paddingTop = paddingTop;
|
|
90
|
+
if (paddingRight && paddingRight !== "default") style.paddingRight = paddingRight;
|
|
91
|
+
if (paddingBottom && paddingBottom !== "default") style.paddingBottom = paddingBottom;
|
|
92
|
+
if (paddingLeft && paddingLeft !== "default") style.paddingLeft = paddingLeft;
|
|
93
|
+
}
|
|
94
|
+
} else {
|
|
95
|
+
style.padding = padding;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
if (backgroundImage) {
|
|
99
|
+
if (this.backgroundStyle === "gradient") {
|
|
100
|
+
style.backgroundImage = backgroundImage;
|
|
101
|
+
} else {
|
|
102
|
+
style.backgroundImage = `url(${backgroundImage})`;
|
|
103
|
+
style.backgroundRepeat = "no-repeat";
|
|
104
|
+
style.backgroundPosition = "center";
|
|
105
|
+
if (!style.backgroundSize) style.backgroundSize = "cover";
|
|
106
|
+
}
|
|
107
|
+
} else {
|
|
108
|
+
delete style.backgroundRepet;
|
|
109
|
+
delete style.backgroundSize;
|
|
110
|
+
delete style.backgroundPosition;
|
|
111
|
+
}
|
|
112
|
+
return style;
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
watch: {
|
|
116
|
+
componentStyle(v = {}) {
|
|
117
|
+
this.$emit("change", v);
|
|
118
|
+
},
|
|
119
|
+
"style.margin"(v) {
|
|
120
|
+
if (v && v !== "custom") {
|
|
121
|
+
["Top", "Right", "Bottom", "Left"].forEach((item) => {
|
|
122
|
+
this.style["margin" + item] = v;
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"style.padding"(v) {
|
|
127
|
+
if (v && v !== "custom") {
|
|
128
|
+
["Top", "Right", "Bottom", "Left"].forEach((item) => {
|
|
129
|
+
this.style["padding" + item] = v;
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"style.text"(v) {
|
|
134
|
+
const option = this.textOption.find((item) => item.value === v);
|
|
135
|
+
if (option && option.style) {
|
|
136
|
+
for (const key in option.style) {
|
|
137
|
+
this.style[key] = option.style[key];
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
isSameMargin(v) {
|
|
142
|
+
if (v) {
|
|
143
|
+
this.style.margin = this.style.marginTop;
|
|
144
|
+
} else {
|
|
145
|
+
this.style.margin = "custom";
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
isSamePadding(v) {
|
|
149
|
+
if (v) {
|
|
150
|
+
this.style.padding = this.style.paddingTop;
|
|
151
|
+
} else {
|
|
152
|
+
this.style.padding = "custom";
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
methods: {
|
|
157
|
+
getOption() {
|
|
158
|
+
const textOption = [
|
|
159
|
+
{
|
|
160
|
+
label: this.$t("Translation of the title"),
|
|
161
|
+
value: "h1",
|
|
162
|
+
style: {
|
|
163
|
+
fontSize: "20px",
|
|
164
|
+
fontWeight: "700",
|
|
165
|
+
lineHeight: "32px"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
label: this.$t("SubTitle"),
|
|
170
|
+
value: "h2",
|
|
171
|
+
style: {
|
|
172
|
+
fontSize: "16px",
|
|
173
|
+
fontWeight: "700",
|
|
174
|
+
lineHeight: "24px"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
label: this.$t("main body"),
|
|
179
|
+
value: "default",
|
|
180
|
+
style: {
|
|
181
|
+
fontSize: "14px",
|
|
182
|
+
lineHeight: "20px"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
label: this.$t("auxiliary words"),
|
|
187
|
+
value: "second",
|
|
188
|
+
style: {
|
|
189
|
+
fontSize: "12px",
|
|
190
|
+
color: "#666",
|
|
191
|
+
lineHeight: "16px"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
label: this.$t("user-defined"),
|
|
196
|
+
value: "custom"
|
|
197
|
+
}
|
|
198
|
+
];
|
|
199
|
+
this.textOption = textOption;
|
|
200
|
+
this.predefineColors = ["#ff4500", "#ff8c00", "#ffd700", "#90ee90"];
|
|
201
|
+
this.fontWeightOption = [
|
|
202
|
+
{
|
|
203
|
+
label: this.$t("overstriking"),
|
|
204
|
+
value: "700"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
label: this.$t("thin"),
|
|
208
|
+
value: "400"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
label: this.$t("default"),
|
|
212
|
+
value: "500"
|
|
213
|
+
}
|
|
214
|
+
];
|
|
215
|
+
this.borderStyleOption = [
|
|
216
|
+
{
|
|
217
|
+
label: this.$t("full line"),
|
|
218
|
+
value: "solid"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
label: this.$t("dotted line"),
|
|
222
|
+
value: "dashed"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
label: this.$t("stipple line"),
|
|
226
|
+
value: "dotted"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
label: this.$t("not"),
|
|
230
|
+
value: "none"
|
|
231
|
+
}
|
|
232
|
+
];
|
|
233
|
+
},
|
|
234
|
+
changePx(key, v) {
|
|
235
|
+
this.style[key] = v + "px";
|
|
236
|
+
},
|
|
237
|
+
// value(组件真实 style)→ 编辑态 this.style:margin/padding/boxShadow 拆分,backgroundImage 剥 url()。
|
|
238
|
+
// 预置所有编辑键为 undefined:Vue3 的 reactive 对新增键也能触发更新,这里保留预置只是为了
|
|
239
|
+
// 与 develop 版本行为一致、且不依赖后续 v-model 首次写入的时机(值仍是 undefined,不影响
|
|
240
|
+
// componentStyle 的输出——undefined 值的键会被 style 绑定/JSON 序列化自然丢弃)
|
|
241
|
+
setDefaultStyle() {
|
|
242
|
+
const style = this.value || {};
|
|
243
|
+
const { margin, padding, boxShadow, backgroundImage, ...otherStyle } = style;
|
|
244
|
+
const componentStyle = {
|
|
245
|
+
margin: void 0,
|
|
246
|
+
marginTop: void 0,
|
|
247
|
+
marginRight: void 0,
|
|
248
|
+
marginBottom: void 0,
|
|
249
|
+
marginLeft: void 0,
|
|
250
|
+
padding: void 0,
|
|
251
|
+
paddingTop: void 0,
|
|
252
|
+
paddingRight: void 0,
|
|
253
|
+
paddingBottom: void 0,
|
|
254
|
+
paddingLeft: void 0,
|
|
255
|
+
text: void 0,
|
|
256
|
+
fontSize: void 0,
|
|
257
|
+
lineHeight: void 0,
|
|
258
|
+
textAlign: void 0,
|
|
259
|
+
fontWeight: void 0,
|
|
260
|
+
color: void 0,
|
|
261
|
+
backgroundColor: void 0,
|
|
262
|
+
backgroundImage: void 0,
|
|
263
|
+
backgroundSize: void 0,
|
|
264
|
+
borderStyle: void 0,
|
|
265
|
+
borderWidth: void 0,
|
|
266
|
+
borderColor: void 0,
|
|
267
|
+
borderRadius: void 0,
|
|
268
|
+
hShadow: void 0,
|
|
269
|
+
vShadow: void 0,
|
|
270
|
+
shadowBlur: void 0,
|
|
271
|
+
shadowSpread: void 0,
|
|
272
|
+
shadowColor: void 0
|
|
273
|
+
};
|
|
274
|
+
if (boxShadow) {
|
|
275
|
+
const shadowArr = boxShadow.split(" ");
|
|
276
|
+
componentStyle.hShadow = shadowArr[0] || 0;
|
|
277
|
+
componentStyle.vShadow = shadowArr[1] || 0;
|
|
278
|
+
componentStyle.shadowBlur = shadowArr[2] || 0;
|
|
279
|
+
componentStyle.shadowSpread = shadowArr[3] || 0;
|
|
280
|
+
componentStyle.shadowColor = shadowArr[4] || "";
|
|
281
|
+
}
|
|
282
|
+
if (margin) {
|
|
283
|
+
const arr = margin.split(" ");
|
|
284
|
+
if (arr.length === 2) {
|
|
285
|
+
componentStyle.margin = "custom";
|
|
286
|
+
componentStyle.marginTop = arr[0];
|
|
287
|
+
componentStyle.marginRight = arr[1];
|
|
288
|
+
componentStyle.marginBottom = arr[0];
|
|
289
|
+
componentStyle.marginLeft = arr[1];
|
|
290
|
+
} else if (arr.length === 3) {
|
|
291
|
+
componentStyle.margin = "custom";
|
|
292
|
+
componentStyle.marginTop = arr[0];
|
|
293
|
+
componentStyle.marginRight = arr[1];
|
|
294
|
+
componentStyle.marginBottom = arr[2];
|
|
295
|
+
componentStyle.marginLeft = arr[1];
|
|
296
|
+
} else if (arr.length === 4) {
|
|
297
|
+
componentStyle.margin = "custom";
|
|
298
|
+
componentStyle.marginTop = arr[0];
|
|
299
|
+
componentStyle.marginRight = arr[1];
|
|
300
|
+
componentStyle.marginBottom = arr[2];
|
|
301
|
+
componentStyle.marginLeft = arr[3];
|
|
302
|
+
} else {
|
|
303
|
+
componentStyle.margin = margin;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
if (padding) {
|
|
307
|
+
const arr = padding.split(" ");
|
|
308
|
+
if (arr.length === 2) {
|
|
309
|
+
componentStyle.padding = "custom";
|
|
310
|
+
componentStyle.paddingTop = arr[0];
|
|
311
|
+
componentStyle.paddingRight = arr[1];
|
|
312
|
+
componentStyle.paddingBottom = arr[0];
|
|
313
|
+
componentStyle.paddingLeft = arr[1];
|
|
314
|
+
} else if (arr.length === 3) {
|
|
315
|
+
componentStyle.padding = "custom";
|
|
316
|
+
componentStyle.paddingTop = arr[0];
|
|
317
|
+
componentStyle.paddingRight = arr[1];
|
|
318
|
+
componentStyle.paddingBottom = arr[2];
|
|
319
|
+
componentStyle.paddingLeft = arr[1];
|
|
320
|
+
} else if (arr.length === 4) {
|
|
321
|
+
componentStyle.padding = "custom";
|
|
322
|
+
componentStyle.paddingTop = arr[0];
|
|
323
|
+
componentStyle.paddingRight = arr[1];
|
|
324
|
+
componentStyle.paddingBottom = arr[2];
|
|
325
|
+
componentStyle.paddingLeft = arr[3];
|
|
326
|
+
} else {
|
|
327
|
+
componentStyle.padding = padding;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
if (backgroundImage) {
|
|
331
|
+
if (backgroundImage.includes("linear-gradient(")) {
|
|
332
|
+
this.backgroundStyle = "gradient";
|
|
333
|
+
componentStyle.backgroundImage = backgroundImage;
|
|
334
|
+
} else {
|
|
335
|
+
componentStyle.backgroundImage = backgroundImage.replace(/url\((.+)\)/, "$1");
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
this.style = { ...componentStyle, ...otherStyle };
|
|
339
|
+
},
|
|
340
|
+
changeBgImage(e) {
|
|
341
|
+
const file = e.target.files[0];
|
|
342
|
+
if (file) {
|
|
343
|
+
this.$http.save({
|
|
344
|
+
action: "upload",
|
|
345
|
+
file,
|
|
346
|
+
SOURCE: "page"
|
|
347
|
+
}, {
|
|
348
|
+
requestType: "formData"
|
|
349
|
+
}).then((data) => {
|
|
350
|
+
if (data && data.bean) {
|
|
351
|
+
this.style.backgroundImage = data.bean;
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
created() {
|
|
358
|
+
this.getOption();
|
|
359
|
+
this.setDefaultStyle();
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
const _hoisted_1 = { class: "style-config" };
|
|
363
|
+
const _hoisted_2 = { class: "style-config__header" };
|
|
364
|
+
const _hoisted_3 = ["onClick"];
|
|
365
|
+
const _hoisted_4 = {
|
|
366
|
+
class: "style-config__label",
|
|
367
|
+
for: ""
|
|
368
|
+
};
|
|
369
|
+
const _hoisted_5 = { class: "style-config__content" };
|
|
370
|
+
const _hoisted_6 = {
|
|
371
|
+
class: "style-config__label",
|
|
372
|
+
for: ""
|
|
373
|
+
};
|
|
374
|
+
const _hoisted_7 = { class: "style-config__header" };
|
|
375
|
+
const _hoisted_8 = {
|
|
376
|
+
class: "style-config__label",
|
|
377
|
+
for: ""
|
|
378
|
+
};
|
|
379
|
+
const _hoisted_9 = { class: "style-config__content" };
|
|
380
|
+
const _hoisted_10 = { class: "style-config__subitem" };
|
|
381
|
+
const _hoisted_11 = {
|
|
382
|
+
class: "style-config__label",
|
|
383
|
+
for: ""
|
|
384
|
+
};
|
|
385
|
+
const _hoisted_12 = { class: "style-config__subitem" };
|
|
386
|
+
const _hoisted_13 = {
|
|
387
|
+
class: "style-config__label",
|
|
388
|
+
for: ""
|
|
389
|
+
};
|
|
390
|
+
const _hoisted_14 = { class: "style-config__subitem" };
|
|
391
|
+
const _hoisted_15 = {
|
|
392
|
+
class: "style-config__label",
|
|
393
|
+
for: ""
|
|
394
|
+
};
|
|
395
|
+
const _hoisted_16 = { class: "style-config__subitem" };
|
|
396
|
+
const _hoisted_17 = {
|
|
397
|
+
class: "style-config__label",
|
|
398
|
+
for: ""
|
|
399
|
+
};
|
|
400
|
+
const _hoisted_18 = { class: "style-config__subitem" };
|
|
401
|
+
const _hoisted_19 = {
|
|
402
|
+
class: "style-config__label",
|
|
403
|
+
for: ""
|
|
404
|
+
};
|
|
405
|
+
const _hoisted_20 = { class: "style-config__header" };
|
|
406
|
+
const _hoisted_21 = {
|
|
407
|
+
class: "style-config__label",
|
|
408
|
+
for: ""
|
|
409
|
+
};
|
|
410
|
+
const _hoisted_22 = { class: "style-config__content" };
|
|
411
|
+
const _hoisted_23 = { class: "style-config__subitem" };
|
|
412
|
+
const _hoisted_24 = { class: "style-config__upload" };
|
|
413
|
+
const _hoisted_25 = {
|
|
414
|
+
key: 0,
|
|
415
|
+
class: "style-config__content"
|
|
416
|
+
};
|
|
417
|
+
const _hoisted_26 = { class: "style-config__subitem" };
|
|
418
|
+
const _hoisted_27 = {
|
|
419
|
+
class: "style-config__label",
|
|
420
|
+
for: ""
|
|
421
|
+
};
|
|
422
|
+
const _hoisted_28 = { class: "style-config__content" };
|
|
423
|
+
const _hoisted_29 = { class: "style-config__subitem" };
|
|
424
|
+
const _hoisted_30 = {
|
|
425
|
+
class: "style-config__label",
|
|
426
|
+
for: ""
|
|
427
|
+
};
|
|
428
|
+
const _hoisted_31 = { class: "style-config__content" };
|
|
429
|
+
const _hoisted_32 = { class: "style-config__subitem" };
|
|
430
|
+
const _hoisted_33 = { class: "style-config__upload" };
|
|
431
|
+
const _hoisted_34 = { class: "style-config__content" };
|
|
432
|
+
const _hoisted_35 = { class: "style-config__subitem" };
|
|
433
|
+
const _hoisted_36 = { class: "style-config__upload" };
|
|
434
|
+
const _hoisted_37 = { class: "style-config__header" };
|
|
435
|
+
const _hoisted_38 = {
|
|
436
|
+
class: "style-config__label",
|
|
437
|
+
for: ""
|
|
438
|
+
};
|
|
439
|
+
const _hoisted_39 = { class: "style-config__content" };
|
|
440
|
+
const _hoisted_40 = { class: "style-config__subitem" };
|
|
441
|
+
const _hoisted_41 = {
|
|
442
|
+
class: "style-config__label",
|
|
443
|
+
for: ""
|
|
444
|
+
};
|
|
445
|
+
const _hoisted_42 = { class: "style-config__subitem" };
|
|
446
|
+
const _hoisted_43 = {
|
|
447
|
+
class: "style-config__label",
|
|
448
|
+
for: ""
|
|
449
|
+
};
|
|
450
|
+
const _hoisted_44 = { class: "style-config__subitem" };
|
|
451
|
+
const _hoisted_45 = {
|
|
452
|
+
class: "style-config__label",
|
|
453
|
+
for: ""
|
|
454
|
+
};
|
|
455
|
+
const _hoisted_46 = { class: "style-config__subitem" };
|
|
456
|
+
const _hoisted_47 = {
|
|
457
|
+
class: "style-config__label",
|
|
458
|
+
for: ""
|
|
459
|
+
};
|
|
460
|
+
const _hoisted_48 = { class: "style-config__header" };
|
|
461
|
+
const _hoisted_49 = {
|
|
462
|
+
class: "style-config__label",
|
|
463
|
+
for: ""
|
|
464
|
+
};
|
|
465
|
+
const _hoisted_50 = { class: "style-config__content" };
|
|
466
|
+
const _hoisted_51 = { class: "style-config__subitem" };
|
|
467
|
+
const _hoisted_52 = {
|
|
468
|
+
class: "style-config__label",
|
|
469
|
+
for: ""
|
|
470
|
+
};
|
|
471
|
+
const _hoisted_53 = { class: "style-config__subitem" };
|
|
472
|
+
const _hoisted_54 = {
|
|
473
|
+
class: "style-config__label",
|
|
474
|
+
for: ""
|
|
475
|
+
};
|
|
476
|
+
const _hoisted_55 = { class: "style-config__subitem" };
|
|
477
|
+
const _hoisted_56 = {
|
|
478
|
+
class: "style-config__label",
|
|
479
|
+
for: ""
|
|
480
|
+
};
|
|
481
|
+
const _hoisted_57 = { class: "style-config__subitem" };
|
|
482
|
+
const _hoisted_58 = {
|
|
483
|
+
class: "style-config__label",
|
|
484
|
+
for: ""
|
|
485
|
+
};
|
|
486
|
+
const _hoisted_59 = { class: "style-config__subitem" };
|
|
487
|
+
const _hoisted_60 = {
|
|
488
|
+
class: "style-config__label",
|
|
489
|
+
for: ""
|
|
490
|
+
};
|
|
491
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
492
|
+
const _component_el_option = resolveComponent("el-option");
|
|
493
|
+
const _component_el_input_number = resolveComponent("el-input-number");
|
|
494
|
+
const _component_el_select = resolveComponent("el-select");
|
|
495
|
+
const _component_el_radio_button = resolveComponent("el-radio-button");
|
|
496
|
+
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
497
|
+
const _component_el_color_picker = resolveComponent("el-color-picker");
|
|
498
|
+
const _component_el_radio = resolveComponent("el-radio");
|
|
499
|
+
const _component_epx_color_picker = resolveComponent("epx-color-picker");
|
|
500
|
+
const _component_el_input = resolveComponent("el-input");
|
|
501
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
502
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList([{ label: _ctx.$t("margin"), value: "margin" }, { label: _ctx.$t("padding"), value: "padding" }], (item) => {
|
|
503
|
+
return openBlock(), createElementBlock("div", {
|
|
504
|
+
key: item.value,
|
|
505
|
+
class: normalizeClass({ "style-config__item": true, "style-config__item--unfold": $data.unfold[item.value] })
|
|
506
|
+
}, [
|
|
507
|
+
createElementVNode("div", _hoisted_2, [
|
|
508
|
+
createElementVNode("span", null, [
|
|
509
|
+
createElementVNode("i", {
|
|
510
|
+
class: "fold-icon el-icon-caret-right",
|
|
511
|
+
onClick: ($event) => $data.unfold[item.value] = !$data.unfold[item.value]
|
|
512
|
+
}, null, 8, _hoisted_3),
|
|
513
|
+
createElementVNode("label", _hoisted_4, toDisplayString(item.label), 1)
|
|
514
|
+
]),
|
|
515
|
+
createVNode(_component_el_select, {
|
|
516
|
+
class: "selection",
|
|
517
|
+
size: "small",
|
|
518
|
+
modelValue: $data.style[item.value],
|
|
519
|
+
"onUpdate:modelValue": ($event) => $data.style[item.value] = $event,
|
|
520
|
+
placeholder: _ctx.$t("default")
|
|
521
|
+
}, {
|
|
522
|
+
default: withCtx(() => [
|
|
523
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.space, (item2) => {
|
|
524
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
525
|
+
key: item2.value,
|
|
526
|
+
label: item2.label,
|
|
527
|
+
value: item2.value
|
|
528
|
+
}, null, 8, ["label", "value"]);
|
|
529
|
+
}), 128)),
|
|
530
|
+
createVNode(_component_el_input_number, {
|
|
531
|
+
class: "space-input",
|
|
532
|
+
size: "small",
|
|
533
|
+
"model-value": $options.clearSuffix($data.style[item.value]),
|
|
534
|
+
"controls-position": "right",
|
|
535
|
+
onChange: (v) => $options.changePx(item.value, v)
|
|
536
|
+
}, null, 8, ["model-value", "onChange"])
|
|
537
|
+
]),
|
|
538
|
+
_: 2
|
|
539
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
540
|
+
]),
|
|
541
|
+
createElementVNode("div", _hoisted_5, [
|
|
542
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList([{ label: _ctx.$t("top margin"), value: "Top" }, { label: _ctx.$t("right margin"), value: "Right" }, { label: _ctx.$t("bottom margin"), value: "Bottom" }, { label: _ctx.$t("left margin"), value: "Left" }], (subItem) => {
|
|
543
|
+
return openBlock(), createElementBlock("div", {
|
|
544
|
+
class: "style-config__subitem",
|
|
545
|
+
key: subItem.value
|
|
546
|
+
}, [
|
|
547
|
+
createElementVNode("label", _hoisted_6, toDisplayString(subItem.label), 1),
|
|
548
|
+
createVNode(_component_el_select, {
|
|
549
|
+
class: "selection",
|
|
550
|
+
size: "small",
|
|
551
|
+
modelValue: $data.style[item.value + subItem.value],
|
|
552
|
+
"onUpdate:modelValue": ($event) => $data.style[item.value + subItem.value] = $event,
|
|
553
|
+
placeholder: _ctx.$t("default")
|
|
554
|
+
}, {
|
|
555
|
+
default: withCtx(() => [
|
|
556
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.space, (item2) => {
|
|
557
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
558
|
+
key: item2.value,
|
|
559
|
+
label: item2.label,
|
|
560
|
+
value: item2.value
|
|
561
|
+
}, null, 8, ["label", "value"]);
|
|
562
|
+
}), 128)),
|
|
563
|
+
createVNode(_component_el_input_number, {
|
|
564
|
+
class: "space-input",
|
|
565
|
+
size: "small",
|
|
566
|
+
"model-value": $options.clearSuffix($data.style[item.value + subItem.value]),
|
|
567
|
+
"controls-position": "right",
|
|
568
|
+
onChange: (v) => $data.style[item.value + subItem.value] = v + "px"
|
|
569
|
+
}, null, 8, ["model-value", "onChange"])
|
|
570
|
+
]),
|
|
571
|
+
_: 2
|
|
572
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
573
|
+
]);
|
|
574
|
+
}), 128))
|
|
575
|
+
])
|
|
576
|
+
], 2);
|
|
577
|
+
}), 128)),
|
|
578
|
+
createElementVNode("div", {
|
|
579
|
+
class: normalizeClass({ "style-config__item": true, "style-config__item--unfold": $data.unfold.text })
|
|
580
|
+
}, [
|
|
581
|
+
createElementVNode("div", _hoisted_7, [
|
|
582
|
+
createElementVNode("span", null, [
|
|
583
|
+
createElementVNode("i", {
|
|
584
|
+
class: "fold-icon el-icon-caret-right",
|
|
585
|
+
onClick: _cache[0] || (_cache[0] = ($event) => $data.unfold["text"] = !$data.unfold.text)
|
|
586
|
+
}),
|
|
587
|
+
createElementVNode("label", _hoisted_8, toDisplayString(_ctx.$t("word")), 1)
|
|
588
|
+
]),
|
|
589
|
+
createVNode(_component_el_select, {
|
|
590
|
+
class: "selection",
|
|
591
|
+
size: "small",
|
|
592
|
+
modelValue: $data.style.text,
|
|
593
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.style.text = $event),
|
|
594
|
+
placeholder: _ctx.$t("default")
|
|
595
|
+
}, {
|
|
596
|
+
default: withCtx(() => [
|
|
597
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.textOption, (item) => {
|
|
598
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
599
|
+
key: item.value,
|
|
600
|
+
label: item.label,
|
|
601
|
+
value: item.value
|
|
602
|
+
}, null, 8, ["label", "value"]);
|
|
603
|
+
}), 128))
|
|
604
|
+
]),
|
|
605
|
+
_: 1
|
|
606
|
+
}, 8, ["modelValue", "placeholder"])
|
|
607
|
+
]),
|
|
608
|
+
createElementVNode("div", _hoisted_9, [
|
|
609
|
+
createElementVNode("div", _hoisted_10, [
|
|
610
|
+
createElementVNode("label", _hoisted_11, toDisplayString(_ctx.$t("word size")), 1),
|
|
611
|
+
createVNode(_component_el_input_number, {
|
|
612
|
+
size: "small",
|
|
613
|
+
"model-value": $options.clearSuffix($data.style.fontSize),
|
|
614
|
+
"controls-position": "right",
|
|
615
|
+
onChange: _cache[2] || (_cache[2] = (v) => $data.style["fontSize"] = v + "px")
|
|
616
|
+
}, null, 8, ["model-value"])
|
|
617
|
+
]),
|
|
618
|
+
createElementVNode("div", _hoisted_12, [
|
|
619
|
+
createElementVNode("label", _hoisted_13, toDisplayString(_ctx.$t("row height")), 1),
|
|
620
|
+
createVNode(_component_el_input_number, {
|
|
621
|
+
size: "small",
|
|
622
|
+
"model-value": $options.clearSuffix($data.style.lineHeight),
|
|
623
|
+
"controls-position": "right",
|
|
624
|
+
onChange: _cache[3] || (_cache[3] = (v) => $data.style["lineHeight"] = v + "px")
|
|
625
|
+
}, null, 8, ["model-value"])
|
|
626
|
+
]),
|
|
627
|
+
createElementVNode("div", _hoisted_14, [
|
|
628
|
+
createElementVNode("label", _hoisted_15, toDisplayString(_ctx.$t("text direction")), 1),
|
|
629
|
+
createVNode(_component_el_radio_group, {
|
|
630
|
+
modelValue: $data.style.textAlign,
|
|
631
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $data.style.textAlign = $event),
|
|
632
|
+
size: "default"
|
|
633
|
+
}, {
|
|
634
|
+
default: withCtx(() => [
|
|
635
|
+
createVNode(_component_el_radio_button, {
|
|
636
|
+
label: "left",
|
|
637
|
+
value: "left"
|
|
638
|
+
}, {
|
|
639
|
+
default: withCtx(() => [..._cache[27] || (_cache[27] = [
|
|
640
|
+
createElementVNode("i", { class: "epx-icon-left" }, null, -1)
|
|
641
|
+
])]),
|
|
642
|
+
_: 1
|
|
643
|
+
}),
|
|
644
|
+
createVNode(_component_el_radio_button, {
|
|
645
|
+
label: "center",
|
|
646
|
+
value: "center"
|
|
647
|
+
}, {
|
|
648
|
+
default: withCtx(() => [..._cache[28] || (_cache[28] = [
|
|
649
|
+
createElementVNode("i", { class: "epx-icon-center" }, null, -1)
|
|
650
|
+
])]),
|
|
651
|
+
_: 1
|
|
652
|
+
}),
|
|
653
|
+
createVNode(_component_el_radio_button, {
|
|
654
|
+
label: "right",
|
|
655
|
+
value: "right"
|
|
656
|
+
}, {
|
|
657
|
+
default: withCtx(() => [..._cache[29] || (_cache[29] = [
|
|
658
|
+
createElementVNode("i", { class: "epx-icon-right" }, null, -1)
|
|
659
|
+
])]),
|
|
660
|
+
_: 1
|
|
661
|
+
})
|
|
662
|
+
]),
|
|
663
|
+
_: 1
|
|
664
|
+
}, 8, ["modelValue"])
|
|
665
|
+
]),
|
|
666
|
+
createElementVNode("div", _hoisted_16, [
|
|
667
|
+
createElementVNode("label", _hoisted_17, toDisplayString(_ctx.$t("word again")), 1),
|
|
668
|
+
createVNode(_component_el_select, {
|
|
669
|
+
class: "selection",
|
|
670
|
+
size: "small",
|
|
671
|
+
modelValue: $data.style.fontWeight,
|
|
672
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $data.style.fontWeight = $event),
|
|
673
|
+
placeholder: _ctx.$t("default")
|
|
674
|
+
}, {
|
|
675
|
+
default: withCtx(() => [
|
|
676
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fontWeightOption, (item) => {
|
|
677
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
678
|
+
key: item.value,
|
|
679
|
+
label: item.label,
|
|
680
|
+
value: item.value
|
|
681
|
+
}, null, 8, ["label", "value"]);
|
|
682
|
+
}), 128))
|
|
683
|
+
]),
|
|
684
|
+
_: 1
|
|
685
|
+
}, 8, ["modelValue", "placeholder"])
|
|
686
|
+
]),
|
|
687
|
+
createElementVNode("div", _hoisted_18, [
|
|
688
|
+
createElementVNode("label", _hoisted_19, toDisplayString(_ctx.$t("font color")), 1),
|
|
689
|
+
createVNode(_component_el_color_picker, {
|
|
690
|
+
modelValue: $data.style.color,
|
|
691
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $data.style.color = $event),
|
|
692
|
+
"show-alpha": "",
|
|
693
|
+
predefine: _ctx.predefineColors
|
|
694
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
695
|
+
])
|
|
696
|
+
])
|
|
697
|
+
], 2),
|
|
698
|
+
createElementVNode("div", {
|
|
699
|
+
class: normalizeClass({ "style-config__item": true, "style-config__item--unfold": $data.unfold.background })
|
|
700
|
+
}, [
|
|
701
|
+
createElementVNode("div", _hoisted_20, [
|
|
702
|
+
createElementVNode("span", null, [
|
|
703
|
+
createElementVNode("i", {
|
|
704
|
+
class: "fold-icon el-icon-caret-right",
|
|
705
|
+
onClick: _cache[7] || (_cache[7] = ($event) => $data.unfold["background"] = !$data.unfold.background)
|
|
706
|
+
}),
|
|
707
|
+
createElementVNode("label", _hoisted_21, toDisplayString(_ctx.$t("background")), 1)
|
|
708
|
+
])
|
|
709
|
+
]),
|
|
710
|
+
createElementVNode("div", _hoisted_22, [
|
|
711
|
+
createElementVNode("div", _hoisted_23, [
|
|
712
|
+
_cache[32] || (_cache[32] = createElementVNode("label", {
|
|
713
|
+
class: "style-config__label",
|
|
714
|
+
for: ""
|
|
715
|
+
}, "背景色样式", -1)),
|
|
716
|
+
createElementVNode("div", _hoisted_24, [
|
|
717
|
+
createVNode(_component_el_radio_group, {
|
|
718
|
+
modelValue: $data.backgroundStyle,
|
|
719
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.backgroundStyle = $event),
|
|
720
|
+
size: "default",
|
|
721
|
+
onChange: _cache[9] || (_cache[9] = ($event) => {
|
|
722
|
+
$data.style["backgroundImage"] = "";
|
|
723
|
+
$data.style["backgroundColor"] = "";
|
|
724
|
+
})
|
|
725
|
+
}, {
|
|
726
|
+
default: withCtx(() => [
|
|
727
|
+
createVNode(_component_el_radio, {
|
|
728
|
+
label: "color",
|
|
729
|
+
value: "color"
|
|
730
|
+
}, {
|
|
731
|
+
default: withCtx(() => [..._cache[30] || (_cache[30] = [
|
|
732
|
+
createTextVNode("纯色", -1)
|
|
733
|
+
])]),
|
|
734
|
+
_: 1
|
|
735
|
+
}),
|
|
736
|
+
createVNode(_component_el_radio, {
|
|
737
|
+
label: "gradient",
|
|
738
|
+
value: "gradient"
|
|
739
|
+
}, {
|
|
740
|
+
default: withCtx(() => [..._cache[31] || (_cache[31] = [
|
|
741
|
+
createTextVNode("渐变色色", -1)
|
|
742
|
+
])]),
|
|
743
|
+
_: 1
|
|
744
|
+
})
|
|
745
|
+
]),
|
|
746
|
+
_: 1
|
|
747
|
+
}, 8, ["modelValue"])
|
|
748
|
+
])
|
|
749
|
+
])
|
|
750
|
+
]),
|
|
751
|
+
$data.backgroundStyle === "gradient" ? (openBlock(), createElementBlock("div", _hoisted_25, [
|
|
752
|
+
createElementVNode("div", _hoisted_26, [
|
|
753
|
+
createElementVNode("label", _hoisted_27, toDisplayString(_ctx.$t("background color")), 1),
|
|
754
|
+
createVNode(_component_epx_color_picker, {
|
|
755
|
+
modelValue: $data.style.backgroundImage,
|
|
756
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $data.style.backgroundImage = $event)
|
|
757
|
+
}, null, 8, ["modelValue"])
|
|
758
|
+
])
|
|
759
|
+
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
760
|
+
createElementVNode("div", _hoisted_28, [
|
|
761
|
+
createElementVNode("div", _hoisted_29, [
|
|
762
|
+
createElementVNode("label", _hoisted_30, toDisplayString(_ctx.$t("background color")), 1),
|
|
763
|
+
createVNode(_component_el_color_picker, {
|
|
764
|
+
modelValue: $data.style.backgroundColor,
|
|
765
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => $data.style.backgroundColor = $event),
|
|
766
|
+
"show-alpha": "",
|
|
767
|
+
predefine: _ctx.predefineColors
|
|
768
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
769
|
+
])
|
|
770
|
+
]),
|
|
771
|
+
createElementVNode("div", _hoisted_31, [
|
|
772
|
+
createElementVNode("div", _hoisted_32, [
|
|
773
|
+
_cache[33] || (_cache[33] = createElementVNode("label", {
|
|
774
|
+
class: "style-config__label",
|
|
775
|
+
for: ""
|
|
776
|
+
}, "背景图片", -1)),
|
|
777
|
+
createElementVNode("div", _hoisted_33, [
|
|
778
|
+
createVNode(_component_el_input, {
|
|
779
|
+
class: "input upload-input",
|
|
780
|
+
"model-value": $data.style.backgroundImage,
|
|
781
|
+
type: "text",
|
|
782
|
+
size: "default",
|
|
783
|
+
clearable: "",
|
|
784
|
+
onClear: _cache[13] || (_cache[13] = ($event) => $data.style["backgroundImage"] = "")
|
|
785
|
+
}, {
|
|
786
|
+
suffix: withCtx(() => [
|
|
787
|
+
createElementVNode("i", {
|
|
788
|
+
class: "el-icon-upload",
|
|
789
|
+
onClick: _cache[12] || (_cache[12] = ($event) => _ctx.$refs.fileInput.click())
|
|
790
|
+
})
|
|
791
|
+
]),
|
|
792
|
+
_: 1
|
|
793
|
+
}, 8, ["model-value"]),
|
|
794
|
+
createElementVNode("input", {
|
|
795
|
+
style: { width: 0, height: 0 },
|
|
796
|
+
ref: "fileInput",
|
|
797
|
+
type: "file",
|
|
798
|
+
onChange: _cache[14] || (_cache[14] = (...args) => $options.changeBgImage && $options.changeBgImage(...args))
|
|
799
|
+
}, null, 544)
|
|
800
|
+
])
|
|
801
|
+
])
|
|
802
|
+
]),
|
|
803
|
+
createElementVNode("div", _hoisted_34, [
|
|
804
|
+
createElementVNode("div", _hoisted_35, [
|
|
805
|
+
_cache[37] || (_cache[37] = createElementVNode("label", {
|
|
806
|
+
class: "style-config__label",
|
|
807
|
+
for: ""
|
|
808
|
+
}, "背景适应模式", -1)),
|
|
809
|
+
createElementVNode("div", _hoisted_36, [
|
|
810
|
+
createVNode(_component_el_radio_group, {
|
|
811
|
+
modelValue: $data.style.backgroundSize,
|
|
812
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => $data.style.backgroundSize = $event),
|
|
813
|
+
size: "default"
|
|
814
|
+
}, {
|
|
815
|
+
default: withCtx(() => [
|
|
816
|
+
createVNode(_component_el_radio, {
|
|
817
|
+
label: "cover",
|
|
818
|
+
value: "cover"
|
|
819
|
+
}, {
|
|
820
|
+
default: withCtx(() => [..._cache[34] || (_cache[34] = [
|
|
821
|
+
createTextVNode("裁剪", -1)
|
|
822
|
+
])]),
|
|
823
|
+
_: 1
|
|
824
|
+
}),
|
|
825
|
+
createVNode(_component_el_radio, {
|
|
826
|
+
label: "contain",
|
|
827
|
+
value: "contain"
|
|
828
|
+
}, {
|
|
829
|
+
default: withCtx(() => [..._cache[35] || (_cache[35] = [
|
|
830
|
+
createTextVNode("适应", -1)
|
|
831
|
+
])]),
|
|
832
|
+
_: 1
|
|
833
|
+
}),
|
|
834
|
+
createVNode(_component_el_radio, {
|
|
835
|
+
label: "100% 100%",
|
|
836
|
+
value: "100% 100%"
|
|
837
|
+
}, {
|
|
838
|
+
default: withCtx(() => [..._cache[36] || (_cache[36] = [
|
|
839
|
+
createTextVNode("拉伸", -1)
|
|
840
|
+
])]),
|
|
841
|
+
_: 1
|
|
842
|
+
})
|
|
843
|
+
]),
|
|
844
|
+
_: 1
|
|
845
|
+
}, 8, ["modelValue"])
|
|
846
|
+
])
|
|
847
|
+
])
|
|
848
|
+
])
|
|
849
|
+
], 64))
|
|
850
|
+
], 2),
|
|
851
|
+
createElementVNode("div", {
|
|
852
|
+
class: normalizeClass({ "style-config__item": true, "style-config__item--unfold": $data.unfold.border })
|
|
853
|
+
}, [
|
|
854
|
+
createElementVNode("div", _hoisted_37, [
|
|
855
|
+
createElementVNode("span", null, [
|
|
856
|
+
createElementVNode("i", {
|
|
857
|
+
class: "fold-icon el-icon-caret-right",
|
|
858
|
+
onClick: _cache[16] || (_cache[16] = ($event) => $data.unfold["border"] = !$data.unfold.border)
|
|
859
|
+
}),
|
|
860
|
+
createElementVNode("label", _hoisted_38, toDisplayString(_ctx.$t("border")), 1)
|
|
861
|
+
])
|
|
862
|
+
]),
|
|
863
|
+
createElementVNode("div", _hoisted_39, [
|
|
864
|
+
createElementVNode("div", _hoisted_40, [
|
|
865
|
+
createElementVNode("label", _hoisted_41, toDisplayString(_ctx.$t("linear")), 1),
|
|
866
|
+
createVNode(_component_el_select, {
|
|
867
|
+
class: "selection",
|
|
868
|
+
size: "small",
|
|
869
|
+
modelValue: $data.style.borderStyle,
|
|
870
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => $data.style.borderStyle = $event),
|
|
871
|
+
placeholder: _ctx.$t("not")
|
|
872
|
+
}, {
|
|
873
|
+
default: withCtx(() => [
|
|
874
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.borderStyleOption, (item) => {
|
|
875
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
876
|
+
key: item.value,
|
|
877
|
+
label: item.label,
|
|
878
|
+
value: item.value
|
|
879
|
+
}, null, 8, ["label", "value"]);
|
|
880
|
+
}), 128))
|
|
881
|
+
]),
|
|
882
|
+
_: 1
|
|
883
|
+
}, 8, ["modelValue", "placeholder"])
|
|
884
|
+
]),
|
|
885
|
+
createElementVNode("div", _hoisted_42, [
|
|
886
|
+
createElementVNode("label", _hoisted_43, toDisplayString(_ctx.$t("width")), 1),
|
|
887
|
+
createVNode(_component_el_input_number, {
|
|
888
|
+
size: "small",
|
|
889
|
+
"model-value": $options.clearSuffix($data.style.borderWidth),
|
|
890
|
+
"controls-position": "right",
|
|
891
|
+
onChange: _cache[18] || (_cache[18] = (v) => $data.style["borderWidth"] = v + "px")
|
|
892
|
+
}, null, 8, ["model-value"])
|
|
893
|
+
]),
|
|
894
|
+
createElementVNode("div", _hoisted_44, [
|
|
895
|
+
createElementVNode("label", _hoisted_45, toDisplayString(_ctx.$t("color")), 1),
|
|
896
|
+
createVNode(_component_el_color_picker, {
|
|
897
|
+
modelValue: $data.style.borderColor,
|
|
898
|
+
"onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => $data.style.borderColor = $event),
|
|
899
|
+
"show-alpha": "",
|
|
900
|
+
predefine: _ctx.predefineColors
|
|
901
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
902
|
+
]),
|
|
903
|
+
createElementVNode("div", _hoisted_46, [
|
|
904
|
+
createElementVNode("label", _hoisted_47, toDisplayString(_ctx.$t("filleted corner")), 1),
|
|
905
|
+
createVNode(_component_el_input_number, {
|
|
906
|
+
size: "small",
|
|
907
|
+
"model-value": $options.clearSuffix($data.style.borderRadius),
|
|
908
|
+
"controls-position": "right",
|
|
909
|
+
onChange: _cache[20] || (_cache[20] = (v) => $data.style["borderRadius"] = v + "px")
|
|
910
|
+
}, null, 8, ["model-value"])
|
|
911
|
+
])
|
|
912
|
+
])
|
|
913
|
+
], 2),
|
|
914
|
+
createElementVNode("div", {
|
|
915
|
+
class: normalizeClass({ "style-config__item": true, "style-config__item--unfold": $data.unfold.shadow })
|
|
916
|
+
}, [
|
|
917
|
+
createElementVNode("div", _hoisted_48, [
|
|
918
|
+
createElementVNode("span", null, [
|
|
919
|
+
createElementVNode("i", {
|
|
920
|
+
class: "fold-icon el-icon-caret-right",
|
|
921
|
+
onClick: _cache[21] || (_cache[21] = ($event) => $data.unfold["shadow"] = !$data.unfold.shadow)
|
|
922
|
+
}),
|
|
923
|
+
createElementVNode("label", _hoisted_49, toDisplayString(_ctx.$t("shadow")), 1)
|
|
924
|
+
])
|
|
925
|
+
]),
|
|
926
|
+
createElementVNode("div", _hoisted_50, [
|
|
927
|
+
createElementVNode("div", _hoisted_51, [
|
|
928
|
+
createElementVNode("label", _hoisted_52, toDisplayString(_ctx.$t("level of the shadow")), 1),
|
|
929
|
+
createVNode(_component_el_input_number, {
|
|
930
|
+
size: "small",
|
|
931
|
+
"model-value": $options.clearSuffix($data.style.hShadow),
|
|
932
|
+
"controls-position": "right",
|
|
933
|
+
onChange: _cache[22] || (_cache[22] = (v) => $data.style["hShadow"] = v + "px")
|
|
934
|
+
}, null, 8, ["model-value"])
|
|
935
|
+
]),
|
|
936
|
+
createElementVNode("div", _hoisted_53, [
|
|
937
|
+
createElementVNode("label", _hoisted_54, toDisplayString(_ctx.$t("vertical shadow")), 1),
|
|
938
|
+
createVNode(_component_el_input_number, {
|
|
939
|
+
size: "small",
|
|
940
|
+
"model-value": $options.clearSuffix($data.style.vShadow),
|
|
941
|
+
"controls-position": "right",
|
|
942
|
+
onChange: _cache[23] || (_cache[23] = (v) => $data.style["vShadow"] = v + "px")
|
|
943
|
+
}, null, 8, ["model-value"])
|
|
944
|
+
]),
|
|
945
|
+
createElementVNode("div", _hoisted_55, [
|
|
946
|
+
createElementVNode("label", _hoisted_56, toDisplayString(_ctx.$t("fuzzy distance")), 1),
|
|
947
|
+
createVNode(_component_el_input_number, {
|
|
948
|
+
size: "small",
|
|
949
|
+
"model-value": $options.clearSuffix($data.style.shadowBlur),
|
|
950
|
+
"controls-position": "right",
|
|
951
|
+
onChange: _cache[24] || (_cache[24] = (v) => $data.style["shadowBlur"] = v + "px")
|
|
952
|
+
}, null, 8, ["model-value"])
|
|
953
|
+
]),
|
|
954
|
+
createElementVNode("div", _hoisted_57, [
|
|
955
|
+
createElementVNode("label", _hoisted_58, toDisplayString(_ctx.$t("size of the shadow")), 1),
|
|
956
|
+
createVNode(_component_el_input_number, {
|
|
957
|
+
size: "small",
|
|
958
|
+
"model-value": $options.clearSuffix($data.style.shadowSpread),
|
|
959
|
+
"controls-position": "right",
|
|
960
|
+
onChange: _cache[25] || (_cache[25] = (v) => $data.style["shadowSpread"] = v + "px")
|
|
961
|
+
}, null, 8, ["model-value"])
|
|
962
|
+
]),
|
|
963
|
+
createElementVNode("div", _hoisted_59, [
|
|
964
|
+
createElementVNode("label", _hoisted_60, toDisplayString(_ctx.$t("shadow color")), 1),
|
|
965
|
+
createVNode(_component_el_color_picker, {
|
|
966
|
+
modelValue: $data.style.shadowColor,
|
|
967
|
+
"onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => $data.style.shadowColor = $event),
|
|
968
|
+
"show-alpha": "",
|
|
969
|
+
predefine: _ctx.predefineColors
|
|
970
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
971
|
+
])
|
|
972
|
+
])
|
|
973
|
+
], 2)
|
|
974
|
+
]);
|
|
975
|
+
}
|
|
976
|
+
const StyleConfig = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-390b61e8"]]);
|
|
977
|
+
export {
|
|
978
|
+
StyleConfig as default
|
|
979
|
+
};
|