mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-13 17:40:53 +08:00
feat: vxe/antd可编辑表格适配器 & 可编辑demo
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user