This commit is contained in:
xuziqiang
2024-05-15 17:29:42 +08:00
commit d0155dbe3c
7296 changed files with 1832517 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
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,
});
};
}