ModifiedUser 更新人字段
DANGER
ModifiedUser
更新人字段不支持手动往单元格写入值。
类型定义 IModifiedUserField
,使用方法示例:
typescript
const modifiedUserField = await table.getField<IModifiedUserField>(fieldId);
const modifiedUserField = await table.getField<IModifiedUserField>(fieldId);
其中字段值的类型定义为:
typescript
type IOpenUser = {
id: string;
name?: string;
enName?: string;
email?: string;
};
type IOpenUser = {
id: string;
name?: string;
enName?: string;
email?: string;
};
getValue
获取创建修改人的值。
typescript
getValue: (recordOrId: IRecordType | string) => Promise<IOpenUser[]>;
getValue: (recordOrId: IRecordType | string) => Promise<IOpenUser[]>;
示例
typescript
await modifiedUserField.getValue('r_id');
await modifiedUserField.getValue('r_id');
getCell
通过对应的 Record
来获取对应的 Cell
。
typescript
getCell: (recordOrId: IRecordType | string) => Promise<ICell>;
getCell: (recordOrId: IRecordType | string) => Promise<ICell>;
示例
typescript
await modifiedUserField.getCell('r_id');
await modifiedUserField.getCell('r_id');