@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,174 @@
|
|
|
1
|
+
import '../../../../style.css';
|
|
2
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createVNode } from "vue";
|
|
3
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const _sfc_main = {
|
|
5
|
+
props: {
|
|
6
|
+
label: String,
|
|
7
|
+
value: Object
|
|
8
|
+
},
|
|
9
|
+
data() {
|
|
10
|
+
return {
|
|
11
|
+
unfold: false,
|
|
12
|
+
predefineColors: ["#ff4500", "#ff8c00", "#ffd700", "#90ee90", "#00ced1", "#1e90ff", "#c71585"],
|
|
13
|
+
shadow: { x: void 0, y: void 0, blur: void 0, spread: void 0, color: "", inset: false }
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
watch: {
|
|
17
|
+
shadow: {
|
|
18
|
+
handler() {
|
|
19
|
+
this.emitChange();
|
|
20
|
+
},
|
|
21
|
+
deep: true
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
methods: {
|
|
25
|
+
// 解析 box-shadow 字符串到结构化字段(容错:颜色用 rgba/hex 匹配,其余按 px 长度顺序取 x/y/blur/spread)
|
|
26
|
+
parse(value) {
|
|
27
|
+
const out = { x: void 0, y: void 0, blur: void 0, spread: void 0, color: "", inset: false };
|
|
28
|
+
const str = value && value["box-shadow"] || "";
|
|
29
|
+
if (!str) return out;
|
|
30
|
+
let s = String(str).trim();
|
|
31
|
+
if (/\binset\b/.test(s)) {
|
|
32
|
+
out.inset = true;
|
|
33
|
+
s = s.replace(/\binset\b/, " ");
|
|
34
|
+
}
|
|
35
|
+
const colorMatch = s.match(/rgba?\([^)]+\)|hsla?\([^)]+\)|#[0-9a-fA-F]{3,8}/);
|
|
36
|
+
if (colorMatch) {
|
|
37
|
+
out.color = colorMatch[0];
|
|
38
|
+
s = s.replace(colorMatch[0], " ");
|
|
39
|
+
}
|
|
40
|
+
const nums = (s.match(/-?\d*\.?\d+/g) || []).map(Number);
|
|
41
|
+
out.x = nums[0];
|
|
42
|
+
out.y = nums[1];
|
|
43
|
+
out.blur = nums[2];
|
|
44
|
+
out.spread = nums[3];
|
|
45
|
+
return out;
|
|
46
|
+
},
|
|
47
|
+
// 组合为 box-shadow 样式组;全空则发空对象(清除阴影)
|
|
48
|
+
emitChange() {
|
|
49
|
+
const { x, y, blur, spread, color, inset } = this.shadow;
|
|
50
|
+
const isNum = (v) => typeof v === "number" && !isNaN(v);
|
|
51
|
+
const hasLen = [x, y, blur, spread].some(isNum);
|
|
52
|
+
if (!hasLen && !color) {
|
|
53
|
+
this.$emit("change", {});
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const px = (v) => `${isNum(v) ? v : 0}px`;
|
|
57
|
+
const parts = [];
|
|
58
|
+
if (inset) parts.push("inset");
|
|
59
|
+
parts.push(px(x), px(y), px(blur), px(spread));
|
|
60
|
+
if (color) parts.push(color);
|
|
61
|
+
this.$emit("change", { "box-shadow": parts.join(" ") });
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
created() {
|
|
65
|
+
this.shadow = this.parse(this.value);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
const _hoisted_1 = { class: "epx-page-designer-setting-style__header" };
|
|
69
|
+
const _hoisted_2 = {
|
|
70
|
+
class: "epx-page-designer-setting-style__label",
|
|
71
|
+
for: ""
|
|
72
|
+
};
|
|
73
|
+
const _hoisted_3 = { class: "epx-page-designer-setting-style__content" };
|
|
74
|
+
const _hoisted_4 = { class: "epx-page-designer-setting-style__subitem" };
|
|
75
|
+
const _hoisted_5 = { class: "epx-page-designer-setting-style__subitem" };
|
|
76
|
+
const _hoisted_6 = { class: "epx-page-designer-setting-style__subitem" };
|
|
77
|
+
const _hoisted_7 = { class: "epx-page-designer-setting-style__subitem" };
|
|
78
|
+
const _hoisted_8 = { class: "epx-page-designer-setting-style__subitem" };
|
|
79
|
+
const _hoisted_9 = { class: "epx-page-designer-setting-style__subitem" };
|
|
80
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
81
|
+
const _component_el_color_picker = resolveComponent("el-color-picker");
|
|
82
|
+
const _component_el_input_number = resolveComponent("el-input-number");
|
|
83
|
+
const _component_el_switch = resolveComponent("el-switch");
|
|
84
|
+
return openBlock(), createElementBlock("div", {
|
|
85
|
+
class: normalizeClass({ "epx-page-designer-setting-style__item": true, "epx-page-designer-setting-style__item--unfold": $data.unfold })
|
|
86
|
+
}, [
|
|
87
|
+
createElementVNode("div", _hoisted_1, [
|
|
88
|
+
createElementVNode("span", null, [
|
|
89
|
+
createElementVNode("i", {
|
|
90
|
+
class: "epx-page-designer-setting-style__fold-icon el-icon-caret-right",
|
|
91
|
+
onClick: _cache[0] || (_cache[0] = ($event) => $data.unfold = !$data.unfold)
|
|
92
|
+
}),
|
|
93
|
+
createElementVNode("label", _hoisted_2, toDisplayString($props.label), 1)
|
|
94
|
+
])
|
|
95
|
+
]),
|
|
96
|
+
createElementVNode("div", _hoisted_3, [
|
|
97
|
+
createElementVNode("div", _hoisted_4, [
|
|
98
|
+
_cache[7] || (_cache[7] = createElementVNode("label", {
|
|
99
|
+
class: "epx-page-designer-setting-style__label",
|
|
100
|
+
for: ""
|
|
101
|
+
}, "颜色", -1)),
|
|
102
|
+
createVNode(_component_el_color_picker, {
|
|
103
|
+
modelValue: $data.shadow.color,
|
|
104
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.shadow.color = $event),
|
|
105
|
+
"show-alpha": "",
|
|
106
|
+
predefine: $data.predefineColors
|
|
107
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
108
|
+
]),
|
|
109
|
+
createElementVNode("div", _hoisted_5, [
|
|
110
|
+
_cache[8] || (_cache[8] = createElementVNode("label", {
|
|
111
|
+
class: "epx-page-designer-setting-style__label",
|
|
112
|
+
for: ""
|
|
113
|
+
}, "水平偏移", -1)),
|
|
114
|
+
createVNode(_component_el_input_number, {
|
|
115
|
+
modelValue: $data.shadow.x,
|
|
116
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.shadow.x = $event),
|
|
117
|
+
"controls-position": "right",
|
|
118
|
+
size: "small"
|
|
119
|
+
}, null, 8, ["modelValue"])
|
|
120
|
+
]),
|
|
121
|
+
createElementVNode("div", _hoisted_6, [
|
|
122
|
+
_cache[9] || (_cache[9] = createElementVNode("label", {
|
|
123
|
+
class: "epx-page-designer-setting-style__label",
|
|
124
|
+
for: ""
|
|
125
|
+
}, "垂直偏移", -1)),
|
|
126
|
+
createVNode(_component_el_input_number, {
|
|
127
|
+
modelValue: $data.shadow.y,
|
|
128
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.shadow.y = $event),
|
|
129
|
+
"controls-position": "right",
|
|
130
|
+
size: "small"
|
|
131
|
+
}, null, 8, ["modelValue"])
|
|
132
|
+
]),
|
|
133
|
+
createElementVNode("div", _hoisted_7, [
|
|
134
|
+
_cache[10] || (_cache[10] = createElementVNode("label", {
|
|
135
|
+
class: "epx-page-designer-setting-style__label",
|
|
136
|
+
for: ""
|
|
137
|
+
}, "模糊", -1)),
|
|
138
|
+
createVNode(_component_el_input_number, {
|
|
139
|
+
modelValue: $data.shadow.blur,
|
|
140
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $data.shadow.blur = $event),
|
|
141
|
+
min: 0,
|
|
142
|
+
"controls-position": "right",
|
|
143
|
+
size: "small"
|
|
144
|
+
}, null, 8, ["modelValue"])
|
|
145
|
+
]),
|
|
146
|
+
createElementVNode("div", _hoisted_8, [
|
|
147
|
+
_cache[11] || (_cache[11] = createElementVNode("label", {
|
|
148
|
+
class: "epx-page-designer-setting-style__label",
|
|
149
|
+
for: ""
|
|
150
|
+
}, "扩展", -1)),
|
|
151
|
+
createVNode(_component_el_input_number, {
|
|
152
|
+
modelValue: $data.shadow.spread,
|
|
153
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $data.shadow.spread = $event),
|
|
154
|
+
"controls-position": "right",
|
|
155
|
+
size: "small"
|
|
156
|
+
}, null, 8, ["modelValue"])
|
|
157
|
+
]),
|
|
158
|
+
createElementVNode("div", _hoisted_9, [
|
|
159
|
+
_cache[12] || (_cache[12] = createElementVNode("label", {
|
|
160
|
+
class: "epx-page-designer-setting-style__label",
|
|
161
|
+
for: ""
|
|
162
|
+
}, "内阴影", -1)),
|
|
163
|
+
createVNode(_component_el_switch, {
|
|
164
|
+
modelValue: $data.shadow.inset,
|
|
165
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $data.shadow.inset = $event)
|
|
166
|
+
}, null, 8, ["modelValue"])
|
|
167
|
+
])
|
|
168
|
+
])
|
|
169
|
+
], 2);
|
|
170
|
+
}
|
|
171
|
+
const Shadow = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
172
|
+
export {
|
|
173
|
+
Shadow as default
|
|
174
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import '../../../style.css';
|
|
2
|
+
import VisualConfigPage from "./VisualConfigPage.js";
|
|
3
|
+
import ComponentList from "./ComponentList.js";
|
|
4
|
+
import ComponentLibrary from "./ComponentLibrary.js";
|
|
5
|
+
import ComponentLibraryDialog from "./ComponentLibraryDialog.js";
|
|
6
|
+
import JsPanel from "@epxing/business/src/components/JsPanel.vue";
|
|
7
|
+
import { default as default2 } from "@epxing/business/src/components/JsPanel.vue";
|
|
8
|
+
import PagePreview from "./PagePreview.js";
|
|
9
|
+
import ConfigPanel from "./ConfigPanel.js";
|
|
10
|
+
import Dashboard from "./Dashboard.js";
|
|
11
|
+
import DashboardDesign from "./DashboardDesign.js";
|
|
12
|
+
import _sfc_main from "./DashboardGlobalConfig.vue.js";
|
|
13
|
+
/* empty css */
|
|
14
|
+
import DashboardSetting from "./DashboardSetting.js";
|
|
15
|
+
import DashboardMobile from "./DashboardMobile.js";
|
|
16
|
+
import Chart from "../config/Chart.js";
|
|
17
|
+
import Color from "../config/Color.js";
|
|
18
|
+
import Event from "../config/Event.js";
|
|
19
|
+
import VisualConfigField from "../config/Field.js";
|
|
20
|
+
import Font from "../config/Font.js";
|
|
21
|
+
import Html from "../config/Html.js";
|
|
22
|
+
import Image from "../config/Image.js";
|
|
23
|
+
import Input from "../config/Input.js";
|
|
24
|
+
import List from "../config/List.js";
|
|
25
|
+
import VisualConfigListField from "../config/ListField.js";
|
|
26
|
+
import MField from "../config/MField.js";
|
|
27
|
+
import Number from "../config/Number.js";
|
|
28
|
+
import Object$1 from "../config/Object.js";
|
|
29
|
+
import Operate from "../config/Operate.js";
|
|
30
|
+
import VisualConfigOrderField from "../config/OrderField.js";
|
|
31
|
+
import Page from "../config/Page.js";
|
|
32
|
+
import Params from "../config/Params.js";
|
|
33
|
+
import Radio from "../config/Radio.js";
|
|
34
|
+
import Row from "../config/Row.js";
|
|
35
|
+
import Scope from "../config/Scope.js";
|
|
36
|
+
import Select from "../config/Select.js";
|
|
37
|
+
import Switch from "../config/Switch.js";
|
|
38
|
+
import Textarea from "../config/Textarea.js";
|
|
39
|
+
import Tree from "../config/Tree.js";
|
|
40
|
+
VisualConfigPage.install = function install(Vue) {
|
|
41
|
+
Vue.component(VisualConfigPage.name, VisualConfigPage);
|
|
42
|
+
Vue.component(ComponentList.name, ComponentList);
|
|
43
|
+
Vue.component(ComponentLibrary.name, ComponentLibrary);
|
|
44
|
+
Vue.component(ComponentLibraryDialog.name, ComponentLibraryDialog);
|
|
45
|
+
Vue.component(JsPanel.name, JsPanel);
|
|
46
|
+
Vue.component(PagePreview.name, PagePreview);
|
|
47
|
+
Vue.component(ConfigPanel.name, ConfigPanel);
|
|
48
|
+
Vue.component(Dashboard.name, Dashboard);
|
|
49
|
+
Vue.component(DashboardDesign.name, DashboardDesign);
|
|
50
|
+
Vue.component(_sfc_main.name, _sfc_main);
|
|
51
|
+
Vue.component(DashboardSetting.name, DashboardSetting);
|
|
52
|
+
Vue.component(DashboardMobile.name, DashboardMobile);
|
|
53
|
+
Vue.component(Chart.name, Chart);
|
|
54
|
+
Vue.component(Color.name, Color);
|
|
55
|
+
Vue.component(Event.name, Event);
|
|
56
|
+
Vue.component(VisualConfigField.name, VisualConfigField);
|
|
57
|
+
Vue.component(Font.name, Font);
|
|
58
|
+
Vue.component(Html.name, Html);
|
|
59
|
+
Vue.component(Image.name, Image);
|
|
60
|
+
Vue.component(Input.name, Input);
|
|
61
|
+
Vue.component(List.name, List);
|
|
62
|
+
Vue.component(VisualConfigListField.name, VisualConfigListField);
|
|
63
|
+
Vue.component(MField.name, MField);
|
|
64
|
+
Vue.component(Number.name, Number);
|
|
65
|
+
Vue.component(Object$1.name, Object$1);
|
|
66
|
+
Vue.component(Operate.name, Operate);
|
|
67
|
+
Vue.component(VisualConfigOrderField.name, VisualConfigOrderField);
|
|
68
|
+
Vue.component(Page.name, Page);
|
|
69
|
+
Vue.component(Params.name, Params);
|
|
70
|
+
Vue.component(Radio.name, Radio);
|
|
71
|
+
Vue.component(Row.name, Row);
|
|
72
|
+
Vue.component(Scope.name, Scope);
|
|
73
|
+
Vue.component(Select.name, Select);
|
|
74
|
+
Vue.component(Switch.name, Switch);
|
|
75
|
+
Vue.component(Textarea.name, Textarea);
|
|
76
|
+
Vue.component(Tree.name, Tree);
|
|
77
|
+
};
|
|
78
|
+
export {
|
|
79
|
+
ComponentLibrary,
|
|
80
|
+
ComponentLibraryDialog,
|
|
81
|
+
ComponentList,
|
|
82
|
+
ConfigPanel,
|
|
83
|
+
Dashboard,
|
|
84
|
+
DashboardDesign,
|
|
85
|
+
_sfc_main as DashboardGlobalConfig,
|
|
86
|
+
DashboardMobile,
|
|
87
|
+
default2 as JsPanel,
|
|
88
|
+
PagePreview,
|
|
89
|
+
VisualConfigPage as default
|
|
90
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import '../../style.css';
|
|
2
|
+
import * as src_visual_AddForm from "./AddForm.js";
|
|
3
|
+
import * as src_visual_AddFormItem from "./AddFormItem.js";
|
|
4
|
+
import * as src_visual_AppIndex from "./AppIndex.js";
|
|
5
|
+
import * as src_visual_ApplyForm from "./ApplyForm.js";
|
|
6
|
+
import * as src_visual_AttributeList from "./AttributeList.js";
|
|
7
|
+
import * as src_visual_BasePage from "./BasePage.js";
|
|
8
|
+
import * as src_visual_Button from "./Button.js";
|
|
9
|
+
import * as src_visual_CardNum from "./CardNum.js";
|
|
10
|
+
import * as src_visual_CategoryList from "./CategoryList.js";
|
|
11
|
+
import * as src_visual_Chart from "./Chart.js";
|
|
12
|
+
import * as src_visual_ChartNew from "./ChartNew.js";
|
|
13
|
+
import * as src_visual_CheckForm from "./CheckForm.js";
|
|
14
|
+
import * as src_visual_ClientList from "./ClientList.js";
|
|
15
|
+
import * as src_visual_CodeManage from "./CodeManage.js";
|
|
16
|
+
import * as src_visual_Component from "./Component.js";
|
|
17
|
+
import * as src_visual_ComponentList from "./ComponentList.js";
|
|
18
|
+
import * as src_visual_Config from "./Config.js";
|
|
19
|
+
import * as src_visual_ConfigItem from "./ConfigItem.js";
|
|
20
|
+
import * as src_visual_ConfigSelectItems from "./ConfigSelectItems.js";
|
|
21
|
+
import * as src_visual_CreatePage from "./CreatePage.js";
|
|
22
|
+
import * as src_visual_DashboardDiv from "./DashboardDiv.js";
|
|
23
|
+
import * as src_visual_DashboardTabs from "./DashboardTabs.js";
|
|
24
|
+
import * as src_visual_DashboardWidget from "./DashboardWidget.js";
|
|
25
|
+
import * as src_visual_DblogList from "./DblogList.js";
|
|
26
|
+
import * as src_visual_EntityAddPage from "./EntityAddPage.js";
|
|
27
|
+
import * as src_visual_EntityApplyPage from "./EntityApplyPage.js";
|
|
28
|
+
import * as src_visual_EntityCardList from "./EntityCardList.js";
|
|
29
|
+
import * as src_visual_EntityCheckPage from "./EntityCheckPage.js";
|
|
30
|
+
import * as src_visual_EntityFindPage from "./EntityFindPage.js";
|
|
31
|
+
import * as src_visual_EntityList from "./EntityList.js";
|
|
32
|
+
import * as src_visual_EntityListPage from "./EntityListPage.js";
|
|
33
|
+
import * as src_visual_EntityNoSubmitSubList from "./EntityNoSubmitSubList.js";
|
|
34
|
+
import * as src_visual_EntityRightSubList from "./EntityRightSubList.js";
|
|
35
|
+
import * as src_visual_EntitySubAdd from "./EntitySubAdd.js";
|
|
36
|
+
import * as src_visual_EntitySubGridItem from "./EntitySubGridItem.js";
|
|
37
|
+
import * as src_visual_EntitySubList from "./EntitySubList.js";
|
|
38
|
+
import * as src_visual_EntityTreeFindPage from "./EntityTreeFindPage.js";
|
|
39
|
+
import * as src_visual_EntityTreeManage from "./EntityTreeManage.js";
|
|
40
|
+
import * as src_visual_EntityTreePage from "./EntityTreePage.js";
|
|
41
|
+
import * as src_visual_ExcelPreview from "./ExcelPreview.js";
|
|
42
|
+
import * as src_visual_FormField from "./FormField.js";
|
|
43
|
+
import * as src_visual_HeaderNew from "./HeaderNew.js";
|
|
44
|
+
import * as src_visual_Html from "./Html.js";
|
|
45
|
+
import * as src_visual_Import from "./Import.js";
|
|
46
|
+
import * as src_visual_InterfaceSubList from "./InterfaceSubList.js";
|
|
47
|
+
import * as src_visual_ListFirst from "./ListFirst.js";
|
|
48
|
+
import * as src_visual_MEntityAddPage from "./MEntityAddPage.js";
|
|
49
|
+
import * as src_visual_MEntityList from "./MEntityList.js";
|
|
50
|
+
import * as src_visual_MEntityListPage from "./MEntityListPage.js";
|
|
51
|
+
import * as src_visual_MEntitySubList from "./MEntitySubList.js";
|
|
52
|
+
import * as src_visual_MetaList from "./MetaList.js";
|
|
53
|
+
import * as src_visual_ModuleIndexPage from "./ModuleIndexPage.js";
|
|
54
|
+
import * as src_visual_ModuleList from "./ModuleList.js";
|
|
55
|
+
import * as src_visual_NavAddForm from "./NavAddForm.js";
|
|
56
|
+
import * as src_visual_NavFormCatalogItem from "./NavFormCatalogItem.js";
|
|
57
|
+
import * as src_visual_NumItem from "./NumItem.js";
|
|
58
|
+
import * as src_visual_NumStatistic from "./NumStatistic.js";
|
|
59
|
+
import * as src_visual_OrgChart from "./OrgChart.js";
|
|
60
|
+
import * as src_visual_PageCatalog from "./PageCatalog.js";
|
|
61
|
+
import * as src_visual_PageConfig from "./PageConfig.js";
|
|
62
|
+
import * as src_visual_PageTabs from "./PageTabs.js";
|
|
63
|
+
import * as src_visual_Progress from "./Progress.js";
|
|
64
|
+
import * as src_visual_ProgressItem from "./ProgressItem.js";
|
|
65
|
+
import * as src_visual_SystemManager from "./SystemManager.js";
|
|
66
|
+
import * as src_visual_Title from "./Title.js";
|
|
67
|
+
import * as src_visual_TodoList from "./TodoList.js";
|
|
68
|
+
import * as src_visual_UserFormItem from "./UserFormItem.js";
|
|
69
|
+
import * as src_visual_UserManage from "./UserManage.js";
|
|
70
|
+
import * as src_visual_chart_CircularPie from "./chart/CircularPie.js";
|
|
71
|
+
import * as src_visual_chart_Column from "./chart/Column.js";
|
|
72
|
+
import * as src_visual_chart_HoriColumn from "./chart/HoriColumn.js";
|
|
73
|
+
import * as src_visual_chart_Line from "./chart/Line.js";
|
|
74
|
+
import * as src_visual_chart_Pie from "./chart/Pie.js";
|
|
75
|
+
import * as src_visual_configPage_ComponentLibrary from "./config-page/ComponentLibrary.js";
|
|
76
|
+
import * as src_visual_configPage_ComponentLibraryDialog from "./config-page/ComponentLibraryDialog.js";
|
|
77
|
+
import * as src_visual_configPage_ComponentList from "./config-page/ComponentList.js";
|
|
78
|
+
import * as src_visual_configPage_ComponentPreview from "./config-page/ComponentPreview.js";
|
|
79
|
+
import * as src_visual_configPage_ConfigOption from "./config-page/ConfigOption.js";
|
|
80
|
+
import * as src_visual_configPage_ConfigPanel from "./config-page/ConfigPanel.js";
|
|
81
|
+
import * as src_visual_configPage_Dashboard from "./config-page/Dashboard.js";
|
|
82
|
+
import * as src_visual_configPage_DashboardDesign from "./config-page/DashboardDesign.js";
|
|
83
|
+
import * as src_visual_configPage_DashboardGlobalConfig from "./config-page/DashboardGlobalConfig.js";
|
|
84
|
+
import * as src_visual_configPage_DashboardMobile from "./config-page/DashboardMobile.js";
|
|
85
|
+
import * as src_visual_configPage_DashboardSetting from "./config-page/DashboardSetting.js";
|
|
86
|
+
import * as src_visual_configPage_PagePreview from "./config-page/PagePreview.js";
|
|
87
|
+
import * as src_visual_configPage_StyleConfig from "./config-page/StyleConfig.js";
|
|
88
|
+
import * as src_visual_configPage_VisualConfigPage from "./config-page/VisualConfigPage.js";
|
|
89
|
+
import * as src_visual_configPage_dashboardThemeSetting_Background from "./config-page/dashboard-theme-setting/Background.js";
|
|
90
|
+
import * as src_visual_configPage_dashboardThemeSetting_Border from "./config-page/dashboard-theme-setting/Border.js";
|
|
91
|
+
import * as src_visual_configPage_dashboardThemeSetting_Font from "./config-page/dashboard-theme-setting/Font.js";
|
|
92
|
+
import * as src_visual_configPage_dashboardThemeSetting_Index from "./config-page/dashboard-theme-setting/Index.js";
|
|
93
|
+
import * as src_visual_configPage_dashboardThemeSetting_Shadow from "./config-page/dashboard-theme-setting/Shadow.js";
|
|
94
|
+
import * as src_visual_config_Background from "./config/Background.js";
|
|
95
|
+
import * as src_visual_config_Chart from "./config/Chart.js";
|
|
96
|
+
import * as src_visual_config_Checkbox from "./config/Checkbox.js";
|
|
97
|
+
import * as src_visual_config_Color from "./config/Color.js";
|
|
98
|
+
import * as src_visual_config_DesignReport from "./config/DesignReport.js";
|
|
99
|
+
import * as src_visual_config_Event from "./config/Event.js";
|
|
100
|
+
import * as src_visual_config_Field from "./config/Field.js";
|
|
101
|
+
import * as src_visual_config_Font from "./config/Font.js";
|
|
102
|
+
import * as src_visual_config_FormItem from "./config/FormItem.js";
|
|
103
|
+
import * as src_visual_config_Function from "./config/Function.js";
|
|
104
|
+
import * as src_visual_config_Html from "./config/Html.js";
|
|
105
|
+
import * as src_visual_config_Image from "./config/Image.js";
|
|
106
|
+
import * as src_visual_config_Input from "./config/Input.js";
|
|
107
|
+
import * as src_visual_config_LazyDialog from "./config/LazyDialog.js";
|
|
108
|
+
import * as src_visual_config_List from "./config/List.js";
|
|
109
|
+
import * as src_visual_config_ListField from "./config/ListField.js";
|
|
110
|
+
import * as src_visual_config_MField from "./config/MField.js";
|
|
111
|
+
import * as src_visual_config_Number from "./config/Number.js";
|
|
112
|
+
import * as src_visual_config_Object from "./config/Object.js";
|
|
113
|
+
import * as src_visual_config_Operate from "./config/Operate.js";
|
|
114
|
+
import * as src_visual_config_OperateItem from "./config/OperateItem.js";
|
|
115
|
+
import * as src_visual_config_Options from "./config/Options.js";
|
|
116
|
+
import * as src_visual_config_OrderField from "./config/OrderField.js";
|
|
117
|
+
import * as src_visual_config_Page from "./config/Page.js";
|
|
118
|
+
import * as src_visual_config_Params from "./config/Params.js";
|
|
119
|
+
import * as src_visual_config_Radio from "./config/Radio.js";
|
|
120
|
+
import * as src_visual_config_Row from "./config/Row.js";
|
|
121
|
+
import * as src_visual_config_Scope from "./config/Scope.js";
|
|
122
|
+
import * as src_visual_config_Select from "./config/Select.js";
|
|
123
|
+
import * as src_visual_config_Switch from "./config/Switch.js";
|
|
124
|
+
import * as src_visual_config_Textarea from "./config/Textarea.js";
|
|
125
|
+
import * as src_visual_config_Tree from "./config/Tree.js";
|
|
126
|
+
import * as src_visual_search_Filter from "./search/Filter.js";
|
|
127
|
+
import * as src_visual_step_Index from "./step/Index.js";
|
|
128
|
+
import * as src_visual_step_Item from "./step/Item.js";
|
|
129
|
+
import * as src_visual_widgets_CardFormItemVisual from "./widgets/CardFormItemVisual.js";
|
|
130
|
+
import * as src_visual_widgets_CarouselVisual from "./widgets/CarouselVisual.js";
|
|
131
|
+
import * as src_visual_widgets_CollapseVisual from "./widgets/CollapseVisual.js";
|
|
132
|
+
import * as src_visual_widgets_DropdownVisual from "./widgets/DropdownVisual.js";
|
|
133
|
+
import * as src_visual_widgets_LayoutConfig from "./widgets/LayoutConfig.js";
|
|
134
|
+
import * as src_visual_widgets_ListVisual from "./widgets/ListVisual.js";
|
|
135
|
+
import * as src_visual_widgets_MEntityListFindVisual from "./widgets/MEntityListFindVisual.js";
|
|
136
|
+
import * as src_visual_widgets_ProcessFormItemVisual from "./widgets/ProcessFormItemVisual.js";
|
|
137
|
+
import * as src_visual_widgets_TabsConfig from "./widgets/TabsConfig.js";
|
|
138
|
+
import { registerComponent } from "@epxing/core/src/app";
|
|
139
|
+
const modules = /* @__PURE__ */ Object.assign({ "./AddForm.vue": src_visual_AddForm, "./AddFormItem.vue": src_visual_AddFormItem, "./AppIndex.vue": src_visual_AppIndex, "./ApplyForm.vue": src_visual_ApplyForm, "./AttributeList.vue": src_visual_AttributeList, "./BasePage.vue": src_visual_BasePage, "./Button.vue": src_visual_Button, "./CardNum.vue": src_visual_CardNum, "./CategoryList.vue": src_visual_CategoryList, "./Chart.vue": src_visual_Chart, "./ChartNew.vue": src_visual_ChartNew, "./CheckForm.vue": src_visual_CheckForm, "./ClientList.vue": src_visual_ClientList, "./CodeManage.vue": src_visual_CodeManage, "./Component.vue": src_visual_Component, "./ComponentList.vue": src_visual_ComponentList, "./Config.vue": src_visual_Config, "./ConfigItem.vue": src_visual_ConfigItem, "./ConfigSelectItems.vue": src_visual_ConfigSelectItems, "./CreatePage.vue": src_visual_CreatePage, "./DashboardDiv.vue": src_visual_DashboardDiv, "./DashboardTabs.vue": src_visual_DashboardTabs, "./DashboardWidget.vue": src_visual_DashboardWidget, "./DblogList.vue": src_visual_DblogList, "./EntityAddPage.vue": src_visual_EntityAddPage, "./EntityApplyPage.vue": src_visual_EntityApplyPage, "./EntityCardList.vue": src_visual_EntityCardList, "./EntityCheckPage.vue": src_visual_EntityCheckPage, "./EntityFindPage.vue": src_visual_EntityFindPage, "./EntityList.vue": src_visual_EntityList, "./EntityListPage.vue": src_visual_EntityListPage, "./EntityNoSubmitSubList.vue": src_visual_EntityNoSubmitSubList, "./EntityRightSubList.vue": src_visual_EntityRightSubList, "./EntitySubAdd.vue": src_visual_EntitySubAdd, "./EntitySubGridItem.vue": src_visual_EntitySubGridItem, "./EntitySubList.vue": src_visual_EntitySubList, "./EntityTreeFindPage.vue": src_visual_EntityTreeFindPage, "./EntityTreeManage.vue": src_visual_EntityTreeManage, "./EntityTreePage.vue": src_visual_EntityTreePage, "./ExcelPreview.vue": src_visual_ExcelPreview, "./FormField.vue": src_visual_FormField, "./HeaderNew.vue": src_visual_HeaderNew, "./Html.vue": src_visual_Html, "./Import.vue": src_visual_Import, "./InterfaceSubList.vue": src_visual_InterfaceSubList, "./ListFirst.vue": src_visual_ListFirst, "./MEntityAddPage.vue": src_visual_MEntityAddPage, "./MEntityList.vue": src_visual_MEntityList, "./MEntityListPage.vue": src_visual_MEntityListPage, "./MEntitySubList.vue": src_visual_MEntitySubList, "./MetaList.vue": src_visual_MetaList, "./ModuleIndexPage.vue": src_visual_ModuleIndexPage, "./ModuleList.vue": src_visual_ModuleList, "./NavAddForm.vue": src_visual_NavAddForm, "./NavFormCatalogItem.vue": src_visual_NavFormCatalogItem, "./NumItem.vue": src_visual_NumItem, "./NumStatistic.vue": src_visual_NumStatistic, "./OrgChart.vue": src_visual_OrgChart, "./PageCatalog.vue": src_visual_PageCatalog, "./PageConfig.vue": src_visual_PageConfig, "./PageTabs.vue": src_visual_PageTabs, "./Progress.vue": src_visual_Progress, "./ProgressItem.vue": src_visual_ProgressItem, "./SystemManager.vue": src_visual_SystemManager, "./Title.vue": src_visual_Title, "./TodoList.vue": src_visual_TodoList, "./UserFormItem.vue": src_visual_UserFormItem, "./UserManage.vue": src_visual_UserManage, "./chart/CircularPie.vue": src_visual_chart_CircularPie, "./chart/Column.vue": src_visual_chart_Column, "./chart/HoriColumn.vue": src_visual_chart_HoriColumn, "./chart/Line.vue": src_visual_chart_Line, "./chart/Pie.vue": src_visual_chart_Pie, "./config-page/ComponentLibrary.vue": src_visual_configPage_ComponentLibrary, "./config-page/ComponentLibraryDialog.vue": src_visual_configPage_ComponentLibraryDialog, "./config-page/ComponentList.vue": src_visual_configPage_ComponentList, "./config-page/ComponentPreview.vue": src_visual_configPage_ComponentPreview, "./config-page/ConfigOption.vue": src_visual_configPage_ConfigOption, "./config-page/ConfigPanel.vue": src_visual_configPage_ConfigPanel, "./config-page/Dashboard.vue": src_visual_configPage_Dashboard, "./config-page/DashboardDesign.vue": src_visual_configPage_DashboardDesign, "./config-page/DashboardGlobalConfig.vue": src_visual_configPage_DashboardGlobalConfig, "./config-page/DashboardMobile.vue": src_visual_configPage_DashboardMobile, "./config-page/DashboardSetting.vue": src_visual_configPage_DashboardSetting, "./config-page/PagePreview.vue": src_visual_configPage_PagePreview, "./config-page/StyleConfig.vue": src_visual_configPage_StyleConfig, "./config-page/VisualConfigPage.vue": src_visual_configPage_VisualConfigPage, "./config-page/dashboard-theme-setting/Background.vue": src_visual_configPage_dashboardThemeSetting_Background, "./config-page/dashboard-theme-setting/Border.vue": src_visual_configPage_dashboardThemeSetting_Border, "./config-page/dashboard-theme-setting/Font.vue": src_visual_configPage_dashboardThemeSetting_Font, "./config-page/dashboard-theme-setting/Index.vue": src_visual_configPage_dashboardThemeSetting_Index, "./config-page/dashboard-theme-setting/Shadow.vue": src_visual_configPage_dashboardThemeSetting_Shadow, "./config/Background.vue": src_visual_config_Background, "./config/Chart.vue": src_visual_config_Chart, "./config/Checkbox.vue": src_visual_config_Checkbox, "./config/Color.vue": src_visual_config_Color, "./config/DesignReport.vue": src_visual_config_DesignReport, "./config/Event.vue": src_visual_config_Event, "./config/Field.vue": src_visual_config_Field, "./config/Font.vue": src_visual_config_Font, "./config/FormItem.vue": src_visual_config_FormItem, "./config/Function.vue": src_visual_config_Function, "./config/Html.vue": src_visual_config_Html, "./config/Image.vue": src_visual_config_Image, "./config/Input.vue": src_visual_config_Input, "./config/LazyDialog.vue": src_visual_config_LazyDialog, "./config/List.vue": src_visual_config_List, "./config/ListField.vue": src_visual_config_ListField, "./config/MField.vue": src_visual_config_MField, "./config/Number.vue": src_visual_config_Number, "./config/Object.vue": src_visual_config_Object, "./config/Operate.vue": src_visual_config_Operate, "./config/OperateItem.vue": src_visual_config_OperateItem, "./config/Options.vue": src_visual_config_Options, "./config/OrderField.vue": src_visual_config_OrderField, "./config/Page.vue": src_visual_config_Page, "./config/Params.vue": src_visual_config_Params, "./config/Radio.vue": src_visual_config_Radio, "./config/Row.vue": src_visual_config_Row, "./config/Scope.vue": src_visual_config_Scope, "./config/Select.vue": src_visual_config_Select, "./config/Switch.vue": src_visual_config_Switch, "./config/Textarea.vue": src_visual_config_Textarea, "./config/Tree.vue": src_visual_config_Tree, "./search/Filter.vue": src_visual_search_Filter, "./step/Index.vue": src_visual_step_Index, "./step/Item.vue": src_visual_step_Item, "./widgets/CardFormItemVisual.vue": src_visual_widgets_CardFormItemVisual, "./widgets/CarouselVisual.vue": src_visual_widgets_CarouselVisual, "./widgets/CollapseVisual.vue": src_visual_widgets_CollapseVisual, "./widgets/DropdownVisual.vue": src_visual_widgets_DropdownVisual, "./widgets/LayoutConfig.vue": src_visual_widgets_LayoutConfig, "./widgets/ListVisual.vue": src_visual_widgets_ListVisual, "./widgets/MEntityListFindVisual.vue": src_visual_widgets_MEntityListFindVisual, "./widgets/ProcessFormItemVisual.vue": src_visual_widgets_ProcessFormItemVisual, "./widgets/TabsConfig.vue": src_visual_widgets_TabsConfig });
|
|
140
|
+
const visualComponents = {};
|
|
141
|
+
Object.keys(modules).forEach((key) => {
|
|
142
|
+
const component = modules[key].default;
|
|
143
|
+
if (!component) return;
|
|
144
|
+
visualComponents[component.name || key.replace(/^\.\/(.*)\.vue$/, "$1")] = component;
|
|
145
|
+
});
|
|
146
|
+
for (const key in visualComponents) {
|
|
147
|
+
registerComponent(key, visualComponents[key]);
|
|
148
|
+
}
|
|
149
|
+
export {
|
|
150
|
+
visualComponents as default
|
|
151
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import '../../../style.css';
|
|
2
|
+
import { h, resolveComponent } from "vue";
|
|
3
|
+
import { maxGapForPitch, gridPitch, DEFAULT_GRID, resolveContainerGrid, getPageGrid, isLegacyConfig } from "@epxing/dashboard/src/grid/model";
|
|
4
|
+
const INNER_GRID_FIELDS = [
|
|
5
|
+
{ key: "gridColNum", label: "列数", field: "colNum", min: 1, max: 200 },
|
|
6
|
+
{ key: "gridRowHeight", label: "行高", field: "rowHeight", min: 2, max: 200, tip: "每行占位高度(含间距,px)。组件高 = 行数 × 行高 − 间距;改间距不会改变它" },
|
|
7
|
+
{ key: "gridGap", label: "间距", field: "gap", min: 0, max: 60, tip: "组件之间的空隙(px);只影响间距,不改变组件位置与高度" }
|
|
8
|
+
];
|
|
9
|
+
function innerGridOptions(panel) {
|
|
10
|
+
return {
|
|
11
|
+
key: "innerGrid",
|
|
12
|
+
label: "内部网格",
|
|
13
|
+
children: [
|
|
14
|
+
{ key: "gridInherit", label: "网格参数", renderContent: panel.renderInnerGridMode, tip: "继承:与所在页面 / 上级容器同一套列数、行高、间距;自定义:容器内按自己的参数布局" },
|
|
15
|
+
...INNER_GRID_FIELDS.map((item) => ({ ...item, renderContent: panel.renderInnerGridNumber }))
|
|
16
|
+
]
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
const innerGridMixin = {
|
|
20
|
+
inject: {
|
|
21
|
+
// 看板设计器 provide 的当前 items 树:本容器的 grid 真值在 item 上,按 id 找到后直读 / 写回
|
|
22
|
+
getComponentItems: { default: null }
|
|
23
|
+
},
|
|
24
|
+
computed: {
|
|
25
|
+
// 本容器的有效内部网格(显式 grid 优先,否则继承父网格 / 旧配置历史写死值);不在看板设计器里(无 items 树)为 null
|
|
26
|
+
innerGrid() {
|
|
27
|
+
if (!this.getComponentItems) return null;
|
|
28
|
+
return resolveContainerGrid(this.getComponentItems(), this.id, getPageGrid(this.globalConfigs), isLegacyConfig(this.globalConfigs));
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
methods: {
|
|
32
|
+
// 写回容器项的 grid(changeItemConfigs 的 type='component' 把键直接落到 item 上,null 删键);外壳据此自动保存、画布子网格按新参数重建
|
|
33
|
+
setInnerGrid(grid) {
|
|
34
|
+
this.changeItemConfigs(this.id, { grid }, "component");
|
|
35
|
+
},
|
|
36
|
+
// 继承 ⇒ 删掉显式 grid;自定义 ⇒ 从当前有效值起步写显式 grid(容器网格只认数字,'auto' 行高 / 间距换成页面默认数值)
|
|
37
|
+
setInnerGridMode(mode) {
|
|
38
|
+
const info = this.innerGrid;
|
|
39
|
+
if (!info) return;
|
|
40
|
+
if (mode === "inherit") {
|
|
41
|
+
this.setInnerGrid(null);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const { colNum, rowHeight, gap } = info.grid;
|
|
45
|
+
this.setInnerGrid({
|
|
46
|
+
colNum,
|
|
47
|
+
rowHeight: rowHeight === "auto" ? DEFAULT_GRID.rowHeight : rowHeight,
|
|
48
|
+
gap: gap === "auto" ? [...DEFAULT_GRID.gap] : [...gap]
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
// 改显式 grid 的某一项(field:colNum / rowHeight / gap);其余键(padding 等)原样保留。
|
|
52
|
+
// 面板上的行高是行距:改行高落盘 rowHeight = 行距 − 纵向间距;改间距按当前行距反推 rowHeight(行距不变,间距夹到行距 − 1)
|
|
53
|
+
setInnerGridValue(field, v) {
|
|
54
|
+
const info = this.innerGrid;
|
|
55
|
+
if (!info || !info.explicit || v == null || !field) return;
|
|
56
|
+
const grid = { ...info.item.grid };
|
|
57
|
+
const pitch = gridPitch(info.grid);
|
|
58
|
+
if (field === "gap") {
|
|
59
|
+
const gap = Math.min(v, maxGapForPitch(pitch));
|
|
60
|
+
grid.gap = [gap, gap];
|
|
61
|
+
if (pitch != null) grid.rowHeight = pitch - gap;
|
|
62
|
+
} else if (field === "rowHeight") {
|
|
63
|
+
const gapY = info.grid.gap === "auto" ? 0 : info.grid.gap[1];
|
|
64
|
+
grid.rowHeight = Math.max(1, v - gapY);
|
|
65
|
+
} else {
|
|
66
|
+
grid[field] = v;
|
|
67
|
+
}
|
|
68
|
+
this.setInnerGrid(grid);
|
|
69
|
+
},
|
|
70
|
+
innerGridValue(field) {
|
|
71
|
+
const info = this.innerGrid;
|
|
72
|
+
if (!info || !field) return null;
|
|
73
|
+
const { colNum, gap } = info.grid;
|
|
74
|
+
if (field === "colNum") return colNum;
|
|
75
|
+
if (field === "rowHeight") return gridPitch(info.grid);
|
|
76
|
+
if (field === "gap") return gap === "auto" ? null : gap[0];
|
|
77
|
+
return null;
|
|
78
|
+
},
|
|
79
|
+
renderInnerGridMode() {
|
|
80
|
+
const info = this.innerGrid;
|
|
81
|
+
return h(resolveComponent("el-radio-group"), {
|
|
82
|
+
modelValue: info && info.explicit ? "custom" : "inherit",
|
|
83
|
+
disabled: !info,
|
|
84
|
+
onChange: this.setInnerGridMode
|
|
85
|
+
}, () => [
|
|
86
|
+
h(resolveComponent("el-radio"), { label: "inherit", value: "inherit" }, () => "继承"),
|
|
87
|
+
h(resolveComponent("el-radio"), { label: "custom", value: "custom" }, () => "自定义")
|
|
88
|
+
]);
|
|
89
|
+
},
|
|
90
|
+
// 数字框:继承时禁用、显示继承到的有效值('auto' 显示「自动」);自定义时可改。
|
|
91
|
+
// 配置项没带 field / min / max(平台记录)时按 key 查 INNER_GRID_FIELDS 推导;间距上限随行距、行高下限随间距(一行内容高 ≥ 1)
|
|
92
|
+
renderInnerGridNumber(item) {
|
|
93
|
+
const def = INNER_GRID_FIELDS.find((f) => f.key === item.key) || {};
|
|
94
|
+
const field = item.field || def.field;
|
|
95
|
+
const info = this.innerGrid;
|
|
96
|
+
const value = this.innerGridValue(field);
|
|
97
|
+
const disabled = !info || !info.explicit;
|
|
98
|
+
let min = item.min != null ? item.min : def.min;
|
|
99
|
+
let max = item.max != null ? item.max : def.max;
|
|
100
|
+
if (field === "gap") max = Math.min(max, maxGapForPitch(this.innerGridValue("rowHeight")));
|
|
101
|
+
if (field === "rowHeight") min = Math.max(min, (this.innerGridValue("gap") || 0) + 1);
|
|
102
|
+
return h(resolveComponent("el-input-number"), {
|
|
103
|
+
class: "epx-dashboard-inner-grid__num",
|
|
104
|
+
size: "small",
|
|
105
|
+
modelValue: value == null ? void 0 : value,
|
|
106
|
+
disabled,
|
|
107
|
+
placeholder: value == null ? "自动" : "",
|
|
108
|
+
min,
|
|
109
|
+
max,
|
|
110
|
+
step: 1,
|
|
111
|
+
stepStrictly: true,
|
|
112
|
+
controlsPosition: "right",
|
|
113
|
+
onChange: (v) => this.setInnerGridValue(field, v)
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
export {
|
|
119
|
+
INNER_GRID_FIELDS,
|
|
120
|
+
innerGridMixin as default,
|
|
121
|
+
innerGridOptions
|
|
122
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import '../../../style.css';
|
|
2
|
+
import _sfc_main$1 from "../Component.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
const _sfc_main = {
|
|
5
|
+
name: "epx-visual-search-filter",
|
|
6
|
+
extends: _sfc_main$1,
|
|
7
|
+
methods: {
|
|
8
|
+
initDefaultConfigs() {
|
|
9
|
+
const keywords = [.../* @__PURE__ */ new Set([...this.currentMeta.keyNames, this.currentMeta.label])];
|
|
10
|
+
this.defaultConfigs = {
|
|
11
|
+
flex: false,
|
|
12
|
+
componentName: this.componentInfo.title,
|
|
13
|
+
searchFlag: true,
|
|
14
|
+
keywordFlag: true,
|
|
15
|
+
keywords,
|
|
16
|
+
searchFields: [],
|
|
17
|
+
span: 24
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
initConfigOptions() {
|
|
21
|
+
const configOptions = [
|
|
22
|
+
{ key: "componentName", label: "组件名称", type: "input" },
|
|
23
|
+
{ key: "searchFlag", label: "是否显示查询区域", type: "radio", options: [{ label: "是", value: true }, { label: "否", value: false }] },
|
|
24
|
+
{ key: "keywordFlag", label: "是否显示关键字查询", type: "radio", options: [{ label: "是", value: true }, { label: "否", value: false }] },
|
|
25
|
+
{ key: "keywords", label: "关键词查询字段", type: "field" },
|
|
26
|
+
{ key: "searchFields", label: "查询字段", type: "field" },
|
|
27
|
+
{ key: "span", label: "宽度", type: "select", options: this.spanOptions },
|
|
28
|
+
{ key: "xsspan", label: "移动端宽度", type: "select", options: this.spanOptions },
|
|
29
|
+
{ key: "height", label: "高度", type: "height" },
|
|
30
|
+
{ key: "flex", label: "占据页面剩余空间", type: "radio", options: [{ label: "是", value: true }, { label: "否", value: false }] }
|
|
31
|
+
];
|
|
32
|
+
this.configOptions = configOptions;
|
|
33
|
+
},
|
|
34
|
+
initConfig() {
|
|
35
|
+
const config = { ...this.compConfig };
|
|
36
|
+
if (this.componentInfo.span) {
|
|
37
|
+
config.span = this.componentInfo.span;
|
|
38
|
+
}
|
|
39
|
+
this.config = config;
|
|
40
|
+
for (const key in this.config) {
|
|
41
|
+
const configOption = this.configOptions.find((item) => item.key === key) || {};
|
|
42
|
+
if (configOption.type === "field") ;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
_sfc_main as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import '../../../style.css';
|
|
2
|
+
import _sfc_main from "./Index.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const Index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7f80ff85"]]);
|
|
6
|
+
export {
|
|
7
|
+
Index as default
|
|
8
|
+
};
|