fix: vxe-table与vben ApiTreeSelect适配 (#2613)

This commit is contained in:
儿时的夏日 2023-03-10 11:32:36 +08:00 committed by GitHub
parent edede25c8f
commit 85bc1f2340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,20 @@
import XEUtils from 'xe-utils';
import { createDefaultRender, createEditRender, createFormItemRender } from './common';
export default {
renderDefault: createDefaultRender({}, (_, params) => {
return {
params: XEUtils.get(params, 'row'),
};
}),
renderEdit: createEditRender({}, (_, params) => {
return {
params: XEUtils.get(params, 'row'),
};
}),
renderItemContent: createFormItemRender({}, (_, params) => {
return {
params: XEUtils.get(params, 'row'),
};
}),
};

View File

@ -17,6 +17,7 @@ import ACheckboxGroup from './ACheckboxGroup';
import AButton from './AButton';
import AButtonGroup from './AButtonGroup';
import AApiSelect from './AApiSelect';
import AApiTreeSelect from './AApiTreeSelect';
import AEmpty from './AEmpty';
import AInputSearch from './AInputSearch';
import AYearPicker from './AYearPicker';
@ -94,6 +95,7 @@ export const VXETablePluginAntd = {
AButton,
AButtonGroup,
AApiSelect,
AApiTreeSelect,
AEmpty,
AInputSearch,
AYearPicker,