UNPKG

yanzhen-design-vue

Version:

16 lines (15 loc) 408 B
import { toHandlerKey } from "@vue/shared"; import { propsSeparate } from "@yanzhen-libs/utils-vue"; import { columnProps } from "vxe-table/es/table/src/column"; const tableColumnEmits = [].reduce((prev, key) => { const name = toHandlerKey(key); prev[name] = Function; return prev; }, {}); const VxeTableColumn = propsSeparate({ ...tableColumnEmits, ...columnProps }); export { VxeTableColumn };