clickgo 3.11.19 → 3.11.21

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.1/dist/loader.min.js?path=index&npm={'clickgo':'3.11.19'}"></script>
31
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.1/dist/loader.min.js?path=index&npm={'clickgo':'3.11.21'}"></script>
32
32
  ```
33
33
 
34
34
  **index.js**
@@ -76,6 +76,13 @@ class default_1 extends clickgo.form.AbstractForm {
76
76
  'time': 1676600099,
77
77
  'icon': '/package/res/zip.svg'
78
78
  },
79
+ {
80
+ 'id': '7',
81
+ 'type': 1,
82
+ 'name': 'packlonglonglonglonglonglonglonglonglong.zip',
83
+ 'time': 1676700099,
84
+ 'icon': '/package/res/zip.svg'
85
+ },
79
86
  {
80
87
  'id': 7,
81
88
  'icon': 'https://cdn.jsdelivr.net/npm/clickgo@3.7.0/dist/app/demo/res/img.jpg'
@@ -9,7 +9,7 @@
9
9
  <img :src="slist[select[0]] ? slist[select[0]].src : ''" style="width: 32px; height: 32px;"></img>
10
10
  <block>
11
11
  <block>{{slist[select[0]] ? slist[select[0]].name : 'None'}}{{select.length > 1 ? ' [multi]' : ''}}</block>
12
- <block style="opacity: .7;">{{slist[select[0]] ? slist[select[0]].path : none}}</block>
12
+ <block style="opacity: .7;">{{slist[select[0]] ? slist[select[0]].path : 'none'}}</block>
13
13
  </block>
14
14
  </layout>
15
15
  <template v-slot:pop="data">
@@ -9,6 +9,9 @@
9
9
  <tip label="This is a select">
10
10
  <select :data="[1,2,3,4]"></select>
11
11
  </tip>
12
+ <tip label="This is so long long long long long long long long long long">
13
+ <label>So long</label>
14
+ </tip>
12
15
  <tip>
13
16
  <template v-slot:content>
14
17
  <layout direction="v" gutter="5">
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.11.19';
27
+ const version = '3.11.21';
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.11.19';
16
+ const version = '3.11.21';
17
17
  export function getVersion(): string {
18
18
  return version;
19
19
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/index.js CHANGED
@@ -31,6 +31,15 @@ function hasFrame() {
31
31
  }
32
32
  exports.hasFrame = hasFrame;
33
33
  class AbstractBoot {
34
+ isDebug() {
35
+ return this._debug;
36
+ }
37
+ constructor(opt = {}) {
38
+ this._debug = false;
39
+ if (opt.debug) {
40
+ this._debug = true;
41
+ }
42
+ }
34
43
  onError() {
35
44
  return;
36
45
  }
@@ -101,7 +110,7 @@ function launcher(boot) {
101
110
  return __awaiter(this, void 0, void 0, function* () {
102
111
  var _a;
103
112
  const paths = [
104
- loader.cdn + '/npm/vue@3.4.21/dist/vue.global.prod.min.js'
113
+ `${loader.cdn}/npm/vue@3.4.21/dist/vue.global${boot.isDebug() ? '' : '.prod.min'}.js`
105
114
  ];
106
115
  if (!(window.TouchEvent)) {
107
116
  window.TouchEvent = CustomEvent;
package/dist/index.ts CHANGED
@@ -39,6 +39,22 @@ export function hasFrame(): boolean {
39
39
  /** --- 全局类 --- */
40
40
  export abstract class AbstractBoot {
41
41
 
42
+ /** --- 当前是否是 debug 模式 --- */
43
+ private _debug: boolean = false;
44
+
45
+ /** --- 判断当前是否是 debug 模式 --- */
46
+ public isDebug(): boolean {
47
+ return this._debug;
48
+ }
49
+
50
+ public constructor(opt: {
51
+ 'debug'?: boolean;
52
+ } = {}) {
53
+ if (opt.debug) {
54
+ this._debug = true;
55
+ }
56
+ }
57
+
42
58
  /** --- 入口方法 --- */
43
59
  public abstract main(): void | Promise<void>;
44
60
 
@@ -176,7 +192,7 @@ export function launcher(boot: AbstractBoot): void {
176
192
  (async function() {
177
193
  // --- 通过标签加载库 ---
178
194
  const paths: string[] = [
179
- loader.cdn + '/npm/vue@3.4.21/dist/vue.global.prod.min.js'
195
+ `${loader.cdn}/npm/vue@3.4.21/dist/vue.global${boot.isDebug() ? '' : '.prod.min'}.js`
180
196
  ];
181
197
  // --- 判断 TouchEvent 是否存在(例如某些浏览器可能不存在这个对象) ---
182
198
  if (!((window as any).TouchEvent)) {
package/dist/lib/form.js CHANGED
@@ -2165,7 +2165,7 @@ function createPanel(rootPanel_1, cls_1) {
2165
2165
  'content': `Message: ${err.message}\nTask id: ${vm.taskId}\nForm id: ${vm.formId}`,
2166
2166
  'type': 'danger'
2167
2167
  });
2168
- console.error('Runtime Error [form.createPanel.errorHandler]', `Message: ${err.message}\nTask id: ${vm.taskId}\nForm id: ${vm.formId}`, err);
2168
+ console.error('Runtime Error [form.createPanel.errorHandler]', `Message: ${err.message}\nTask id: ${vm.taskId}\nForm id: ${vm.formId}`, err, info);
2169
2169
  core.trigger('error', vm.taskId, vm.formId, err, info + '(-3,' + vm.taskId + ',' + vm.formId + ')');
2170
2170
  };
2171
2171
  for (const key in components) {
@@ -2544,7 +2544,7 @@ function create(cls_1, data_1) {
2544
2544
  'content': `Message: ${err.message}\nTask id: ${vm.taskId}\nForm id: ${vm.formId}`,
2545
2545
  'type': 'danger'
2546
2546
  });
2547
- console.error('Runtime Error [form.create.errorHandler]', `Message: ${err.message}\nTask id: ${vm.taskId}\nForm id: ${vm.formId}`, err);
2547
+ console.error('Runtime Error [form.create.errorHandler]', `Message: ${err.message}\nTask id: ${vm.taskId}\nForm id: ${vm.formId}`, err, info);
2548
2548
  core.trigger('error', vm.taskId, vm.formId, err, info + '(-3,' + vm.taskId + ',' + vm.formId + ')');
2549
2549
  };
2550
2550
  for (const key in components) {
package/dist/lib/form.ts CHANGED
@@ -2792,7 +2792,7 @@ export async function createPanel<T extends AbstractPanel>(
2792
2792
  'content': `Message: ${err.message}\nTask id: ${vm.taskId}\nForm id: ${vm.formId}`,
2793
2793
  'type': 'danger'
2794
2794
  });
2795
- console.error('Runtime Error [form.createPanel.errorHandler]', `Message: ${err.message}\nTask id: ${vm.taskId}\nForm id: ${vm.formId}`, err);
2795
+ console.error('Runtime Error [form.createPanel.errorHandler]', `Message: ${err.message}\nTask id: ${vm.taskId}\nForm id: ${vm.formId}`, err, info);
2796
2796
  core.trigger('error', vm.taskId, vm.formId, err, info + '(-3,' + vm.taskId + ',' + vm.formId + ')');
2797
2797
  };
2798
2798
  // --- 挂载控件对象到 vapp ---
@@ -3245,7 +3245,7 @@ export async function create<T extends AbstractForm>(
3245
3245
  'content': `Message: ${err.message}\nTask id: ${vm.taskId}\nForm id: ${vm.formId}`,
3246
3246
  'type': 'danger'
3247
3247
  });
3248
- console.error('Runtime Error [form.create.errorHandler]', `Message: ${err.message}\nTask id: ${vm.taskId}\nForm id: ${vm.formId}`, err);
3248
+ console.error('Runtime Error [form.create.errorHandler]', `Message: ${err.message}\nTask id: ${vm.taskId}\nForm id: ${vm.formId}`, err, info);
3249
3249
  core.trigger('error', vm.taskId, vm.formId, err, info + '(-3,' + vm.taskId + ',' + vm.formId + ')');
3250
3250
  };
3251
3251
  // --- 挂载控件对象到 vapp ---
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.11.19",
3
+ "version": "3.11.21",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",