record = { checked: false } $table.insertAt(record, row).then(({ row }) => { $table.setEditRow(row) }) } const getInsertEvent = () => { const $table = xTable.value const insertRecords = $table.getInsertRecords() VXETable.modal.alert(insertRecords.length) } const getRemoveEvent...
let record = { sex: "1", date: new Date(), date1: new Date(), name: "new", describe: "GOOD" }; this.$refs.xTable.insertAt(record, row);---新增一行数据 // .then(({ row }) => this.$refs.xTable.setActiveCell(row, "sex"));---设置行处于编辑状态(设定焦点所在) }, //...
let record = { sex: "1", date: new Date(), date1: new Date(), name: "new", describe: "GOOD" }; this.$refs.xTable.insertAt(record, row);---新增一行数据 // .then(({ row }) => this.$refs.xTable.setActiveCell(row, "sex"));---设置行处于编辑状态(设定焦点所在) }, //...
const newValue = XEUtils.get(record || row, field) const newValue = XEUtils.clone(XEUtils.get(record || row, field), true) XEUtils.set(row, field, newValue) XEUtils.set(oRow, field, newValue) } else { const newRecord = XEUtils.clone({ ...record }, true) ...
可复现的链接(包含复现链接与示例代码): https://codesandbox.io/p/sandbox/vxe-table-4-x-vue-3-0-wen-ti-yan-shi-forked-5ww9fh 问题描述与截图: 当使用commitProxy query或loadData 加载表格数据后, 表格之前的getCurrentRecord数据没有刷新 , 需要再次点击才是加载
512 getCurrentRecord(): any; 513 /** 514 * 用于 type=radio,获取当已选中的行数据 515 */ 516 getRadioRecord(): any; 517 /** 518 * 用于 highlight-current-column,设置某列行为高亮状态 519 * @param column 列对象 520 */ 521 setCurrentColumn(column: ColumnConfig): Promise<...
const record = {} const { row: newRow } = await this.$refs.xTable.insertAt(record, row)await this.$refs.xTable.setActiveRow(newRow)},// 点击‘修改’⾏ editRowEvent(row) { this.$refs.xTable.setActiveRow(row)},// 点击⾏‘取消’cancelRowEvent(row) { const xTable = this.$refs...
table 修复getRadioRecord 获取值不正确问题 (v3保留兼容)重构渲染器,配置 name 调整 $input, $textarea, $select, $button, $buttons, $radio, $checkbox, $switch 改为 VxeInput, VxeTextarea, VxeSelect, VxeButton, VxeButtonGroup, VxeRadio, VxeRadioGroup, VxeCheckbox, VxeCheckboxGroup, VxeSwitch ...
getCurrentRecord() if (currentRow) { $table.moveCurrentRow(!isDown, isDown, evnt) return false } } } } /** * 快捷键处理方法 */ export const handleFuncs = { [FUNC_NANE.TABLE_EDIT_ACTIVED] (params: VxeGlobalInterceptorHandles.InterceptorKeydownParams, evnt: Event) { ...
getCurrentRecord() if (currentRow) { $table.moveCurrentRow(!isDown, isDown, evnt) return false } } } } /** * 快捷键处理方法 */ export const handleFuncs = { [FUNC_NANE.TABLE_EDIT_ACTIVED] (params: InterceptorKeydownParams, evnt: any) { const { $table ...