clickgo 3.3.4 → 3.3.5
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.3.
|
|
31
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.0/dist/loader.min.js?path=index&npm={'clickgo':'3.3.5'}"></script>
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
**index.js**
|
|
@@ -68,6 +68,13 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
68
68
|
this.select = [];
|
|
69
69
|
this.select2 = ['Appraise'];
|
|
70
70
|
this.label2 = [''];
|
|
71
|
+
this.selectObject = ['test'];
|
|
72
|
+
this.listDataObject = {
|
|
73
|
+
'test': 'This is test',
|
|
74
|
+
'-1': 'This is number',
|
|
75
|
+
'other': 'This is other',
|
|
76
|
+
'same': 'same'
|
|
77
|
+
};
|
|
71
78
|
this.sub6children = [];
|
|
72
79
|
this.select3 = [0];
|
|
73
80
|
this.listData3 = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<form title="List" width="400" height="450" min-width="300" min-height="400" padding="10" direction="v">
|
|
2
2
|
<label>Greatlist: {{select}}, list: {{select2}}, label: {{label2}}</label>
|
|
3
|
-
<tab v-model="ntab" :tabs="['greatlist', 'adaptation', 'beyond', 'list', 'async']" style="flex: 1; height: 0;">
|
|
3
|
+
<tab v-model="ntab" :tabs="['greatlist', 'adaptation', 'beyond', 'list', 'object', 'async']" style="flex: 1; height: 0;">
|
|
4
4
|
<!-- 默认 -->
|
|
5
5
|
<layout v-if="ntab === 'greatlist'" direction="v" style="flex: 1; width: 0; padding: 10px;">
|
|
6
6
|
<greatlist v-model="select" :data="slist" :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" @gesture="onGesture" :scroll="scroll" :sizes="sizes" @select="onSelect" style="line-height: 1.3; flex: 1; height: 0;">
|
|
@@ -60,6 +60,13 @@
|
|
|
60
60
|
</layout>
|
|
61
61
|
<label class="tip">Right-click (computer) or press and hold (phone) to open the universal menu.</label>
|
|
62
62
|
</layout>
|
|
63
|
+
<!-- object -->
|
|
64
|
+
<layout v-else-if="ntab === 'object'" direction="v" gutter="10" style="flex: 1; width: 0; padding: 10px;">
|
|
65
|
+
<label>Select value: {{selectObject}}</label>
|
|
66
|
+
<label>Raw data:</label>
|
|
67
|
+
<flow direction="v" style="border: solid 1px #b3b3b3; line-height: 1.5; height: 50px; padding: 5px;">{{listDataObject}}</flow>
|
|
68
|
+
<list v-model="selectObject" :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" @gesture="onGesture" :scroll="scroll" :data="listDataObject" style="flex: 1;"></list>
|
|
69
|
+
</layout>
|
|
63
70
|
<!-- async -->
|
|
64
71
|
<layout v-else gutter="10" style="flex: 1; width: 0; padding: 10px;">
|
|
65
72
|
<layout direction="v" gutter="10" style="flex: 1; width: 0;">
|
|
@@ -76,13 +83,13 @@
|
|
|
76
83
|
</layout>
|
|
77
84
|
</layout>
|
|
78
85
|
</tab>
|
|
79
|
-
<layout class="ctr" gutter="10" v-show="ntab !== 'async'">
|
|
86
|
+
<layout class="ctr" gutter="10" v-show="ntab !== 'async' && ntab !== 'object'">
|
|
80
87
|
<button @click="slist.splice(-2, 0, {'type': 0, 'name': 'Card' + slist.length, 'path': 'Bob >> folder >> Card', 'src': '/package/res/r-2.svg','disabled': false})">Add</button>
|
|
81
88
|
<button @click="slist.splice(-3, 1)">Remove</button>
|
|
82
89
|
<button @click="scrollChange">Scroll {{scroll}}</button>
|
|
83
90
|
<button @click="icon = !icon" v-show="ntab === 'list'">{{icon ? '' : '!'}}icon</button>
|
|
84
91
|
</layout>
|
|
85
|
-
<layout class="ctr" gutter="10" v-show="ntab !== 'async'">
|
|
92
|
+
<layout class="ctr" gutter="10" v-show="ntab !== 'async' && ntab !== 'object'">
|
|
86
93
|
<button @click="selectButton">Select {{ntab === 'list' ? 'item1' : 'item2'}}</button>
|
|
87
94
|
<button @click="selectButtonList" v-show="ntab === 'list'">Select Sub3</button>
|
|
88
95
|
<button @click="tree = !tree" v-show="ntab === 'list'">{{tree ? '' : '!'}}tree</button>
|
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.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.3.
|
|
27
|
+
const version = '3.3.5';
|
|
28
28
|
function getVersion() {
|
|
29
29
|
return version;
|
|
30
30
|
}
|
package/dist/clickgo.ts
CHANGED
package/dist/control/common.cgc
CHANGED
|
Binary file
|