ibsp-fg-page 4.0.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/.babelrc +5 -0
- package/.cz-config.cjs +60 -0
- package/.vite/deps_temp_029120a0/package.json +3 -0
- package/.vscode/extensions.json +3 -0
- package/.zed/settings.json +14 -0
- package/README.md +1 -0
- package/config/.env.dev +21 -0
- package/config/.env.fat +21 -0
- package/config/.env.pro +21 -0
- package/config/.env.sit +21 -0
- package/config/.env.template +1 -0
- package/config/.env.test +21 -0
- package/config/.env.uat +21 -0
- package/config/.env.zsdev +21 -0
- package/config/.env.zspro +21 -0
- package/env.d.ts +6 -0
- package/eslint.config.js +202 -0
- package/index.html +84 -0
- package/jsconfig.json +43 -0
- package/package.json +85 -0
- package/packages/README.md +1 -0
- package/packages/config.d.ts +97 -0
- package/packages/index.d.ts +49 -0
- package/packages/index.js +16 -0
- package/packages/package.json +87 -0
- package/public/1.json +1612 -0
- package/public/assets/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.de.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.es.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.fr.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.it.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.ja.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.ko.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.ru.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.zh-cn.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.zh-tw.js +8 -0
- package/public/assets/vs/base/worker/workerMain.js +30 -0
- package/public/assets/vs/basic-languages/abap/abap.js +10 -0
- package/public/assets/vs/basic-languages/apex/apex.js +10 -0
- package/public/assets/vs/basic-languages/azcli/azcli.js +10 -0
- package/public/assets/vs/basic-languages/bat/bat.js +10 -0
- package/public/assets/vs/basic-languages/bicep/bicep.js +11 -0
- package/public/assets/vs/basic-languages/cameligo/cameligo.js +10 -0
- package/public/assets/vs/basic-languages/clojure/clojure.js +10 -0
- package/public/assets/vs/basic-languages/coffee/coffee.js +10 -0
- package/public/assets/vs/basic-languages/cpp/cpp.js +10 -0
- package/public/assets/vs/basic-languages/csharp/csharp.js +10 -0
- package/public/assets/vs/basic-languages/csp/csp.js +10 -0
- package/public/assets/vs/basic-languages/css/css.js +12 -0
- package/public/assets/vs/basic-languages/cypher/cypher.js +10 -0
- package/public/assets/vs/basic-languages/dart/dart.js +10 -0
- package/public/assets/vs/basic-languages/dockerfile/dockerfile.js +10 -0
- package/public/assets/vs/basic-languages/ecl/ecl.js +10 -0
- package/public/assets/vs/basic-languages/elixir/elixir.js +10 -0
- package/public/assets/vs/basic-languages/flow9/flow9.js +10 -0
- package/public/assets/vs/basic-languages/freemarker2/freemarker2.js +12 -0
- package/public/assets/vs/basic-languages/fsharp/fsharp.js +10 -0
- package/public/assets/vs/basic-languages/go/go.js +10 -0
- package/public/assets/vs/basic-languages/graphql/graphql.js +10 -0
- package/public/assets/vs/basic-languages/handlebars/handlebars.js +10 -0
- package/public/assets/vs/basic-languages/hcl/hcl.js +10 -0
- package/public/assets/vs/basic-languages/html/html.js +10 -0
- package/public/assets/vs/basic-languages/ini/ini.js +10 -0
- package/public/assets/vs/basic-languages/java/java.js +10 -0
- package/public/assets/vs/basic-languages/javascript/javascript.js +10 -0
- package/public/assets/vs/basic-languages/julia/julia.js +10 -0
- package/public/assets/vs/basic-languages/kotlin/kotlin.js +10 -0
- package/public/assets/vs/basic-languages/less/less.js +11 -0
- package/public/assets/vs/basic-languages/lexon/lexon.js +10 -0
- package/public/assets/vs/basic-languages/liquid/liquid.js +10 -0
- package/public/assets/vs/basic-languages/lua/lua.js +10 -0
- package/public/assets/vs/basic-languages/m3/m3.js +10 -0
- package/public/assets/vs/basic-languages/markdown/markdown.js +10 -0
- package/public/assets/vs/basic-languages/mdx/mdx.js +10 -0
- package/public/assets/vs/basic-languages/mips/mips.js +10 -0
- package/public/assets/vs/basic-languages/msdax/msdax.js +10 -0
- package/public/assets/vs/basic-languages/mysql/mysql.js +10 -0
- package/public/assets/vs/basic-languages/objective-c/objective-c.js +10 -0
- package/public/assets/vs/basic-languages/pascal/pascal.js +10 -0
- package/public/assets/vs/basic-languages/pascaligo/pascaligo.js +10 -0
- package/public/assets/vs/basic-languages/perl/perl.js +10 -0
- package/public/assets/vs/basic-languages/pgsql/pgsql.js +10 -0
- package/public/assets/vs/basic-languages/php/php.js +10 -0
- package/public/assets/vs/basic-languages/pla/pla.js +10 -0
- package/public/assets/vs/basic-languages/postiats/postiats.js +10 -0
- package/public/assets/vs/basic-languages/powerquery/powerquery.js +10 -0
- package/public/assets/vs/basic-languages/powershell/powershell.js +10 -0
- package/public/assets/vs/basic-languages/protobuf/protobuf.js +11 -0
- package/public/assets/vs/basic-languages/pug/pug.js +10 -0
- package/public/assets/vs/basic-languages/python/python.js +10 -0
- package/public/assets/vs/basic-languages/qsharp/qsharp.js +10 -0
- package/public/assets/vs/basic-languages/r/r.js +10 -0
- package/public/assets/vs/basic-languages/razor/razor.js +10 -0
- package/public/assets/vs/basic-languages/redis/redis.js +10 -0
- package/public/assets/vs/basic-languages/redshift/redshift.js +10 -0
- package/public/assets/vs/basic-languages/restructuredtext/restructuredtext.js +10 -0
- package/public/assets/vs/basic-languages/ruby/ruby.js +10 -0
- package/public/assets/vs/basic-languages/rust/rust.js +10 -0
- package/public/assets/vs/basic-languages/sb/sb.js +10 -0
- package/public/assets/vs/basic-languages/scala/scala.js +10 -0
- package/public/assets/vs/basic-languages/scheme/scheme.js +10 -0
- package/public/assets/vs/basic-languages/scss/scss.js +12 -0
- package/public/assets/vs/basic-languages/shell/shell.js +10 -0
- package/public/assets/vs/basic-languages/solidity/solidity.js +10 -0
- package/public/assets/vs/basic-languages/sophia/sophia.js +10 -0
- package/public/assets/vs/basic-languages/sparql/sparql.js +10 -0
- package/public/assets/vs/basic-languages/sql/sql.js +10 -0
- package/public/assets/vs/basic-languages/st/st.js +10 -0
- package/public/assets/vs/basic-languages/swift/swift.js +13 -0
- package/public/assets/vs/basic-languages/systemverilog/systemverilog.js +10 -0
- package/public/assets/vs/basic-languages/tcl/tcl.js +10 -0
- package/public/assets/vs/basic-languages/twig/twig.js +10 -0
- package/public/assets/vs/basic-languages/typescript/typescript.js +10 -0
- package/public/assets/vs/basic-languages/typespec/typespec.js +10 -0
- package/public/assets/vs/basic-languages/vb/vb.js +10 -0
- package/public/assets/vs/basic-languages/wgsl/wgsl.js +307 -0
- package/public/assets/vs/basic-languages/xml/xml.js +10 -0
- package/public/assets/vs/basic-languages/yaml/yaml.js +10 -0
- package/public/assets/vs/editor/editor.main.css +8 -0
- package/public/assets/vs/editor/editor.main.js +768 -0
- package/public/assets/vs/editor/editor.main.nls.de.js +17 -0
- package/public/assets/vs/editor/editor.main.nls.es.js +17 -0
- package/public/assets/vs/editor/editor.main.nls.fr.js +15 -0
- package/public/assets/vs/editor/editor.main.nls.it.js +15 -0
- package/public/assets/vs/editor/editor.main.nls.ja.js +17 -0
- package/public/assets/vs/editor/editor.main.nls.js +15 -0
- package/public/assets/vs/editor/editor.main.nls.ko.js +15 -0
- package/public/assets/vs/editor/editor.main.nls.ru.js +17 -0
- package/public/assets/vs/editor/editor.main.nls.zh-cn.js +17 -0
- package/public/assets/vs/editor/editor.main.nls.zh-tw.js +15 -0
- package/public/assets/vs/language/css/cssMode.js +13 -0
- package/public/assets/vs/language/css/cssWorker.js +77 -0
- package/public/assets/vs/language/html/htmlMode.js +13 -0
- package/public/assets/vs/language/html/htmlWorker.js +454 -0
- package/public/assets/vs/language/json/jsonMode.js +19 -0
- package/public/assets/vs/language/json/jsonWorker.js +42 -0
- package/public/assets/vs/language/typescript/tsMode.js +20 -0
- package/public/assets/vs/language/typescript/tsWorker.js +51328 -0
- package/public/assets/vs/loader.js +11 -0
- package/public/data-model-item.json +33 -0
- package/public/data-model.json +402 -0
- package/public/favicon.ico +0 -0
- package/public/form-data.json +78 -0
- package/public/form-json-schema.ts +33 -0
- package/public/form-json.schema.json +79 -0
- package/public/image/logo.png +0 -0
- package/public/loading.png +0 -0
- package/public/logo.svg +3 -0
- package/scripts/autoImportServiceTypes.js +40 -0
- package/src/App.vue +29 -0
- package/src/api/ibsp-bg-app.js +489 -0
- package/src/api/ibsp-bg-auth.js +24 -0
- package/src/api/ibsp-bg-counter.js +25 -0
- package/src/api/ibsp-bg-dataview.js +124 -0
- package/src/api/ibsp-bg-form.js +167 -0
- package/src/api/ibsp-bg-oss.js +33 -0
- package/src/api/ibsp-bg-page.js +158 -0
- package/src/api/ibsp-bg-problem.js +13 -0
- package/src/api/ibsp-bg-resource.js +30 -0
- package/src/api/ibsp-bg-sif.js +24 -0
- package/src/api/ibsp-bg-user.js +59 -0
- package/src/assets/font/pinia.ttf +0 -0
- package/src/assets/img/bg2.jpeg +0 -0
- package/src/assets/img/bg3.jpeg +0 -0
- package/src/assets/img/haederBg.png +0 -0
- package/src/assets/img/haederName.png +0 -0
- package/src/assets/img/login-bg.jpg +0 -0
- package/src/assets/img/logo.png +0 -0
- package/src/assets/img/logo.svg +1 -0
- package/src/assets/img/newLogo.png +0 -0
- package/src/assets/img/project.jpg +0 -0
- package/src/assets/img/wenjian1.png +0 -0
- package/src/assets/img/wenjian2.png +0 -0
- package/src/assets/img/wenjianjia.png +0 -0
- package/src/assets/img//345/272/225/351/203/250.png +0 -0
- package/src/assets/img//351/227/201/347/250/277/347/271/210/351/215/224/346/210/246/345/264/225/347/200/265/351/225/220/346/262/252/351/226/272/345/233/251/345/201/237/347/272/276/347/261/2032x.png +0 -0
- package/src/assets/img//351/227/201/347/250/277/347/271/210/351/215/224/346/210/246/345/264/225/351/216/276/356/206/274/347/273/251/351/226/270/346/222/262/350/203/266/347/273/261/346/254/2572x.png +0 -0
- package/src/assets/video//347/231/273/345/275/225/350/203/214/346/231/257.mp4 +0 -0
- package/src/bootstrap.ts +26 -0
- package/src/components/common/CascaderContextMenu.vue +82 -0
- package/src/components/common/ContextMenuPlus.vue +103 -0
- package/src/components/common/DragNavMenu.vue +248 -0
- package/src/components/common/NavMenu.vue +203 -0
- package/src/components/common/NavMenuId.vue +140 -0
- package/src/components/common/PageDrawerPopup.vue +329 -0
- package/src/components/common/PageMenuDrag.vue +245 -0
- package/src/components/common/SelectAllIcon.vue +202 -0
- package/src/components/globals/ColorPicker.vue +261 -0
- package/src/components/globals/ContextMenu.vue +143 -0
- package/src/components/globals/FormContainer.vue +122 -0
- package/src/components/globals/IbspIcon.vue +21 -0
- package/src/components/globals/LoginDialog.vue +365 -0
- package/src/components/globals/Message.vue +10 -0
- package/src/components/globals/SvgIcon.vue +122 -0
- package/src/components/ibsp/Cascader.vue +40 -0
- package/src/components/ibsp/FromPage.vue +118 -0
- package/src/components/ibsp/IbspAddTag.vue +143 -0
- package/src/components/ibsp/IbspButton.vue +27 -0
- package/src/components/ibsp/IbspColorPicker.vue +252 -0
- package/src/components/ibsp/IbspColorSelect.vue +14 -0
- package/src/components/ibsp/IbspContextmenu.vue +176 -0
- package/src/components/ibsp/IbspDialog.vue +52 -0
- package/src/components/ibsp/IbspDrawer.vue +44 -0
- package/src/components/ibsp/IbspInput.vue +29 -0
- package/src/components/ibsp/IbspMonacoCode.vue +213 -0
- package/src/components/ibsp/IbspSearchInput.vue +48 -0
- package/src/components/ibsp/IbspSelect.vue +101 -0
- package/src/components/ibsp/IbspSlotEvent.ts +64 -0
- package/src/components/ibsp/IbspTextInput.vue +41 -0
- package/src/components/ibsp/IbspTree.vue +265 -0
- package/src/components/ibsp/IbspTree2.vue +118 -0
- package/src/components/nextui/BoxSelection/hooks/useBoxSelection.ts +165 -0
- package/src/components/nextui/BoxSelection/index.ts +11 -0
- package/src/components/nextui/BoxSelection/index.vue +40 -0
- package/src/components/nextui/BoxSelection/types.ts +50 -0
- package/src/components/nextui/BoxSelection/utils.ts +35 -0
- package/src/components/nextui/Contextmenu/index.ts +230 -0
- package/src/components/nextui/Contextmenu/menu.vue +256 -0
- package/src/components/nextui/DragNode/hooks/useDrag.ts +222 -0
- package/src/components/nextui/DragNode/hooks/useRefLine.ts +878 -0
- package/src/components/nextui/DragNode/hooks/useResize.ts +182 -0
- package/src/components/nextui/DragNode/hooks/useStyle.ts +31 -0
- package/src/components/nextui/DragNode/index.ts +11 -0
- package/src/components/nextui/DragNode/index.vue +140 -0
- package/src/components/nextui/DragNode/types.ts +158 -0
- package/src/components/nextui/DragNode/util.ts +135 -0
- package/src/components/nextui/SketchRule/SketchRule.vue +176 -0
- package/src/components/nextui/SketchRule/components/RulerCanvas.vue +167 -0
- package/src/components/nextui/SketchRule/components/RulerLine.vue +150 -0
- package/src/components/nextui/SketchRule/hooks/useCanvas.ts +232 -0
- package/src/components/nextui/SketchRule/hooks/useRuler.ts +229 -0
- package/src/components/nextui/SketchRule/index.ts +10 -0
- package/src/components/nextui/SketchRule/props.ts +62 -0
- package/src/components/nextui/_utils/index.ts +2 -0
- package/src/components/nextui/_utils/tools.ts +12 -0
- package/src/components/nextui/_utils/vue/install.ts +11 -0
- package/src/components/nextui/button/Button.vue +78 -0
- package/src/components/nextui/button/index.ts +8 -0
- package/src/components/nextui/drag-grid/index.ts +1 -0
- package/src/components/nextui/drag-grid/src/hooks/useDragGrid.ts +219 -0
- package/src/components/nextui/drag-grid/src/hooks/useGridSize.ts +3 -0
- package/src/components/nextui/drag-grid/src/index.vue +213 -0
- package/src/components/nextui/drag-grid/src/props.ts +3 -0
- package/src/components/nextui/index.ts +11 -0
- package/src/components/nextui/modal/index.ts +8 -0
- package/src/components/nextui/modal/index.vue +336 -0
- package/src/components/nextui/monacoCode/MonacoCode.vue +71 -0
- package/src/components/nextui/monacoCode/config.ts +51 -0
- package/src/components/nextui/monacoCode/index.ts +1 -0
- package/src/components/nextui/monacoCode/monacoCode.ts +31 -0
- package/src/components/nextui/monacoCode/useMonacoCode.ts +116 -0
- package/src/components/nextui/nextIcon/Icon.vue +50 -0
- package/src/components/nextui/nextIcon/index.ts +7 -0
- package/src/components/nextui/tabs/Tabs.vue +170 -0
- package/src/components/nextui/tabs/index.ts +8 -0
- package/src/components/nextui/verticalMenu/VerticalMenu.vue +100 -0
- package/src/components/nextui/verticalMenu/index.ts +8 -0
- package/src/components/production/ibsp-icon/index.vue +52 -0
- package/src/components/production/index.ts +1 -0
- package/src/directives/index.js +21 -0
- package/src/directives/modules/v-drag.js +177 -0
- package/src/directives/modules/v-resize.js +277 -0
- package/src/hooks/useApp.ts +4 -0
- package/src/hooks/useClipboard.ts +56 -0
- package/src/hooks/useEnv.ts +13 -0
- package/src/hooks/useForm.ts +8 -0
- package/src/hooks/useKeyboard.ts +188 -0
- package/src/hooks/usePage.ts +11 -0
- package/src/icons/iconFont/antd/demo.css +539 -0
- package/src/icons/iconFont/antd/demo_index.html +13965 -0
- package/src/icons/iconFont/antd/iconfont.css +2411 -0
- package/src/icons/iconFont/antd/iconfont.js +27 -0
- package/src/icons/iconFont/antd/iconfont.json +4202 -0
- package/src/icons/iconFont/antd/iconfont.ttf +0 -0
- package/src/icons/iconFont/antd/iconfont.woff +0 -0
- package/src/icons/iconFont/antd/iconfont.woff2 +0 -0
- package/src/icons/iconFont/import.css +1 -0
- package/src/icons/iconFont/index.js +10 -0
- package/src/icons/svg/default_file.svg +1 -0
- package/src/icons/svg/default_folder.svg +1 -0
- package/src/icons/svg/default_folder_opened.svg +1 -0
- package/src/icons/svg/file_type_css.svg +1 -0
- package/src/icons/svg/file_type_js.svg +1 -0
- package/src/icons/svg/file_type_json.svg +1 -0
- package/src/icons/svg/file_type_vue.svg +1 -0
- package/src/icons/svg/if.svg +1 -0
- package/src/icons/svg/logo.svg +14 -0
- package/src/icons/svg/softLogo.svg +42 -0
- package/src/icons/svg//344/270/212/346/217/222/345/205/245/350/241/214.svg +7 -0
- package/src/icons/svg//344/270/212/346/254/241.svg +1 -0
- package/src/icons/svg//344/270/212/347/247/273.svg +4 -0
- package/src/icons/svg//344/270/213/346/213/211/351/200/211/346/213/251.svg +3 -0
- package/src/icons/svg//344/270/213/346/217/222/345/205/245/350/241/214.svg +7 -0
- package/src/icons/svg//344/270/213/347/247/273.svg +4 -0
- package/src/icons/svg//344/270/273/350/246/201/346/214/211/351/222/256.svg +3 -0
- package/src/icons/svg//344/272/244/344/272/222/351/205/215/347/275/256.svg +1 -0
- package/src/icons/svg//344/277/235/345/255/230.svg +16 -0
- package/src/icons/svg//344/277/235/345/255/2302.svg +1 -0
- package/src/icons/svg//344/277/241/346/201/257/346/214/211/351/222/256.svg +3 -0
- package/src/icons/svg//345/201/234/346/234/272/345/205/254/345/221/212.svg +5 -0
- package/src/icons/svg//345/205/263/344/272/216/346/210/221/344/273/254.svg +5 -0
- package/src/icons/svg//345/205/266/344/273/226.svg +3 -0
- package/src/icons/svg//345/206/205/350/201/224/346/241/206/346/236/266.svg +6 -0
- package/src/icons/svg//345/210/206/346/224/257.svg +1 -0
- package/src/icons/svg//345/210/207/346/215/242.svg +1 -0
- package/src/icons/svg//345/210/240/351/231/244.svg +1 -0
- package/src/icons/svg//345/210/240/351/231/244/345/270/203/345/261/200.svg +1 -0
- package/src/icons/svg//345/210/240/351/231/244/345/275/223/345/211/215/345/210/227.svg +7 -0
- package/src/icons/svg//345/210/240/351/231/244/345/275/223/345/211/215/350/241/214.svg +7 -0
- package/src/icons/svg//345/211/252/345/210/207.svg +1 -0
- package/src/icons/svg//345/215/225/350/241/214/350/276/223/345/205/245.svg +3 -0
- package/src/icons/svg//345/215/225/351/200/211.svg +4 -0
- package/src/icons/svg//345/215/241/347/211/207/345/256/271/345/231/250.svg +7 -0
- package/src/icons/svg//345/215/241/347/211/207/345/270/203/345/261/200.svg +3 -0
- package/src/icons/svg//345/215/261/351/231/251/346/214/211/351/222/256.svg +3 -0
- package/src/icons/svg//345/216/206/345/217/262/346/223/215/344/275/234.svg +1 -0
- package/src/icons/svg//345/217/226/346/266/210/347/273/204/345/220/210.svg +3 -0
- package/src/icons/svg//345/217/260/350/264/246/344/277/241/346/201/257.svg +1 -0
- package/src/icons/svg//345/217/263/346/217/222/345/205/245/345/210/227.svg +7 -0
- package/src/icons/svg//345/220/221/344/270/213/345/220/210/345/271/266.svg +6 -0
- package/src/icons/svg//345/220/221/345/217/263/345/220/210/345/271/266.svg +6 -0
- package/src/icons/svg//345/233/276/345/261/202.svg +1 -0
- package/src/icons/svg//345/233/276/347/211/207.svg +3 -0
- package/src/icons/svg//345/233/276/350/241/250.svg +3 -0
- package/src/icons/svg//345/237/272/347/241/200.svg +7 -0
- package/src/icons/svg//345/244/215/345/210/266.svg +1 -0
- package/src/icons/svg//345/244/215/351/200/211.svg +3 -0
- package/src/icons/svg//345/244/232/350/241/214/350/276/223/345/205/245.svg +5 -0
- package/src/icons/svg//345/244/247/347/272/262.svg +1 -0
- package/src/icons/svg//345/255/220/350/241/250/345/215/225.svg +13 -0
- package/src/icons/svg//345/256/253/346/240/274/345/270/203/345/261/200.svg +9 -0
- package/src/icons/svg//345/256/271/345/231/250.svg +3 -0
- package/src/icons/svg//345/257/206/347/240/201.svg +3 -0
- package/src/icons/svg//345/257/274/350/210/252/346/241/206/346/236/266.svg +9 -0
- package/src/icons/svg//345/261/236/346/200/247.svg +1 -0
- package/src/icons/svg//345/267/246/346/217/222/345/205/245/345/210/227.svg +7 -0
- package/src/icons/svg//345/270/203/345/261/200.svg +5 -0
- package/src/icons/svg//345/271/263/345/217/260/347/272/247.svg +1 -0
- package/src/icons/svg//345/272/224/347/224/250.svg +1 -0
- package/src/icons/svg//345/272/224/347/224/250/347/272/247.svg +12 -0
- package/src/icons/svg//345/272/225/351/203/250.png +0 -0
- package/src/icons/svg//345/274/200/345/205/263.svg +3 -0
- package/src/icons/svg//345/274/200/345/217/221/344/270/255.svg +133 -0
- package/src/icons/svg//345/274/271/346/200/247/345/270/203/345/261/200.svg +6 -0
- package/src/icons/svg//345/274/271/347/252/227.svg +3 -0
- package/src/icons/svg//346/210/220/345/212/237/346/214/211/351/222/256.svg +3 -0
- package/src/icons/svg//346/211/223/347/240/201/351/230/237/345/210/227.svg +14 -0
- package/src/icons/svg//346/212/230/345/217/240/351/235/242/346/235/277.svg +3 -0
- package/src/icons/svg//346/213/206/345/210/206/346/210/220/345/210/227.svg +8 -0
- package/src/icons/svg//346/213/206/345/210/206/346/210/220/350/241/214.svg +8 -0
- package/src/icons/svg//346/216/247/345/210/266/345/217/260.svg +13 -0
- package/src/icons/svg//346/217/217/350/277/260/345/210/227/350/241/250.svg +3 -0
- package/src/icons/svg//346/224/276/345/244/247.svg +12 -0
- package/src/icons/svg//346/225/260/346/215/256.svg +3 -0
- package/src/icons/svg//346/225/260/346/215/256/346/272/220/346/250/241/345/236/213.svg +1 -0
- package/src/icons/svg//346/225/260/346/215/256/351/205/215/347/275/256.svg +1 -0
- package/src/icons/svg//346/226/207/344/273/266/344/270/212/344/274/240.svg +3 -0
- package/src/icons/svg//346/226/207/346/234/254.svg +3 -0
- package/src/icons/svg//346/226/207/346/234/254/346/214/211/351/222/256.svg +3 -0
- package/src/icons/svg//346/226/260/345/242/236/345/270/203/345/261/200.svg +1 -0
- package/src/icons/svg//346/226/260/345/242/236/351/241/265/351/235/242.svg +1 -0
- package/src/icons/svg//346/226/271/346/263/225/345/272/223.svg +9 -0
- package/src/icons/svg//346/227/245/346/234/237/350/214/203/345/233/264.svg +3 -0
- package/src/icons/svg//346/227/245/346/234/237/351/200/211/346/213/251.svg +3 -0
- package/src/icons/svg//346/227/266/351/227/264/350/214/203/345/233/264.svg +3 -0
- package/src/icons/svg//346/227/266/351/227/264/351/200/211/346/213/251.svg +3 -0
- package/src/icons/svg//346/230/276/347/244/272.svg +1 -0
- package/src/icons/svg//346/234/215/345/212/241/345/231/250.svg +12 -0
- package/src/icons/svg//346/235/203/351/231/220.svg +13 -0
- package/src/icons/svg//346/240/205/346/240/274/345/270/203/345/261/200.svg +6 -0
- package/src/icons/svg//346/240/207/347/255/276/351/241/265.svg +6 -0
- package/src/icons/svg//346/240/207/351/242/230.svg +3 -0
- package/src/icons/svg//346/240/221/345/275/242.svg +3 -0
- package/src/icons/svg//346/243/200/346/265/213/346/217/220/351/206/222.svg +12 -0
- package/src/icons/svg//346/250/241/345/236/213/344/273/223/345/272/223.svg +1 -0
- package/src/icons/svg//346/250/241/345/236/213/345/217/202/346/225/260.svg +1 -0
- package/src/icons/svg//346/250/241/346/235/277/345/272/223.svg +1 -0
- package/src/icons/svg//346/255/245/351/252/244/346/235/241.svg +3 -0
- package/src/icons/svg//346/267/273/345/212/240/344/270/200/345/210/227.svg +7 -0
- package/src/icons/svg//346/267/273/345/212/240/344/270/200/350/241/214.svg +7 -0
- package/src/icons/svg//346/270/205/347/251/272.svg +1 -0
- package/src/icons/svg//346/273/221/345/235/227.svg +3 -0
- package/src/icons/svg//347/202/271/345/207/273.svg +13 -0
- package/src/icons/svg//347/211/210/346/234/254.svg +11 -0
- package/src/icons/svg//347/211/210/346/234/254/346/233/264/346/226/260.svg +5 -0
- package/src/icons/svg//347/247/273/345/212/250/347/253/257/345/257/274/350/210/252/346/241/206/346/236/266.svg +12 -0
- package/src/icons/svg//347/251/272/346/225/260/346/215/2562.svg +1 -0
- package/src/icons/svg//347/251/277/346/242/255/346/241/206.svg +3 -0
- package/src/icons/svg//347/262/230/350/264/264.svg +1 -0
- package/src/icons/svg//347/272/247/350/201/224/351/200/211/346/213/251.svg +3 -0
- package/src/icons/svg//347/273/204/344/273/266/345/272/223.svg +1 -0
- package/src/icons/svg//347/273/204/344/273/266/350/204/232/346/234/254.svg +9 -0
- package/src/icons/svg//347/273/204/345/220/210.svg +4 -0
- package/src/icons/svg//347/273/223/346/236/234.svg +10 -0
- package/src/icons/svg//347/273/230/345/210/266.svg +1 -0
- package/src/icons/svg//347/275/256/345/272/225.svg +4 -0
- package/src/icons/svg//347/275/256/351/241/266.svg +4 -0
- package/src/icons/svg//350/204/232/346/234/254.svg +1 -0
- package/src/icons/svg//350/204/232/346/234/2542.svg +1 -0
- package/src/icons/svg//350/204/232/346/234/254/345/272/223.svg +9 -0
- package/src/icons/svg//350/204/232/346/234/254/351/205/215/347/275/256.svg +1 -0
- package/src/icons/svg//350/204/232/346/234/254/351/235/242/346/235/277.svg +13 -0
- package/src/icons/svg//350/207/252/347/224/261/345/270/203/345/261/200.svg +7 -0
- package/src/icons/svg//350/241/250/345/215/225.svg +3 -0
- package/src/icons/svg//350/241/250/345/215/225/345/256/271/345/231/250.svg +9 -0
- package/src/icons/svg//350/241/250/345/215/225/347/273/204/344/273/266.svg +1 -0
- package/src/icons/svg//350/241/250/345/215/225/351/207/215/345/244/215/350/212/202.svg +10 -0
- package/src/icons/svg//350/241/250/346/240/274.svg +7 -0
- package/src/icons/svg//350/241/250/346/240/274/345/210/227.svg +8 -0
- package/src/icons/svg//350/241/250/346/240/274/345/270/203/345/261/200.svg +8 -0
- package/src/icons/svg//350/241/250/346/240/274/350/241/214.svg +8 -0
- package/src/icons/svg//350/241/250/350/276/276/345/274/217.svg +1 -0
- package/src/icons/svg//350/247/206/351/242/221.svg +3 -0
- package/src/icons/svg//350/255/246/345/221/212/346/214/211/351/222/256.svg +3 -0
- package/src/icons/svg//350/257/204/345/210/206.svg +3 -0
- package/src/icons/svg//350/257/246/347/273/206.svg +1 -0
- package/src/icons/svg//350/264/246/345/217/267.svg +3 -0
- package/src/icons/svg//350/264/246/345/217/267/345/256/211/345/205/250.svg +12 -0
- package/src/icons/svg//350/275/256/346/222/255.svg +3 -0
- package/src/icons/svg//350/277/220/350/241/214/350/204/232/346/234/254.svg +12 -0
- package/src/icons/svg//350/277/233/345/272/246/346/235/241.svg +3 -0
- package/src/icons/svg//351/200/232/347/224/250.svg +11 -0
- package/src/icons/svg//351/203/250/351/227/250.svg +3 -0
- package/src/icons/svg//351/207/215/345/244/215/350/212/202.svg +3 -0
- package/src/icons/svg//351/207/215/345/244/215/350/241/250.svg +3 -0
- package/src/icons/svg//351/232/220/350/227/217.svg +1 -0
- package/src/icons/svg//351/241/265/351/235/242.svg +1 -0
- package/src/icons/svg//351/241/265/351/235/2421.svg +3 -0
- package/src/icons/svg//351/241/265/351/235/2422.svg +3 -0
- package/src/icons/svg//351/241/265/351/235/2423.svg +1 -0
- package/src/icons/svg//351/241/265/351/235/242/345/256/271/345/231/250.svg +7 -0
- package/src/icons/svg//351/241/265/351/235/242/351/205/215/347/275/256.svg +1 -0
- package/src/icons/svg//351/242/204/350/247/210.svg +1 -0
- package/src/icons/svg//351/273/230/350/256/244/346/214/211/351/222/256.svg +3 -0
- package/src/libs/drag/index.vue +1546 -0
- package/src/libs/drag/utils/dom.js +60 -0
- package/src/libs/drag/utils/fns.js +39 -0
- package/src/libs/drag/vue-draggable-resizable.css +102 -0
- package/src/libs/ibspForm/FormMaking.common.js +29452 -0
- package/src/libs/ibspForm/FormMaking.css +10 -0
- package/src/libs/ibspForm/FormMaking.umd.js +29456 -0
- package/src/libs/ibspForm/FormMaking.umd.min.js +29441 -0
- package/src/libs/ibspForm/demo.html +10 -0
- package/src/libs/ibspForm/fonts/iconfont.122c3730.woff2 +0 -0
- package/src/libs/ibspForm/fonts/iconfont.2a264583.woff +0 -0
- package/src/libs/ibspForm/fonts/iconfont.3e777971.ttf +0 -0
- package/src/libs/uni/uni.webview.1.5.5.js +58 -0
- package/src/libs/vanilla-js-wheel-zoom/calculator.js +103 -0
- package/src/libs/vanilla-js-wheel-zoom/default-options.js +52 -0
- package/src/libs/vanilla-js-wheel-zoom/observers/AbstractObserver.js +51 -0
- package/src/libs/vanilla-js-wheel-zoom/observers/DragScrollableObserver.js +103 -0
- package/src/libs/vanilla-js-wheel-zoom/observers/InteractionObserver.js +122 -0
- package/src/libs/vanilla-js-wheel-zoom/observers/PinchToZoomObserver.js +86 -0
- package/src/libs/vanilla-js-wheel-zoom/toolkit.js +121 -0
- package/src/libs/vanilla-js-wheel-zoom/wheel-zoom.js +446 -0
- package/src/libs/vuedraggable/core/componentBuilderHelper.js +47 -0
- package/src/libs/vuedraggable/core/componentStructure.js +69 -0
- package/src/libs/vuedraggable/core/renderHelper.js +57 -0
- package/src/libs/vuedraggable/core/sortableEvents.js +18 -0
- package/src/libs/vuedraggable/util/console.js +9 -0
- package/src/libs/vuedraggable/util/htmlHelper.js +15 -0
- package/src/libs/vuedraggable/util/string.js +12 -0
- package/src/libs/vuedraggable/util/tags.js +138 -0
- package/src/libs/vuedraggable/vuedraggable.js +317 -0
- package/src/libs/vuejs-loadmore/icon/index.js +3 -0
- package/src/libs/vuejs-loadmore/icon/loading.scss +59 -0
- package/src/libs/vuejs-loadmore/icon/loading.vue +21 -0
- package/src/libs/vuejs-loadmore/index.js +18 -0
- package/src/libs/vuejs-loadmore/locale/index.js +32 -0
- package/src/libs/vuejs-loadmore/locale/lang/en-US.js +13 -0
- package/src/libs/vuejs-loadmore/locale/lang/zh-CN.js +13 -0
- package/src/libs/vuejs-loadmore/mixins/bind-event.js +21 -0
- package/src/libs/vuejs-loadmore/mixins/timer.js +22 -0
- package/src/libs/vuejs-loadmore/mixins/touch.js +58 -0
- package/src/libs/vuejs-loadmore/style/var.scss +23 -0
- package/src/libs/vuejs-loadmore/utils/event.js +20 -0
- package/src/libs/vuejs-loadmore/utils/getDeepValByKey.js +14 -0
- package/src/libs/vuejs-loadmore/utils/scroll.js +30 -0
- package/src/libs/vuejs-loadmore/utils/throttle.js +39 -0
- package/src/libs/vuejs-loadmore/vuejs-loadmore/index.scss +39 -0
- package/src/libs/vuejs-loadmore/vuejs-loadmore/index.vue +317 -0
- package/src/main.ts +85 -0
- package/src/models/app/ComponentLib.ts +189 -0
- package/src/models/app/IbspApp.ts +362 -0
- package/src/models/app/_utils.ts +38 -0
- package/src/models/app/app.d.ts +118 -0
- package/src/models/app/index.ts +2 -0
- package/src/models/app/uni/index.ts +1 -0
- package/src/models/app/uni/useUniAction.ts +174 -0
- package/src/models/command/CommandTypes.d.ts +24 -0
- package/src/models/command/index.ts +40 -0
- package/src/models/component/index.ts +56 -0
- package/src/models/dataModel/index.ts +243 -0
- package/src/models/dataModel/models/CategoryDict.ts +35 -0
- package/src/models/dataModel/models/DataSource.ts +181 -0
- package/src/models/dataModel/models/DataView.ts +132 -0
- package/src/models/dataModel/models/Script.ts +15 -0
- package/src/models/dataModel/models/ServiceInterface.ts +114 -0
- package/src/models/dataModel/models/Static.ts +24 -0
- package/src/models/dataModel/types/DataSource.d.ts +70 -0
- package/src/models/disabledState/StateTypes.d.ts +12 -0
- package/src/models/disabledState/index.ts +45 -0
- package/src/models/dynamicValues/index.ts +1 -0
- package/src/models/index.ts +6 -0
- package/src/models/page/IbspForm.ts +67 -0
- package/src/models/page/IbspPage.ts +571 -0
- package/src/models/page/data/api.ts +24 -0
- package/src/models/page/data/utils.ts +214 -0
- package/src/models/page/index.ts +3 -0
- package/src/models/script/index.ts +1 -0
- package/src/models/service/index.ts +35 -0
- package/src/models/tools/ComponentEvent.ts +42 -0
- package/src/models/tools/IbspEvents.ts +40 -0
- package/src/models/tools/IbspPageTools.ts +35 -0
- package/src/models/useComponentModel.js +1271 -0
- package/src/models/useConsole.ts +135 -0
- package/src/models/useDynamicValueModel.js +576 -0
- package/src/models/useEditorEnv.ts +55 -0
- package/src/models/useGlobalEvents.ts +44 -0
- package/src/models/useHistoryStackModel.ts +949 -0
- package/src/models/useJavascriptAnalysis.js +501 -0
- package/src/models/usePageModel.js +1087 -0
- package/src/models/useStack.ts +41 -0
- package/src/prodModels/index.ts +1 -0
- package/src/prodModels/useGlobalEvent/events.ts +7 -0
- package/src/prodModels/useGlobalEvent/index.ts +54 -0
- package/src/router/hooks/useGuard.ts +16 -0
- package/src/router/hooks/useJumpTo.ts +39 -0
- package/src/router/index.ts +62 -0
- package/src/router/meta.d.ts +7 -0
- package/src/stores/index.ts +3 -0
- package/src/stores/useComponentStore.ts +250 -0
- package/src/stores/usePlatformLibStore.js +212 -0
- package/src/stores/usePlatformStore.js +299 -0
- package/src/styles/global.less +516 -0
- package/src/styles/index-preview.ts +2 -0
- package/src/styles/index.ts +4 -0
- package/src/styles/reset.css +142 -0
- package/src/styles/theme/antdui.less +12 -0
- package/src/styles/theme/default-ui.less +9 -0
- package/src/styles/theme/elementui.less +178 -0
- package/src/styles/theme/index.less +4 -0
- package/src/styles/theme/nextui.less +550 -0
- package/src/types/config.d.ts +107 -0
- package/src/types/config2.d.ts +97 -0
- package/src/types/global.d.ts +90 -0
- package/src/types/ibsp.d.ts +112 -0
- package/src/types/index.ts +1 -0
- package/src/types/module.d.ts +105 -0
- package/src/types/platform.ts +19 -0
- package/src/types/service.d.ts +28 -0
- package/src/utils/config.ts +54 -0
- package/src/utils/configData.js +170 -0
- package/src/utils/dataProcess.js +0 -0
- package/src/utils/index.js +558 -0
- package/src/utils/request.js +82 -0
- package/src/utils/toolFuns.ts +11 -0
- package/src/views/builtins/components/message/Index.vue +104 -0
- package/src/views/builtins/error/404.vue +527 -0
- package/src/views/builtins/index.ts +136 -0
- package/src/views/builtins/login/MobileIndex.vue +496 -0
- package/src/views/builtins/login/MobileIndex_v1.vue +259 -0
- package/src/views/builtins/login/MobileIndex_v2.vue +421 -0
- package/src/views/builtins/login/WindowIndex.vue +288 -0
- package/src/views/builtins/login/mobile/svgData.js +67 -0
- package/src/views/builtins/login/useLogin.ts +63 -0
- package/src/views/builtins/message/MobileIndex.vue +309 -0
- package/src/views/builtins/message/mobile/svgData.js +28 -0
- package/src/views/builtins/my/MobileIndex.vue +508 -0
- package/src/views/builtins/my/index.vue +69 -0
- package/src/views/builtins/my/mobile/about/index.vue +16 -0
- package/src/views/builtins/my/mobile/account/Index.vue +129 -0
- package/src/views/builtins/my/mobile/auth/index.vue +16 -0
- package/src/views/builtins/my/mobile/password/Index.vue +352 -0
- package/src/views/builtins/my/mobile/password/svgData.js +67 -0
- package/src/views/builtins/my/mobile/problem/Index.vue +573 -0
- package/src/views/builtins/my/mobile/problem/svgData.js +26 -0
- package/src/views/builtins/my/mobile/server/Server.vue +152 -0
- package/src/views/builtins/my/mobile/setting/index.vue +16 -0
- package/src/views/builtins/my/mobile/svgData.js +263 -0
- package/src/views/builtins/my/mobile/switch-account/component/UserAvatar.vue +95 -0
- package/src/views/builtins/my/mobile/switch-account/index.vue +107 -0
- package/src/views/builtins/util/userAccout.ts +33 -0
- package/src/views/designer/components/BindValueConfig/components/Component.vue +38 -0
- package/src/views/designer/components/BindValueConfig/components/Const.vue +36 -0
- package/src/views/designer/components/BindValueConfig/components/Var.vue +38 -0
- package/src/views/designer/components/BindValueConfig/index.vue +115 -0
- package/src/views/designer/components/DragMenu.vue +135 -0
- package/src/views/designer/components/DrawerLodding.vue +69 -0
- package/src/views/designer/components/FloatModuleCard.vue +136 -0
- package/src/views/designer/components/PlatformLibLayout.vue +238 -0
- package/src/views/designer/components/ScriptPopup.vue +8 -0
- package/src/views/designer/components/drag/index.vue +1546 -0
- package/src/views/designer/components/drag/utils/dom.js +60 -0
- package/src/views/designer/components/drag/utils/fns.js +39 -0
- package/src/views/designer/components/drag/vue-draggable-resizable.css +102 -0
- package/src/views/designer/hooks/keyboardModule/index.js +43 -0
- package/src/views/designer/hooks/keyboardModule/modules/cvx.js +543 -0
- package/src/views/designer/hooks/keyboardModule/modules/del.js +47 -0
- package/src/views/designer/hooks/keyboardModule/modules/direction.js +38 -0
- package/src/views/designer/hooks/keyboardModule/modules/redo.js +22 -0
- package/src/views/designer/hooks/keyboardModule/modules/undo.js +12 -0
- package/src/views/designer/hooks/useConfigComponent.js +28 -0
- package/src/views/designer/hooks/useInitPage.ts +60 -0
- package/src/views/designer/hooks/useKeyboard.js +51 -0
- package/src/views/designer/hooks/usePageFloatMenu.js +137 -0
- package/src/views/designer/hooks/usePageValueData.js +92 -0
- package/src/views/designer/hooks/usePullDrag.js +160 -0
- package/src/views/designer/hooks/useRegisterKeyboard.js +328 -0
- package/src/views/designer/index.ts +3 -0
- package/src/views/designer/index.vue +121 -0
- package/src/views/designer/layout/FrameworkLayout.vue +542 -0
- package/src/views/designer/layout/LayoutDefault.vue +299 -0
- package/src/views/designer/layout/LayoutNextUi.vue +18 -0
- package/src/views/designer/layout/index.vue +54 -0
- package/src/views/designer/modules/canvas/canvas.service.ts +62 -0
- package/src/views/designer/modules/canvas/index.ts +4 -0
- package/src/views/designer/modules/canvas/src/CanvasHeaderTools.vue +409 -0
- package/src/views/designer/modules/canvas/src/components/AliginButtons.vue +120 -0
- package/src/views/designer/modules/canvas/src/components/GroupButton.vue +76 -0
- package/src/views/designer/modules/canvas/src/components/HistoryButton.vue +80 -0
- package/src/views/designer/modules/canvas/src/components/SortIndex.vue +86 -0
- package/src/views/designer/modules/canvas/src/components/toolbarPanel.vue +194 -0
- package/src/views/designer/modules/canvas/src/hooks/commonDisabledState.ts +42 -0
- package/src/views/designer/modules/canvas/src/hooks/commonMethods.ts +167 -0
- package/src/views/designer/modules/canvas/src/hooks/useAligin.ts +239 -0
- package/src/views/designer/modules/canvas/src/hooks/useCanvas copy.ts +117 -0
- package/src/views/designer/modules/canvas/src/hooks/useCanvas.ts +39 -0
- package/src/views/designer/modules/canvas/src/hooks/useGroup.ts +121 -0
- package/src/views/designer/modules/canvas/src/hooks/useHistory.ts +37 -0
- package/src/views/designer/modules/canvas/src/hooks/useSketchRuler.ts +167 -0
- package/src/views/designer/modules/canvas/src/hooks/useSortIndex.ts +147 -0
- package/src/views/designer/modules/canvas/src/hooks/useTranslate.ts +20 -0
- package/src/views/designer/modules/canvas/src/index.vue +600 -0
- package/src/views/designer/modules/canvas/src/scroll/index.vue +46 -0
- package/src/views/designer/modules/canvas/src/scroll/scroll.ts +230 -0
- package/src/views/designer/modules/config-data/dataConfig.service.ts +3 -0
- package/src/views/designer/modules/config-data/index.ts +3 -0
- package/src/views/designer/modules/config-data/src/index.vue +49 -0
- package/src/views/designer/modules/config-interactive/index.ts +4 -0
- package/src/views/designer/modules/config-interactive/interactive.service.ts +459 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/componentAction/RefreshComponent.js +46 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/componentAction/RefreshData.js +33 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/componentAction/SaveForm.js +130 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/componentAction/ShowHidden.js +60 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/formAction/ChangeFormMode.js +64 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/formAction/GetFormModel.js +40 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/formAction/SaveFormModel.js +40 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/formAction/SetFormModel.js +91 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/index.js +52 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/linkAction/AppOpenLink.js +110 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/linkAction/FrameOpenLink.js +117 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/linkAction/PlatformOutsideLink.js +119 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/linkAction/PlatformWithinLink.js +107 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/ClosePopup.js +31 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/ExecuteScript.js +37 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/GetCounterValue.js +67 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/ModalOpen.js +115 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/OpenMessage.js +95 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/RequestInterface.js +57 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/SetComponentValue.js +83 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/TriggerEvent.js +54 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/VariableAssignment.js +145 -0
- package/src/views/designer/modules/config-interactive/src/components/ConditionPopup.vue +880 -0
- package/src/views/designer/modules/config-interactive/src/components/ConfigActionIndex.vue +218 -0
- package/src/views/designer/modules/config-interactive/src/components/IbspActionConfig.vue +210 -0
- package/src/views/designer/modules/config-interactive/src/components/IbspInteractivceList.vue +553 -0
- package/src/views/designer/modules/config-interactive/src/components/IbspInteractivePanel.vue +253 -0
- package/src/views/designer/modules/config-interactive/src/components/PopUpContainer.vue +61 -0
- package/src/views/designer/modules/config-interactive/src/components/SelectInteractiveList.vue +112 -0
- package/src/views/designer/modules/config-interactive/src/hooks/useEventAction.js +61 -0
- package/src/views/designer/modules/config-interactive/src/hooks/useInteractiveContext.ts +77 -0
- package/src/views/designer/modules/config-interactive/src/index.vue +382 -0
- package/src/views/designer/modules/config-interactive/src/stores/interactiveData.js +106 -0
- package/src/views/designer/modules/config-interactive/src/stores/interactiveDataPlus.js +36 -0
- package/src/views/designer/modules/config-page/index.ts +3 -0
- package/src/views/designer/modules/config-page/pageConfig.service.ts +1 -0
- package/src/views/designer/modules/config-page/src/config.js +652 -0
- package/src/views/designer/modules/config-page/src/index.vue +120 -0
- package/src/views/designer/modules/config-props/index.ts +3 -0
- package/src/views/designer/modules/config-props/propsConfig.service.ts +1 -0
- package/src/views/designer/modules/config-props/src/CommonConfig.vue +576 -0
- package/src/views/designer/modules/config-props/src/ScriptConfig.vue +67 -0
- package/src/views/designer/modules/config-props/src/components/Background.vue +372 -0
- package/src/views/designer/modules/config-props/src/components/BorderPlus.vue +128 -0
- package/src/views/designer/modules/config-props/src/components/Collapse.vue +137 -0
- package/src/views/designer/modules/config-props/src/components/Input.vue +262 -0
- package/src/views/designer/modules/config-props/src/components/Radio.vue +108 -0
- package/src/views/designer/modules/config-props/src/components/Switch.vue +57 -0
- package/src/views/designer/modules/config-props/src/index.vue +82 -0
- package/src/views/designer/modules/data-model/index.ts +3 -0
- package/src/views/designer/modules/data-model/src/components/CategoryDict.vue +144 -0
- package/src/views/designer/modules/data-model/src/components/DataModel.vue +638 -0
- package/src/views/designer/modules/data-model/src/components/DataModel2.vue +583 -0
- package/src/views/designer/modules/data-model/src/components/DataView.vue +169 -0
- package/src/views/designer/modules/data-model/src/components/EditScript.vue +83 -0
- package/src/views/designer/modules/data-model/src/components/EditTable.vue +208 -0
- package/src/views/designer/modules/data-model/src/components/FieldsGroup.vue +199 -0
- package/src/views/designer/modules/data-model/src/components/ParamSelect.vue +64 -0
- package/src/views/designer/modules/data-model/src/components/ScriptConfig.vue +53 -0
- package/src/views/designer/modules/data-model/src/components/ScriptData.vue +62 -0
- package/src/views/designer/modules/data-model/src/components/ServiceInterface.vue +248 -0
- package/src/views/designer/modules/data-model/src/components/Static.vue +236 -0
- package/src/views/designer/modules/data-model/src/components/TestData.vue +39 -0
- package/src/views/designer/modules/data-model/src/components/filter-data/components/MoreConfig.vue +121 -0
- package/src/views/designer/modules/data-model/src/components/filter-data/components/select-field/index.vue +337 -0
- package/src/views/designer/modules/data-model/src/components/filter-data/components/select-field/useSelectField.ts +104 -0
- package/src/views/designer/modules/data-model/src/components/filter-data/index.vue +140 -0
- package/src/views/designer/modules/data-model/src/hooks/useModelConfig.ts +98 -0
- package/src/views/designer/modules/data-model/src/hooks/useModelDefaultValue.ts +153 -0
- package/src/views/designer/modules/data-model/src/index.vue +374 -0
- package/src/views/designer/modules/data-model/src/types/model.d.ts +144 -0
- package/src/views/designer/modules/headerWidgetModule/HeaderWidgetIndex.vue +937 -0
- package/src/views/designer/modules/headerWidgetModule/components/CodeEditor.vue +315 -0
- package/src/views/designer/modules/headerWidgetModule/components/DirectionTooltip.vue +164 -0
- package/src/views/designer/modules/headerWidgetModule/components/DirectionTooltipComponent.vue +164 -0
- package/src/views/designer/modules/headerWidgetModule/components/MirrorTextArea.vue +73 -0
- package/src/views/designer/modules/headerWidgetModule/components/PlatformLibLayout.vue +238 -0
- package/src/views/designer/modules/headerWidgetModule/components/quoteConfig/components/configCenter.vue +51 -0
- package/src/views/designer/modules/headerWidgetModule/components/quoteConfig/index.vue +89 -0
- package/src/views/designer/modules/headerWidgetModule/constantLib/index.vue +433 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/CategoryDict.vue +141 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/DataModel.vue +638 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/DataModel2.vue +455 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/DataView.vue +233 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/EditTable.vue +208 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/FieldsGroup.vue +199 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/ScriptConfig.vue +53 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/ScriptData.vue +63 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/ServiceInterface.vue +287 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/Static.vue +170 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/TestData.vue +33 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/hooks/useLeaveParams.ts +26 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/hooks/useUtils.js +53 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/index.vue +471 -0
- package/src/views/designer/modules/headerWidgetModule/designerConfig/index.vue +15 -0
- package/src/views/designer/modules/headerWidgetModule/globalVarLib/index.vue +471 -0
- package/src/views/designer/modules/headerWidgetModule/iconLib/index.vue +346 -0
- package/src/views/designer/modules/headerWidgetModule/materialLib/index.vue +901 -0
- package/src/views/designer/modules/headerWidgetModule/methodLib/index.vue +551 -0
- package/src/views/designer/modules/headerWidgetModule/scriptLib/index.vue +415 -0
- package/src/views/designer/modules/ibsp-component-lib/componentLib.service.ts +17 -0
- package/src/views/designer/modules/ibsp-component-lib/index.ts +5 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/components/index.ts +5 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/components/middleware/ComponentDes.vue +175 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/components/middleware/ComponentPre.vue +84 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/components/middleware/FormItemComponent.vue +314 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/components/middleware/FormItemComponentPre.vue +154 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/components/middleware/useContextModel.ts +30 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/hooks/useCommonFuns.ts +91 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/hooks/useComponentContext.ts +304 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/hooks/useFormDropComponent.ts +69 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/hooks/useFromItemDnD.ts +264 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/index.js +47 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/content-container/ContentContainerDes.vue +56 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/content-container/ContentContainerPre.vue +32 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/content-container/index.vue +33 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/drag-container/index.vue +80 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/drag-container/vueDrag/index.vue +1362 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/drag-container/vueDrag/utils/dom.js +60 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/drag-container/vueDrag/utils/fns.js +39 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/drag-container/vueDrag/vue-draggable-resizable.css +125 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/index.ts +4 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/card/Template.vue +214 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/card/config/config.js +37 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/card/config/data.js +191 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/card/config/props.js +150 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/card/index.vue +32 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/data/config.js +49 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/data/index.vue +205 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/data/utils.ts +20 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/formContainer/RenderComponent.vue +33 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/formContainer/config.ts +25 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/formContainer/form-item/config.ts +25 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/formContainer/form-item/index.vue +72 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/formContainer/index.vue +248 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/formContainer/sub-form/RenderComponent.vue +328 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/formContainer/sub-form/config.ts +30 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/formContainer/sub-form/index.vue +217 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/mobileNavFrame/components/MobileMenu.vue +107 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/mobileNavFrame/config.js +151 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/mobileNavFrame/index.vue +789 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/mobileNavFrame/utils/uni.webview.1.5.5.js +58 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/components/AddMenuConfig.vue +320 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/components/Header.vue +139 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/components/IMenu.vue +65 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/config/config.ts +25 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/config/prop/aside.ts +41 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/config/prop/header.ts +139 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/config/prop/index.ts +12 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/config/prop/nav.ts +143 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/hooks/useAppMenus.js +164 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/index.vue +100 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigationFrame/SystemNavComponent.vue +810 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigationFrame/components/AddMenuConfig.vue +322 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigationFrame/components/MyElMenu.vue +59 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigationFrame/config.js +283 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigationFrame/hooks/useAppMenus.js +164 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigationFrame/index.vue +74 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/pageContainer/config.js +127 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/pageContainer/index.vue +135 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/core/BaseContainer.vue +90 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/core/hooks/useAddComponent.ts +69 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/core/hooks/useContainerDnD.ts +79 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/core/index.ts +3 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/core/types/containerProps.ts +46 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/core/types/dnd.ts +17 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/flexLayout/RenderComponent.vue +33 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/flexLayout/config.js +691 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/flexLayout/index.vue +344 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/grid-drag-layout/config.js +26 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/grid-drag-layout/hooks/useDragGrid.ts +3 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/grid-drag-layout/index.vue +40 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/config.ts +36 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/gird-row/config.ts +37 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/gird-row/index.vue +173 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/gird-row/render.vue +56 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/grid-col/config.ts +51 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/grid-col/index.vue +105 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/grid-col/render.vue +34 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/index.vue +154 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/render.vue +65 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/types/grid.ts +15 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/types/gridProps.ts +126 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/PreviewComponent.vue +101 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/PreviewGroup.vue +71 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/SectionGroup.vue +627 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/SectionGroup4_back.vue +388 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/SectionGroup_back.vue +503 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/components/MergeBox.vue +294 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/components/SectionTools.vue +0 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/components/vueDrag/index.vue +1360 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/components/vueDrag/utils/dom.js +60 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/components/vueDrag/utils/fns.js +39 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/components/vueDrag/vue-draggable-resizable.css +125 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/config.js +117 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/group-config.js +26 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/index.vue +1200 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/section.js +67 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/section.service.ts +7 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/config.ts +28 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/hooks/useColActions.ts +244 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/index.vue +218 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/render.vue +97 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/table-col/config.ts +41 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/table-col/index.vue +69 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/table-col/render.vue +47 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/table-row/config.ts +25 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/table-row/index.vue +78 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/table-row/render.vue +38 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/types/table.ts +15 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/types/tableProps.ts +87 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/types/props.d.ts +12 -0
- package/src/views/designer/modules/ibsp-component-lib/src/components/ColorPalette.vue +394 -0
- package/src/views/designer/modules/ibsp-component-lib/src/index.vue +530 -0
- package/src/views/designer/modules/ibsp-config/ConfigIndex.vue +222 -0
- package/src/views/designer/modules/ibsp-config/builtinComponents/DataModel.jsx +65 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/configs/batchGroup.ts +8 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/configs/selectComponents.ts +22 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/configs/selectDataModel.ts +9 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/configs/selectForms.ts +14 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/configs/selectPages.ts +14 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/configs/selectScript.ts +46 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/configs/selectVars.ts +32 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/configs.d.ts +5 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/index.ts +7 -0
- package/src/views/designer/modules/ibsp-config/components/BuiltinFormItems.vue +82 -0
- package/src/views/designer/modules/ibsp-config/components/CollapseItem.vue +23 -0
- package/src/views/designer/modules/ibsp-config/components/ExpressionPopup.vue +357 -0
- package/src/views/designer/modules/ibsp-config/components/FormItem.vue +201 -0
- package/src/views/designer/modules/ibsp-config/components/InterfaceParam.vue +714 -0
- package/src/views/designer/modules/ibsp-config/components/ResourcePopup.vue +319 -0
- package/src/views/designer/modules/ibsp-config/components/dynamicValueBindingModule/DynamicValuePlusIndex.vue +283 -0
- package/src/views/designer/modules/ibsp-config/components/dynamicValueBindingModule/index.vue +266 -0
- package/src/views/designer/modules/ibsp-config/components/staticTable/ContextMenu.vue +107 -0
- package/src/views/designer/modules/ibsp-config/components/staticTable/index.vue +264 -0
- package/src/views/designer/modules/ibsp-config/components/staticTable/upload.vue +60 -0
- package/src/views/designer/modules/ibsp-config/config.service.ts +17 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Button.vue +56 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/CascaderSelect.vue +83 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/CateTreeList.vue +571 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Checkbox.vue +57 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Collapse.vue +163 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Color.vue +57 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/ControlConfig/RadioConfig.vue +11 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/ControlConfig/RegionalSelectionConfig.vue +159 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/ControlConfig/SelectConfig.vue +599 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/ControlConfig/components/table.vue +51 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/ControlConfig/index.vue +62 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DataColumns.vue +171 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DataSource/components/CategoryDict.vue +67 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DataSource/components/DataView.vue +124 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DataSource/components/EditTable.vue +209 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DataSource/components/ScriptConfig.vue +48 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DataSource/components/ServiceInterface.vue +130 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DataSource/components/Static.vue +141 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DataSource/index.vue +122 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Dialog.vue +147 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DragTabs.vue +836 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Drawer.vue +61 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DynamicDataValue.vue +120 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Expression/hooks/useWhere.ts +67 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Expression/index.vue +679 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/FormItem.vue +133 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Input.vue +205 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/InputNumber.vue +101 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/InterfaceParamConfig.vue +51 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Modal.vue +84 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/MonacoEditor.vue +108 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/ParamConfig.vue +501 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Position.vue +94 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Radio.vue +182 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/ScriptData.vue +55 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Select.vue +148 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/SelectExpression.vue +94 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/SelectIcon.vue +107 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/SelectResource.vue +117 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/SetParamSource.vue +181 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Slider.vue +55 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/StaticTable.vue +42 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Switch.vue +40 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Tab.vue +221 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Tabs.vue +91 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Tabs2.vue +546 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Title.vue +86 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/TreeSelect.vue +142 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/TreeSelectPlus.vue +70 -0
- package/src/views/designer/modules/ibsp-config/configGroups/BaseData.js +60 -0
- package/src/views/designer/modules/ibsp-config/hooks/useModelValue.ts +22 -0
- package/src/views/designer/modules/ibsp-config/index.ts +44 -0
- package/src/views/designer/modules/ibsp-config/utils.ts +6 -0
- package/src/views/designer/modules/ibsp-form-domain/index.ts +3 -0
- package/src/views/designer/modules/ibsp-form-domain/src/index.vue +178 -0
- package/src/views/designer/modules/ibsp-history/history.service.ts +3 -0
- package/src/views/designer/modules/ibsp-history/index.ts +3 -0
- package/src/views/designer/modules/ibsp-history/src/index.vue +126 -0
- package/src/views/designer/modules/ibsp-outline/index.ts +3 -0
- package/src/views/designer/modules/ibsp-outline/outline.service.ts +1 -0
- package/src/views/designer/modules/ibsp-outline/src/index.vue +256 -0
- package/src/views/designer/modules/ibsp-page/index.ts +4 -0
- package/src/views/designer/modules/ibsp-page/pageList.service.ts +3 -0
- package/src/views/designer/modules/ibsp-page/src/index.vue +393 -0
- package/src/views/designer/modules/ibsp-script/index.ts +3 -0
- package/src/views/designer/modules/ibsp-script/script.service.ts +161 -0
- package/src/views/designer/modules/ibsp-script/src/ScriptIndex.vue +408 -0
- package/src/views/designer/modules/ibsp-script/src/components/Contextmenu.vue +104 -0
- package/src/views/designer/modules/ibsp-script/src/components/ScriptData.vue +518 -0
- package/src/views/designer/modules/ibsp-script/src/components/ScriptPanel.vue +415 -0
- package/src/views/designer/modules/ibsp-script/src/components/ScriptSetting.vue +48 -0
- package/src/views/designer/modules/ibsp-script/src/components/console/Console.vue +53 -0
- package/src/views/designer/modules/ibsp-script/src/components/console/components/ConsoleError.vue +33 -0
- package/src/views/designer/modules/ibsp-script/src/components/console/components/ConsoleLine.vue +53 -0
- package/src/views/designer/modules/ibsp-script/src/components/console/components/ConsoleLog.vue +93 -0
- package/src/views/designer/modules/ibsp-script/src/components/console/console.ts +11 -0
- package/src/views/designer/modules/ibsp-script/src/hooks/useComponentEditor.ts +21 -0
- package/src/views/designer/modules/ibsp-script/src/hooks/useContextmenu.js +70 -0
- package/src/views/designer/modules/ibsp-script/src/hooks/useScriptData.ts +73 -0
- package/src/views/designer/modules/ibsp-script/src/index.vue +114 -0
- package/src/views/designer/modules/ibsp-template/index.ts +3 -0
- package/src/views/designer/modules/ibsp-template/src/index.vue +19 -0
- package/src/views/designer/modules/ibsp-template/template.service.ts +1 -0
- package/src/views/designer/modules/index.ts +198 -0
- package/src/views/designer/modules/platform-const/const.service.ts +1 -0
- package/src/views/designer/modules/platform-const/index.ts +4 -0
- package/src/views/designer/modules/platform-const/src/index.vue +432 -0
- package/src/views/designer/modules/platform-icon/icon.service.ts +1 -0
- package/src/views/designer/modules/platform-icon/index.ts +4 -0
- package/src/views/designer/modules/platform-icon/src/index.vue +346 -0
- package/src/views/designer/modules/platform-material/index.ts +3 -0
- package/src/views/designer/modules/platform-material/material.service.ts +1 -0
- package/src/views/designer/modules/platform-material/src/index.vue +901 -0
- package/src/views/designer/modules/platform-method/index.ts +4 -0
- package/src/views/designer/modules/platform-method/method.service.ts +1 -0
- package/src/views/designer/modules/platform-method/src/index.vue +14 -0
- package/src/views/designer/modules/platform-script/index.ts +4 -0
- package/src/views/designer/modules/platform-script/script.service.ts +1 -0
- package/src/views/designer/modules/platform-script/src/index.vue +14 -0
- package/src/views/designer/modules/platform-var/index.ts +6 -0
- package/src/views/designer/modules/platform-var/src/index.vue +450 -0
- package/src/views/designer/modules/platform-var/var.service.ts +1 -0
- package/src/views/designer/modules/scriptModule/ScriptIndex.vue +686 -0
- package/src/views/designer/modules/scriptModule/ScriptIndexPlus.vue +1308 -0
- package/src/views/designer/modules/scriptModule/components/Contextmenu.vue +100 -0
- package/src/views/designer/modules/scriptModule/components/EnvData.vue +78 -0
- package/src/views/designer/modules/scriptModule/components/ScriptData.vue +541 -0
- package/src/views/designer/modules/scriptModule/components/ScriptEditPanel.vue +658 -0
- package/src/views/designer/modules/scriptModule/components/ScriptList.vue +365 -0
- package/src/views/designer/modules/scriptModule/components/ScriptNavContentLayout.vue +66 -0
- package/src/views/designer/modules/scriptModule/components/console/Console.vue +53 -0
- package/src/views/designer/modules/scriptModule/components/console/components/ConsoleError.vue +33 -0
- package/src/views/designer/modules/scriptModule/components/console/components/ConsoleLine.vue +53 -0
- package/src/views/designer/modules/scriptModule/components/console/components/ConsoleLog.vue +93 -0
- package/src/views/designer/modules/scriptModule/components/console/console.ts +11 -0
- package/src/views/designer/modules/scriptModule/components/scriptManagement.vue +78 -0
- package/src/views/designer/modules/scriptModule/hooks/useComponentEditor.ts +22 -0
- package/src/views/designer/modules/scriptModule/hooks/useContextmenu.js +70 -0
- package/src/views/designer/modules/scriptModule/hooks/useIbspScript.js +95 -0
- package/src/views/designer/modules/scriptModule/hooks/useIbspScriptPlus.js +38 -0
- package/src/views/designer/modules/scriptModule/hooks/useScript.js +27 -0
- package/src/views/designer/modules/scriptModule/useScriptStore.js +142 -0
- package/src/views/designer/modules/shortcut-keys/index.ts +2 -0
- package/src/views/designer/modules/shortcut-keys/shortcutKey.service.ts +1 -0
- package/src/views/doc/index.ts +3 -0
- package/src/views/doc/src/index.vue +40 -0
- package/src/views/home/hooks/useApp.ts +127 -0
- package/src/views/home/index.vue +397 -0
- package/src/views/preview/index.ts +6 -0
- package/src/views/preview/src/PreviewPage.vue +215 -0
- package/src/views/preview/src/action-parse-lib/componentAction/RefreshComponent.js +10 -0
- package/src/views/preview/src/action-parse-lib/componentAction/RefreshData.js +8 -0
- package/src/views/preview/src/action-parse-lib/componentAction/SaveForm.js +111 -0
- package/src/views/preview/src/action-parse-lib/componentAction/ShowHidden.js +20 -0
- package/src/views/preview/src/action-parse-lib/formAction/ChangeFormMode.js +86 -0
- package/src/views/preview/src/action-parse-lib/formAction/GetFormModel.js +42 -0
- package/src/views/preview/src/action-parse-lib/formAction/SaveFormModel.js +47 -0
- package/src/views/preview/src/action-parse-lib/formAction/SetFormModel.js +28 -0
- package/src/views/preview/src/action-parse-lib/index.js +23 -0
- package/src/views/preview/src/action-parse-lib/linkAction/AppOpenLink.js +34 -0
- package/src/views/preview/src/action-parse-lib/linkAction/FrameOpenLink.js +33 -0
- package/src/views/preview/src/action-parse-lib/linkAction/PlatformOutsideLink.js +34 -0
- package/src/views/preview/src/action-parse-lib/linkAction/PlatformWithinLink.js +51 -0
- package/src/views/preview/src/action-parse-lib/outerAction/ClosePopup.js +8 -0
- package/src/views/preview/src/action-parse-lib/outerAction/ExecuteScript.js +22 -0
- package/src/views/preview/src/action-parse-lib/outerAction/GetCounterValue.js +7 -0
- package/src/views/preview/src/action-parse-lib/outerAction/ModalOpen.js +48 -0
- package/src/views/preview/src/action-parse-lib/outerAction/OpenMessage.js +14 -0
- package/src/views/preview/src/action-parse-lib/outerAction/RequestInterface.js +135 -0
- package/src/views/preview/src/action-parse-lib/outerAction/SetComponentValue.js +41 -0
- package/src/views/preview/src/action-parse-lib/outerAction/TriggerEvent.js +6 -0
- package/src/views/preview/src/action-parse-lib/outerAction/VariableAssignment.js +12 -0
- package/src/views/preview/src/hooks/useHandleParams.js +13 -0
- package/src/views/preview/src/index.vue +113 -0
- package/src/views/preview/src/index_back.vue +149 -0
- package/src/views/preview/src/interaction-model/Interaction.ts +280 -0
- package/src/views/preview/src/preview.ts +42 -0
- package/src/views/template/index.ts +4 -0
- package/src/views/template/src/PreviewIndex.vue +36 -0
- package/src/views/template/src/TemplateDesignerIndex.vue +492 -0
- package/src/views/template/src/index.vue +15 -0
- package/tsconfig.json +63 -0
- package/vite.config.js +106 -0
- package/vite.config.template.js +31 -0
|
@@ -0,0 +1,1271 @@
|
|
|
1
|
+
/* eslint-disable no-unused-expressions */
|
|
2
|
+
|
|
3
|
+
import { onMounted, onBeforeMount, onBeforeUnmount, onUnmounted, reactive, defineComponent, ref, nextTick, markRaw, defineAsyncComponent, toRaw, computed, watch } from 'vue';
|
|
4
|
+
import { v4 as getUuid4 } from 'uuid';
|
|
5
|
+
|
|
6
|
+
import {builtinComponents} from '@ibsp-config'
|
|
7
|
+
import { useEvent } from './tools/ComponentEvent';
|
|
8
|
+
import useContextData from '@ibsp-component-lib/src/componentLibs/components/middleware/useContextModel';
|
|
9
|
+
// import usePlatformLibStore from '@/stores/usePlatformLibStore';
|
|
10
|
+
// import usePlatformStore from '@/stores/usePlatformStore';
|
|
11
|
+
// import useComponentStore, { defineNameStore as defineNameComponentStore } from '@/stores/useComponentStore';
|
|
12
|
+
import { treePropsToData, getComponents, getUuid } from '@/utils'
|
|
13
|
+
import { AnalysisScript } from '@/models/useJavascriptAnalysis'
|
|
14
|
+
import { historyStackModel, ActionType } from '@/models/useHistoryStackModel';
|
|
15
|
+
|
|
16
|
+
const handlePxType = (value) => (typeof value === 'number' || !isNaN(value)) ? `${value}px` : value
|
|
17
|
+
/**
|
|
18
|
+
* @description 页面组件列表
|
|
19
|
+
*
|
|
20
|
+
* @type {Object.<string, LocalComponentConfig>}
|
|
21
|
+
*/
|
|
22
|
+
export const localComponents = {
|
|
23
|
+
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const existNameStores = new Map()
|
|
27
|
+
|
|
28
|
+
// export const store = {
|
|
29
|
+
// localComponents,
|
|
30
|
+
// // platformStore: usePlatformStore(),
|
|
31
|
+
// // platformLibStore: usePlatformLibStore(),
|
|
32
|
+
// // componentStore: useComponentStore(),
|
|
33
|
+
// }
|
|
34
|
+
|
|
35
|
+
// export const previewStore = {
|
|
36
|
+
// // platformStore: usePlatformStore(),
|
|
37
|
+
// // platformLibStore: usePlatformLibStore(),
|
|
38
|
+
// }
|
|
39
|
+
|
|
40
|
+
// export const initStore = () => {
|
|
41
|
+
// store.platformLibStore = usePlatformLibStore()
|
|
42
|
+
// store.platformStore = usePlatformStore()
|
|
43
|
+
// store.componentStore = useComponentStore()
|
|
44
|
+
// previewStore.platformLibStore = usePlatformLibStore()
|
|
45
|
+
// previewStore.platformStore = usePlatformStore()
|
|
46
|
+
// }
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
// export const getNameStore = (name)=>{
|
|
50
|
+
// if (existNameStores.has(name)) return existNameStores.get(name)
|
|
51
|
+
// const stores = {
|
|
52
|
+
// componentStore: defineNameComponentStore(name),
|
|
53
|
+
// }
|
|
54
|
+
// existNameStores.set(name, stores)
|
|
55
|
+
// return stores
|
|
56
|
+
// }
|
|
57
|
+
|
|
58
|
+
// export const initPreviewStore = (name) => {
|
|
59
|
+
// const stores = getNameStore(name)
|
|
60
|
+
// // eslint-disable-next-line guard-for-in
|
|
61
|
+
// for (const key in stores) {
|
|
62
|
+
// previewStore[key] = stores[key]
|
|
63
|
+
// }
|
|
64
|
+
// return previewStore
|
|
65
|
+
// }
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
export function updateLocalComponentValue(componentValue, newComponentValue) {
|
|
69
|
+
if (!componentValue || !Object.keys(componentValue)?.length) {
|
|
70
|
+
return newComponentValue;
|
|
71
|
+
}
|
|
72
|
+
const mergedObj = { ...componentValue };
|
|
73
|
+
for (const key in newComponentValue) {
|
|
74
|
+
if (!Object.hasOwn(componentValue, key)) {
|
|
75
|
+
mergedObj[key] = newComponentValue[key];
|
|
76
|
+
} else if (
|
|
77
|
+
typeof componentValue[key] === 'object' &&
|
|
78
|
+
typeof newComponentValue[key] === 'object' &&
|
|
79
|
+
!Array.isArray(componentValue[key]) &&
|
|
80
|
+
!Array.isArray(newComponentValue[key])
|
|
81
|
+
) {
|
|
82
|
+
mergedObj[key] = updateLocalComponentValue(componentValue[key], newComponentValue[key]);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return mergedObj;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
function updateComponentEvent(componentEventConfig, component) {
|
|
90
|
+
|
|
91
|
+
if (!component) {
|
|
92
|
+
return componentEventConfig
|
|
93
|
+
}
|
|
94
|
+
const eventConfig = component.componentConfig?.event || []
|
|
95
|
+
const config = componentEventConfig?.filter?.(item => {
|
|
96
|
+
return !item.initLoad;
|
|
97
|
+
}) || []
|
|
98
|
+
const exitConfig = component.interactionDataList?.filter?.(item => {
|
|
99
|
+
return !config.find(item2 => item2.key === item.key)
|
|
100
|
+
})?.map(item=>({
|
|
101
|
+
key: item.key,
|
|
102
|
+
label: item.label,
|
|
103
|
+
category: item.category
|
|
104
|
+
})) || []
|
|
105
|
+
return config.concat(eventConfig).concat(exitConfig)
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* 生成事件列表
|
|
112
|
+
* @param {*} componentInfo
|
|
113
|
+
*/
|
|
114
|
+
export const generateEventList = (eventConfig, categoryName = '基础事件') => {
|
|
115
|
+
|
|
116
|
+
return eventConfig?.map(item => {
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
/** 是否激活 */
|
|
120
|
+
active: false,
|
|
121
|
+
/** 事件分类名称 */
|
|
122
|
+
category: item.category || categoryName,
|
|
123
|
+
/** 事件id */
|
|
124
|
+
id: getUuid(),
|
|
125
|
+
/** 事件key, 对应组件写的事件 */
|
|
126
|
+
key: item.key,
|
|
127
|
+
/** 事件名称, 用于显示 */
|
|
128
|
+
label: item.label,
|
|
129
|
+
/** 事件值, 为一个函数, 对应组件的处理函数 */
|
|
130
|
+
value: item?.value || (()=>{}),
|
|
131
|
+
/** 事件对应的条件以及动作 */
|
|
132
|
+
whereActions: item.whereActions || [
|
|
133
|
+
{
|
|
134
|
+
id: getUuid(),
|
|
135
|
+
active: false,
|
|
136
|
+
where: {
|
|
137
|
+
label: '',
|
|
138
|
+
value: '',
|
|
139
|
+
expression: {
|
|
140
|
+
type: ''
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
list: []
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
}) || []
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
export const handleLayoutStyle = (componentValue)=>{
|
|
152
|
+
const layoutConfig = componentValue?.props?.layoutConfig || {}
|
|
153
|
+
let styles = {
|
|
154
|
+
...(layoutConfig || {})
|
|
155
|
+
};
|
|
156
|
+
let overflowStyle = {}
|
|
157
|
+
|
|
158
|
+
if (layoutConfig['content-exceeds'] === 'scroll') {
|
|
159
|
+
if (layoutConfig.scrollPosition === 'auto') {
|
|
160
|
+
overflowStyle = {
|
|
161
|
+
overflow: 'auto'
|
|
162
|
+
}
|
|
163
|
+
} else {
|
|
164
|
+
overflowStyle = {
|
|
165
|
+
'overflow-x': layoutConfig.scrollPosition === 'overflow-x' ? 'scroll' : 'hidden',
|
|
166
|
+
'overflow-y': layoutConfig.scrollPosition === 'overflow-y' ? 'scroll' : 'hidden'
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
if (layoutConfig.gapNumber > 0) {
|
|
171
|
+
styles.gap = layoutConfig.gapNumber + 'px'
|
|
172
|
+
}
|
|
173
|
+
return {
|
|
174
|
+
...styles,
|
|
175
|
+
...overflowStyle,
|
|
176
|
+
'flex-shrink': '0 !important'
|
|
177
|
+
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export const handleComponentStyle = (component)=>{
|
|
182
|
+
return {
|
|
183
|
+
display: component.show ? 'block' : 'none !important',
|
|
184
|
+
'flex-shrink': '0 !important',
|
|
185
|
+
'position': component.parentSectionId ? 'absolute' : 'relative'
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
let pervActiveComponents = new Set()
|
|
190
|
+
|
|
191
|
+
class BaseComponent {
|
|
192
|
+
|
|
193
|
+
ref = {
|
|
194
|
+
dom: null
|
|
195
|
+
}
|
|
196
|
+
componentRef = null;
|
|
197
|
+
baseStyle = {
|
|
198
|
+
color: '',
|
|
199
|
+
fontSize: 14,
|
|
200
|
+
'--backgroundType': 'none',
|
|
201
|
+
backgroundImage: '',
|
|
202
|
+
backgroundColor: '',
|
|
203
|
+
'--visibilityWidth': 'left,right,top,bottom',
|
|
204
|
+
'--originalWidth': '0px',
|
|
205
|
+
borderStyle: 'none',
|
|
206
|
+
borderColor: 'rgba(229, 229, 229, 1)',
|
|
207
|
+
borderRadius: '0px',
|
|
208
|
+
paddingLeft: '0px',
|
|
209
|
+
paddingRight: '0px',
|
|
210
|
+
paddingTop: '0px',
|
|
211
|
+
paddingBottom: '0px',
|
|
212
|
+
marginLeft: '0px',
|
|
213
|
+
marginRight: '0px',
|
|
214
|
+
marginTop: '0px',
|
|
215
|
+
marginBottom: '0px',
|
|
216
|
+
visibility: true,
|
|
217
|
+
borderWidth: '0px',
|
|
218
|
+
backgroundRepeat: 'no-repeat',
|
|
219
|
+
'--backgroundSize-w': '',
|
|
220
|
+
'--backgroundSize-h': '',
|
|
221
|
+
'--backgroundPosition-x': '',
|
|
222
|
+
'--backgroundPosition-y': '',
|
|
223
|
+
'--backgroundSize-type': '',
|
|
224
|
+
'--show-visibility': '1',
|
|
225
|
+
'--bg-resource': ''
|
|
226
|
+
}
|
|
227
|
+
methods = {}
|
|
228
|
+
interactionDataList = []
|
|
229
|
+
customResources = {
|
|
230
|
+
css: {
|
|
231
|
+
state: false,
|
|
232
|
+
content: ''
|
|
233
|
+
},
|
|
234
|
+
js: {
|
|
235
|
+
state: false,
|
|
236
|
+
content: ''
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
setRef(el) {
|
|
240
|
+
this.componentRef = el;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
addData(props, value) {
|
|
244
|
+
this.data[props] = value;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
const getParentIds = (component, componentStore) => {
|
|
252
|
+
const paths = [];
|
|
253
|
+
let handle = (_component) => {
|
|
254
|
+
if (_component.parentId && componentStore?.componentDataMap?.[_component.parentId]) {
|
|
255
|
+
paths.push(_component.parentId)
|
|
256
|
+
handle(componentStore.componentDataMap[_component.parentId])
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
handle(component);
|
|
260
|
+
return paths;
|
|
261
|
+
}
|
|
262
|
+
export const componentInForm = (component, componentStore) => {
|
|
263
|
+
if (component.type !== 'form' && component.componentMetaId !== 'subFormContainer') {
|
|
264
|
+
return false;
|
|
265
|
+
}
|
|
266
|
+
const paths = getParentIds(component, componentStore);
|
|
267
|
+
const components = componentStore.componentData.filter(item => paths.includes(item.id)).map(item => item.source.id);
|
|
268
|
+
return components.includes('formContainer');
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
export class DesignComponent extends BaseComponent {
|
|
273
|
+
mode = 'Design'
|
|
274
|
+
|
|
275
|
+
dynamicValueMap = new Map()
|
|
276
|
+
|
|
277
|
+
data = {}
|
|
278
|
+
isShow = true;
|
|
279
|
+
tempActive = false;
|
|
280
|
+
showInPrecis = true;
|
|
281
|
+
|
|
282
|
+
form = {
|
|
283
|
+
model: '',
|
|
284
|
+
dataType: '',
|
|
285
|
+
mexLength: 0,
|
|
286
|
+
decimalPlaces: 2,
|
|
287
|
+
key: ''
|
|
288
|
+
}
|
|
289
|
+
inForm = false;
|
|
290
|
+
showLabel = true;
|
|
291
|
+
|
|
292
|
+
formConfig = {
|
|
293
|
+
showLabel: true,
|
|
294
|
+
labelPosition: 'left',
|
|
295
|
+
labelWidth: '80px',
|
|
296
|
+
subFormType: 'table'
|
|
297
|
+
}
|
|
298
|
+
jsRun;
|
|
299
|
+
eventInstance = useEvent(this);
|
|
300
|
+
dropType = '';
|
|
301
|
+
|
|
302
|
+
excludeTabModules = []
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
*
|
|
306
|
+
* @param {{
|
|
307
|
+
* id: string
|
|
308
|
+
* lib: string
|
|
309
|
+
* type: string
|
|
310
|
+
* [key: string]: any
|
|
311
|
+
* }} configComponent
|
|
312
|
+
* @param {*} param1
|
|
313
|
+
* @returns
|
|
314
|
+
*/
|
|
315
|
+
constructor(configComponent, {
|
|
316
|
+
component,
|
|
317
|
+
parentId,
|
|
318
|
+
addCallbackFn,
|
|
319
|
+
mountedCallbackFn,
|
|
320
|
+
page,
|
|
321
|
+
isPageInit,
|
|
322
|
+
showInPrecis
|
|
323
|
+
} = {}) {
|
|
324
|
+
super()
|
|
325
|
+
if (!configComponent) return
|
|
326
|
+
const targetComponent = configComponent
|
|
327
|
+
if (!targetComponent) {
|
|
328
|
+
console.error('组件不存在')
|
|
329
|
+
return
|
|
330
|
+
}
|
|
331
|
+
if (!page) {
|
|
332
|
+
throw new Error('page不存在')
|
|
333
|
+
}
|
|
334
|
+
this.dropType = !component ? 'source' : 'copy';
|
|
335
|
+
const pageStore = page.store
|
|
336
|
+
this.store = pageStore
|
|
337
|
+
const jsRun = this.jsRun = new AnalysisScript(page);
|
|
338
|
+
|
|
339
|
+
this.createdCallBack = []
|
|
340
|
+
const created = (callBackFn) => {
|
|
341
|
+
this.createdCallBack.push(callBackFn)
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
const getModel = (c, created, store, page) => {
|
|
345
|
+
|
|
346
|
+
// 如果有父级数据容器, 则使用父级数据容器的数据
|
|
347
|
+
const parentDataContainer = store.componentStore.queryParentDataContainer(c)
|
|
348
|
+
if (parentDataContainer) {
|
|
349
|
+
if (parentDataContainer.id === c.parentId) {
|
|
350
|
+
return computed(()=>this.data.contextModel)
|
|
351
|
+
}
|
|
352
|
+
return computed(()=>useContextData({
|
|
353
|
+
parentId: c.parentId,
|
|
354
|
+
store: store
|
|
355
|
+
}, page))
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
const _model = ref({
|
|
359
|
+
model: {},
|
|
360
|
+
item: {
|
|
361
|
+
data: {},
|
|
362
|
+
fields: []
|
|
363
|
+
},
|
|
364
|
+
target: 'data'
|
|
365
|
+
})
|
|
366
|
+
|
|
367
|
+
created((component) => {
|
|
368
|
+
const dataModelValue = component.componentValue?.data?.dataModel
|
|
369
|
+
if (dataModelValue && !component.dataContainer) {
|
|
370
|
+
_model.value.model = page.useDataModel(component.componentValue.data?.dataModel, ({
|
|
371
|
+
watch: ()=>component.componentValue.data?.dataModel,
|
|
372
|
+
loaded: (res)=>{
|
|
373
|
+
_model.value.item.fields = res.selectFields.value
|
|
374
|
+
_model.value.item.data = (Array.isArray(res.data.value) ? res.data.value[0] : res.data.value)
|
|
375
|
+
}
|
|
376
|
+
}))
|
|
377
|
+
}
|
|
378
|
+
})
|
|
379
|
+
|
|
380
|
+
return _model
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
const {
|
|
385
|
+
config: optionConfig,
|
|
386
|
+
data,
|
|
387
|
+
mounted,
|
|
388
|
+
beforeMount,
|
|
389
|
+
beforeDestroy,
|
|
390
|
+
destroyed,
|
|
391
|
+
methods,
|
|
392
|
+
baseStyle
|
|
393
|
+
} = targetComponent.setup({
|
|
394
|
+
store: pageStore,
|
|
395
|
+
component,
|
|
396
|
+
configComponent: component,
|
|
397
|
+
page,
|
|
398
|
+
app: page.app,
|
|
399
|
+
created,
|
|
400
|
+
dataModel: getModel({
|
|
401
|
+
parentId: parentId || component?.parentId
|
|
402
|
+
}, created, pageStore, page)
|
|
403
|
+
})
|
|
404
|
+
const propsConfig = this._bindChange(optionConfig?.props || [], 'props');
|
|
405
|
+
const dataConfig = optionConfig?.data || [];
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
const propsValue = component?.componentValue?.props || {}
|
|
409
|
+
const dataValue = component?.componentValue?.data || {}
|
|
410
|
+
const eventValue = component?.componentValue?.event || {}
|
|
411
|
+
const eventConfig = updateComponentEvent(optionConfig?.event || [], component)
|
|
412
|
+
|
|
413
|
+
const type = targetComponent?.type || 'component'
|
|
414
|
+
const label = targetComponent.label || '未命别名'
|
|
415
|
+
|
|
416
|
+
this.showInPrecis = showInPrecis ?? true;
|
|
417
|
+
this.source = targetComponent.source
|
|
418
|
+
this.type = type
|
|
419
|
+
this.label = label
|
|
420
|
+
this.icon = {
|
|
421
|
+
...targetComponent.icon
|
|
422
|
+
}
|
|
423
|
+
this._key = component?._key || getUuid4()
|
|
424
|
+
this.show = Object.hasOwn(component || {}, 'show') ? component.show : true
|
|
425
|
+
this.id = component?.id || `${type}-${getUuid()}-${ Date.now() }`
|
|
426
|
+
this.uId = component?.uId || this.id;
|
|
427
|
+
this.form = Object.assign(this.form, component?.form, {
|
|
428
|
+
dataType: component?.form?.dataType ? component?.form?.dataType : (configComponent?.dataType?.[0]?.value ?? 'Text')
|
|
429
|
+
});
|
|
430
|
+
this.formConfig = Object.assign(this.formConfig, component?.formConfig);
|
|
431
|
+
this.parentId = component?.parentId || parentId
|
|
432
|
+
this.componentMetaId = component?.componentMetaId || targetComponent.id
|
|
433
|
+
this.name = component?.name || label
|
|
434
|
+
this.active = component ? false : true
|
|
435
|
+
this._isActiveSection = false
|
|
436
|
+
this.inForm = component?.inForm ?? componentInForm(this, pageStore.componentStore);
|
|
437
|
+
this.position = reactive({
|
|
438
|
+
x: 0,
|
|
439
|
+
y: 0,
|
|
440
|
+
w: '100%',
|
|
441
|
+
h: '100%',
|
|
442
|
+
z: 1,
|
|
443
|
+
...(targetComponent?.position || []),
|
|
444
|
+
...(component?.position || [])
|
|
445
|
+
})
|
|
446
|
+
if (component?.customResources) {
|
|
447
|
+
this.customResources = component.customResources
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
this.oldPosition = JSON.parse(JSON.stringify(toRaw(this.position)));
|
|
451
|
+
|
|
452
|
+
const setBaseStyle = (_baseStyle)=>{
|
|
453
|
+
|
|
454
|
+
const baseStyle = {
|
|
455
|
+
...(this.baseStyle || []),
|
|
456
|
+
...(component?.baseStyle || []),
|
|
457
|
+
opacity: 1,
|
|
458
|
+
...(component?.baseStyle ? [] : (_baseStyle || []))
|
|
459
|
+
}
|
|
460
|
+
if (baseStyle.padding) {
|
|
461
|
+
const padding = baseStyle.padding.split(' ');
|
|
462
|
+
if (padding.length === 1) {
|
|
463
|
+
baseStyle.paddingLeft = baseStyle.paddingRight = baseStyle.paddingTop = baseStyle.paddingBottom = padding[0]
|
|
464
|
+
} else if (padding.length === 2) {
|
|
465
|
+
baseStyle.paddingTop = baseStyle.paddingBottom = padding[0]
|
|
466
|
+
baseStyle.paddingLeft = baseStyle.paddingRight = padding[1]
|
|
467
|
+
} else if (padding.length === 3) {
|
|
468
|
+
baseStyle.paddingTop = padding[0]
|
|
469
|
+
baseStyle.paddingLeft = baseStyle.paddingRight = padding[1]
|
|
470
|
+
baseStyle.paddingBottom = padding[2]
|
|
471
|
+
} else if (padding.length === 4) {
|
|
472
|
+
baseStyle.paddingTop = padding[0]
|
|
473
|
+
baseStyle.paddingRight = padding[1]
|
|
474
|
+
baseStyle.paddingBottom = padding[2]
|
|
475
|
+
baseStyle.paddingLeft = padding[3]
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
return baseStyle
|
|
480
|
+
}
|
|
481
|
+
this.baseStyle = setBaseStyle(baseStyle)
|
|
482
|
+
|
|
483
|
+
this.sort = targetComponent?.sort || 0;
|
|
484
|
+
this.setup = targetComponent.setup
|
|
485
|
+
if (targetComponent?.options) {
|
|
486
|
+
this.options = targetComponent.options;
|
|
487
|
+
}
|
|
488
|
+
this.componentConfig = {
|
|
489
|
+
props: propsConfig,
|
|
490
|
+
data: dataConfig,
|
|
491
|
+
event: eventConfig
|
|
492
|
+
}
|
|
493
|
+
this.componentValue = {
|
|
494
|
+
props: updateLocalComponentValue(propsValue, treePropsToData(propsConfig, {initDefaultConfig: !propsValue, builtinComponents})),
|
|
495
|
+
data: updateLocalComponentValue(dataValue, treePropsToData(dataConfig, {initDefaultConfig: !dataValue, builtinComponents})),
|
|
496
|
+
event: updateLocalComponentValue(eventValue, treePropsToData(eventConfig))
|
|
497
|
+
}
|
|
498
|
+
// watch(() => this.inForm.value , () => {
|
|
499
|
+
// this.resetConfig();
|
|
500
|
+
// })
|
|
501
|
+
this.oldComponentValue = JSON.parse(JSON.stringify(this.componentValue));
|
|
502
|
+
this.ref = {
|
|
503
|
+
dom: null
|
|
504
|
+
}
|
|
505
|
+
if (component?.parentSectionId) {
|
|
506
|
+
this.parentSectionId = component.parentSectionId
|
|
507
|
+
}
|
|
508
|
+
if (targetComponent.dialog) {
|
|
509
|
+
this.dialog = targetComponent.dialog;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
this.render = targetComponent.render
|
|
513
|
+
|
|
514
|
+
if (targetComponent.contentContainer) {
|
|
515
|
+
this.contentContainer = true;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
if (targetComponent.excludeTabModules) {
|
|
519
|
+
this.excludeTabModules = targetComponent.excludeTabModules
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
component && (this.active = false)
|
|
523
|
+
methods && (this.methods = {
|
|
524
|
+
...(this.methods || []),
|
|
525
|
+
...methods
|
|
526
|
+
})
|
|
527
|
+
|
|
528
|
+
mounted && (this.mounted = mounted)
|
|
529
|
+
destroyed && (this.destroyed = destroyed)
|
|
530
|
+
beforeMount && (this.beforeMount = beforeMount)
|
|
531
|
+
beforeDestroy && (this.beforeDestroy = beforeDestroy)
|
|
532
|
+
|
|
533
|
+
this.data = {
|
|
534
|
+
staticData: [],
|
|
535
|
+
dynamicData: [],
|
|
536
|
+
componentData: [],
|
|
537
|
+
exportDataValues: reactive({}),
|
|
538
|
+
exportDataOptions: [],
|
|
539
|
+
...(data?.(this) || []),
|
|
540
|
+
...(component?.data || [])
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
if (this.dialog) {
|
|
544
|
+
this.parentId = ''
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
if (targetComponent.dataContainer) {
|
|
548
|
+
this.dataContainer = true;
|
|
549
|
+
this.data.context = {}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
this.interactionDataList = component?.interactionDataList ? component?.interactionDataList : generateEventList(eventConfig?.filter?.((item)=>item.initLoad) || []);
|
|
554
|
+
|
|
555
|
+
!component && this.setActiveComponent()
|
|
556
|
+
|
|
557
|
+
addCallbackFn ? addCallbackFn(this, pageStore) : pageStore.componentStore.componentData.push(this)
|
|
558
|
+
|
|
559
|
+
mountedCallbackFn && (this.__mountedCallbackFn = mountedCallbackFn)
|
|
560
|
+
const componentScript = this.componentScript = pageStore.platformLibStore.getScriptByComponentId(this.id);
|
|
561
|
+
const JsRun = () => {
|
|
562
|
+
componentScript.forEach(
|
|
563
|
+
item => {
|
|
564
|
+
jsRun.run(item.scriptContent, page, this);
|
|
565
|
+
}
|
|
566
|
+
)
|
|
567
|
+
};
|
|
568
|
+
const componentSetup = () => {
|
|
569
|
+
JsRun();
|
|
570
|
+
this.init(true, pageStore);
|
|
571
|
+
}
|
|
572
|
+
const c = targetComponent.render({ component: this, page })
|
|
573
|
+
let _this = this;
|
|
574
|
+
if (c.constructor.name === 'Promise') {
|
|
575
|
+
this.component = markRaw(defineAsyncComponent({
|
|
576
|
+
loader: async () => {
|
|
577
|
+
let _componentModule = await c;
|
|
578
|
+
let _setup = _componentModule.default.setup
|
|
579
|
+
_componentModule.default.setup = function setup(props, ctx) {
|
|
580
|
+
let result = _setup?.(props, ctx);
|
|
581
|
+
componentSetup()
|
|
582
|
+
return result
|
|
583
|
+
}
|
|
584
|
+
return _componentModule
|
|
585
|
+
}
|
|
586
|
+
}))
|
|
587
|
+
} else {
|
|
588
|
+
this.component = markRaw(c);
|
|
589
|
+
let _setup = this.component.setup;
|
|
590
|
+
this.component.setup = function setup(props, ctx) {
|
|
591
|
+
let result = _setup(props, ctx);
|
|
592
|
+
componentSetup();
|
|
593
|
+
return result
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
if (isPageInit !== true) {
|
|
598
|
+
historyStackModel.push({
|
|
599
|
+
actionType: ActionType.AddComponent,
|
|
600
|
+
changes: [
|
|
601
|
+
{
|
|
602
|
+
id: this.id,
|
|
603
|
+
index: pageStore.componentStore.componentData.findIndex(item => item.id === this.id),
|
|
604
|
+
component: JSON.parse(JSON.stringify(this.generatePreviewData()))
|
|
605
|
+
}
|
|
606
|
+
],
|
|
607
|
+
label: `添加${this.name}`
|
|
608
|
+
})
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
// if (this.is)
|
|
612
|
+
// return this;
|
|
613
|
+
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
// resetConfig(){
|
|
617
|
+
// (this.componentConfig.props || (this.componentConfig.props = [])).unshift({
|
|
618
|
+
// label: '表单字段配置',
|
|
619
|
+
// key: 'columnConfig',
|
|
620
|
+
// componentType: 'Collapse',
|
|
621
|
+
// componentProps: {
|
|
622
|
+
// // noCollapse: true,
|
|
623
|
+
// defaultOpen: true
|
|
624
|
+
// },
|
|
625
|
+
// children: [
|
|
626
|
+
// {
|
|
627
|
+
// label: '字段标识',
|
|
628
|
+
// key: 'model',
|
|
629
|
+
// componentType: 'Input',
|
|
630
|
+
// value: `Field_${getUuid4().split('-').shift().toLocaleUpperCase()}`
|
|
631
|
+
// }
|
|
632
|
+
// ]
|
|
633
|
+
// });
|
|
634
|
+
// this.componentValue.props = updateLocalComponentValue(this.componentValue.props , treePropsToData(this.componentConfig.props, {initDefaultConfig: !this.componentValue.props, builtinComponents}))
|
|
635
|
+
|
|
636
|
+
// }
|
|
637
|
+
|
|
638
|
+
// useContext = (component)=>computed(()=>useContextData({
|
|
639
|
+
// parentId: component?.parentId || this.parentId,
|
|
640
|
+
// store: component?.store || this.store
|
|
641
|
+
// }))
|
|
642
|
+
|
|
643
|
+
useContextModel(component, page) {
|
|
644
|
+
// const model = reactive({
|
|
645
|
+
// model:{},
|
|
646
|
+
// item: {},
|
|
647
|
+
// })
|
|
648
|
+
// this.createdCallBack.push((component) => {
|
|
649
|
+
// const
|
|
650
|
+
// })
|
|
651
|
+
// // return computed(()=>{
|
|
652
|
+
// // return useContextData(component, page)
|
|
653
|
+
// // })
|
|
654
|
+
|
|
655
|
+
// return model
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
propChange(prop, oldProp, label, actionType) {
|
|
659
|
+
let value = prop.split('.').reduce((curr, prev) => {
|
|
660
|
+
return curr[prev];
|
|
661
|
+
}, this);
|
|
662
|
+
let oldValue = oldProp.split('.').reduce((curr, prev, index, arr) => {
|
|
663
|
+
const val = curr[prev];
|
|
664
|
+
if (index >= arr.length - 1) {
|
|
665
|
+
if (typeof value === 'object') {
|
|
666
|
+
curr[prev] = JSON.parse(JSON.stringify(value));
|
|
667
|
+
} else {
|
|
668
|
+
curr[prev] = value;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
return val;
|
|
672
|
+
}, this);
|
|
673
|
+
historyStackModel.push({
|
|
674
|
+
actionType: actionType,
|
|
675
|
+
changes: {
|
|
676
|
+
id: this.id,
|
|
677
|
+
prop: prop,
|
|
678
|
+
value: typeof oldValue === 'object' ? JSON.parse(JSON.stringify(value)) : value,
|
|
679
|
+
oldValue: typeof oldValue === 'object' ? JSON.parse(JSON.stringify(oldValue)) : oldValue
|
|
680
|
+
},
|
|
681
|
+
label: label
|
|
682
|
+
})
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
_bindChange(props, type) {
|
|
686
|
+
return props.map(item => {
|
|
687
|
+
let _componentEvent = item.componentEvent || {};
|
|
688
|
+
let _change = _componentEvent.change;
|
|
689
|
+
_componentEvent.change = (opts) => {
|
|
690
|
+
historyStackModel.push({
|
|
691
|
+
actionType: ActionType.UpdateComponent,
|
|
692
|
+
changes: {
|
|
693
|
+
id: opts.activeComponent.id,
|
|
694
|
+
prop: `componentValue.${type}`,
|
|
695
|
+
event: _change && typeof _change === 'function' ? ()=>{
|
|
696
|
+
_change(opts)
|
|
697
|
+
} : null,
|
|
698
|
+
value: JSON.parse(JSON.stringify(opts.activeComponent.componentValue[type])),
|
|
699
|
+
oldValue: JSON.parse(JSON.stringify(opts.activeComponent.oldComponentValue[type]))
|
|
700
|
+
},
|
|
701
|
+
label: `${opts.activeComponent.name}修改${opts.config.label}`
|
|
702
|
+
})
|
|
703
|
+
opts.activeComponent.oldComponentValue = JSON.parse(JSON.stringify(opts.activeComponent.componentValue));
|
|
704
|
+
if (_change && typeof _change === 'function') {
|
|
705
|
+
_change(opts)
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
if (item.children && Array.isArray(item.children)) {
|
|
709
|
+
item.children = this._bindChange(item.children, type)
|
|
710
|
+
}
|
|
711
|
+
if (item.tabChildren && Array.isArray(item.tabChildren)) {
|
|
712
|
+
item.tabChildren = this._bindChange(item.tabChildren, type)
|
|
713
|
+
}
|
|
714
|
+
item.componentEvent = _componentEvent;
|
|
715
|
+
return item;
|
|
716
|
+
})
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
reload() {
|
|
720
|
+
this.isShow = false;
|
|
721
|
+
nextTick(() => {
|
|
722
|
+
this.isShow = true;
|
|
723
|
+
})
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* @description 设置组件激活状态
|
|
728
|
+
* @date 2024/1/28 - 17:54:16
|
|
729
|
+
*
|
|
730
|
+
* @param {*} [targetComponent] - 目标组件 , 如果不传, 则为当前组件
|
|
731
|
+
*/
|
|
732
|
+
setActiveComponent(targetComponent) {
|
|
733
|
+
const target = targetComponent || this
|
|
734
|
+
const activeComponent = this.store.componentStore?.activeComponent
|
|
735
|
+
if (activeComponent?.id === target.id) return
|
|
736
|
+
if (activeComponent?.active) {
|
|
737
|
+
activeComponent.active = false
|
|
738
|
+
}
|
|
739
|
+
document.getElementById('ibspTextarea').focus();
|
|
740
|
+
target.active = true
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* 清除组件激活
|
|
745
|
+
*/
|
|
746
|
+
clearActiveComponent() {
|
|
747
|
+
const store = this.store
|
|
748
|
+
store.componentStore.activeComponent?.active && (store.componentStore.activeComponent.active = false)
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* @description 添加组件, 用于快捷添加组件
|
|
754
|
+
* @date 2024/1/29 - 14:45:29
|
|
755
|
+
*
|
|
756
|
+
* @param {...{}} args
|
|
757
|
+
* @returns {DesignComponent}
|
|
758
|
+
*/
|
|
759
|
+
addComponent(...args) {
|
|
760
|
+
return new DesignComponent(...args)
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* @description 组件点击事件
|
|
765
|
+
* @date 2024/1/28 - 17:37:53
|
|
766
|
+
*
|
|
767
|
+
* @param {*} [targetComponent] - 目标组件 , 如果不传, 则为当前组件
|
|
768
|
+
*/
|
|
769
|
+
click(targetComponent) {
|
|
770
|
+
this.store.componentStore.setTempActiveComponent([]);
|
|
771
|
+
this.setActiveComponent(targetComponent)
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
generatePreviewData() {
|
|
775
|
+
return {
|
|
776
|
+
...this,
|
|
777
|
+
data: {
|
|
778
|
+
staticData: this.data?.staticData,
|
|
779
|
+
dynamicData: []
|
|
780
|
+
},
|
|
781
|
+
componentRef: null,
|
|
782
|
+
dynamicValue: null,
|
|
783
|
+
analysisDynamicValue: null,
|
|
784
|
+
store: null,
|
|
785
|
+
component: null,
|
|
786
|
+
componentConfig: null,
|
|
787
|
+
ref: null,
|
|
788
|
+
dom: null,
|
|
789
|
+
jsRun: '',
|
|
790
|
+
eventInstance: null,
|
|
791
|
+
visible: this.visible
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* @description 销毁组件
|
|
797
|
+
* @date 2024/1/30 - 10:11:57
|
|
798
|
+
* @async
|
|
799
|
+
*
|
|
800
|
+
* @param {*} [targetComponent] - 目标组件 , 如果不传, 则为当前组件
|
|
801
|
+
*/
|
|
802
|
+
async destroy(targetComponent) {
|
|
803
|
+
let component = targetComponent
|
|
804
|
+
if (!(targetComponent instanceof DesignComponent)) {
|
|
805
|
+
component = this
|
|
806
|
+
}
|
|
807
|
+
return new Promise((resolve) => {
|
|
808
|
+
component.__beforeDestroy__()
|
|
809
|
+
|
|
810
|
+
component.active && component.clearActiveComponent()
|
|
811
|
+
const index = this.store.componentStore.componentData.findIndex((item) => item.id === component.id)
|
|
812
|
+
if (index > -1) {
|
|
813
|
+
this.store.componentStore.componentData.splice(index, 1)
|
|
814
|
+
}
|
|
815
|
+
component.__destroyed__()
|
|
816
|
+
resolve(component)
|
|
817
|
+
})
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
get boundingClientRect() {
|
|
822
|
+
return this.ref.dom?.getBoundingClientRect?.()
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
handlePxType(value) {
|
|
826
|
+
return typeof value === 'number' ? `${value}px` : value
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* @description 获取组件样式
|
|
832
|
+
* @date 2024/1/30 - 11:31:23
|
|
833
|
+
*
|
|
834
|
+
* @param {*} [targetComponent] - 目标组件 , 如果不传, 则为当前组件
|
|
835
|
+
* @returns {import('vue').CSSProperties}
|
|
836
|
+
*/
|
|
837
|
+
getComponentStyles(targetComponent) {
|
|
838
|
+
let component = targetComponent || this
|
|
839
|
+
const baseStyle = component?.baseStyle || {}
|
|
840
|
+
const position = component?.position || {}
|
|
841
|
+
|
|
842
|
+
const componentTypeStyle = component?.type === 'layout' ?
|
|
843
|
+
handleLayoutStyle(component.componentValue) : handleComponentStyle(component)
|
|
844
|
+
|
|
845
|
+
const result = {
|
|
846
|
+
width: handlePxType(position.w || position.width),
|
|
847
|
+
height: handlePxType(position.h || position.height),
|
|
848
|
+
top: handlePxType(position.y || position.top),
|
|
849
|
+
left: handlePxType(position.x || position.left),
|
|
850
|
+
...baseStyle,
|
|
851
|
+
...componentTypeStyle
|
|
852
|
+
}
|
|
853
|
+
return result
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
init(insert = false, store) {
|
|
858
|
+
if (insert) {
|
|
859
|
+
this.createdCallBack?.forEach?.((fn) => fn?.(store.componentStore.componentDataMap[this.id]))
|
|
860
|
+
delete this.createdCallBack
|
|
861
|
+
onBeforeMount(() => this.__beforeMount__())
|
|
862
|
+
onMounted(() =>{
|
|
863
|
+
this.__mounted__()
|
|
864
|
+
})
|
|
865
|
+
onBeforeUnmount(() => this.__beforeDestroy__())
|
|
866
|
+
onUnmounted(() => this.__destroyed__())
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
__beforeMount__() {
|
|
872
|
+
this.beforeMount?.(this)
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
__mounted__() {
|
|
876
|
+
let dom = this.ref?.dom
|
|
877
|
+
// const id = `[data-id=ibsp-${this.id}]`
|
|
878
|
+
const id = this.id
|
|
879
|
+
// console.log(this.ref, dom, this.component);
|
|
880
|
+
const setDom = (dom)=>{
|
|
881
|
+
this.ref.dom = dom
|
|
882
|
+
this.insertCSS()
|
|
883
|
+
}
|
|
884
|
+
if (dom) {
|
|
885
|
+
if (!(document.body.contains(dom))) {
|
|
886
|
+
dom = document.getElementById(id)
|
|
887
|
+
}
|
|
888
|
+
} else {
|
|
889
|
+
dom = document.getElementById(id)
|
|
890
|
+
}
|
|
891
|
+
if (!dom) {
|
|
892
|
+
|
|
893
|
+
setTimeout(() => {
|
|
894
|
+
dom = document.getElementById(id)
|
|
895
|
+
if (!dom) {
|
|
896
|
+
console.warn('获取组件dom失败');
|
|
897
|
+
} else {
|
|
898
|
+
|
|
899
|
+
setDom(dom)
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
}, 500);
|
|
903
|
+
} else {
|
|
904
|
+
setDom(dom)
|
|
905
|
+
}
|
|
906
|
+
this.mounted?.(this)
|
|
907
|
+
if (this.dropType === 'source') {
|
|
908
|
+
this.componentRef?.onSourceDrop?.();
|
|
909
|
+
}
|
|
910
|
+
const addMountedCallbackFn = this.__mountedCallbackFn
|
|
911
|
+
if (addMountedCallbackFn) {
|
|
912
|
+
addMountedCallbackFn(this)
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
__beforeDestroy__() {
|
|
917
|
+
this?.beforeDestroy?.(this)
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
__destroyed__() {
|
|
921
|
+
this.destroyed?.(this)
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
get activeChild() {
|
|
926
|
+
return this.store.componentStore.queryComponentChildrenData(this.id).find(component=>component.active)
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
get configComponent() {
|
|
930
|
+
return ''
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
insertCSS() {
|
|
934
|
+
const style = document.querySelector('[data-custom-style=\'' + this.id + '\']')
|
|
935
|
+
if (!this.customResources?.css?.state) {
|
|
936
|
+
if (style) {
|
|
937
|
+
style.remove()
|
|
938
|
+
}
|
|
939
|
+
return
|
|
940
|
+
}
|
|
941
|
+
const _css = this.customResources.css.content
|
|
942
|
+
if (!_css) return
|
|
943
|
+
const dom = this.ref.dom
|
|
944
|
+
|
|
945
|
+
if (dom.contains(style)) {
|
|
946
|
+
style.innerHTML = _css
|
|
947
|
+
} else {
|
|
948
|
+
const styleElement = document.createElement('style')
|
|
949
|
+
styleElement.setAttribute('data-custom-style', this.id)
|
|
950
|
+
styleElement.innerHTML = _css
|
|
951
|
+
dom.appendChild(styleElement)
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
export class PreviewComponent extends BaseComponent {
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
isShow = true;
|
|
963
|
+
jsRun;
|
|
964
|
+
eventInstance = useEvent(this);
|
|
965
|
+
|
|
966
|
+
constructor(component, {
|
|
967
|
+
page,
|
|
968
|
+
configComponent
|
|
969
|
+
} = {}) {
|
|
970
|
+
super()
|
|
971
|
+
if (!configComponent) {
|
|
972
|
+
// throw new Error('组件不存在')
|
|
973
|
+
console.error('组件不存在')
|
|
974
|
+
return
|
|
975
|
+
}
|
|
976
|
+
const pageStore = page.store
|
|
977
|
+
const jsRun = this.jsRun = new AnalysisScript(page);
|
|
978
|
+
const targetComponent = configComponent
|
|
979
|
+
Object.assign(this, component)
|
|
980
|
+
|
|
981
|
+
this.mode = 'Preview'
|
|
982
|
+
this._key = this._key ?? getUuid4()
|
|
983
|
+
this.ref = {}
|
|
984
|
+
this.visible = component.visible ?? true
|
|
985
|
+
|
|
986
|
+
if (component.baseStyle?.['--visibility'] === 'visible') {
|
|
987
|
+
this.visible = true
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
if (targetComponent?.options) {
|
|
991
|
+
this.options = targetComponent.options;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
const componentScript = this.componentScript = pageStore.platformLibStore.getScriptByComponentId(this.id);
|
|
995
|
+
const JsRun = () => {
|
|
996
|
+
componentScript.forEach(
|
|
997
|
+
item => {
|
|
998
|
+
jsRun.run(item.scriptContent, page, this);
|
|
999
|
+
}
|
|
1000
|
+
)
|
|
1001
|
+
};
|
|
1002
|
+
const componentSetup = () => {
|
|
1003
|
+
JsRun();
|
|
1004
|
+
this.init(true);
|
|
1005
|
+
}
|
|
1006
|
+
const c = targetComponent.render({ component: this, page })
|
|
1007
|
+
let _this = this;
|
|
1008
|
+
if (c.constructor.name === 'Promise') {
|
|
1009
|
+
this.component = markRaw(defineAsyncComponent({
|
|
1010
|
+
loader: async () => {
|
|
1011
|
+
let _componentModule = await c;
|
|
1012
|
+
let _setup = _componentModule.default.setup;
|
|
1013
|
+
_componentModule.default.setup = function setup(props, ctx) {
|
|
1014
|
+
let result = _setup?.(props, ctx);
|
|
1015
|
+
componentSetup()
|
|
1016
|
+
return result;
|
|
1017
|
+
}
|
|
1018
|
+
return _componentModule;
|
|
1019
|
+
}
|
|
1020
|
+
}))
|
|
1021
|
+
} else {
|
|
1022
|
+
this.component = markRaw(c)
|
|
1023
|
+
let _setup = this.component.setup;
|
|
1024
|
+
this.component.setup = function setup(props, ctx) {
|
|
1025
|
+
let result = _setup(props, ctx);
|
|
1026
|
+
componentSetup();
|
|
1027
|
+
return result;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
// const c = targetComponent.render({ component: this, page })
|
|
1032
|
+
// if (c.constructor.name === 'Promise') {
|
|
1033
|
+
// this.component = markRaw(defineAsyncComponent(()=> c))
|
|
1034
|
+
// } else {
|
|
1035
|
+
// this.component = markRaw(c)
|
|
1036
|
+
// }
|
|
1037
|
+
this.useContext = (component)=>{
|
|
1038
|
+
return computed(()=>useContextData({
|
|
1039
|
+
parentId: component?.parentId || this.parentId,
|
|
1040
|
+
store: component?.store || this.store
|
|
1041
|
+
}))
|
|
1042
|
+
}
|
|
1043
|
+
this.store = page.store
|
|
1044
|
+
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
getComponentStyles(targetComponent) {
|
|
1048
|
+
let component = targetComponent || this
|
|
1049
|
+
const baseStyle = component?.baseStyle || {}
|
|
1050
|
+
const position = component?.position || {}
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
const componentTypeStyle = component?.type === 'layout' ?
|
|
1054
|
+
handleLayoutStyle(component.componentValue) : handleComponentStyle(component)
|
|
1055
|
+
|
|
1056
|
+
const result = {
|
|
1057
|
+
width: handlePxType(position.w || position.width),
|
|
1058
|
+
height: handlePxType(position.h || position.height),
|
|
1059
|
+
top: handlePxType(position.y || position.top),
|
|
1060
|
+
left: handlePxType(position.x || position.left),
|
|
1061
|
+
...baseStyle,
|
|
1062
|
+
...componentTypeStyle
|
|
1063
|
+
}
|
|
1064
|
+
return result
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
init() {
|
|
1069
|
+
onBeforeMount(() => this.__beforeMount__())
|
|
1070
|
+
onMounted(() =>this.__mounted__())
|
|
1071
|
+
onBeforeUnmount(() => this.__beforeDestroy__())
|
|
1072
|
+
onUnmounted(() => this.__destroyed__())
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
__beforeMount__() {
|
|
1077
|
+
this.componentValue?.event?.beforeMount?.(this)
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
__mounted__() {
|
|
1081
|
+
const dom = document.getElementById(this.id)
|
|
1082
|
+
if (!dom) {
|
|
1083
|
+
// console.error('获取组件dom失败');
|
|
1084
|
+
} else {
|
|
1085
|
+
this.ref.dom = dom
|
|
1086
|
+
this.insertCSS()
|
|
1087
|
+
}
|
|
1088
|
+
this.componentValue?.event?.mounted?.(this)
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
__beforeDestroy__() {
|
|
1092
|
+
this.componentValue?.event?.beforeDestroy?.(this)
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
__destroyed__() {
|
|
1096
|
+
this.componentValue?.event?.destroyed?.(this)
|
|
1097
|
+
}
|
|
1098
|
+
get boundingClientRect() {
|
|
1099
|
+
return this.ref.dom?.getBoundingClientRect?.()
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
insertCSS() {
|
|
1103
|
+
if (!this.customResources?.css?.state) {
|
|
1104
|
+
return
|
|
1105
|
+
}
|
|
1106
|
+
const _css = this.customResources.css.content
|
|
1107
|
+
if (!_css) return
|
|
1108
|
+
const dom = this.ref.dom
|
|
1109
|
+
const style = document.querySelector('[data-custom-style=\'' + this.id + '\']')
|
|
1110
|
+
if (dom.contains(style)) {
|
|
1111
|
+
style.innerHTML = _css
|
|
1112
|
+
} else {
|
|
1113
|
+
const styleElement = document.createElement('style')
|
|
1114
|
+
styleElement.setAttribute('data-custom-style', this.id)
|
|
1115
|
+
styleElement.innerHTML = _css
|
|
1116
|
+
dom.appendChild(styleElement)
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
createComponent = (component, configComponent, page)=>{
|
|
1121
|
+
return new PreviewComponent(component, {page: page, configComponent})
|
|
1122
|
+
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* @description 定义组件
|
|
1130
|
+
*
|
|
1131
|
+
* @param {ComponentDesc} desc - 组件描述对象
|
|
1132
|
+
* @param {function():ComponentOptions} options - 组件配置对象函数, 返回一个配置项对象
|
|
1133
|
+
*/
|
|
1134
|
+
export function defineIbspComponent(desc, setup) {
|
|
1135
|
+
// const id = desc.id
|
|
1136
|
+
// if (!id) {
|
|
1137
|
+
// throw new Error('组件id不能为空')
|
|
1138
|
+
// }
|
|
1139
|
+
// if (localComponents[id]) {
|
|
1140
|
+
// throw new Error(`组件id已存在:${id}`)
|
|
1141
|
+
// }
|
|
1142
|
+
// localComponents[id] = {
|
|
1143
|
+
// ...desc,
|
|
1144
|
+
// setup
|
|
1145
|
+
// }
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
export async function loadLocalComponent() {
|
|
1152
|
+
// if (Object.keys(localComponents).length) return
|
|
1153
|
+
// const modules = await getComponents(
|
|
1154
|
+
// import.meta.glob('@/views/designer/modules/ibsp-component-lib/componentLibs/**/*config.{jsx,js}')
|
|
1155
|
+
// );
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
// return new Promise((resolve) => {
|
|
1159
|
+
// /**
|
|
1160
|
+
// * 获取所有组件
|
|
1161
|
+
// */
|
|
1162
|
+
// modules
|
|
1163
|
+
// .map(item => item.modules)
|
|
1164
|
+
// .forEach(item => {
|
|
1165
|
+
// const id = item.id
|
|
1166
|
+
// if (!id) {
|
|
1167
|
+
// throw new Error('组件id不能为空')
|
|
1168
|
+
// }
|
|
1169
|
+
// if (localComponents[id]) {
|
|
1170
|
+
// // throw new Error(`组件id已存在:${id}`)
|
|
1171
|
+
// console.log(`组件id已存在:${id}`);
|
|
1172
|
+
// return
|
|
1173
|
+
// }
|
|
1174
|
+
// localComponents[id] = {
|
|
1175
|
+
// ...item,
|
|
1176
|
+
// }
|
|
1177
|
+
// })
|
|
1178
|
+
// resolve()
|
|
1179
|
+
// })
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* @description 组件相关的数据模型, 包括组件的描述, 组件的配置项, 组件的数据, 组件的事件, 组件的方法, 组件的渲染函数, 组件的生命周期
|
|
1187
|
+
*/
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* @typedef {'Select' | 'Input'} componentConfigType
|
|
1191
|
+
*/
|
|
1192
|
+
|
|
1193
|
+
/**
|
|
1194
|
+
* @typedef {'element-plus' | 'local'} iconType
|
|
1195
|
+
*/
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* @typedef {'InternetThingsApp' | 'VisualLargeScreenApp' | 'SystemApp' | 'CommonApp'} componentLib - 组件库列表
|
|
1199
|
+
*/
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* @typedef {'layout' | 'basis' | 'form' | 'data' | 'other' | 'chart'} categoryIdList - 分类id列表
|
|
1203
|
+
*/
|
|
1204
|
+
|
|
1205
|
+
/**
|
|
1206
|
+
* @typedef {'component' | 'container' | 'variable' | 'appData' | 'script' | 'const' | 'localComponents'} Store
|
|
1207
|
+
*/
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* @typedef {object} componentPosition - 组件的位置
|
|
1212
|
+
* @property {number} top - 组件距离顶部的距离
|
|
1213
|
+
* @property {number} left - 组件距离左侧的距离
|
|
1214
|
+
* @property {number} width - 组件宽度
|
|
1215
|
+
* @property {number} height - 组件高度
|
|
1216
|
+
*/
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* @typedef {object} ComponentDesc - 组件描述对象
|
|
1220
|
+
* @property {string} id - 组件id, 必填, 必须唯一, 推荐 libId + groupId + categoryId + name
|
|
1221
|
+
* @property {object | [componentLib,categoryIdList,string]} path - 组件路径, 就是左侧组件展示的路径
|
|
1222
|
+
* @property {componentLib} path.libId - 组件库id InternetThingsApp: 物联网应用 | VisualLargeScreenApp:可视化大屏 | SystemApp:系统应用
|
|
1223
|
+
* @property {categoryIdList} path.categoryId - 组件分类id
|
|
1224
|
+
* @property {string} [path.groupName] - 组件组名, 不填默认全部
|
|
1225
|
+
* @property {string} label - 组件名称
|
|
1226
|
+
* @property {object} [icon] - 组件图标
|
|
1227
|
+
* @property {iconType} icon.type - 图标类型,目前支持element-plus, local, local为本地svg图标, 需要在icon下创建
|
|
1228
|
+
* @property {string} icon.value - 图标值, 如果type为local, 则为svg图标的文件名
|
|
1229
|
+
* @property {string} [description] - 组件描述
|
|
1230
|
+
* @property {componentPosition} [position] - 组件位置, 用于初始默认值
|
|
1231
|
+
* @property {'component' | 'layout' | 'popupComponent'} [type] - 组件类型
|
|
1232
|
+
*/
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
* @typedef {object} ConfigItem - 配置项
|
|
1236
|
+
* @property {string} label - 配置属性名称
|
|
1237
|
+
* @property {string} key - 配置属性key
|
|
1238
|
+
* @property {string} value - 配置属性值
|
|
1239
|
+
* @property {componentConfigType} componentConfigType - 组件配置类型
|
|
1240
|
+
* @property {object} componentProps - 配置组件的props
|
|
1241
|
+
* @property {string | object} [componentProps.tooltip] - 配置组件的提示
|
|
1242
|
+
* @property {ConfigItem[]} [children] - 配置属性的下级
|
|
1243
|
+
* @property {ConfigItem[]} [tabChildren] - 配置属性的下级
|
|
1244
|
+
* @property {ConfigItem[]} [defaultConfig] - 默认配置
|
|
1245
|
+
*/
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* @typedef {object} ComponentOptions - 配置项
|
|
1249
|
+
* @property {object} config - 组件配置
|
|
1250
|
+
* @property {ConfigItem[]} config.props - 组件属性配置项
|
|
1251
|
+
* @property {ConfigItem[]} config.data - 组件数据配置项
|
|
1252
|
+
* @property {object[]} config.event - 组件事件配置项
|
|
1253
|
+
* @property {string} config.event.id - 组件事件id
|
|
1254
|
+
* @property {string} config.event.label - 组件事件名称
|
|
1255
|
+
* @property {string} config.event.description - 组件事件描述
|
|
1256
|
+
* @property {string} config.event.key - 组件事件key
|
|
1257
|
+
* @property {object} data - 组件数据
|
|
1258
|
+
* @property {null} data.staticData - 静态数据
|
|
1259
|
+
* @property {null} data.dynamicData - 动态数据
|
|
1260
|
+
* @property {function} render - 渲染函数, 可以为jsx, 或者vue组件
|
|
1261
|
+
* @property {function} mounted - 组件挂载后, 只用于设计模式
|
|
1262
|
+
* @property {function} destroyed - 组件销毁后, 只用于设计模式
|
|
1263
|
+
* @property {function} beforeMount - 组件挂载前, 只用于设计模式
|
|
1264
|
+
* @property {function} beforeDestroy - 组件销毁前, 只用于设计模式
|
|
1265
|
+
* @property {Object} methods - 组件方法, 只用于设计模式
|
|
1266
|
+
* @property {Object} baseStyle - 基础默认样式
|
|
1267
|
+
*/
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* @typedef {ComponentDesc & {options: function():ComponentOptions}} LocalComponentConfig - 组件配置
|
|
1271
|
+
*/
|