vxe-table 插入一行

vxe-table v4 版本表格插入一行怎么写 js 代码,官方给的例子是 ts 写的

import { VXETable, VxeTableInstance } from 'vxe-table'
const xTable = ref()
const insertEvent = async (row: any) => {
    const $table = xTable.value
    const record = {
        sex: '1',
        date12: '2021-01-01'
        }
    const { row: newRow } = await $table.insertAt(record, row)
    await $table.setEditCell(newRow, 'name')
}

怎么把上面的转成 js 代码


 import { VXETable, VxeTableInstance } from 'vxe-table'
    const xTable = ref()
    const insertEvent = async (row:) => {
        const $table = xTable.value
        const record = {
            sex: '1',
            date12: '2021-01-01'
        }
        const { row: newRow } = await $table.insertAt(record, row)
        await $table.setEditCell(newRow, 'name')
    }