@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,194 @@
|
|
|
1
|
+
import '../../../../style.css';
|
|
2
|
+
import previewMixin from "../../widget-preview/Mixin.js";
|
|
3
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, toDisplayString, createTextVNode, createCommentVNode, createBlock, withCtx, createVNode } from "vue";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const _sfc_main = {
|
|
7
|
+
name: "epx-add-form-item--preview",
|
|
8
|
+
mixins: [previewMixin],
|
|
9
|
+
props: {
|
|
10
|
+
formConfigs: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default() {
|
|
13
|
+
return {};
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
pageType: String
|
|
17
|
+
},
|
|
18
|
+
data() {
|
|
19
|
+
return {
|
|
20
|
+
isFold: false,
|
|
21
|
+
fieldsConfigs: [],
|
|
22
|
+
data: {}
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
computed: {
|
|
26
|
+
// 与运行时 AddFormItem 一致,从 store 取屏幕档位(此前未定义,渲染期报未定义属性)
|
|
27
|
+
isPcMd() {
|
|
28
|
+
return this.$store.state.config.isPcMd;
|
|
29
|
+
},
|
|
30
|
+
isPcLg() {
|
|
31
|
+
return this.$store.state.config.isPcLg;
|
|
32
|
+
},
|
|
33
|
+
componentType() {
|
|
34
|
+
const { componentType } = this.$configs;
|
|
35
|
+
if (this.isEdit) return "EDIT";
|
|
36
|
+
if (!componentType) {
|
|
37
|
+
return this.pageType;
|
|
38
|
+
} else {
|
|
39
|
+
return componentType;
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
currentMetaId() {
|
|
43
|
+
const { metaId = this.designer.page.metaId } = this.$configs;
|
|
44
|
+
return metaId;
|
|
45
|
+
},
|
|
46
|
+
column() {
|
|
47
|
+
let { column = this.formConfigs.column, columnAuto = false } = this.$configs;
|
|
48
|
+
if (columnAuto) {
|
|
49
|
+
if (this.isPcMd) {
|
|
50
|
+
column = column < 2 ? column : 2;
|
|
51
|
+
} else if (this.isPcLg) {
|
|
52
|
+
column = column < 3 ? column : 3;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return column;
|
|
56
|
+
},
|
|
57
|
+
labelWidth() {
|
|
58
|
+
const { labelWidthType, labelWidth } = this.$configs;
|
|
59
|
+
return labelWidthType === "auto" ? "auto" : labelWidth;
|
|
60
|
+
},
|
|
61
|
+
valueWidth() {
|
|
62
|
+
const { valueWidthType, valueWidth } = this.$configs;
|
|
63
|
+
return valueWidthType === "auto" ? "auto" : valueWidth;
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
watch: {
|
|
67
|
+
componentType() {
|
|
68
|
+
this.getFieldsConfigs();
|
|
69
|
+
},
|
|
70
|
+
"$configs.fields": {
|
|
71
|
+
handler(v) {
|
|
72
|
+
this.getFieldsConfigs();
|
|
73
|
+
},
|
|
74
|
+
immediate: true
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
methods: {
|
|
78
|
+
init() {
|
|
79
|
+
this.getFieldsConfigs();
|
|
80
|
+
},
|
|
81
|
+
getFieldsConfigs() {
|
|
82
|
+
const { fields } = this.$configs;
|
|
83
|
+
this.$FieldFactory.createFields({
|
|
84
|
+
metaId: this.$metaId,
|
|
85
|
+
pageType: this.componentType,
|
|
86
|
+
fields,
|
|
87
|
+
type: "form"
|
|
88
|
+
}).then((data) => {
|
|
89
|
+
this.fieldsConfigs = [...data];
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
editFn() {
|
|
93
|
+
this.getFieldsConfigs("EDIT");
|
|
94
|
+
this.isEdit = true;
|
|
95
|
+
this.isFold = false;
|
|
96
|
+
this.loadForm = false;
|
|
97
|
+
this.$nextTick(() => {
|
|
98
|
+
this.loadForm = true;
|
|
99
|
+
});
|
|
100
|
+
},
|
|
101
|
+
cancel(finish) {
|
|
102
|
+
this.isEdit = false;
|
|
103
|
+
this.$emit("cancel-edit", finish);
|
|
104
|
+
this.getFieldsConfigs();
|
|
105
|
+
if (finish && this.form) {
|
|
106
|
+
this.form.$refesh();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
created() {
|
|
111
|
+
this.init();
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
const _hoisted_1 = { class: "epx-add-form-item__title" };
|
|
115
|
+
const _hoisted_2 = { class: "epx-add-form-item__title-operate fr" };
|
|
116
|
+
const _hoisted_3 = {
|
|
117
|
+
key: 0,
|
|
118
|
+
class: "epx-add-form-item__note"
|
|
119
|
+
};
|
|
120
|
+
const _hoisted_4 = { class: "epx-add-form-item__note-html" };
|
|
121
|
+
const _hoisted_5 = ["innerHTML"];
|
|
122
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
123
|
+
const _component_el_button = resolveComponent("el-button");
|
|
124
|
+
const _component_epx_table_form = resolveComponent("epx-table-form");
|
|
125
|
+
return openBlock(), createElementBlock("div", {
|
|
126
|
+
class: normalizeClass(["epx-add-form-item", { "is-fold": $data.isFold }]),
|
|
127
|
+
style: normalizeStyle(_ctx.$configs.style)
|
|
128
|
+
}, [
|
|
129
|
+
createElementVNode("p", {
|
|
130
|
+
class: normalizeClass(["epx-add-form-item__header", `epx-add-form-item__header--${_ctx.$configs.formTitleStyle}`])
|
|
131
|
+
}, [
|
|
132
|
+
createElementVNode("span", _hoisted_1, toDisplayString(_ctx.$configs.componentName || _ctx.widget.title), 1),
|
|
133
|
+
createElementVNode("span", _hoisted_2, [
|
|
134
|
+
$options.componentType !== "READONLY" && _ctx.$configs.editable ? (openBlock(), createElementBlock("span", {
|
|
135
|
+
key: 0,
|
|
136
|
+
class: "epx-add-form-item__title-edit",
|
|
137
|
+
onClick: _cache[0] || (_cache[0] = (...args) => $options.editFn && $options.editFn(...args))
|
|
138
|
+
}, [
|
|
139
|
+
_cache[2] || (_cache[2] = createElementVNode("i", { class: "el-icon-edit-outline" }, null, -1)),
|
|
140
|
+
createTextVNode(" " + toDisplayString(_ctx.$t("edit")), 1)
|
|
141
|
+
])) : createCommentVNode("", true),
|
|
142
|
+
createElementVNode("i", {
|
|
143
|
+
class: normalizeClass(["epx-add-form-item__title-foldicon", "el-icon-caret-top"]),
|
|
144
|
+
onClick: _cache[1] || (_cache[1] = ($event) => $data.isFold = !$data.isFold)
|
|
145
|
+
})
|
|
146
|
+
])
|
|
147
|
+
], 2),
|
|
148
|
+
_ctx.$configs.note ? (openBlock(), createElementBlock("p", _hoisted_3, [
|
|
149
|
+
_cache[4] || (_cache[4] = createElementVNode("i", { class: "el-icon-info" }, null, -1)),
|
|
150
|
+
createElementVNode("span", _hoisted_4, [
|
|
151
|
+
createElementVNode("span", {
|
|
152
|
+
innerHTML: _ctx.xss.process(_ctx.$configs.note)
|
|
153
|
+
}, null, 8, _hoisted_5),
|
|
154
|
+
_ctx.$configs.help ? (openBlock(), createBlock(_component_el_button, {
|
|
155
|
+
key: 0,
|
|
156
|
+
size: "small",
|
|
157
|
+
type: "primary",
|
|
158
|
+
link: "",
|
|
159
|
+
class: "epx-add-form-item__help"
|
|
160
|
+
}, {
|
|
161
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
162
|
+
createTextVNode("了解更多", -1)
|
|
163
|
+
])]),
|
|
164
|
+
_: 1
|
|
165
|
+
})) : createCommentVNode("", true)
|
|
166
|
+
])
|
|
167
|
+
])) : createCommentVNode("", true),
|
|
168
|
+
createVNode(_component_epx_table_form, {
|
|
169
|
+
class: "epx-add-form-item__content",
|
|
170
|
+
ref: "form",
|
|
171
|
+
metaId: $options.currentMetaId,
|
|
172
|
+
fieldsConfigs: $data.fieldsConfigs,
|
|
173
|
+
pageType: "componentType",
|
|
174
|
+
value: $data.data,
|
|
175
|
+
showRelyFlag: false,
|
|
176
|
+
valueRelyFlag: false,
|
|
177
|
+
requiredRelyFlag: false,
|
|
178
|
+
fieldRelation: [],
|
|
179
|
+
column: $options.column,
|
|
180
|
+
labelAlign: _ctx.$configs.labelAlign,
|
|
181
|
+
lineSpace: _ctx.$configs.lineSpace,
|
|
182
|
+
labelWidth: $options.labelWidth,
|
|
183
|
+
labelFontSize: _ctx.$configs.labelFontSize,
|
|
184
|
+
valueWidth: $options.valueWidth,
|
|
185
|
+
valueFontSize: _ctx.$configs.valueFontSize,
|
|
186
|
+
mFormStyle: _ctx.$configs.mFormStyle,
|
|
187
|
+
mFormPadding: _ctx.$configs.mFormPadding
|
|
188
|
+
}, null, 8, ["metaId", "fieldsConfigs", "value", "column", "labelAlign", "lineSpace", "labelWidth", "labelFontSize", "valueWidth", "valueFontSize", "mFormStyle", "mFormPadding"])
|
|
189
|
+
], 6);
|
|
190
|
+
}
|
|
191
|
+
const AddFormItemPreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-a3844688"]]);
|
|
192
|
+
export {
|
|
193
|
+
AddFormItemPreview as default
|
|
194
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import '../../../../style.css';
|
|
2
|
+
import previewMixin from "../../widget-preview/Mixin.js";
|
|
3
|
+
import { resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, normalizeClass, createTextVNode, toDisplayString } from "vue";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const _sfc_main = {
|
|
7
|
+
name: "epx-button--preview",
|
|
8
|
+
mixins: [previewMixin]
|
|
9
|
+
};
|
|
10
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11
|
+
const _component_el_button = resolveComponent("el-button");
|
|
12
|
+
return openBlock(), createElementBlock("div", null, [
|
|
13
|
+
createVNode(_component_el_button, {
|
|
14
|
+
type: _ctx.$configs.type,
|
|
15
|
+
class: "button"
|
|
16
|
+
}, {
|
|
17
|
+
default: withCtx(() => [
|
|
18
|
+
createElementVNode("i", {
|
|
19
|
+
class: normalizeClass(["button-icon", ["fa", _ctx.$configs.icon]])
|
|
20
|
+
}, null, 2),
|
|
21
|
+
createTextVNode(" " + toDisplayString(_ctx.$configs.name || _ctx.$t("operating button")), 1)
|
|
22
|
+
]),
|
|
23
|
+
_: 1
|
|
24
|
+
}, 8, ["type"])
|
|
25
|
+
]);
|
|
26
|
+
}
|
|
27
|
+
const ButtonPreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-69cd9724"]]);
|
|
28
|
+
export {
|
|
29
|
+
ButtonPreview as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import '../../../../style.css';
|
|
2
|
+
import previewMixin from "../../widget-preview/Mixin.js";
|
|
3
|
+
import { resolveComponent, openBlock, createBlock, normalizeStyle, normalizeClass, withCtx, createElementVNode, createVNode, createElementBlock, Fragment, renderList, mergeProps, createCommentVNode, toDisplayString } from "vue";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const _sfc_main = {
|
|
7
|
+
name: "epx-card--preview",
|
|
8
|
+
mixins: [previewMixin],
|
|
9
|
+
computed: {
|
|
10
|
+
colAttribute() {
|
|
11
|
+
return (component = {}) => {
|
|
12
|
+
const { xsspan = 24, span } = component;
|
|
13
|
+
return {
|
|
14
|
+
span: this.$isMobile ? xsspan : span || this.$configs.columnWidth || 24
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
// 所有拖拽方法已在 Mixin 中实现
|
|
20
|
+
};
|
|
21
|
+
const _hoisted_1 = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: /* @__PURE__ */ normalizeClass(["clearfix"])
|
|
24
|
+
};
|
|
25
|
+
const _hoisted_2 = { class: "epx-card__title" };
|
|
26
|
+
const _hoisted_3 = { class: "epx-card__component-list epx-page-designer-widget-preview__drop-zone" };
|
|
27
|
+
const _hoisted_4 = {
|
|
28
|
+
key: 0,
|
|
29
|
+
class: "epx-page-designer-widget-preview__no-widget"
|
|
30
|
+
};
|
|
31
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32
|
+
const _component_widget_preview = resolveComponent("widget-preview");
|
|
33
|
+
const _component_el_col = resolveComponent("el-col");
|
|
34
|
+
const _component_el_row = resolveComponent("el-row");
|
|
35
|
+
const _component_el_card = resolveComponent("el-card");
|
|
36
|
+
return openBlock(), createBlock(_component_el_card, {
|
|
37
|
+
class: normalizeClass(["epx-card", { "epx-card--split": _ctx.$configs.split }]),
|
|
38
|
+
style: normalizeStyle(_ctx.widgetStyle),
|
|
39
|
+
shadow: "never"
|
|
40
|
+
}, {
|
|
41
|
+
header: withCtx(() => [
|
|
42
|
+
_ctx.$configs.showHeader !== false ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
43
|
+
createElementVNode("span", _hoisted_2, [
|
|
44
|
+
createElementVNode("i", {
|
|
45
|
+
class: normalizeClass(["epx-card__title-icon", _ctx.$configs.icon || "epx-icon-kapianmorentubiao"])
|
|
46
|
+
}, null, 2),
|
|
47
|
+
createElementVNode("span", null, toDisplayString(_ctx.widget.title || _ctx.$configs.componentName), 1)
|
|
48
|
+
])
|
|
49
|
+
])) : createCommentVNode("", true)
|
|
50
|
+
]),
|
|
51
|
+
default: withCtx(() => [
|
|
52
|
+
createElementVNode("div", {
|
|
53
|
+
class: "epx-card__component-content",
|
|
54
|
+
style: normalizeStyle({ padding: _ctx.$util.toPx(_ctx.$configs.padding) })
|
|
55
|
+
}, [
|
|
56
|
+
createElementVNode("div", _hoisted_3, [
|
|
57
|
+
createVNode(_component_el_row, null, {
|
|
58
|
+
default: withCtx(() => [
|
|
59
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.childWidgetList, (childWidget) => {
|
|
60
|
+
return openBlock(), createBlock(_component_el_col, mergeProps({
|
|
61
|
+
key: childWidget.id,
|
|
62
|
+
ref_for: true
|
|
63
|
+
}, $options.colAttribute(childWidget), { column: "false" }), {
|
|
64
|
+
default: withCtx(() => [
|
|
65
|
+
createVNode(_component_widget_preview, mergeProps({ ref_for: true }, _ctx.$forwardAttrs(_ctx.$attrs), {
|
|
66
|
+
designer: _ctx.designer,
|
|
67
|
+
widget: childWidget,
|
|
68
|
+
"parent-widget": _ctx.widget
|
|
69
|
+
}), null, 16, ["designer", "widget", "parent-widget"])
|
|
70
|
+
]),
|
|
71
|
+
_: 2
|
|
72
|
+
}, 1040);
|
|
73
|
+
}), 128))
|
|
74
|
+
]),
|
|
75
|
+
_: 1
|
|
76
|
+
}),
|
|
77
|
+
_ctx.childWidgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_4, "拖拽组件到这里")) : createCommentVNode("", true)
|
|
78
|
+
])
|
|
79
|
+
], 4)
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
}, 8, ["class", "style"]);
|
|
83
|
+
}
|
|
84
|
+
const CardPreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b600ed88"]]);
|
|
85
|
+
export {
|
|
86
|
+
CardPreview as default
|
|
87
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import '../../../../style.css';
|
|
2
|
+
import previewMixin from "../../widget-preview/Mixin.js";
|
|
3
|
+
import { resolveComponent, openBlock, createElementBlock, Fragment, renderList, createBlock, 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-carousel-item--preview",
|
|
8
|
+
mixins: [previewMixin]
|
|
9
|
+
// 所有拖拽方法已在 Mixin 中实现
|
|
10
|
+
};
|
|
11
|
+
const _hoisted_1 = { class: "epx-page-designer-widget-preview__drop-zone" };
|
|
12
|
+
const _hoisted_2 = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "epx-page-designer-widget-preview__no-widget"
|
|
15
|
+
};
|
|
16
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17
|
+
const _component_widget_preview = resolveComponent("widget-preview");
|
|
18
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
19
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.childWidgetList, (childWidget) => {
|
|
20
|
+
return openBlock(), createBlock(_component_widget_preview, mergeProps({ ref_for: true }, _ctx.$forwardAttrs(_ctx.$attrs), {
|
|
21
|
+
key: childWidget.id,
|
|
22
|
+
widget: childWidget,
|
|
23
|
+
"parent-widget": _ctx.widget,
|
|
24
|
+
designer: _ctx.designer
|
|
25
|
+
}), null, 16, ["widget", "parent-widget", "designer"]);
|
|
26
|
+
}), 128)),
|
|
27
|
+
_ctx.childWidgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_2, "拖拽组件到这里")) : createCommentVNode("", true)
|
|
28
|
+
]);
|
|
29
|
+
}
|
|
30
|
+
const CarouselItemPreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3f82d617"]]);
|
|
31
|
+
export {
|
|
32
|
+
CarouselItemPreview as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import '../../../../style.css';
|
|
2
|
+
import previewMixin from "../../widget-preview/Mixin.js";
|
|
3
|
+
import Carousel from "@epxing/components/src/carousel/Carousel";
|
|
4
|
+
import { resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, mergeProps, withModifiers, createCommentVNode, createElementVNode } from "vue";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const _sfc_main = {
|
|
8
|
+
name: "epx-carousel--preview",
|
|
9
|
+
mixins: [previewMixin],
|
|
10
|
+
extends: Carousel
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_1 = ["src", "onClick"];
|
|
13
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14
|
+
const _component_widget_preview = resolveComponent("widget-preview");
|
|
15
|
+
const _component_el_carousel_item = resolveComponent("el-carousel-item");
|
|
16
|
+
const _component_el_carousel = resolveComponent("el-carousel");
|
|
17
|
+
return openBlock(), createBlock(_component_el_carousel, {
|
|
18
|
+
type: _ctx.$configs.type,
|
|
19
|
+
height: _ctx.$configs.height + "px",
|
|
20
|
+
"indicator-position": _ctx.$configs.indicatorPosition,
|
|
21
|
+
trigger: _ctx.$configs.trigger,
|
|
22
|
+
direction: _ctx.$configs.type === "card" ? "horizontal" : _ctx.$configs.direction,
|
|
23
|
+
autoplay: false,
|
|
24
|
+
interval: _ctx.$configs.interval,
|
|
25
|
+
arrow: _ctx.$configs.arrow
|
|
26
|
+
}, {
|
|
27
|
+
default: withCtx(() => [
|
|
28
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.childWidgetList, (item) => {
|
|
29
|
+
return openBlock(), createBlock(_component_el_carousel_item, {
|
|
30
|
+
key: item.id,
|
|
31
|
+
class: "carousel-item"
|
|
32
|
+
}, {
|
|
33
|
+
default: withCtx(() => [
|
|
34
|
+
item.renderContentType === "node" ? (openBlock(), createBlock(_component_widget_preview, mergeProps({
|
|
35
|
+
key: 0,
|
|
36
|
+
ref_for: true
|
|
37
|
+
}, _ctx.$forwardAttrs(_ctx.$attrs), {
|
|
38
|
+
widget: item,
|
|
39
|
+
"parent-widget": _ctx.widget,
|
|
40
|
+
designer: _ctx.designer
|
|
41
|
+
}), null, 16, ["widget", "parent-widget", "designer"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
42
|
+
item.imgUrl ? (openBlock(), createElementBlock("img", {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: "epx-carousel__img",
|
|
45
|
+
src: _ctx.$util.getFileUrl(item.imgUrl),
|
|
46
|
+
onClick: withModifiers(($event) => _ctx.clickItem(item), ["stop"])
|
|
47
|
+
}, null, 8, _hoisted_1)) : createCommentVNode("", true),
|
|
48
|
+
_cache[0] || (_cache[0] = createElementVNode("div", null, "请上传图片", -1))
|
|
49
|
+
], 64))
|
|
50
|
+
]),
|
|
51
|
+
_: 2
|
|
52
|
+
}, 1024);
|
|
53
|
+
}), 128))
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 8, ["type", "height", "indicator-position", "trigger", "direction", "interval", "arrow"]);
|
|
57
|
+
}
|
|
58
|
+
const CarouselPreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b4730082"]]);
|
|
59
|
+
export {
|
|
60
|
+
CarouselPreview as default
|
|
61
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import '../../../../style.css';
|
|
2
|
+
import previewMixin from "../../widget-preview/Mixin.js";
|
|
3
|
+
import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, mergeProps, createCommentVNode, withModifiers, normalizeClass, toDisplayString } from "vue";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const HEADER_SLOT = "header";
|
|
7
|
+
const _sfc_main = {
|
|
8
|
+
name: "epx-collapse-item--preview",
|
|
9
|
+
mixins: [previewMixin],
|
|
10
|
+
computed: {
|
|
11
|
+
headerSlotWidget() {
|
|
12
|
+
return (this.widget.slots || {})[HEADER_SLOT] || null;
|
|
13
|
+
},
|
|
14
|
+
// 配置点「头部插槽」写在 widgetConfig 里,优先;
|
|
15
|
+
// 老可视化把 showTitleSlot 写在折叠项自身上,没配过配置点时兜底读它
|
|
16
|
+
// (与运行时 Collapse.vue 的判断保持一致,否则设计态和运行态会对不上)
|
|
17
|
+
showTitleSlot() {
|
|
18
|
+
const config = this.$configs.showTitleSlot;
|
|
19
|
+
if (config !== void 0 && config !== null) return !!config;
|
|
20
|
+
return !!this.widget.showTitleSlot;
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
methods: {
|
|
24
|
+
// Header slot 拖拽处理:统一走 designer.handleDrop,组件库 / 模板库 / 画布内拖动都支持
|
|
25
|
+
onHeaderDragEnter(e) {
|
|
26
|
+
if (!this.isDraggingFromLibrary(e)) return;
|
|
27
|
+
e.stopPropagation();
|
|
28
|
+
this.designer.setDragOverTarget({ type: "slot", widgetId: this.widget.id, slotName: HEADER_SLOT });
|
|
29
|
+
this.designer.setDragOverTargetElement(e.currentTarget);
|
|
30
|
+
},
|
|
31
|
+
onHeaderDragOver(e) {
|
|
32
|
+
if (!this.isDraggingFromLibrary(e)) return;
|
|
33
|
+
if (this.designer.updateDragGhostPosition) {
|
|
34
|
+
this.designer.updateDragGhostPosition(e.clientX, e.clientY);
|
|
35
|
+
}
|
|
36
|
+
e.stopPropagation();
|
|
37
|
+
e.dataTransfer.dropEffect = this.isDraggingWidget() ? "move" : "copy";
|
|
38
|
+
this.designer.clearDragInsertLine();
|
|
39
|
+
},
|
|
40
|
+
onHeaderDragLeave(e) {
|
|
41
|
+
const dropZone = e.currentTarget;
|
|
42
|
+
if (dropZone && !dropZone.contains(e.relatedTarget)) {
|
|
43
|
+
this.designer.clearDragOverTarget();
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
onHeaderDrop(e) {
|
|
47
|
+
this.designer.clearDragOverTarget();
|
|
48
|
+
this.designer.clearDragInsertLine();
|
|
49
|
+
this.designer.clearPreviewDragTarget();
|
|
50
|
+
if (this.designer.vueInstance) {
|
|
51
|
+
this.designer.emitEvent("drag-end");
|
|
52
|
+
}
|
|
53
|
+
this.designer.handleDrop({
|
|
54
|
+
dataTransfer: e.dataTransfer,
|
|
55
|
+
target: { type: "slot", widgetId: this.widget.id, slotName: HEADER_SLOT }
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const _hoisted_1 = { class: "epx-collapse__header" };
|
|
61
|
+
const _hoisted_2 = { class: "epx-collapse__header-title" };
|
|
62
|
+
const _hoisted_3 = {
|
|
63
|
+
key: 1,
|
|
64
|
+
class: "epx-collapse__header-slot-tip"
|
|
65
|
+
};
|
|
66
|
+
const _hoisted_4 = { key: 1 };
|
|
67
|
+
const _hoisted_5 = { class: "epx-page-designer-widget-preview__drop-zone" };
|
|
68
|
+
const _hoisted_6 = {
|
|
69
|
+
key: 0,
|
|
70
|
+
class: "epx-page-designer-widget-preview__no-widget"
|
|
71
|
+
};
|
|
72
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
73
|
+
const _component_widget_preview = resolveComponent("widget-preview");
|
|
74
|
+
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
75
|
+
return openBlock(), createBlock(_component_el_collapse_item, {
|
|
76
|
+
name: _ctx.widget.id
|
|
77
|
+
}, {
|
|
78
|
+
title: withCtx(() => [
|
|
79
|
+
createElementVNode("div", _hoisted_1, [
|
|
80
|
+
_cache[4] || (_cache[4] = createElementVNode("i", { class: "epx-collapse__header-icon el-icon-caret-right" }, null, -1)),
|
|
81
|
+
createElementVNode("div", _hoisted_2, [
|
|
82
|
+
$options.showTitleSlot ? (openBlock(), createElementBlock("div", {
|
|
83
|
+
key: 0,
|
|
84
|
+
class: normalizeClass(["epx-collapse__header-slot", { "is-empty": !$options.headerSlotWidget }]),
|
|
85
|
+
onDragenter: _cache[0] || (_cache[0] = (...args) => $options.onHeaderDragEnter && $options.onHeaderDragEnter(...args)),
|
|
86
|
+
onDragover: _cache[1] || (_cache[1] = withModifiers((...args) => $options.onHeaderDragOver && $options.onHeaderDragOver(...args), ["prevent"])),
|
|
87
|
+
onDragleave: _cache[2] || (_cache[2] = (...args) => $options.onHeaderDragLeave && $options.onHeaderDragLeave(...args)),
|
|
88
|
+
onDrop: _cache[3] || (_cache[3] = withModifiers((...args) => $options.onHeaderDrop && $options.onHeaderDrop(...args), ["prevent", "stop"]))
|
|
89
|
+
}, [
|
|
90
|
+
$options.headerSlotWidget ? (openBlock(), createBlock(_component_widget_preview, mergeProps({ key: 0 }, _ctx.$forwardAttrs(_ctx.$attrs), {
|
|
91
|
+
widget: $options.headerSlotWidget,
|
|
92
|
+
"parent-widget": _ctx.widget,
|
|
93
|
+
designer: _ctx.designer
|
|
94
|
+
}), null, 16, ["widget", "parent-widget", "designer"])) : (openBlock(), createElementBlock("span", _hoisted_3, "拖拽组件到这里"))
|
|
95
|
+
], 34)) : (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(_ctx.widget.title), 1))
|
|
96
|
+
])
|
|
97
|
+
])
|
|
98
|
+
]),
|
|
99
|
+
default: withCtx(() => [
|
|
100
|
+
createElementVNode("div", _hoisted_5, [
|
|
101
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.childWidgetList, (childWidget) => {
|
|
102
|
+
return openBlock(), createBlock(_component_widget_preview, mergeProps({ ref_for: true }, _ctx.$forwardAttrs(_ctx.$attrs), {
|
|
103
|
+
key: childWidget.id,
|
|
104
|
+
widget: childWidget,
|
|
105
|
+
"parent-widget": _ctx.widget,
|
|
106
|
+
designer: _ctx.designer
|
|
107
|
+
}), null, 16, ["widget", "parent-widget", "designer"]);
|
|
108
|
+
}), 128)),
|
|
109
|
+
_ctx.childWidgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6, "拖拽组件到这里")) : createCommentVNode("", true)
|
|
110
|
+
])
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}, 8, ["name"]);
|
|
114
|
+
}
|
|
115
|
+
const CollapseItemPreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-f68f46da"]]);
|
|
116
|
+
export {
|
|
117
|
+
CollapseItemPreview as default
|
|
118
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import '../../../../style.css';
|
|
2
|
+
import previewMixin from "../../widget-preview/Mixin.js";
|
|
3
|
+
import { resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, mergeProps } from "vue";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const _sfc_main = {
|
|
7
|
+
name: "epx-collapse--preview",
|
|
8
|
+
mixins: [previewMixin]
|
|
9
|
+
};
|
|
10
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11
|
+
const _component_widget_preview = resolveComponent("widget-preview");
|
|
12
|
+
const _component_el_collapse = resolveComponent("el-collapse");
|
|
13
|
+
return openBlock(), createBlock(_component_el_collapse, {
|
|
14
|
+
class: "epx-collapse",
|
|
15
|
+
modelValue: _ctx.activeCollapse,
|
|
16
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.activeCollapse = $event),
|
|
17
|
+
accordion: ""
|
|
18
|
+
}, {
|
|
19
|
+
default: withCtx(() => [
|
|
20
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.childWidgetList, (item) => {
|
|
21
|
+
return openBlock(), createBlock(_component_widget_preview, mergeProps({ ref_for: true }, _ctx.$forwardAttrs(_ctx.$attrs), {
|
|
22
|
+
key: item.id,
|
|
23
|
+
widget: item,
|
|
24
|
+
"parent-widget": _ctx.widget,
|
|
25
|
+
designer: _ctx.designer
|
|
26
|
+
}), null, 16, ["widget", "parent-widget", "designer"]);
|
|
27
|
+
}), 128))
|
|
28
|
+
]),
|
|
29
|
+
_: 1
|
|
30
|
+
}, 8, ["modelValue"]);
|
|
31
|
+
}
|
|
32
|
+
const CollapsePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-94c54443"]]);
|
|
33
|
+
export {
|
|
34
|
+
CollapsePreview as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import '../../../../style.css';
|
|
2
|
+
import previewMixin from "../../widget-preview/Mixin.js";
|
|
3
|
+
import { resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, toDisplayString, createElementVNode, normalizeClass } from "vue";
|
|
4
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const _sfc_main = {
|
|
6
|
+
name: "epx-dropdown--preview",
|
|
7
|
+
mixins: [previewMixin]
|
|
8
|
+
};
|
|
9
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10
|
+
const _component_el_button = resolveComponent("el-button");
|
|
11
|
+
const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
|
|
12
|
+
const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
|
|
13
|
+
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
14
|
+
return openBlock(), createBlock(_component_el_dropdown, null, {
|
|
15
|
+
dropdown: withCtx(() => [
|
|
16
|
+
createVNode(_component_el_dropdown_menu, null, {
|
|
17
|
+
default: withCtx(() => [
|
|
18
|
+
createVNode(_component_el_dropdown_item, null, {
|
|
19
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
20
|
+
createTextVNode("黄金糕", -1)
|
|
21
|
+
])]),
|
|
22
|
+
_: 1
|
|
23
|
+
}),
|
|
24
|
+
createVNode(_component_el_dropdown_item, null, {
|
|
25
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
26
|
+
createTextVNode("狮子头", -1)
|
|
27
|
+
])]),
|
|
28
|
+
_: 1
|
|
29
|
+
}),
|
|
30
|
+
createVNode(_component_el_dropdown_item, null, {
|
|
31
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
32
|
+
createTextVNode("螺蛳粉", -1)
|
|
33
|
+
])]),
|
|
34
|
+
_: 1
|
|
35
|
+
}),
|
|
36
|
+
createVNode(_component_el_dropdown_item, { divided: "" }, {
|
|
37
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
38
|
+
createTextVNode("蚵仔煎", -1)
|
|
39
|
+
])]),
|
|
40
|
+
_: 1
|
|
41
|
+
})
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
})
|
|
45
|
+
]),
|
|
46
|
+
default: withCtx(() => [
|
|
47
|
+
createVNode(_component_el_button, {
|
|
48
|
+
class: "epx-dropdown__trigger",
|
|
49
|
+
type: "primary",
|
|
50
|
+
link: _ctx.$configs.type !== "button",
|
|
51
|
+
size: _ctx.$configs.size
|
|
52
|
+
}, {
|
|
53
|
+
default: withCtx(() => [
|
|
54
|
+
createTextVNode(toDisplayString(_ctx.$configs.name), 1),
|
|
55
|
+
createElementVNode("i", {
|
|
56
|
+
class: normalizeClass(`el-icon-arrow-down ${_ctx.$configs.icon || "el-icon--right"}`)
|
|
57
|
+
}, null, 2)
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
}, 8, ["link", "size"])
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
const DropdownPreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
66
|
+
export {
|
|
67
|
+
DropdownPreview as default
|
|
68
|
+
};
|