feat: vxe/antd可编辑表格适配器 & 可编辑demo

This commit is contained in:
dap
2025-08-07 20:31:41 +08:00
parent 97231de753
commit c92d6a2b1d
3 changed files with 104 additions and 30 deletions

View File

@@ -6,6 +6,15 @@ import { usePreferences } from '@vben/preferences';
import { useVbenForm } from '@vben-core/form-ui';
/**
* 该插件提供了在表格中渲染第三方组件,用于兼容 ant-design-vue 组件库
*
* 解决组件问题(如select浮层与失焦冲突)
*
* @see https://vxeui.com/other4/#/plugin-render-antd/start/full/npmInstall
* @see https://vxetable.cn/other4/#/table/other/antd
*/
import VxeUIPluginRenderAntd from '@vxe-ui/plugin-render-antd';
import {
VxeButton,
VxeCheckbox,
@@ -47,6 +56,8 @@ import {
import { extendsDefaultFormatter } from './extends';
import '@vxe-ui/plugin-render-antd/dist/style.css';
// 是否加载过
let isInit = false;
@@ -96,6 +107,7 @@ export function initVxeTable() {
// VxeUI.component(VxeTextarea);
VxeUI.component(VxeTooltip);
VxeUI.component(VxeUpload);
VxeUI.use(VxeUIPluginRenderAntd);
isInit = true;
}