1
0
mirror of synced 2025-12-07 22:28:34 +08:00

fix 修复 form 无法显示问题 #I9R6U5

This commit is contained in:
xuliangzhan
2024-05-22 11:02:08 +08:00
parent 783820e179
commit a56eb8bddb
2 changed files with 6 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "vxe-table", "name": "vxe-table",
"version": "4.6.15", "version": "4.6.16",
"description": "一个基于 vue 的 PC 端表格组件支持增删改查、虚拟树、列拖拽懒加载、快捷菜单、数据校验、树形结构、打印导出、自定义模板、渲染器、JSON 配置式...", "description": "一个基于 vue 的 PC 端表格组件支持增删改查、虚拟树、列拖拽懒加载、快捷菜单、数据校验、树形结构、打印导出、自定义模板、渲染器、JSON 配置式...",
"scripts": { "scripts": {
"update": "npm install --legacy-peer-deps", "update": "npm install --legacy-peer-deps",

View File

@@ -1,4 +1,4 @@
import { defineComponent, h, ref, Ref, createCommentVNode, provide, computed, inject, reactive, watch, nextTick, PropType, onMounted } from 'vue' import { defineComponent, h, ref, Ref, createCommentVNode, provide, computed, inject, reactive, watch, nextTick, PropType } from 'vue'
import XEUtils from 'xe-utils' import XEUtils from 'xe-utils'
import GlobalConfig from '../../v-x-e-table/src/conf' import GlobalConfig from '../../v-x-e-table/src/conf'
import { VXETable } from '../../v-x-e-table' import { VXETable } from '../../v-x-e-table'
@@ -642,17 +642,6 @@ export default defineComponent({
reactData.collapseAll = !!value reactData.collapseAll = !!value
}) })
onMounted(() => {
nextTick(() => {
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
if (props.customLayout && props.items) {
errLog('vxe.error.errConflicts', ['custom-layout', 'items'])
}
}
loadItem(props.items || [])
})
})
const renderVN = () => { const renderVN = () => {
const { loading, className, data, customLayout } = props const { loading, className, data, customLayout } = props
const { formItems } = reactData const { formItems } = reactData
@@ -700,6 +689,10 @@ export default defineComponent({
$xeform.renderVN = renderVN $xeform.renderVN = renderVN
if (props.items) {
loadItem(props.items)
}
provide('$xeform', $xeform) provide('$xeform', $xeform)
provide('$xeformgather', null) provide('$xeformgather', null)
provide('$xeformitem', null) provide('$xeformitem', null)