clickgo 3.8.6 → 3.8.7

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.0/dist/loader.min.js?path=index&npm={'clickgo':'3.8.6'}"></script>
31
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.0/dist/loader.min.js?path=index&npm={'clickgo':'3.8.7'}"></script>
32
32
  ```
33
33
 
34
34
  **index.js**
@@ -30,6 +30,10 @@ class default_1 extends clickgo.form.AbstractForm {
30
30
  this.radio = 'radio1';
31
31
  this.check1 = true;
32
32
  this.check2 = false;
33
+ this.check3 = true;
34
+ }
35
+ onCheck(event) {
36
+ event.preventDefault();
33
37
  }
34
38
  }
35
39
  exports.default = default_1;
@@ -17,6 +17,8 @@
17
17
  <menulist>
18
18
  <menulist-item type="check" alt="A" v-model="check1">Check1</menulist-item>
19
19
  <menulist-item type="check" alt="B" v-model="check2">Check2</menulist-item>
20
+ <menulist-item type="check" alt="C" v-model="check3" @check="onCheck">Check3 (not)</menulist-item>
21
+ <menulist-item type="check" alt="D">Check4 (nov)</menulist-item>
20
22
  </menulist>
21
23
  </template>
22
24
  </menulist-item>
@@ -192,6 +192,15 @@ class default_1 extends clickgo.form.AbstractForm {
192
192
  }
193
193
  }
194
194
  }
195
+ asyncLoad() {
196
+ const list = ['0', {
197
+ 'label': 'ok',
198
+ 'value': '1'
199
+ }, '2', '3'];
200
+ for (const item of list) {
201
+ this.asyncData.push(item);
202
+ }
203
+ }
195
204
  onMounted() {
196
205
  this.watch(() => this.select.join(','), (n, o) => {
197
206
  let select = [];
@@ -71,7 +71,7 @@
71
71
  <label>Async value: {{asyncModel}}</label>
72
72
  <layout gutter="10">
73
73
  <select v-model="asyncModel" :data="asyncData" style="flex: 1;"></select>
74
- <button v-if="!asyncData.length" @click="asyncData=['0', {'label':'ok','value':'1'},'2','3']">Load</button>
74
+ <button v-if="!asyncData.length" @click="asyncLoad">Load</button>
75
75
  </layout>
76
76
  </layout>
77
77
  </flow>
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.8.6';
27
+ const version = '3.8.7';
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.8.6';
16
+ const version = '3.8.7';
17
17
  export function getVersion(): string {
18
18
  return version;
19
19
  }
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.8.6",
3
+ "version": "3.8.7",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",