vxe-form table 实现折叠表单

  • vxe-form table 实现折叠表单已关闭评论
  • 4 次浏览
  • A+
所属分类:Web前端
摘要

官网:https://vxeui.comhttps://gitee.com/x-extends/vxe-pc-ui

官网:https://vxeui.com

vxe-form table 实现折叠表单

vxe-form table 实现折叠表单

<template>   <div>     <vxe-form       v-bind="formOptions"       @submit="submitEvent">     </vxe-form>   </div> </template>  <script> import { VxeUI } from 'vxe-pc-ui'  export default {   data () {     const formOptions = {       titleWidth: 100,       titleColon: true,       titleAlign: 'right',       data: {         name: 'test1',         role: '',         nickname: 'Testing',         sex: '',         age: '',         num: '',         createDate: '',         updateDate: ''       },       items: [         { field: 'name', title: '名称', span: 12, itemRender: { name: 'VxeInput' } },         { field: 'nickname', title: '昵称', span: 12, itemRender: { name: 'VxeInput' } },         { field: 'role', title: '角色', span: 12, folding: true, itemRender: { name: 'VxeInput' } },         { field: 'sex', title: '性别', span: 12, folding: true, itemRender: { name: 'VxeInput' } },         { field: 'age', title: '年龄', span: 12, folding: true, itemRender: { name: 'VxeInput' } },         { field: 'num', title: '大小', span: 12, folding: true, itemRender: { name: 'VxeInput' } },         { field: 'createDate', title: '创建时间', span: 12, folding: true, itemRender: { name: 'VxeInput' } },         { field: 'updateDate', title: '更新时间', span: 12, folding: true, itemRender: { name: 'VxeInput' } },         {           align: 'center',           span: 24,           collapseNode: true,           itemRender: {             name: 'VxeButtonGroup',             options: [               { type: 'submit', content: '搜索', status: 'primary' },               { type: 'reset', content: '重置' }             ]           }         }       ]     }     return {       formOptions     }   },   methods: {     submitEvent () {       VxeUI.modal.message({ content: '保存成功', status: 'success' })     }   } } </script> 

https://gitee.com/x-extends/vxe-pc-ui