@lark-project/js-sdk 2.0.2-dev.5 → 2.0.2-dev.6
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 +9 -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
|
@@ -1370,6 +1370,7 @@ declare abstract class Control extends BaseModel {
|
|
|
1370
1370
|
abstract getContext(): Promise<ControlFeatureContext>;
|
|
1371
1371
|
/**
|
|
1372
1372
|
* 获取新建工作项表单项的值
|
|
1373
|
+
* mobile version ≥ 7.29.0
|
|
1373
1374
|
* @param keys 需要获取的工作项属性 / 字段 ID 列表,一次限制读取 10 个 keys
|
|
1374
1375
|
* @param keys.key 工作项属性 / 字段 ID
|
|
1375
1376
|
* @param keys.type 类型
|
|
@@ -1384,10 +1385,17 @@ declare abstract class Control extends BaseModel {
|
|
|
1384
1385
|
* only web 2.0
|
|
1385
1386
|
* 监听新建工作项表单项值变化
|
|
1386
1387
|
* @param options.watchKeys 需要监听的工作项属性 / 字段 ID 列表,一次限制读取 10 个 keys
|
|
1388
|
+
* @param options.watchKeys.key 工作项属性 / 字段 ID
|
|
1389
|
+
* @param options.watchKeys.type 类型
|
|
1390
|
+
* 工作项属性 name 为 FieldType.text,工作项属性 template 为 FieldType.number
|
|
1391
|
+
* 控件 role_owners 为 FieldType.control
|
|
1387
1392
|
* @param callback 当监听值发生变化时触发,changedKeys 为变化的 keys
|
|
1388
1393
|
*/
|
|
1389
1394
|
abstract onCreateWorkItemFormValueChanged(options: {
|
|
1390
|
-
watchKeys: Array<
|
|
1395
|
+
watchKeys: Array<{
|
|
1396
|
+
key: string | AttributeType;
|
|
1397
|
+
type: Exclude<FieldType, FieldType.richText | FieldType.singleSignal | FieldType.multiSignal | FieldType.singleVoting | FieldType.multiVoting>;
|
|
1398
|
+
}>;
|
|
1391
1399
|
}, callback: (changedKeys: Array<string | AttributeType>) => void): Off;
|
|
1392
1400
|
}
|
|
1393
1401
|
|