clickgo 3.14.4 → 3.14.5

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.14.4'}"></script>
28
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.14.5'}"></script>
29
29
  ```
30
30
 
31
31
  **index.js**
@@ -64,6 +64,16 @@ class default_1 extends clickgo.form.AbstractPanel {
64
64
  'content': 'onQsChange: ' + Object.keys(this.qs).length.toString()
65
65
  });
66
66
  }
67
+ onQsChangeShow(e) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ yield clickgo.tool.sleep(500);
70
+ clickgo.form.notify({
71
+ 'title': 'Test1 Panel',
72
+ 'content': 'onQsChangeShow'
73
+ });
74
+ console.log('onQsChangeShow', e);
75
+ });
76
+ }
67
77
  click() {
68
78
  return __awaiter(this, void 0, void 0, function* () {
69
79
  yield clickgo.form.dialog('Hello panel!');
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.14.4';
27
+ const version = '3.14.5';
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.14.4';
16
+ const version = '3.14.5';
17
17
  export function getVersion(): string {
18
18
  return version;
19
19
  }
Binary file
package/dist/lib/form.js CHANGED
@@ -324,6 +324,9 @@ class AbstractPanel extends AbstractCommon {
324
324
  onQsChange() {
325
325
  return;
326
326
  }
327
+ onQsChangeShow() {
328
+ return;
329
+ }
327
330
  }
328
331
  exports.AbstractPanel = AbstractPanel;
329
332
  class AbstractForm extends AbstractCommon {
package/dist/lib/form.ts CHANGED
@@ -448,6 +448,12 @@ export abstract class AbstractPanel extends AbstractCommon {
448
448
  return;
449
449
  }
450
450
 
451
+ /** --- 无论是 show 还是 qschange 都会触发,优先触发 show 或 qschange 事件本身,之后触发这个 --- */
452
+ public onQsChangeShow(e: types.IAbstractPanelQsChangeShowEvent): void | Promise<void>;
453
+ public onQsChangeShow(): void {
454
+ return;
455
+ }
456
+
451
457
  }
452
458
 
453
459
  /** --- 窗体的抽象类 --- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.14.4",
3
+ "version": "3.14.5",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",
package/types/index.d.ts CHANGED
@@ -675,6 +675,20 @@ export interface IAbstractPanelShowEvent {
675
675
  };
676
676
  }
677
677
 
678
+ export interface IAbstractPanelQsChangeShowEvent {
679
+ 'detail': {
680
+ 'data': Record<string, any>;
681
+ /** --- 是否是 nav 模式 --- */
682
+ 'nav': boolean;
683
+ /** --- 仅 nav 联动时有效,代表是前进还是回退 --- */
684
+ 'action': 'forword' | 'back';
685
+ /** --- 仅 nav 联动时有效,代表上一个的 formHash 的值 --- */
686
+ 'previous': string;
687
+ /** --- 仅 nav 联动时有效,代表本次 qs 是否发生了变化 --- */
688
+ 'qsChange': boolean;
689
+ };
690
+ }
691
+
678
692
  // --- Check Control ---
679
693
 
680
694
  export interface ICheckChangeEvent extends ICustomEvent {