form-designer-xinyi 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +10 -0
- package/.vscode/extensions.json +3 -0
- package/.vscode/settings.json +6 -0
- package/LICENSE +21 -0
- package/README.md +236 -0
- package/docs/.vitepress/config.ts +158 -0
- package/docs/.vitepress/theme/custom.css +38 -0
- package/docs/.vitepress/theme/index.ts +7 -0
- package/docs/.vitepress/theme/style.css +36 -0
- package/docs/guide/about/about.md +25 -0
- package/docs/guide/action/customFunctions.md +560 -0
- package/docs/guide/action/publicMethods.md +25 -0
- package/docs/guide/components/EBuilder.md +544 -0
- package/docs/guide/components/EDesigner.md +117 -0
- package/docs/guide/extensions/actionBar.md +55 -0
- package/docs/guide/extensions/component.md +113 -0
- package/docs/guide/extensions/icon.md +41 -0
- package/docs/guide/extensions/rightSidebar.md +57 -0
- package/docs/guide/start/dark-mode.md +149 -0
- package/docs/guide/start/i18n-cn.md +39 -0
- package/docs/guide/start/index.md +59 -0
- package/docs/guide/start/layoutGuide.md +0 -0
- package/docs/guide/start/quick-start.md +179 -0
- package/docs/guide/start/theme.md +122 -0
- package/docs/guide/utils/pageManager.md +97 -0
- package/docs/guide/utils/pluginManager.md +227 -0
- package/docs/index.md +41 -0
- package/docs/package.json +14 -0
- package/docs/public/dark.png +0 -0
- package/docs/public/favicon.ico +0 -0
- package/docs/public/icons/demo.css +539 -0
- package/docs/public/icons/demo_index.html +589 -0
- package/docs/public/icons/iconfont.css +379 -0
- package/docs/public/icons/iconfont.js +1 -0
- package/docs/public/icons/iconfont.json +646 -0
- package/docs/public/icons/iconfont.ttf +0 -0
- package/docs/public/icons/iconfont.woff +0 -0
- package/docs/public/icons/iconfont.woff2 +0 -0
- package/docs/public/layout.jpg +0 -0
- package/docs/public/logo.png +0 -0
- package/docs/public/theme.jpg +0 -0
- package/docs/updateLog.md +364 -0
- package/docs/vite.config.ts +18 -0
- package/docs//345/210/235/345/247/213/345/214/226/345/270/203/345/261/200.jpg +0 -0
- package/docs//350/256/276/350/256/241/345/231/250/344/273/213/347/273/215.md +21 -0
- package/docs//350/256/276/350/256/241/345/231/250/345/270/203/345/261/200.jpg +0 -0
- package/examples/README.md +18 -0
- package/examples/index.html +13 -0
- package/examples/package.json +27 -0
- package/examples/public/favicon.ico +0 -0
- package/examples/src/App.vue +5 -0
- package/examples/src/assets/logo.png +0 -0
- package/examples/src/layout/baseLayout.vue +3 -0
- package/examples/src/layout/components/Header/index.vue +102 -0
- package/examples/src/layout/components/Main/Maximize.vue +77 -0
- package/examples/src/layout/components/Main/index.vue +16 -0
- package/examples/src/layout/components/Menu/index.vue +49 -0
- package/examples/src/layout/index.vue +26 -0
- package/examples/src/main.ts +6 -0
- package/examples/src/router/index.ts +98 -0
- package/examples/src/style/reset.css +253 -0
- package/examples/src/style.less +44 -0
- package/examples/src/views/builder/basic/index.vue +182 -0
- package/examples/src/views/builder/disableDisplay/index.vue +153 -0
- package/examples/src/views/builder/disableDisplay copy/index.vue +111 -0
- package/examples/src/views/builder/loadData/index.vue +195 -0
- package/examples/src/views/builder/sum/index.vue +127 -0
- package/examples/src/views/designer/basic/index.vue +22 -0
- package/examples/src/views/designer/loadData/index.vue +186 -0
- package/examples/src/vite-env.d.ts +1 -0
- package/examples/tsconfig.json +27 -0
- package/examples/tsconfig.node.json +10 -0
- package/examples/vite.config.ts +28 -0
- package/package.json +44 -0
- package/packages/core/LICENSE +21 -0
- package/packages/core/components/asyncLoader/index.less +92 -0
- package/packages/core/components/asyncLoader/index.vue +7 -0
- package/packages/core/components/builder/index.ts +3 -0
- package/packages/core/components/builder/src/builder.vue +217 -0
- package/packages/core/components/builder/src/types.ts +4 -0
- package/packages/core/components/designer/index.ts +3 -0
- package/packages/core/components/designer/src/designer.vue +258 -0
- package/packages/core/components/designer/src/index.less +81 -0
- package/packages/core/components/designer/src/modules/actionBar/index.less +79 -0
- package/packages/core/components/designer/src/modules/actionBar/index.vue +44 -0
- package/packages/core/components/designer/src/modules/attributeView/attributeView.vue +104 -0
- package/packages/core/components/designer/src/modules/attributeView/eventView.vue +76 -0
- package/packages/core/components/designer/src/modules/attributeView/index.less +36 -0
- package/packages/core/components/designer/src/modules/attributeView/styleView.vue +103 -0
- package/packages/core/components/designer/src/modules/componentView/index.less +52 -0
- package/packages/core/components/designer/src/modules/componentView/index.vue +118 -0
- package/packages/core/components/designer/src/modules/editContainer/editNodeItem.vue +74 -0
- package/packages/core/components/designer/src/modules/editContainer/editScreenContainer.vue +142 -0
- package/packages/core/components/designer/src/modules/editContainer/index.less +129 -0
- package/packages/core/components/designer/src/modules/editContainer/index.vue +37 -0
- package/packages/core/components/designer/src/modules/editContainer/nodeItem.vue +91 -0
- package/packages/core/components/designer/src/modules/editContainer/previewJson.vue +61 -0
- package/packages/core/components/designer/src/modules/editContainer/previewWidgets.vue +373 -0
- package/packages/core/components/designer/src/modules/editContainer/toolbar.vue +248 -0
- package/packages/core/components/designer/src/modules/header/index.less +16 -0
- package/packages/core/components/designer/src/modules/header/index.vue +60 -0
- package/packages/core/components/designer/src/modules/outline/index.less +7 -0
- package/packages/core/components/designer/src/modules/outline/outline.vue +39 -0
- package/packages/core/components/designer/src/modules/preview/index.less +0 -0
- package/packages/core/components/designer/src/modules/preview/index.vue +71 -0
- package/packages/core/components/designer/src/modules/rightSidebar/breadcrumb.vue +30 -0
- package/packages/core/components/designer/src/modules/rightSidebar/index.less +75 -0
- package/packages/core/components/designer/src/modules/rightSidebar/index.vue +58 -0
- package/packages/core/components/designer/src/modules/sourceCode/index.less +7 -0
- package/packages/core/components/designer/src/modules/sourceCode/index.vue +34 -0
- package/packages/core/components/designer/src/types.ts +9 -0
- package/packages/core/components/icon/index.ts +2 -0
- package/packages/core/components/icon/src/icon.vue +15 -0
- package/packages/core/components/node/index.ts +2 -0
- package/packages/core/components/node/src/node.vue +350 -0
- package/packages/core/components/tree/index.ts +2 -0
- package/packages/core/components/tree/src/index.less +106 -0
- package/packages/core/components/tree/src/tree.vue +113 -0
- package/packages/core/components/tree/src/treeNodeItem.vue +87 -0
- package/packages/core/components/tree/src/treeNodes.vue +68 -0
- package/packages/core/extensions/EActionEditor/index.less +172 -0
- package/packages/core/extensions/EActionEditor/index.vue +160 -0
- package/packages/core/extensions/EActionEditor/src/EActionEditorItem.vue +133 -0
- package/packages/core/extensions/EActionEditor/src/EActionModal.vue +258 -0
- package/packages/core/extensions/EActionEditor/src/EArgsEditor.vue +61 -0
- package/packages/core/extensions/EActionEditor/src/EScriptEdit.vue +26 -0
- package/packages/core/extensions/EColEditor/index.less +24 -0
- package/packages/core/extensions/EColEditor/index.vue +65 -0
- package/packages/core/extensions/EInputSize/index.vue +59 -0
- package/packages/core/extensions/EOptionsEditor/index.vue +52 -0
- package/packages/core/extensions/EOptionsEditor/optionItem.vue +72 -0
- package/packages/core/extensions/ERuleEditor/ERuleItem.vue +137 -0
- package/packages/core/extensions/ERuleEditor/data.ts +24 -0
- package/packages/core/extensions/ERuleEditor/index.less +17 -0
- package/packages/core/extensions/ERuleEditor/index.vue +154 -0
- package/packages/core/extensions/ERuleEditor/types.ts +17 -0
- package/packages/core/extensions/MonacoEditor/index.ts +31 -0
- package/packages/core/extensions/MonacoEditor/index.vue +147 -0
- package/packages/core/extensions/Page/index.ts +23 -0
- package/packages/core/extensions/Page/index.vue +27 -0
- package/packages/core/extensions/index.ts +73 -0
- package/packages/core/index.less +27 -0
- package/packages/core/index.ts +35 -0
- package/packages/core/package.json +59 -0
- package/packages/core/static/icons/demo.css +539 -0
- package/packages/core/static/icons/demo_index.html +2281 -0
- package/packages/core/static/icons/iconfont.css +372 -0
- package/packages/core/static/icons/iconfont.js +1 -0
- package/packages/core/static/icons/iconfont.json +646 -0
- package/packages/core/static/icons/iconfont.ttf +0 -0
- package/packages/core/static/icons/iconfont.woff +0 -0
- package/packages/core/static/icons/iconfont.woff2 +0 -0
- package/packages/core/static/logo.png +0 -0
- package/packages/core/theme/var.less +175 -0
- package/packages/core/tsconfig.json +19 -0
- package/packages/core/types/epic-designer.ts +75 -0
- package/packages/epic-designer/.babelrc +9 -0
- package/packages/epic-designer/.eslintrc.cjs +76 -0
- package/packages/epic-designer/LICENSE +21 -0
- package/packages/epic-designer/README.md +239 -0
- package/packages/epic-designer/index.ts +13 -0
- package/packages/epic-designer/package.json +75 -0
- package/packages/epic-designer/shims-vue.d.ts +4 -0
- package/packages/epic-designer/tsconfig.json +19 -0
- package/packages/epic-designer/uno.config.ts +79 -0
- package/packages/script/package.json +17 -0
- package/packages/script/src/check-compiled.ts +22 -0
- package/packages/script/tsconfig.json +10 -0
- package/packages/ui/LICENSE +21 -0
- package/packages/ui/antd/button/button.vue +16 -0
- package/packages/ui/antd/button/index.ts +202 -0
- package/packages/ui/antd/card/card.ts +31 -0
- package/packages/ui/antd/card/index.ts +63 -0
- package/packages/ui/antd/cascader/cascader.vue +23 -0
- package/packages/ui/antd/cascader/index.ts +197 -0
- package/packages/ui/antd/checkbox/index.ts +99 -0
- package/packages/ui/antd/col/col.ts +31 -0
- package/packages/ui/antd/col/index.ts +22 -0
- package/packages/ui/antd/color-picker/index.ts +107 -0
- package/packages/ui/antd/date-picker/datePicker.ts +47 -0
- package/packages/ui/antd/date-picker/index.ts +302 -0
- package/packages/ui/antd/form/form.vue +118 -0
- package/packages/ui/antd/form/index.ts +195 -0
- package/packages/ui/antd/form-item/formItem.vue +15 -0
- package/packages/ui/antd/form-item/index.ts +11 -0
- package/packages/ui/antd/formLogic/actionEdit.vue +72 -0
- package/packages/ui/antd/formLogic/actionItem.vue +46 -0
- package/packages/ui/antd/formLogic/conditionEdit.vue +111 -0
- package/packages/ui/antd/formLogic/conditionItem.vue +150 -0
- package/packages/ui/antd/formLogic/drawer.vue +124 -0
- package/packages/ui/antd/formLogic/formLogic.vue +33 -0
- package/packages/ui/antd/formLogic/index.ts +11 -0
- package/packages/ui/antd/formLogic/types.ts +25 -0
- package/packages/ui/antd/index.less +33 -0
- package/packages/ui/antd/index.ts +323 -0
- package/packages/ui/antd/input/index.ts +169 -0
- package/packages/ui/antd/input-number/index.ts +181 -0
- package/packages/ui/antd/input-password/index.ts +152 -0
- package/packages/ui/antd/modal/index.ts +19 -0
- package/packages/ui/antd/modal/modal.vue +82 -0
- package/packages/ui/antd/radio/index.ts +105 -0
- package/packages/ui/antd/row/index.ts +114 -0
- package/packages/ui/antd/row/row.ts +31 -0
- package/packages/ui/antd/select/index.ts +228 -0
- package/packages/ui/antd/slider/index.ts +142 -0
- package/packages/ui/antd/switch/index.ts +141 -0
- package/packages/ui/antd/textarea/index.ts +162 -0
- package/packages/ui/antd/time-picker/index.ts +189 -0
- package/packages/ui/antd/upload-file/index.ts +88 -0
- package/packages/ui/antd/upload-file/uploadFile.ts +117 -0
- package/packages/ui/antd/upload-image/index.ts +69 -0
- package/packages/ui/antd/upload-image/uploadImage.vue +148 -0
- package/packages/ui/elementPlus/button/button.ts +25 -0
- package/packages/ui/elementPlus/button/index.ts +128 -0
- package/packages/ui/elementPlus/card/card.ts +36 -0
- package/packages/ui/elementPlus/card/index.ts +50 -0
- package/packages/ui/elementPlus/cascader/index.ts +216 -0
- package/packages/ui/elementPlus/checkbox/checkbox.ts +31 -0
- package/packages/ui/elementPlus/checkbox/index.ts +140 -0
- package/packages/ui/elementPlus/col/col.ts +31 -0
- package/packages/ui/elementPlus/col/index.ts +21 -0
- package/packages/ui/elementPlus/collapse/collapse.ts +32 -0
- package/packages/ui/elementPlus/collapse/index.ts +41 -0
- package/packages/ui/elementPlus/collapse-item/collapseItem.ts +31 -0
- package/packages/ui/elementPlus/collapse-item/index.ts +12 -0
- package/packages/ui/elementPlus/color-picker/index.ts +110 -0
- package/packages/ui/elementPlus/date-picker/index.ts +218 -0
- package/packages/ui/elementPlus/form/form.vue +99 -0
- package/packages/ui/elementPlus/form/index.ts +147 -0
- package/packages/ui/elementPlus/formItem/formItem.vue +15 -0
- package/packages/ui/elementPlus/formItem/index.ts +11 -0
- package/packages/ui/elementPlus/index.less +79 -0
- package/packages/ui/elementPlus/index.ts +84 -0
- package/packages/ui/elementPlus/input/index.ts +179 -0
- package/packages/ui/elementPlus/input-number/index.ts +145 -0
- package/packages/ui/elementPlus/modal/index.ts +18 -0
- package/packages/ui/elementPlus/modal/modal.ts +68 -0
- package/packages/ui/elementPlus/radio/index.ts +121 -0
- package/packages/ui/elementPlus/radio/radio.ts +32 -0
- package/packages/ui/elementPlus/row/index.ts +105 -0
- package/packages/ui/elementPlus/row/row.ts +32 -0
- package/packages/ui/elementPlus/select/index.ts +283 -0
- package/packages/ui/elementPlus/select/select.ts +31 -0
- package/packages/ui/elementPlus/slider/index.ts +237 -0
- package/packages/ui/elementPlus/switch/index.ts +159 -0
- package/packages/ui/elementPlus/textarea/index.ts +154 -0
- package/packages/ui/elementPlus/upload-file/index.ts +86 -0
- package/packages/ui/elementPlus/upload-file/uploadFile.ts +114 -0
- package/packages/ui/elementPlus/upload-image/index.ts +86 -0
- package/packages/ui/elementPlus/upload-image/uploadImage.ts +151 -0
- package/packages/ui/hooks/index.ts +1 -0
- package/packages/ui/hooks/logic.ts +129 -0
- package/packages/ui/index.ts +22 -0
- package/packages/ui/naiveUi/button/button.ts +25 -0
- package/packages/ui/naiveUi/button/index.ts +146 -0
- package/packages/ui/naiveUi/card/card.ts +32 -0
- package/packages/ui/naiveUi/card/index.ts +25 -0
- package/packages/ui/naiveUi/cascader/index.ts +218 -0
- package/packages/ui/naiveUi/checkbox/checkbox.ts +27 -0
- package/packages/ui/naiveUi/checkbox/index.ts +114 -0
- package/packages/ui/naiveUi/col/col.ts +30 -0
- package/packages/ui/naiveUi/col/index.ts +21 -0
- package/packages/ui/naiveUi/collapse/collapse.ts +31 -0
- package/packages/ui/naiveUi/collapse/index.ts +40 -0
- package/packages/ui/naiveUi/collapse-item/collapseItem.ts +31 -0
- package/packages/ui/naiveUi/collapse-item/index.ts +12 -0
- package/packages/ui/naiveUi/color-picker/index.ts +179 -0
- package/packages/ui/naiveUi/date-picker/index.ts +210 -0
- package/packages/ui/naiveUi/form/form.vue +85 -0
- package/packages/ui/naiveUi/form/index.ts +141 -0
- package/packages/ui/naiveUi/form-item/formItem.vue +15 -0
- package/packages/ui/naiveUi/form-item/index.ts +10 -0
- package/packages/ui/naiveUi/index.less +33 -0
- package/packages/ui/naiveUi/index.ts +80 -0
- package/packages/ui/naiveUi/input/index.ts +215 -0
- package/packages/ui/naiveUi/input-number/index.ts +141 -0
- package/packages/ui/naiveUi/modal/index.ts +18 -0
- package/packages/ui/naiveUi/modal/modal.ts +83 -0
- package/packages/ui/naiveUi/radio/index.ts +94 -0
- package/packages/ui/naiveUi/radio/radio.ts +27 -0
- package/packages/ui/naiveUi/row/index.ts +105 -0
- package/packages/ui/naiveUi/row/row.ts +31 -0
- package/packages/ui/naiveUi/select/index.ts +193 -0
- package/packages/ui/naiveUi/slider/index.ts +181 -0
- package/packages/ui/naiveUi/switch/index.ts +133 -0
- package/packages/ui/naiveUi/upload-file/index.ts +82 -0
- package/packages/ui/naiveUi/upload-file/uploadFile.ts +78 -0
- package/packages/ui/naiveUi/upload-image/index.ts +82 -0
- package/packages/ui/naiveUi/upload-image/uploadImage.ts +152 -0
- package/packages/ui/package.json +18 -0
- package/packages/ui/tsconfig.json +19 -0
- package/packages/utils/LICENSE +21 -0
- package/packages/utils/common/common.ts +18 -0
- package/packages/utils/common/component.ts +22 -0
- package/packages/utils/common/data.ts +682 -0
- package/packages/utils/common/element.ts +166 -0
- package/packages/utils/common/index.ts +6 -0
- package/packages/utils/common/string.ts +18 -0
- package/packages/utils/common/theme.ts +84 -0
- package/packages/utils/index.ts +3 -0
- package/packages/utils/manager/index.ts +3 -0
- package/packages/utils/manager/pageManager.ts +157 -0
- package/packages/utils/manager/pluginManager.ts +586 -0
- package/packages/utils/manager/revoke.ts +128 -0
- package/packages/utils/package.json +7 -0
- package/packages/utils/shareStore/index.ts +30 -0
- package/packages/utils/tsconfig.json +19 -0
- package/packages/utils/vite.config.ts +39 -0
- package/pnpm-workspace.yaml +5 -0
- package/turbo.json +20 -0
package/.eslintrc.js
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 kchengz
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
<h3 align="center" style="background-image:-webkit-linear-gradient(left,#44c0fa,#c26cf6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;">EpicDesigner</h3>
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<h4 align="center">一个开箱即用的拖拽式的可视化低代码设计器</h4>
|
|
7
|
+
|
|
8
|
+
<p align="center">
|
|
9
|
+
<a href="https://github.com/vuejs/core">
|
|
10
|
+
<img src="https://img.shields.io/badge/vue-3.3.4-brightgreen.svg" alt="vue">
|
|
11
|
+
</a>
|
|
12
|
+
<a href="https://github.com/microsoft/TypeScript">
|
|
13
|
+
<img src="https://img.shields.io/badge/typescript-5.1.6-blue" alt="ant-design-vue">
|
|
14
|
+
</a>
|
|
15
|
+
<a href="#">
|
|
16
|
+
<img src="https://img.shields.io/github/license/mashape/apistatus.svg" alt="license">
|
|
17
|
+
</a>
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
📦github仓库:[https://github.com/Kchengz/epic-designer](https://github.com/Kchengz/epic-designer)
|
|
22
|
+
|
|
23
|
+
📦gitee仓库:[https://gitee.com/kcz66/epic-designer](https://gitee.com/kcz66/epic-designer)
|
|
24
|
+
|
|
25
|
+
📖文档地址:[https://docs.epicjs.cn](https://docs.epicjs.cn)
|
|
26
|
+
|
|
27
|
+
📖文档备用地址:[https://www.kcz66.com/epic-designer/](https://www.kcz66.com/epic-designer/)
|
|
28
|
+
|
|
29
|
+
💎项目预览地址:
|
|
30
|
+
|
|
31
|
+
- ElementPlus:[https://epic.kcz66.com/element-plus/basic](https://epic.kcz66.com/element-plus/basic?maximize=1)
|
|
32
|
+
- AntDesignVue:[https://epic.kcz66.com/ant-designe-vue/basic](https://epic.kcz66.com/ant-designe-vue/basic?maximize=1)
|
|
33
|
+
- NaiveUi:[https://epic.kcz66.com/naive-ui/basic](https://epic.kcz66.com/naive-ui/basic?maximize=1)
|
|
34
|
+
|
|
35
|
+
> 使用必须遵守国家法律法规,⛔不允许非法项目使用,后果自负❗
|
|
36
|
+
|
|
37
|
+
## 简介
|
|
38
|
+
|
|
39
|
+
可以简称`epic设计器`,是一个功能强大、开箱即用的拖拽式低代码设计器。它基于 Vue3 开发,兼容多套 UI 组件库,除了基础的页面设计功能,EpicDesigner 还提供了强大的扩展功能,可以让开发者根据自己的需求自由扩展和定制组件。此外,EpicDesigner使用 JSON 配置来生成页面,可帮助开发者快速生成页面,提高开发效率。它提供了两个重要组件:`e-designer` 设计器和 `e-builder` 生成器。
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## 最新版本
|
|
43
|
+
|
|
44
|
+
[](https://www.npmjs.com/package/epic-designer)
|
|
45
|
+
|
|
46
|
+
[查看更新日志](./docs/updateLog.md)
|
|
47
|
+
|
|
48
|
+
#### 功能
|
|
49
|
+
|
|
50
|
+
- [x] 拖拽设计
|
|
51
|
+
- [x] 自定义 actionBar
|
|
52
|
+
- [x] 布局组件扩展
|
|
53
|
+
- [x] 自定义组件扩展
|
|
54
|
+
- [x] 事件扩展
|
|
55
|
+
- [x] 组件懒加载
|
|
56
|
+
- [x] 完善布局
|
|
57
|
+
- [x] 组件属性自定义
|
|
58
|
+
- [x] 支持不同 UI
|
|
59
|
+
- [x] 插件扩展
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
## 核心组件介绍
|
|
64
|
+
|
|
65
|
+
#### EDesigner 设计器
|
|
66
|
+
|
|
67
|
+
`EDesigner ` 是一个可视化设计器组件,用户可以通过拖拽组件的方式快速生成 JSON 配置。它提供了丰富的组件库和配置项,用户可以根据需要选择合适的组件并配置相应的属性、事件和动作。设计器还提供了实时预览功能,用户可以随时查看所设计页面的效果。最终,用户可以将 JSON 配置导出,用于页面的生成和修改。
|
|
68
|
+
|
|
69
|
+
#### EBuilder 生成器
|
|
70
|
+
|
|
71
|
+
`EBuilder` 是一个页面构建组件,它可以将设计器生成的 JSON 配置构建成页面,完成组件的渲染、事件绑定和数据回显等操作。
|
|
72
|
+
|
|
73
|
+
## 安装 epic-designer
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
npm i epic-designer
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
epic-designer 目标是支持多 UI 兼容,目前支持以下 UI
|
|
80
|
+
|
|
81
|
+
- element-plus
|
|
82
|
+
- ant-design-vue
|
|
83
|
+
- naive-ui
|
|
84
|
+
|
|
85
|
+
## 选择 UI 组件库
|
|
86
|
+
|
|
87
|
+
### 选择 element-plus
|
|
88
|
+
|
|
89
|
+
安装ui框架依赖
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
npm i element-plus
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
main.ts 或者 main.js 引入注册组件
|
|
96
|
+
|
|
97
|
+
```javascript
|
|
98
|
+
// 引入epic-designer样式
|
|
99
|
+
import "epic-designer/dist/style.css";
|
|
100
|
+
|
|
101
|
+
// 引入Element plus样式
|
|
102
|
+
import "element-plus/dist/index.css";
|
|
103
|
+
|
|
104
|
+
import { setupElementPlus } from "epic-designer/dist/ui/elementPlus";
|
|
105
|
+
// 注册Element UI
|
|
106
|
+
setupElementPlus();
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### 选择 ant-design-vue v4.x版本(antd推荐使用v4.x版本)
|
|
110
|
+
|
|
111
|
+
安装ui框架依赖
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
npm i ant-design-vue
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
main.ts 或者 main.js 引入注册组件
|
|
118
|
+
|
|
119
|
+
```javascript
|
|
120
|
+
// 引入epic-designer样式
|
|
121
|
+
import "epic-designer/dist/style.css";
|
|
122
|
+
|
|
123
|
+
// 引入antd UI 重置样式
|
|
124
|
+
import "ant-design-vue/dist/reset.css";
|
|
125
|
+
|
|
126
|
+
import { setupAntd } from "epic-designer/dist/ui/antd";
|
|
127
|
+
// 使用Antd UI
|
|
128
|
+
setupAntd();
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### ant-design-vue v3.x版本需要改成下面方式
|
|
132
|
+
|
|
133
|
+
为了减少维护精力,后续开发测试主要以 v4.x版本,不再对v3.x版本进行测试,建议升级ant-design-vue到v4.x最新版本
|
|
134
|
+
|
|
135
|
+
```javascript
|
|
136
|
+
// 引入epic-designer样式
|
|
137
|
+
import "epic-designer/dist/style.css";
|
|
138
|
+
|
|
139
|
+
// 引入antd UI样式
|
|
140
|
+
import "ant-design-vue/dist/antd.css";
|
|
141
|
+
|
|
142
|
+
import { setupAntd } from "epic-designer/dist/ui/antd";
|
|
143
|
+
// 使用Antd UI
|
|
144
|
+
setupAntd();
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### 选择 naive-ui
|
|
148
|
+
|
|
149
|
+
安装ui框架依赖
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
npm i -D naive-ui
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
main.ts 或者 main.js 引入注册组件
|
|
156
|
+
|
|
157
|
+
```javascript
|
|
158
|
+
// 引入epic-designer样式
|
|
159
|
+
import "epic-designer/dist/style.css";
|
|
160
|
+
|
|
161
|
+
import { setupNaiveUi } from "epic-designer/dist/ui/naiveUi";
|
|
162
|
+
// 注册Naive Ui
|
|
163
|
+
setupNaiveUi();
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
## EDesigner(设计器) 基础用法
|
|
167
|
+
|
|
168
|
+
```vue
|
|
169
|
+
<template>
|
|
170
|
+
<div class="h-full">
|
|
171
|
+
<EDesigner />
|
|
172
|
+
</div>
|
|
173
|
+
</template>
|
|
174
|
+
<script setup lang="ts">
|
|
175
|
+
import { EDesigner } from "epic-designer";
|
|
176
|
+
</script>
|
|
177
|
+
<style>
|
|
178
|
+
.h-full {
|
|
179
|
+
height: 100vh;
|
|
180
|
+
}
|
|
181
|
+
</style>
|
|
182
|
+
```
|
|
183
|
+
## EBuilder(生成器) 基础用法
|
|
184
|
+
|
|
185
|
+
```vue
|
|
186
|
+
<template>
|
|
187
|
+
<div>
|
|
188
|
+
<EBuilder :pageSchema="pageSchema" />
|
|
189
|
+
</div>
|
|
190
|
+
</template>
|
|
191
|
+
<script setup>
|
|
192
|
+
import { EBuilder } from "epic-designer";
|
|
193
|
+
|
|
194
|
+
const pageSchema = {
|
|
195
|
+
schemas: [
|
|
196
|
+
{
|
|
197
|
+
type: "page",
|
|
198
|
+
id: "root",
|
|
199
|
+
children: [
|
|
200
|
+
{
|
|
201
|
+
label: "输入框",
|
|
202
|
+
type: "input",
|
|
203
|
+
field: "input",
|
|
204
|
+
icon: "epic-icon-write",
|
|
205
|
+
input: true,
|
|
206
|
+
componentProps: {
|
|
207
|
+
defaultValue: "",
|
|
208
|
+
placeholder: "请输入",
|
|
209
|
+
size: "default",
|
|
210
|
+
type: "text",
|
|
211
|
+
},
|
|
212
|
+
id: "gbm1xhrrj5s00",
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
componentProps: {
|
|
216
|
+
style: {
|
|
217
|
+
padding: "16px",
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
};
|
|
223
|
+
</script>
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
## 交流
|
|
227
|
+
|
|
228
|
+
点击链接加入 qq 群聊
|
|
229
|
+
|
|
230
|
+
- [【epic-designer 交流群:747609683】](https://jq.qq.com/?_wv=1027&k=CtrM9ce2)
|
|
231
|
+
|
|
232
|
+
## 捐赠
|
|
233
|
+
如果你觉得epic-designer对你有帮助,欢迎给我捐赠
|
|
234
|
+
|
|
235
|
+

|
|
236
|
+
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { defineConfig } from "vitepress";
|
|
2
|
+
export default defineConfig({
|
|
3
|
+
// 网站标题
|
|
4
|
+
title: "EpicDesigner文档",
|
|
5
|
+
// 网站描述
|
|
6
|
+
description: "低代码可视化设计器及生成器",
|
|
7
|
+
lang: "zh-CN",
|
|
8
|
+
base: "/",
|
|
9
|
+
sitemap: {
|
|
10
|
+
hostname: "https://docs.epicjs.cn",
|
|
11
|
+
},
|
|
12
|
+
// 打包目录
|
|
13
|
+
head: [
|
|
14
|
+
// 添加图标
|
|
15
|
+
["link", { rel: "epic-icon", type: "image/x-icon", href: "/favicon.ico" }],
|
|
16
|
+
],
|
|
17
|
+
// 主题配置
|
|
18
|
+
themeConfig: {
|
|
19
|
+
logo: "https://epic.kcz66.com/static/logo.png",
|
|
20
|
+
algolia: {
|
|
21
|
+
appId: "PUN9QM5E0U",
|
|
22
|
+
apiKey: "29a246325412eeb2df1f9108a3a11885",
|
|
23
|
+
indexName: "kcz66-gitee",
|
|
24
|
+
},
|
|
25
|
+
editLink: {
|
|
26
|
+
text: "为此页提供修改建议",
|
|
27
|
+
pattern: "https://github.com/Kchengz/epic-designer/issues",
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
socialLinks: [
|
|
31
|
+
{ icon: "github", link: "https://github.com/Kchengz/epic-designer" },
|
|
32
|
+
],
|
|
33
|
+
footer: {
|
|
34
|
+
copyright:
|
|
35
|
+
"本文档内容版权为 EpicDesigner 作者kchengz所有,保留所有权利。",
|
|
36
|
+
},
|
|
37
|
+
nav: [
|
|
38
|
+
{
|
|
39
|
+
text: "文档",
|
|
40
|
+
link: "/guide/start/index",
|
|
41
|
+
activeMatch: "/guide/start/index",
|
|
42
|
+
},
|
|
43
|
+
{ text: "更新日志", link: "/updateLog", activeMatch: "/updateLog" },
|
|
44
|
+
{
|
|
45
|
+
text: "关于作者 | 赞助",
|
|
46
|
+
link: "/guide/about/about",
|
|
47
|
+
activeMatch: "/about",
|
|
48
|
+
},
|
|
49
|
+
// { text: "个人博客", link: "https://www.kcz66.com" },
|
|
50
|
+
{
|
|
51
|
+
text: "相关链接",
|
|
52
|
+
items: [
|
|
53
|
+
{
|
|
54
|
+
text: "Vue3",
|
|
55
|
+
link: "https://cn.vuejs.org/",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
text: "Vite",
|
|
59
|
+
link: "https://cn.vitejs.dev/",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
text: "TypeScript",
|
|
63
|
+
link: "https://www.typescriptlang.org/",
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
sidebar: {
|
|
69
|
+
"/guide/": [
|
|
70
|
+
{
|
|
71
|
+
text: "介绍",
|
|
72
|
+
items: [
|
|
73
|
+
{
|
|
74
|
+
text: "简介",
|
|
75
|
+
link: "/guide/start/index",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
text: "快速上手",
|
|
79
|
+
link: "/guide/start/quick-start",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
text: "国际化",
|
|
83
|
+
link: "/guide/start/i18n-cn",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
text: "定制主题",
|
|
87
|
+
link: "/guide/start/theme",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
text: "暗黑模式",
|
|
91
|
+
link: "/guide/start/dark-mode",
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
text: "组件",
|
|
97
|
+
items: [
|
|
98
|
+
{
|
|
99
|
+
text: "Designer 设计器",
|
|
100
|
+
link: "/guide/components/EDesigner",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
text: "Builder 生成器",
|
|
104
|
+
link: "/guide/components/EBuilder",
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
text: "事件动作",
|
|
110
|
+
items: [
|
|
111
|
+
{
|
|
112
|
+
text: "自定义函数",
|
|
113
|
+
link: "/guide/action/customFunctions",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
text: "公共函数",
|
|
117
|
+
link: "/guide/action/publicMethods",
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
text: "扩展",
|
|
123
|
+
items: [
|
|
124
|
+
{
|
|
125
|
+
text: "Icon 图标",
|
|
126
|
+
link: "/guide/extensions/icon",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
text: "组件扩展",
|
|
130
|
+
link: "/guide/extensions/component",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
text: "活动栏扩展",
|
|
134
|
+
link: "/guide/extensions/actionBar",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
text: "右侧边栏扩展",
|
|
138
|
+
link: "/guide/extensions/rightSidebar",
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
text: "更多",
|
|
144
|
+
items: [
|
|
145
|
+
{
|
|
146
|
+
text: "pluginManager 插件管理器",
|
|
147
|
+
link: "/guide/utils/pluginManager",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
text: "pageManager 页面管理器",
|
|
151
|
+
link: "/guide/utils/pageManager",
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* .vitepress/theme/custom.css */
|
|
2
|
+
:root {
|
|
3
|
+
--vp-home-hero-name-color: #3e8bf2;
|
|
4
|
+
|
|
5
|
+
--vp-button-brand-bg: #3e8bf2;
|
|
6
|
+
--vp-button-brand-border: #63a1f3;
|
|
7
|
+
|
|
8
|
+
--vp-button-brand-hover-bg: #3e8bf2dd;
|
|
9
|
+
--vp-button-brand-hover-border: #63a1f3dd;
|
|
10
|
+
|
|
11
|
+
--vp-c-brand-dark: var(--vp-button-brand-bg);
|
|
12
|
+
|
|
13
|
+
--vp-home-hero-image-background-image: #007cf5;
|
|
14
|
+
--vp-home-hero-image-filter: #00bffd;
|
|
15
|
+
--vp-c-brand: #3e8bf2;
|
|
16
|
+
|
|
17
|
+
--vp-custom-block-tip-border: #3e8bf280;
|
|
18
|
+
--vp-custom-block-tip-text: #15335f;
|
|
19
|
+
--vp-custom-block-tip-bg: #3e8bf20d;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* 首页样式 start */
|
|
23
|
+
.VPHome .clip {
|
|
24
|
+
background-image: -webkit-linear-gradient(left, #007cf5, #00bffd);
|
|
25
|
+
-webkit-text-fill-color: transparent;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.image-container > .image-bg {
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* .has-sidebar .content {
|
|
32
|
+
position: relative;
|
|
33
|
+
z-index: 88;
|
|
34
|
+
} */
|
|
35
|
+
|
|
36
|
+
.epic-designer-main a {
|
|
37
|
+
text-decoration: none;
|
|
38
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.DocSearch-Button {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
align-items: center;
|
|
5
|
+
margin: 0;
|
|
6
|
+
padding: 0;
|
|
7
|
+
width: 32px;
|
|
8
|
+
height: 32px;
|
|
9
|
+
border-radius: 4px;
|
|
10
|
+
background: transparent;
|
|
11
|
+
transition: border-color 0.25s;
|
|
12
|
+
}
|
|
13
|
+
@media (min-width: 768px) {
|
|
14
|
+
.DocSearch-Button {
|
|
15
|
+
justify-content: flex-start;
|
|
16
|
+
border: 1px solid transparent;
|
|
17
|
+
border-radius: 8px;
|
|
18
|
+
padding: 0 10px 0 12px;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 40px;
|
|
21
|
+
background-color: var(--vp-c-bg-alt);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
@media (max-width: 768px) {
|
|
25
|
+
.DocSearch-Button-Keys {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
.VPNavBarHamburger {
|
|
29
|
+
height: 32px !important;
|
|
30
|
+
width: 32px !important;
|
|
31
|
+
border-radius: 4px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.DocSearch-Button:hover {
|
|
35
|
+
background-color: #f5f5f6;
|
|
36
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
## 作者信息
|
|
2
|
+
|
|
3
|
+
橙子/男
|
|
4
|
+
|
|
5
|
+
对于编程和开发世界的热爱驱使着我不断探索,希望用有趣的代码创造出有趣的事物。
|
|
6
|
+
|
|
7
|
+
Github主页:https://github.com/Kchengz
|
|
8
|
+
|
|
9
|
+
Gitee主页:[https://gitee.com/kcz66](https://gitee.com/kcz66)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
个人博客:http://www.kcz66.com(更新少,没啥内容)
|
|
14
|
+
|
|
15
|
+
开源项目:
|
|
16
|
+
|
|
17
|
+
- EpicDesigner低代码设计器:[epic-designer](https://gitee.com/kcz66/epic-designer) <img src="https://gitee.com/kcz66/epic-designer/badge/star.svg" style="display: inline; top: 6px; border-radius: 0px;transform: translateY(5px);" />
|
|
18
|
+
|
|
19
|
+
- KFormDesign表单设计器:[k-form-design](https://gitee.com/kcz66/k-form-design) <img src="https://gitee.com/kcz66/k-form-design/badge/star.svg" style="display: inline; top: 6px; border-radius: 0px;transform: translateY(5px);" />
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## 赞助
|
|
23
|
+
如果你觉得EpicDesigner对你有帮助,欢迎给我捐赠
|
|
24
|
+
|
|
25
|
+

|