diff --git a/io.sc.platform.core.frontend/src/platform/components/grid/ts/toolbar/buttons/CellEdit.ts b/io.sc.platform.core.frontend/src/platform/components/grid/ts/toolbar/buttons/CellEdit.ts index 7157868b..779bda21 100644 --- a/io.sc.platform.core.frontend/src/platform/components/grid/ts/toolbar/buttons/CellEdit.ts +++ b/io.sc.platform.core.frontend/src/platform/components/grid/ts/toolbar/buttons/CellEdit.ts @@ -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() {