支持在指定列中查找并替换指定的文本
实际效果
源代码
const findText = await input.textAsync('请输入想查找的文本:');
const replaceText = await input.textAsync('想替换查找文本为:');
// 需要通过 Space API 获取当前激活的表格,并作为一个参数传入到 input.fieldAsync
const datasheet = await space.getActiveDatasheetAsync();
const field = await input.fieldAsync("请选择想要查找的维格列名", datasheet);
// 获取维格列的 id
const fieldId = field.id;
const records = await datasheet.getRecordsAsync();
const finalData = [];
// 遍历 records
for (let record of records) {
const recordId = record.i