@lark-project/js-sdk 2.0.2-dev.5 → 2.0.3-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/index.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/types/index.d.ts +24 -1
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
package/dist/lib/index.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1165,6 +1165,21 @@ interface RichTextEditorOptions {
|
|
|
1165
1165
|
*/
|
|
1166
1166
|
spaceId: string;
|
|
1167
1167
|
};
|
|
1168
|
+
/**
|
|
1169
|
+
* 你自定义图床的配置
|
|
1170
|
+
* @mobile_version >= 7.31
|
|
1171
|
+
*/
|
|
1172
|
+
imageUpload?: {
|
|
1173
|
+
/**
|
|
1174
|
+
* 你的图片上传服务地址
|
|
1175
|
+
*/
|
|
1176
|
+
url: string;
|
|
1177
|
+
/**
|
|
1178
|
+
* 你的图片上传服务的鉴权 token
|
|
1179
|
+
* token 会通过 request header 的 x-plugin-custom-token 提供
|
|
1180
|
+
*/
|
|
1181
|
+
token?: string;
|
|
1182
|
+
};
|
|
1168
1183
|
}
|
|
1169
1184
|
/**
|
|
1170
1185
|
* 富文本完整内容
|
|
@@ -1370,6 +1385,7 @@ declare abstract class Control extends BaseModel {
|
|
|
1370
1385
|
abstract getContext(): Promise<ControlFeatureContext>;
|
|
1371
1386
|
/**
|
|
1372
1387
|
* 获取新建工作项表单项的值
|
|
1388
|
+
* mobile version ≥ 7.29.0
|
|
1373
1389
|
* @param keys 需要获取的工作项属性 / 字段 ID 列表,一次限制读取 10 个 keys
|
|
1374
1390
|
* @param keys.key 工作项属性 / 字段 ID
|
|
1375
1391
|
* @param keys.type 类型
|
|
@@ -1384,10 +1400,17 @@ declare abstract class Control extends BaseModel {
|
|
|
1384
1400
|
* only web 2.0
|
|
1385
1401
|
* 监听新建工作项表单项值变化
|
|
1386
1402
|
* @param options.watchKeys 需要监听的工作项属性 / 字段 ID 列表,一次限制读取 10 个 keys
|
|
1403
|
+
* @param options.watchKeys.key 工作项属性 / 字段 ID
|
|
1404
|
+
* @param options.watchKeys.type 类型
|
|
1405
|
+
* 工作项属性 name 为 FieldType.text,工作项属性 template 为 FieldType.number
|
|
1406
|
+
* 控件 role_owners 为 FieldType.control
|
|
1387
1407
|
* @param callback 当监听值发生变化时触发,changedKeys 为变化的 keys
|
|
1388
1408
|
*/
|
|
1389
1409
|
abstract onCreateWorkItemFormValueChanged(options: {
|
|
1390
|
-
watchKeys: Array<
|
|
1410
|
+
watchKeys: Array<{
|
|
1411
|
+
key: string | AttributeType;
|
|
1412
|
+
type: Exclude<FieldType, FieldType.richText | FieldType.singleSignal | FieldType.multiSignal | FieldType.singleVoting | FieldType.multiVoting>;
|
|
1413
|
+
}>;
|
|
1391
1414
|
}, callback: (changedKeys: Array<string | AttributeType>) => void): Off;
|
|
1392
1415
|
}
|
|
1393
1416
|
|