clickgo 3.6.0 → 3.6.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/README.md CHANGED
@@ -28,7 +28,7 @@ Load the module loader first, and then load it using the module loader.
28
28
  **index.html**
29
29
 
30
30
  ```html
31
- <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.0/dist/loader.min.js?path=index&npm={'clickgo':'3.6.0'}"></script>
31
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.0/dist/loader.min.js?path=index&npm={'clickgo':'3.6.1'}"></script>
32
32
  ```
33
33
 
34
34
  **index.js**
@@ -1,7 +1,8 @@
1
- <form width="300" height="300" title="Link">
1
+ <form width="300" height="350" title="Link">
2
2
  <layout direction="v" gutter="10" style="padding: 10px; flex: 1; width: 0;">
3
3
  <label>You can use CSS to customize the link:</label>
4
4
  <link>Normal</link>
5
+ <link plain>Plain</link>
5
6
  <link style="text-align: center;">Center</link>
6
7
  <link style="color: red;">Color</link>
7
8
  <link style="background: rgba(0, 0, 0, .1);">Background</link>
package/dist/clickgo.js CHANGED
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.zip = exports.tool = exports.theme = exports.task = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.vue = exports.hasFrame = exports.isImmersion = exports.getPlatform = exports.isNative = exports.getVersion = void 0;
27
- const version = '3.6.0';
27
+ const version = '3.6.1';
28
28
  function getVersion() {
29
29
  return version;
30
30
  }
package/dist/clickgo.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- const version = '3.6.0';
16
+ const version = '3.6.1';
17
17
  export function getVersion(): string {
18
18
  return version;
19
19
  }
Binary file
package/dist/lib/form.js CHANGED
@@ -824,6 +824,9 @@ function get(formId) {
824
824
  if (taskId === 0) {
825
825
  return null;
826
826
  }
827
+ if (!task.list[taskId].forms[formId]) {
828
+ return null;
829
+ }
827
830
  const item = task.list[taskId].forms[formId];
828
831
  return {
829
832
  'taskId': taskId,
@@ -1005,13 +1008,16 @@ function getMaxZIndexID(out = {}) {
1005
1008
  continue;
1006
1009
  }
1007
1010
  const z = parseInt(formInner.style.zIndex);
1008
- if (z > 9999999) {
1011
+ if (z < 1000000) {
1009
1012
  continue;
1010
1013
  }
1011
1014
  if (formInner.dataset.cgMin !== undefined) {
1012
1015
  continue;
1013
1016
  }
1014
1017
  const tid = parseInt(formWrap.getAttribute('data-task-id'));
1018
+ if (tid === task.systemTaskInfo.taskId) {
1019
+ continue;
1020
+ }
1015
1021
  if ((_a = out.taskIds) === null || _a === void 0 ? void 0 : _a.includes(tid)) {
1016
1022
  continue;
1017
1023
  }
package/dist/lib/form.ts CHANGED
@@ -1134,6 +1134,9 @@ export function get(formId: number): types.IFormInfo | null {
1134
1134
  if (taskId === 0) {
1135
1135
  return null;
1136
1136
  }
1137
+ if (!task.list[taskId].forms[formId]) {
1138
+ return null;
1139
+ }
1137
1140
  const item = task.list[taskId].forms[formId];
1138
1141
  return {
1139
1142
  'taskId': taskId,
@@ -1367,9 +1370,9 @@ export function getMaxZIndexID(out: {
1367
1370
  if (!formInner) {
1368
1371
  continue;
1369
1372
  }
1370
- // --- 排除 top most 窗体 ---
1373
+ // --- 排除 bottom most 窗体 ---
1371
1374
  const z = parseInt(formInner.style.zIndex);
1372
- if (z > 9999999) {
1375
+ if (z < 1000000) {
1373
1376
  continue;
1374
1377
  }
1375
1378
  // --- 排除最小化窗体 ---
@@ -1378,6 +1381,10 @@ export function getMaxZIndexID(out: {
1378
1381
  }
1379
1382
  // --- 排除用户定义的 task id 窗体 ---
1380
1383
  const tid = parseInt(formWrap.getAttribute('data-task-id')!);
1384
+ if (tid === task.systemTaskInfo.taskId) {
1385
+ // --- 系统任务排除掉 ---
1386
+ continue;
1387
+ }
1381
1388
  if (out.taskIds?.includes(tid)) {
1382
1389
  continue;
1383
1390
  }
package/dist/lib/tool.js CHANGED
@@ -429,12 +429,10 @@ function getBoolean(param) {
429
429
  if (t === 'boolean') {
430
430
  return param;
431
431
  }
432
- else if (t === 'string') {
432
+ if (t === 'string') {
433
433
  return param === 'false' ? false : true;
434
434
  }
435
- else {
436
- return param ? true : false;
437
- }
435
+ return param ? true : false;
438
436
  }
439
437
  exports.getBoolean = getBoolean;
440
438
  function getNumber(param) {
package/dist/lib/tool.ts CHANGED
@@ -565,12 +565,10 @@ export function getBoolean(param: boolean | string | number | undefined): boolea
565
565
  if (t === 'boolean') {
566
566
  return param as boolean;
567
567
  }
568
- else if (t === 'string') {
568
+ if (t === 'string') {
569
569
  return param === 'false' ? false : true;
570
570
  }
571
- else {
572
- return param ? true : false;
573
- }
571
+ return param ? true : false;
574
572
  }
575
573
 
576
574
  /**
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",