@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,47 @@
|
|
|
1
|
+
import '../../../../style.css';
|
|
2
|
+
import previewMixin from "../../widget-preview/Mixin.js";
|
|
3
|
+
import { resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, mergeProps, createCommentVNode } from "vue";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const _sfc_main = {
|
|
7
|
+
name: "epx-layout-column--preview",
|
|
8
|
+
mixins: [previewMixin],
|
|
9
|
+
computed: {
|
|
10
|
+
colSpan() {
|
|
11
|
+
const { xsspan, span } = this.widget;
|
|
12
|
+
const value = this.$isMobile ? xsspan || span : span;
|
|
13
|
+
return value === void 0 || value === null || value === "" ? void 0 : Number(value);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
// 所有拖拽方法已在 Mixin 中实现
|
|
17
|
+
};
|
|
18
|
+
const _hoisted_1 = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "epx-page-designer-widget-preview__no-widget"
|
|
21
|
+
};
|
|
22
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23
|
+
const _component_epx_page_designer_widget_preview_item = resolveComponent("epx-page-designer-widget-preview-item");
|
|
24
|
+
const _component_el_col = resolveComponent("el-col");
|
|
25
|
+
return openBlock(), createBlock(_component_el_col, {
|
|
26
|
+
span: $options.colSpan,
|
|
27
|
+
class: "epx-page-designer-widget-preview__drop-zone"
|
|
28
|
+
}, {
|
|
29
|
+
default: withCtx(() => [
|
|
30
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.childWidgetList, (childWidget) => {
|
|
31
|
+
return openBlock(), createBlock(_component_epx_page_designer_widget_preview_item, mergeProps({ ref_for: true }, _ctx.$forwardAttrs(_ctx.$attrs), {
|
|
32
|
+
class: "epx-layout__component",
|
|
33
|
+
designer: _ctx.designer,
|
|
34
|
+
key: childWidget.id,
|
|
35
|
+
widget: childWidget,
|
|
36
|
+
"parent-widget": _ctx.widget
|
|
37
|
+
}), null, 16, ["designer", "widget", "parent-widget"]);
|
|
38
|
+
}), 128)),
|
|
39
|
+
_ctx.childWidgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_1, "拖拽组件到这里")) : createCommentVNode("", true)
|
|
40
|
+
]),
|
|
41
|
+
_: 1
|
|
42
|
+
}, 8, ["span"]);
|
|
43
|
+
}
|
|
44
|
+
const LayoutColumnPreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4c8268c2"]]);
|
|
45
|
+
export {
|
|
46
|
+
LayoutColumnPreview as default
|
|
47
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import '../../../../style.css';
|
|
2
|
+
import previewMixin from "../../widget-preview/Mixin.js";
|
|
3
|
+
import { resolveComponent, openBlock, createElementBlock, createVNode, normalizeStyle, withCtx, Fragment, renderList, createBlock, mergeProps } from "vue";
|
|
4
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const _sfc_main = {
|
|
6
|
+
name: "epx-layout-component--preview",
|
|
7
|
+
mixins: [previewMixin],
|
|
8
|
+
layout: "12:12",
|
|
9
|
+
gutter: 10,
|
|
10
|
+
computed: {
|
|
11
|
+
gutter() {
|
|
12
|
+
const { gutter = this.$options.gutter } = this.$configs;
|
|
13
|
+
return gutter;
|
|
14
|
+
},
|
|
15
|
+
draglist: {
|
|
16
|
+
get() {
|
|
17
|
+
return [];
|
|
18
|
+
},
|
|
19
|
+
set(v) {
|
|
20
|
+
this.designer.addWidget(v[0], this.widget);
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
colAttribute() {
|
|
24
|
+
return (component = {}) => {
|
|
25
|
+
const { xsspan, span } = component;
|
|
26
|
+
return Number((this.$isMobile ? xsspan : span) || this.$configs.columnWidth) || 24;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
created() {
|
|
31
|
+
if (this.childWidgetList.length === 0) {
|
|
32
|
+
this.designer.updateWidgetConfig(this.widget.id, { layout: "12:12" });
|
|
33
|
+
this.designer.addWidgets([
|
|
34
|
+
{ id: "layout-column_" + this.$util.genId(), title: "布局", contentType: "layout-column", span: "12" },
|
|
35
|
+
{ id: "layout-column_" + this.$util.genId(), title: "布局", contentType: "layout-column", span: "12" }
|
|
36
|
+
], this.widget, { defaultSelected: false });
|
|
37
|
+
} else {
|
|
38
|
+
const layoutArr = [];
|
|
39
|
+
const components = this.childWidgetList.map((item) => {
|
|
40
|
+
const span = item.span || this.$configs.columnWidth || 24;
|
|
41
|
+
layoutArr.push(span);
|
|
42
|
+
if (item.contentType === "layout-column") {
|
|
43
|
+
return item;
|
|
44
|
+
} else {
|
|
45
|
+
({ ...item });
|
|
46
|
+
return {
|
|
47
|
+
id: "layout-column_" + this.$util.genId(),
|
|
48
|
+
title: "布局",
|
|
49
|
+
contentType: "layout-column",
|
|
50
|
+
span,
|
|
51
|
+
xsspan: item.xsspan,
|
|
52
|
+
items: [item]
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
this.designer.updateWidget(this.widget.id, { items: components });
|
|
57
|
+
this.designer.updateWidgetConfig(this.widget.id, { layout: layoutArr.join(":") });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const _hoisted_1 = { class: "layout-preview" };
|
|
62
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
63
|
+
const _component_epx_layout_column__preview = resolveComponent("epx-layout-column--preview");
|
|
64
|
+
const _component_widget_preview = resolveComponent("widget-preview");
|
|
65
|
+
const _component_el_col = resolveComponent("el-col");
|
|
66
|
+
const _component_el_row = resolveComponent("el-row");
|
|
67
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
68
|
+
createVNode(_component_el_row, {
|
|
69
|
+
style: normalizeStyle(_ctx.widgetStyle),
|
|
70
|
+
gutter: $options.gutter,
|
|
71
|
+
"data-id": _ctx.widget.id
|
|
72
|
+
}, {
|
|
73
|
+
default: withCtx(() => [
|
|
74
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.childWidgetList, (childWidget) => {
|
|
75
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
76
|
+
key: childWidget.id
|
|
77
|
+
}, [
|
|
78
|
+
childWidget.contentType === "layout-column" || childWidget.contentType === "column" ? (openBlock(), createBlock(_component_epx_layout_column__preview, mergeProps({
|
|
79
|
+
key: 0,
|
|
80
|
+
ref_for: true
|
|
81
|
+
}, _ctx.$forwardAttrs(_ctx.$attrs), {
|
|
82
|
+
designer: _ctx.designer,
|
|
83
|
+
widget: childWidget,
|
|
84
|
+
"parent-widget": _ctx.widget
|
|
85
|
+
}), null, 16, ["designer", "widget", "parent-widget"])) : (openBlock(), createBlock(_component_el_col, {
|
|
86
|
+
key: childWidget.id,
|
|
87
|
+
column: "false",
|
|
88
|
+
span: $options.colAttribute(childWidget)
|
|
89
|
+
}, {
|
|
90
|
+
default: withCtx(() => [
|
|
91
|
+
createVNode(_component_widget_preview, mergeProps({ ref_for: true }, _ctx.$forwardAttrs(_ctx.$attrs), {
|
|
92
|
+
class: "epx-layout__component",
|
|
93
|
+
designer: _ctx.designer,
|
|
94
|
+
widget: childWidget,
|
|
95
|
+
"parent-widget": _ctx.widget
|
|
96
|
+
}), null, 16, ["designer", "widget", "parent-widget"])
|
|
97
|
+
]),
|
|
98
|
+
_: 2
|
|
99
|
+
}, 1032, ["span"]))
|
|
100
|
+
], 64);
|
|
101
|
+
}), 128))
|
|
102
|
+
]),
|
|
103
|
+
_: 1
|
|
104
|
+
}, 8, ["style", "gutter", "data-id"])
|
|
105
|
+
]);
|
|
106
|
+
}
|
|
107
|
+
const LayoutPreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
108
|
+
export {
|
|
109
|
+
LayoutPreview as default
|
|
110
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import '../../../../style.css';
|
|
2
|
+
import previewMixin from "../../widget-preview/Mixin.js";
|
|
3
|
+
import { openBlock, createElementBlock, normalizeStyle, normalizeClass, createCommentVNode, createElementVNode, toDisplayString } from "vue";
|
|
4
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const _sfc_main = {
|
|
6
|
+
name: "epx-num-statistic--preview",
|
|
7
|
+
mixins: [previewMixin],
|
|
8
|
+
props: {
|
|
9
|
+
theme: String
|
|
10
|
+
},
|
|
11
|
+
data() {
|
|
12
|
+
return {
|
|
13
|
+
activeName: "",
|
|
14
|
+
counts: {}
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
computed: {
|
|
18
|
+
compTheme() {
|
|
19
|
+
return this.$configs.theme || this.theme;
|
|
20
|
+
},
|
|
21
|
+
type() {
|
|
22
|
+
const { type = this.$isMobile ? "" : "card" } = this.$configs;
|
|
23
|
+
return type !== "default" ? type : "";
|
|
24
|
+
},
|
|
25
|
+
componentType() {
|
|
26
|
+
const { type } = this.$configs;
|
|
27
|
+
return type || "card";
|
|
28
|
+
},
|
|
29
|
+
classNameList() {
|
|
30
|
+
const { cardLayout, iconPosition, "justify-content": justify } = this.$configs;
|
|
31
|
+
if (cardLayout) {
|
|
32
|
+
return cardLayout.split("-").map((item) => "epx-card-num--" + item);
|
|
33
|
+
} else {
|
|
34
|
+
const classNameList = [];
|
|
35
|
+
if (iconPosition) {
|
|
36
|
+
classNameList.push("epx-card-num--icon-" + iconPosition);
|
|
37
|
+
}
|
|
38
|
+
if (justify) {
|
|
39
|
+
classNameList.push("epx-card-num--" + justify);
|
|
40
|
+
}
|
|
41
|
+
return classNameList;
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
titleFontStyle() {
|
|
45
|
+
const { titleFontStyle = {}, titleColor, titleFontSize } = this.$configs;
|
|
46
|
+
return { fontSize: titleFontSize, color: titleColor, ...titleFontStyle };
|
|
47
|
+
},
|
|
48
|
+
countFontStyle() {
|
|
49
|
+
const { countFontStyle = {}, countFontSize, countColor } = this.$configs;
|
|
50
|
+
return { fontSize: countFontSize, color: countColor, ...countFontStyle };
|
|
51
|
+
},
|
|
52
|
+
unitFontStyle() {
|
|
53
|
+
const { unitFontStyle = {} } = this.$configs;
|
|
54
|
+
return { ...unitFontStyle };
|
|
55
|
+
},
|
|
56
|
+
contentClassName() {
|
|
57
|
+
const { cardLayout, titleNumOrder, orientation } = this.$configs;
|
|
58
|
+
if (cardLayout) {
|
|
59
|
+
return "epx-card-num__content--" + titleNumOrder;
|
|
60
|
+
}
|
|
61
|
+
return `epx-card-num__content--${orientation || "vertical"}`;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
const _hoisted_1 = ["src"];
|
|
66
|
+
const _hoisted_2 = { class: "epx-card-num__num" };
|
|
67
|
+
const _hoisted_3 = { class: "epx-num-item__title" };
|
|
68
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
69
|
+
return $options.componentType === "card" ? (openBlock(), createElementBlock("div", {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: normalizeClass(["epx-card-num", { "is-border": _ctx.$configs.border }, `epx-card-num--${$options.compTheme}`, `epx-card-num--shadow-${_ctx.$configs.shadow}`, ...$options.classNameList]),
|
|
72
|
+
style: normalizeStyle({ ..._ctx.style })
|
|
73
|
+
}, [
|
|
74
|
+
_ctx.$configs.iconType !== "image" && _ctx.$configs.icon || _ctx.$configs.iconType === "image" && _ctx.$configs.imgUrl ? (openBlock(), createElementBlock("span", {
|
|
75
|
+
key: 0,
|
|
76
|
+
class: normalizeClass(["epx-card-num__icon", { "epx-card-num__icon--showBg": _ctx.$configs.iconType !== "image" && _ctx.$configs.showIconBg }]),
|
|
77
|
+
style: normalizeStyle({ backgroundColor: _ctx.$configs.iconType !== "image" && _ctx.$configs.iconColor && _ctx.$configs.showIconBg ? _ctx.$configs.iconColor : "" })
|
|
78
|
+
}, [
|
|
79
|
+
_ctx.$configs.iconType === "image" ? (openBlock(), createElementBlock("img", {
|
|
80
|
+
key: 0,
|
|
81
|
+
style: normalizeStyle({ width: _ctx.$configs.iconSize + "px", height: _ctx.$configs.iconSize + "px" }),
|
|
82
|
+
src: _ctx.$util.getFileUrl(_ctx.$configs.imgUrl)
|
|
83
|
+
}, null, 12, _hoisted_1)) : (openBlock(), createElementBlock("i", {
|
|
84
|
+
key: 1,
|
|
85
|
+
class: normalizeClass([_ctx.$configs.icon]),
|
|
86
|
+
style: normalizeStyle({ fontSize: _ctx.$configs.iconSize + "px", color: _ctx.$configs.iconColor && !_ctx.$configs.showIconBg ? _ctx.$configs.iconColor : "" })
|
|
87
|
+
}, null, 6))
|
|
88
|
+
], 6)) : createCommentVNode("", true),
|
|
89
|
+
createElementVNode("div", {
|
|
90
|
+
class: normalizeClass(["epx-card-num__content", $options.contentClassName])
|
|
91
|
+
}, [
|
|
92
|
+
createElementVNode("font", {
|
|
93
|
+
class: "epx-card-num__title",
|
|
94
|
+
style: normalizeStyle($options.titleFontStyle)
|
|
95
|
+
}, toDisplayString(_ctx.widget.title || _ctx.$configs.componentName || this.widget.title), 5),
|
|
96
|
+
createElementVNode("span", _hoisted_2, [
|
|
97
|
+
createElementVNode("font", {
|
|
98
|
+
style: normalizeStyle($options.countFontStyle)
|
|
99
|
+
}, toDisplayString(0), 4),
|
|
100
|
+
_ctx.$configs.suffix ? (openBlock(), createElementBlock("font", {
|
|
101
|
+
key: 0,
|
|
102
|
+
class: "epx-card-num__suffix",
|
|
103
|
+
style: normalizeStyle($options.unitFontStyle)
|
|
104
|
+
}, toDisplayString(_ctx.$configs.suffix), 5)) : createCommentVNode("", true)
|
|
105
|
+
])
|
|
106
|
+
], 2)
|
|
107
|
+
], 6)) : (openBlock(), createElementBlock("div", {
|
|
108
|
+
key: 1,
|
|
109
|
+
class: "epx-num-item",
|
|
110
|
+
style: normalizeStyle(_ctx.style)
|
|
111
|
+
}, [
|
|
112
|
+
createElementVNode("p", _hoisted_3, [
|
|
113
|
+
createElementVNode("i", {
|
|
114
|
+
class: normalizeClass(["epx-num-item__icon", _ctx.$configs.icon])
|
|
115
|
+
}, null, 2),
|
|
116
|
+
createElementVNode("i", {
|
|
117
|
+
class: "epx-num-item__text",
|
|
118
|
+
style: normalizeStyle($options.titleFontStyle)
|
|
119
|
+
}, toDisplayString(_ctx.$configs.title || _ctx.$configs.componentName || this.widget.title), 5)
|
|
120
|
+
]),
|
|
121
|
+
createElementVNode("p", {
|
|
122
|
+
class: "epx-num-item__counts",
|
|
123
|
+
style: normalizeStyle($options.countFontStyle)
|
|
124
|
+
}, [..._cache[0] || (_cache[0] = [
|
|
125
|
+
createElementVNode("span", null, "0", -1)
|
|
126
|
+
])], 4)
|
|
127
|
+
], 4));
|
|
128
|
+
}
|
|
129
|
+
const NumPreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
130
|
+
export {
|
|
131
|
+
NumPreview as default
|
|
132
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import '../../../../style.css';
|
|
2
|
+
import previewMixin from "../../widget-preview/Mixin.js";
|
|
3
|
+
import { resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementBlock, Fragment, renderList, createVNode, mergeProps } from "vue";
|
|
4
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const _sfc_main = {
|
|
6
|
+
name: "epx-page-tabs--preview",
|
|
7
|
+
mixins: [previewMixin],
|
|
8
|
+
data() {
|
|
9
|
+
return {
|
|
10
|
+
activeName: "",
|
|
11
|
+
counts: {}
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
computed: {
|
|
15
|
+
type() {
|
|
16
|
+
const { type = this.$isMobile ? "" : "card" } = this.$configs;
|
|
17
|
+
return type !== "default" ? type : "";
|
|
18
|
+
},
|
|
19
|
+
componentLabel() {
|
|
20
|
+
return (component) => {
|
|
21
|
+
const count = this.counts[component.id];
|
|
22
|
+
if (count !== void 0) {
|
|
23
|
+
return `${component.title}(${count || 0})`;
|
|
24
|
+
}
|
|
25
|
+
return component.title;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
watch: {
|
|
30
|
+
childWidgetList: {
|
|
31
|
+
handler(v) {
|
|
32
|
+
const item = v.find((item2) => item2.id === this.activeName);
|
|
33
|
+
if (!item) this.activeName = v[0].id;
|
|
34
|
+
},
|
|
35
|
+
immediate: true
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
40
|
+
const _component_widget_preview = resolveComponent("widget-preview");
|
|
41
|
+
const _component_el_tab_pane = resolveComponent("el-tab-pane");
|
|
42
|
+
const _component_el_tabs = resolveComponent("el-tabs");
|
|
43
|
+
return openBlock(), createBlock(_component_el_tabs, {
|
|
44
|
+
modelValue: $data.activeName,
|
|
45
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.activeName = $event),
|
|
46
|
+
style: normalizeStyle(_ctx.style),
|
|
47
|
+
class: "epx-page-tabs",
|
|
48
|
+
type: $options.type
|
|
49
|
+
}, {
|
|
50
|
+
default: withCtx(() => [
|
|
51
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.childWidgetList, (childWidget) => {
|
|
52
|
+
return openBlock(), createBlock(_component_el_tab_pane, {
|
|
53
|
+
key: childWidget.id,
|
|
54
|
+
label: $options.componentLabel(childWidget),
|
|
55
|
+
name: childWidget.id,
|
|
56
|
+
lazy: ""
|
|
57
|
+
}, {
|
|
58
|
+
default: withCtx(() => [
|
|
59
|
+
createVNode(_component_widget_preview, mergeProps({ ref_for: true }, _ctx.$forwardAttrs(_ctx.$attrs), {
|
|
60
|
+
designer: _ctx.designer,
|
|
61
|
+
widget: childWidget,
|
|
62
|
+
"parent-widget": _ctx.widget
|
|
63
|
+
}), null, 16, ["designer", "widget", "parent-widget"])
|
|
64
|
+
]),
|
|
65
|
+
_: 2
|
|
66
|
+
}, 1032, ["label", "name"]);
|
|
67
|
+
}), 128))
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
}, 8, ["modelValue", "style", "type"]);
|
|
71
|
+
}
|
|
72
|
+
const PageTabsPreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
73
|
+
export {
|
|
74
|
+
PageTabsPreview as default
|
|
75
|
+
};
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import '../../../../style.css';
|
|
2
|
+
import previewMixin from "../../widget-preview/Mixin.js";
|
|
3
|
+
import { resolveComponent, openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, normalizeStyle, toDisplayString, renderSlot, createTextVNode, createVNode, mergeProps } from "vue";
|
|
4
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const _sfc_main = {
|
|
6
|
+
name: "epx-step--preview",
|
|
7
|
+
mixins: [previewMixin],
|
|
8
|
+
data() {
|
|
9
|
+
return {
|
|
10
|
+
active: 0,
|
|
11
|
+
selected: 1
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
computed: {
|
|
15
|
+
componentLabel() {
|
|
16
|
+
return (component) => {
|
|
17
|
+
const count = this.counts[component.id];
|
|
18
|
+
if (count !== void 0) {
|
|
19
|
+
return `${component.title}(${count || 0})`;
|
|
20
|
+
}
|
|
21
|
+
return component.title;
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
activeStep() {
|
|
25
|
+
return this.childWidgetList[this.active - 0];
|
|
26
|
+
},
|
|
27
|
+
stepDescription() {
|
|
28
|
+
return (step) => {
|
|
29
|
+
const stepConfigs = this.designer.widgetConfig[step.id];
|
|
30
|
+
if (stepConfigs) {
|
|
31
|
+
return stepConfigs.description;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
stepItemIconStyle() {
|
|
36
|
+
return (index) => {
|
|
37
|
+
const { type, activeColor, finishColor, waitColor, activeBgImg, finishBgImg, waitBgImg, stepItemSize, stepFontStyle = {} } = this.$configs;
|
|
38
|
+
const style = { ...stepFontStyle };
|
|
39
|
+
if (stepItemSize) {
|
|
40
|
+
style.width = stepItemSize + "px";
|
|
41
|
+
style.height = stepItemSize + "px";
|
|
42
|
+
style.lineHeight = (type === "solid" ? stepItemSize : stepItemSize - 4) + "px";
|
|
43
|
+
}
|
|
44
|
+
if (this.active === index) {
|
|
45
|
+
if (activeColor) {
|
|
46
|
+
style.borderColor = activeColor;
|
|
47
|
+
if (type === "solid") {
|
|
48
|
+
style.backgroundColor = activeColor;
|
|
49
|
+
} else {
|
|
50
|
+
style.color = activeColor;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
if (activeBgImg) {
|
|
54
|
+
style.backgroundImage = `url(${this.$util.getFileUrl(activeBgImg)})`;
|
|
55
|
+
}
|
|
56
|
+
} else if (this.active > index) {
|
|
57
|
+
if (finishColor) {
|
|
58
|
+
style.borderColor = finishColor;
|
|
59
|
+
if (type === "solid") {
|
|
60
|
+
style.background = finishColor;
|
|
61
|
+
} else {
|
|
62
|
+
style.color = finishColor;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (finishBgImg) {
|
|
66
|
+
style.backgroundImage = `url(${this.$util.getFileUrl(finishBgImg)}) no-repeat center 100% 100%`;
|
|
67
|
+
}
|
|
68
|
+
} else {
|
|
69
|
+
if (waitColor) {
|
|
70
|
+
style.borderColor = waitColor;
|
|
71
|
+
if (type === "solid") {
|
|
72
|
+
style.background = waitColor;
|
|
73
|
+
} else {
|
|
74
|
+
style.color = waitColor;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if (waitBgImg) {
|
|
78
|
+
style.backgroundImage = `url(${this.$util.getFileUrl(waitBgImg)}) no-repeat center 100% 100%`;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return style;
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
stepItemTextStyle() {
|
|
85
|
+
return (index) => {
|
|
86
|
+
const { activeColor, finishColor, waitColor, stepTitleFontStyle } = this.$configs;
|
|
87
|
+
const style = { ...stepTitleFontStyle };
|
|
88
|
+
if (this.selected === index) {
|
|
89
|
+
if (this.active === index) {
|
|
90
|
+
if (activeColor) {
|
|
91
|
+
style.color = activeColor;
|
|
92
|
+
}
|
|
93
|
+
} else if (this.active > index) {
|
|
94
|
+
if (finishColor) {
|
|
95
|
+
style.color = finishColor;
|
|
96
|
+
}
|
|
97
|
+
} else {
|
|
98
|
+
if (waitColor) {
|
|
99
|
+
style.color = waitColor;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return style;
|
|
104
|
+
};
|
|
105
|
+
},
|
|
106
|
+
stepItemDescriptionStyle() {
|
|
107
|
+
const { stepDescriptionFontStyle = {} } = this.$configs;
|
|
108
|
+
return stepDescriptionFontStyle;
|
|
109
|
+
},
|
|
110
|
+
stepItemLineStyle() {
|
|
111
|
+
return (index) => {
|
|
112
|
+
const { finishColor } = this.$configs;
|
|
113
|
+
if (this.active > index) {
|
|
114
|
+
if (finishColor) {
|
|
115
|
+
return { color: finishColor };
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return {};
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
watch: {
|
|
123
|
+
childWidgetList: {
|
|
124
|
+
handler(v) {
|
|
125
|
+
const item = v.find((item2) => item2.id === this.activeName);
|
|
126
|
+
if (!item) this.activeName = v[0].id;
|
|
127
|
+
},
|
|
128
|
+
immediate: true
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
methods: {
|
|
132
|
+
switchStep(index) {
|
|
133
|
+
this.active = index;
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
created() {
|
|
137
|
+
const activeStep = Number(this.$configs.activeStep - 1);
|
|
138
|
+
if (activeStep) {
|
|
139
|
+
this.active = activeStep;
|
|
140
|
+
this.selected = activeStep;
|
|
141
|
+
}
|
|
142
|
+
if (this.childWidgetList.length === 0) {
|
|
143
|
+
this.designer.addWidgets([
|
|
144
|
+
{ id: "stepitem_" + this.$util.genId(), title: "步骤项1", contentType: "step-item" },
|
|
145
|
+
{ id: "stepitem_" + this.$util.genId(), title: "步骤项2", contentType: "step-item" }
|
|
146
|
+
], this.widget, { defaultSelected: false });
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
const _hoisted_1 = { class: "epx-step" };
|
|
151
|
+
const _hoisted_2 = { class: "epx-step__steps" };
|
|
152
|
+
const _hoisted_3 = ["onClick"];
|
|
153
|
+
const _hoisted_4 = { class: "epx-step-item__head" };
|
|
154
|
+
const _hoisted_5 = { class: "epx-step-item__main" };
|
|
155
|
+
const _hoisted_6 = { class: "epx-step__content" };
|
|
156
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
157
|
+
const _component_widget_preview = resolveComponent("widget-preview");
|
|
158
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
159
|
+
createElementVNode("div", _hoisted_2, [
|
|
160
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.childWidgetList, (step, index) => {
|
|
161
|
+
return openBlock(), createElementBlock("div", {
|
|
162
|
+
key: step.id,
|
|
163
|
+
class: normalizeClass(["epx-step-item", { "epx-step-item--solid": _ctx.$configs.type === "solid", "is-selected": $data.selected === index, "is-active": $data.active == index, "is-finish": $data.active > index }]),
|
|
164
|
+
onClick: ($event) => $options.switchStep(index)
|
|
165
|
+
}, [
|
|
166
|
+
createElementVNode("div", _hoisted_4, [
|
|
167
|
+
createElementVNode("div", {
|
|
168
|
+
class: "epx-step-item__line",
|
|
169
|
+
style: normalizeStyle($options.stepItemLineStyle(index))
|
|
170
|
+
}, null, 4),
|
|
171
|
+
createElementVNode("div", {
|
|
172
|
+
class: "epx-step-item__icon",
|
|
173
|
+
style: normalizeStyle($options.stepItemIconStyle(index))
|
|
174
|
+
}, [
|
|
175
|
+
createElementVNode("span", null, toDisplayString(index + 1), 1)
|
|
176
|
+
], 4)
|
|
177
|
+
]),
|
|
178
|
+
createElementVNode("div", _hoisted_5, [
|
|
179
|
+
createElementVNode("span", {
|
|
180
|
+
class: "epx-step-item__text",
|
|
181
|
+
style: normalizeStyle($options.stepItemTextStyle(index))
|
|
182
|
+
}, [
|
|
183
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
184
|
+
createTextVNode(toDisplayString(step.title), 1)
|
|
185
|
+
])
|
|
186
|
+
], 4),
|
|
187
|
+
createElementVNode("p", {
|
|
188
|
+
class: "epx-step-item__description",
|
|
189
|
+
style: normalizeStyle($options.stepItemDescriptionStyle)
|
|
190
|
+
}, toDisplayString($options.stepDescription(step)), 5)
|
|
191
|
+
])
|
|
192
|
+
], 10, _hoisted_3);
|
|
193
|
+
}), 128))
|
|
194
|
+
]),
|
|
195
|
+
createElementVNode("div", _hoisted_6, [
|
|
196
|
+
createVNode(_component_widget_preview, mergeProps(_ctx.$forwardAttrs(_ctx.$attrs), {
|
|
197
|
+
designer: _ctx.designer,
|
|
198
|
+
"parent-widget": _ctx.widget,
|
|
199
|
+
widget: $options.activeStep
|
|
200
|
+
}), null, 16, ["designer", "parent-widget", "widget"])
|
|
201
|
+
])
|
|
202
|
+
]);
|
|
203
|
+
}
|
|
204
|
+
const StepPreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
205
|
+
export {
|
|
206
|
+
StepPreview as default
|
|
207
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import '../../../../style.css';
|
|
2
|
+
import previewMixin from "../../widget-preview/Mixin.js";
|
|
3
|
+
import { resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementBlock, Fragment, renderList, createVNode, mergeProps, createElementVNode, normalizeClass, createCommentVNode, createTextVNode, toDisplayString } from "vue";
|
|
4
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const _sfc_main = {
|
|
6
|
+
name: "epx-tabs--preview",
|
|
7
|
+
mixins: [previewMixin],
|
|
8
|
+
data() {
|
|
9
|
+
return {
|
|
10
|
+
activeName: "",
|
|
11
|
+
counts: {}
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
computed: {
|
|
15
|
+
type() {
|
|
16
|
+
let { type } = this.$configs;
|
|
17
|
+
if (!type) {
|
|
18
|
+
type = this.$isMobile ? "" : "card";
|
|
19
|
+
}
|
|
20
|
+
return type === "default" ? "" : type;
|
|
21
|
+
},
|
|
22
|
+
componentLabel() {
|
|
23
|
+
return (component) => {
|
|
24
|
+
const count = this.counts[component.id];
|
|
25
|
+
if (count !== void 0) {
|
|
26
|
+
return `${component.title}(${count || 0})`;
|
|
27
|
+
}
|
|
28
|
+
return component.title;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
watch: {
|
|
33
|
+
childWidgetList: {
|
|
34
|
+
handler(v) {
|
|
35
|
+
const item = v.find((item2) => item2.id === this.activeName);
|
|
36
|
+
if (!item) this.activeName = v[0].id;
|
|
37
|
+
},
|
|
38
|
+
immediate: true
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
created() {
|
|
42
|
+
if (this.childWidgetList.length === 0) {
|
|
43
|
+
this.designer.addWidgets([
|
|
44
|
+
{ id: "tabpane_" + this.$util.genId(), title: "标签项1", contentType: "tab-pane" },
|
|
45
|
+
{ id: "tabpane_" + this.$util.genId(), title: "标签项2", contentType: "tab-pane" }
|
|
46
|
+
], this.widget, { defaultSelected: false });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
51
|
+
const _component_widget_preview = resolveComponent("widget-preview");
|
|
52
|
+
const _component_el_tab_pane = resolveComponent("el-tab-pane");
|
|
53
|
+
const _component_el_tabs = resolveComponent("el-tabs");
|
|
54
|
+
return openBlock(), createBlock(_component_el_tabs, {
|
|
55
|
+
style: normalizeStyle(_ctx.widgetStyle),
|
|
56
|
+
modelValue: $data.activeName,
|
|
57
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.activeName = $event),
|
|
58
|
+
class: "epx-page-tabs",
|
|
59
|
+
type: $options.type,
|
|
60
|
+
tabPosition: _ctx.$configs.tabPosition
|
|
61
|
+
}, {
|
|
62
|
+
default: withCtx(() => [
|
|
63
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.childWidgetList, (tab) => {
|
|
64
|
+
return openBlock(), createBlock(_component_el_tab_pane, {
|
|
65
|
+
key: tab.id,
|
|
66
|
+
name: tab.id,
|
|
67
|
+
lazy: ""
|
|
68
|
+
}, {
|
|
69
|
+
label: withCtx(() => [
|
|
70
|
+
createElementVNode("span", null, [
|
|
71
|
+
tab.icon ? (openBlock(), createElementBlock("i", {
|
|
72
|
+
key: 0,
|
|
73
|
+
class: normalizeClass(tab.icon)
|
|
74
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
75
|
+
createTextVNode(" " + toDisplayString($options.componentLabel(tab)), 1)
|
|
76
|
+
])
|
|
77
|
+
]),
|
|
78
|
+
default: withCtx(() => [
|
|
79
|
+
createVNode(_component_widget_preview, mergeProps({ ref_for: true }, _ctx.$forwardAttrs(_ctx.$attrs), {
|
|
80
|
+
designer: _ctx.designer,
|
|
81
|
+
"parent-widget": _ctx.widget,
|
|
82
|
+
widget: tab
|
|
83
|
+
}), null, 16, ["designer", "parent-widget", "widget"])
|
|
84
|
+
]),
|
|
85
|
+
_: 2
|
|
86
|
+
}, 1032, ["name"]);
|
|
87
|
+
}), 128))
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 8, ["style", "modelValue", "type", "tabPosition"]);
|
|
91
|
+
}
|
|
92
|
+
const TabsPreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
93
|
+
export {
|
|
94
|
+
TabsPreview as default
|
|
95
|
+
};
|