We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e250b6a commit 3f448edCopy full SHA for 3f448ed
1 file changed
packages/vue-vtable/src/edit/editor.ts
@@ -11,6 +11,8 @@ export interface DynamicRenderEditorParams {
11
col: number;
12
/** 值 */
13
value: any;
14
+ /** 行数据 */
15
+ record: any;
16
/** 表格实例 */
17
table: any;
18
/** 设置值方法 */
@@ -148,13 +150,15 @@ export class DynamicRenderEditor {
148
150
return false;
149
151
}
152
153
+ const record = table?.getCellOriginRecord(col, row);
154
const vnode = this.getNode(
155
id,
156
key
157
)?.({
158
row,
159
col,
160
value,
161
+ record,
162
table,
163
onChange: (value: any) => this.setValue(value)
164
})?.find((node: any) => node?.type !== Symbol.for('v-cmt'));
0 commit comments