clickgo 3.6.2 → 3.6.4
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/select/select.js +6 -0
- package/dist/app/demo/form/control/select/select.xml +8 -3
- package/dist/app/demo/form/control/text/text.js +1 -0
- package/dist/app/demo/form/control/text/text.xml +18 -16
- package/dist/clickgo.js +1 -1
- package/dist/clickgo.ts +1 -1
- package/dist/control/common.cgc +0 -0
- package/dist/theme/light.cgt +0 -0
- package/package.json +1 -1
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.6.
|
|
31
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.0/dist/loader.min.js?path=index&npm={'clickgo':'3.6.4'}"></script>
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
**index.js**
|
|
@@ -94,6 +94,7 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
94
94
|
];
|
|
95
95
|
this.slist2r = [];
|
|
96
96
|
this.select2 = ['haha2'];
|
|
97
|
+
this.aemodel = [];
|
|
97
98
|
this.label2 = [];
|
|
98
99
|
this.select3 = [];
|
|
99
100
|
this.label3 = [];
|
|
@@ -141,6 +142,11 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
141
142
|
resolve(['he', 'ha']);
|
|
142
143
|
});
|
|
143
144
|
}
|
|
145
|
+
onLoaded() {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
yield clickgo.form.dialog('done');
|
|
148
|
+
});
|
|
149
|
+
}
|
|
144
150
|
onRemote(value, resolve) {
|
|
145
151
|
return __awaiter(this, void 0, void 0, function* () {
|
|
146
152
|
yield clickgo.tool.sleep(300);
|
|
@@ -48,8 +48,12 @@
|
|
|
48
48
|
<select v-model="select2" @label="label2 = $event" :data="remote ? slist2r : slist2" :disabled="disabled" :editable="editable" :multi="multi" :tree="tree" :async="async" :remote="remote" :remote-delay="remoteDelay[0]" :icon="icon" icon-default="../../../res/txt.svg" @load="onLoad" @remote="onRemote" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}"></select>
|
|
49
49
|
<label>Custom height:</label>
|
|
50
50
|
<select :data="remote ? slist2r : ['1','2','3','4','5']" :disabled="disabled" :editable="editable" :multi="multi" :tree="tree" :async="async" :remote="remote" :remote-delay="remoteDelay[0]" :icon="icon" icon-default="../../../res/txt.svg" style="height: 60px;" @load="onLoad" @remote="onRemote" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}"></select>
|
|
51
|
-
<label>Always editable
|
|
52
|
-
<
|
|
51
|
+
<label>Always editable: {{aemodel}}</label>
|
|
52
|
+
<layout gutter="10">
|
|
53
|
+
<select v-model="aemodel" :data="remote ? slist2r : ['1','2','3','4','5']" :disabled="disabled" editable :multi="multi" :tree="tree" :async="async" :remote="remote" :remote-delay="remoteDelay[0]" :icon="icon" icon-default="../../../res/txt.svg" placeholder="Please enter" @load="onLoad" @remote="onRemote" style="flex: 1;" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}"></select>
|
|
54
|
+
<button @click="aemodel.length=0">clear</button>
|
|
55
|
+
<button @click="aemodel[0] = '4'">4</button>
|
|
56
|
+
</layout>
|
|
53
57
|
<layout gutter="10">
|
|
54
58
|
<button @click="icon = !icon" style="flex: 1;">{{icon ? '' : '!'}}icon</button>
|
|
55
59
|
<button @click="async = !async" style="flex: 1;">{{async ? '' : '!'}}async</button>
|
|
@@ -66,9 +70,10 @@
|
|
|
66
70
|
<layout gutter="10" direction="v" style="padding: 10px;">
|
|
67
71
|
<label>Now select value is {{select3}}</label>
|
|
68
72
|
<label>Label: {{label3}}</label>
|
|
69
|
-
<levelselect v-model="select3" @label="label3 = $event" :data="s3other ? slist3r : slist2" :disabled="disabled" :editable="editable" :multi="multi" :async="async" placeholder="Please enter" @load="onLoad" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}"></levelselect>
|
|
73
|
+
<levelselect v-model="select3" @label="label3 = $event" :data="s3other ? slist3r : slist2" :disabled="disabled" :editable="editable" :multi="multi" :async="async" placeholder="Please enter" @load="onLoad" @loaded="onLoaded" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}"></levelselect>
|
|
70
74
|
<button @click="async = !async">{{async ? '' : '!'}}async</button>
|
|
71
75
|
<button @click="select3 = ['title', 'sub2']">Set: ['title', 'sub2']</button>
|
|
76
|
+
<button @click="select3 = ['haha2', '60']">Set: ['haha2', '60']</button>
|
|
72
77
|
<button @click="s3other = !s3other">Set {{s3other ? 'this' : 'other'}} data</button>
|
|
73
78
|
</layout>
|
|
74
79
|
</flow>
|
|
@@ -6,32 +6,34 @@
|
|
|
6
6
|
<menulist v-if="menu">
|
|
7
7
|
<menulist-item>Custom</menulist-item>
|
|
8
8
|
</menulist>
|
|
9
|
+
<template v-if="append" v-slot:append>KG</template>
|
|
9
10
|
</text>
|
|
10
11
|
<layout gutter="10">
|
|
11
|
-
<button @click="multi = !multi" style="flex: 1;
|
|
12
|
-
<button @click="disabled = !disabled" style="flex: 1;
|
|
13
|
-
<button @click="readonly = !readonly" style="flex: 1;
|
|
14
|
-
<button @click="longClick" style="flex: 1;
|
|
12
|
+
<button @click="multi = !multi" style="flex: 1;">{{multi ? '' : '!'}}multi</button>
|
|
13
|
+
<button @click="disabled = !disabled" style="flex: 1;">{{disabled ? '' : '!'}}disabled</button>
|
|
14
|
+
<button @click="readonly = !readonly" style="flex: 1;">{{readonly ? '' : '!'}}readonly</button>
|
|
15
|
+
<button @click="longClick" style="flex: 1;">{{long ? '' : '!'}}long</button>
|
|
15
16
|
</layout>
|
|
16
17
|
<layout gutter="10">
|
|
17
|
-
<button @click="password = !password" style="flex: 1;
|
|
18
|
-
<button @click="wrap = !wrap" style="flex: 1;
|
|
19
|
-
<button @click="menu = !menu" style="flex: 1;
|
|
20
|
-
<button @click="gesture = !gesture" style="flex: 1;
|
|
18
|
+
<button @click="password = !password" style="flex: 1;">{{password ? '' : '!'}}password</button>
|
|
19
|
+
<button @click="wrap = !wrap" style="flex: 1;">{{wrap ? '' : '!'}}wrap</button>
|
|
20
|
+
<button @click="menu = !menu" style="flex: 1;">{{menu ? '' : '!'}}menu</button>
|
|
21
|
+
<button @click="gesture = !gesture" style="flex: 1;">{{gesture ? '' : '!'}}gesture</button>
|
|
21
22
|
</layout>
|
|
22
23
|
<layout gutter="10">
|
|
23
|
-
<button @click="lineHeight = lineHeight === 1 ? 1.5 : 1" style="flex: 1;
|
|
24
|
-
<button @click="fontSize = fontSize === 12 ? 16 : 12" style="flex: 1;
|
|
24
|
+
<button @click="lineHeight = lineHeight === 1 ? 1.5 : 1" style="flex: 1;">Set line {{lineHeight === 1 ? 1.5 : 1}}</button>
|
|
25
|
+
<button @click="fontSize = fontSize === 12 ? 16 : 12" style="flex: 1;">Set size {{fontSize === 12 ? 16 : 12}}</button>
|
|
26
|
+
<button @click="append = !append" style="flex: 1;">{{append ? '' : '!'}}append</button>
|
|
25
27
|
</layout>
|
|
26
28
|
<layout gutter="10">
|
|
27
|
-
<button @click="border = 'solid'" style="flex: 2;
|
|
28
|
-
<button @click="border = 'underline'" style="flex: 1;
|
|
29
|
-
<button @click="border = 'none'" style="flex: 1;
|
|
29
|
+
<button @click="border = 'solid'" style="flex: 2;">Set border solid</button>
|
|
30
|
+
<button @click="border = 'underline'" style="flex: 1;">Underline</button>
|
|
31
|
+
<button @click="border = 'none'" style="flex: 1;">None</button>
|
|
30
32
|
</layout>
|
|
31
33
|
<layout gutter="10">
|
|
32
|
-
<button @click="background = 'red'" style="flex: 2;
|
|
33
|
-
<button @click="background = 'green'" style="flex: 1;
|
|
34
|
-
<button @click="background = undefined" style="flex: 1;
|
|
34
|
+
<button @click="background = 'red'" style="flex: 2;">Set background red</button>
|
|
35
|
+
<button @click="background = 'green'" style="flex: 1;">Green</button>
|
|
36
|
+
<button @click="background = undefined" style="flex: 1;">Remove</button>
|
|
35
37
|
</layout>
|
|
36
38
|
</layout>
|
|
37
39
|
</form>
|
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.6.
|
|
27
|
+
const version = '3.6.4';
|
|
28
28
|
function getVersion() {
|
|
29
29
|
return version;
|
|
30
30
|
}
|
package/dist/clickgo.ts
CHANGED
package/dist/control/common.cgc
CHANGED
|
Binary file
|
package/dist/theme/light.cgt
CHANGED
|
Binary file
|