keytops-game-framework 1.0.15 → 1.0.17

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.
@@ -50,17 +50,17 @@ export interface IScene extends IView {
50
50
  * 显示正常提示
51
51
  * @param tipContent 提示文本内容
52
52
  */
53
- tips(message: string): void;
53
+ tips(message: string, stay?: number): void;
54
54
  /**
55
55
  * 显示警告提示
56
56
  * @param tipContent 警告文本内容
57
57
  */
58
- warn(message: string): void;
58
+ warn(message: string, stay?: number): void;
59
59
  /**
60
60
  * 显示错误提示
61
61
  * @param tipContent 错误文本内容
62
62
  */
63
- error(message: string): void;
63
+ error(message: string, stay?: number): void;
64
64
  /**
65
65
  * 添加视图到场景最上层
66
66
  * @param view
package/dist/index.js CHANGED
@@ -2438,7 +2438,7 @@ class RemoteConfigStore {
2438
2438
  const configKey = this.getConfigKey(configClass);
2439
2439
  if (!this._snapshots[configKey]) {
2440
2440
  const config = this._registry.create(configClass);
2441
- const persisted = storage.getGValue(this.getStorageKey(configClass), undefined);
2441
+ const persisted = storage.getGValue(this.getStorageKey(configClass), {});
2442
2442
  // 首次读取时先构造默认对象,再把本地持久化内容 merge 回来,保证未请求时也能正常工作。
2443
2443
  this._snapshots[configKey] = persisted ? config.merge(config, persisted) : config;
2444
2444
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keytops-game-framework",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "cocos creator game framework library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",