diff --git a/src/components/VxeTable/src/components/AApiTreeSelect.tsx b/src/components/VxeTable/src/components/AApiTreeSelect.tsx new file mode 100644 index 000000000..8fb1d3d80 --- /dev/null +++ b/src/components/VxeTable/src/components/AApiTreeSelect.tsx @@ -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'), + }; + }), +}; diff --git a/src/components/VxeTable/src/components/index.tsx b/src/components/VxeTable/src/components/index.tsx index cf5095c30..ba8c6d858 100644 --- a/src/components/VxeTable/src/components/index.tsx +++ b/src/components/VxeTable/src/components/index.tsx @@ -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,