diff --git a/README.md b/README.md index 64a5ad2f108237a181718b3027b0ad6cb4dc4bd4..81c77473296e151f9828cb09ce22b4619166f029 100644 --- a/README.md +++ b/README.md @@ -2,16 +2,26 @@
基于naiveui、typescript的表单生成器,支持复杂表格Tree等常用组件
### 简介 -[NaiveUi Form Generate](https://github.com/LvHuaiSheng/naiveui-form-generate),一个基于 Vue3.0、Vite、Naive UI 表单生成器。 +[NaiveUi Form Generate](https://gitee.com/sourcenet/naiveui-form-generate),一个基于 Vue3.0、Vite、Naive UI 表单生成器。 +### 分支说明 +- develop:开发分支,最新代码,但不具有稳定性 +- master:主分支,相对稳定代码(目前develop开发阶段,此分支可暂时忽略) + +### 特别提示 +推荐从Gitee仓库拉取代码,[NaiveUi Form Generate](https://gitee.com/sourcenet/naiveui-form-generate),GitHub提交老是被墙,代码也许不是最新的 ### 功能/计划 +> 基础组件 - 🍉 单行/多行/密码输入组件 √ - 🍉 数字组件 √ - 🍉 单选 √ @@ -21,18 +31,31 @@ - 🍉 评分 √ - 🍉 开关 √ - 🍉 滑块(横向、竖向)√ -- 🍉 富文本编辑器 √ -- 📦 naiveui的新版栅格布局 √ -- 🤹 普通文本 √ -- 🤹 Alert组件 √ -- 🍏 颜色选择器 √ + +- 🍉 颜色选择器 √ + +> 高级组件 - 🍏 树形选择 √ - 🍏 文件上传 √ - 🍏 穿梭框 √ -- 🍏 级联选择 > 进行中 -- 🍏 树形组件 > 进行中 -- 🍏 静态表格(可启用原生样式,实现线上、线下合同表单的一比一样式) > 进行中 +- 🍏 级联选择 > √ +- 🍏 树形组件 > √ +- 🍏 富文本编辑器 √ +- 🍏 动态标签 √ - 🍏 动态表格(主要用作子表的使用,支持弹窗/抽屉/行内编辑等多种样式) > 进行中 + +> 布局组件 +- 📦 naiveui的新版栅格布局 √ +- 📦 静态表格(可启用原生样式,实现线上、线下合同表单的一比一样式)√ +- 📦 标签页 > 筹划中 + +> 其它组件 +- 🤹 普通文本 √ +- 🤹 Alert组件 √ +- 🤹 Divider分割线 √ +- 🤹 按钮 √ + +> 其它优化 - 🚀 单个组件化封装(typescript) - 🚀 细节优化 - 更多...... @@ -43,7 +66,6 @@ ### 文档 - 待编写 - ### 构建 ```shell diff --git a/package.json b/package.json index d8691fd787705a1adc592d710973d434fb3d60a4..b008b23bf9dacd97a96fba1254fe9160eb995a5c 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "scripts": { "dev": "vite", - "build": "vue-tsc --noEmit && vite build", + "build": "vite build", "preview": "vite preview" }, "dependencies": { @@ -22,6 +22,7 @@ "@types/lodash": "^4.14.182", "@types/uuid": "^8.3.4", "@vitejs/plugin-vue": "^2.3.3", + "@vue/compiler-sfc": "^3.2.37", "fast-glob": "^3.2.11", "less": "^4.1.2", "less-loader": "^9.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6d5c9205a96307c1dc40a8a9b6068d1a97e71c17..8df727419e9d6a9a60b4a4245dd00bcca51c020c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,7 @@ specifiers: '@types/lodash': ^4.14.182 '@types/uuid': ^8.3.4 '@vitejs/plugin-vue': ^2.3.3 + '@vue/compiler-sfc': ^3.2.37 ace-builds: ^1.4.12 fast-glob: ^3.2.11 less: ^4.1.2 @@ -36,6 +37,7 @@ devDependencies: '@types/lodash': registry.npmmirror.com/@types/lodash/4.14.182 '@types/uuid': registry.npmmirror.com/@types/uuid/8.3.4 '@vitejs/plugin-vue': registry.npmmirror.com/@vitejs/plugin-vue/2.3.3_vite@2.9.13+vue@3.2.37 + '@vue/compiler-sfc': registry.npmmirror.com/@vue/compiler-sfc/3.2.37 fast-glob: registry.npmmirror.com/fast-glob/3.2.11 less: registry.npmmirror.com/less/4.1.3 less-loader: registry.npmmirror.com/less-loader/9.1.0_less@4.1.3 diff --git a/src/App.vue b/src/App.vue index 7c6cdaf34545955a5d2906a69966fd32f87c1143..d12ea80aa09b04a8cc9d5f197dac0b324d819c5b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@ + + + diff --git a/src/components/naiveui/components/configs/Button.vue b/src/components/naiveui/components/configs/Button.vue new file mode 100644 index 0000000000000000000000000000000000000000..78d64cb7df0166ba9ed8dc24f1949a7f3acea3f0 --- /dev/null +++ b/src/components/naiveui/components/configs/Button.vue @@ -0,0 +1,127 @@ + +
+ |
+
+ |
+