You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
406 B
19 lines
406 B
7 months ago
|
import { ColumnProps } from 'ant-design-vue/es/table';
|
||
|
import { NsTableCell } from './table-cell';
|
||
|
import { h } from 'vue';
|
||
|
interface Params {
|
||
|
text: string;
|
||
|
record: Recordable;
|
||
|
index: number;
|
||
|
}
|
||
|
export function renderEditCell(column: ColumnProps) {
|
||
|
return ({ text: value, record, index }: Params) => {
|
||
|
return h(NsTableCell, {
|
||
|
value,
|
||
|
record,
|
||
|
column,
|
||
|
index,
|
||
|
});
|
||
|
};
|
||
|
}
|