|
|
@ -1,6 +1,7 @@ |
|
|
|
import { $t, NotifyManager, Tools } from '@/platform'; |
|
|
|
import { Button } from '../Button'; |
|
|
|
import { Constant, PropsType, TableType } from '../../index'; |
|
|
|
import { nextTick, toRaw } from 'vue'; |
|
|
|
|
|
|
|
export class CellEdit extends Button { |
|
|
|
name = 'cellEdit'; |
|
|
@ -25,6 +26,10 @@ export class CellEdit extends Button { |
|
|
|
} |
|
|
|
// 弹出模态框编辑,但是只编辑该列的值
|
|
|
|
args.grid.getCellEditorDialog().show(); |
|
|
|
const this_ = this; |
|
|
|
nextTick(() => { |
|
|
|
this_.tools?.em.afterEditorOpen(toRaw(args.selected)); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
getButtonConfig() { |
|
|
|