https://github.com/wangzongming/qnn-curd-vue
An all-around add, delete, check and change front-end VUE components
https://github.com/wangzongming/qnn-curd-vue
curd form qnn-curd-vue qnn-form qnn-table table vue vue-curd
Last synced: 11 months ago
JSON representation
An all-around add, delete, check and change front-end VUE components
- Host: GitHub
- URL: https://github.com/wangzongming/qnn-curd-vue
- Owner: wangzongming
- Created: 2021-05-27T14:04:13.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-18T15:30:52.000Z (almost 5 years ago)
- Last Synced: 2025-06-27T02:16:32.602Z (12 months ago)
- Topics: curd, form, qnn-curd-vue, qnn-form, qnn-table, table, vue, vue-curd
- Language: Vue
- Homepage:
- Size: 71.3 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# qnn-curd-vue
[](https://vuejs.org/)
[](https://element.eleme.io/)
[](https://github.com/wangzongming/qnn-curd-vue/issues)
[](https://www.npmjs.com/package/qnn-curd-vue)
> qnn-curd-vue 表格组件 + 表单组件, 一套致力于前端管理页面 增、删、查、改 功能页面的的前端组件。
> 使用字面量对象描述出字段和接口即可生成表格、表单页面。让管理端页面开发简单起来~~
## 功能列表
- √ 支持使用 json 配置生成所需表单 【推荐】
- √ 支持 pc 端、移动端(ing...)
- √ 支持 多种 种输入控件/输入校验(将持续更新...)
> 你给的一颗颗星就是我最大的动力!
## 在线体验[codesandbox]
-
## 安装
npm i qnn-curd-vue | yarn add qnn-curd-vue
## 引用
// 项目入口文件 main.js
import QnnCurd from 'qnn-curd-vue'
const lodash = require('lodash');
const moment = require('moment');
// 组件内部使用了这四个方法。
Vue.prototype.$cloneDeep = lodash.cloneDeep;
Vue.prototype.$moment = moment;
// ajax 请求方法,根据项目业务来写就行,只要输入和输出和组件规定的一致即可,详情见文档
Vue.prototype.$myFetch = ()=>{}
// 文件上传 方法,根据项目业务来写就行,只要输入和输出和组件规定的一致即可,详情见文档
Vue.prototype.$myUpload = ()=>{}
Vue.use(QnnCurd)
// ...
// 业务页面 Page.vue
export default {
data(){
return {
rowKey:"id",
tableFields:[
{
field: "title",
label: "标题",
},
// ...
]
// ...
}
}
}
## 中文文档
-
## 英文文档
-
## 是否有 react 版本的?
- 有,但是暂时文档还需要整理...
## 是否用的 vue3 来发的?
- 否,使用的 2 开发的