@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,242 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
// @jsx-vue3(T30 JSX 批:Vue3 JSX 语法,@vue/babel-plugin-jsx 编译)
|
|
3
|
+
|
|
4
|
+
import ComponentVue from './Component.vue'
|
|
5
|
+
// 默认值逻辑
|
|
6
|
+
export default {
|
|
7
|
+
name: 'epx-visual-num-statistic',
|
|
8
|
+
extends: ComponentVue,
|
|
9
|
+
watch: {
|
|
10
|
+
allConfigs: {
|
|
11
|
+
handler (v) {
|
|
12
|
+
if (v.metaId) {
|
|
13
|
+
this.componentMetaId = v.metaId
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
immediate: true
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
methods: {
|
|
20
|
+
initDefaultConfigs () {
|
|
21
|
+
// 获取到该组件的默认配置
|
|
22
|
+
this.defaultConfigs = {
|
|
23
|
+
flex: false,
|
|
24
|
+
metaId: this.pageMetaId,
|
|
25
|
+
componentName: this.componentInfo.title,
|
|
26
|
+
type: 'card',
|
|
27
|
+
'justify-content': 'center',
|
|
28
|
+
background: '#fff',
|
|
29
|
+
border: false,
|
|
30
|
+
orientation: 'vertical',
|
|
31
|
+
titleFontSize: '14px',
|
|
32
|
+
titleColor: '#000',
|
|
33
|
+
countFontSize: '30px',
|
|
34
|
+
countColor: '#000',
|
|
35
|
+
openMode: '3',
|
|
36
|
+
iconType: 'icon',
|
|
37
|
+
showIconBg: true,
|
|
38
|
+
span: 24,
|
|
39
|
+
xsspan: 24
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
initConfig () {
|
|
43
|
+
const config = { ...this.compConfig }
|
|
44
|
+
if (this.componentInfo.span) {
|
|
45
|
+
config.span = this.componentInfo.span
|
|
46
|
+
}
|
|
47
|
+
this.config = config
|
|
48
|
+
for (const key in this.config) {
|
|
49
|
+
const configOption = this.configOptions.find(item => item.key === key) || {}
|
|
50
|
+
if (configOption.type === 'field') {
|
|
51
|
+
this.selectFieldWay[key] = 'custom'
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
renderCardLaout (item) {
|
|
56
|
+
const styles = ['vetical-center', 'horizontal-center', 'horizontal-between', 'horizontal-between-reverse', 'horizontal-center-horizontal_content', 'horizontal-between-horizontal_content']
|
|
57
|
+
return (
|
|
58
|
+
<div class="epx-visual-num-statistic__card-layout">
|
|
59
|
+
{
|
|
60
|
+
styles.map(style => {
|
|
61
|
+
const classNames = style.split('-').map(item => ('card--' + item))
|
|
62
|
+
return (
|
|
63
|
+
<div key={style} class={['card', { 'is-active': style === this.allConfigs[item.key] }, ...classNames]} onClick={v => this.changeConfigItem(item.key, style)}>
|
|
64
|
+
<div class="card-image">
|
|
65
|
+
</div>
|
|
66
|
+
<div class={['card-content', 'card-content--' + this.allConfigs.titleNumOrder]}>
|
|
67
|
+
<div class="card-title"></div>
|
|
68
|
+
<div class="card-num">
|
|
69
|
+
<span></span>
|
|
70
|
+
<span></span>
|
|
71
|
+
<span></span>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
)
|
|
76
|
+
})
|
|
77
|
+
}
|
|
78
|
+
</div>
|
|
79
|
+
)
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
</script>
|
|
84
|
+
<style lang="scss">
|
|
85
|
+
// 布局选项由独立的 FormItem 子组件渲染,scoped 样式无法命中这些节点。
|
|
86
|
+
.epx-visual-num-statistic__card-layout {
|
|
87
|
+
width: 220px;
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-wrap: wrap;
|
|
90
|
+
.card {
|
|
91
|
+
width: 90px;
|
|
92
|
+
height: 42px;
|
|
93
|
+
padding: 6px;
|
|
94
|
+
box-sizing: border-box;
|
|
95
|
+
border-radius: var(--epx-radius-s);
|
|
96
|
+
border: 1px solid #E3E3E3;
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
align-items: center;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
margin: 5px;
|
|
102
|
+
color: #D8D8D8;
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
&:hover, &.is-active {
|
|
105
|
+
@include font_color_primary;
|
|
106
|
+
@include border_color_primary;
|
|
107
|
+
.card-title {
|
|
108
|
+
@include bg_color_primary;
|
|
109
|
+
}
|
|
110
|
+
.card-num >span {
|
|
111
|
+
@include bg_color_primary;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
.card-image {
|
|
116
|
+
position: relative;
|
|
117
|
+
flex: none;
|
|
118
|
+
width: 15px;
|
|
119
|
+
height: 13px;
|
|
120
|
+
box-sizing: border-box;
|
|
121
|
+
border: 1px solid currentColor;
|
|
122
|
+
border-radius: 2px;
|
|
123
|
+
margin-bottom: 4px;
|
|
124
|
+
&::before {
|
|
125
|
+
content: '';
|
|
126
|
+
position: absolute;
|
|
127
|
+
top: 2px;
|
|
128
|
+
right: 2px;
|
|
129
|
+
width: 3px;
|
|
130
|
+
height: 3px;
|
|
131
|
+
border-radius: 50%;
|
|
132
|
+
background: currentColor;
|
|
133
|
+
}
|
|
134
|
+
&::after {
|
|
135
|
+
content: '';
|
|
136
|
+
position: absolute;
|
|
137
|
+
left: 2px;
|
|
138
|
+
bottom: 2px;
|
|
139
|
+
width: 9px;
|
|
140
|
+
height: 5px;
|
|
141
|
+
background: currentColor;
|
|
142
|
+
clip-path: polygon(0 100%, 35% 15%, 60% 60%, 78% 30%, 100% 100%);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
.card-content {
|
|
146
|
+
display: flex;
|
|
147
|
+
flex-direction: column;
|
|
148
|
+
align-items:flex-end;
|
|
149
|
+
// justify-content: flex-start;
|
|
150
|
+
}
|
|
151
|
+
.card-content--reverse {
|
|
152
|
+
flex-direction: column-reverse;
|
|
153
|
+
.card-title {
|
|
154
|
+
margin-bottom: 0;
|
|
155
|
+
}
|
|
156
|
+
.card-num {
|
|
157
|
+
margin-bottom: 4px;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
.card-title {
|
|
161
|
+
width: 15px;
|
|
162
|
+
height: 3px;
|
|
163
|
+
background: #D8D8D8;
|
|
164
|
+
line-height: 1;
|
|
165
|
+
margin-bottom: 4px;
|
|
166
|
+
}
|
|
167
|
+
.card-num {
|
|
168
|
+
line-height: 1;
|
|
169
|
+
font-size: 0;
|
|
170
|
+
>span {
|
|
171
|
+
display: inline-block;
|
|
172
|
+
width: 6px;
|
|
173
|
+
height: 6px;
|
|
174
|
+
background: #D8D8D8;
|
|
175
|
+
margin-right: 1px;
|
|
176
|
+
&:last-child {
|
|
177
|
+
margin: 0;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
.card--horizontal {
|
|
182
|
+
flex-direction: row;
|
|
183
|
+
justify-content: center;
|
|
184
|
+
.card-image {
|
|
185
|
+
margin-right: 4px;
|
|
186
|
+
margin-bottom: 0;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
.card--center {
|
|
190
|
+
.card-content {
|
|
191
|
+
align-items: center;
|
|
192
|
+
}
|
|
193
|
+
&.card--horizontal {
|
|
194
|
+
.card-content {
|
|
195
|
+
align-items: flex-start;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
&.card--horizontal_content {
|
|
199
|
+
.card-content {
|
|
200
|
+
align-items: center;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
.card--between {
|
|
205
|
+
justify-content: space-between;
|
|
206
|
+
&.card--horizontal_content {
|
|
207
|
+
.card-content {
|
|
208
|
+
flex: 1;
|
|
209
|
+
justify-content: space-between;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
.card--reverse {
|
|
214
|
+
flex-direction: row-reverse;
|
|
215
|
+
.card-content {
|
|
216
|
+
align-items:flex-start;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
.card--horizontal_content {
|
|
220
|
+
.card-content {
|
|
221
|
+
flex-direction: row;
|
|
222
|
+
align-items: center;
|
|
223
|
+
}
|
|
224
|
+
.card-content--reverse {
|
|
225
|
+
flex-direction: row-reverse;
|
|
226
|
+
.card-title {
|
|
227
|
+
margin-right: 0;
|
|
228
|
+
}
|
|
229
|
+
.card-num {
|
|
230
|
+
margin-right: 4px;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
.card-title {
|
|
234
|
+
margin: 0;
|
|
235
|
+
margin-right: 4px;
|
|
236
|
+
}
|
|
237
|
+
.card-num {
|
|
238
|
+
margin: 0;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
</style>
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import ComponentVue from './Component.vue'
|
|
3
|
+
export default {
|
|
4
|
+
name: 'epx-visual-org-chart',
|
|
5
|
+
extends: ComponentVue,
|
|
6
|
+
methods: {
|
|
7
|
+
initDefaultConfigs () {
|
|
8
|
+
// 获取到该组件的默认配置
|
|
9
|
+
this.defaultConfigs = {
|
|
10
|
+
orgDirection: 't2b',
|
|
11
|
+
column: '1',
|
|
12
|
+
fields: this.currentMeta.getAllFields(),
|
|
13
|
+
editable: false,
|
|
14
|
+
span: 24
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
initConfigOptions () {
|
|
19
|
+
const configOptions = [
|
|
20
|
+
{ key: 'componentName', label: '组件名称', type: 'input' },
|
|
21
|
+
{ key: 'orgDirection', label: '排列方向', type: 'radio', options: [{ label: '从上往下', value: 't2b' }, { label: '从左往右', value: 'l2r' }] },
|
|
22
|
+
{ key: 'orgFullscreen', label: '初始占满全屏', type: 'switch' },
|
|
23
|
+
{ key: 'nodeWidth', label: '节点宽度', type: 'num', defaultValue: 120 },
|
|
24
|
+
{ key: 'column', label: '列数', type: 'input' },
|
|
25
|
+
{ key: 'fields', label: '表单字段', type: 'list-field' },
|
|
26
|
+
{ key: 'parentField', label: '上级字段', type: 'field' },
|
|
27
|
+
{ key: 'span', label: '宽度', type: 'select', options: this.spanOptions },
|
|
28
|
+
{ key: 'xsspan', label: '移动端宽度', type: 'select', options: this.spanOptions },
|
|
29
|
+
{ key: 'height', label: '高度' },
|
|
30
|
+
{ key: 'flex', label: '占据页面剩余空间', type: 'radio', options: [{ label: '是', value: true }, { label: '否', value: false }] }
|
|
31
|
+
]
|
|
32
|
+
// if (this.pageGlobalConfigs.layout === 'flex') {
|
|
33
|
+
// configOptions.splice(1, 0, { key: 'flex', label: '占据页面剩余空间', type: 'radio', options: [{ label: '是', value: true }, { label: '否', value: false }] })
|
|
34
|
+
// }
|
|
35
|
+
this.configOptions = configOptions
|
|
36
|
+
},
|
|
37
|
+
getFieldOptions () {
|
|
38
|
+
this.fieldOptions = [
|
|
39
|
+
{ key: 'attriName', label: '字段', readonly: true },
|
|
40
|
+
{
|
|
41
|
+
key: 'configWay',
|
|
42
|
+
label: '配置方式',
|
|
43
|
+
type: 'radio',
|
|
44
|
+
options: [{ label: '默认配置', value: 'default' }, { label: '自定义', value: 'custom' }],
|
|
45
|
+
defaultValue: 'default'
|
|
46
|
+
},
|
|
47
|
+
{ key: 'attriLabel', label: '名称', type: 'text' },
|
|
48
|
+
{
|
|
49
|
+
key: 'state',
|
|
50
|
+
label: '字段状态',
|
|
51
|
+
type: 'radio',
|
|
52
|
+
options: [{ label: '跟随页面状态', value: '' }, { label: '新增', value: 'ADD' }, { label: '编辑', value: 'EDIT' }, { label: '详情', value: 'DETAIL' }, { label: '隐藏', value: 'HIDDEN' }],
|
|
53
|
+
defaultValue: ''
|
|
54
|
+
},
|
|
55
|
+
{ key: 'showLabel', label: '显示名称', type: 'radio', options: [{ label: '显示', value: true }, { label: '不显示', value: false }], defaultValue: true },
|
|
56
|
+
{
|
|
57
|
+
key: 'isDateNow',
|
|
58
|
+
label: '是否是当前时间',
|
|
59
|
+
type: 'radio',
|
|
60
|
+
options: [{ label: '是', value: true }, { label: '否', value: false }],
|
|
61
|
+
defaultValue: false,
|
|
62
|
+
showFlag: {
|
|
63
|
+
dataType: ['date', 'time', 'date_ym']
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{ key: 'value', label: '默认值', type: 'value' },
|
|
67
|
+
{ key: 'color', label: '字体颜色', type: 'color', defaultValue: '#333' },
|
|
68
|
+
{ key: 'noteMode', label: '注释说明显示模式', type: 'radio', options: [{ label: '弹窗', value: 'tips' }, { label: '文本', value: 'text' }], defaultValue: 'tips' },
|
|
69
|
+
{ key: 'notes', label: '注释说明', type: 'input' },
|
|
70
|
+
{
|
|
71
|
+
key: 'findPageId',
|
|
72
|
+
label: '对象查找页面',
|
|
73
|
+
type: 'object',
|
|
74
|
+
object: 'FM_PAGE_CONFIG',
|
|
75
|
+
showFlag: {
|
|
76
|
+
dataType: ['multiobject', 'object']
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
key: 'maxLength',
|
|
81
|
+
label: '长度限制',
|
|
82
|
+
type: 'num',
|
|
83
|
+
showFlag: {
|
|
84
|
+
dataType: ['text', 'textarea', 'bigtext']
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
key: 'showLevel',
|
|
89
|
+
label: '下拉框层级',
|
|
90
|
+
type: 'number',
|
|
91
|
+
showFlag: {
|
|
92
|
+
dataType: ['treeList', 'multiobject', 'object']
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
key: 'onlySelectLeaf',
|
|
97
|
+
label: '只选择叶节点',
|
|
98
|
+
type: 'radio',
|
|
99
|
+
options: [{ label: '是', value: true }, { label: '否', value: false }],
|
|
100
|
+
defaultValue: false,
|
|
101
|
+
showFlag: {
|
|
102
|
+
dataType: ['treeList', 'multiobject', 'object']
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
</script>
|
|
110
|
+
|
|
111
|
+
<style>
|
|
112
|
+
|
|
113
|
+
</style>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import ComponentVue from '@epxing/designer/src/visual/Component.vue'
|
|
3
|
+
// 默认值逻辑
|
|
4
|
+
export default {
|
|
5
|
+
name: 'epx-visual-page-catalog',
|
|
6
|
+
extends: ComponentVue,
|
|
7
|
+
methods: {
|
|
8
|
+
initDefaultConfigs () {
|
|
9
|
+
// 获取到该组件的默认配置
|
|
10
|
+
this.defaultConfigs = {
|
|
11
|
+
flex: false,
|
|
12
|
+
padding: 10,
|
|
13
|
+
span: 24,
|
|
14
|
+
xsspan: 24
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
initConfigOptions () {
|
|
18
|
+
const configOptions = [
|
|
19
|
+
{ key: 'componentName', label: '组件名称', type: 'input' },
|
|
20
|
+
{ key: 'operates', label: '操作按钮', type: 'operates' }
|
|
21
|
+
]
|
|
22
|
+
this.configOptions = configOptions
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
</script>
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="container">
|
|
3
|
+
<div class="header">
|
|
4
|
+
<div class="header-inner">
|
|
5
|
+
<div class="title">
|
|
6
|
+
<i class="el-icon-arrow-left" @click="backPage"></i>
|
|
7
|
+
<span class="">{{title}}</span>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="opera">
|
|
10
|
+
<el-dropdown>
|
|
11
|
+
<span class="el-dropdown-link">
|
|
12
|
+
<el-button class="more" plain size="default"><i class="el-icon-more"></i></el-button>
|
|
13
|
+
</span>
|
|
14
|
+
<template v-slot:dropdown><el-dropdown-menu>
|
|
15
|
+
<el-dropdown-item @click="pageSettingInfo">页面信息</el-dropdown-item>
|
|
16
|
+
</el-dropdown-menu></template>
|
|
17
|
+
</el-dropdown>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<p class="tip">
|
|
22
|
+
</p>
|
|
23
|
+
<epx-page class="visual-page" v-if="visualPageId" :inline="true" :init-configs="config" @saveUpdateConfig="submitForm" :metaId="pageMetaId" :pageId="visualPageId" :pageDate="data"></epx-page>
|
|
24
|
+
<!-- <epx-page class="visual-page" v-if="visualPageId" :inline="true" :init-configs="config" @updateConfig="updateConfig" @saveUpdateConfig="submitForm" :metaId="pageMetaId" :pageId="visualPageId" :pageDate="data"></epx-page> -->
|
|
25
|
+
<div style="height:20px" v-if="mode==='json'"></div>
|
|
26
|
+
</div>
|
|
27
|
+
<!-- 保存区域 -->
|
|
28
|
+
|
|
29
|
+
</template>
|
|
30
|
+
<script>
|
|
31
|
+
import { DELETE_PAGE } from '@epxing/core/src/store/actions'
|
|
32
|
+
export default {
|
|
33
|
+
name: 'epx-page-visual-config',
|
|
34
|
+
data () {
|
|
35
|
+
return {
|
|
36
|
+
content: '',
|
|
37
|
+
mode: 'json',
|
|
38
|
+
visualPageId: '',
|
|
39
|
+
title: ''
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
methods: {
|
|
43
|
+
pageSettingInfo () {
|
|
44
|
+
// 当前页面id
|
|
45
|
+
if (!this.$pageId) {
|
|
46
|
+
this.$message.error('系统默认页面,无法编辑')
|
|
47
|
+
return
|
|
48
|
+
}
|
|
49
|
+
const route = {
|
|
50
|
+
metaId: 'FM_PAGE_CONFIG',
|
|
51
|
+
flag: 'v_page',
|
|
52
|
+
id: this.data.ID,
|
|
53
|
+
entityId: this.$metaId,
|
|
54
|
+
pageType: 'EDIT'
|
|
55
|
+
}
|
|
56
|
+
this.$createPage(route)
|
|
57
|
+
// if (this.menuRouters.length > 0) {
|
|
58
|
+
// this.$pushMenuRoute(route)
|
|
59
|
+
// } else {
|
|
60
|
+
// this.$pushModuleRoute(route)
|
|
61
|
+
// }
|
|
62
|
+
},
|
|
63
|
+
// submitForm (isGo = true) {
|
|
64
|
+
submitForm (content = this.content) {
|
|
65
|
+
const params = {
|
|
66
|
+
entityId: this.$metaId,
|
|
67
|
+
[`bean.${this.$metaKey}`]: this.data[this.$metaKey],
|
|
68
|
+
'bean.CONTENT': content
|
|
69
|
+
// 'bean.CONTENT': this.content
|
|
70
|
+
}
|
|
71
|
+
this.$http.update({
|
|
72
|
+
...params
|
|
73
|
+
})
|
|
74
|
+
.then(data => {
|
|
75
|
+
this.$message.success('保存成功')
|
|
76
|
+
// 清空该页面
|
|
77
|
+
this.$store.commit(DELETE_PAGE, { pageId: this.data.ID })
|
|
78
|
+
// if (isGo) {
|
|
79
|
+
// this.backPage({ reload: true })
|
|
80
|
+
// }
|
|
81
|
+
})
|
|
82
|
+
.catch(err => {
|
|
83
|
+
this.$message.error(err.message || '处理失败')
|
|
84
|
+
})
|
|
85
|
+
},
|
|
86
|
+
// submitForm (content = this.content) {
|
|
87
|
+
// const { submitParams = {} } = this.$query
|
|
88
|
+
// const { submitParams: pageSubmitParams = {}, saveSuccessText, updateSuccessText, saveAction, updateAction } = this.pageConfig
|
|
89
|
+
// const params = {
|
|
90
|
+
// action: saveAction,
|
|
91
|
+
// entityId: this.$metaId,
|
|
92
|
+
// [`bean.${this.$metaKey}`]: this.data[this.$metaKey],
|
|
93
|
+
// 'bean.CONTENT': content
|
|
94
|
+
// // 'bean.CONTENT': this.content
|
|
95
|
+
// }
|
|
96
|
+
// // 组建formData 提交
|
|
97
|
+
// if (this.pageType === 'EDIT') params.action = updateAction
|
|
98
|
+
// this.$http.save({
|
|
99
|
+
// ...params,
|
|
100
|
+
// ...submitParams,
|
|
101
|
+
// ...this.$formatParams(pageSubmitParams)
|
|
102
|
+
// })
|
|
103
|
+
// .then(data => {
|
|
104
|
+
// this.$message.success(this.pageType === 'EDIT' ? updateSuccessText : saveSuccessText)
|
|
105
|
+
// // 清空该页面
|
|
106
|
+
// this.$store.commit(DELETE_PAGE, { pageId: this.data.ID })
|
|
107
|
+
// // if (isGo) {
|
|
108
|
+
// // this.backPage({ reload: true })
|
|
109
|
+
// // }
|
|
110
|
+
// })
|
|
111
|
+
// .catch(err => {
|
|
112
|
+
// this.$message.error(err.message || '处理失败')
|
|
113
|
+
// })
|
|
114
|
+
// },
|
|
115
|
+
getVisualPage (id, templateId) {
|
|
116
|
+
// eslint-disable-next-line no-async-promise-executor
|
|
117
|
+
return new Promise(async resolve => {
|
|
118
|
+
const params = {
|
|
119
|
+
link: 'page',
|
|
120
|
+
entityId: 'FM_PAGE'
|
|
121
|
+
}
|
|
122
|
+
if (id) {
|
|
123
|
+
params['scope.PAGE|ID'] = id
|
|
124
|
+
} else if (templateId) {
|
|
125
|
+
params.link = null
|
|
126
|
+
params['scope.CODE'] = templateId
|
|
127
|
+
} else {
|
|
128
|
+
resolve(null)
|
|
129
|
+
return
|
|
130
|
+
}
|
|
131
|
+
const res = await this.$http.find(params)
|
|
132
|
+
const data = res && res.data ? res.data : {}
|
|
133
|
+
const pageId = data.VISUAL_CONFIG_PAGE
|
|
134
|
+
const upPageId = data.UP_PAGE
|
|
135
|
+
if (pageId) {
|
|
136
|
+
resolve(pageId)
|
|
137
|
+
} else if (upPageId) {
|
|
138
|
+
this.getVisualPage(null, upPageId)
|
|
139
|
+
.then(pageId => {
|
|
140
|
+
resolve(pageId)
|
|
141
|
+
})
|
|
142
|
+
} else {
|
|
143
|
+
resolve(null)
|
|
144
|
+
}
|
|
145
|
+
})
|
|
146
|
+
},
|
|
147
|
+
getData () {
|
|
148
|
+
const { id } = this.$query
|
|
149
|
+
this.title = this.$query.title
|
|
150
|
+
this.$http.get({
|
|
151
|
+
link: 'page',
|
|
152
|
+
entityId: this.$metaId,
|
|
153
|
+
id
|
|
154
|
+
})
|
|
155
|
+
.then(data => {
|
|
156
|
+
if (data && data.data) {
|
|
157
|
+
const { id } = this.$query
|
|
158
|
+
this.getVisualPage(id)
|
|
159
|
+
.then(visualPageId => {
|
|
160
|
+
if (!visualPageId) {
|
|
161
|
+
this.$message.error('当前未配置可视化配置页面')
|
|
162
|
+
this.backPage()
|
|
163
|
+
} else {
|
|
164
|
+
this.visualPageId = visualPageId
|
|
165
|
+
}
|
|
166
|
+
})
|
|
167
|
+
this.content = data.data.CONTENT
|
|
168
|
+
if (this.content.length > 0) {
|
|
169
|
+
// eslint-disable-next-line no-eval
|
|
170
|
+
this.config = eval('(' + this.content + ')')
|
|
171
|
+
} else {
|
|
172
|
+
this.config = {}
|
|
173
|
+
}
|
|
174
|
+
// this.visualPageId = data.data['PAGE|VISUAL_CONFIG_PAGE']
|
|
175
|
+
this.pageMetaId = data.data.META_ID
|
|
176
|
+
this.data = { ...data.data }
|
|
177
|
+
}
|
|
178
|
+
})
|
|
179
|
+
}
|
|
180
|
+
// updateConfig (config) {
|
|
181
|
+
// this.content = JSON.stringify(config, null, '\t')
|
|
182
|
+
// }
|
|
183
|
+
},
|
|
184
|
+
created () {
|
|
185
|
+
this.getData()
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
</script>
|
|
189
|
+
<style scoped lang="scss">
|
|
190
|
+
.container {
|
|
191
|
+
display: flex;
|
|
192
|
+
flex-direction: column;
|
|
193
|
+
height: 100%;
|
|
194
|
+
overflow: auto;
|
|
195
|
+
}
|
|
196
|
+
.header {
|
|
197
|
+
// height: 50px;
|
|
198
|
+
margin-bottom: 20px;
|
|
199
|
+
}
|
|
200
|
+
.header-inner {
|
|
201
|
+
display: flex;
|
|
202
|
+
justify-content: space-between;
|
|
203
|
+
align-items: center;
|
|
204
|
+
background: var(--epx-bg-card);
|
|
205
|
+
position: absolute;
|
|
206
|
+
top: 0;
|
|
207
|
+
left: 2px;
|
|
208
|
+
width: 100%;
|
|
209
|
+
height: 50px;
|
|
210
|
+
padding: 0 16px;
|
|
211
|
+
box-sizing: border-box;
|
|
212
|
+
.title {
|
|
213
|
+
font-size: var(--epx-font-size-l);
|
|
214
|
+
color: #333333;
|
|
215
|
+
i {
|
|
216
|
+
font-size: 22px;
|
|
217
|
+
position: relative;
|
|
218
|
+
top: 2px;
|
|
219
|
+
cursor: pointer;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
.opera {
|
|
223
|
+
|
|
224
|
+
:deep(.el-button) {
|
|
225
|
+
padding: 8px 16px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.more {
|
|
229
|
+
font-size: var(--epx-font-size-xl);
|
|
230
|
+
padding: 5px 14px;
|
|
231
|
+
}
|
|
232
|
+
.opera-text {
|
|
233
|
+
border: 1px solid #999;
|
|
234
|
+
padding: 0 12px;
|
|
235
|
+
font-size: var(--epx-font-size-xl);
|
|
236
|
+
color: #8395a7;
|
|
237
|
+
line-height: 1;
|
|
238
|
+
cursor: pointer;
|
|
239
|
+
i {
|
|
240
|
+
margin-right: 4px;
|
|
241
|
+
}
|
|
242
|
+
margin-left: 24px;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
.tip {
|
|
247
|
+
color:#666;
|
|
248
|
+
margin: 16px 0;
|
|
249
|
+
display: flex;
|
|
250
|
+
justify-content: space-between;
|
|
251
|
+
}
|
|
252
|
+
.button-container {
|
|
253
|
+
margin-top: 16px;
|
|
254
|
+
margin-bottom: 16px;
|
|
255
|
+
text-align: center;
|
|
256
|
+
}
|
|
257
|
+
.visual-page {
|
|
258
|
+
flex:1;
|
|
259
|
+
overflow: auto;
|
|
260
|
+
|
|
261
|
+
:deep(.page-container) {
|
|
262
|
+
overflow: auto;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
}
|
|
266
|
+
.switch {
|
|
267
|
+
position: relative;
|
|
268
|
+
font-size: var(--epx-font-size-xl);
|
|
269
|
+
cursor: pointer;
|
|
270
|
+
}
|
|
271
|
+
</style>
|
|
272
|
+
<style >
|
|
273
|
+
.ace_editor {
|
|
274
|
+
float: right;
|
|
275
|
+
font-size: var(--epx-font-size-base);
|
|
276
|
+
flex: 1;
|
|
277
|
+
}
|
|
278
|
+
</style>
|