@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,580 @@
|
|
|
1
|
+
import '../../../style.css';
|
|
2
|
+
import { getWidgetChildren, getWidgetSlots } from "../designer.js";
|
|
3
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, normalizeStyle, createCommentVNode, toDisplayString, createBlock, withCtx, createVNode, Fragment, renderList } from "vue";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const _sfc_main = {
|
|
7
|
+
name: "epx-page-designer-widget-tree-item",
|
|
8
|
+
props: {
|
|
9
|
+
designer: {
|
|
10
|
+
type: Object
|
|
11
|
+
},
|
|
12
|
+
widget: {
|
|
13
|
+
type: Object
|
|
14
|
+
},
|
|
15
|
+
parentWidget: {
|
|
16
|
+
type: Object
|
|
17
|
+
},
|
|
18
|
+
// 组件放在父组件的哪个插槽里(不在插槽里则为空)
|
|
19
|
+
slotName: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ""
|
|
22
|
+
},
|
|
23
|
+
level: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: 0
|
|
26
|
+
},
|
|
27
|
+
index: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 0
|
|
30
|
+
},
|
|
31
|
+
// 当前正在拖拽的组件 id(来自 Tree)
|
|
32
|
+
draggingId: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: null
|
|
35
|
+
},
|
|
36
|
+
// 当前占位信息(来自 Tree)
|
|
37
|
+
placeholder: {
|
|
38
|
+
type: Object,
|
|
39
|
+
default: () => null
|
|
40
|
+
},
|
|
41
|
+
// hover 提示(来自 Tree)
|
|
42
|
+
dropHint: {
|
|
43
|
+
type: Object,
|
|
44
|
+
default: () => null
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
data() {
|
|
48
|
+
return {
|
|
49
|
+
fold: false,
|
|
50
|
+
isDragOver: false,
|
|
51
|
+
// 长按触发拖拽
|
|
52
|
+
pressTimer: null,
|
|
53
|
+
pressStart: null,
|
|
54
|
+
pressTriggered: false,
|
|
55
|
+
// 上一次的 position,用于防抖动
|
|
56
|
+
lastEmitPosition: null
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
computed: {
|
|
60
|
+
selected() {
|
|
61
|
+
return this.widget.id === this.designer.selectedId;
|
|
62
|
+
},
|
|
63
|
+
widgetInfo() {
|
|
64
|
+
return this.designer.getWidgetByType(this.widget.contentType) || {};
|
|
65
|
+
},
|
|
66
|
+
slotEntries() {
|
|
67
|
+
return getWidgetSlots(this.widget);
|
|
68
|
+
},
|
|
69
|
+
widgetList: {
|
|
70
|
+
get() {
|
|
71
|
+
return this.widget.items || [];
|
|
72
|
+
},
|
|
73
|
+
set(v) {
|
|
74
|
+
this.designer.updateWidget(this.widget.id, { items: v });
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
methods: {
|
|
79
|
+
clearPressTimer() {
|
|
80
|
+
if (this.pressTimer) {
|
|
81
|
+
clearTimeout(this.pressTimer);
|
|
82
|
+
this.pressTimer = null;
|
|
83
|
+
}
|
|
84
|
+
this.pressStart = null;
|
|
85
|
+
this.pressTriggered = false;
|
|
86
|
+
},
|
|
87
|
+
onPlaceholderDragOver(e) {
|
|
88
|
+
e.preventDefault();
|
|
89
|
+
e.stopPropagation();
|
|
90
|
+
const isDraggingWidget = this.designer.dragState.dragSource === "preview";
|
|
91
|
+
e.dataTransfer.dropEffect = isDraggingWidget ? "move" : "copy";
|
|
92
|
+
},
|
|
93
|
+
onPlaceholderDragEnter(e) {
|
|
94
|
+
e.stopPropagation();
|
|
95
|
+
},
|
|
96
|
+
onPlaceholderDrop(e) {
|
|
97
|
+
e.preventDefault();
|
|
98
|
+
e.stopPropagation();
|
|
99
|
+
if (!this.isDraggingFromLibrary(e)) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
this.$emit("library-drop", {
|
|
103
|
+
widget: this.widget,
|
|
104
|
+
parentWidget: this.parentWidget,
|
|
105
|
+
index: this.index,
|
|
106
|
+
isContainer: this.widgetInfo.CONTAINER === "1",
|
|
107
|
+
event: e
|
|
108
|
+
});
|
|
109
|
+
},
|
|
110
|
+
isDraggingFromLibrary(e) {
|
|
111
|
+
return e && e.dataTransfer && e.dataTransfer.types && e.dataTransfer.types.includes("text/plain");
|
|
112
|
+
},
|
|
113
|
+
onHeaderDragEnter(e) {
|
|
114
|
+
if (this.slotName) return;
|
|
115
|
+
if (!this.isDraggingFromLibrary(e)) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
e.stopPropagation();
|
|
119
|
+
this.isDragOver = true;
|
|
120
|
+
},
|
|
121
|
+
onHeaderDragOver(e) {
|
|
122
|
+
if (this.slotName) return;
|
|
123
|
+
if (!this.isDraggingFromLibrary(e)) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
e.preventDefault();
|
|
127
|
+
if (this.designer && this.designer.updateDragGhostPosition) {
|
|
128
|
+
this.designer.updateDragGhostPosition(e.clientX, e.clientY);
|
|
129
|
+
}
|
|
130
|
+
e.stopPropagation();
|
|
131
|
+
const isDraggingWidget = this.designer.dragState.dragSource === "preview";
|
|
132
|
+
e.dataTransfer.dropEffect = isDraggingWidget ? "move" : "copy";
|
|
133
|
+
const rect = e.currentTarget.getBoundingClientRect();
|
|
134
|
+
const offsetY = e.clientY - rect.top;
|
|
135
|
+
const ratio = rect.height > 0 ? offsetY / rect.height : 0.5;
|
|
136
|
+
const isContainer = this.widgetInfo.CONTAINER === "1";
|
|
137
|
+
let position;
|
|
138
|
+
if (isContainer) {
|
|
139
|
+
if (ratio <= 0.3) {
|
|
140
|
+
position = "before";
|
|
141
|
+
} else if (ratio >= 0.7) {
|
|
142
|
+
position = "after";
|
|
143
|
+
} else {
|
|
144
|
+
position = "inside";
|
|
145
|
+
}
|
|
146
|
+
} else {
|
|
147
|
+
position = ratio <= 0.5 ? "before" : "after";
|
|
148
|
+
}
|
|
149
|
+
if (this.lastEmitPosition !== position) {
|
|
150
|
+
this.lastEmitPosition = position;
|
|
151
|
+
this.$emit("library-hover-for-drop", {
|
|
152
|
+
widget: this.widget,
|
|
153
|
+
parentWidget: this.parentWidget,
|
|
154
|
+
index: this.index,
|
|
155
|
+
isContainer,
|
|
156
|
+
position,
|
|
157
|
+
event: e,
|
|
158
|
+
// 传递元素位置信息用于计算占位符线
|
|
159
|
+
rect: {
|
|
160
|
+
top: rect.top,
|
|
161
|
+
left: rect.left,
|
|
162
|
+
width: rect.width,
|
|
163
|
+
height: rect.height
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
onHeaderDragLeave() {
|
|
169
|
+
this.isDragOver = false;
|
|
170
|
+
this.lastEmitPosition = null;
|
|
171
|
+
},
|
|
172
|
+
onHeaderDrop(e) {
|
|
173
|
+
if (this.slotName) return;
|
|
174
|
+
e.preventDefault();
|
|
175
|
+
e.stopPropagation();
|
|
176
|
+
if (!this.isDraggingFromLibrary(e)) {
|
|
177
|
+
this.isDragOver = false;
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
this.isDragOver = false;
|
|
181
|
+
this.$emit("library-drop", {
|
|
182
|
+
widget: this.widget,
|
|
183
|
+
parentWidget: this.parentWidget,
|
|
184
|
+
index: this.index,
|
|
185
|
+
isContainer: this.widgetInfo.CONTAINER === "1",
|
|
186
|
+
event: e
|
|
187
|
+
});
|
|
188
|
+
},
|
|
189
|
+
// 以下为大纲树内部拖拽排序相关
|
|
190
|
+
onHeaderMouseDown(e) {
|
|
191
|
+
if (this.slotName) return;
|
|
192
|
+
this.clearPressTimer();
|
|
193
|
+
this.pressStart = { x: e.clientX, y: e.clientY, time: Date.now() };
|
|
194
|
+
this.pressTimer = setTimeout(() => {
|
|
195
|
+
if (this.draggingId) return;
|
|
196
|
+
this.pressTriggered = true;
|
|
197
|
+
this.$emit("drag-start", {
|
|
198
|
+
widget: this.widget,
|
|
199
|
+
parentWidget: this.parentWidget
|
|
200
|
+
});
|
|
201
|
+
}, 220);
|
|
202
|
+
},
|
|
203
|
+
onHeaderMouseUp(e) {
|
|
204
|
+
if (this.draggingId) {
|
|
205
|
+
this.$emit("drag-end", { event: e });
|
|
206
|
+
}
|
|
207
|
+
if (!this.pressTriggered) {
|
|
208
|
+
this.clearPressTimer();
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
onHeaderMouseLeave() {
|
|
212
|
+
if (!this.draggingId) this.clearPressTimer();
|
|
213
|
+
},
|
|
214
|
+
// 判断当前容器在某个 index 位置是否显示占位虚线框
|
|
215
|
+
showChildPlaceholderAt(index) {
|
|
216
|
+
if (!this.placeholder) return false;
|
|
217
|
+
if (this.placeholder.parentId !== this.widget.id) return false;
|
|
218
|
+
return this.placeholder.index === index;
|
|
219
|
+
},
|
|
220
|
+
onHeaderMouseMove(e) {
|
|
221
|
+
if (this.slotName) return;
|
|
222
|
+
if (!this.draggingId && this.pressStart && this.pressTimer) {
|
|
223
|
+
const dx = e.clientX - this.pressStart.x;
|
|
224
|
+
const dy = e.clientY - this.pressStart.y;
|
|
225
|
+
if (Math.abs(dx) + Math.abs(dy) >= 6) {
|
|
226
|
+
this.pressTriggered = true;
|
|
227
|
+
this.clearPressTimer();
|
|
228
|
+
this.$emit("drag-start", {
|
|
229
|
+
widget: this.widget,
|
|
230
|
+
parentWidget: this.parentWidget
|
|
231
|
+
});
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
if (!this.draggingId) return;
|
|
236
|
+
const rect = e.currentTarget.getBoundingClientRect();
|
|
237
|
+
const offsetY = e.clientY - rect.top;
|
|
238
|
+
const ratio = rect.height > 0 ? offsetY / rect.height : 0.5;
|
|
239
|
+
const isContainer = this.widgetInfo.CONTAINER === "1";
|
|
240
|
+
let position;
|
|
241
|
+
if (isContainer) {
|
|
242
|
+
if (ratio <= 0.2) {
|
|
243
|
+
position = "before";
|
|
244
|
+
} else if (ratio >= 0.8) {
|
|
245
|
+
position = "after";
|
|
246
|
+
} else {
|
|
247
|
+
position = "inside";
|
|
248
|
+
}
|
|
249
|
+
} else {
|
|
250
|
+
if (ratio <= 0.3) {
|
|
251
|
+
position = "before";
|
|
252
|
+
} else if (ratio >= 0.7) {
|
|
253
|
+
position = "after";
|
|
254
|
+
} else {
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
this.$emit("hover-for-drop", {
|
|
259
|
+
widget: this.widget,
|
|
260
|
+
parentWidget: this.parentWidget,
|
|
261
|
+
index: this.index,
|
|
262
|
+
isContainer,
|
|
263
|
+
position
|
|
264
|
+
});
|
|
265
|
+
},
|
|
266
|
+
copyComponent() {
|
|
267
|
+
this.designer.copyWidget(this.widget, this.parentWidget);
|
|
268
|
+
},
|
|
269
|
+
deleteComponent() {
|
|
270
|
+
this.designer.deleteWidget(this.widget, this.parentWidget);
|
|
271
|
+
},
|
|
272
|
+
addComponent() {
|
|
273
|
+
this.$emit("add", this.widget);
|
|
274
|
+
},
|
|
275
|
+
saveAsTemplate() {
|
|
276
|
+
const eventNameMap = {};
|
|
277
|
+
const widgetIds = [this.widget.id];
|
|
278
|
+
const events = [];
|
|
279
|
+
const widgetConfigs = {};
|
|
280
|
+
const js = this.designer.pageConfig.JS;
|
|
281
|
+
let widgetJs = "";
|
|
282
|
+
const getAllWidgetIds = (widgets) => {
|
|
283
|
+
if (!widgets) return;
|
|
284
|
+
for (const item of widgets) {
|
|
285
|
+
widgetIds.push(item.id);
|
|
286
|
+
getAllWidgetIds(getWidgetChildren(item));
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
getAllWidgetIds(getWidgetChildren(this.widget));
|
|
290
|
+
for (const widgetId of widgetIds) {
|
|
291
|
+
if (this.designer.widgetConfig[widgetId]) {
|
|
292
|
+
const config = this.$_.cloneDeep(this.designer.widgetConfig[widgetId]);
|
|
293
|
+
widgetConfigs[widgetId] = config;
|
|
294
|
+
if (config.componentEvents) {
|
|
295
|
+
for (const key in config.componentEvents) {
|
|
296
|
+
const arr = config.componentEvents[key];
|
|
297
|
+
events.push(...arr);
|
|
298
|
+
config.componentEvents[key] = arr.map((item) => {
|
|
299
|
+
const newEventName = `${item}_${this.$util.genId()}`;
|
|
300
|
+
eventNameMap[item] = newEventName;
|
|
301
|
+
return newEventName;
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
if (config.fields) {
|
|
306
|
+
for (const field of config.fields) {
|
|
307
|
+
if (field.events) {
|
|
308
|
+
for (const key in field.events) {
|
|
309
|
+
const arr = field.events[key];
|
|
310
|
+
events.push(...arr);
|
|
311
|
+
field.events[key] = arr.map((item) => {
|
|
312
|
+
const newEventName = `${item}_${this.$util.genId()}`;
|
|
313
|
+
eventNameMap[item] = newEventName;
|
|
314
|
+
return newEventName;
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
if (js) {
|
|
322
|
+
const result = js.split(/export\s+function\s+/);
|
|
323
|
+
result.forEach((item) => {
|
|
324
|
+
const funtionStr = item.replace(/\/\*(\n|.)+?\*\/[\n\s]+$/, "");
|
|
325
|
+
if (funtionStr.replace(/[\n\s]+/g, "").length > 0) {
|
|
326
|
+
const funtionName = funtionStr.split(/\s+\(/)[0];
|
|
327
|
+
if (events.includes(funtionName)) {
|
|
328
|
+
widgetJs += "export function " + funtionStr.replace(/^\w+/, eventNameMap[funtionName]);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
this.$emit("add-template", {
|
|
335
|
+
version: this.designer.version,
|
|
336
|
+
items: [this.widget],
|
|
337
|
+
itemConfigs: widgetConfigs,
|
|
338
|
+
JS: widgetJs
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
const _hoisted_1 = ["data-tree-widget-id"];
|
|
344
|
+
const _hoisted_2 = { class: "epx-page-designer-widget-tree-item__container" };
|
|
345
|
+
const _hoisted_3 = { class: "epx-page-designer-widget-tree-item__name" };
|
|
346
|
+
const _hoisted_4 = ["title"];
|
|
347
|
+
const _hoisted_5 = {
|
|
348
|
+
key: 1,
|
|
349
|
+
class: "epx-page-designer-widget-tree-item__slot-tag"
|
|
350
|
+
};
|
|
351
|
+
const _hoisted_6 = { class: "epx-page-designer-widget-tree-item__child" };
|
|
352
|
+
const _hoisted_7 = {
|
|
353
|
+
key: 0,
|
|
354
|
+
class: "epx-page-designer-widget-tree__list epx-page-designer-widget-tree__list--drag-disable"
|
|
355
|
+
};
|
|
356
|
+
const _hoisted_8 = {
|
|
357
|
+
key: 1,
|
|
358
|
+
class: "epx-page-designer-widget-tree__list"
|
|
359
|
+
};
|
|
360
|
+
const _hoisted_9 = {
|
|
361
|
+
key: 2,
|
|
362
|
+
class: "epx-page-designer-widget-tree__list epx-page-designer-widget-tree__list--drag-disable"
|
|
363
|
+
};
|
|
364
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
365
|
+
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
366
|
+
const _component_epx_page_designer_widget_tree_item = resolveComponent("epx-page-designer-widget-tree-item");
|
|
367
|
+
return openBlock(), createElementBlock("li", {
|
|
368
|
+
class: normalizeClass([
|
|
369
|
+
"epx-page-designer-widget-tree-item",
|
|
370
|
+
{ "is-active": $options.selected },
|
|
371
|
+
{ "is-fold": $data.fold },
|
|
372
|
+
{ "is-drop-over": $data.isDragOver },
|
|
373
|
+
// 大纲内部拖拽时的“拖拽中”样式
|
|
374
|
+
{ "is-dragging": $props.draggingId === $props.widget.id },
|
|
375
|
+
// 不可放置目标标红
|
|
376
|
+
{ "is-drop-invalid": $props.dropHint && $props.dropHint.invalid && $props.dropHint.widgetId === $props.widget.id }
|
|
377
|
+
]),
|
|
378
|
+
"data-tree-widget-id": $props.widget.id
|
|
379
|
+
}, [
|
|
380
|
+
createElementVNode("div", _hoisted_2, [
|
|
381
|
+
createElementVNode("p", {
|
|
382
|
+
class: "epx-page-designer-widget-tree-item__header",
|
|
383
|
+
style: normalizeStyle({ paddingLeft: ($props.level + 1) * 16 + 8 + "px" }),
|
|
384
|
+
onClick: _cache[6] || (_cache[6] = ($event) => $props.designer.setSelected($props.widget)),
|
|
385
|
+
onDragenter: _cache[7] || (_cache[7] = (...args) => $options.onHeaderDragEnter && $options.onHeaderDragEnter(...args)),
|
|
386
|
+
onDragover: _cache[8] || (_cache[8] = (...args) => $options.onHeaderDragOver && $options.onHeaderDragOver(...args)),
|
|
387
|
+
onDragleave: _cache[9] || (_cache[9] = (...args) => $options.onHeaderDragLeave && $options.onHeaderDragLeave(...args)),
|
|
388
|
+
onDrop: _cache[10] || (_cache[10] = (...args) => $options.onHeaderDrop && $options.onHeaderDrop(...args)),
|
|
389
|
+
onMousedown: _cache[11] || (_cache[11] = withModifiers((...args) => $options.onHeaderMouseDown && $options.onHeaderMouseDown(...args), ["left", "stop", "prevent"])),
|
|
390
|
+
onMouseup: _cache[12] || (_cache[12] = withModifiers((...args) => $options.onHeaderMouseUp && $options.onHeaderMouseUp(...args), ["left", "stop"])),
|
|
391
|
+
onMouseleave: _cache[13] || (_cache[13] = (...args) => $options.onHeaderMouseLeave && $options.onHeaderMouseLeave(...args)),
|
|
392
|
+
onMousemove: _cache[14] || (_cache[14] = (...args) => $options.onHeaderMouseMove && $options.onHeaderMouseMove(...args))
|
|
393
|
+
}, [
|
|
394
|
+
createElementVNode("span", _hoisted_3, [
|
|
395
|
+
$options.widgetInfo.CONTAINER === "1" || $options.slotEntries.length > 0 || $props.widget.items && $props.widget.items.length > 0 && $props.widget.contentType !== "dashboard-widget" ? (openBlock(), createElementBlock("i", {
|
|
396
|
+
key: 0,
|
|
397
|
+
style: normalizeStyle({ left: $props.level * 16 + 8 + "px" }),
|
|
398
|
+
class: normalizeClass(["epx-page-designer-widget-tree-item__fold-icon", "el-icon-arrow-down"]),
|
|
399
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => $data.fold = !$data.fold, ["stop"]))
|
|
400
|
+
}, null, 4)) : createCommentVNode("", true),
|
|
401
|
+
createElementVNode("i", {
|
|
402
|
+
class: normalizeClass(["epx-page-designer-widget-tree-item__icon", "fa", $options.widgetInfo.ICON || "el-icon-box"])
|
|
403
|
+
}, null, 2),
|
|
404
|
+
createElementVNode("span", {
|
|
405
|
+
title: $props.widget.title
|
|
406
|
+
}, toDisplayString($props.widget.title), 9, _hoisted_4),
|
|
407
|
+
$props.slotName ? (openBlock(), createElementBlock("span", _hoisted_5, "插槽")) : createCommentVNode("", true),
|
|
408
|
+
$options.widgetInfo.STATUS === "deprecated" ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
409
|
+
key: 2,
|
|
410
|
+
placement: "top",
|
|
411
|
+
content: $options.widgetInfo.REMARK
|
|
412
|
+
}, {
|
|
413
|
+
default: withCtx(() => [..._cache[42] || (_cache[42] = [
|
|
414
|
+
createElementVNode("i", { class: "epx-page-designer-widget-tree-item__warning-icon el-icon-warning-outline" }, null, -1)
|
|
415
|
+
])]),
|
|
416
|
+
_: 1
|
|
417
|
+
}, 8, ["content"])) : $options.widgetInfo.STATUS === "abandon" ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
418
|
+
key: 3,
|
|
419
|
+
placement: "top",
|
|
420
|
+
content: $options.widgetInfo.REMARK || "此组件已经废除,请替换新的组件使用"
|
|
421
|
+
}, {
|
|
422
|
+
default: withCtx(() => [..._cache[43] || (_cache[43] = [
|
|
423
|
+
createElementVNode("span", { class: "epx-page-designer-widget-tree-item__abandon-icon" }, "废", -1)
|
|
424
|
+
])]),
|
|
425
|
+
_: 1
|
|
426
|
+
}, 8, ["content"])) : createCommentVNode("", true)
|
|
427
|
+
]),
|
|
428
|
+
createElementVNode("span", {
|
|
429
|
+
class: "epx-page-designer-widget-tree-item__operate",
|
|
430
|
+
onClick: _cache[5] || (_cache[5] = withModifiers(() => {
|
|
431
|
+
}, ["stop"]))
|
|
432
|
+
}, [
|
|
433
|
+
$options.widgetInfo.CONTAINER === "1" ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
434
|
+
key: 0,
|
|
435
|
+
placement: "top",
|
|
436
|
+
content: "添加"
|
|
437
|
+
}, {
|
|
438
|
+
default: withCtx(() => [
|
|
439
|
+
createElementVNode("i", {
|
|
440
|
+
class: "el-icon-plus",
|
|
441
|
+
onClick: _cache[1] || (_cache[1] = withModifiers((...args) => $options.addComponent && $options.addComponent(...args), ["stop"]))
|
|
442
|
+
})
|
|
443
|
+
]),
|
|
444
|
+
_: 1
|
|
445
|
+
})) : createCommentVNode("", true),
|
|
446
|
+
!$props.slotName ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
447
|
+
key: 1,
|
|
448
|
+
placement: "top",
|
|
449
|
+
content: "复制"
|
|
450
|
+
}, {
|
|
451
|
+
default: withCtx(() => [
|
|
452
|
+
createElementVNode("i", {
|
|
453
|
+
class: "el-icon-copy-document",
|
|
454
|
+
onClick: _cache[2] || (_cache[2] = (...args) => $options.copyComponent && $options.copyComponent(...args))
|
|
455
|
+
})
|
|
456
|
+
]),
|
|
457
|
+
_: 1
|
|
458
|
+
})) : createCommentVNode("", true),
|
|
459
|
+
$props.designer.mode !== "template" ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
460
|
+
key: 2,
|
|
461
|
+
placement: "top",
|
|
462
|
+
content: "保存为模板"
|
|
463
|
+
}, {
|
|
464
|
+
default: withCtx(() => [
|
|
465
|
+
createElementVNode("i", {
|
|
466
|
+
class: "epx-icon-save",
|
|
467
|
+
onClick: _cache[3] || (_cache[3] = (...args) => $options.saveAsTemplate && $options.saveAsTemplate(...args))
|
|
468
|
+
})
|
|
469
|
+
]),
|
|
470
|
+
_: 1
|
|
471
|
+
})) : createCommentVNode("", true),
|
|
472
|
+
createVNode(_component_el_tooltip, {
|
|
473
|
+
placement: "top",
|
|
474
|
+
content: "删除"
|
|
475
|
+
}, {
|
|
476
|
+
default: withCtx(() => [
|
|
477
|
+
createElementVNode("i", {
|
|
478
|
+
class: "el-icon-close",
|
|
479
|
+
onClick: _cache[4] || (_cache[4] = (...args) => $options.deleteComponent && $options.deleteComponent(...args))
|
|
480
|
+
})
|
|
481
|
+
]),
|
|
482
|
+
_: 1
|
|
483
|
+
})
|
|
484
|
+
])
|
|
485
|
+
], 36),
|
|
486
|
+
createElementVNode("div", _hoisted_6, [
|
|
487
|
+
$options.slotEntries.length > 0 ? (openBlock(), createElementBlock("ul", _hoisted_7, [
|
|
488
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.slotEntries, (slot) => {
|
|
489
|
+
return openBlock(), createBlock(_component_epx_page_designer_widget_tree_item, {
|
|
490
|
+
key: slot.widget.id,
|
|
491
|
+
designer: $props.designer,
|
|
492
|
+
widget: slot.widget,
|
|
493
|
+
"slot-name": slot.name,
|
|
494
|
+
level: $props.level + 1,
|
|
495
|
+
"parent-widget": $props.widget,
|
|
496
|
+
"dragging-id": $props.draggingId,
|
|
497
|
+
placeholder: $props.placeholder,
|
|
498
|
+
"drop-hint": $props.dropHint,
|
|
499
|
+
onAdd: _cache[15] || (_cache[15] = (v) => _ctx.$emit("add", v)),
|
|
500
|
+
onAddTemplate: _cache[16] || (_cache[16] = (v) => _ctx.$emit("add-template", v)),
|
|
501
|
+
onDragStart: _cache[17] || (_cache[17] = (v) => _ctx.$emit("drag-start", v)),
|
|
502
|
+
onHoverForDrop: _cache[18] || (_cache[18] = (v) => _ctx.$emit("hover-for-drop", v)),
|
|
503
|
+
onDragEnd: _cache[19] || (_cache[19] = (v) => _ctx.$emit("drag-end", v)),
|
|
504
|
+
onLibraryHoverForDrop: _cache[20] || (_cache[20] = (v) => _ctx.$emit("library-hover-for-drop", v)),
|
|
505
|
+
onLibraryDrop: _cache[21] || (_cache[21] = (v) => _ctx.$emit("library-drop", v))
|
|
506
|
+
}, null, 8, ["designer", "widget", "slot-name", "level", "parent-widget", "dragging-id", "placeholder", "drop-hint"]);
|
|
507
|
+
}), 128))
|
|
508
|
+
])) : createCommentVNode("", true),
|
|
509
|
+
$options.widgetInfo.CONTAINER === "1" ? (openBlock(), createElementBlock("ul", _hoisted_8, [
|
|
510
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.items || [], (child, idx) => {
|
|
511
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
512
|
+
key: child.id
|
|
513
|
+
}, [
|
|
514
|
+
$options.showChildPlaceholderAt(idx) ? (openBlock(), createElementBlock("li", {
|
|
515
|
+
key: 0,
|
|
516
|
+
class: "epx-page-designer-widget-tree-item epx-page-designer-widget-tree-item--placeholder",
|
|
517
|
+
onDragover: _cache[22] || (_cache[22] = withModifiers((...args) => $options.onPlaceholderDragOver && $options.onPlaceholderDragOver(...args), ["prevent"])),
|
|
518
|
+
onDragenter: _cache[23] || (_cache[23] = (...args) => $options.onPlaceholderDragEnter && $options.onPlaceholderDragEnter(...args)),
|
|
519
|
+
onDrop: _cache[24] || (_cache[24] = (...args) => $options.onPlaceholderDrop && $options.onPlaceholderDrop(...args))
|
|
520
|
+
}, [..._cache[44] || (_cache[44] = [
|
|
521
|
+
createElementVNode("div", { class: "epx-page-designer-widget-tree-item__placeholder-box" }, null, -1)
|
|
522
|
+
])], 32)) : createCommentVNode("", true),
|
|
523
|
+
createVNode(_component_epx_page_designer_widget_tree_item, {
|
|
524
|
+
designer: $props.designer,
|
|
525
|
+
widget: child,
|
|
526
|
+
level: $props.level + 1,
|
|
527
|
+
"parent-widget": $props.widget,
|
|
528
|
+
index: idx,
|
|
529
|
+
"dragging-id": $props.draggingId,
|
|
530
|
+
placeholder: $props.placeholder,
|
|
531
|
+
"drop-hint": $props.dropHint,
|
|
532
|
+
onAdd: _cache[25] || (_cache[25] = (v) => _ctx.$emit("add", v)),
|
|
533
|
+
onAddTemplate: _cache[26] || (_cache[26] = (v) => _ctx.$emit("add-template", v)),
|
|
534
|
+
onDragStart: _cache[27] || (_cache[27] = (v) => _ctx.$emit("drag-start", v)),
|
|
535
|
+
onHoverForDrop: _cache[28] || (_cache[28] = (v) => _ctx.$emit("hover-for-drop", v)),
|
|
536
|
+
onDragEnd: _cache[29] || (_cache[29] = (v) => _ctx.$emit("drag-end", v)),
|
|
537
|
+
onLibraryHoverForDrop: _cache[30] || (_cache[30] = (v) => _ctx.$emit("library-hover-for-drop", v)),
|
|
538
|
+
onLibraryDrop: _cache[31] || (_cache[31] = (v) => _ctx.$emit("library-drop", v))
|
|
539
|
+
}, null, 8, ["designer", "widget", "level", "parent-widget", "index", "dragging-id", "placeholder", "drop-hint"])
|
|
540
|
+
], 64);
|
|
541
|
+
}), 128)),
|
|
542
|
+
$options.showChildPlaceholderAt(($props.widget.items || []).length) ? (openBlock(), createElementBlock("li", {
|
|
543
|
+
key: `placeholder-${$props.widget.id}-end`,
|
|
544
|
+
class: "epx-page-designer-widget-tree-item epx-page-designer-widget-tree-item--placeholder",
|
|
545
|
+
onDragover: _cache[32] || (_cache[32] = withModifiers((...args) => $options.onPlaceholderDragOver && $options.onPlaceholderDragOver(...args), ["prevent"])),
|
|
546
|
+
onDragenter: _cache[33] || (_cache[33] = (...args) => $options.onPlaceholderDragEnter && $options.onPlaceholderDragEnter(...args)),
|
|
547
|
+
onDrop: _cache[34] || (_cache[34] = (...args) => $options.onPlaceholderDrop && $options.onPlaceholderDrop(...args))
|
|
548
|
+
}, [..._cache[45] || (_cache[45] = [
|
|
549
|
+
createElementVNode("div", { class: "epx-page-designer-widget-tree-item__placeholder-box" }, null, -1)
|
|
550
|
+
])], 32)) : createCommentVNode("", true)
|
|
551
|
+
])) : $props.widget.items && $props.widget.items.length > 0 && $props.widget.contentType !== "dashboard-widget" ? (openBlock(), createElementBlock("ul", _hoisted_9, [
|
|
552
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.items, (child, idx) => {
|
|
553
|
+
return openBlock(), createBlock(_component_epx_page_designer_widget_tree_item, {
|
|
554
|
+
key: child.id,
|
|
555
|
+
designer: $props.designer,
|
|
556
|
+
widget: child,
|
|
557
|
+
level: $props.level + 1,
|
|
558
|
+
"parent-widget": $props.widget,
|
|
559
|
+
index: idx,
|
|
560
|
+
"dragging-id": $props.draggingId,
|
|
561
|
+
placeholder: $props.placeholder,
|
|
562
|
+
"drop-hint": $props.dropHint,
|
|
563
|
+
onAdd: _cache[35] || (_cache[35] = (v) => _ctx.$emit("add", v)),
|
|
564
|
+
onAddTemplate: _cache[36] || (_cache[36] = (v) => _ctx.$emit("add-template", v)),
|
|
565
|
+
onDragStart: _cache[37] || (_cache[37] = (v) => _ctx.$emit("drag-start", v)),
|
|
566
|
+
onHoverForDrop: _cache[38] || (_cache[38] = (v) => _ctx.$emit("hover-for-drop", v)),
|
|
567
|
+
onDragEnd: _cache[39] || (_cache[39] = (v) => _ctx.$emit("drag-end", v)),
|
|
568
|
+
onLibraryHoverForDrop: _cache[40] || (_cache[40] = (v) => _ctx.$emit("library-hover-for-drop", v)),
|
|
569
|
+
onLibraryDrop: _cache[41] || (_cache[41] = (v) => _ctx.$emit("library-drop", v))
|
|
570
|
+
}, null, 8, ["designer", "widget", "level", "parent-widget", "index", "dragging-id", "placeholder", "drop-hint"]);
|
|
571
|
+
}), 128))
|
|
572
|
+
])) : createCommentVNode("", true)
|
|
573
|
+
])
|
|
574
|
+
])
|
|
575
|
+
], 10, _hoisted_1);
|
|
576
|
+
}
|
|
577
|
+
const WidgetItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
578
|
+
export {
|
|
579
|
+
WidgetItem as default
|
|
580
|
+
};
|