clickgo 3.16.26 → 3.16.27

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
@@ -35,7 +35,7 @@ First, load the module loader, then load your app with it.
35
35
  **index.html**
36
36
 
37
37
  ```html
38
- <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.8/dist/loader.min.js?path=index&npm={'clickgo':'3.16.26'}"></script>
38
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.8/dist/loader.min.js?path=index&npm={'clickgo':'3.16.27'}"></script>
39
39
  ```
40
40
 
41
41
  **index.js**
@@ -131,6 +131,7 @@ class default_1 extends clickgo.form.AbstractForm {
131
131
  ]
132
132
  }
133
133
  ];
134
+ this.listData6 = ['1', '2', '3', '4', '5'];
134
135
  this.listMap5 = undefined;
135
136
  this.listData5Index = false;
136
137
  this.disabledList = [];
@@ -293,6 +294,12 @@ class default_1 extends clickgo.form.AbstractForm {
293
294
  this.sub6children = ['Sub7', 'Sub8'];
294
295
  });
295
296
  }
297
+ onList6Load(value, resolve) {
298
+ return __awaiter(this, void 0, void 0, function* () {
299
+ yield clickgo.tool.sleep(300);
300
+ resolve();
301
+ });
302
+ }
296
303
  onSelect(area) {
297
304
  this.selectionArea = area;
298
305
  }
@@ -75,16 +75,26 @@
75
75
  <label v-else>{{disabledList}}</label>
76
76
  </layout>
77
77
  <layout direction="v" gutter="10" style="flex: 1; width: 0;">
78
- <list :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" @gesture="onGesture" :scroll="scroll" :virtual="virtual" :mode="mode[0]" :data="listData5" :check="check" :map="listMap5" :tree="tree" :async="async" @load="onlist5Load" style="flex: 1;">
79
- <template v-slot:row="data">
80
- <layout gutter="10" align-v="center">
81
- <label style="flex: 1;">{{data.row.label}}</label>
82
- <button v-if="data.index === 1" @click="++data.row.data.count">abc({{data.row.data.count}})</button>
83
- </layout>
84
- </template>
85
- </list>
86
- <button v-if="listMap5===undefined" @click="listMap5={'label':'name','value':'id','children':'sub','disabled':'disabled1'}">Set map</button>
87
- <button v-if="listMap5!==undefined" @click="changelistData5Index">{{listData5Index ? '' : '!'}}index</button>
78
+ <layout direction="v" gutter="10" style="flex: 1; height: 0;">
79
+ <list :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" @gesture="onGesture" :scroll="scroll" :virtual="virtual" :mode="mode[0]" :data="listData5" :check="check" :map="listMap5" :tree="tree" :async="async" @load="onlist5Load" style="flex: 1;">
80
+ <template v-slot:row="data">
81
+ <layout gutter="10" align-v="center">
82
+ <label style="flex: 1;">{{data.row.label}}</label>
83
+ <button v-if="data.index === 1" @click="++data.row.data.count">abc({{data.row.data.count}})</button>
84
+ </layout>
85
+ </template>
86
+ </list>
87
+ <button v-if="listMap5===undefined" @click="listMap5={'label':'name','value':'id','children':'sub','disabled':'disabled1'}">Set map</button>
88
+ <button v-if="listMap5!==undefined" @click="changelistData5Index">{{listData5Index ? '' : '!'}}index</button>
89
+ </layout>
90
+ <layout direction="v" gutter="10" style="flex: 1; height: 0;">
91
+ <list :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" @gesture="onGesture" :scroll="scroll" :virtual="virtual" :mode="mode[0]" :data="listData6" :check="check" :tree="tree" :async="async" @load="onList6Load" style="flex: 1; height: 0;">
92
+ <template v-slot:row="data">
93
+ <label>{{data.row.label}}</label>
94
+ </template>
95
+ </list>
96
+ <button @click="listData6=['1','2','3','4','5']">Set data</button>
97
+ </layout>
88
98
  </layout>
89
99
  </layout>
90
100
  <label class="mtip">Right-click (computer) or press and hold (phone) to open the universal menu.</label>
@@ -82,8 +82,8 @@ class default_1 extends clickgo.form.AbstractForm {
82
82
  'label': 'tip',
83
83
  'color': 'tip'
84
84
  }, 'haha4', {
85
- 'value': 'ha5',
86
- 'label': 'The value is ha5'
85
+ 'value': 'hA5',
86
+ 'label': 'The value is hA5'
87
87
  }, {
88
88
  'value': 'ha6',
89
89
  'label': 'Can not be selected',
@@ -241,7 +241,7 @@ class default_1 extends clickgo.form.AbstractForm {
241
241
  }
242
242
  }
243
243
  onChanged(e) {
244
- console.log('onChanged', e);
244
+ console.log('onChanged', JSON.stringify(e, null, 4));
245
245
  }
246
246
  onTagclick(e) {
247
247
  this.addRemoveList.unshift('@tagclick, index: ' + e.detail.index.toString() + ', value: ' + e.detail.value);
@@ -10,7 +10,7 @@
10
10
  <button @click="rand">rand({{min}}, {{max}})</button>
11
11
  </layout>
12
12
  <layout gutter="10">
13
- <text v-model="length" style="width: 30px;"></text>
13
+ <text v-model="length" style="width: 60px;"></text>
14
14
  <text v-model="block" style="flex: 1;"></text>
15
15
  <button @click="random">random({{length}}, RANDOM_LUN, '{{block}}')</button>
16
16
  </layout>
package/dist/clickgo.js CHANGED
@@ -40,7 +40,7 @@ exports.getPlatform = getPlatform;
40
40
  exports.getDevice = getDevice;
41
41
  exports.isImmersion = isImmersion;
42
42
  exports.hasFrame = hasFrame;
43
- const version = '3.16.26';
43
+ const version = '3.16.27';
44
44
  function getVersion() {
45
45
  return version;
46
46
  }
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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.16.26",
3
+ "version": "3.16.27",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",