找回密码
 立即注册
首页 业界区 业界 vxe-table v3 表格中使用 a- 集成 ant-design-vue 组件 ...

vxe-table v3 表格中使用 a- 集成 ant-design-vue 组件库的

晖顶蝇 前天 18:28
在公司开发大型项目中,使用主流表格库 vxe-table v3 和  ant-design-vue 组件库,可以在可编辑单元格中渲染非常简单的使用更多的组件
官网:https://vxetable.cn
安装
  1. npm install vxe-pc-ui@3.3.9 vxe-table@3.11.10 @vxe-ui/plugin-render-antd@3.0.1
复制代码
  1. // ...
  2. import VxeUI from 'vxe-pc-ui'
  3. import 'vxe-pc-ui/lib/style.css'
  4. import VxeUITable from 'vxe-table'
  5. import 'vxe-table/lib/style.css'
  6. import VxeUIPluginRenderAntd from '@vxe-ui/plugin-render-antd'
  7. import '@vxe-ui/plugin-render-antd/dist/style.css'
  8. // ...
  9. import Antd from 'ant-design-vue'
  10. import 'ant-design-vue/dist/antd.css'
  11. VxeUI.use(VxeUIPluginRenderAntd)
  12. Vue.use(VxeUI)
  13. Vue.use(VxeUITable)
  14. Vue.use(Antd)
复制代码
使用输入框 a-input

1.png
  1. <template>
  2.   
  3.     <vxe-grid ref="gridRef" v-bind="gridOptions"></vxe-grid>
  4.   
  5. </template>
复制代码
使用下拉框 a-select

2.png
  1. <template>
  2.   
  3.     <vxe-grid ref="gridRef" v-bind="gridOptions"></vxe-grid>
  4.   
  5. </template>
复制代码
使用日期选择 a-date-picker

3.png
  1. <template>
  2.   
  3.     <vxe-grid ref="gridRef" v-bind="gridOptions"></vxe-grid>
  4.   
  5. </template>
复制代码
使用级联选择 a-cascader

4.png
  1. <template>
  2.   
  3.     <vxe-grid ref="gridRef" v-bind="gridOptions"></vxe-grid>
  4.   
  5. </template>
复制代码
还有非常的多,具体需要去看官网文档了
https://gitee.com/xuliangzhan/vxe-table

来源:程序园用户自行投稿发布,如果侵权,请联系站长删除
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
您需要登录后才可以回帖 登录 | 立即注册