setaria-vxe-table
Version:
一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器、贼灵活的配置项、扩展接口等...
29 lines (27 loc) • 644 B
JavaScript
import VxeFormItem from './form-item'
import { errLog } from '../../tools/log'
export default {
name: 'VxeFormGather',
extends: VxeFormItem,
provide () {
return {
$xeformgather: this,
xeformitem: null,
$xeformiteminfo: {
itemConfig: this.itemConfig
}
}
},
created () {
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
this.$nextTick(() => {
if (this.$xeform && this.$xeform.customLayout) {
errLog('vxe.error.errConflicts', ['custom-layout', '<form-gather ...>'])
}
})
}
},
render (h) {
return h('div', this.$slots.default)
}
}