push
This commit is contained in:
18
lib/component/table/edit/index.ts
Normal file
18
lib/component/table/edit/index.ts
Normal 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,
|
||||
});
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user