clickgo 3.8.6 → 3.8.8
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/check/check.js +16 -0
- package/dist/app/demo/form/control/check/check.xml +4 -1
- package/dist/app/demo/form/control/menu/menu.js +22 -0
- package/dist/app/demo/form/control/menu/menu.xml +3 -0
- package/dist/app/demo/form/control/radio/radio.js +18 -0
- package/dist/app/demo/form/control/radio/radio.xml +3 -0
- package/dist/app/demo/form/control/select/select.js +9 -0
- package/dist/app/demo/form/control/select/select.xml +1 -1
- package/dist/app/demo/form/control/table/table.js +1 -0
- package/dist/app/demo/form/control/table/table.xml +2 -1
- package/dist/app/demo/form/main.css +1 -1
- package/dist/app/demo/form/main.scss +1 -1
- package/dist/app/demo/form/main.xml +81 -41
- package/dist/clickgo.js +1 -1
- package/dist/clickgo.ts +1 -1
- package/dist/control/arteditor.cgc +0 -0
- package/dist/control/common.cgc +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.8.
|
|
31
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.0/dist/loader.min.js?path=index&npm={'clickgo':'3.8.8'}"></script>
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
**index.js**
|
|
@@ -22,6 +22,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
25
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
35
|
const clickgo = __importStar(require("clickgo"));
|
|
27
36
|
class default_1 extends clickgo.form.AbstractForm {
|
|
@@ -33,7 +42,14 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
33
42
|
this.indeterminate1 = false;
|
|
34
43
|
this.indeterminate2 = false;
|
|
35
44
|
this.indeterminate3 = false;
|
|
45
|
+
this.indeterminate4 = false;
|
|
36
46
|
this.disabled = false;
|
|
37
47
|
}
|
|
48
|
+
onChange(e, v, i) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
e.preventDefault();
|
|
51
|
+
yield clickgo.form.dialog('v: ' + (v ? 'true' : 'false') + ', i: ' + (i ? 'true' : 'false'));
|
|
52
|
+
});
|
|
53
|
+
}
|
|
38
54
|
}
|
|
39
55
|
exports.default = default_1;
|
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
<layout gutter="10">
|
|
6
6
|
<check v-model="checked1" v-model:indeterminate="indeterminate1" :disabled="disabled" style="flex: 1;">check1</check>
|
|
7
7
|
<check v-model="checked2" v-model:indeterminate="indeterminate2" :disabled="disabled" style="flex: 1;">check2</check>
|
|
8
|
+
</layout>
|
|
9
|
+
<layout gutter="10">
|
|
8
10
|
<check v-model="checked3" v-model:indeterminate="indeterminate3" :disabled="disabled" style="flex: 1;">check3</check>
|
|
11
|
+
<check v-model:indeterminate="indeterminate4" :disabled="disabled" @change="onChange" style="flex: 1;">check4 (not)</check>
|
|
9
12
|
</layout>
|
|
10
|
-
<button style="height: 30px;" @click="indeterminate1
|
|
13
|
+
<button style="height: 30px;" @click="indeterminate1=true;indeterminate2=true;indeterminate3=true;indeterminate4=true">Set indeterminate</button>
|
|
11
14
|
<button style="height: 30px;" @click="disabled = !disabled">{{disabled ? 'Remove' : 'Set'}} disabled</button>
|
|
12
15
|
</layout>
|
|
13
16
|
</form>
|
|
@@ -22,6 +22,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
25
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
35
|
const clickgo = __importStar(require("clickgo"));
|
|
27
36
|
class default_1 extends clickgo.form.AbstractForm {
|
|
@@ -30,6 +39,19 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
30
39
|
this.radio = 'radio1';
|
|
31
40
|
this.check1 = true;
|
|
32
41
|
this.check2 = false;
|
|
42
|
+
this.check3 = true;
|
|
43
|
+
}
|
|
44
|
+
onCheck(event) {
|
|
45
|
+
event.preventDefault();
|
|
46
|
+
}
|
|
47
|
+
onRadio(event, o, n) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
if (o !== 'radio2') {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
event.preventDefault();
|
|
53
|
+
yield clickgo.form.dialog('When the value is set to "radio2," this option cannot be selected. Now is: ' + n);
|
|
54
|
+
});
|
|
33
55
|
}
|
|
34
56
|
}
|
|
35
57
|
exports.default = default_1;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
<menulist>
|
|
11
11
|
<menulist-item type="radio" alt="A" v-model="radio" label="radio1">Radio1</menulist-item>
|
|
12
12
|
<menulist-item type="radio" alt="B" v-model="radio" label="radio2">Radio2</menulist-item>
|
|
13
|
+
<menulist-item type="radio" alt="C" v-model="radio" label="radio3" @check="onRadio">Radio3</menulist-item>
|
|
13
14
|
<menulist-split></menulist-split>
|
|
14
15
|
<menulist-item alt="C">
|
|
15
16
|
<template v-slot>Check</template>
|
|
@@ -17,6 +18,8 @@
|
|
|
17
18
|
<menulist>
|
|
18
19
|
<menulist-item type="check" alt="A" v-model="check1">Check1</menulist-item>
|
|
19
20
|
<menulist-item type="check" alt="B" v-model="check2">Check2</menulist-item>
|
|
21
|
+
<menulist-item type="check" alt="C" v-model="check3" @check="onCheck">Check3 (not)</menulist-item>
|
|
22
|
+
<menulist-item type="check" alt="D">Check4 (nov)</menulist-item>
|
|
20
23
|
</menulist>
|
|
21
24
|
</template>
|
|
22
25
|
</menulist-item>
|
|
@@ -22,6 +22,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
25
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
35
|
const clickgo = __importStar(require("clickgo"));
|
|
27
36
|
class default_1 extends clickgo.form.AbstractForm {
|
|
@@ -30,5 +39,14 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
30
39
|
this.value = 'radio1';
|
|
31
40
|
this.disabled = false;
|
|
32
41
|
}
|
|
42
|
+
onChange(e, o, n) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
if (o !== 'radio2') {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
e.preventDefault();
|
|
48
|
+
yield clickgo.form.dialog('o: ' + o + ', n: ' + n);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
33
51
|
}
|
|
34
52
|
exports.default = default_1;
|
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
<layout gutter="10">
|
|
5
5
|
<radio v-model="value" :disabled="disabled" value="radio1" style="flex: 1; width: 0;">radio1</radio>
|
|
6
6
|
<radio v-model="value" :disabled="disabled" value="radio2" style="flex: 1; width: 0;">radio2</radio>
|
|
7
|
+
</layout>
|
|
8
|
+
<layout gutter="10">
|
|
7
9
|
<radio v-model="value" :disabled="disabled" value="radio3" style="flex: 1; width: 0;">radio3</radio>
|
|
10
|
+
<radio v-model="value" :disabled="disabled" value="radio4" @change="onChange" style="flex: 1; width: 0;">radio4 (r2n4)</radio>
|
|
8
11
|
</layout>
|
|
9
12
|
<button @click="value = 'radio2'" style="height: 30px;">Set value to "radio2"</button>
|
|
10
13
|
<button @click="disabled = !disabled" style="height: 30px;">{{disabled ? 'Remove' : 'Set'}} disabled</button>
|
|
@@ -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="
|
|
74
|
+
<button v-if="!asyncData.length" @click="asyncLoad">Load</button>
|
|
75
75
|
</layout>
|
|
76
76
|
</layout>
|
|
77
77
|
</flow>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<form width="400" height="500" title="Table">
|
|
2
2
|
<layout direction="v" gutter="10" style="padding: 10px; flex: 1; width: 0;">
|
|
3
3
|
<label>Value: {{val}}</label>
|
|
4
|
-
<table :data="data" style="flex: 1
|
|
4
|
+
<table :data="data" :style="{'flex': adaptation ? undefined : '1'}" v-model="val" :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" :split="split" @gesture="onGesture" :scroll="scroll" :sizes="sizes" :sort="sort" @select="onSelect" @sort="onSort">
|
|
5
5
|
<template v-slot="d">
|
|
6
6
|
<table-item v-if="index" label="index" width="80" sort="false">{{d.index}}</table-item>
|
|
7
7
|
<table-item label="name">{{d.row.name ?? 'name'}}</table-item>
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
<button style="flex: 1; height: 30px;" @click="data.splice(-2, 0, {'type': 0, 'name': 'Card' + data.length, 'disabled': false});refreshSort()">Add</button>
|
|
19
19
|
<button style="flex: 1; height: 30px;" @click="data.splice(-3, 1);refreshSort()">Remove</button>
|
|
20
20
|
<button style="flex: 1; height: 30px;" @click="scrollChange">Scroll {{scroll}}</button>
|
|
21
|
+
<button style="flex: 1; height: 30px;" @click="adaptation = !adaptation">{{adaptation ? '' : '!'}}adaptation</button>
|
|
21
22
|
</layout>
|
|
22
23
|
<layout gutter="10">
|
|
23
24
|
<button style="flex: 1; height: 30px;" @click="disabled = !disabled">{{disabled ? '' : '!'}}disabled</button>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.inner{padding:10px;flex:1}.buttons button{
|
|
1
|
+
.inner{padding:10px;flex:1}.buttons button{flex:1}
|
|
@@ -3,49 +3,89 @@
|
|
|
3
3
|
<flow v-if="ntab === 'control'" class="inner" direction="v">
|
|
4
4
|
<layout class="buttons" gutter="10" direction="v">
|
|
5
5
|
<label>App data: {{adata}}</label>
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
6
|
+
<layout gutter="10">
|
|
7
|
+
<button @click="openForm('cform')">Form</button>
|
|
8
|
+
<button @click="openForm('clayout')">Layout</button>
|
|
9
|
+
</layout>
|
|
10
|
+
<layout gutter="10">
|
|
11
|
+
<button @click="openForm('cimg')">Img</button>
|
|
12
|
+
<button @click="openForm('cbutton')">Button</button>
|
|
13
|
+
</layout>
|
|
14
|
+
<layout gutter="10">
|
|
15
|
+
<button @click="openForm('ccheck')">Check</button>
|
|
16
|
+
<button @click="openForm('cradio')">Radio</button>
|
|
17
|
+
</layout>
|
|
18
|
+
<layout gutter="10">
|
|
19
|
+
<button @click="openForm('ctext')">Text</button>
|
|
20
|
+
<button @click="openForm('cdate')">Date</button>
|
|
21
|
+
</layout>
|
|
22
|
+
<layout gutter="10">
|
|
23
|
+
<button @click="openForm('ctab')">Tab</button>
|
|
24
|
+
<button @click="openForm('clabel')">Label</button>
|
|
25
|
+
</layout>
|
|
26
|
+
<layout gutter="10">
|
|
27
|
+
<button @click="openForm('clink')">Link</button>
|
|
28
|
+
<button @click="openForm('cloading')">Loading</button>
|
|
29
|
+
</layout>
|
|
30
|
+
<layout gutter="10">
|
|
31
|
+
<button @click="openForm('cdialog')">Dialog</button>
|
|
32
|
+
<button @click="openForm('cfile')">File</button>
|
|
33
|
+
</layout>
|
|
34
|
+
<layout gutter="10">
|
|
35
|
+
<button @click="openForm('cblock')">Block</button>
|
|
36
|
+
<button @click="openForm('calayout')">Alayout</button>
|
|
37
|
+
</layout>
|
|
38
|
+
<layout gutter="10">
|
|
39
|
+
<button @click="openForm('csvg')">Svg</button>
|
|
40
|
+
<button @click="openForm('cflow')">Flow</button>
|
|
41
|
+
</layout>
|
|
42
|
+
<layout gutter="10">
|
|
43
|
+
<button @click="openForm('cvflow')">Vflow</button>
|
|
44
|
+
<button @click="openForm('cmarquee')">Marquee</button>
|
|
45
|
+
</layout>
|
|
46
|
+
<layout gutter="10">
|
|
47
|
+
<button @click="openForm('cscroll')">Scroll</button>
|
|
48
|
+
<button @click="openForm('cmenu')">Menu</button>
|
|
49
|
+
</layout>
|
|
50
|
+
<layout gutter="10">
|
|
51
|
+
<button @click="openForm('clist')">List</button>
|
|
52
|
+
<button @click="openForm('cselect')">Select</button>
|
|
53
|
+
</layout>
|
|
54
|
+
<layout gutter="10">
|
|
55
|
+
<button @click="openForm('cpanel')">Panel</button>
|
|
56
|
+
<button @click="openForm('cproperty')">Property</button>
|
|
57
|
+
</layout>
|
|
58
|
+
<layout gutter="10">
|
|
59
|
+
<button @click="openForm('ctable')">Table</button>
|
|
60
|
+
<button @click="openForm('cnav')">Nav</button>
|
|
61
|
+
</layout>
|
|
62
|
+
<layout gutter="10">
|
|
63
|
+
<button @click="openForm('cpage')">Page</button>
|
|
64
|
+
<button @click="openForm('cbox')">Box</button>
|
|
65
|
+
</layout>
|
|
66
|
+
<layout gutter="10">
|
|
67
|
+
<button @click="openForm('cdesc')">Desc</button>
|
|
68
|
+
<button @click="openForm('chtml')">Html</button>
|
|
69
|
+
</layout>
|
|
70
|
+
<layout gutter="10">
|
|
71
|
+
<button @click="openForm('ciconview')">Iconview</button>
|
|
72
|
+
<button @click="openForm('carteditor')">Arteditor</button>
|
|
73
|
+
</layout>
|
|
74
|
+
<layout gutter="10">
|
|
75
|
+
<button @click="openForm('cmonaco')">Monaco</button>
|
|
76
|
+
<button @click="openForm('cxterm')">Xterm</button>
|
|
77
|
+
</layout>
|
|
78
|
+
<layout gutter="10">
|
|
79
|
+
<button @click="openForm('cecharts')">Echarts</button>
|
|
80
|
+
<button @click="openForm('cmap')">Map</button>
|
|
81
|
+
</layout>
|
|
82
|
+
<layout gutter="10">
|
|
83
|
+
<button @click="openForm('ctuieditor')">Tuieditor</button>
|
|
84
|
+
</layout>
|
|
45
85
|
</layout>
|
|
46
86
|
</flow>
|
|
47
87
|
<flow v-else-if="ntab === 'method'" class="inner" direction="v">
|
|
48
|
-
<layout
|
|
88
|
+
<layout gutter="10" direction="v">
|
|
49
89
|
<button @click="openForm('mcore')">Library core</button>
|
|
50
90
|
<button @click="openForm('mdom')">Library dom</button>
|
|
51
91
|
<button @click="openForm('mform')">Library form</button>
|
|
@@ -61,7 +101,7 @@
|
|
|
61
101
|
</layout>
|
|
62
102
|
</flow>
|
|
63
103
|
<flow v-else class="inner" direction="v">
|
|
64
|
-
<layout
|
|
104
|
+
<layout gutter="10" direction="v">
|
|
65
105
|
<button @click="openForm('escreen')">About screen</button>
|
|
66
106
|
<button @click="openForm('eform')">About form</button>
|
|
67
107
|
<button @click="openForm('etask')">About task</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.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.
|
|
27
|
+
const version = '3.8.8';
|
|
28
28
|
function getVersion() {
|
|
29
29
|
return version;
|
|
30
30
|
}
|
package/dist/clickgo.ts
CHANGED
|
Binary file
|
package/dist/control/common.cgc
CHANGED
|
Binary file
|