mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-26 12:48:48 +08:00
fix: vxe-table与vben ApiTreeSelect适配 (#2613)
This commit is contained in:
parent
edede25c8f
commit
85bc1f2340
20
src/components/VxeTable/src/components/AApiTreeSelect.tsx
Normal file
20
src/components/VxeTable/src/components/AApiTreeSelect.tsx
Normal 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'),
|
||||||
|
};
|
||||||
|
}),
|
||||||
|
};
|
@ -17,6 +17,7 @@ import ACheckboxGroup from './ACheckboxGroup';
|
|||||||
import AButton from './AButton';
|
import AButton from './AButton';
|
||||||
import AButtonGroup from './AButtonGroup';
|
import AButtonGroup from './AButtonGroup';
|
||||||
import AApiSelect from './AApiSelect';
|
import AApiSelect from './AApiSelect';
|
||||||
|
import AApiTreeSelect from './AApiTreeSelect';
|
||||||
import AEmpty from './AEmpty';
|
import AEmpty from './AEmpty';
|
||||||
import AInputSearch from './AInputSearch';
|
import AInputSearch from './AInputSearch';
|
||||||
import AYearPicker from './AYearPicker';
|
import AYearPicker from './AYearPicker';
|
||||||
@ -94,6 +95,7 @@ export const VXETablePluginAntd = {
|
|||||||
AButton,
|
AButton,
|
||||||
AButtonGroup,
|
AButtonGroup,
|
||||||
AApiSelect,
|
AApiSelect,
|
||||||
|
AApiTreeSelect,
|
||||||
AEmpty,
|
AEmpty,
|
||||||
AInputSearch,
|
AInputSearch,
|
||||||
AYearPicker,
|
AYearPicker,
|
||||||
|
Loading…
Reference in New Issue
Block a user