clickgo 3.8.8 → 3.9.1
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 +8 -1
- package/dist/app/demo/config.json +5 -0
- package/dist/app/demo/form/control/desc/desc.js +36 -0
- package/dist/app/demo/form/control/desc/desc.xml +17 -1
- package/dist/app/demo/form/control/nav/nav.js +6 -0
- package/dist/app/demo/form/control/nav/nav.xml +3 -0
- package/dist/app/demo/form/control/panel/panel.js +24 -6
- package/dist/app/demo/form/control/panel/panel.xml +1 -1
- package/dist/app/demo/form/control/panel/test1.js +10 -2
- package/dist/app/demo/form/control/select/select.js +0 -1
- package/dist/app/demo/form/control/select/select.xml +3 -3
- package/dist/app/demo/form/control/step/step.js +51 -0
- package/dist/app/demo/form/control/step/step.xml +16 -0
- package/dist/app/demo/form/control/table/table.xml +18 -14
- package/dist/app/demo/form/control/video/video.js +37 -0
- package/dist/app/demo/form/control/video/video.xml +14 -0
- package/dist/app/demo/form/main.js +10 -0
- package/dist/app/demo/form/main.xml +5 -1
- package/dist/app/demo/form/method/dom/dom.js +9 -1
- package/dist/app/demo/form/method/dom/dom.xml +5 -3
- package/dist/app/demo/res/video.mp4 +0 -0
- package/dist/clickgo.js +1 -1
- package/dist/clickgo.ts +1 -1
- package/dist/control/common.cgc +0 -0
- package/dist/control/nav.cgc +0 -0
- package/dist/control/table.cgc +0 -0
- package/dist/lib/dom.js +45 -14
- package/dist/lib/dom.ts +58 -28
- package/dist/lib/form.js +18 -1
- package/dist/lib/form.ts +36 -1
- package/dist/lib/fs.js +1 -1
- package/dist/lib/fs.ts +1 -1
- package/dist/lib/task.js +7 -1
- package/dist/lib/task.ts +9 -3
- package/dist/lib/tool.js +12 -4
- package/dist/lib/tool.ts +13 -3
- package/dist/theme/light.cgt +0 -0
- package/package.json +1 -1
- package/types/index.d.ts +6 -6
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.
|
|
31
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.0/dist/loader.min.js?path=index&npm={'clickgo':'3.9.1'}"></script>
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
**index.js**
|
|
@@ -110,6 +110,13 @@ This library is published under [Apache-2.0](./LICENSE) license.
|
|
|
110
110
|
|
|
111
111
|
[Plus SVG Vector](https://www.svgrepo.com/svg/447037/plus)
|
|
112
112
|
|
|
113
|
+
#### Video
|
|
114
|
+
|
|
115
|
+
[Play SVG Vector](https://www.svgrepo.com/svg/447035/play)
|
|
116
|
+
[Pause SVG Vector](https://www.svgrepo.com/svg/447033/pause)
|
|
117
|
+
[Border Radius SVG Vector](https://www.svgrepo.com/svg/446973/border-radius)
|
|
118
|
+
[Copy SVG Vector](https://www.svgrepo.com/svg/446994/copy)
|
|
119
|
+
|
|
113
120
|
### **LICENSE:** MIT License **AUTHOR:** developmentseed
|
|
114
121
|
|
|
115
122
|
#### Map
|
|
@@ -97,6 +97,8 @@
|
|
|
97
97
|
"/form/control/scroll/scroll.xml",
|
|
98
98
|
"/form/control/select/select.js",
|
|
99
99
|
"/form/control/select/select.xml",
|
|
100
|
+
"/form/control/step/step.js",
|
|
101
|
+
"/form/control/step/step.xml",
|
|
100
102
|
"/form/control/svg/svg.js",
|
|
101
103
|
"/form/control/svg/svg.xml",
|
|
102
104
|
"/form/control/tab/tab.js",
|
|
@@ -110,6 +112,8 @@
|
|
|
110
112
|
"/form/control/vflow/vflow.css",
|
|
111
113
|
"/form/control/vflow/vflow.js",
|
|
112
114
|
"/form/control/vflow/vflow.xml",
|
|
115
|
+
"/form/control/video/video.js",
|
|
116
|
+
"/form/control/video/video.xml",
|
|
113
117
|
"/form/control/xterm/xterm.js",
|
|
114
118
|
"/form/control/xterm/xterm.xml",
|
|
115
119
|
"/form/event/form/form.css",
|
|
@@ -163,6 +167,7 @@
|
|
|
163
167
|
"/res/r-2.svg",
|
|
164
168
|
"/res/sql.svg",
|
|
165
169
|
"/res/txt.svg",
|
|
170
|
+
"/res/video.mp4",
|
|
166
171
|
"/res/zip.svg",
|
|
167
172
|
"/app.js",
|
|
168
173
|
"/global.css"
|
|
@@ -29,6 +29,42 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
29
29
|
super(...arguments);
|
|
30
30
|
this.border = true;
|
|
31
31
|
this.collapse = true;
|
|
32
|
+
this.data = [
|
|
33
|
+
{
|
|
34
|
+
'name': 'name1',
|
|
35
|
+
'child': ['val1', 'val2']
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
'name': 'name2',
|
|
39
|
+
'child': ['val1', 'val2', 'val3']
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
'name': 'name3',
|
|
43
|
+
'child': ['val1', 'val2', 'val3', 'val4']
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
}
|
|
47
|
+
get maxLine() {
|
|
48
|
+
let len = 0;
|
|
49
|
+
for (const item of this.data) {
|
|
50
|
+
if (!len) {
|
|
51
|
+
len = item.child.length;
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
len *= item.child.length;
|
|
55
|
+
}
|
|
56
|
+
return len;
|
|
57
|
+
}
|
|
58
|
+
get cols() {
|
|
59
|
+
const cols = [];
|
|
60
|
+
for (let i = 0; i < this.data.length; ++i) {
|
|
61
|
+
if (i === 0) {
|
|
62
|
+
cols.push(this.maxLine / this.data[i].child.length);
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
cols.push(cols[i - 1] / this.data[i].child.length);
|
|
66
|
+
}
|
|
67
|
+
return cols;
|
|
32
68
|
}
|
|
33
69
|
}
|
|
34
70
|
exports.default = default_1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<form title="Desc" width="
|
|
1
|
+
<form title="Desc" width="500" height="500" padding="10">
|
|
2
2
|
<layout gutter="10" direction="v" style="flex: 1;">
|
|
3
3
|
<desc :border="border" :collapse="collapse">
|
|
4
4
|
<desc-row>
|
|
@@ -22,5 +22,21 @@
|
|
|
22
22
|
<button @click="border = !border" style="flex: 1; padding: 10px 0;">border: {{border ? 'true' : 'false'}}</button>
|
|
23
23
|
<button @click="collapse = !collapse" style="flex: 1; padding: 10px 0;">collapse: {{collapse ? 'true' : 'false'}}</button>
|
|
24
24
|
</layout>
|
|
25
|
+
<label>Test: {{cols}}</label>
|
|
26
|
+
<flow style="flex: 1;">
|
|
27
|
+
<desc :border="border" :collapse="collapse" style="flex: 1;">
|
|
28
|
+
<desc-row v-for="line of maxLine">
|
|
29
|
+
<!-- 行 1 - max -->
|
|
30
|
+
<template v-for="col of data.length">
|
|
31
|
+
<!-- 列 1 - max -->
|
|
32
|
+
<desc-cell v-if="col===data.length">{{data[col-1].child[(line-1)%cols[col-2]]}}</desc-cell>
|
|
33
|
+
<desc-cell v-else-if="line%cols[col-1]===1" :rowspan="cols[col-1]">{{data[col-1].child[Math.floor((line-1)/cols[col-1])%data[col-1].child.length]}}</desc-cell>
|
|
34
|
+
</template>
|
|
35
|
+
<desc-cell>LINE-{{line}}</desc-cell>
|
|
36
|
+
<desc-cell>DATA1</desc-cell>
|
|
37
|
+
<desc-cell>DATA2</desc-cell>
|
|
38
|
+
</desc-row>
|
|
39
|
+
</desc>
|
|
40
|
+
</flow>
|
|
25
41
|
</layout>
|
|
26
42
|
</form>
|
|
@@ -42,6 +42,12 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
42
42
|
this.loading = false;
|
|
43
43
|
this.logo = '';
|
|
44
44
|
}
|
|
45
|
+
onSelect(e, o, v) {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
e.preventDefault();
|
|
48
|
+
yield clickgo.form.dialog('Not nav, o: ' + o + ', v: ' + v);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
45
51
|
onMounted() {
|
|
46
52
|
this.watch('name', () => __awaiter(this, void 0, void 0, function* () {
|
|
47
53
|
this.loading = true;
|
|
@@ -37,6 +37,9 @@
|
|
|
37
37
|
</nav-item>
|
|
38
38
|
<nav-item label="Root1"></nav-item>
|
|
39
39
|
<nav-item label="Root2"></nav-item>
|
|
40
|
+
<nav-item label="Root3" name="root?id=1"></nav-item>
|
|
41
|
+
<nav-item label="Root4" name="root?id=2"></nav-item>
|
|
42
|
+
<nav-item label="Event" @select="onSelect"></nav-item>
|
|
40
43
|
<nav-item label="Root3" icon="/package/res/icon.svg"></nav-item>
|
|
41
44
|
<nav-item label="Root4" icon="/package/res/marker.svg"></nav-item>
|
|
42
45
|
<template v-slot:header>
|
|
@@ -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
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
35
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
36
|
};
|
|
@@ -33,10 +42,15 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
33
42
|
super(...arguments);
|
|
34
43
|
this.selected = ['none'];
|
|
35
44
|
this.parentData = 'yeah!';
|
|
45
|
+
this.loading = false;
|
|
36
46
|
}
|
|
37
47
|
go() {
|
|
38
|
-
this
|
|
39
|
-
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
this.loading = true;
|
|
50
|
+
yield this.refs.panel.go(test1_1.default, {
|
|
51
|
+
'type': 'show'
|
|
52
|
+
});
|
|
53
|
+
this.loading = false;
|
|
40
54
|
});
|
|
41
55
|
}
|
|
42
56
|
ssend() {
|
|
@@ -45,21 +59,25 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
45
59
|
});
|
|
46
60
|
}
|
|
47
61
|
onMounted() {
|
|
48
|
-
this.watch('selected', () => {
|
|
62
|
+
this.watch('selected', () => __awaiter(this, void 0, void 0, function* () {
|
|
49
63
|
switch (this.selected[0]) {
|
|
50
64
|
case 'none': {
|
|
51
65
|
break;
|
|
52
66
|
}
|
|
53
67
|
case './test1': {
|
|
54
|
-
this.
|
|
68
|
+
this.loading = true;
|
|
69
|
+
yield this.refs.panel.go(test1_1.default);
|
|
70
|
+
this.loading = false;
|
|
55
71
|
break;
|
|
56
72
|
}
|
|
57
73
|
case './test2': {
|
|
58
|
-
this.
|
|
74
|
+
this.loading = true;
|
|
75
|
+
yield this.refs.panel.go('./test2');
|
|
76
|
+
this.loading = false;
|
|
59
77
|
break;
|
|
60
78
|
}
|
|
61
79
|
}
|
|
62
|
-
}, {
|
|
80
|
+
}), {
|
|
63
81
|
'deep': true,
|
|
64
82
|
'immediate': true
|
|
65
83
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<form width="600" height="500" title="Panel">
|
|
1
|
+
<form width="600" height="500" title="Panel" :loading="loading">
|
|
2
2
|
<layout direction="v" gutter="10" style="padding: 10px; flex: 1;">
|
|
3
3
|
<label>Form ID: {{formId}}</label>
|
|
4
4
|
<select v-model="selected" :data="['none', './test1', './test2']"></select>
|
|
@@ -40,8 +40,16 @@ class default_1 extends clickgo.form.AbstractPanel {
|
|
|
40
40
|
this.data = {};
|
|
41
41
|
}
|
|
42
42
|
onShow(d) {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
yield clickgo.tool.sleep(1000);
|
|
45
|
+
++this.scount;
|
|
46
|
+
this.data = d;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
onHide() {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
yield clickgo.tool.sleep(1000);
|
|
52
|
+
});
|
|
45
53
|
}
|
|
46
54
|
onReceive(data) {
|
|
47
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
<layout gutter="10" direction="v" style="padding: 10px;">
|
|
46
46
|
<label>Now select value is {{select2}}</label>
|
|
47
47
|
<label>Label: {{label2}}</label>
|
|
48
|
-
<select v-model="select2" @label="label2 = $event" :data="
|
|
48
|
+
<select v-model="select2" @label="label2 = $event" :data="slist2" :disabled="disabled" :editable="editable" :multi="multi" :tree="tree" :async="async" :search="search" :remote="remote" :remote-delay="remoteDelay[0]" :icon="icon" icon-default="../../../res/txt.svg" @load="onLoad" @remote="onRemote" @add="onAdd" @remove="onRemove" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}"></select>
|
|
49
49
|
<list :data="addRemoveList" style="height: 100px;"></list>
|
|
50
50
|
<label>Custom height:</label>
|
|
51
|
-
<select :data="
|
|
51
|
+
<select :data="['1','2','3','4','5']" :disabled="disabled" :editable="editable" :multi="multi" :tree="tree" :async="async" :search="search" :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>
|
|
52
52
|
<label>Always editable: {{aemodel}}</label>
|
|
53
53
|
<layout gutter="10">
|
|
54
|
-
<select v-model="aemodel" :data="
|
|
54
|
+
<select v-model="aemodel" :data="['1','2','3','4','5']" :disabled="disabled" editable :multi="multi" :tree="tree" :async="async" :search="search" :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>
|
|
55
55
|
<button @click="aemodel.length=0">clear</button>
|
|
56
56
|
<button @click="aemodel[0] = '4'">4</button>
|
|
57
57
|
</layout>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
const clickgo = __importStar(require("clickgo"));
|
|
27
|
+
class default_1 extends clickgo.form.AbstractForm {
|
|
28
|
+
constructor() {
|
|
29
|
+
super(...arguments);
|
|
30
|
+
this.data = [
|
|
31
|
+
{
|
|
32
|
+
'label': 'step1'
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
'value': 'step2'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
'icon': '/package/res/marker.svg',
|
|
39
|
+
'value': 'icon'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
'label': 'successful',
|
|
43
|
+
'value': 'step3',
|
|
44
|
+
'desc': 'qq'
|
|
45
|
+
}
|
|
46
|
+
];
|
|
47
|
+
this.plain = false;
|
|
48
|
+
this.step1 = '';
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<form title="Step" width="500" height="500" min-width="300" min-height="400" padding="10">
|
|
2
|
+
<layout direction="v" gutter="10" style="flex: 1;">
|
|
3
|
+
<label>value: {{step1}}</label>
|
|
4
|
+
<step :data="data" :plain="plain" v-model="step1"></step>
|
|
5
|
+
<layout gutter="10">
|
|
6
|
+
<button style="flex: 1;" @click="step1 = 'step1'">step1</button>
|
|
7
|
+
<button style="flex: 1;" @click="step1 = 'step2'">step2</button>
|
|
8
|
+
<button style="flex: 1;" @click="step1 = 'icon'">icon</button>
|
|
9
|
+
</layout>
|
|
10
|
+
<layout gutter="10">
|
|
11
|
+
<button style="flex: 1;" @click="step1 = 'step3'">step3</button>
|
|
12
|
+
<button style="flex: 1;" @click="step1 = '#'">done</button>
|
|
13
|
+
<button style="flex: 1;" @click="plain = !plain">{{plain ? '' : '!'}}plain</button>
|
|
14
|
+
</layout>
|
|
15
|
+
</layout>
|
|
16
|
+
</form>
|
|
@@ -5,7 +5,11 @@
|
|
|
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>
|
|
8
|
-
<table-item label="size" width="50">{{d.row.type ?? '0'}}</table-item>
|
|
8
|
+
<table-item label="size" width="50" align-v="center" align-h="center">{{d.row.type ?? '0'}}</table-item>
|
|
9
|
+
<table-item label="col" width="100" direction="v" gutter="5">
|
|
10
|
+
<label>line1</label>
|
|
11
|
+
<button>line2</button>
|
|
12
|
+
</table-item>
|
|
9
13
|
</template>
|
|
10
14
|
<template v-slot:pop>
|
|
11
15
|
<menulist>
|
|
@@ -15,23 +19,23 @@
|
|
|
15
19
|
</table>
|
|
16
20
|
<template v-if="loadFirst">
|
|
17
21
|
<layout gutter="10">
|
|
18
|
-
<button style="flex: 1;
|
|
19
|
-
<button style="flex: 1;
|
|
20
|
-
<button style="flex: 1;
|
|
21
|
-
<button style="flex: 1;
|
|
22
|
+
<button style="flex: 1;" @click="data.splice(-2, 0, {'type': 0, 'name': 'Card' + data.length, 'disabled': false});refreshSort()">Add</button>
|
|
23
|
+
<button style="flex: 1;" @click="data.splice(-3, 1);refreshSort()">Remove</button>
|
|
24
|
+
<button style="flex: 1;" @click="scrollChange">Scroll {{scroll}}</button>
|
|
25
|
+
<button style="flex: 1;" @click="adaptation = !adaptation">{{adaptation ? '' : '!'}}adaptation</button>
|
|
22
26
|
</layout>
|
|
23
27
|
<layout gutter="10">
|
|
24
|
-
<button style="flex: 1;
|
|
25
|
-
<button style="flex: 1;
|
|
26
|
-
<button style="flex: 1;
|
|
27
|
-
<button style="flex: 1;
|
|
28
|
-
<button style="flex: 1;
|
|
28
|
+
<button style="flex: 1;" @click="disabled = !disabled">{{disabled ? '' : '!'}}disabled</button>
|
|
29
|
+
<button style="flex: 1;" @click="multi = !multi">{{multi ? '' : '!'}}multi</button>
|
|
30
|
+
<button style="flex: 1;" @click="ctrl = !ctrl">{{ctrl ? '' : '!'}}ctrl</button>
|
|
31
|
+
<button style="flex: 1;" @click="must = !must">{{must ? '' : '!'}}must</button>
|
|
32
|
+
<button style="flex: 1;" @click="index = !index">{{index ? '' : '!'}}index</button>
|
|
29
33
|
</layout>
|
|
30
34
|
<layout gutter="10">
|
|
31
|
-
<button style="flex: 1;
|
|
32
|
-
<button style="flex: 1;
|
|
33
|
-
<button style="flex: 1;
|
|
34
|
-
<button style="flex: 1;
|
|
35
|
+
<button style="flex: 1;" @click="sortChange">sort {{sort ? 'true' : (sort === false ? 'false' : 'undefined')}}</button>
|
|
36
|
+
<button style="flex: 1;" @click="selection = !selection">{{selection ? '' : '!'}}selection</button>
|
|
37
|
+
<button style="flex: 1;" @click="gesture = !gesture">{{gesture ? '' : '!'}}gesture</button>
|
|
38
|
+
<button style="flex: 1;" @click="split = !split">{{split ? '' : '!'}}split</button>
|
|
35
39
|
</layout>
|
|
36
40
|
</template>
|
|
37
41
|
<button v-else @click="load">Load</button>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
const clickgo = __importStar(require("clickgo"));
|
|
27
|
+
class default_1 extends clickgo.form.AbstractForm {
|
|
28
|
+
constructor() {
|
|
29
|
+
super(...arguments);
|
|
30
|
+
this.controls = false;
|
|
31
|
+
this.loop = false;
|
|
32
|
+
this.muted = false;
|
|
33
|
+
this.play = false;
|
|
34
|
+
this.volume = 50;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<form width="350" height="500" title="Video" padding="10">
|
|
2
|
+
<layout direction="v" gutter="10" style="flex: 1;">
|
|
3
|
+
<label>volume: {{volume}}</label>
|
|
4
|
+
<video src="/package/res/video.mp4" :controls="controls" :loop="loop" :muted="muted" v-model:volume="volume" v-model:play="play" style="flex: 1; height: 0;"></video>
|
|
5
|
+
<layout gutter="10">
|
|
6
|
+
<button @click="controls = !controls" style="flex: 1;">{{controls ? '' : '!'}}controls</button>
|
|
7
|
+
<button @click="loop = !loop" style="flex: 1;">{{loop ? '' : '!'}}loop</button>
|
|
8
|
+
<button @click="muted = !muted" style="flex: 1;">{{muted ? '' : '!'}}muted</button>
|
|
9
|
+
</layout>
|
|
10
|
+
<layout gutter="10">
|
|
11
|
+
<button @click="play = !play" style="flex: 1;">{{play ? '' : '!'}}play</button>
|
|
12
|
+
</layout>
|
|
13
|
+
</layout>
|
|
14
|
+
</form>
|
|
@@ -68,6 +68,8 @@ const tab_1 = __importDefault(require("./control/tab/tab"));
|
|
|
68
68
|
const table_1 = __importDefault(require("./control/table/table"));
|
|
69
69
|
const text_1 = __importDefault(require("./control/text/text"));
|
|
70
70
|
const vflow_1 = __importDefault(require("./control/vflow/vflow"));
|
|
71
|
+
const video_1 = __importDefault(require("./control/video/video"));
|
|
72
|
+
const step_1 = __importDefault(require("./control/step/step"));
|
|
71
73
|
const xterm_1 = __importDefault(require("./control/xterm/xterm"));
|
|
72
74
|
const echarts_1 = __importDefault(require("./control/echarts/echarts"));
|
|
73
75
|
const tuieditor_1 = __importDefault(require("./control/tuieditor/tuieditor"));
|
|
@@ -156,6 +158,14 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
156
158
|
frm = yield clickgo.form.create(vflow_1.default);
|
|
157
159
|
break;
|
|
158
160
|
}
|
|
161
|
+
case 'cvideo': {
|
|
162
|
+
frm = yield clickgo.form.create(video_1.default);
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
case 'cstep': {
|
|
166
|
+
frm = yield clickgo.form.create(step_1.default);
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
159
169
|
case 'cxterm': {
|
|
160
170
|
frm = yield clickgo.form.create(xterm_1.default);
|
|
161
171
|
break;
|
|
@@ -69,7 +69,10 @@
|
|
|
69
69
|
</layout>
|
|
70
70
|
<layout gutter="10">
|
|
71
71
|
<button @click="openForm('ciconview')">Iconview</button>
|
|
72
|
-
<button @click="openForm('
|
|
72
|
+
<button @click="openForm('cvideo')">Video</button>
|
|
73
|
+
</layout>
|
|
74
|
+
<layout gutter="10">
|
|
75
|
+
<button @click="openForm('cstep')">Step</button>
|
|
73
76
|
</layout>
|
|
74
77
|
<layout gutter="10">
|
|
75
78
|
<button @click="openForm('cmonaco')">Monaco</button>
|
|
@@ -80,6 +83,7 @@
|
|
|
80
83
|
<button @click="openForm('cmap')">Map</button>
|
|
81
84
|
</layout>
|
|
82
85
|
<layout gutter="10">
|
|
86
|
+
<button @click="openForm('carteditor')">Arteditor</button>
|
|
83
87
|
<button @click="openForm('ctuieditor')">Tuieditor</button>
|
|
84
88
|
</layout>
|
|
85
89
|
</layout>
|
|
@@ -60,6 +60,12 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
60
60
|
get isCtrl() {
|
|
61
61
|
return clickgo.dom.is.ctrl;
|
|
62
62
|
}
|
|
63
|
+
get isMeta() {
|
|
64
|
+
return clickgo.dom.is.meta;
|
|
65
|
+
}
|
|
66
|
+
get isFull() {
|
|
67
|
+
return clickgo.dom.is.full;
|
|
68
|
+
}
|
|
63
69
|
setGlobalCursor(type) {
|
|
64
70
|
clickgo.dom.setGlobalCursor(type);
|
|
65
71
|
}
|
|
@@ -196,7 +202,9 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
196
202
|
});
|
|
197
203
|
}
|
|
198
204
|
fullscreen() {
|
|
199
|
-
|
|
205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
+
yield clickgo.dom.fullscreen();
|
|
207
|
+
});
|
|
200
208
|
}
|
|
201
209
|
onMounted() {
|
|
202
210
|
clickgo.dom.watchStyle(this.refs.watchStyle.$el, 'font-size', (n, v) => {
|
|
@@ -57,9 +57,11 @@
|
|
|
57
57
|
<block ref="move" style="background: #07c160; position: absolute;" :style="{'left': moveLeft + 'px', 'top': moveTop + 'px', 'width': moveWidth + 'px', 'height': moveHeight + 'px'}" @touchstart="moveDown" @mousedown="moveDown"></block>
|
|
58
58
|
</block>
|
|
59
59
|
<button @click="fullscreen" style="height: 30px;">fullscreen()</button>
|
|
60
|
-
<label>clickgo.
|
|
61
|
-
<label>clickgo.
|
|
62
|
-
<label>clickgo.
|
|
60
|
+
<label>clickgo.dom.is.move: {{isMove ? 'true' : 'false'}}</label>
|
|
61
|
+
<label>clickgo.dom.is.shift: {{isShift ? 'true' : 'false'}}</label>
|
|
62
|
+
<label>clickgo.dom.is.ctrl: {{isCtrl ? 'true' : 'false'}}</label>
|
|
63
|
+
<label>clickgo.dom.is.meta: {{isMeta ? 'true' : 'false'}}</label>
|
|
64
|
+
<label>clickgo.dom.is.full: {{isFull ? 'true' : 'false'}}</label>
|
|
63
65
|
</layout>
|
|
64
66
|
</flow>
|
|
65
67
|
</form>
|
|
Binary file
|
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.
|
|
27
|
+
const version = '3.9.1';
|
|
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/control/nav.cgc
CHANGED
|
Binary file
|
package/dist/control/table.cgc
CHANGED
|
Binary file
|