clickgo 3.13.1 → 3.13.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/README.md CHANGED
@@ -25,7 +25,7 @@ Load the module loader first, and then load it using the module loader.
25
25
  **index.html**
26
26
 
27
27
  ```html
28
- <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.13.1'}"></script>
28
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.13.2'}"></script>
29
29
  ```
30
30
 
31
31
  **index.js**
@@ -24,7 +24,7 @@
24
24
  <label style="flex: 1; text-align: right; padding-right: var(--g-padding);">Panel</label>
25
25
  </template>
26
26
  <template v-slot:content>
27
- <panel :map="map" style="flex: 1;" @go="loading = true" @went="loading = false"></panel>
27
+ <panel :map="map" style="flex: 1;" @go="loading = true; lockLoading = true" @went="lockLoading = false; loading = false"></panel>
28
28
  </template>
29
29
  </nav>
30
30
  </layout>
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.storage = 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.13.1';
27
+ const version = '3.13.2';
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.13.1';
16
+ const version = '3.13.2';
17
17
  export function getVersion(): string {
18
18
  return version;
19
19
  }
package/dist/lib/form.js CHANGED
@@ -331,7 +331,8 @@ class AbstractForm extends AbstractCommon {
331
331
  super(...arguments);
332
332
  this.isNativeSync = false;
333
333
  this.isReady = false;
334
- this.loading = false;
334
+ this._loading = false;
335
+ this.lockLoading = false;
335
336
  this._inStep = false;
336
337
  this._stepValues = [];
337
338
  this._firstShow = true;
@@ -421,6 +422,15 @@ class AbstractForm extends AbstractCommon {
421
422
  sendToPanel(panel, data) {
422
423
  panel.send(data);
423
424
  }
425
+ get loading() {
426
+ return this._loading;
427
+ }
428
+ set loading(val) {
429
+ if (this.lockLoading) {
430
+ return;
431
+ }
432
+ this._loading = val;
433
+ }
424
434
  get inStep() {
425
435
  return this._inStep;
426
436
  }
package/dist/lib/form.ts CHANGED
@@ -581,8 +581,23 @@ export abstract class AbstractForm extends AbstractCommon {
581
581
  panel.send(data);
582
582
  }
583
583
 
584
+ /** --- 覆盖整个窗体的 loading(实际值) --- */
585
+ private _loading: boolean = false;
586
+
584
587
  /** --- 覆盖整个窗体的 loading --- */
585
- public loading: boolean = false;
588
+ public get loading(): boolean {
589
+ return this._loading;
590
+ }
591
+
592
+ public set loading(val: boolean) {
593
+ if (this.lockLoading) {
594
+ return;
595
+ }
596
+ this._loading = val;
597
+ }
598
+
599
+ /** --- 是否阻止任何人修改 loading --- */
600
+ public lockLoading: boolean = false;
586
601
 
587
602
  // --- step 相关 ---
588
603
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.13.1",
3
+ "version": "3.13.2",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",