@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,545 @@
|
|
|
1
|
+
import '../../../../style.css';
|
|
2
|
+
import Background from "./Background.js";
|
|
3
|
+
import Border from "./Border.js";
|
|
4
|
+
import Font from "./Font.js";
|
|
5
|
+
import Shadow from "./Shadow.js";
|
|
6
|
+
import CssEditor from "../../../page-designer/setting-panel/css-editor/CssEditor.js";
|
|
7
|
+
import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createBlock, withCtx, createVNode, createTextVNode, createCommentVNode, Fragment, renderList, normalizeClass } from "vue";
|
|
8
|
+
/* empty css */
|
|
9
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
10
|
+
const _sfc_main = {
|
|
11
|
+
name: "epx-dashboard-designer-theme-setting",
|
|
12
|
+
components: {
|
|
13
|
+
ThemeSettingBackground: Background,
|
|
14
|
+
ThemeSettingBorder: Border,
|
|
15
|
+
ThemeSettingFont: Font,
|
|
16
|
+
ThemeSettingShadow: Shadow,
|
|
17
|
+
CssEditor
|
|
18
|
+
},
|
|
19
|
+
props: {
|
|
20
|
+
editTheme: Object,
|
|
21
|
+
value: Object
|
|
22
|
+
},
|
|
23
|
+
data() {
|
|
24
|
+
return {
|
|
25
|
+
settingTree: [],
|
|
26
|
+
fold: {},
|
|
27
|
+
hoverMode: {},
|
|
28
|
+
// 各分区是否处于"悬浮"编辑态,key 为分区 key
|
|
29
|
+
mobileEdit: false,
|
|
30
|
+
// 是否处于"移动端"编辑态:写入 themeConfig.mobile 覆盖层
|
|
31
|
+
predefineColors: ["#4078ff", "#00c78b", "#ff8c42", "#a855f7", "#ef4444", "#f59e0b", "#06b6d4", "#84cc16"],
|
|
32
|
+
themeConfig: {
|
|
33
|
+
page: {},
|
|
34
|
+
component: {},
|
|
35
|
+
num: {},
|
|
36
|
+
chart: {},
|
|
37
|
+
custom: {},
|
|
38
|
+
mobile: {}
|
|
39
|
+
// 移动端覆盖层(只存被覆盖的键,结构同顶层 page/component/num)
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
computed: {
|
|
44
|
+
// 移动端态只展示支持覆盖的样式分区(page/component/num);chart 走 JS、custom 走基础层,暂不支持移动端覆盖
|
|
45
|
+
visibleSettingTree() {
|
|
46
|
+
return this.mobileEdit ? this.settingTree.filter((s) => s.mobileOverride) : this.settingTree;
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
watch: {
|
|
50
|
+
// 上报"移动端编辑态",供设计器加 .is-mobile-preview 类预览移动端覆盖
|
|
51
|
+
mobileEdit(v) {
|
|
52
|
+
this.$emit("mobile-edit", v);
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
methods: {
|
|
56
|
+
getSetting() {
|
|
57
|
+
this.settingTree = [
|
|
58
|
+
{
|
|
59
|
+
key: "page",
|
|
60
|
+
label: "页面样式",
|
|
61
|
+
mobileOverride: true,
|
|
62
|
+
children: [
|
|
63
|
+
{
|
|
64
|
+
key: "background",
|
|
65
|
+
label: "背景",
|
|
66
|
+
type: "background"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
key: "margin",
|
|
70
|
+
label: "间距",
|
|
71
|
+
type: "num"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
key: "component",
|
|
77
|
+
label: "图表组件样式",
|
|
78
|
+
hover: true,
|
|
79
|
+
// 支持"默认/悬浮"切换
|
|
80
|
+
mobileOverride: true,
|
|
81
|
+
children: [
|
|
82
|
+
{
|
|
83
|
+
key: "titleBackground",
|
|
84
|
+
label: "标题背景",
|
|
85
|
+
type: "background"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
key: "titleIcon",
|
|
89
|
+
label: "标题图标",
|
|
90
|
+
type: "image"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
key: "titleIconSize",
|
|
94
|
+
label: "图标大小",
|
|
95
|
+
type: "number"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
key: "titleFontStyle",
|
|
99
|
+
label: "标题文字",
|
|
100
|
+
type: "font"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
key: "background",
|
|
104
|
+
label: "组件背景",
|
|
105
|
+
type: "background",
|
|
106
|
+
hover: true
|
|
107
|
+
// 悬浮态可配
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
key: "fontStyle",
|
|
111
|
+
label: "组件文字",
|
|
112
|
+
type: "font",
|
|
113
|
+
hover: true
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
key: "border",
|
|
117
|
+
label: "组件边框",
|
|
118
|
+
type: "border",
|
|
119
|
+
hover: true
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
key: "shadow",
|
|
123
|
+
label: "组件阴影",
|
|
124
|
+
type: "shadow",
|
|
125
|
+
hover: true
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
key: "num",
|
|
131
|
+
label: "数字统计样式",
|
|
132
|
+
hover: true,
|
|
133
|
+
mobileOverride: true,
|
|
134
|
+
children: [
|
|
135
|
+
{
|
|
136
|
+
key: "background",
|
|
137
|
+
label: "组件背景",
|
|
138
|
+
type: "background",
|
|
139
|
+
hover: true
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
key: "border",
|
|
143
|
+
label: "组件边框",
|
|
144
|
+
type: "border",
|
|
145
|
+
hover: true
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
key: "shadow",
|
|
149
|
+
label: "组件阴影",
|
|
150
|
+
type: "shadow",
|
|
151
|
+
hover: true
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
key: "fontStyle",
|
|
155
|
+
label: "数字文字",
|
|
156
|
+
type: "font",
|
|
157
|
+
hover: true
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
key: "titleFontStyle",
|
|
161
|
+
label: "标题文字",
|
|
162
|
+
type: "font"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
key: "chart",
|
|
168
|
+
label: "图表配色",
|
|
169
|
+
mobileOverride: true,
|
|
170
|
+
children: [
|
|
171
|
+
{
|
|
172
|
+
key: "colors",
|
|
173
|
+
label: "系列色板",
|
|
174
|
+
type: "colors"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
key: "splitLineColor",
|
|
178
|
+
label: "分割线颜色",
|
|
179
|
+
type: "color"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
key: "axisLineColor",
|
|
183
|
+
label: "轴线颜色",
|
|
184
|
+
type: "color"
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
key: "custom",
|
|
190
|
+
label: "高级自定义",
|
|
191
|
+
children: [
|
|
192
|
+
{
|
|
193
|
+
key: "css",
|
|
194
|
+
label: "自定义 CSS(& 代表当前仪表盘作用域)",
|
|
195
|
+
type: "css"
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
];
|
|
200
|
+
},
|
|
201
|
+
// 读分区容器:移动端态走 themeConfig.mobile 子树,否则顶层。不创建,缺失返回 {}
|
|
202
|
+
readSection(itemKey) {
|
|
203
|
+
const root = this.mobileEdit ? this.themeConfig.mobile || {} : this.themeConfig;
|
|
204
|
+
return root[itemKey] || {};
|
|
205
|
+
},
|
|
206
|
+
// 写分区容器:移动端态写入 themeConfig.mobile 子树
|
|
207
|
+
writeSection(itemKey, updated) {
|
|
208
|
+
if (this.mobileEdit) {
|
|
209
|
+
if (!this.themeConfig.mobile) this.themeConfig.mobile = {};
|
|
210
|
+
this.themeConfig.mobile[itemKey] = updated;
|
|
211
|
+
} else {
|
|
212
|
+
this.themeConfig[itemKey] = updated;
|
|
213
|
+
}
|
|
214
|
+
this.$emit("change", this.themeConfig);
|
|
215
|
+
},
|
|
216
|
+
changeConfig(item, config, value) {
|
|
217
|
+
this.writeSection(item.key, { ...this.readSection(item.key), [config.key]: value });
|
|
218
|
+
},
|
|
219
|
+
// 悬浮态:把编辑结果写进分区的 hoverStyle 子对象(与默认态键名对称,引擎渲染时拍平为 :hover 规则)
|
|
220
|
+
changeHoverConfig(item, config, value) {
|
|
221
|
+
const section = this.readSection(item.key);
|
|
222
|
+
const hoverStyle = { ...section.hoverStyle || {}, [config.key]: value };
|
|
223
|
+
this.writeSection(item.key, { ...section, hoverStyle });
|
|
224
|
+
},
|
|
225
|
+
// 编辑器取值:悬浮态读 hoverStyle 子对象,默认态读分区本身(移动端态读 mobile 子树)
|
|
226
|
+
cfgValue(item, config) {
|
|
227
|
+
const section = this.readSection(item.key);
|
|
228
|
+
if (this.hoverMode[item.key]) {
|
|
229
|
+
return (section.hoverStyle || {})[config.key];
|
|
230
|
+
}
|
|
231
|
+
return section[config.key];
|
|
232
|
+
},
|
|
233
|
+
onChange(item, config, value) {
|
|
234
|
+
if (this.hoverMode[item.key]) {
|
|
235
|
+
this.changeHoverConfig(item, config, value);
|
|
236
|
+
} else {
|
|
237
|
+
this.changeConfig(item, config, value);
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
// 色板:兼容旧的逗号分隔字符串,统一取成数组
|
|
241
|
+
getColors(item, config) {
|
|
242
|
+
const v = this.readSection(item.key)[config.key];
|
|
243
|
+
if (Array.isArray(v)) return v;
|
|
244
|
+
if (typeof v === "string" && v.trim()) return v.split(/[,,\s]+/).filter(Boolean);
|
|
245
|
+
return [];
|
|
246
|
+
},
|
|
247
|
+
addColor(item, config) {
|
|
248
|
+
this.changeConfig(item, config, [...this.getColors(item, config), "#4078ff"]);
|
|
249
|
+
},
|
|
250
|
+
setColor(item, config, index, value) {
|
|
251
|
+
const list = [...this.getColors(item, config)];
|
|
252
|
+
if (value) {
|
|
253
|
+
list.splice(index, 1, value);
|
|
254
|
+
} else {
|
|
255
|
+
list.splice(index, 1);
|
|
256
|
+
}
|
|
257
|
+
this.changeConfig(item, config, list);
|
|
258
|
+
},
|
|
259
|
+
removeColor(item, config, index) {
|
|
260
|
+
const list = [...this.getColors(item, config)];
|
|
261
|
+
list.splice(index, 1);
|
|
262
|
+
this.changeConfig(item, config, list);
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
created() {
|
|
266
|
+
this.getSetting();
|
|
267
|
+
if (this.editTheme) {
|
|
268
|
+
const themeConfig = JSON.parse(this.editTheme.CONTENT);
|
|
269
|
+
if (themeConfig) this.themeConfig = { ...this.themeConfig, ...themeConfig };
|
|
270
|
+
} else if (this.value) {
|
|
271
|
+
this.themeConfig = { ...this.themeConfig, ...this.value };
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
beforeUnmount() {
|
|
275
|
+
this.$emit("mobile-edit", false);
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
const _hoisted_1 = { class: "theme-setting" };
|
|
279
|
+
const _hoisted_2 = { class: "theme-setting__header" };
|
|
280
|
+
const _hoisted_3 = { key: 0 };
|
|
281
|
+
const _hoisted_4 = { class: "theme-setting__content" };
|
|
282
|
+
const _hoisted_5 = { class: "theme-setting__device-switch" };
|
|
283
|
+
const _hoisted_6 = {
|
|
284
|
+
key: 0,
|
|
285
|
+
class: "theme-setting__device-tip"
|
|
286
|
+
};
|
|
287
|
+
const _hoisted_7 = { class: "theme-setting__tree" };
|
|
288
|
+
const _hoisted_8 = ["onClick"];
|
|
289
|
+
const _hoisted_9 = { class: "theme-setting__tree-content" };
|
|
290
|
+
const _hoisted_10 = {
|
|
291
|
+
key: 0,
|
|
292
|
+
class: "theme-setting__mode-switch"
|
|
293
|
+
};
|
|
294
|
+
const _hoisted_11 = {
|
|
295
|
+
class: "epx-page-designer-setting-style__label",
|
|
296
|
+
for: ""
|
|
297
|
+
};
|
|
298
|
+
const _hoisted_12 = {
|
|
299
|
+
class: "epx-page-designer-setting-style__label",
|
|
300
|
+
for: ""
|
|
301
|
+
};
|
|
302
|
+
const _hoisted_13 = { class: "theme-setting__palette-list" };
|
|
303
|
+
const _hoisted_14 = ["onClick"];
|
|
304
|
+
const _hoisted_15 = {
|
|
305
|
+
class: "epx-page-designer-setting-style__label",
|
|
306
|
+
for: ""
|
|
307
|
+
};
|
|
308
|
+
const _hoisted_16 = {
|
|
309
|
+
class: "epx-page-designer-setting-style__label",
|
|
310
|
+
for: ""
|
|
311
|
+
};
|
|
312
|
+
const _hoisted_17 = {
|
|
313
|
+
class: "epx-page-designer-setting-style__label",
|
|
314
|
+
for: ""
|
|
315
|
+
};
|
|
316
|
+
const _hoisted_18 = {
|
|
317
|
+
class: "epx-page-designer-setting-style__label",
|
|
318
|
+
for: ""
|
|
319
|
+
};
|
|
320
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
321
|
+
const _component_el_button = resolveComponent("el-button");
|
|
322
|
+
const _component_el_radio_button = resolveComponent("el-radio-button");
|
|
323
|
+
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
324
|
+
const _component_theme_setting_background = resolveComponent("theme-setting-background");
|
|
325
|
+
const _component_theme_setting_border = resolveComponent("theme-setting-border");
|
|
326
|
+
const _component_theme_setting_font = resolveComponent("theme-setting-font");
|
|
327
|
+
const _component_theme_setting_shadow = resolveComponent("theme-setting-shadow");
|
|
328
|
+
const _component_el_color_picker = resolveComponent("el-color-picker");
|
|
329
|
+
const _component_el_input_number = resolveComponent("el-input-number");
|
|
330
|
+
const _component_el_input = resolveComponent("el-input");
|
|
331
|
+
const _component_css_editor = resolveComponent("css-editor");
|
|
332
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
333
|
+
createElementVNode("div", _hoisted_2, [
|
|
334
|
+
$props.editTheme ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString($props.editTheme.NAME), 1)) : (openBlock(), createBlock(_component_el_button, {
|
|
335
|
+
key: 1,
|
|
336
|
+
type: "primary",
|
|
337
|
+
link: "",
|
|
338
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("save"))
|
|
339
|
+
}, {
|
|
340
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
341
|
+
createElementVNode("i", { class: "epx-icon-save" }, null, -1),
|
|
342
|
+
createElementVNode("span", null, "保存为预设", -1)
|
|
343
|
+
])]),
|
|
344
|
+
_: 1
|
|
345
|
+
}))
|
|
346
|
+
]),
|
|
347
|
+
createElementVNode("div", _hoisted_4, [
|
|
348
|
+
createElementVNode("div", _hoisted_5, [
|
|
349
|
+
createVNode(_component_el_radio_group, {
|
|
350
|
+
"model-value": $data.mobileEdit ? "mobile" : "pc",
|
|
351
|
+
size: "small",
|
|
352
|
+
onChange: _cache[1] || (_cache[1] = (v) => $data.mobileEdit = v === "mobile")
|
|
353
|
+
}, {
|
|
354
|
+
default: withCtx(() => [
|
|
355
|
+
createVNode(_component_el_radio_button, {
|
|
356
|
+
label: "pc",
|
|
357
|
+
value: "pc"
|
|
358
|
+
}, {
|
|
359
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
360
|
+
createTextVNode("PC 端", -1)
|
|
361
|
+
])]),
|
|
362
|
+
_: 1
|
|
363
|
+
}),
|
|
364
|
+
createVNode(_component_el_radio_button, {
|
|
365
|
+
label: "mobile",
|
|
366
|
+
value: "mobile"
|
|
367
|
+
}, {
|
|
368
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
369
|
+
createTextVNode("移动端", -1)
|
|
370
|
+
])]),
|
|
371
|
+
_: 1
|
|
372
|
+
})
|
|
373
|
+
]),
|
|
374
|
+
_: 1
|
|
375
|
+
}, 8, ["model-value"]),
|
|
376
|
+
$data.mobileEdit ? (openBlock(), createElementBlock("span", _hoisted_6, "仅覆盖移动端(≤992px),未设项继承 PC")) : createCommentVNode("", true)
|
|
377
|
+
]),
|
|
378
|
+
createElementVNode("ul", _hoisted_7, [
|
|
379
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.visibleSettingTree, (item) => {
|
|
380
|
+
return openBlock(), createElementBlock("li", {
|
|
381
|
+
class: normalizeClass(["theme-setting__tree-item", { "is-fold": $data.fold[item.key] }]),
|
|
382
|
+
key: item.key
|
|
383
|
+
}, [
|
|
384
|
+
createElementVNode("div", {
|
|
385
|
+
class: "theme-setting__tree-header",
|
|
386
|
+
onClick: ($event) => $data.fold[item.key] = !$data.fold[item.key]
|
|
387
|
+
}, [
|
|
388
|
+
createElementVNode("span", null, toDisplayString(item.label), 1),
|
|
389
|
+
_cache[5] || (_cache[5] = createElementVNode("i", { class: "el-icon-arrow-down" }, null, -1))
|
|
390
|
+
], 8, _hoisted_8),
|
|
391
|
+
createElementVNode("div", _hoisted_9, [
|
|
392
|
+
item.hover ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
393
|
+
createVNode(_component_el_radio_group, {
|
|
394
|
+
"model-value": $data.hoverMode[item.key] ? "hover" : "default",
|
|
395
|
+
size: "small",
|
|
396
|
+
onChange: (v) => $data.hoverMode[item.key] = v === "hover"
|
|
397
|
+
}, {
|
|
398
|
+
default: withCtx(() => [
|
|
399
|
+
createVNode(_component_el_radio_button, {
|
|
400
|
+
label: "default",
|
|
401
|
+
value: "default"
|
|
402
|
+
}, {
|
|
403
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
404
|
+
createTextVNode("默认", -1)
|
|
405
|
+
])]),
|
|
406
|
+
_: 1
|
|
407
|
+
}),
|
|
408
|
+
createVNode(_component_el_radio_button, {
|
|
409
|
+
label: "hover",
|
|
410
|
+
value: "hover"
|
|
411
|
+
}, {
|
|
412
|
+
default: withCtx(() => [..._cache[7] || (_cache[7] = [
|
|
413
|
+
createTextVNode("悬浮", -1)
|
|
414
|
+
])]),
|
|
415
|
+
_: 1
|
|
416
|
+
})
|
|
417
|
+
]),
|
|
418
|
+
_: 1
|
|
419
|
+
}, 8, ["model-value", "onChange"])
|
|
420
|
+
])) : createCommentVNode("", true),
|
|
421
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.children, (config) => {
|
|
422
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
423
|
+
key: item.key + "-" + config.key
|
|
424
|
+
}, [
|
|
425
|
+
!$data.hoverMode[item.key] || config.hover ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
426
|
+
config.type === "background" ? (openBlock(), createBlock(_component_theme_setting_background, {
|
|
427
|
+
key: item.key + "-" + config.key + "-" + ($data.mobileEdit ? "m" : "p") + "-" + ($data.hoverMode[item.key] ? "h" : "d"),
|
|
428
|
+
label: config.label,
|
|
429
|
+
value: $options.cfgValue(item, config),
|
|
430
|
+
onChange: (v) => $options.onChange(item, config, v)
|
|
431
|
+
}, null, 8, ["label", "value", "onChange"])) : config.type === "border" ? (openBlock(), createBlock(_component_theme_setting_border, {
|
|
432
|
+
key: item.key + "-" + config.key + "-" + ($data.mobileEdit ? "m" : "p") + "-" + ($data.hoverMode[item.key] ? "h" : "d"),
|
|
433
|
+
label: config.label,
|
|
434
|
+
value: $options.cfgValue(item, config),
|
|
435
|
+
onChange: (v) => $options.onChange(item, config, v)
|
|
436
|
+
}, null, 8, ["label", "value", "onChange"])) : config.type === "font" ? (openBlock(), createBlock(_component_theme_setting_font, {
|
|
437
|
+
key: item.key + "-" + config.key + "-" + ($data.mobileEdit ? "m" : "p") + "-" + ($data.hoverMode[item.key] ? "h" : "d"),
|
|
438
|
+
label: config.label,
|
|
439
|
+
value: $options.cfgValue(item, config),
|
|
440
|
+
onChange: (v) => $options.onChange(item, config, v)
|
|
441
|
+
}, null, 8, ["label", "value", "onChange"])) : config.type === "shadow" ? (openBlock(), createBlock(_component_theme_setting_shadow, {
|
|
442
|
+
key: item.key + "-" + config.key + "-" + ($data.mobileEdit ? "m" : "p") + "-" + ($data.hoverMode[item.key] ? "h" : "d"),
|
|
443
|
+
label: config.label,
|
|
444
|
+
value: $options.cfgValue(item, config),
|
|
445
|
+
onChange: (v) => $options.onChange(item, config, v)
|
|
446
|
+
}, null, 8, ["label", "value", "onChange"])) : config.type === "color" ? (openBlock(), createElementBlock("div", {
|
|
447
|
+
key: item.key + "-" + config.key + "-" + ($data.mobileEdit ? "m" : "p"),
|
|
448
|
+
class: "epx-page-designer-setting-style__item--alone"
|
|
449
|
+
}, [
|
|
450
|
+
createElementVNode("label", _hoisted_11, toDisplayString(config.label), 1),
|
|
451
|
+
createVNode(_component_el_color_picker, {
|
|
452
|
+
"model-value": $options.cfgValue(item, config),
|
|
453
|
+
"show-alpha": "",
|
|
454
|
+
predefine: $data.predefineColors,
|
|
455
|
+
onChange: (v) => $options.changeConfig(item, config, v)
|
|
456
|
+
}, null, 8, ["model-value", "predefine", "onChange"])
|
|
457
|
+
])) : config.type === "colors" ? (openBlock(), createElementBlock("div", {
|
|
458
|
+
key: item.key + "-" + config.key + "-" + ($data.mobileEdit ? "m" : "p"),
|
|
459
|
+
class: "theme-setting__palette"
|
|
460
|
+
}, [
|
|
461
|
+
createElementVNode("label", _hoisted_12, toDisplayString(config.label), 1),
|
|
462
|
+
createElementVNode("div", _hoisted_13, [
|
|
463
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.getColors(item, config), (color, index) => {
|
|
464
|
+
return openBlock(), createElementBlock("div", {
|
|
465
|
+
class: "theme-setting__palette-item",
|
|
466
|
+
key: index
|
|
467
|
+
}, [
|
|
468
|
+
createVNode(_component_el_color_picker, {
|
|
469
|
+
"model-value": color,
|
|
470
|
+
"show-alpha": "",
|
|
471
|
+
predefine: $data.predefineColors,
|
|
472
|
+
onChange: (v) => $options.setColor(item, config, index, v)
|
|
473
|
+
}, null, 8, ["model-value", "predefine", "onChange"]),
|
|
474
|
+
createElementVNode("i", {
|
|
475
|
+
class: "el-icon-close theme-setting__palette-remove",
|
|
476
|
+
onClick: ($event) => $options.removeColor(item, config, index)
|
|
477
|
+
}, null, 8, _hoisted_14)
|
|
478
|
+
]);
|
|
479
|
+
}), 128)),
|
|
480
|
+
createVNode(_component_el_button, {
|
|
481
|
+
class: "theme-setting__palette-add",
|
|
482
|
+
icon: "el-icon-plus",
|
|
483
|
+
onClick: ($event) => $options.addColor(item, config)
|
|
484
|
+
}, null, 8, ["onClick"])
|
|
485
|
+
])
|
|
486
|
+
])) : config.type === "number" ? (openBlock(), createElementBlock("div", {
|
|
487
|
+
key: item.key + "-" + config.key + "-" + ($data.mobileEdit ? "m" : "p"),
|
|
488
|
+
class: "epx-page-designer-setting-style__item--alone"
|
|
489
|
+
}, [
|
|
490
|
+
createElementVNode("label", _hoisted_15, toDisplayString(config.label), 1),
|
|
491
|
+
createVNode(_component_el_input_number, {
|
|
492
|
+
"model-value": $options.cfgValue(item, config),
|
|
493
|
+
"controls-position": "right",
|
|
494
|
+
min: 0,
|
|
495
|
+
size: "default",
|
|
496
|
+
onChange: (v) => $options.changeConfig(item, config, v)
|
|
497
|
+
}, null, 8, ["model-value", "onChange"])
|
|
498
|
+
])) : config.type === "text" ? (openBlock(), createElementBlock("div", {
|
|
499
|
+
key: item.key + "-" + config.key + "-" + ($data.mobileEdit ? "m" : "p"),
|
|
500
|
+
class: "epx-page-designer-setting-style__item--alone"
|
|
501
|
+
}, [
|
|
502
|
+
createElementVNode("label", _hoisted_16, toDisplayString(config.label), 1),
|
|
503
|
+
createVNode(_component_el_input, {
|
|
504
|
+
"model-value": $options.cfgValue(item, config),
|
|
505
|
+
size: "default",
|
|
506
|
+
placeholder: config.placeholder,
|
|
507
|
+
clearable: "",
|
|
508
|
+
onInput: (v) => $options.changeConfig(item, config, v)
|
|
509
|
+
}, null, 8, ["model-value", "placeholder", "onInput"])
|
|
510
|
+
])) : config.type === "textarea" ? (openBlock(), createElementBlock("div", {
|
|
511
|
+
key: item.key + "-" + config.key + "-" + ($data.mobileEdit ? "m" : "p"),
|
|
512
|
+
class: "epx-page-designer-setting-style__item--alone"
|
|
513
|
+
}, [
|
|
514
|
+
createElementVNode("label", _hoisted_17, toDisplayString(config.label), 1),
|
|
515
|
+
createVNode(_component_el_input, {
|
|
516
|
+
type: "textarea",
|
|
517
|
+
rows: 8,
|
|
518
|
+
"model-value": $options.cfgValue(item, config),
|
|
519
|
+
placeholder: config.placeholder,
|
|
520
|
+
onInput: (v) => $options.changeConfig(item, config, v)
|
|
521
|
+
}, null, 8, ["model-value", "placeholder", "onInput"])
|
|
522
|
+
])) : config.type === "css" ? (openBlock(), createElementBlock("div", {
|
|
523
|
+
key: item.key + "-" + config.key + "-" + ($data.mobileEdit ? "m" : "p"),
|
|
524
|
+
class: "theme-setting__css"
|
|
525
|
+
}, [
|
|
526
|
+
createElementVNode("label", _hoisted_18, toDisplayString(config.label), 1),
|
|
527
|
+
createVNode(_component_css_editor, {
|
|
528
|
+
value: $options.cfgValue(item, config),
|
|
529
|
+
onChange: (v) => $options.changeConfig(item, config, v)
|
|
530
|
+
}, null, 8, ["value", "onChange"])
|
|
531
|
+
])) : createCommentVNode("", true)
|
|
532
|
+
], 64)) : createCommentVNode("", true)
|
|
533
|
+
], 64);
|
|
534
|
+
}), 128))
|
|
535
|
+
])
|
|
536
|
+
], 2);
|
|
537
|
+
}), 128))
|
|
538
|
+
])
|
|
539
|
+
])
|
|
540
|
+
]);
|
|
541
|
+
}
|
|
542
|
+
const DashboardThemeSetting = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-949a9b09"]]);
|
|
543
|
+
export {
|
|
544
|
+
DashboardThemeSetting as default
|
|
545
|
+
};
|