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 +1 -1
- package/dist/app/demo/form/control/list/list.js +7 -0
- package/dist/app/demo/form/control/list/list.xml +20 -10
- package/dist/app/demo/form/control/select/select.js +3 -3
- package/dist/app/demo/form/method/tool/tool.xml +1 -1
- package/dist/clickgo.js +1 -1
- package/dist/control/arteditor.cgc +0 -0
- package/dist/control/box.cgc +0 -0
- package/dist/control/captcha.cgc +0 -0
- package/dist/control/common.cgc +0 -0
- package/dist/control/desc.cgc +0 -0
- package/dist/control/drawer.cgc +0 -0
- package/dist/control/echarts.cgc +0 -0
- package/dist/control/form.cgc +0 -0
- package/dist/control/iconview.cgc +0 -0
- package/dist/control/jodit.cgc +0 -0
- package/dist/control/map.cgc +0 -0
- package/dist/control/monaco.cgc +0 -0
- package/dist/control/mpegts.cgc +0 -0
- package/dist/control/nav.cgc +0 -0
- package/dist/control/page.cgc +0 -0
- package/dist/control/pdf.cgc +0 -0
- package/dist/control/property.cgc +0 -0
- package/dist/control/qrcode.cgc +0 -0
- package/dist/control/table.cgc +0 -0
- package/dist/control/task.cgc +0 -0
- package/dist/control/tplink.cgc +0 -0
- package/dist/control/tuieditor.cgc +0 -0
- package/dist/control/tuiviewer.cgc +0 -0
- package/dist/control/xterm.cgc +0 -0
- package/dist/theme/blue.cgt +0 -0
- package/dist/theme/byterun.cgt +0 -0
- package/dist/theme/dark.cgt +0 -0
- package/dist/theme/light.cgt +0 -0
- package/package.json +1 -1
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.
|
|
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
|
-
<
|
|
79
|
-
<
|
|
80
|
-
<
|
|
81
|
-
<
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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': '
|
|
86
|
-
'label': 'The value is
|
|
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:
|
|
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
|
Binary file
|
package/dist/control/box.cgc
CHANGED
|
Binary file
|
package/dist/control/captcha.cgc
CHANGED
|
Binary file
|
package/dist/control/common.cgc
CHANGED
|
Binary file
|
package/dist/control/desc.cgc
CHANGED
|
Binary file
|
package/dist/control/drawer.cgc
CHANGED
|
Binary file
|
package/dist/control/echarts.cgc
CHANGED
|
Binary file
|
package/dist/control/form.cgc
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/control/jodit.cgc
CHANGED
|
Binary file
|
package/dist/control/map.cgc
CHANGED
|
Binary file
|
package/dist/control/monaco.cgc
CHANGED
|
Binary file
|
package/dist/control/mpegts.cgc
CHANGED
|
Binary file
|
package/dist/control/nav.cgc
CHANGED
|
Binary file
|
package/dist/control/page.cgc
CHANGED
|
Binary file
|
package/dist/control/pdf.cgc
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/control/qrcode.cgc
CHANGED
|
Binary file
|
package/dist/control/table.cgc
CHANGED
|
Binary file
|
package/dist/control/task.cgc
CHANGED
|
Binary file
|
package/dist/control/tplink.cgc
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/control/xterm.cgc
CHANGED
|
Binary file
|
package/dist/theme/blue.cgt
CHANGED
|
Binary file
|
package/dist/theme/byterun.cgt
CHANGED
|
Binary file
|
package/dist/theme/dark.cgt
CHANGED
|
Binary file
|
package/dist/theme/light.cgt
CHANGED
|
Binary file
|