@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,36 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-carousel :type="$configs.type" :height="$configs.height + 'px'" :indicator-position="$configs.indicatorPosition" :trigger="$configs.trigger" :direction="$configs.type==='card' ? 'horizontal': $configs.direction" :autoplay="false" :interval="$configs.interval" :arrow="$configs.arrow">
|
|
3
|
+
<el-carousel-item v-for="item in childWidgetList" :key="item.id" class="carousel-item">
|
|
4
|
+
<template v-if="item.renderContentType==='node'">
|
|
5
|
+
<widget-preview v-bind="$forwardAttrs($attrs)" :widget="item"
|
|
6
|
+
:parent-widget="widget"
|
|
7
|
+
:designer="designer"
|
|
8
|
+
|
|
9
|
+
/>
|
|
10
|
+
</template>
|
|
11
|
+
<template v-else>
|
|
12
|
+
<img v-if="item.imgUrl" class="epx-carousel__img" :src="$util.getFileUrl(item.imgUrl)" @click.stop="clickItem(item)" />
|
|
13
|
+
<div>请上传图片</div>
|
|
14
|
+
</template>
|
|
15
|
+
</el-carousel-item>
|
|
16
|
+
</el-carousel>
|
|
17
|
+
</template>
|
|
18
|
+
<script>
|
|
19
|
+
import previewMixin from '@epxing/designer/src/page-designer/widget-preview/Mixin'
|
|
20
|
+
import Carousel from '@epxing/components/src/carousel/Carousel'
|
|
21
|
+
export default {
|
|
22
|
+
name: 'epx-carousel--preview',
|
|
23
|
+
mixins: [previewMixin],
|
|
24
|
+
extends: Carousel
|
|
25
|
+
}
|
|
26
|
+
</script>
|
|
27
|
+
<style lang="scss" scoped>
|
|
28
|
+
.carousel-item {
|
|
29
|
+
|
|
30
|
+
:deep(.epx-page-designer-widget-preview-item) {
|
|
31
|
+
height: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
</style>
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-collapse-item :name="widget.id" >
|
|
3
|
+
<template v-slot:title><div class="epx-collapse__header" >
|
|
4
|
+
<i class="epx-collapse__header-icon el-icon-caret-right"></i>
|
|
5
|
+
<div class="epx-collapse__header-title">
|
|
6
|
+
<!-- 头部插槽:主题色虚线框圈出插槽范围,和普通容器的放置区区分开 -->
|
|
7
|
+
<div
|
|
8
|
+
v-if="showTitleSlot"
|
|
9
|
+
:class="['epx-collapse__header-slot', { 'is-empty': !headerSlotWidget }]"
|
|
10
|
+
@dragenter="onHeaderDragEnter"
|
|
11
|
+
@dragover.prevent="onHeaderDragOver"
|
|
12
|
+
@dragleave="onHeaderDragLeave"
|
|
13
|
+
@drop.prevent.stop="onHeaderDrop"
|
|
14
|
+
>
|
|
15
|
+
<widget-preview v-bind="$forwardAttrs($attrs)" v-if="headerSlotWidget"
|
|
16
|
+
:widget="headerSlotWidget"
|
|
17
|
+
:parent-widget="widget"
|
|
18
|
+
:designer="designer"
|
|
19
|
+
>
|
|
20
|
+
</widget-preview>
|
|
21
|
+
<span v-else class="epx-collapse__header-slot-tip">拖拽组件到这里</span>
|
|
22
|
+
</div>
|
|
23
|
+
<span v-else>{{widget.title}}</span>
|
|
24
|
+
</div>
|
|
25
|
+
</div></template>
|
|
26
|
+
<div class="epx-page-designer-widget-preview__drop-zone">
|
|
27
|
+
<widget-preview v-bind="$forwardAttrs($attrs)" v-for="childWidget in childWidgetList"
|
|
28
|
+
:key="childWidget.id"
|
|
29
|
+
:widget="childWidget"
|
|
30
|
+
:parent-widget="widget"
|
|
31
|
+
:designer="designer"
|
|
32
|
+
|
|
33
|
+
/>
|
|
34
|
+
<div class="epx-page-designer-widget-preview__no-widget" v-if="childWidgetList.length===0">拖拽组件到这里</div>
|
|
35
|
+
</div>
|
|
36
|
+
</el-collapse-item>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<script>
|
|
40
|
+
import previewMixin from '@epxing/designer/src/page-designer/widget-preview/Mixin.js'
|
|
41
|
+
|
|
42
|
+
// 折叠项的标题插槽名,与运行时 Collapse.vue 读取的 item.slots.header 保持一致
|
|
43
|
+
const HEADER_SLOT = 'header'
|
|
44
|
+
|
|
45
|
+
export default {
|
|
46
|
+
name: 'epx-collapse-item--preview',
|
|
47
|
+
mixins: [previewMixin],
|
|
48
|
+
computed: {
|
|
49
|
+
headerSlotWidget () {
|
|
50
|
+
return (this.widget.slots || {})[HEADER_SLOT] || null
|
|
51
|
+
},
|
|
52
|
+
// 配置点「头部插槽」写在 widgetConfig 里,优先;
|
|
53
|
+
// 老可视化把 showTitleSlot 写在折叠项自身上,没配过配置点时兜底读它
|
|
54
|
+
// (与运行时 Collapse.vue 的判断保持一致,否则设计态和运行态会对不上)
|
|
55
|
+
showTitleSlot () {
|
|
56
|
+
const config = this.$configs.showTitleSlot
|
|
57
|
+
if (config !== undefined && config !== null) return !!config
|
|
58
|
+
return !!this.widget.showTitleSlot
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
methods: {
|
|
62
|
+
// Header slot 拖拽处理:统一走 designer.handleDrop,组件库 / 模板库 / 画布内拖动都支持
|
|
63
|
+
onHeaderDragEnter (e) {
|
|
64
|
+
if (!this.isDraggingFromLibrary(e)) return
|
|
65
|
+
e.stopPropagation()
|
|
66
|
+
this.designer.setDragOverTarget({ type: 'slot', widgetId: this.widget.id, slotName: HEADER_SLOT })
|
|
67
|
+
this.designer.setDragOverTargetElement(e.currentTarget)
|
|
68
|
+
},
|
|
69
|
+
onHeaderDragOver (e) {
|
|
70
|
+
if (!this.isDraggingFromLibrary(e)) return
|
|
71
|
+
// 先更新悬浮窗位置再阻止冒泡,否则 ghost 会跟不上鼠标
|
|
72
|
+
if (this.designer.updateDragGhostPosition) {
|
|
73
|
+
this.designer.updateDragGhostPosition(e.clientX, e.clientY)
|
|
74
|
+
}
|
|
75
|
+
e.stopPropagation()
|
|
76
|
+
e.dataTransfer.dropEffect = this.isDraggingWidget() ? 'move' : 'copy'
|
|
77
|
+
// 插槽只有一个落点,不需要插入线
|
|
78
|
+
this.designer.clearDragInsertLine()
|
|
79
|
+
},
|
|
80
|
+
onHeaderDragLeave (e) {
|
|
81
|
+
const dropZone = e.currentTarget
|
|
82
|
+
if (dropZone && !dropZone.contains(e.relatedTarget)) {
|
|
83
|
+
this.designer.clearDragOverTarget()
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
onHeaderDrop (e) {
|
|
87
|
+
this.designer.clearDragOverTarget()
|
|
88
|
+
this.designer.clearDragInsertLine()
|
|
89
|
+
this.designer.clearPreviewDragTarget()
|
|
90
|
+
|
|
91
|
+
// 通知 PageDesigner 拖拽结束,关闭悬浮窗
|
|
92
|
+
if (this.designer.vueInstance) {
|
|
93
|
+
this.designer.emitEvent('drag-end')
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
this.designer.handleDrop({
|
|
97
|
+
dataTransfer: e.dataTransfer,
|
|
98
|
+
target: { type: 'slot', widgetId: this.widget.id, slotName: HEADER_SLOT }
|
|
99
|
+
})
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
</script>
|
|
104
|
+
|
|
105
|
+
<style lang="scss" scoped>
|
|
106
|
+
.epx-page-designer-widget-preview__drop-zone {
|
|
107
|
+
min-height: 60px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.epx-page-designer-widget-preview__no-widget {
|
|
111
|
+
pointer-events: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// 头部插槽区:主题色虚线框,和普通容器的灰底放置区区分开(仅设计态可见)
|
|
115
|
+
.epx-collapse__header-slot {
|
|
116
|
+
min-height: 40px;
|
|
117
|
+
padding: 2px;
|
|
118
|
+
box-sizing: border-box;
|
|
119
|
+
border: 1px dashed;
|
|
120
|
+
border-radius: var(--border-radius);
|
|
121
|
+
@include border_color_primary;
|
|
122
|
+
|
|
123
|
+
&.is-empty {
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
@include bg_color_primary(.04);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.epx-collapse__header-slot-tip {
|
|
132
|
+
font-size: $--font-size-extra-small;
|
|
133
|
+
pointer-events: none;
|
|
134
|
+
@include font_color_primary;
|
|
135
|
+
}
|
|
136
|
+
</style>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-collapse class="epx-collapse" v-model="activeCollapse" accordion>
|
|
3
|
+
<widget-preview v-bind="$forwardAttrs($attrs)" v-for="item in childWidgetList" :key="item.id"
|
|
4
|
+
:widget="item"
|
|
5
|
+
:parent-widget="widget"
|
|
6
|
+
:designer="designer"
|
|
7
|
+
|
|
8
|
+
/>
|
|
9
|
+
|
|
10
|
+
</el-collapse>
|
|
11
|
+
</template>
|
|
12
|
+
<script>
|
|
13
|
+
import previewMixin from '@epxing/designer/src/page-designer/widget-preview/Mixin'
|
|
14
|
+
export default {
|
|
15
|
+
name: 'epx-collapse--preview',
|
|
16
|
+
mixins: [previewMixin]
|
|
17
|
+
}
|
|
18
|
+
</script>
|
|
19
|
+
<style lang="scss" scoped>
|
|
20
|
+
.carousel-item {
|
|
21
|
+
|
|
22
|
+
:deep(.epx-page-designer-widget-preview-item) {
|
|
23
|
+
height: 100%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
</style>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dropdown>
|
|
3
|
+
<!-- EP 3.0 预清:type="text" 已废弃 → 非按钮态用 primary + link(同批 codemod-ep-button-link) -->
|
|
4
|
+
<el-button class="epx-dropdown__trigger" type="primary" :link="$configs.type!=='button'" :size="$configs.size">
|
|
5
|
+
{{$configs.name}}<i :class="`el-icon-arrow-down ${$configs.icon || 'el-icon--right'}`"></i>
|
|
6
|
+
</el-button>
|
|
7
|
+
<template v-slot:dropdown><el-dropdown-menu>
|
|
8
|
+
<el-dropdown-item>黄金糕</el-dropdown-item>
|
|
9
|
+
<el-dropdown-item>狮子头</el-dropdown-item>
|
|
10
|
+
<el-dropdown-item>螺蛳粉</el-dropdown-item>
|
|
11
|
+
<el-dropdown-item divided>蚵仔煎</el-dropdown-item>
|
|
12
|
+
</el-dropdown-menu></template>
|
|
13
|
+
</el-dropdown>
|
|
14
|
+
</template>
|
|
15
|
+
<script>
|
|
16
|
+
import previewMixin from '@epxing/designer/src/page-designer/widget-preview/Mixin'
|
|
17
|
+
export default {
|
|
18
|
+
name: 'epx-dropdown--preview',
|
|
19
|
+
mixins: [previewMixin]
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="$isMobile">
|
|
3
|
+
<div class="m-list">
|
|
4
|
+
<div class="epx-entity-mobile-list__search">
|
|
5
|
+
<epx-m-search class="epx-entity-mobile-list__keyword" :metaId="$metaId" :keywords="$configs.keywords"></epx-m-search>
|
|
6
|
+
<div class="epx-entity-mobile-list__search-bar">
|
|
7
|
+
<div class="epx-entity-mobile-list__item-operates" v-if="operateFlag && checkRightOperates.length> 0">
|
|
8
|
+
<el-button
|
|
9
|
+
v-for="operate in operates"
|
|
10
|
+
class="epx-entity-mobile-list__operate"
|
|
11
|
+
:key="operate.text"
|
|
12
|
+
type="primary" link
|
|
13
|
+
size="small"
|
|
14
|
+
>
|
|
15
|
+
<i v-if="operate.iconCls" :class="operate.iconCls"></i>
|
|
16
|
+
{{operate.text}}
|
|
17
|
+
</el-button>
|
|
18
|
+
<el-dropdown v-if=" this.moreOperates.length > 0" class="epx-entity-mobile-list__operate-dropdown" trigger="click" >
|
|
19
|
+
<span class="epx-entity-mobile-list__dropdown-link">
|
|
20
|
+
<i class="epx-icon-menu" ></i>
|
|
21
|
+
</span>
|
|
22
|
+
<template v-slot:dropdown><el-dropdown-menu>
|
|
23
|
+
<el-dropdown-item v-for="operate in moreOperates" :key="operate.text" :icon="operate.iconCls">
|
|
24
|
+
{{operate.text}}
|
|
25
|
+
</el-dropdown-item>
|
|
26
|
+
</el-dropdown-menu></template>
|
|
27
|
+
</el-dropdown>
|
|
28
|
+
</div>
|
|
29
|
+
<div>
|
|
30
|
+
<span class="epx-entity-mobile-list__search-record">共 1 条</span>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
<ul class="epx-entity-mobile-list__list">
|
|
35
|
+
<li class="epx-entity-mobile-list__item" >
|
|
36
|
+
<div class="epx-entity-mobile-list__item-content">
|
|
37
|
+
<p class="epx-entity-mobile-list__item-icon" v-if="icon">
|
|
38
|
+
<img :src="require('@/assets/images/default-icon.png')" />
|
|
39
|
+
</p>
|
|
40
|
+
<div class="epx-entity-mobile-list__item-field">
|
|
41
|
+
<p v-for="rowItem in rows" :key="rowItem.map(item => item.attriName).join('')">
|
|
42
|
+
<template v-for="(field, index) in rowItem" :key="index">
|
|
43
|
+
<span v-if="field.state!=='HIDDEN'">
|
|
44
|
+
<span v-if="field.showLabel">{{field.attriLabel}}:</span>
|
|
45
|
+
<span v-if="field.style === 'tag'" class="epx-entity-mobile-list__field-tag">
|
|
46
|
+
<font :style="{ color: field.color, fontWeight: field.fontWeight, fontSize: field.fontSize + 'px' }">{{field.attriLabel}}</font>
|
|
47
|
+
</span>
|
|
48
|
+
<font v-else :style="{ color: field.color, fontWeight: field.fontWeight, fontSize: field.fontSize + 'px' }">{{field.attriLabel}}</font>
|
|
49
|
+
<template v-if="index !== rowItem.length - 1">{{field.split || ' | '}}</template>
|
|
50
|
+
</span>
|
|
51
|
+
</template>
|
|
52
|
+
</p>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="epx-entity-mobile-list__item-extra" v-if="$_.isNil($configs.operateColumnFlag)? true :$configs.operateColumnFlag">
|
|
56
|
+
<template v-if="unfoldColumnOperates.length > 0">
|
|
57
|
+
<el-button
|
|
58
|
+
v-for="operate in unfoldColumnOperates"
|
|
59
|
+
class="epx-entity-mobile-list__column-operate"
|
|
60
|
+
:key="operate.text"
|
|
61
|
+
type="primary" link
|
|
62
|
+
size="small"
|
|
63
|
+
>
|
|
64
|
+
<i v-if="operate.iconCls" :class="operate.iconCls"></i>
|
|
65
|
+
{{operate.text}}
|
|
66
|
+
</el-button>
|
|
67
|
+
</template>
|
|
68
|
+
<template v-if="foldColumnOperates.length > 0">
|
|
69
|
+
<el-dropdown class="epx-entity-mobile-list__column-dropdown" >
|
|
70
|
+
<span class="epx-entity-mobile-list__dropdown-link">
|
|
71
|
+
<i class="el-icon-more"></i>
|
|
72
|
+
</span>
|
|
73
|
+
<template v-slot:dropdown><el-dropdown-menu>
|
|
74
|
+
<el-dropdown-item v-for="operate in foldColumnOperates" :key="operate.text" :icon="operate.iconCls">
|
|
75
|
+
{{operate.text}}
|
|
76
|
+
</el-dropdown-item>
|
|
77
|
+
|
|
78
|
+
</el-dropdown-menu></template>
|
|
79
|
+
</el-dropdown>
|
|
80
|
+
</template>
|
|
81
|
+
</div>
|
|
82
|
+
</li>
|
|
83
|
+
</ul>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
<div v-else :style="style">
|
|
87
|
+
<template v-if="loadSearch && $configs.searchFlag">
|
|
88
|
+
<epx-search-fields v-if="searchMode ==='field'" :fields="$configs.searchFields" :filterFields="$configs.filterFields" :keywords="$configs.keywords"></epx-search-fields>
|
|
89
|
+
<epx-search-filter v-if="searchMode ==='filter'" :fields="$configs.searchFields" :filterFields="$configs.filterFields" :keywords="$configs.keywords" />
|
|
90
|
+
</template>
|
|
91
|
+
<div class="list-operates" >
|
|
92
|
+
<div>
|
|
93
|
+
<div class="button-group" v-if="operateFlag && checkRightOperates.length> 0">
|
|
94
|
+
<el-button v-bind="{ [operate.type]: true }" v-for="operate in operates" :key="operate.text" size="default" :type="operate.type === 'text' ? 'text' : operate.ui">
|
|
95
|
+
<i v-if="operate.icon" :class="['operate-icon', operate.icon]"></i>
|
|
96
|
+
{{operate.text}}
|
|
97
|
+
</el-button>
|
|
98
|
+
<el-dropdown class="more-table-operates" trigger="click" v-if="moreOperates.length>0">
|
|
99
|
+
<el-button size="default">
|
|
100
|
+
<i class="el-icon-more"></i>
|
|
101
|
+
</el-button>
|
|
102
|
+
<template v-slot:dropdown><el-dropdown-menu>
|
|
103
|
+
<el-dropdown-item v-for="operate in moreOperates" :key="operate.text">{{operate.text}}</el-dropdown-item>
|
|
104
|
+
</el-dropdown-menu></template>
|
|
105
|
+
</el-dropdown>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="search-simple fr" v-if="searchFlag && (!searchMode || searchMode ==='keyword')">
|
|
109
|
+
<epx-search-keyword :keywords="$configs.keywords"></epx-search-keyword>
|
|
110
|
+
</div>
|
|
111
|
+
<span v-else-if="totalFlag">{{this.$t('A total of 0 pieces of data')}}</span>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="list">
|
|
114
|
+
<el-table
|
|
115
|
+
:data="tableData"
|
|
116
|
+
style="width: 100%"
|
|
117
|
+
>
|
|
118
|
+
<template v-for="item in listFields" :key="item.attriName">
|
|
119
|
+
<el-table-column
|
|
120
|
+
v-if="item.state!=='HIDDEN'"
|
|
121
|
+
|
|
122
|
+
:prop="item.attriName"
|
|
123
|
+
:label="item.attriLabel"
|
|
124
|
+
>
|
|
125
|
+
</el-table-column>
|
|
126
|
+
</template>
|
|
127
|
+
</el-table>
|
|
128
|
+
<el-pagination
|
|
129
|
+
class="pagination"
|
|
130
|
+
v-if="pageFlag"
|
|
131
|
+
:default-current-page="1"
|
|
132
|
+
:pageSizes="[5, 10, 15, 20, 30, 50, 100, 200]"
|
|
133
|
+
:default-page-size="pageSize"
|
|
134
|
+
layout="prev, pager, next, jumper, sizes,total"
|
|
135
|
+
:total="0"
|
|
136
|
+
>
|
|
137
|
+
</el-pagination>
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
</template>
|
|
141
|
+
|
|
142
|
+
<script>
|
|
143
|
+
import previewMixin from '@epxing/designer/src/page-designer/widget-preview/Mixin'
|
|
144
|
+
export default {
|
|
145
|
+
name: 'epx-entity-list--preview',
|
|
146
|
+
mixins: [previewMixin],
|
|
147
|
+
computed: {
|
|
148
|
+
currentMetaId () {
|
|
149
|
+
const { metaId = this.designer.page.metaId } = this.$configs
|
|
150
|
+
return metaId
|
|
151
|
+
},
|
|
152
|
+
operateFlag () {
|
|
153
|
+
const { operateFlag = true } = this.$configs
|
|
154
|
+
return operateFlag
|
|
155
|
+
},
|
|
156
|
+
searchFlag () {
|
|
157
|
+
const { searchFlag = true } = this.$configs
|
|
158
|
+
return searchFlag
|
|
159
|
+
},
|
|
160
|
+
totalFlag () {
|
|
161
|
+
const { totalFlag = true } = this.$configs
|
|
162
|
+
return totalFlag
|
|
163
|
+
},
|
|
164
|
+
searchMode () {
|
|
165
|
+
const { searchMode = 'keyword' } = this.$configs
|
|
166
|
+
return searchMode
|
|
167
|
+
},
|
|
168
|
+
pageFlag () {
|
|
169
|
+
const { pageFlag = true } = this.$configs
|
|
170
|
+
return pageFlag
|
|
171
|
+
},
|
|
172
|
+
pageSize () {
|
|
173
|
+
const { pageSize = 20 } = this.$configs
|
|
174
|
+
return pageSize
|
|
175
|
+
},
|
|
176
|
+
buttonUi () {
|
|
177
|
+
return ui => (ui === 'blue' || ui === 'soft-blue') ? 'primary' : ui
|
|
178
|
+
},
|
|
179
|
+
checkRightOperates () {
|
|
180
|
+
let { operates } = this.$configs
|
|
181
|
+
if (!operates) {
|
|
182
|
+
operates = [
|
|
183
|
+
{
|
|
184
|
+
text: this.$t('add'),
|
|
185
|
+
ui: 'primary'
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
text: this.$t('delete')
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
text: this.$t('import')
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
text: this.$t('export')
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
return operates
|
|
199
|
+
},
|
|
200
|
+
operates () {
|
|
201
|
+
let { operateEllipsis } = this.$configs
|
|
202
|
+
if (operateEllipsis == null) operateEllipsis = 2
|
|
203
|
+
let showOperateLength = 0
|
|
204
|
+
if (operateEllipsis === false) return this.checkRightOperates
|
|
205
|
+
if (operateEllipsis !== true) {
|
|
206
|
+
showOperateLength = operateEllipsis
|
|
207
|
+
}
|
|
208
|
+
const cOperates = [...this.checkRightOperates]
|
|
209
|
+
if (cOperates.length > showOperateLength) {
|
|
210
|
+
cOperates.length = showOperateLength
|
|
211
|
+
}
|
|
212
|
+
return cOperates
|
|
213
|
+
},
|
|
214
|
+
moreOperates () {
|
|
215
|
+
let { operateEllipsis } = this.$configs
|
|
216
|
+
if (operateEllipsis == null) operateEllipsis = 2
|
|
217
|
+
let showOperateLength = 0
|
|
218
|
+
if (operateEllipsis === false) return []
|
|
219
|
+
if (operateEllipsis !== true) {
|
|
220
|
+
showOperateLength = operateEllipsis
|
|
221
|
+
}
|
|
222
|
+
const cOperates = [...this.checkRightOperates]
|
|
223
|
+
if (cOperates.length > showOperateLength) {
|
|
224
|
+
cOperates.splice(0, showOperateLength)
|
|
225
|
+
return cOperates
|
|
226
|
+
}
|
|
227
|
+
return []
|
|
228
|
+
},
|
|
229
|
+
icon () {
|
|
230
|
+
const { 'mobile-iconField': iconField = [] } = this.$configs
|
|
231
|
+
return iconField[0]
|
|
232
|
+
},
|
|
233
|
+
columnOperates () {
|
|
234
|
+
const {
|
|
235
|
+
columnOperates = [
|
|
236
|
+
{
|
|
237
|
+
text: this.$t('MultiSelect'),
|
|
238
|
+
handler: 'multiSelect'
|
|
239
|
+
},
|
|
240
|
+
{ text: this.$t('edit') }
|
|
241
|
+
]
|
|
242
|
+
} = this.$configs
|
|
243
|
+
const terminal = this.$isMobile ? 'mobile' : 'pc'
|
|
244
|
+
return columnOperates.filter(item => (!item.terminal || item.terminal === 'all' || item.terminal === terminal))
|
|
245
|
+
},
|
|
246
|
+
foldColumnOperates () {
|
|
247
|
+
const { 'mobile-operateColumnEllipsis': operateColumnEllipsis = true } = this.$configs
|
|
248
|
+
let showOperatesLength = 0
|
|
249
|
+
if (operateColumnEllipsis === false) return []
|
|
250
|
+
if (operateColumnEllipsis !== true) {
|
|
251
|
+
showOperatesLength = operateColumnEllipsis
|
|
252
|
+
}
|
|
253
|
+
if (this.columnOperates.length > showOperatesLength) {
|
|
254
|
+
const foldButtons = [...this.columnOperates]
|
|
255
|
+
if (showOperatesLength !== 0) foldButtons.splice(0, showOperatesLength)
|
|
256
|
+
return foldButtons
|
|
257
|
+
} else {
|
|
258
|
+
return []
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
unfoldColumnOperates () {
|
|
262
|
+
const { 'mobile-operateColumnEllipsis': operateColumnEllipsis = true } = this.$configs
|
|
263
|
+
let showOperatesLength = 0
|
|
264
|
+
if (operateColumnEllipsis === false) return this.columnOperates
|
|
265
|
+
if (operateColumnEllipsis !== true) {
|
|
266
|
+
showOperatesLength = operateColumnEllipsis
|
|
267
|
+
}
|
|
268
|
+
const unfoldButtons = [...this.columnOperates]
|
|
269
|
+
if (showOperatesLength === 0) return []
|
|
270
|
+
if (unfoldButtons.length > showOperatesLength) unfoldButtons.length = showOperatesLength
|
|
271
|
+
return unfoldButtons
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
data () {
|
|
275
|
+
return {
|
|
276
|
+
loadSearch: true,
|
|
277
|
+
tableData: [],
|
|
278
|
+
listFields: [],
|
|
279
|
+
rows: []
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
watch: {
|
|
283
|
+
'$configs.keywords' (v) {
|
|
284
|
+
this.loadSearch = false
|
|
285
|
+
this.$nextTick(() => {
|
|
286
|
+
this.loadSearch = true
|
|
287
|
+
})
|
|
288
|
+
},
|
|
289
|
+
'$configs.searchFields' (v) {
|
|
290
|
+
this.loadSearch = false
|
|
291
|
+
this.$nextTick(() => {
|
|
292
|
+
this.loadSearch = true
|
|
293
|
+
})
|
|
294
|
+
},
|
|
295
|
+
'$configs.filterFields' (v) {
|
|
296
|
+
this.loadSearch = false
|
|
297
|
+
this.$nextTick(() => {
|
|
298
|
+
this.loadSearch = true
|
|
299
|
+
})
|
|
300
|
+
},
|
|
301
|
+
'$configs.listFields': {
|
|
302
|
+
handler (v) {
|
|
303
|
+
this.getFields()
|
|
304
|
+
},
|
|
305
|
+
immediate: true
|
|
306
|
+
},
|
|
307
|
+
'$configs.rowFields': {
|
|
308
|
+
handler (v) {
|
|
309
|
+
this.getFields()
|
|
310
|
+
},
|
|
311
|
+
immediate: true
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
methods: {
|
|
315
|
+
formatter (row, column) {
|
|
316
|
+
return row.address
|
|
317
|
+
},
|
|
318
|
+
getFields () {
|
|
319
|
+
let { listFields, rowFields } = this.$configs
|
|
320
|
+
this.$FieldFactory.createFields({
|
|
321
|
+
fields: listFields,
|
|
322
|
+
metaId: this.currentMetaId
|
|
323
|
+
})
|
|
324
|
+
.then(data => {
|
|
325
|
+
this.listFields = [...data]
|
|
326
|
+
})
|
|
327
|
+
if (!rowFields) {
|
|
328
|
+
// ⚠️ 设计器预览里 $meta 不保证就绪:上面两个 watcher 都是 immediate:true,组件一创建就跑一次
|
|
329
|
+
// getFields(),那时对象元数据可能还没加载完;组件本身也可能压根没绑对象。
|
|
330
|
+
// 老写法直接 `this.$meta.getLabel()` 会抛 "Cannot read properties of undefined (reading 'getLabel')",
|
|
331
|
+
// 而且抛在 watcher 回调里 —— 会连带打断整块预览的渲染(可视化配置画布空白)。
|
|
332
|
+
const label = this.$meta && typeof this.$meta.getLabel === 'function' ? this.$meta.getLabel() : ''
|
|
333
|
+
rowFields = label ? [[label]] : []
|
|
334
|
+
}
|
|
335
|
+
const fields = [].concat(...rowFields)
|
|
336
|
+
this.$FieldFactory.createFields({
|
|
337
|
+
fields: fields,
|
|
338
|
+
metaId: this.currentMetaId
|
|
339
|
+
})
|
|
340
|
+
.then(data => {
|
|
341
|
+
this.rows = rowFields.map(row => {
|
|
342
|
+
return row.map(field => {
|
|
343
|
+
const item = data.find(item => item.attriName === (field.attriName || field))
|
|
344
|
+
if (item) return item
|
|
345
|
+
else return field
|
|
346
|
+
})
|
|
347
|
+
})
|
|
348
|
+
})
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
</script>
|
|
353
|
+
<style scoped lang="scss">
|
|
354
|
+
.list-operates {
|
|
355
|
+
background: var(--epx-bg-card);
|
|
356
|
+
padding: 16px 12px;
|
|
357
|
+
display: flex;
|
|
358
|
+
justify-content: space-between;
|
|
359
|
+
align-items: center;
|
|
360
|
+
}
|
|
361
|
+
.more-table-operates {
|
|
362
|
+
margin-left: 10px
|
|
363
|
+
}
|
|
364
|
+
.list {
|
|
365
|
+
background: var(--epx-bg-card);
|
|
366
|
+
}
|
|
367
|
+
.operate-icon {
|
|
368
|
+
margin-right: 4px;
|
|
369
|
+
}
|
|
370
|
+
.pagination {
|
|
371
|
+
background: var(--epx-bg-card);
|
|
372
|
+
padding: 16px 0;
|
|
373
|
+
|
|
374
|
+
:deep(.el-select) {
|
|
375
|
+
margin-left: 24px;
|
|
376
|
+
}
|
|
377
|
+
:deep(.el-pagination__total) {
|
|
378
|
+
float: right;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
}
|
|
382
|
+
</style>
|