yanzhen-design-vue
Version:
17 lines (16 loc) • 452 B
JavaScript
import { toHandlerKey } from "@vue/shared";
import { propsSeparate } from "@yanzhen-libs/utils-vue";
import vxeTableEmits from "vxe-table/es/table/src/emits";
import vxeTableProps from "vxe-table/es/table/src/props";
const tableEmits = vxeTableEmits.reduce((prev, key) => {
const name = toHandlerKey(key);
prev[name] = Function;
return prev;
}, {});
const VxeTable = propsSeparate({
...tableEmits,
...vxeTableProps
});
export {
VxeTable
};