@arkxos/arkos-system 0.1.0
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/README.md +36 -0
- package/ark_dist/664d11f069eab128.css +2 -0
- package/ark_dist/ArkOsConfig.js +136 -0
- package/ark_dist/ark-meta.json +92 -0
- package/ark_dist/ark_userChunk_1.js +3 -0
- package/ark_dist/ark_userChunk_2.js +5 -0
- package/ark_dist/ark_userChunk_3.js +49 -0
- package/ark_dist/config.js +75 -0
- package/ark_dist/css/views/views-flow-flow.ca26b106.css +5784 -0
- package/ark_dist/favicon.ico +0 -0
- package/ark_dist/fonts/bpmn.5d33bee4.eot +0 -0
- package/ark_dist/fonts/bpmn.67058807.woff2 +0 -0
- package/ark_dist/fonts/bpmn.b5c9250d.ttf +0 -0
- package/ark_dist/fonts/bpmn.e9e7d076.woff +0 -0
- package/ark_dist/img/404.png +0 -0
- package/ark_dist/img/auth_banner.jpg +0 -0
- package/ark_dist/img/avatar.jpg +0 -0
- package/ark_dist/img/avatar2.gif +0 -0
- package/ark_dist/img/avatar3.gif +0 -0
- package/ark_dist/img/bpmn.74eea12b.svg +224 -0
- package/ark_dist/img/loginbg.svg +1 -0
- package/ark_dist/img/logo-r.png +0 -0
- package/ark_dist/img/logo.png +0 -0
- package/ark_dist/img/mobile-bg.d055fadc.png +0 -0
- package/ark_dist/img/no-widgets.svg +57 -0
- package/ark_dist/img/tasks-example.png +0 -0
- package/ark_dist/img/ver.svg +236 -0
- package/ark_dist/index.html +118 -0
- package/ark_dist/js/app.e39a548a.js +1 -0
- package/ark_dist/js/views/views-flow-flow.84dc5300.js +3 -0
- package/ark_dist/js/views/views-flow-flow.84dc5300.js.LICENSE.txt +182 -0
- package/ark_dist/js/views/views-flow-flow.84dc5300.js.map +1 -0
- package/ark_proxy/entry.js +28 -0
- package/ark_proxy_es/entry.js +16 -0
- package/package.json +173 -0
- package/scripts/check.js +13 -0
- package/scripts/meta.js +21 -0
- package/scripts/prepublishOnly.js +28 -0
- package/src/admin/App.vue +13 -0
- package/src/admin/bpmn/custom/context-pad.js +405 -0
- package/src/admin/bpmn/custom/index.js +8 -0
- package/src/admin/bpmn/custom/palette.js +159 -0
- package/src/admin/bpmn/properties-panel/PropertiesView.vue +620 -0
- package/src/admin/bpmn/translate.js +23 -0
- package/src/admin/bpmn/translations.js +211 -0
- package/src/admin/components/affix/index.vue +385 -0
- package/src/admin/components/area-select/index.vue +52 -0
- package/src/admin/components/buttons/index.vue +47 -0
- package/src/admin/components/checkbox/index.vue +83 -0
- package/src/admin/components/code/code.js +149 -0
- package/src/admin/components/code/index.vue +450 -0
- package/src/admin/components/color/index.vue +30 -0
- package/src/admin/components/color-picker/index.vue +57 -0
- package/src/admin/components/color-scheme/index.vue +234 -0
- package/src/admin/components/condition-list/index.vue +170 -0
- package/src/admin/components/date/index.vue +29 -0
- package/src/admin/components/datetime/index.vue +45 -0
- package/src/admin/components/default-value-tips/index.vue +44 -0
- package/src/admin/components/dict-buttons/index.vue +53 -0
- package/src/admin/components/dict-checkbox/index.vue +45 -0
- package/src/admin/components/dict-radio/index.vue +68 -0
- package/src/admin/components/dict-select/index.vue +93 -0
- package/src/admin/components/dict-selects/index.vue +105 -0
- package/src/admin/components/dict-switch/index.vue +64 -0
- package/src/admin/components/dict-tree/index.vue +17 -0
- package/src/admin/components/dm-tree/index.vue +224 -0
- package/src/admin/components/edit-table/index.vue +171 -0
- package/src/admin/components/employee-tree/index.vue +247 -0
- package/src/admin/components/employees-tree/index.vue +80 -0
- package/src/admin/components/entp-tree/index.vue +266 -0
- package/src/admin/components/file/index.vue +310 -0
- package/src/admin/components/form/index.vue +141 -0
- package/src/admin/components/icon/index.vue +77 -0
- package/src/admin/components/icon-buttons/index.vue +52 -0
- package/src/admin/components/icon-select/index.vue +140 -0
- package/src/admin/components/image/index.vue +207 -0
- package/src/admin/components/index.js +16 -0
- package/src/admin/components/input/index.vue +41 -0
- package/src/admin/components/local-img/index.vue +49 -0
- package/src/admin/components/multiple-input/index.vue +64 -0
- package/src/admin/components/multiple-number/index.vue +70 -0
- package/src/admin/components/number/index.vue +134 -0
- package/src/admin/components/organization/index.vue +303 -0
- package/src/admin/components/organization-tree/index.vue +269 -0
- package/src/admin/components/page/index.vue +149 -0
- package/src/admin/components/password/index.vue +21 -0
- package/src/admin/components/radio/index.vue +46 -0
- package/src/admin/components/region-tree/index.vue +269 -0
- package/src/admin/components/remote-select/index.vue +315 -0
- package/src/admin/components/rich-editor/index.vue +152 -0
- package/src/admin/components/role-select/index.vue +58 -0
- package/src/admin/components/script-input/index.vue +97 -0
- package/src/admin/components/select/index.vue +105 -0
- package/src/admin/components/selects/index.vue +100 -0
- package/src/admin/components/style-list/index.vue +500 -0
- package/src/admin/components/switch/index.vue +54 -0
- package/src/admin/components/table/index.vue +920 -0
- package/src/admin/components/textarea/index.vue +28 -0
- package/src/admin/components/tree/index.vue +247 -0
- package/src/admin/components/tree-selects/index.vue +66 -0
- package/src/admin/components/unit-tree/index.vue +269 -0
- package/src/admin/console/index.vue +122 -0
- package/src/admin/layout/console/index.vue +15 -0
- package/src/admin/layout/fullscreen/index.vue +32 -0
- package/src/admin/layout/home/index.vue +11 -0
- package/src/admin/layout/index.vue +139 -0
- package/src/admin/layout/menu/index.vue +102 -0
- package/src/admin/layout/personnel/index.vue +166 -0
- package/src/admin/layout/search/index.vue +78 -0
- package/src/admin/main.js +30 -0
- package/src/admin/pinia/router.js +179 -0
- package/src/admin/router.js +91 -0
- package/src/admin/visual/comp-data.vue +1107 -0
- package/src/admin/visual/comp-event.vue +1677 -0
- package/src/admin/visual/components/app/list/goods/double.vue +184 -0
- package/src/admin/visual/components/app/list/nav/image.vue +114 -0
- package/src/admin/visual/components/app/list/nav/text.vue +130 -0
- package/src/admin/visual/components/button/index.vue +58 -0
- package/src/admin/visual/components/container/index.vue +37 -0
- package/src/admin/visual/components/custom-list/index.vue +127 -0
- package/src/admin/visual/components/data/index.vue +46 -0
- package/src/admin/visual/components/data-table/index.vue +203 -0
- package/src/admin/visual/components/echarts/annular.vue +140 -0
- package/src/admin/visual/components/echarts/bar.vue +115 -0
- package/src/admin/visual/components/echarts/funnel.vue +115 -0
- package/src/admin/visual/components/echarts/gauge.vue +158 -0
- package/src/admin/visual/components/echarts/line.vue +110 -0
- package/src/admin/visual/components/echarts/map.vue +150 -0
- package/src/admin/visual/components/echarts/pie.vue +114 -0
- package/src/admin/visual/components/echarts/radar.vue +145 -0
- package/src/admin/visual/components/echarts/scatter.vue +106 -0
- package/src/admin/visual/components/edit-table/index.vue +71 -0
- package/src/admin/visual/components/form/affix.vue +107 -0
- package/src/admin/visual/components/form/area.vue +76 -0
- package/src/admin/visual/components/form/buttons.vue +90 -0
- package/src/admin/visual/components/form/checkbox.vue +85 -0
- package/src/admin/visual/components/form/date-range.vue +61 -0
- package/src/admin/visual/components/form/date.vue +59 -0
- package/src/admin/visual/components/form/datetime.vue +59 -0
- package/src/admin/visual/components/form/employee-tree.vue +88 -0
- package/src/admin/visual/components/form/employees-tree.vue +6 -0
- package/src/admin/visual/components/form/image.vue +103 -0
- package/src/admin/visual/components/form/index.vue +59 -0
- package/src/admin/visual/components/form/input.vue +84 -0
- package/src/admin/visual/components/form/item.vue +68 -0
- package/src/admin/visual/components/form/number.vue +130 -0
- package/src/admin/visual/components/form/organization-tree.vue +88 -0
- package/src/admin/visual/components/form/password.vue +74 -0
- package/src/admin/visual/components/form/radio.vue +87 -0
- package/src/admin/visual/components/form/rate.vue +66 -0
- package/src/admin/visual/components/form/region-tree.vue +88 -0
- package/src/admin/visual/components/form/rich-editor.vue +94 -0
- package/src/admin/visual/components/form/select.vue +156 -0
- package/src/admin/visual/components/form/switch.vue +85 -0
- package/src/admin/visual/components/form/textarea.vue +62 -0
- package/src/admin/visual/components/form/unit-tree.vue +88 -0
- package/src/admin/visual/components/icon/index.vue +65 -0
- package/src/admin/visual/components/image/index.vue +170 -0
- package/src/admin/visual/components/index.js +44 -0
- package/src/admin/visual/components/list/block.vue +160 -0
- package/src/admin/visual/components/list/button.vue +80 -0
- package/src/admin/visual/components/list/card.vue +101 -0
- package/src/admin/visual/components/list/custom.vue +150 -0
- package/src/admin/visual/components/list/image.vue +116 -0
- package/src/admin/visual/components/list/news.vue +138 -0
- package/src/admin/visual/components/page/index.vue +88 -0
- package/src/admin/visual/components/page-comp/index.vue +110 -0
- package/src/admin/visual/components/portal-menu/index.vue +92 -0
- package/src/admin/visual/components/qrcode/index.vue +77 -0
- package/src/admin/visual/components/router-view/index.vue +12 -0
- package/src/admin/visual/components/row/index.vue +139 -0
- package/src/admin/visual/components/search/index.vue +40 -0
- package/src/admin/visual/components/tabs/index.vue +125 -0
- package/src/admin/visual/components/text/index.vue +64 -0
- package/src/admin/visual/components/video/index.vue +41 -0
- package/src/admin/visual/draggable.vue +49 -0
- package/src/admin/visual/editor.vue +602 -0
- package/src/admin/visual/js/app-form.config.js +1301 -0
- package/src/admin/visual/js/app.config.js +86 -0
- package/src/admin/visual/js/common.config.js +687 -0
- package/src/admin/visual/js/component.config.js +741 -0
- package/src/admin/visual/js/echarts.config.js +2440 -0
- package/src/admin/visual/js/form.config.js +2837 -0
- package/src/admin/visual/js/list.config.js +578 -0
- package/src/admin/visual/js/menu.config.js +62 -0
- package/src/admin/visual/js/visual-comp.js +48 -0
- package/src/admin/visual/tool.vue +1223 -0
- package/src/assets/images/background.jpg +0 -0
- package/src/assets/images/login-bg.jpg +0 -0
- package/src/assets/images/mobile-bg.png +0 -0
- package/src/assets/images/no-data.png +0 -0
- package/src/assets/style/base.css +48 -0
- package/src/assets/style/business.css +5 -0
- package/src/assets/style/code.css +36 -0
- package/src/assets/style/codeless.css +195 -0
- package/src/assets/style/flow.css +12 -0
- package/src/assets/style/global/blue.css +83 -0
- package/src/assets/style/global/default.css +71 -0
- package/src/assets/style/global/green.css +83 -0
- package/src/assets/style/global/purple.css +83 -0
- package/src/assets/style/global/red.css +83 -0
- package/src/assets/style/main.css +608 -0
- package/src/assets/style/menu/black.css +9 -0
- package/src/assets/style/menu/default.css +9 -0
- package/src/assets/style/menu/grey.css +9 -0
- package/src/assets/style/visual.css +204 -0
- package/src/auto-imports.d.ts +307 -0
- package/src/business/App.vue +131 -0
- package/src/business/components/dict-select/index.vue +88 -0
- package/src/business/components/index.js +13 -0
- package/src/business/components/input/index.vue +38 -0
- package/src/business/components/table/index.vue +928 -0
- package/src/business/home/index.vue +45 -0
- package/src/business/iframe/index.vue +63 -0
- package/src/business/layout/aside/history/history.vue +518 -0
- package/src/business/layout/aside/index.vue +116 -0
- package/src/business/layout/aside/menu/index.vue +47 -0
- package/src/business/layout/aside/menu/menuItem.vue +83 -0
- package/src/business/layout/aside/menu/submenu.vue +88 -0
- package/src/business/layout/fullscreen/index.vue +41 -0
- package/src/business/layout/header/index.vue +81 -0
- package/src/business/layout/header/menu/index.vue +47 -0
- package/src/business/layout/header/menu/menuItem.vue +43 -0
- package/src/business/layout/header/menu/submenu.vue +34 -0
- package/src/business/layout/home/index.vue +20 -0
- package/src/business/layout/index.vue +330 -0
- package/src/business/layout/message/index.vue +250 -0
- package/src/business/layout/personnel/index.vue +549 -0
- package/src/business/layout/search/index.vue +75 -0
- package/src/business/layout/subsystem/index.vue +124 -0
- package/src/business/main.js +36 -0
- package/src/business/pinia/menuBadge.js +58 -0
- package/src/business/pinia/router.js +190 -0
- package/src/business/router.js +98 -0
- package/src/choose/App.vue +203 -0
- package/src/choose/main.js +22 -0
- package/src/choose/router.js +33 -0
- package/src/codeless/components/affix/index.vue +393 -0
- package/src/codeless/components/affix-view/index.vue +244 -0
- package/src/codeless/components/buttons/index.vue +59 -0
- package/src/codeless/components/checkbox/index.vue +107 -0
- package/src/codeless/components/date/index.vue +105 -0
- package/src/codeless/components/datetime/index.vue +65 -0
- package/src/codeless/components/dialog-select/index.vue +170 -0
- package/src/codeless/components/dict-buttons/index.vue +97 -0
- package/src/codeless/components/dict-radio/index.vue +94 -0
- package/src/codeless/components/dict-select/index.vue +181 -0
- package/src/codeless/components/dict-selects/index.vue +145 -0
- package/src/codeless/components/dict-switch/index.vue +94 -0
- package/src/codeless/components/dict-tree/index.vue +116 -0
- package/src/codeless/components/edit-table/index.vue +160 -0
- package/src/codeless/components/employee-tree/index.vue +254 -0
- package/src/codeless/components/employees-tree/index.vue +87 -0
- package/src/codeless/components/entp-tree/index.vue +261 -0
- package/src/codeless/components/entps-tree/index.vue +93 -0
- package/src/codeless/components/icon/index.vue +65 -0
- package/src/codeless/components/image/index.vue +298 -0
- package/src/codeless/components/index.js +16 -0
- package/src/codeless/components/input/index.vue +63 -0
- package/src/codeless/components/number/index.vue +150 -0
- package/src/codeless/components/organization-tree/index.vue +262 -0
- package/src/codeless/components/organizations-tree/index.vue +79 -0
- package/src/codeless/components/password/index.vue +42 -0
- package/src/codeless/components/radio/index.vue +57 -0
- package/src/codeless/components/region-tree/index.vue +262 -0
- package/src/codeless/components/remote-distinct/index.vue +354 -0
- package/src/codeless/components/remote-select/index.vue +363 -0
- package/src/codeless/components/rich-editor/index.vue +159 -0
- package/src/codeless/components/roles/index.vue +68 -0
- package/src/codeless/components/select/index.vue +95 -0
- package/src/codeless/components/selects/index.vue +116 -0
- package/src/codeless/components/show-dict/index.vue +52 -0
- package/src/codeless/components/show-employees/index.vue +29 -0
- package/src/codeless/components/show-organizations/index.vue +29 -0
- package/src/codeless/components/show-roles/index.vue +45 -0
- package/src/codeless/components/signature-pad/index.vue +224 -0
- package/src/codeless/components/switch/index.vue +56 -0
- package/src/codeless/components/textarea/index.vue +37 -0
- package/src/codeless/components/tree/index.vue +244 -0
- package/src/codeless/components/unit-tree/index.vue +262 -0
- package/src/codeless/components/units-tree/index.vue +93 -0
- package/src/codeless/components/video/index.vue +255 -0
- package/src/codeless/components/video-view/index.vue +130 -0
- package/src/codeless/js/codeless.js +47 -0
- package/src/codeless/view/form-auto.vue +192 -0
- package/src/codeless/view/form-custom.vue +10 -0
- package/src/codeless/view/form-model.vue +421 -0
- package/src/codeless/view/form-query.vue +171 -0
- package/src/codeless/view/form.vue +575 -0
- package/src/codeless/view/page-comp.vue +1318 -0
- package/src/codeless/view/page.vue +280 -0
- package/src/codeless/view/table-edit-item.vue +184 -0
- package/src/codeless/view/table-edit.vue +490 -0
- package/src/codeless/view/table.vue +1606 -0
- package/src/codeless/view/tree.vue +431 -0
- package/src/configs/subApp.ts +9 -0
- package/src/directives/collapse/index.js +123 -0
- package/src/directives/drag/index.js +43 -0
- package/src/directives/index.js +9 -0
- package/src/directives/resize/index.js +23 -0
- package/src/entrance/libProperties.ts +24 -0
- package/src/entrance/libTypes.ts +26 -0
- package/src/error/404.vue +23 -0
- package/src/flow/chart.vue +130 -0
- package/src/flow/deal.vue +776 -0
- package/src/flow/signature.vue +216 -0
- package/src/flow/start.vue +18 -0
- package/src/http/api.js +192 -0
- package/src/http/request.js +81 -0
- package/src/login/App.vue +421 -0
- package/src/login/main.js +30 -0
- package/src/login/router.js +33 -0
- package/src/main.ts +20 -0
- package/src/mobile/App.vue +51 -0
- package/src/mobile/home/index.vue +34 -0
- package/src/mobile/main.js +26 -0
- package/src/mobile/router.js +101 -0
- package/src/mobile/view/page.vue +99 -0
- package/src/pinia/index.js +5 -0
- package/src/pinia/modules/dataField.js +77 -0
- package/src/pinia/modules/dataForm.js +46 -0
- package/src/pinia/modules/dataTable.js +46 -0
- package/src/pinia/modules/dictionary.js +66 -0
- package/src/pinia/modules/employee.js +46 -0
- package/src/pinia/modules/icon.js +46 -0
- package/src/pinia/modules/keepAlive.js +35 -0
- package/src/pinia/modules/organization.js +189 -0
- package/src/pinia/modules/page.js +46 -0
- package/src/pinia/modules/pageButton.js +44 -0
- package/src/pinia/modules/pageComp.js +46 -0
- package/src/pinia/modules/role.js +46 -0
- package/src/pinia/modules/setting.js +56 -0
- package/src/pinia/modules/subsystem.js +64 -0
- package/src/pinia/modules/user.js +177 -0
- package/src/plugins/index.ts +24 -0
- package/src/portal/App.vue +27 -0
- package/src/portal/home/index.vue +52 -0
- package/src/portal/main.js +31 -0
- package/src/portal/page/index.vue +39 -0
- package/src/portal/pinia/router.js +176 -0
- package/src/portal/router.js +86 -0
- package/src/router/constantRoutes.ts +13 -0
- package/src/router/loadComponent.ts +29 -0
- package/src/router/readme.txt +21 -0
- package/src/sso/sso.js +19 -0
- package/src/sso/sso.vue +138 -0
- package/src/types/axios.d.ts +13 -0
- package/src/types/func.ts +14 -0
- package/src/types/global.d.ts +108 -0
- package/src/types/layout.d.ts +59 -0
- package/src/types/mitt.d.ts +40 -0
- package/src/types/pinia.d.ts +93 -0
- package/src/types/views.d.ts +27 -0
- package/src/types/window.d.ts +8 -0
- package/src/utils/aes.js +75 -0
- package/src/utils/browser.js +13 -0
- package/src/utils/bus.js +4 -0
- package/src/utils/cache.js +6 -0
- package/src/utils/codeless.js +92 -0
- package/src/utils/color.js +274 -0
- package/src/utils/date.js +180 -0
- package/src/utils/loading.js +22 -0
- package/src/utils/page.js +36 -0
- package/src/utils/progress.js +19 -0
- package/src/utils/system.js +92 -0
- package/src/utils/theme.js +79 -0
- package/src/utils/tool.js +431 -0
- package/src/utils/websocket.js +124 -0
- package/src/views/codeless/appVersion.vue +593 -0
- package/src/views/codeless/dataFormEdit.vue +1463 -0
- package/src/views/codeless/dataModel.vue +2584 -0
- package/src/views/codeless/dataModelPage.vue +535 -0
- package/src/views/codeless/dataTableEdit.vue +1678 -0
- package/src/views/codeless/datasource.vue +308 -0
- package/src/views/codeless/interface.vue +833 -0
- package/src/views/codeless/interfaceToken.vue +255 -0
- package/src/views/codeless/page.vue +752 -0
- package/src/views/codeless/pageButton.vue +255 -0
- package/src/views/codeless/pageCompEdit.vue +2330 -0
- package/src/views/codeless/pageEdit.vue +661 -0
- package/src/views/codeless/relationPage.vue +349 -0
- package/src/views/codeless/scriptGroovy.vue +736 -0
- package/src/views/codeless/scriptGroovyEdit.vue +248 -0
- package/src/views/codeless/scriptGroovyExecute.vue +212 -0
- package/src/views/codeless/scriptGroovySimple.vue +1057 -0
- package/src/views/codeless/scriptTool.vue +563 -0
- package/src/views/codeless/subsystem.vue +309 -0
- package/src/views/codeless/template.vue +739 -0
- package/src/views/codeless/variable.vue +727 -0
- package/src/views/codeless/view.vue +738 -0
- package/src/views/codeless/viewEdit.vue +244 -0
- package/src/views/codeless/viewSimple.vue +1034 -0
- package/src/views/collect/task.vue +898 -0
- package/src/views/collect/taskLog.vue +238 -0
- package/src/views/dictionary/dictionary.vue +866 -0
- package/src/views/employee/employee.vue +355 -0
- package/src/views/flow/flow.vue +369 -0
- package/src/views/flow/flowInst.vue +73 -0
- package/src/views/flow/flowLineBranch.vue +406 -0
- package/src/views/flow/flowNodeMan.vue +426 -0
- package/src/views/flow/flowOpinion.vue +188 -0
- package/src/views/icon/icon.vue +242 -0
- package/src/views/log/loginLog.vue +41 -0
- package/src/views/log/operatorLog.vue +176 -0
- package/src/views/menu/menu.vue +883 -0
- package/src/views/menu/menuList.vue +858 -0
- package/src/views/message/message.vue +299 -0
- package/src/views/mobile/editor.vue +1100 -0
- package/src/views/mobile/mobile.vue +568 -0
- package/src/views/mobile/tool.vue +1258 -0
- package/src/views/monitor/database.vue +11 -0
- package/src/views/monitor/details-diskspace.vue +56 -0
- package/src/views/monitor/details-gc.vue +93 -0
- package/src/views/monitor/details-memory.vue +143 -0
- package/src/views/monitor/details-process.vue +132 -0
- package/src/views/monitor/details-threads.vue +106 -0
- package/src/views/monitor/line-chart.vue +93 -0
- package/src/views/monitor/mem-chart.vue +22 -0
- package/src/views/monitor/panel.vue +90 -0
- package/src/views/monitor/performance.vue +36 -0
- package/src/views/monitor/threads-chart.vue +16 -0
- package/src/views/operation/backup.vue +593 -0
- package/src/views/operation/center.vue +420 -0
- package/src/views/operation/restore.vue +94 -0
- package/src/views/organization/organization.vue +366 -0
- package/src/views/role/role.vue +502 -0
- package/src/views/schedule/schedule.vue +338 -0
- package/src/views/schedule/scheduleLog.vue +40 -0
- package/src/views/sequence/sequence.vue +283 -0
- package/src/views/setting/setting.vue +371 -0
- package/src/visual/components/app/list/goods/double.vue +241 -0
- package/src/visual/components/app/list/nav/image.vue +135 -0
- package/src/visual/components/app/list/nav/text.vue +159 -0
- package/src/visual/components/button/index.vue +95 -0
- package/src/visual/components/container/index.vue +128 -0
- package/src/visual/components/data/index.vue +60 -0
- package/src/visual/components/data-table/index.vue +260 -0
- package/src/visual/components/echarts/annular.vue +173 -0
- package/src/visual/components/echarts/bar.vue +172 -0
- package/src/visual/components/echarts/funnel.vue +167 -0
- package/src/visual/components/echarts/gauge.vue +186 -0
- package/src/visual/components/echarts/line.vue +172 -0
- package/src/visual/components/echarts/map.vue +206 -0
- package/src/visual/components/echarts/pie.vue +158 -0
- package/src/visual/components/echarts/radar.vue +196 -0
- package/src/visual/components/echarts/scatter.vue +153 -0
- package/src/visual/components/edit-table/index.vue +71 -0
- package/src/visual/components/form/affix.vue +440 -0
- package/src/visual/components/form/area.vue +134 -0
- package/src/visual/components/form/buttons.vue +120 -0
- package/src/visual/components/form/checkbox.vue +126 -0
- package/src/visual/components/form/date-range.vue +97 -0
- package/src/visual/components/form/date.vue +88 -0
- package/src/visual/components/form/datetime.vue +87 -0
- package/src/visual/components/form/employee-tree.vue +300 -0
- package/src/visual/components/form/employees-tree.vue +91 -0
- package/src/visual/components/form/image.vue +440 -0
- package/src/visual/components/form/index.vue +85 -0
- package/src/visual/components/form/input.vue +116 -0
- package/src/visual/components/form/item.vue +68 -0
- package/src/visual/components/form/number.vue +157 -0
- package/src/visual/components/form/organization-tree.vue +300 -0
- package/src/visual/components/form/password.vue +103 -0
- package/src/visual/components/form/radio.vue +122 -0
- package/src/visual/components/form/rate.vue +93 -0
- package/src/visual/components/form/region-tree.vue +300 -0
- package/src/visual/components/form/rich-editor.vue +114 -0
- package/src/visual/components/form/select.vue +172 -0
- package/src/visual/components/form/switch.vue +105 -0
- package/src/visual/components/form/textarea.vue +91 -0
- package/src/visual/components/form/unit-tree.vue +300 -0
- package/src/visual/components/icon/index.vue +73 -0
- package/src/visual/components/image/index.vue +445 -0
- package/src/visual/components/index.js +26 -0
- package/src/visual/components/list/block.vue +234 -0
- package/src/visual/components/list/button.vue +123 -0
- package/src/visual/components/list/card.vue +129 -0
- package/src/visual/components/list/custom.vue +214 -0
- package/src/visual/components/list/image.vue +182 -0
- package/src/visual/components/list/news.vue +174 -0
- package/src/visual/components/page-comp/index.vue +67 -0
- package/src/visual/components/portal-menu/index.vue +191 -0
- package/src/visual/components/qrcode/index.vue +98 -0
- package/src/visual/components/router-view/index.vue +51 -0
- package/src/visual/components/row/index.vue +175 -0
- package/src/visual/components/search/index.vue +96 -0
- package/src/visual/components/tabs/index.vue +103 -0
- package/src/visual/components/text/index.vue +111 -0
- package/src/visual/components/video/index.vue +93 -0
- package/src/visual/js/echarts.js +220 -0
- package/src/visual/js/event.js +476 -0
- package/src/visual/js/visual-comp.js +48 -0
- package/src/visual/js/visual.js +508 -0
- package/src/visual/view/page.vue +357 -0
|
@@ -0,0 +1,1223 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="visual-tool" v-if="!initializing">
|
|
3
|
+
<div class="visual-panel" v-if="currConfig">
|
|
4
|
+
<div class="visual-panel-item" v-if="currConfig === 'style'">
|
|
5
|
+
<div class="status-group">
|
|
6
|
+
<div class="label">状态</div>
|
|
7
|
+
<div class="button">
|
|
8
|
+
<ac-icon
|
|
9
|
+
iconId="018dca3b4707c4c43a2f"
|
|
10
|
+
size="14"
|
|
11
|
+
color="#bfbfbf"
|
|
12
|
+
style="cursor: pointer"
|
|
13
|
+
@click="addStyle"
|
|
14
|
+
/>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div v-if="(activatedNode.styleList || []).length > 1" class="status-box">
|
|
18
|
+
<div
|
|
19
|
+
class="status-item"
|
|
20
|
+
v-for="style in activatedNode.styleList || []"
|
|
21
|
+
:key="style.id"
|
|
22
|
+
>
|
|
23
|
+
<div class="label">
|
|
24
|
+
<ac-icon
|
|
25
|
+
v-if="style.id === currStyleId"
|
|
26
|
+
iconId="018dca412c4e207388f7"
|
|
27
|
+
size="14"
|
|
28
|
+
style="cursor: pointer"
|
|
29
|
+
/>
|
|
30
|
+
<ac-icon
|
|
31
|
+
v-else
|
|
32
|
+
iconId="018f68cc34330101d11d"
|
|
33
|
+
size="14"
|
|
34
|
+
style="cursor: pointer"
|
|
35
|
+
@click="() => changeStyle(style.id)"
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="content">
|
|
39
|
+
<span v-if="style.name === '原始状态'">{{style.name}}</span>
|
|
40
|
+
<el-input
|
|
41
|
+
v-else
|
|
42
|
+
v-model="style.name"
|
|
43
|
+
size="small"
|
|
44
|
+
/>
|
|
45
|
+
</div>
|
|
46
|
+
<div
|
|
47
|
+
v-if="style.name !== '原始状态'"
|
|
48
|
+
class="button"
|
|
49
|
+
style="margin-left: 8px;"
|
|
50
|
+
>
|
|
51
|
+
<ac-icon
|
|
52
|
+
iconId="018dc9c3efd3a0502886"
|
|
53
|
+
size="14"
|
|
54
|
+
color="rgb(245,108,108)"
|
|
55
|
+
style="cursor: pointer"
|
|
56
|
+
title="删除"
|
|
57
|
+
@click="() => deleteStyle(style.id)"
|
|
58
|
+
/>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="style-box">
|
|
63
|
+
<el-collapse v-model="collapseNames">
|
|
64
|
+
<el-collapse-item
|
|
65
|
+
v-for="(group, index) in styleList"
|
|
66
|
+
:key="index"
|
|
67
|
+
:title="group.name"
|
|
68
|
+
:name="group.name"
|
|
69
|
+
>
|
|
70
|
+
<div
|
|
71
|
+
v-for="(style, index) in group.children"
|
|
72
|
+
:key="index"
|
|
73
|
+
class="style-item"
|
|
74
|
+
>
|
|
75
|
+
<el-tooltip
|
|
76
|
+
v-if="style.description"
|
|
77
|
+
placement="left"
|
|
78
|
+
:content="style.description"
|
|
79
|
+
popper-class="padding-10-15"
|
|
80
|
+
>
|
|
81
|
+
<span class="label">{{style.name}}:</span>
|
|
82
|
+
</el-tooltip>
|
|
83
|
+
<span v-else-if="style.name" class="label">{{style.name}}:</span>
|
|
84
|
+
<span class="content">
|
|
85
|
+
<Component
|
|
86
|
+
:is="'ac-' + style.fieldType"
|
|
87
|
+
v-model="currStyle[style.fieldName]"
|
|
88
|
+
v-bind="cleanProp(style)"
|
|
89
|
+
size="small"
|
|
90
|
+
/>
|
|
91
|
+
</span>
|
|
92
|
+
</div>
|
|
93
|
+
</el-collapse-item>
|
|
94
|
+
</el-collapse>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="visual-panel-item" v-if="currConfig === 'compStyle'">
|
|
98
|
+
<div class="status-group">
|
|
99
|
+
<div class="label">状态</div>
|
|
100
|
+
<div class="button">
|
|
101
|
+
<ac-icon
|
|
102
|
+
iconId="018dca3b4707c4c43a2f"
|
|
103
|
+
size="14"
|
|
104
|
+
color="#bfbfbf"
|
|
105
|
+
style="cursor: pointer"
|
|
106
|
+
@click="addStyle"
|
|
107
|
+
/>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
<div v-if="(activatedNode.styleList || []).length > 1" class="status-box">
|
|
111
|
+
<div
|
|
112
|
+
v-for="(style, index) in activatedNode.styleList || []"
|
|
113
|
+
:key="index"
|
|
114
|
+
class="status-item"
|
|
115
|
+
>
|
|
116
|
+
<div class="label">
|
|
117
|
+
<ac-icon
|
|
118
|
+
v-if="style.id === currStyleId"
|
|
119
|
+
iconId="018dca412c4e207388f7"
|
|
120
|
+
size="14"
|
|
121
|
+
style="cursor: pointer"
|
|
122
|
+
/>
|
|
123
|
+
<ac-icon
|
|
124
|
+
v-else
|
|
125
|
+
iconId="018f68cc34330101d11d"
|
|
126
|
+
size="14"
|
|
127
|
+
style="cursor: pointer"
|
|
128
|
+
@click="() => changeStyle(style.id)"
|
|
129
|
+
/>
|
|
130
|
+
</div>
|
|
131
|
+
<div class="content">
|
|
132
|
+
<span v-if="style.name === '原始状态'">{{style.name}}</span>
|
|
133
|
+
<el-input
|
|
134
|
+
v-else
|
|
135
|
+
v-model="style.name"
|
|
136
|
+
size="small"
|
|
137
|
+
/>
|
|
138
|
+
</div>
|
|
139
|
+
<div
|
|
140
|
+
v-if="style.name !== '原始状态'"
|
|
141
|
+
class="button"
|
|
142
|
+
style="margin-left: 8px;"
|
|
143
|
+
>
|
|
144
|
+
<ac-icon
|
|
145
|
+
iconId="018dc9c3efd3a0502886"
|
|
146
|
+
size="14"
|
|
147
|
+
color="rgb(245,108,108)"
|
|
148
|
+
style="cursor: pointer"
|
|
149
|
+
title="删除"
|
|
150
|
+
@click="() => deleteStyle(style.id)"
|
|
151
|
+
/>
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
<div class="style-box">
|
|
156
|
+
<div class="style-item">
|
|
157
|
+
<span class="label">组件名称:</span>
|
|
158
|
+
<span class="content">
|
|
159
|
+
<el-input size="small" v-model="activatedNode.name" />
|
|
160
|
+
</span>
|
|
161
|
+
</div>
|
|
162
|
+
<div
|
|
163
|
+
class="style-item"
|
|
164
|
+
style="margin-bottom: 1px;"
|
|
165
|
+
>
|
|
166
|
+
<span class="label">
|
|
167
|
+
<span>默认值</span>
|
|
168
|
+
<span
|
|
169
|
+
v-if="!currCompStyle.defaultType || currCompStyle.defaultType === 'input'"
|
|
170
|
+
style="margin-left: 3px"
|
|
171
|
+
><ac-default-value-tips @change="(value) => currCompStyle.defaultValue = value"/></span>
|
|
172
|
+
<span>:</span>
|
|
173
|
+
</span>
|
|
174
|
+
<div style="flex-grow: 1">
|
|
175
|
+
<ac-select
|
|
176
|
+
v-if="currCompStyle.defaultType === 'param'"
|
|
177
|
+
v-model="currCompStyle.defaultValue"
|
|
178
|
+
:options="inputParamOptions"
|
|
179
|
+
title="默认值"
|
|
180
|
+
size="small"
|
|
181
|
+
/>
|
|
182
|
+
<ac-tree
|
|
183
|
+
v-else-if="currCompStyle.defaultType === 'script'"
|
|
184
|
+
v-model="currCompStyle.defaultValue"
|
|
185
|
+
data-url="/system/scriptGroovy/queryTree"
|
|
186
|
+
type-select="script"
|
|
187
|
+
size="small"
|
|
188
|
+
/>
|
|
189
|
+
<ac-input
|
|
190
|
+
v-else
|
|
191
|
+
v-model="currCompStyle.defaultValue"
|
|
192
|
+
title="默认值"
|
|
193
|
+
size="small"
|
|
194
|
+
/>
|
|
195
|
+
</div>
|
|
196
|
+
<div style="margin-left: 5px;flex-shrink: 0;width: 60px">
|
|
197
|
+
<ac-select
|
|
198
|
+
v-model="currCompStyle.defaultType"
|
|
199
|
+
placeholder="请选择"
|
|
200
|
+
:options="[
|
|
201
|
+
{key: 'input', value: '输入'},
|
|
202
|
+
{key: 'param', value: '参数'},
|
|
203
|
+
{key: 'script', value: '脚本'}
|
|
204
|
+
]"
|
|
205
|
+
size="small"
|
|
206
|
+
/>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
<el-collapse v-model="collapseCompNames" v-if="compStyleList.length > 0">
|
|
210
|
+
<el-collapse-item
|
|
211
|
+
v-for="(group, index) in compStyleList"
|
|
212
|
+
:key="index"
|
|
213
|
+
:title="group.name"
|
|
214
|
+
:name="group.name"
|
|
215
|
+
>
|
|
216
|
+
<div v-if="group.type !== 'group'" class="style-item">
|
|
217
|
+
<span v-if="group.name" class="label">{{group.name}}:</span>
|
|
218
|
+
<span class="content">
|
|
219
|
+
<Component
|
|
220
|
+
:is="'ac-' + group.fieldType"
|
|
221
|
+
v-model="currStyle[group.fieldName]"
|
|
222
|
+
v-bind="cleanProp(group)"
|
|
223
|
+
v-bind:fieldList="getFieldList()"
|
|
224
|
+
size="small"
|
|
225
|
+
/>
|
|
226
|
+
</span>
|
|
227
|
+
</div>
|
|
228
|
+
<div
|
|
229
|
+
v-else
|
|
230
|
+
v-for="(style, index) in group.children"
|
|
231
|
+
:key="index"
|
|
232
|
+
class="style-item"
|
|
233
|
+
>
|
|
234
|
+
<div
|
|
235
|
+
v-if="style.name"
|
|
236
|
+
class="label"
|
|
237
|
+
>
|
|
238
|
+
<el-tooltip
|
|
239
|
+
v-if="style.description"
|
|
240
|
+
placement="left"
|
|
241
|
+
:content="style.description"
|
|
242
|
+
popper-class="padding-10-15"
|
|
243
|
+
>
|
|
244
|
+
<span class="label-name">{{style.name}}</span>
|
|
245
|
+
</el-tooltip>
|
|
246
|
+
<span v-if="!style.description" class="label-name">{{style.name}}</span>
|
|
247
|
+
<span
|
|
248
|
+
v-if="style.name === '默认值'
|
|
249
|
+
&& (style.fieldType === 'input'
|
|
250
|
+
|| style.fieldType === 'script-input')"
|
|
251
|
+
style="margin-left: 3px;"
|
|
252
|
+
>
|
|
253
|
+
<ac-default-value-tips />
|
|
254
|
+
</span>
|
|
255
|
+
<span>:</span>
|
|
256
|
+
</div>
|
|
257
|
+
<span class="content" :style="{marginLeft: style.name ? '0' : '10px'}">
|
|
258
|
+
<Component
|
|
259
|
+
:is="'ac-' + (typeof style.fieldType === 'function'
|
|
260
|
+
? style.fieldType(currCompStyle) : style.fieldType)"
|
|
261
|
+
v-model="currCompStyle[style.fieldName]"
|
|
262
|
+
v-bind="cleanProp(style)"
|
|
263
|
+
v-bind:fieldList="getFieldList()"
|
|
264
|
+
size="small"
|
|
265
|
+
/>
|
|
266
|
+
</span>
|
|
267
|
+
</div>
|
|
268
|
+
</el-collapse-item>
|
|
269
|
+
</el-collapse>
|
|
270
|
+
</div>
|
|
271
|
+
</div>
|
|
272
|
+
<div class="visual-panel-item" v-show="currConfig === 'compData'">
|
|
273
|
+
<comp-data />
|
|
274
|
+
</div>
|
|
275
|
+
<div class="visual-panel-item" v-if="currConfig === 'compEvent'">
|
|
276
|
+
<comp-event @change="eventChange" />
|
|
277
|
+
</div>
|
|
278
|
+
<div class="visual-panel-item tree" v-if="currConfig === 'compTree'">
|
|
279
|
+
<el-tree
|
|
280
|
+
ref="treeRef"
|
|
281
|
+
:data="[rootNode]"
|
|
282
|
+
:props="treeProps"
|
|
283
|
+
:expand-on-click-node="false"
|
|
284
|
+
:current-node-key="activatedNode.id"
|
|
285
|
+
default-expand-all
|
|
286
|
+
node-key="id"
|
|
287
|
+
@node-click="treeNodeClick"
|
|
288
|
+
></el-tree>
|
|
289
|
+
</div>
|
|
290
|
+
<div class="visual-panel-item tpl" v-if="currConfig === 'tpl'">
|
|
291
|
+
<div class="tpl-box">
|
|
292
|
+
<div class="tpl-item-wrapper" v-for="(item, index) in tplList" :key="index">
|
|
293
|
+
<div class="tpl-item">
|
|
294
|
+
<div class="tpl-item-name" v-if="item.edit">
|
|
295
|
+
<el-input v-model="item.name" @change="saveTpl(item)" @blur="item.edit = false" />
|
|
296
|
+
</div>
|
|
297
|
+
<div class="tpl-item-name border" v-else @dblclick="item.edit = true">{{item.name || '模板'}}</div>
|
|
298
|
+
<div class="tpl-item-add">
|
|
299
|
+
<ac-icon
|
|
300
|
+
iconId="018ece4f72d1bf69178b"
|
|
301
|
+
size="20"
|
|
302
|
+
color="#21D914FF"
|
|
303
|
+
style="cursor: pointer"
|
|
304
|
+
title="追加到当前节点"
|
|
305
|
+
@click="() => addTplToNode(item)"
|
|
306
|
+
/>
|
|
307
|
+
</div>
|
|
308
|
+
<div class="tpl-item-delete">
|
|
309
|
+
<ac-icon
|
|
310
|
+
iconId="018dc9c3efd3a0502886"
|
|
311
|
+
size="16"
|
|
312
|
+
color="rgb(245,108,108)"
|
|
313
|
+
style="cursor: pointer"
|
|
314
|
+
title="删除"
|
|
315
|
+
@click="() => deleteTpl(item)"
|
|
316
|
+
/>
|
|
317
|
+
</div>
|
|
318
|
+
</div>
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
321
|
+
</div>
|
|
322
|
+
<div class="visual-panel-item" v-if="currConfig === 'comp'">
|
|
323
|
+
<el-collapse v-model="compNames">
|
|
324
|
+
<el-collapse-item
|
|
325
|
+
v-for="(item, index) in compList"
|
|
326
|
+
:key="index"
|
|
327
|
+
:name="item.name"
|
|
328
|
+
:title="item.name"
|
|
329
|
+
>
|
|
330
|
+
<div class="component-group-item">
|
|
331
|
+
<vue-draggable
|
|
332
|
+
v-model="item.children"
|
|
333
|
+
item-key="type"
|
|
334
|
+
class="component-box"
|
|
335
|
+
:group="{name: 'nodeGroup', pull: 'clone', put: false}"
|
|
336
|
+
:clone="cloneComponent"
|
|
337
|
+
:sort="false"
|
|
338
|
+
@end="onDragEnd"
|
|
339
|
+
>
|
|
340
|
+
<template #item="{ element }">
|
|
341
|
+
<div
|
|
342
|
+
class="component-item"
|
|
343
|
+
:title="element.name.length > 6 ? element.name : ''"
|
|
344
|
+
>
|
|
345
|
+
<el-tooltip
|
|
346
|
+
v-if="element.img"
|
|
347
|
+
effect="light"
|
|
348
|
+
:enterable="false"
|
|
349
|
+
popper-class="padding-10-15-center"
|
|
350
|
+
>
|
|
351
|
+
<template #content>
|
|
352
|
+
<ac-local-img :img="element.img" :width="150" :height="112" />
|
|
353
|
+
</template>
|
|
354
|
+
<div style="width: 100%">{{element.name }}</div>
|
|
355
|
+
</el-tooltip>
|
|
356
|
+
<span v-else>{{ element.name }}</span>
|
|
357
|
+
</div>
|
|
358
|
+
</template>
|
|
359
|
+
</vue-draggable>
|
|
360
|
+
</div>
|
|
361
|
+
</el-collapse-item>
|
|
362
|
+
</el-collapse>
|
|
363
|
+
</div>
|
|
364
|
+
</div>
|
|
365
|
+
<div class="visual-menu">
|
|
366
|
+
<div title="保存" class="menu-item" @click="save">
|
|
367
|
+
<ac-icon iconId="018ece4f68db3d9f13c1" color="#67C23A" size="20" />
|
|
368
|
+
</div>
|
|
369
|
+
<div title="退出" class="menu-item" @click="quit">
|
|
370
|
+
<ac-icon iconId="018ece4f732eee924b02" color="red" size="20" />
|
|
371
|
+
</div>
|
|
372
|
+
<div title="预览" class="menu-item" @click="preview">
|
|
373
|
+
<ac-icon iconId="018dc9c3efed3042d4d3" color="#ddd" size="20" />
|
|
374
|
+
</div>
|
|
375
|
+
<div
|
|
376
|
+
title="样式"
|
|
377
|
+
:class="['menu-item', currConfig === 'style' ? 'is-active' : '']"
|
|
378
|
+
@click="() => changeConfig('style')"
|
|
379
|
+
>
|
|
380
|
+
<ac-icon iconId="018ece4f712124866f78" color="#ddd" size="20" />
|
|
381
|
+
</div>
|
|
382
|
+
<div
|
|
383
|
+
title="组件设置"
|
|
384
|
+
:class="['menu-item', currConfig === 'compStyle' ? 'is-active' : '']"
|
|
385
|
+
@click="() => changeConfig('compStyle')"
|
|
386
|
+
>
|
|
387
|
+
<ac-icon iconId="018ece4f775aa2fce122" color="#ddd" size="20" />
|
|
388
|
+
</div>
|
|
389
|
+
<div
|
|
390
|
+
title="数据"
|
|
391
|
+
:class="['menu-item', currConfig === 'compData' ? 'is-active' : '']"
|
|
392
|
+
@click="() => changeConfig('compData')"
|
|
393
|
+
>
|
|
394
|
+
<ac-icon iconId="018ece4f721bb04985f7" color="#ddd" size="20" />
|
|
395
|
+
</div>
|
|
396
|
+
<div
|
|
397
|
+
title="事件"
|
|
398
|
+
:class="['menu-item', currConfig === 'compEvent' ? 'is-active' : '']"
|
|
399
|
+
@click="() => changeConfig('compEvent')"
|
|
400
|
+
>
|
|
401
|
+
<ac-icon iconId="018ece4f70d7130088a7" color="#ddd" size="20" />
|
|
402
|
+
</div>
|
|
403
|
+
<div
|
|
404
|
+
title="组件树"
|
|
405
|
+
:class="['menu-item', currConfig === 'compTree' ? 'is-active' : '']"
|
|
406
|
+
@click="() => changeConfig('compTree')"
|
|
407
|
+
>
|
|
408
|
+
<ac-icon iconId="018ece4f71bb880f77dc" color="#ddd" size="20" />
|
|
409
|
+
</div>
|
|
410
|
+
<div
|
|
411
|
+
title="模板"
|
|
412
|
+
:class="['menu-item', currConfig === 'tpl' ? 'is-active' : '']"
|
|
413
|
+
@click="() => changeConfig('tpl')"
|
|
414
|
+
>
|
|
415
|
+
<ac-icon iconId="018ece4f7578ad8407e5" color="#ddd" size="20" />
|
|
416
|
+
</div>
|
|
417
|
+
<div
|
|
418
|
+
title="组件"
|
|
419
|
+
:class="['menu-item', currConfig === 'comp' ? 'is-active' : '']"
|
|
420
|
+
@click="() => changeConfig('comp')"
|
|
421
|
+
>
|
|
422
|
+
<ac-icon iconId="018ece4f775aa2fce122" color="#ddd" size="20" />
|
|
423
|
+
</div>
|
|
424
|
+
</div>
|
|
425
|
+
</div>
|
|
426
|
+
</template>
|
|
427
|
+
|
|
428
|
+
<script setup>
|
|
429
|
+
import { ref, watch, onMounted, nextTick, computed, inject } from 'vue';
|
|
430
|
+
import vueDraggable from 'vuedraggable';
|
|
431
|
+
import tool from '@/utils/tool';
|
|
432
|
+
import { useAdminVisualCompStore } from '@/admin/visual/js/visual-comp';
|
|
433
|
+
import { commonStyle } from './js/common.config';
|
|
434
|
+
import { components } from './js/component.config';
|
|
435
|
+
import visual from '@/visual/js/visual';
|
|
436
|
+
import CompEvent from './comp-event.vue';
|
|
437
|
+
import CompData from './comp-data.vue';
|
|
438
|
+
import { ElMessage, ElMessageBox } from 'element-plus';
|
|
439
|
+
import api from '@/http/api';
|
|
440
|
+
|
|
441
|
+
const props = defineProps({ type: String });
|
|
442
|
+
const initializing = ref(true);
|
|
443
|
+
const compList = ref([]);
|
|
444
|
+
const emit = defineEmits(['preview', 'save', 'quit', 'change', 'activeNode']);
|
|
445
|
+
const visualComp = useAdminVisualCompStore();
|
|
446
|
+
const currStyleSeq = ref(1);
|
|
447
|
+
const currStyleId = ref('');
|
|
448
|
+
const currStyle = ref({});
|
|
449
|
+
const collapseNames = ref([]);
|
|
450
|
+
const currCompStyle = ref({});
|
|
451
|
+
const collapseCompNames = ref([]);
|
|
452
|
+
const currConfig = ref('style');
|
|
453
|
+
const rootNode = inject('rootNode');
|
|
454
|
+
const activatedNode = inject('activatedNode');
|
|
455
|
+
const nameIndex = inject('nameIndex');
|
|
456
|
+
const compConfigList = ref([]);
|
|
457
|
+
const compNames = ref([]);
|
|
458
|
+
const treeRef = ref();
|
|
459
|
+
const treeProps = {
|
|
460
|
+
children: 'children',
|
|
461
|
+
label: 'name',
|
|
462
|
+
};
|
|
463
|
+
const tplList = ref([]);
|
|
464
|
+
const pageParamList = inject('pageParamList');
|
|
465
|
+
|
|
466
|
+
const treeNodeClick = (node) => {
|
|
467
|
+
emit('activeNode', node);
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
const changeConfig = (config) => {
|
|
471
|
+
currConfig.value = config;
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
const addStyle = async() => {
|
|
475
|
+
currStyleId.value = tool.uuids();
|
|
476
|
+
currStyle.value = initStyle({});
|
|
477
|
+
currCompStyle.value = await initCompStyle({});
|
|
478
|
+
const style = {
|
|
479
|
+
id: currStyleId.value,
|
|
480
|
+
name: '状态' + currStyleSeq.value++,
|
|
481
|
+
style: currStyle.value,
|
|
482
|
+
compStyle: currCompStyle.value,
|
|
483
|
+
};
|
|
484
|
+
activatedNode.value.styleList.push(style);
|
|
485
|
+
activatedNode.value.currStyle = currStyle.value;
|
|
486
|
+
activatedNode.value.currCompStyle = currCompStyle.value;
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
const deleteStyle = (id) => {
|
|
490
|
+
ElMessageBox.confirm('请确认是否删除?', '提示', { type: 'warning' }).then(async() => {
|
|
491
|
+
const index = activatedNode.value.styleList.findIndex(item => item.id === id);
|
|
492
|
+
activatedNode.value.styleList.splice(index, 1);
|
|
493
|
+
|
|
494
|
+
if (currStyle.value.id === id) {
|
|
495
|
+
currStyleId.value = activatedNode.value.styleList[0].id;
|
|
496
|
+
currStyle.value = initStyle(activatedNode.value.styleList[0].style);
|
|
497
|
+
currCompStyle.value = await initCompStyle(activatedNode.value.styleList[0].compStyle);
|
|
498
|
+
activatedNode.value.currStyle = currStyle.value;
|
|
499
|
+
activatedNode.value.currCompStyle = currCompStyle.value;
|
|
500
|
+
}
|
|
501
|
+
}).catch(() => {});
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
const changeStyle = async(id) => {
|
|
505
|
+
currStyleId.value = id;
|
|
506
|
+
currStyle.value = initStyle((activatedNode.value.styleList.find(item => item.id === id) || {}).style);
|
|
507
|
+
currCompStyle.value = await initCompStyle((activatedNode.value.styleList.find(item => item.id === id) || {}).compStyle);
|
|
508
|
+
activatedNode.value.currStyle = currStyle.value;
|
|
509
|
+
activatedNode.value.currCompStyle = currCompStyle.value;
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
const initStyle = (style) => {
|
|
513
|
+
commonStyle.forEach(item => {
|
|
514
|
+
if (item.type !== 'group' && item.fieldName && typeof style[item.fieldName] === 'undefined') {
|
|
515
|
+
style[item.fieldName] = getValue(style[item.fieldName], item.default);
|
|
516
|
+
}
|
|
517
|
+
if (item.children && item.children.length > 0) {
|
|
518
|
+
initStyleByDefault(style, item.children);
|
|
519
|
+
}
|
|
520
|
+
});
|
|
521
|
+
|
|
522
|
+
return style;
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
const initStyleByDefault = (style, list) => {
|
|
526
|
+
list.forEach(item => {
|
|
527
|
+
if (item.type !== 'group' && item.fieldName && typeof style[item.fieldName] === 'undefined') {
|
|
528
|
+
style[item.fieldName] = getValue(style[item.fieldName], item.default);
|
|
529
|
+
}
|
|
530
|
+
if (item.children && item.children.length > 0) {
|
|
531
|
+
initStyleByDefault(style, item.children);
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
const initCompStyle = async(style) => {
|
|
537
|
+
(tool.deepClone(await getCompStyle()) || []).forEach(item => {
|
|
538
|
+
if (item.type !== 'group' && item.fieldName && typeof style[item.fieldName] === 'undefined') {
|
|
539
|
+
style[item.fieldName] = getValue(style[item.fieldName], item.default);
|
|
540
|
+
}
|
|
541
|
+
if (item.children && item.children.length > 0) {
|
|
542
|
+
initCompStyleByDefault(style, item.children);
|
|
543
|
+
}
|
|
544
|
+
});
|
|
545
|
+
|
|
546
|
+
return style;
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
const initCompStyleByDefault = (style, list) => {
|
|
550
|
+
list.forEach(item => {
|
|
551
|
+
if (item.type !== 'group' && item.fieldName && typeof style[item.fieldName] === 'undefined') {
|
|
552
|
+
style[item.fieldName] = getValue(style[item.fieldName], item.default);
|
|
553
|
+
}
|
|
554
|
+
if (item.children && item.children.length > 0) {
|
|
555
|
+
initCompStyleByDefault(style, item.children);
|
|
556
|
+
}
|
|
557
|
+
});
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
const getValue = (...args) => {
|
|
561
|
+
for (const item of args) {
|
|
562
|
+
if (item === 0 || item) {
|
|
563
|
+
return item;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
return null;
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
const getFormItemOptions = () => {
|
|
570
|
+
const options = [];
|
|
571
|
+
tool.walkTree(rootNode.value, node => {
|
|
572
|
+
if (node.id && node.formItem === '1') {
|
|
573
|
+
options.push({ key: node.id, value: node.name });
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
return options;
|
|
577
|
+
};
|
|
578
|
+
|
|
579
|
+
const buildNameIndex = () => {
|
|
580
|
+
const regex = new RegExp('-\\d+$');
|
|
581
|
+
tool.walkTree(rootNode.value, node => {
|
|
582
|
+
if (node.name && node.name.match(regex)) {
|
|
583
|
+
const lastIndex = node.name.lastIndexOf('-');
|
|
584
|
+
const name = node.name.substring(0, lastIndex);
|
|
585
|
+
const maxIndex = parseInt(node.name.substring(lastIndex + 1));
|
|
586
|
+
if (!nameIndex.value[name] || nameIndex.value[name] < maxIndex) {
|
|
587
|
+
nameIndex.value[name] = maxIndex;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
const getNodeName = (name) => {
|
|
594
|
+
if (!name) return '组件-01';
|
|
595
|
+
|
|
596
|
+
if (name.endsWith('-')) {
|
|
597
|
+
name = name.substr(0, name.length - 1);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
if (!nameIndex.value[name]) {
|
|
601
|
+
buildNameIndex();
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
if (!nameIndex.value[name]) {
|
|
605
|
+
nameIndex.value[name] = 0;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
const index = ++nameIndex.value[name];
|
|
609
|
+
return name + '-' + (index < 10 ? '0' : '') + index;
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
const cleanProp = (data) => {
|
|
613
|
+
const clone = tool.deepClone(data);
|
|
614
|
+
const result = {};
|
|
615
|
+
for (const p in clone) {
|
|
616
|
+
if (p !== 'name' &&
|
|
617
|
+
p !== 'fieldName' &&
|
|
618
|
+
p !== 'fieldType' &&
|
|
619
|
+
p !== 'default' &&
|
|
620
|
+
p !== 'description' &&
|
|
621
|
+
p !== 'show') {
|
|
622
|
+
if (typeof clone[p] === 'function') {
|
|
623
|
+
result[p] = clone[p](currCompStyle.value);
|
|
624
|
+
} else if (p === 'options' && clone[p] === 'formItemOptions') {
|
|
625
|
+
result[p] = getFormItemOptions();
|
|
626
|
+
} else {
|
|
627
|
+
result[p] = clone[p];
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
return result;
|
|
632
|
+
};
|
|
633
|
+
|
|
634
|
+
const getFieldList = () => {
|
|
635
|
+
const fieldList = activatedNode.value.compData?.fieldList || [];
|
|
636
|
+
return fieldList.map(item => item.name).filter(item => item).join(',');
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
const tempNode = ref();
|
|
640
|
+
const cloneComponent = (comp) => {
|
|
641
|
+
tempNode.value = visual.createNode(getNodeName(comp.name), comp)
|
|
642
|
+
return tempNode.value;
|
|
643
|
+
};
|
|
644
|
+
|
|
645
|
+
const onDragEnd = (event) => {
|
|
646
|
+
if (event.from !== event.to && tempNode.value) {
|
|
647
|
+
emit('activeNode', tempNode.value);
|
|
648
|
+
tempNode.value = null;
|
|
649
|
+
}
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
const preview = () => {
|
|
653
|
+
emit('preview');
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
const save = () => {
|
|
657
|
+
emit('save');
|
|
658
|
+
};
|
|
659
|
+
|
|
660
|
+
const quit = () => {
|
|
661
|
+
emit('quit');
|
|
662
|
+
};
|
|
663
|
+
|
|
664
|
+
const init = async() => {
|
|
665
|
+
if (!activatedNode.value) return;
|
|
666
|
+
|
|
667
|
+
currStyleSeq.value = 1;
|
|
668
|
+
for (const style of (activatedNode.value.styleList || [])) {
|
|
669
|
+
const matches = style.name.match(/(\d+)$/);
|
|
670
|
+
const index = parseInt(matches ? matches[1] : '0');
|
|
671
|
+
if (index > currStyleSeq.value) {
|
|
672
|
+
currStyleSeq.value = index;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
currStyleId.value = activatedNode.value &&
|
|
677
|
+
activatedNode.value.styleList &&
|
|
678
|
+
activatedNode.value.styleList[0].id || '';
|
|
679
|
+
|
|
680
|
+
currStyle.value = initStyle(activatedNode.value &&
|
|
681
|
+
activatedNode.value.styleList &&
|
|
682
|
+
activatedNode.value.styleList[0].style || {});
|
|
683
|
+
activatedNode.value.currStyle = currStyle.value;
|
|
684
|
+
|
|
685
|
+
currCompStyle.value = await initCompStyle(activatedNode.value &&
|
|
686
|
+
activatedNode.value.styleList &&
|
|
687
|
+
activatedNode.value.styleList[0].compStyle || {});
|
|
688
|
+
activatedNode.value.currCompStyle = currCompStyle.value;
|
|
689
|
+
|
|
690
|
+
compNames.value = [];
|
|
691
|
+
collapseNames.value = [];
|
|
692
|
+
collapseCompNames.value = ['组件设置'];
|
|
693
|
+
|
|
694
|
+
commonStyle.forEach(item => collapseNames.value.push(item.name));
|
|
695
|
+
compList.value = components.filter(comp => !props.type || !comp.scene || comp.scene.includes(props.type));
|
|
696
|
+
compList.value.forEach(item => compNames.value.push(item.name));
|
|
697
|
+
(await getCompStyle() || []).forEach(item => collapseCompNames.value.push(item.name));
|
|
698
|
+
|
|
699
|
+
treeRef.value && treeRef.value.setCurrentKey(activatedNode.value.id);
|
|
700
|
+
};
|
|
701
|
+
|
|
702
|
+
const createCompStyle = (data, children) => {
|
|
703
|
+
(children || []).forEach(item => {
|
|
704
|
+
if (item.type && item.styleList) {
|
|
705
|
+
const styleList = tool.deepClone(item.styleList)
|
|
706
|
+
data[item.type] = styleList;
|
|
707
|
+
if (item.defaultStyle) {
|
|
708
|
+
tool.walkTree({ children: styleList }, style => {
|
|
709
|
+
if (style.fieldName && style.fieldName && item.defaultStyle[style.fieldName]) {
|
|
710
|
+
style.default = item.defaultStyle[style.fieldName];
|
|
711
|
+
}
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
createCompStyle(data, item.children);
|
|
716
|
+
});
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
const styleList = computed(() => {
|
|
720
|
+
const list = tool.deepClone(commonStyle);
|
|
721
|
+
list.forEach(item => {
|
|
722
|
+
if (item.children) {
|
|
723
|
+
item.children = item.children.filter(item => !item.show || item.show(currStyle.value));
|
|
724
|
+
}
|
|
725
|
+
});
|
|
726
|
+
return list;
|
|
727
|
+
});
|
|
728
|
+
|
|
729
|
+
const inputParamOptions = computed(() => {
|
|
730
|
+
const options = [];
|
|
731
|
+
(pageParamList.value || []).forEach(param => {
|
|
732
|
+
options.push({ key: param.id || '', value: '[全局参数].' + (param.name || '参数名') });
|
|
733
|
+
});
|
|
734
|
+
return options;
|
|
735
|
+
});
|
|
736
|
+
|
|
737
|
+
const getCompStyle = async() => {
|
|
738
|
+
if (activatedNode.value.type) {
|
|
739
|
+
if (!compConfigList.value[activatedNode.value.type]) {
|
|
740
|
+
const comp = tool.deepClone(await visualComp.getVisualComp(activatedNode.value.type));
|
|
741
|
+
compConfigList.value[activatedNode.value.type] = comp && comp.styleList || [];
|
|
742
|
+
}
|
|
743
|
+
return tool.deepClone(compConfigList.value[activatedNode.value.type]) || [];
|
|
744
|
+
} else {
|
|
745
|
+
return [];
|
|
746
|
+
}
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
const addTplToNode = (data) => {
|
|
750
|
+
if (activatedNode.value && activatedNode.value.children && data.json) {
|
|
751
|
+
activatedNode.value.children.push(createNodeFromTpl(JSON.parse(data.json)));
|
|
752
|
+
} else {
|
|
753
|
+
ElMessage.error('请选择要添加的容器!');
|
|
754
|
+
}
|
|
755
|
+
};
|
|
756
|
+
|
|
757
|
+
const saveTpl = (data) => {
|
|
758
|
+
api.post('/system/pageVisualTemplate/save', data).then(res => {
|
|
759
|
+
if (res.code === '1') {
|
|
760
|
+
data.edit = false;
|
|
761
|
+
ElMessage.success('修改模板名称成功!');
|
|
762
|
+
loadVisualTpl();
|
|
763
|
+
}
|
|
764
|
+
});
|
|
765
|
+
};
|
|
766
|
+
|
|
767
|
+
const deleteTpl = (data) => {
|
|
768
|
+
ElMessageBox.confirm('请确认是否删除?', '提示', { type: 'warning' }).then(async() => {
|
|
769
|
+
api.post('/system/pageVisualTemplate/delete', data).then(res => {
|
|
770
|
+
if (res.code === '1') {
|
|
771
|
+
ElMessage.success('删除模板成功!');
|
|
772
|
+
loadVisualTpl();
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
}).catch(() => {});
|
|
776
|
+
};
|
|
777
|
+
|
|
778
|
+
const createNodeFromTpl = (tpl) => {
|
|
779
|
+
resetId(tpl);
|
|
780
|
+
tool.walkTree(tpl, item => {
|
|
781
|
+
resetId(item);
|
|
782
|
+
});
|
|
783
|
+
return tpl;
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
const resetId = (node) => {
|
|
787
|
+
if (node.id) {
|
|
788
|
+
node.id = tool.uuids();
|
|
789
|
+
}
|
|
790
|
+
if (node.name) {
|
|
791
|
+
const lastIndex = node.name.lastIndexOf('-');
|
|
792
|
+
const name = node.name.substring(0, lastIndex);
|
|
793
|
+
node.name = getNodeName(name);
|
|
794
|
+
}
|
|
795
|
+
(node.styleList || []).forEach(style => {
|
|
796
|
+
style.id = tool.uuids();
|
|
797
|
+
});
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
const loadVisualTpl = () => {
|
|
801
|
+
api.post('/system/pageVisualTemplate/queryList', { type: '普通' }).then(res => {
|
|
802
|
+
tplList.value = res && res.data || [];
|
|
803
|
+
});
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
const eventChange = () => {
|
|
807
|
+
emit('change');
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
watch(() => activatedNode.value.id, () => {
|
|
811
|
+
init();
|
|
812
|
+
});
|
|
813
|
+
|
|
814
|
+
watch(() => currStyle.value, (style) => {
|
|
815
|
+
activatedNode.value.currStyle = style;
|
|
816
|
+
emit('change');
|
|
817
|
+
}, { deep: true });
|
|
818
|
+
|
|
819
|
+
const compStyleList = ref();
|
|
820
|
+
watch(() => currCompStyle.value, async(compStyle) => {
|
|
821
|
+
const list = tool.deepClone(await getCompStyle() || []).filter(item => item.name !== '移动端设置');
|
|
822
|
+
list.forEach(item => {
|
|
823
|
+
item.name = item.name === '电脑端设置' ? '组件设置' : item.name;
|
|
824
|
+
item.children = (item.children || []).filter(item => !item.show || item.show(compStyle));
|
|
825
|
+
});
|
|
826
|
+
compStyleList.value = list;
|
|
827
|
+
activatedNode.value.currCompStyle = compStyle;
|
|
828
|
+
emit('change');
|
|
829
|
+
}, { deep: true });
|
|
830
|
+
|
|
831
|
+
onMounted(() => {
|
|
832
|
+
initializing.value = true;
|
|
833
|
+
createCompStyle(compConfigList.value, components);
|
|
834
|
+
loadVisualTpl();
|
|
835
|
+
nextTick(() => initializing.value = false);
|
|
836
|
+
});
|
|
837
|
+
|
|
838
|
+
defineExpose({ loadVisualTpl });
|
|
839
|
+
</script>
|
|
840
|
+
|
|
841
|
+
<style scoped lang="scss">
|
|
842
|
+
.visual-tool {
|
|
843
|
+
height: 100%;
|
|
844
|
+
display: flex;
|
|
845
|
+
flex-direction: row;
|
|
846
|
+
.visual-panel {
|
|
847
|
+
height: 100%;
|
|
848
|
+
width: 1px;
|
|
849
|
+
flex-grow: 1;
|
|
850
|
+
display: flex;
|
|
851
|
+
flex-direction: column;
|
|
852
|
+
background: #555555;
|
|
853
|
+
.visual-panel-item {
|
|
854
|
+
height: 1px;
|
|
855
|
+
flex-grow: 1;
|
|
856
|
+
display: flex;
|
|
857
|
+
flex-direction: column;
|
|
858
|
+
overflow: auto;
|
|
859
|
+
:deep(.el-text) {
|
|
860
|
+
color: white;
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
:deep(.el-collapse) {
|
|
864
|
+
--el-collapse-border-color: unset!important;
|
|
865
|
+
--el-collapse-header-height: 35px;
|
|
866
|
+
--el-collapse-header-bg-color: #333!important;
|
|
867
|
+
--el-collapse-header-text-color: white;
|
|
868
|
+
--el-collapse-content-bg-color: #555555;
|
|
869
|
+
--el-collapse-content-text-color: white;
|
|
870
|
+
border-bottom: 1px solid #666666;
|
|
871
|
+
border-top: none!important;
|
|
872
|
+
.el-collapse-item {
|
|
873
|
+
border-bottom: 1px solid #444;
|
|
874
|
+
}
|
|
875
|
+
.el-collapse-item:last-child {
|
|
876
|
+
border-bottom: none;
|
|
877
|
+
}
|
|
878
|
+
.el-collapse-item__header {
|
|
879
|
+
text-indent: 20px;
|
|
880
|
+
}
|
|
881
|
+
.el-collapse-item__content {
|
|
882
|
+
padding-bottom: 0!important;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
:deep(.el-tree) {
|
|
886
|
+
padding: 8px;
|
|
887
|
+
background: #555555;
|
|
888
|
+
color: #dcdcdc;
|
|
889
|
+
width: 100%;
|
|
890
|
+
--el-tree-node-content-height: 26px;
|
|
891
|
+
--el-tree-node-hover-bg-color: #333;
|
|
892
|
+
--el-tree-text-color: #dcdcdc;
|
|
893
|
+
--el-tree-expand-icon-color: #dcdcdc;
|
|
894
|
+
}
|
|
895
|
+
:deep(.el-tree-node.is-current)>.el-tree-node__content {
|
|
896
|
+
background: #333!important;
|
|
897
|
+
}
|
|
898
|
+
:deep(.el-input) {
|
|
899
|
+
--el-input-text-color: #dcdcdc;
|
|
900
|
+
--el-input-border-color: none;
|
|
901
|
+
--el-input-bg-color: #333;
|
|
902
|
+
--el-input-hover-border-color: none;
|
|
903
|
+
--el-disabled-bg-color: #333;
|
|
904
|
+
--el-disabled-border-color: none;
|
|
905
|
+
--el-text-color-placeholder: #666666;
|
|
906
|
+
.el-input__inner, .el-textarea__inner, .el-checkbox, .el-checkbox__label {
|
|
907
|
+
color: #cccccc !important;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
:deep(.el-input).is-disabled {
|
|
911
|
+
--el-input-text-color: #dcdcdc;
|
|
912
|
+
--el-input-border-color: none;
|
|
913
|
+
--el-input-bg-color: #333;
|
|
914
|
+
--el-input-hover-border-color: none;
|
|
915
|
+
--el-disabled-bg-color: #333;
|
|
916
|
+
--el-disabled-border-color: none;
|
|
917
|
+
-webkit-text-fill-color: #cccccc;
|
|
918
|
+
.el-input__inner, .el-textarea__inner, .el-checkbox, .el-checkbox__label {
|
|
919
|
+
color: #cccccc !important;
|
|
920
|
+
-webkit-text-fill-color: #cccccc !important;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
:deep(.el-textarea) .el-textarea__inner {
|
|
924
|
+
background: #333!important;
|
|
925
|
+
box-shadow: none;
|
|
926
|
+
color: #dcdcdc!important;
|
|
927
|
+
}
|
|
928
|
+
:deep(.el-select) .el-input__inner {
|
|
929
|
+
border: none!important;
|
|
930
|
+
}
|
|
931
|
+
:deep(.el-select) {
|
|
932
|
+
.el-select__wrapper {
|
|
933
|
+
background: #333;
|
|
934
|
+
color: #dcdcdc!important;
|
|
935
|
+
box-shadow: none;
|
|
936
|
+
}
|
|
937
|
+
.el-input__inner {
|
|
938
|
+
border-color: #666;
|
|
939
|
+
}
|
|
940
|
+
.el-select__placeholder {
|
|
941
|
+
border: none!important;
|
|
942
|
+
color: #dcdcdc!important;
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
:deep(.el-checkbox) {
|
|
946
|
+
margin-right: 15px;
|
|
947
|
+
.el-checkbox__label {
|
|
948
|
+
color: #dcdcdc!important;
|
|
949
|
+
}
|
|
950
|
+
.el-checkbox__input .el-checkbox__inner {
|
|
951
|
+
background: rgb(180, 180, 180);
|
|
952
|
+
border-color: rgb(180, 180, 180);
|
|
953
|
+
}
|
|
954
|
+
.el-checkbox__input.is-checked .el-checkbox__inner {
|
|
955
|
+
background: #333;
|
|
956
|
+
border-color: #333;
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
:deep(.el-radio) {
|
|
960
|
+
margin-right: 15px;
|
|
961
|
+
.el-radio__label {
|
|
962
|
+
color: #dcdcdc!important;
|
|
963
|
+
}
|
|
964
|
+
.el-radio__input .el-radio__inner {
|
|
965
|
+
background: rgb(180, 180, 180);
|
|
966
|
+
border-color: rgb(180, 180, 180);
|
|
967
|
+
}
|
|
968
|
+
.el-radio__input.is-checked .el-radio__inner {
|
|
969
|
+
background: #333;
|
|
970
|
+
border-color: #333;
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
:deep(.icon-select) {
|
|
974
|
+
border-color: #333;
|
|
975
|
+
background: #333;
|
|
976
|
+
color: #dcdcdc;
|
|
977
|
+
}
|
|
978
|
+
:deep(.el-switch) .el-switch__core {
|
|
979
|
+
background: #b4b4b4;
|
|
980
|
+
border-color: #b4b4b4;
|
|
981
|
+
}
|
|
982
|
+
:deep(.el-switch).is-checked .el-switch__core {
|
|
983
|
+
background: #333;
|
|
984
|
+
border-color: #333;
|
|
985
|
+
}
|
|
986
|
+
:deep(.el-input-number--small .el-input__wrapper) {
|
|
987
|
+
padding-left: 5px!important;
|
|
988
|
+
}
|
|
989
|
+
:deep(.el-collapse-item__header) {
|
|
990
|
+
box-sizing: border-box;
|
|
991
|
+
}
|
|
992
|
+
.status-group {
|
|
993
|
+
flex-shrink: 0;
|
|
994
|
+
height: 35px;
|
|
995
|
+
text-indent: 20px;
|
|
996
|
+
background: #333333;
|
|
997
|
+
color: white;
|
|
998
|
+
display: flex;
|
|
999
|
+
flex-direction: row;
|
|
1000
|
+
align-items: center;
|
|
1001
|
+
border-bottom: 1px solid #444;
|
|
1002
|
+
.label {
|
|
1003
|
+
flex-shrink: 0;
|
|
1004
|
+
display: flex;
|
|
1005
|
+
flex-direction: row;
|
|
1006
|
+
align-items: center;
|
|
1007
|
+
}
|
|
1008
|
+
.button {
|
|
1009
|
+
flex-grow: 1;
|
|
1010
|
+
display: flex;
|
|
1011
|
+
flex-direction: row;
|
|
1012
|
+
align-items: center;
|
|
1013
|
+
justify-content: end;
|
|
1014
|
+
margin-right: 8px;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
.status-box {
|
|
1018
|
+
padding: 2px 4px;
|
|
1019
|
+
}
|
|
1020
|
+
.status-item {
|
|
1021
|
+
color: white;
|
|
1022
|
+
display: flex;
|
|
1023
|
+
flex-direction: row;
|
|
1024
|
+
align-items: center;
|
|
1025
|
+
padding: 2px 4px;
|
|
1026
|
+
|
|
1027
|
+
.label {
|
|
1028
|
+
flex-shrink: 0;
|
|
1029
|
+
text-align: right;
|
|
1030
|
+
display: flex;
|
|
1031
|
+
flex-direction: row;
|
|
1032
|
+
align-items: center;
|
|
1033
|
+
color: #dcdcdc;
|
|
1034
|
+
}
|
|
1035
|
+
.content {
|
|
1036
|
+
flex-grow: 1;
|
|
1037
|
+
margin-left: 8px;
|
|
1038
|
+
display: flex;
|
|
1039
|
+
flex-direction: row;
|
|
1040
|
+
align-items: center;
|
|
1041
|
+
font-size: 13px;
|
|
1042
|
+
:deep(.el-input) {
|
|
1043
|
+
.el-input__inner {
|
|
1044
|
+
color: #dcdcdc!important;
|
|
1045
|
+
font-size: 12px;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
.button {
|
|
1050
|
+
display: flex;
|
|
1051
|
+
flex-direction: row;
|
|
1052
|
+
align-items: center;
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
.style-box {
|
|
1056
|
+
flex-grow: 1;
|
|
1057
|
+
overflow: auto;
|
|
1058
|
+
:deep(.el-collapse-item__wrap) {
|
|
1059
|
+
padding: 2px 0;
|
|
1060
|
+
background: #555555!important;
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
.style-item {
|
|
1064
|
+
color: white;
|
|
1065
|
+
display: flex;
|
|
1066
|
+
flex-direction: row;
|
|
1067
|
+
padding: 2px 3px;
|
|
1068
|
+
.label {
|
|
1069
|
+
width: 92px;
|
|
1070
|
+
height: 24px;
|
|
1071
|
+
flex-shrink: 0;
|
|
1072
|
+
color: #dcdcdc;
|
|
1073
|
+
display: flex;
|
|
1074
|
+
flex-direction: row;
|
|
1075
|
+
align-items: center;
|
|
1076
|
+
justify-content: flex-end;
|
|
1077
|
+
font-size: 13px;
|
|
1078
|
+
:deep(.label-name) {
|
|
1079
|
+
width: 90px;
|
|
1080
|
+
white-space: nowrap;
|
|
1081
|
+
overflow: hidden;
|
|
1082
|
+
text-overflow: ellipsis;
|
|
1083
|
+
text-align: right;
|
|
1084
|
+
display: block;
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
.content {
|
|
1088
|
+
flex-grow: 1;
|
|
1089
|
+
display: flex;
|
|
1090
|
+
flex-direction: row;
|
|
1091
|
+
align-items: center;
|
|
1092
|
+
}
|
|
1093
|
+
:deep(.el-radio-button) {
|
|
1094
|
+
--el-radio-button-checked-bg-color: #555;
|
|
1095
|
+
--el-radio-button-checked-text-color: #dcdcdc;
|
|
1096
|
+
--el-radio-button-checked-border-color: #333;
|
|
1097
|
+
--el-radio-button-disabled-checked-fill: #333;
|
|
1098
|
+
}
|
|
1099
|
+
:deep(.el-radio-button) .el-radio-button__inner {
|
|
1100
|
+
color: #dcdcdc;
|
|
1101
|
+
background: #555555;
|
|
1102
|
+
border-right: 1px solid #333;
|
|
1103
|
+
border-top: 1px solid #333;
|
|
1104
|
+
border-bottom: 1px solid #333;
|
|
1105
|
+
padding: 5px 6px;
|
|
1106
|
+
}
|
|
1107
|
+
:deep(.el-radio-button:first-child) .el-radio-button__inner {
|
|
1108
|
+
border-left: 1px solid #333;
|
|
1109
|
+
}
|
|
1110
|
+
:deep(.el-radio-button).is-active .el-radio-button__inner {
|
|
1111
|
+
background: #333!important;
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
.component-group {
|
|
1115
|
+
margin: 10px 0;
|
|
1116
|
+
height: 1px;
|
|
1117
|
+
flex-grow: 1;
|
|
1118
|
+
overflow-y: scroll;
|
|
1119
|
+
:deep(.el-collapse-item__content) {
|
|
1120
|
+
margin-bottom: 0!important;
|
|
1121
|
+
padding-bottom: 10px!important;
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
.component-group-item {
|
|
1125
|
+
display: flex;
|
|
1126
|
+
flex-direction: column;
|
|
1127
|
+
}
|
|
1128
|
+
.component-box {
|
|
1129
|
+
display: grid;
|
|
1130
|
+
grid-template-columns: repeat(auto-fill, 145px);
|
|
1131
|
+
grid-gap: 5px 8px;
|
|
1132
|
+
justify-content: center;
|
|
1133
|
+
align-items: center;
|
|
1134
|
+
overflow-y: auto;
|
|
1135
|
+
padding: 5px 0;
|
|
1136
|
+
.component-item {
|
|
1137
|
+
background: rgb(66, 66, 66);
|
|
1138
|
+
padding: 0 12px;
|
|
1139
|
+
height: 32px;
|
|
1140
|
+
line-height: 32px;
|
|
1141
|
+
width: 120px;
|
|
1142
|
+
border: 1px solid #333;
|
|
1143
|
+
border-radius: 5px;
|
|
1144
|
+
color: #dcdcdc;
|
|
1145
|
+
overflow: hidden;
|
|
1146
|
+
text-overflow: ellipsis;
|
|
1147
|
+
white-space: nowrap;
|
|
1148
|
+
}
|
|
1149
|
+
.component-item:hover {
|
|
1150
|
+
cursor: move;
|
|
1151
|
+
border: 1px dashed #ccc;
|
|
1152
|
+
background: rgb(51,51,51);
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
.visual-menu {
|
|
1157
|
+
padding: 10px 0;
|
|
1158
|
+
width: 50px;
|
|
1159
|
+
flex-shrink: 0;
|
|
1160
|
+
display: flex;
|
|
1161
|
+
flex-direction: column;
|
|
1162
|
+
align-items: center;
|
|
1163
|
+
background: rgb(66, 66, 66);
|
|
1164
|
+
.menu-item {
|
|
1165
|
+
padding: 5px;
|
|
1166
|
+
display: flex;
|
|
1167
|
+
flex-direction: column;
|
|
1168
|
+
justify-content: center;
|
|
1169
|
+
align-items: center;
|
|
1170
|
+
cursor: pointer;
|
|
1171
|
+
margin-bottom: 10px;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
.menu-item.is-active {
|
|
1175
|
+
border-radius: 5px;
|
|
1176
|
+
background: rgb(121, 121, 121);
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
.menu-item:hover {
|
|
1180
|
+
border-radius: 5px;
|
|
1181
|
+
background: rgb(121, 121, 121);
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
:deep(.dark-drawer-box) {
|
|
1185
|
+
background: #555555;
|
|
1186
|
+
.el-drawer__body {
|
|
1187
|
+
padding: 0;
|
|
1188
|
+
background: rgb(85, 85, 85)!important;
|
|
1189
|
+
}
|
|
1190
|
+
.el-drawer__footer {
|
|
1191
|
+
border-top: 1px solid rgb(51, 51, 51)!important;
|
|
1192
|
+
padding: 8px;
|
|
1193
|
+
background: rgb(85, 85, 85)!important;
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
.tpl-box {
|
|
1197
|
+
padding: 8px;
|
|
1198
|
+
.tpl-item {
|
|
1199
|
+
display: flex;
|
|
1200
|
+
flex-direction: row;
|
|
1201
|
+
align-items: center;
|
|
1202
|
+
margin-bottom: 8px;
|
|
1203
|
+
.tpl-item-name {
|
|
1204
|
+
width: 1px;
|
|
1205
|
+
flex-grow: 1;
|
|
1206
|
+
&.border {
|
|
1207
|
+
height: 30px;
|
|
1208
|
+
border: 1px solid #050505;
|
|
1209
|
+
border-radius: 5px;
|
|
1210
|
+
display: flex;
|
|
1211
|
+
flex-direction: row;
|
|
1212
|
+
align-items: center;
|
|
1213
|
+
color: #c0c0c0;
|
|
1214
|
+
text-indent: 10px;
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
.tpl-item-add, .tpl-item-delete {
|
|
1218
|
+
margin-left: 5px;
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
</style>
|