clickgo 6.4.1 → 6.4.2
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/app/demo.cga +0 -0
- package/dist/app/task.cga +0 -0
- package/dist/index.js +1 -1
- package/dist/lib/task.d.ts +9 -2
- package/doc/clickgo-rag.md +126 -94
- package/package.json +1 -1
package/doc/clickgo-rag.md
CHANGED
|
@@ -28212,7 +28212,7 @@ lib/task/classes/AbstractThread.md
|
|
|
28212
28212
|
|
|
28213
28213
|
# Abstract Class: AbstractThread
|
|
28214
28214
|
|
|
28215
|
-
Defined in: [lib/task.ts:
|
|
28215
|
+
Defined in: [lib/task.ts:1557](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1557)
|
|
28216
28216
|
|
|
28217
28217
|
线程抽象类
|
|
28218
28218
|
|
|
@@ -28232,7 +28232,7 @@ Defined in: [lib/task.ts:1561](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
28232
28232
|
|
|
28233
28233
|
> **taskId**: `string` = `''`
|
|
28234
28234
|
|
|
28235
|
-
Defined in: [lib/task.ts:
|
|
28235
|
+
Defined in: [lib/task.ts:1566](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1566)
|
|
28236
28236
|
|
|
28237
28237
|
系统会自动设置本项
|
|
28238
28238
|
|
|
@@ -28244,7 +28244,7 @@ Defined in: [lib/task.ts:1570](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
28244
28244
|
|
|
28245
28245
|
> **get** **filename**(): `string`
|
|
28246
28246
|
|
|
28247
|
-
Defined in: [lib/task.ts:
|
|
28247
|
+
Defined in: [lib/task.ts:1560](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1560)
|
|
28248
28248
|
|
|
28249
28249
|
当前文件在包内的路径
|
|
28250
28250
|
|
|
@@ -28258,7 +28258,7 @@ Defined in: [lib/task.ts:1564](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
28258
28258
|
|
|
28259
28259
|
> **close**(): `void`
|
|
28260
28260
|
|
|
28261
|
-
Defined in: [lib/task.ts:
|
|
28261
|
+
Defined in: [lib/task.ts:1595](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1595)
|
|
28262
28262
|
|
|
28263
28263
|
关闭线程
|
|
28264
28264
|
|
|
@@ -28272,7 +28272,7 @@ Defined in: [lib/task.ts:1599](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
28272
28272
|
|
|
28273
28273
|
> `abstract` **main**(`data`): `void` \| `Promise`\<`void`\>
|
|
28274
28274
|
|
|
28275
|
-
Defined in: [lib/task.ts:
|
|
28275
|
+
Defined in: [lib/task.ts:1569](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1569)
|
|
28276
28276
|
|
|
28277
28277
|
线程入口
|
|
28278
28278
|
|
|
@@ -28292,7 +28292,7 @@ Defined in: [lib/task.ts:1573](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
28292
28292
|
|
|
28293
28293
|
> **onEnded**(): `void` \| `Promise`\<`void`\>
|
|
28294
28294
|
|
|
28295
|
-
Defined in: [lib/task.ts:
|
|
28295
|
+
Defined in: [lib/task.ts:1578](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1578)
|
|
28296
28296
|
|
|
28297
28297
|
线程结束事件
|
|
28298
28298
|
|
|
@@ -28306,7 +28306,7 @@ Defined in: [lib/task.ts:1582](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
28306
28306
|
|
|
28307
28307
|
> **onError**(`e`): `void` \| `Promise`\<`void`\>
|
|
28308
28308
|
|
|
28309
|
-
Defined in: [lib/task.ts:
|
|
28309
|
+
Defined in: [lib/task.ts:1584](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1584)
|
|
28310
28310
|
|
|
28311
28311
|
报错
|
|
28312
28312
|
|
|
@@ -28326,7 +28326,7 @@ Defined in: [lib/task.ts:1588](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
28326
28326
|
|
|
28327
28327
|
> **onMessage**(`e`): `void` \| `Promise`\<`void`\>
|
|
28328
28328
|
|
|
28329
|
-
Defined in: [lib/task.ts:
|
|
28329
|
+
Defined in: [lib/task.ts:1572](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1572)
|
|
28330
28330
|
|
|
28331
28331
|
线程接收事件
|
|
28332
28332
|
|
|
@@ -28346,7 +28346,7 @@ Defined in: [lib/task.ts:1576](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
28346
28346
|
|
|
28347
28347
|
> **send**(`data`): `void`
|
|
28348
28348
|
|
|
28349
|
-
Defined in: [lib/task.ts:
|
|
28349
|
+
Defined in: [lib/task.ts:1590](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1590)
|
|
28350
28350
|
|
|
28351
28351
|
发送数据
|
|
28352
28352
|
|
|
@@ -28371,7 +28371,7 @@ lib/task/enumerations/EIPTYPE.md
|
|
|
28371
28371
|
|
|
28372
28372
|
# Enumeration: EIPTYPE
|
|
28373
28373
|
|
|
28374
|
-
Defined in: [lib/task.ts:
|
|
28374
|
+
Defined in: [lib/task.ts:401](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L401)
|
|
28375
28375
|
|
|
28376
28376
|
initProgress 的 type
|
|
28377
28377
|
|
|
@@ -28381,7 +28381,7 @@ initProgress 的 type
|
|
|
28381
28381
|
|
|
28382
28382
|
> **APP**: `0`
|
|
28383
28383
|
|
|
28384
|
-
Defined in: [lib/task.ts:
|
|
28384
|
+
Defined in: [lib/task.ts:402](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L402)
|
|
28385
28385
|
|
|
28386
28386
|
***
|
|
28387
28387
|
|
|
@@ -28389,7 +28389,7 @@ Defined in: [lib/task.ts:406](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
28389
28389
|
|
|
28390
28390
|
> **CONTROL**: `2`
|
|
28391
28391
|
|
|
28392
|
-
Defined in: [lib/task.ts:
|
|
28392
|
+
Defined in: [lib/task.ts:404](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L404)
|
|
28393
28393
|
|
|
28394
28394
|
***
|
|
28395
28395
|
|
|
@@ -28397,7 +28397,7 @@ Defined in: [lib/task.ts:408](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
28397
28397
|
|
|
28398
28398
|
> **DONE**: `7`
|
|
28399
28399
|
|
|
28400
|
-
Defined in: [lib/task.ts:
|
|
28400
|
+
Defined in: [lib/task.ts:409](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L409)
|
|
28401
28401
|
|
|
28402
28402
|
***
|
|
28403
28403
|
|
|
@@ -28405,7 +28405,7 @@ Defined in: [lib/task.ts:413](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
28405
28405
|
|
|
28406
28406
|
> **LOCAL**: `1`
|
|
28407
28407
|
|
|
28408
|
-
Defined in: [lib/task.ts:
|
|
28408
|
+
Defined in: [lib/task.ts:403](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L403)
|
|
28409
28409
|
|
|
28410
28410
|
***
|
|
28411
28411
|
|
|
@@ -28413,7 +28413,7 @@ Defined in: [lib/task.ts:407](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
28413
28413
|
|
|
28414
28414
|
> **PERMISSION**: `5`
|
|
28415
28415
|
|
|
28416
|
-
Defined in: [lib/task.ts:
|
|
28416
|
+
Defined in: [lib/task.ts:407](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L407)
|
|
28417
28417
|
|
|
28418
28418
|
***
|
|
28419
28419
|
|
|
@@ -28421,7 +28421,7 @@ Defined in: [lib/task.ts:411](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
28421
28421
|
|
|
28422
28422
|
> **START**: `6`
|
|
28423
28423
|
|
|
28424
|
-
Defined in: [lib/task.ts:
|
|
28424
|
+
Defined in: [lib/task.ts:408](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L408)
|
|
28425
28425
|
|
|
28426
28426
|
***
|
|
28427
28427
|
|
|
@@ -28429,7 +28429,7 @@ Defined in: [lib/task.ts:412](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
28429
28429
|
|
|
28430
28430
|
> **STYLE**: `4`
|
|
28431
28431
|
|
|
28432
|
-
Defined in: [lib/task.ts:
|
|
28432
|
+
Defined in: [lib/task.ts:406](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L406)
|
|
28433
28433
|
|
|
28434
28434
|
***
|
|
28435
28435
|
|
|
@@ -28437,7 +28437,7 @@ Defined in: [lib/task.ts:410](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
28437
28437
|
|
|
28438
28438
|
> **THEME**: `3`
|
|
28439
28439
|
|
|
28440
|
-
Defined in: [lib/task.ts:
|
|
28440
|
+
Defined in: [lib/task.ts:405](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L405)
|
|
28441
28441
|
|
|
28442
28442
|
lib/task/functions/checkPermission.md
|
|
28443
28443
|
---
|
|
@@ -28452,7 +28452,7 @@ lib/task/functions/checkPermission.md
|
|
|
28452
28452
|
|
|
28453
28453
|
> **checkPermission**(`taskId`, `vals`, `apply?`, `applyHandler?`): `Promise`\<`boolean`[]\>
|
|
28454
28454
|
|
|
28455
|
-
Defined in: [lib/task.ts:
|
|
28455
|
+
Defined in: [lib/task.ts:954](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L954)
|
|
28456
28456
|
|
|
28457
28457
|
检测应用是否有相应的权限(如果 taskId 是 sysId 则直接成功)
|
|
28458
28458
|
|
|
@@ -28499,7 +28499,7 @@ lib/task/functions/clearLocaleLang.md
|
|
|
28499
28499
|
|
|
28500
28500
|
> **clearLocaleLang**(`current`): `void`
|
|
28501
28501
|
|
|
28502
|
-
Defined in: [lib/task.ts:
|
|
28502
|
+
Defined in: [lib/task.ts:1252](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1252)
|
|
28503
28503
|
|
|
28504
28504
|
清除 task 的语言设置
|
|
28505
28505
|
|
|
@@ -28528,7 +28528,7 @@ lib/task/functions/clearLocale.md
|
|
|
28528
28528
|
|
|
28529
28529
|
> **clearLocale**(`taskId`): `void`
|
|
28530
28530
|
|
|
28531
|
-
Defined in: [lib/task.ts:
|
|
28531
|
+
Defined in: [lib/task.ts:1210](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1210)
|
|
28532
28532
|
|
|
28533
28533
|
清除任务的所有加载的语言包
|
|
28534
28534
|
|
|
@@ -28557,7 +28557,7 @@ lib/task/functions/clearSystem.md
|
|
|
28557
28557
|
|
|
28558
28558
|
> **clearSystem**(`taskId`): `Promise`\<`boolean`\>
|
|
28559
28559
|
|
|
28560
|
-
Defined in: [lib/task.ts:
|
|
28560
|
+
Defined in: [lib/task.ts:1419](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1419)
|
|
28561
28561
|
|
|
28562
28562
|
清除系统任务设定
|
|
28563
28563
|
|
|
@@ -28586,7 +28586,7 @@ lib/task/functions/createTimer.md
|
|
|
28586
28586
|
|
|
28587
28587
|
> **createTimer**(`current`, `fun`, `delay`, `opt?`): `number`
|
|
28588
28588
|
|
|
28589
|
-
Defined in: [lib/task.ts:
|
|
28589
|
+
Defined in: [lib/task.ts:1270](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1270)
|
|
28590
28590
|
|
|
28591
28591
|
创建 timer
|
|
28592
28592
|
|
|
@@ -28633,7 +28633,7 @@ lib/task/functions/end.md
|
|
|
28633
28633
|
|
|
28634
28634
|
> **end**(`taskId`): `Promise`\<`boolean`\>
|
|
28635
28635
|
|
|
28636
|
-
Defined in: [lib/task.ts:
|
|
28636
|
+
Defined in: [lib/task.ts:1069](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1069)
|
|
28637
28637
|
|
|
28638
28638
|
完全结束任务
|
|
28639
28639
|
|
|
@@ -28662,7 +28662,7 @@ lib/task/functions/getFocus.md
|
|
|
28662
28662
|
|
|
28663
28663
|
> **getFocus**(`current`): `Promise`\<`string` \| `null`\>
|
|
28664
28664
|
|
|
28665
|
-
Defined in: [lib/task.ts:
|
|
28665
|
+
Defined in: [lib/task.ts:174](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L174)
|
|
28666
28666
|
|
|
28667
28667
|
获取当前有焦点的任务 ID
|
|
28668
28668
|
|
|
@@ -28689,7 +28689,7 @@ lib/task/functions/getList.md
|
|
|
28689
28689
|
|
|
28690
28690
|
> **getList**(): [`ITaskInfo`](../interfaces/ITaskInfo.md)[]
|
|
28691
28691
|
|
|
28692
|
-
Defined in: [lib/task.ts:
|
|
28692
|
+
Defined in: [lib/task.ts:389](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L389)
|
|
28693
28693
|
|
|
28694
28694
|
获取 task list 的简略情况
|
|
28695
28695
|
|
|
@@ -28712,7 +28712,7 @@ lib/task/functions/get.md
|
|
|
28712
28712
|
|
|
28713
28713
|
Defined in: [lib/task.ts:103](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L103)
|
|
28714
28714
|
|
|
28715
|
-
|
|
28715
|
+
获取任务及其应用包简略信息
|
|
28716
28716
|
|
|
28717
28717
|
## Parameters
|
|
28718
28718
|
|
|
@@ -28766,7 +28766,7 @@ lib/task/functions/getOrigin.md
|
|
|
28766
28766
|
|
|
28767
28767
|
> **getOrigin**(`taskId`): [`ITask`](../interfaces/ITask.md) \| `null`
|
|
28768
28768
|
|
|
28769
|
-
Defined in: [lib/task.ts:
|
|
28769
|
+
Defined in: [lib/task.ts:130](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L130)
|
|
28770
28770
|
|
|
28771
28771
|
获取任务对象
|
|
28772
28772
|
|
|
@@ -28795,7 +28795,7 @@ lib/task/functions/getPermissions.md
|
|
|
28795
28795
|
|
|
28796
28796
|
> **getPermissions**(`current`): `string`[]
|
|
28797
28797
|
|
|
28798
|
-
Defined in: [lib/task.ts:
|
|
28798
|
+
Defined in: [lib/task.ts:376](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L376)
|
|
28799
28799
|
|
|
28800
28800
|
获取某个任务的已授权权限列表
|
|
28801
28801
|
|
|
@@ -28859,7 +28859,7 @@ lib/task/functions/init.md
|
|
|
28859
28859
|
|
|
28860
28860
|
> **init**(): `void`
|
|
28861
28861
|
|
|
28862
|
-
Defined in: [lib/task.ts:
|
|
28862
|
+
Defined in: [lib/task.ts:1507](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1507)
|
|
28863
28863
|
|
|
28864
28864
|
## Returns
|
|
28865
28865
|
|
|
@@ -28907,7 +28907,7 @@ lib/task/functions/loadLocaleData.md
|
|
|
28907
28907
|
|
|
28908
28908
|
> **loadLocaleData**(`taskId`, `lang`, `data`, `pre?`): `void`
|
|
28909
28909
|
|
|
28910
|
-
Defined in: [lib/task.ts:
|
|
28910
|
+
Defined in: [lib/task.ts:1154](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1154)
|
|
28911
28911
|
|
|
28912
28912
|
加载 locale data 对象到 task
|
|
28913
28913
|
|
|
@@ -28954,7 +28954,7 @@ lib/task/functions/loadLocale.md
|
|
|
28954
28954
|
|
|
28955
28955
|
> **loadLocale**(`taskId`, `lang`, `path`): `Promise`\<`boolean`\>
|
|
28956
28956
|
|
|
28957
|
-
Defined in: [lib/task.ts:
|
|
28957
|
+
Defined in: [lib/task.ts:1181](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1181)
|
|
28958
28958
|
|
|
28959
28959
|
加载 locale 文件 json
|
|
28960
28960
|
|
|
@@ -28995,7 +28995,7 @@ lib/task/functions/offFrame.md
|
|
|
28995
28995
|
|
|
28996
28996
|
> **offFrame**(`current`, `ft`): `void`
|
|
28997
28997
|
|
|
28998
|
-
Defined in: [lib/task.ts:
|
|
28998
|
+
Defined in: [lib/task.ts:356](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L356)
|
|
28999
28999
|
|
|
29000
29000
|
移除 frame 监听
|
|
29001
29001
|
|
|
@@ -29030,7 +29030,7 @@ lib/task/functions/onFrame.md
|
|
|
29030
29030
|
|
|
29031
29031
|
> **onFrame**(`current`, `fun`, `opt?`): `number`
|
|
29032
29032
|
|
|
29033
|
-
Defined in: [lib/task.ts:
|
|
29033
|
+
Defined in: [lib/task.ts:275](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L275)
|
|
29034
29034
|
|
|
29035
29035
|
创建 frame 监听,formId 存在则为窗体范围,否则为任务级范围
|
|
29036
29036
|
|
|
@@ -29077,7 +29077,7 @@ lib/task/functions/refreshSystemPosition.md
|
|
|
29077
29077
|
|
|
29078
29078
|
> **refreshSystemPosition**(): `void`
|
|
29079
29079
|
|
|
29080
|
-
Defined in: [lib/task.ts:
|
|
29080
|
+
Defined in: [lib/task.ts:1451](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1451)
|
|
29081
29081
|
|
|
29082
29082
|
刷新系统任务的 form 的位置以及 length
|
|
29083
29083
|
|
|
@@ -29098,7 +29098,7 @@ lib/task/functions/removeTimer.md
|
|
|
29098
29098
|
|
|
29099
29099
|
> **removeTimer**(`current`, `timer`): `void`
|
|
29100
29100
|
|
|
29101
|
-
Defined in: [lib/task.ts:
|
|
29101
|
+
Defined in: [lib/task.ts:1337](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1337)
|
|
29102
29102
|
|
|
29103
29103
|
移除 timer
|
|
29104
29104
|
|
|
@@ -29133,7 +29133,7 @@ lib/task/functions/run.md
|
|
|
29133
29133
|
|
|
29134
29134
|
> **run**(`current`, `url`, `opt?`): `Promise`\<`string` \| `number`\>
|
|
29135
29135
|
|
|
29136
|
-
Defined in: [lib/task.ts:
|
|
29136
|
+
Defined in: [lib/task.ts:419](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L419)
|
|
29137
29137
|
|
|
29138
29138
|
运行一个应用
|
|
29139
29139
|
|
|
@@ -29176,7 +29176,7 @@ lib/task/functions/runThread.md
|
|
|
29176
29176
|
|
|
29177
29177
|
> **runThread**(`current`, `cls`, `data?`): [`IThread`](../interfaces/IThread.md)
|
|
29178
29178
|
|
|
29179
|
-
Defined in: [lib/task.ts:
|
|
29179
|
+
Defined in: [lib/task.ts:1609](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1609)
|
|
29180
29180
|
|
|
29181
29181
|
运行线程(同一个线程文件只能运行一个)
|
|
29182
29182
|
|
|
@@ -29217,7 +29217,7 @@ lib/task/functions/setFocus.md
|
|
|
29217
29217
|
|
|
29218
29218
|
> **setFocus**(`id?`): `boolean`
|
|
29219
29219
|
|
|
29220
|
-
Defined in: [lib/task.ts:
|
|
29220
|
+
Defined in: [lib/task.ts:161](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L161)
|
|
29221
29221
|
|
|
29222
29222
|
设置 task focus id
|
|
29223
29223
|
|
|
@@ -29246,7 +29246,7 @@ lib/task/functions/setLocaleLang.md
|
|
|
29246
29246
|
|
|
29247
29247
|
> **setLocaleLang**(`current`, `lang`): `void`
|
|
29248
29248
|
|
|
29249
|
-
Defined in: [lib/task.ts:
|
|
29249
|
+
Defined in: [lib/task.ts:1237](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1237)
|
|
29250
29250
|
|
|
29251
29251
|
设置本 task 的语言 name
|
|
29252
29252
|
|
|
@@ -29281,7 +29281,7 @@ lib/task/functions/setLocale.md
|
|
|
29281
29281
|
|
|
29282
29282
|
> **setLocale**(`taskId`, `lang`, `path`): `Promise`\<`boolean`\>
|
|
29283
29283
|
|
|
29284
|
-
Defined in: [lib/task.ts:
|
|
29284
|
+
Defined in: [lib/task.ts:1227](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1227)
|
|
29285
29285
|
|
|
29286
29286
|
加载全新 locale(老 locale 的所有语言的缓存会被卸载)
|
|
29287
29287
|
|
|
@@ -29322,7 +29322,7 @@ lib/task/functions/setSystem.md
|
|
|
29322
29322
|
|
|
29323
29323
|
> **setSystem**(`taskId`, `formId`): `boolean`
|
|
29324
29324
|
|
|
29325
|
-
Defined in: [lib/task.ts:
|
|
29325
|
+
Defined in: [lib/task.ts:1381](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1381)
|
|
29326
29326
|
|
|
29327
29327
|
将任务注册为系统 task
|
|
29328
29328
|
|
|
@@ -29357,7 +29357,7 @@ lib/task/functions/sleep.md
|
|
|
29357
29357
|
|
|
29358
29358
|
> **sleep**(`current`, `fun`, `delay`): `number`
|
|
29359
29359
|
|
|
29360
|
-
Defined in: [lib/task.ts:
|
|
29360
|
+
Defined in: [lib/task.ts:1360](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1360)
|
|
29361
29361
|
|
|
29362
29362
|
暂停一小段时间
|
|
29363
29363
|
|
|
@@ -29460,7 +29460,7 @@ lib/task/interfaces/ICreateTimerOptions.md
|
|
|
29460
29460
|
|
|
29461
29461
|
# Interface: ICreateTimerOptions
|
|
29462
29462
|
|
|
29463
|
-
Defined in: [lib/task.ts:
|
|
29463
|
+
Defined in: [lib/task.ts:1806](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1806)
|
|
29464
29464
|
|
|
29465
29465
|
## Properties
|
|
29466
29466
|
|
|
@@ -29468,7 +29468,7 @@ Defined in: [lib/task.ts:1810](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29468
29468
|
|
|
29469
29469
|
> `optional` **count?**: `number`
|
|
29470
29470
|
|
|
29471
|
-
Defined in: [lib/task.ts:
|
|
29471
|
+
Defined in: [lib/task.ts:1810](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1810)
|
|
29472
29472
|
|
|
29473
29473
|
***
|
|
29474
29474
|
|
|
@@ -29476,7 +29476,7 @@ Defined in: [lib/task.ts:1814](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29476
29476
|
|
|
29477
29477
|
> `optional` **formId?**: `string`
|
|
29478
29478
|
|
|
29479
|
-
Defined in: [lib/task.ts:
|
|
29479
|
+
Defined in: [lib/task.ts:1807](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1807)
|
|
29480
29480
|
|
|
29481
29481
|
***
|
|
29482
29482
|
|
|
@@ -29484,7 +29484,7 @@ Defined in: [lib/task.ts:1811](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29484
29484
|
|
|
29485
29485
|
> `optional` **immediate?**: `boolean`
|
|
29486
29486
|
|
|
29487
|
-
Defined in: [lib/task.ts:
|
|
29487
|
+
Defined in: [lib/task.ts:1809](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1809)
|
|
29488
29488
|
|
|
29489
29489
|
lib/task/interfaces/IRuntime.md
|
|
29490
29490
|
---
|
|
@@ -29497,7 +29497,7 @@ lib/task/interfaces/IRuntime.md
|
|
|
29497
29497
|
|
|
29498
29498
|
# Interface: IRuntime
|
|
29499
29499
|
|
|
29500
|
-
Defined in: [lib/task.ts:
|
|
29500
|
+
Defined in: [lib/task.ts:1771](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1771)
|
|
29501
29501
|
|
|
29502
29502
|
## Properties
|
|
29503
29503
|
|
|
@@ -29505,7 +29505,7 @@ Defined in: [lib/task.ts:1775](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29505
29505
|
|
|
29506
29506
|
> **dialogCreating**: `number`
|
|
29507
29507
|
|
|
29508
|
-
Defined in: [lib/task.ts:
|
|
29508
|
+
Defined in: [lib/task.ts:1774](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1774)
|
|
29509
29509
|
|
|
29510
29510
|
正在异步创建 dialog 的数量,用于防止快速重复调用产生多个 dialog
|
|
29511
29511
|
|
|
@@ -29515,7 +29515,7 @@ Defined in: [lib/task.ts:1778](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29515
29515
|
|
|
29516
29516
|
> **dialogFormIds**: `string`[]
|
|
29517
29517
|
|
|
29518
|
-
Defined in: [lib/task.ts:
|
|
29518
|
+
Defined in: [lib/task.ts:1772](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1772)
|
|
29519
29519
|
|
|
29520
29520
|
***
|
|
29521
29521
|
|
|
@@ -29523,7 +29523,7 @@ Defined in: [lib/task.ts:1776](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29523
29523
|
|
|
29524
29524
|
> **index**: `number`
|
|
29525
29525
|
|
|
29526
|
-
Defined in: [lib/task.ts:
|
|
29526
|
+
Defined in: [lib/task.ts:1776](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1776)
|
|
29527
29527
|
|
|
29528
29528
|
***
|
|
29529
29529
|
|
|
@@ -29531,7 +29531,7 @@ Defined in: [lib/task.ts:1780](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29531
29531
|
|
|
29532
29532
|
> **permissions**: `string`[]
|
|
29533
29533
|
|
|
29534
|
-
Defined in: [lib/task.ts:
|
|
29534
|
+
Defined in: [lib/task.ts:1775](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1775)
|
|
29535
29535
|
|
|
29536
29536
|
lib/task/interfaces/ISystemTaskInfo.md
|
|
29537
29537
|
---
|
|
@@ -29544,7 +29544,7 @@ lib/task/interfaces/ISystemTaskInfo.md
|
|
|
29544
29544
|
|
|
29545
29545
|
# Interface: ISystemTaskInfo
|
|
29546
29546
|
|
|
29547
|
-
Defined in: [lib/task.ts:
|
|
29547
|
+
Defined in: [lib/task.ts:1780](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1780)
|
|
29548
29548
|
|
|
29549
29549
|
系统任务信息
|
|
29550
29550
|
|
|
@@ -29554,7 +29554,7 @@ Defined in: [lib/task.ts:1784](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29554
29554
|
|
|
29555
29555
|
> **formId**: `string`
|
|
29556
29556
|
|
|
29557
|
-
Defined in: [lib/task.ts:
|
|
29557
|
+
Defined in: [lib/task.ts:1782](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1782)
|
|
29558
29558
|
|
|
29559
29559
|
***
|
|
29560
29560
|
|
|
@@ -29562,7 +29562,7 @@ Defined in: [lib/task.ts:1786](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29562
29562
|
|
|
29563
29563
|
> **length**: `number`
|
|
29564
29564
|
|
|
29565
|
-
Defined in: [lib/task.ts:
|
|
29565
|
+
Defined in: [lib/task.ts:1783](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1783)
|
|
29566
29566
|
|
|
29567
29567
|
***
|
|
29568
29568
|
|
|
@@ -29570,7 +29570,7 @@ Defined in: [lib/task.ts:1787](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29570
29570
|
|
|
29571
29571
|
> **taskId**: `string`
|
|
29572
29572
|
|
|
29573
|
-
Defined in: [lib/task.ts:
|
|
29573
|
+
Defined in: [lib/task.ts:1781](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1781)
|
|
29574
29574
|
|
|
29575
29575
|
lib/task/interfaces/ITaskInfo.md
|
|
29576
29576
|
---
|
|
@@ -29583,17 +29583,27 @@ lib/task/interfaces/ITaskInfo.md
|
|
|
29583
29583
|
|
|
29584
29584
|
# Interface: ITaskInfo
|
|
29585
29585
|
|
|
29586
|
-
Defined in: [lib/task.ts:
|
|
29586
|
+
Defined in: [lib/task.ts:1814](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1814)
|
|
29587
29587
|
|
|
29588
|
-
Task
|
|
29588
|
+
Task 及其应用包的简略信息,通常在 list 当中
|
|
29589
29589
|
|
|
29590
29590
|
## Properties
|
|
29591
29591
|
|
|
29592
|
+
### author
|
|
29593
|
+
|
|
29594
|
+
> **author**: `string`
|
|
29595
|
+
|
|
29596
|
+
Defined in: [lib/task.ts:1824](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1824)
|
|
29597
|
+
|
|
29598
|
+
作者
|
|
29599
|
+
|
|
29600
|
+
***
|
|
29601
|
+
|
|
29592
29602
|
### current
|
|
29593
29603
|
|
|
29594
29604
|
> **current**: `string`
|
|
29595
29605
|
|
|
29596
|
-
Defined in: [lib/task.ts:
|
|
29606
|
+
Defined in: [lib/task.ts:1830](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1830)
|
|
29597
29607
|
|
|
29598
29608
|
***
|
|
29599
29609
|
|
|
@@ -29601,7 +29611,7 @@ Defined in: [lib/task.ts:1827](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29601
29611
|
|
|
29602
29612
|
> **customTheme**: `boolean`
|
|
29603
29613
|
|
|
29604
|
-
Defined in: [lib/task.ts:
|
|
29614
|
+
Defined in: [lib/task.ts:1826](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1826)
|
|
29605
29615
|
|
|
29606
29616
|
***
|
|
29607
29617
|
|
|
@@ -29609,7 +29619,7 @@ Defined in: [lib/task.ts:1823](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29609
29619
|
|
|
29610
29620
|
> **formCount**: `number`
|
|
29611
29621
|
|
|
29612
|
-
Defined in: [lib/task.ts:
|
|
29622
|
+
Defined in: [lib/task.ts:1827](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1827)
|
|
29613
29623
|
|
|
29614
29624
|
***
|
|
29615
29625
|
|
|
@@ -29617,7 +29627,7 @@ Defined in: [lib/task.ts:1824](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29617
29627
|
|
|
29618
29628
|
> **icon**: `string`
|
|
29619
29629
|
|
|
29620
|
-
Defined in: [lib/task.ts:
|
|
29630
|
+
Defined in: [lib/task.ts:1828](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1828)
|
|
29621
29631
|
|
|
29622
29632
|
***
|
|
29623
29633
|
|
|
@@ -29625,7 +29635,7 @@ Defined in: [lib/task.ts:1825](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29625
29635
|
|
|
29626
29636
|
> **id**: `string`
|
|
29627
29637
|
|
|
29628
|
-
Defined in: [lib/task.ts:
|
|
29638
|
+
Defined in: [lib/task.ts:1816](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1816)
|
|
29629
29639
|
|
|
29630
29640
|
任务 ID
|
|
29631
29641
|
|
|
@@ -29635,7 +29645,7 @@ Defined in: [lib/task.ts:1820](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29635
29645
|
|
|
29636
29646
|
> **locale**: `string`
|
|
29637
29647
|
|
|
29638
|
-
Defined in: [lib/task.ts:
|
|
29648
|
+
Defined in: [lib/task.ts:1825](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1825)
|
|
29639
29649
|
|
|
29640
29650
|
***
|
|
29641
29651
|
|
|
@@ -29643,7 +29653,9 @@ Defined in: [lib/task.ts:1822](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29643
29653
|
|
|
29644
29654
|
> **name**: `string`
|
|
29645
29655
|
|
|
29646
|
-
Defined in: [lib/task.ts:
|
|
29656
|
+
Defined in: [lib/task.ts:1818](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1818)
|
|
29657
|
+
|
|
29658
|
+
应用名
|
|
29647
29659
|
|
|
29648
29660
|
***
|
|
29649
29661
|
|
|
@@ -29651,7 +29663,27 @@ Defined in: [lib/task.ts:1821](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29651
29663
|
|
|
29652
29664
|
> **path**: `string`
|
|
29653
29665
|
|
|
29654
|
-
Defined in: [lib/task.ts:
|
|
29666
|
+
Defined in: [lib/task.ts:1829](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1829)
|
|
29667
|
+
|
|
29668
|
+
***
|
|
29669
|
+
|
|
29670
|
+
### ver
|
|
29671
|
+
|
|
29672
|
+
> **ver**: `number`
|
|
29673
|
+
|
|
29674
|
+
Defined in: [lib/task.ts:1820](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1820)
|
|
29675
|
+
|
|
29676
|
+
发行版本
|
|
29677
|
+
|
|
29678
|
+
***
|
|
29679
|
+
|
|
29680
|
+
### version
|
|
29681
|
+
|
|
29682
|
+
> **version**: `string`
|
|
29683
|
+
|
|
29684
|
+
Defined in: [lib/task.ts:1822](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1822)
|
|
29685
|
+
|
|
29686
|
+
发行版本字符串
|
|
29655
29687
|
|
|
29656
29688
|
lib/task/interfaces/ITask.md
|
|
29657
29689
|
---
|
|
@@ -29664,7 +29696,7 @@ lib/task/interfaces/ITask.md
|
|
|
29664
29696
|
|
|
29665
29697
|
# Interface: ITask
|
|
29666
29698
|
|
|
29667
|
-
Defined in: [lib/task.ts:
|
|
29699
|
+
Defined in: [lib/task.ts:1734](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1734)
|
|
29668
29700
|
|
|
29669
29701
|
运行中的任务对象
|
|
29670
29702
|
|
|
@@ -29674,7 +29706,7 @@ Defined in: [lib/task.ts:1738](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29674
29706
|
|
|
29675
29707
|
> **app**: [`IApp`](../../core/interfaces/IApp.md)
|
|
29676
29708
|
|
|
29677
|
-
Defined in: [lib/task.ts:
|
|
29709
|
+
Defined in: [lib/task.ts:1736](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1736)
|
|
29678
29710
|
|
|
29679
29711
|
***
|
|
29680
29712
|
|
|
@@ -29682,7 +29714,7 @@ Defined in: [lib/task.ts:1740](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29682
29714
|
|
|
29683
29715
|
> **class**: [`AbstractApp`](../../core/classes/AbstractApp.md)
|
|
29684
29716
|
|
|
29685
|
-
Defined in: [lib/task.ts:
|
|
29717
|
+
Defined in: [lib/task.ts:1737](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1737)
|
|
29686
29718
|
|
|
29687
29719
|
***
|
|
29688
29720
|
|
|
@@ -29690,7 +29722,7 @@ Defined in: [lib/task.ts:1741](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29690
29722
|
|
|
29691
29723
|
> **controls**: `Record`\<`string`, \{ `access`: `Record`\<`string`, `any`\>; `computed`: `Record`\<`string`, `any`\>; `config`: [`IControlConfig`](../../control/interfaces/IControlConfig.md); `data`: `Record`\<`string`, `any`\>; `emits`: `Record`\<`string`, `any`\>; `files`: `Record`\<`string`, `Blob` \| `string`\>; `layout`: `string`; `methods`: `Record`\<`string`, `any`\>; `props`: `Record`\<`string`, `any`\>; \}\>
|
|
29692
29724
|
|
|
29693
|
-
Defined in: [lib/task.ts:
|
|
29725
|
+
Defined in: [lib/task.ts:1751](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1751)
|
|
29694
29726
|
|
|
29695
29727
|
已解析的控件处理后的对象,任务启动时解析,窗体创建时部分复用
|
|
29696
29728
|
|
|
@@ -29700,7 +29732,7 @@ Defined in: [lib/task.ts:1755](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29700
29732
|
|
|
29701
29733
|
> **current**: `string`
|
|
29702
29734
|
|
|
29703
|
-
Defined in: [lib/task.ts:
|
|
29735
|
+
Defined in: [lib/task.ts:1746](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1746)
|
|
29704
29736
|
|
|
29705
29737
|
当前 app 运行路径,末尾不含 /
|
|
29706
29738
|
|
|
@@ -29710,7 +29742,7 @@ Defined in: [lib/task.ts:1750](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29710
29742
|
|
|
29711
29743
|
> **customTheme**: `boolean`
|
|
29712
29744
|
|
|
29713
|
-
Defined in: [lib/task.ts:
|
|
29745
|
+
Defined in: [lib/task.ts:1738](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1738)
|
|
29714
29746
|
|
|
29715
29747
|
***
|
|
29716
29748
|
|
|
@@ -29718,7 +29750,7 @@ Defined in: [lib/task.ts:1742](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29718
29750
|
|
|
29719
29751
|
> **forms**: `Record`\<`string`, [`IForm`](../../form/interfaces/IForm.md)\>
|
|
29720
29752
|
|
|
29721
|
-
Defined in: [lib/task.ts:
|
|
29753
|
+
Defined in: [lib/task.ts:1749](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1749)
|
|
29722
29754
|
|
|
29723
29755
|
窗体对象列表
|
|
29724
29756
|
|
|
@@ -29728,7 +29760,7 @@ Defined in: [lib/task.ts:1753](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29728
29760
|
|
|
29729
29761
|
> **id**: `string`
|
|
29730
29762
|
|
|
29731
|
-
Defined in: [lib/task.ts:
|
|
29763
|
+
Defined in: [lib/task.ts:1735](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1735)
|
|
29732
29764
|
|
|
29733
29765
|
***
|
|
29734
29766
|
|
|
@@ -29736,7 +29768,7 @@ Defined in: [lib/task.ts:1739](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29736
29768
|
|
|
29737
29769
|
> **locale**: `object`
|
|
29738
29770
|
|
|
29739
|
-
Defined in: [lib/task.ts:
|
|
29771
|
+
Defined in: [lib/task.ts:1739](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1739)
|
|
29740
29772
|
|
|
29741
29773
|
#### data
|
|
29742
29774
|
|
|
@@ -29752,7 +29784,7 @@ Defined in: [lib/task.ts:1743](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29752
29784
|
|
|
29753
29785
|
> **path**: `string`
|
|
29754
29786
|
|
|
29755
|
-
Defined in: [lib/task.ts:
|
|
29787
|
+
Defined in: [lib/task.ts:1744](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1744)
|
|
29756
29788
|
|
|
29757
29789
|
当前 app 自己的完整路径,如 /x/xx.cga,或 /x/x,末尾不含 /
|
|
29758
29790
|
|
|
@@ -29762,7 +29794,7 @@ Defined in: [lib/task.ts:1748](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29762
29794
|
|
|
29763
29795
|
> **threads**: `Record`\<`string`, [`IThread`](IThread.md)\>
|
|
29764
29796
|
|
|
29765
|
-
Defined in: [lib/task.ts:
|
|
29797
|
+
Defined in: [lib/task.ts:1768](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1768)
|
|
29766
29798
|
|
|
29767
29799
|
文件名 -> thread 控制对象
|
|
29768
29800
|
|
|
@@ -29772,7 +29804,7 @@ Defined in: [lib/task.ts:1772](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29772
29804
|
|
|
29773
29805
|
> **timers**: `Record`\<`string`, `string`\>
|
|
29774
29806
|
|
|
29775
|
-
Defined in: [lib/task.ts:
|
|
29807
|
+
Defined in: [lib/task.ts:1766](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1766)
|
|
29776
29808
|
|
|
29777
29809
|
任务中的 timer 列表
|
|
29778
29810
|
|
|
@@ -29787,7 +29819,7 @@ lib/task/interfaces/ITaskRunOptions.md
|
|
|
29787
29819
|
|
|
29788
29820
|
# Interface: ITaskRunOptions
|
|
29789
29821
|
|
|
29790
|
-
Defined in: [lib/task.ts:
|
|
29822
|
+
Defined in: [lib/task.ts:1786](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1786)
|
|
29791
29823
|
|
|
29792
29824
|
## Properties
|
|
29793
29825
|
|
|
@@ -29795,7 +29827,7 @@ Defined in: [lib/task.ts:1790](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29795
29827
|
|
|
29796
29828
|
> `optional` **after?**: `string`
|
|
29797
29829
|
|
|
29798
|
-
Defined in: [lib/task.ts:
|
|
29830
|
+
Defined in: [lib/task.ts:1799](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1799)
|
|
29799
29831
|
|
|
29800
29832
|
如果是网络加载 cga,则网址后面会附带,如 ?123
|
|
29801
29833
|
|
|
@@ -29805,7 +29837,7 @@ Defined in: [lib/task.ts:1803](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29805
29837
|
|
|
29806
29838
|
> `optional` **data?**: `Record`\<`string`, `any`\>
|
|
29807
29839
|
|
|
29808
|
-
Defined in: [lib/task.ts:
|
|
29840
|
+
Defined in: [lib/task.ts:1801](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1801)
|
|
29809
29841
|
|
|
29810
29842
|
给 task 传值
|
|
29811
29843
|
|
|
@@ -29815,7 +29847,7 @@ Defined in: [lib/task.ts:1805](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29815
29847
|
|
|
29816
29848
|
> `optional` **icon?**: `string`
|
|
29817
29849
|
|
|
29818
|
-
Defined in: [lib/task.ts:
|
|
29850
|
+
Defined in: [lib/task.ts:1787](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1787)
|
|
29819
29851
|
|
|
29820
29852
|
***
|
|
29821
29853
|
|
|
@@ -29823,7 +29855,7 @@ Defined in: [lib/task.ts:1791](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29823
29855
|
|
|
29824
29856
|
> `optional` **initProgress?**: (`loaded`, `total`, `type`, `msg`) => `void` \| `Promise`\<`void`\>
|
|
29825
29857
|
|
|
29826
|
-
Defined in: [lib/task.ts:
|
|
29858
|
+
Defined in: [lib/task.ts:1789](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1789)
|
|
29827
29859
|
|
|
29828
29860
|
初始化进度回调
|
|
29829
29861
|
|
|
@@ -29855,7 +29887,7 @@ Defined in: [lib/task.ts:1793](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29855
29887
|
|
|
29856
29888
|
> `optional` **notify?**: `boolean`
|
|
29857
29889
|
|
|
29858
|
-
Defined in: [lib/task.ts:
|
|
29890
|
+
Defined in: [lib/task.ts:1795](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1795)
|
|
29859
29891
|
|
|
29860
29892
|
显示 notify 窗口
|
|
29861
29893
|
|
|
@@ -29865,7 +29897,7 @@ Defined in: [lib/task.ts:1799](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29865
29897
|
|
|
29866
29898
|
> `optional` **path?**: `string`
|
|
29867
29899
|
|
|
29868
|
-
Defined in: [lib/task.ts:
|
|
29900
|
+
Defined in: [lib/task.ts:1803](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1803)
|
|
29869
29901
|
|
|
29870
29902
|
执行文件的基路径,一般在传入 APP 包时使用,以 .cga 结尾
|
|
29871
29903
|
|
|
@@ -29875,7 +29907,7 @@ Defined in: [lib/task.ts:1807](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29875
29907
|
|
|
29876
29908
|
> `optional` **permissions?**: `string`[]
|
|
29877
29909
|
|
|
29878
|
-
Defined in: [lib/task.ts:
|
|
29910
|
+
Defined in: [lib/task.ts:1797](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1797)
|
|
29879
29911
|
|
|
29880
29912
|
直接赋予此任务相应权限,有 "root" 权限的应用才能设置
|
|
29881
29913
|
|
|
@@ -29885,7 +29917,7 @@ Defined in: [lib/task.ts:1801](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29885
29917
|
|
|
29886
29918
|
> `optional` **perProgress?**: (`per`) => `void` \| `Promise`\<`void`\>
|
|
29887
29919
|
|
|
29888
|
-
Defined in: [lib/task.ts:
|
|
29920
|
+
Defined in: [lib/task.ts:1793](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1793)
|
|
29889
29921
|
|
|
29890
29922
|
返回总加载进度百分比(0 - 1)
|
|
29891
29923
|
|
|
@@ -29905,7 +29937,7 @@ Defined in: [lib/task.ts:1797](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29905
29937
|
|
|
29906
29938
|
> `optional` **progress?**: (`loaded`, `total`, `type`, `path`) => `void` \| `Promise`\<`void`\>
|
|
29907
29939
|
|
|
29908
|
-
Defined in: [lib/task.ts:
|
|
29940
|
+
Defined in: [lib/task.ts:1791](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1791)
|
|
29909
29941
|
|
|
29910
29942
|
加载进度回调(根据 type 分为不同阶段)
|
|
29911
29943
|
|
|
@@ -29942,7 +29974,7 @@ lib/task/interfaces/IThread.md
|
|
|
29942
29974
|
|
|
29943
29975
|
# Interface: IThread
|
|
29944
29976
|
|
|
29945
|
-
Defined in: [lib/task.ts:
|
|
29977
|
+
Defined in: [lib/task.ts:1722](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1722)
|
|
29946
29978
|
|
|
29947
29979
|
## Properties
|
|
29948
29980
|
|
|
@@ -29950,7 +29982,7 @@ Defined in: [lib/task.ts:1726](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29950
29982
|
|
|
29951
29983
|
> **end**: () => `Promise`\<`void`\>
|
|
29952
29984
|
|
|
29953
|
-
Defined in: [lib/task.ts:
|
|
29985
|
+
Defined in: [lib/task.ts:1730](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1730)
|
|
29954
29986
|
|
|
29955
29987
|
结束线程
|
|
29956
29988
|
|
|
@@ -29964,7 +29996,7 @@ Defined in: [lib/task.ts:1734](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29964
29996
|
|
|
29965
29997
|
> **off**: (`name`, `handler`) => `void`
|
|
29966
29998
|
|
|
29967
|
-
Defined in: [lib/task.ts:
|
|
29999
|
+
Defined in: [lib/task.ts:1726](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1726)
|
|
29968
30000
|
|
|
29969
30001
|
移除事件
|
|
29970
30002
|
|
|
@@ -29988,7 +30020,7 @@ Defined in: [lib/task.ts:1730](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
29988
30020
|
|
|
29989
30021
|
> **on**: (`name`, `handler`) => `void`
|
|
29990
30022
|
|
|
29991
|
-
Defined in: [lib/task.ts:
|
|
30023
|
+
Defined in: [lib/task.ts:1724](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1724)
|
|
29992
30024
|
|
|
29993
30025
|
绑定事件
|
|
29994
30026
|
|
|
@@ -30012,7 +30044,7 @@ Defined in: [lib/task.ts:1728](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
30012
30044
|
|
|
30013
30045
|
> **send**: (`data`) => `void`
|
|
30014
30046
|
|
|
30015
|
-
Defined in: [lib/task.ts:
|
|
30047
|
+
Defined in: [lib/task.ts:1728](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1728)
|
|
30016
30048
|
|
|
30017
30049
|
发送数据
|
|
30018
30050
|
|
|
@@ -30039,7 +30071,7 @@ lib/task/variables/systemTaskInfo.md
|
|
|
30039
30071
|
|
|
30040
30072
|
> **systemTaskInfo**: [`ISystemTaskInfo`](../interfaces/ISystemTaskInfo.md)
|
|
30041
30073
|
|
|
30042
|
-
Defined in: [lib/task.ts:
|
|
30074
|
+
Defined in: [lib/task.ts:1374](https://github.com/maiyun/clickgo/blob/master/dist/lib/task.ts#L1374)
|
|
30043
30075
|
|
|
30044
30076
|
task 的信息
|
|
30045
30077
|
|