clickgo 3.16.27 → 3.16.28
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/app.js +4 -16
- package/dist/app/demo/config.json +4 -1
- package/dist/app/demo/form/control/arteditor/arteditor.js +7 -18
- package/dist/app/demo/form/control/button/button.js +2 -13
- package/dist/app/demo/form/control/check/check.js +3 -14
- package/dist/app/demo/form/control/content/content.js +3 -14
- package/dist/app/demo/form/control/daterange/daterange.js +1 -1
- package/dist/app/demo/form/control/delete/delete.js +3 -14
- package/dist/app/demo/form/control/dialog/dialog.js +2 -0
- package/dist/app/demo/form/control/dialog/dialog.xml +26 -12
- package/dist/app/demo/form/control/flow/flow.js +2 -13
- package/dist/app/demo/form/control/form/form.js +4 -15
- package/dist/app/demo/form/control/iconview/iconview.js +12 -29
- package/dist/app/demo/form/control/jodit/jodit.js +7 -18
- package/dist/app/demo/form/control/link/link.js +2 -13
- package/dist/app/demo/form/control/list/list.js +38 -57
- package/dist/app/demo/form/control/map/map.js +17 -28
- package/dist/app/demo/form/control/menu/menu.js +6 -17
- package/dist/app/demo/form/control/mpegts/mpegts.js +1 -1
- package/dist/app/demo/form/control/nav/nav.js +6 -17
- package/dist/app/demo/form/control/novnc/novnc.js +75 -0
- package/dist/app/demo/form/control/novnc/novnc.xml +13 -0
- package/dist/app/demo/form/control/panel/panel.js +9 -20
- package/dist/app/demo/form/control/panel/test1.js +20 -41
- package/dist/app/demo/form/control/pdf/pdf.js +7 -20
- package/dist/app/demo/form/control/progress/progress.js +3 -12
- package/dist/app/demo/form/control/radio/radio.js +6 -17
- package/dist/app/demo/form/control/select/select.js +25 -38
- package/dist/app/demo/form/control/switch/switch.js +3 -14
- package/dist/app/demo/form/control/tab/tab.js +7 -18
- package/dist/app/demo/form/control/table/table.js +8 -23
- package/dist/app/demo/form/control/text/text.js +2 -13
- package/dist/app/demo/form/control/tuieditor/tuieditor.js +7 -18
- package/dist/app/demo/form/control/uploader/uploader.js +20 -31
- package/dist/app/demo/form/control/vflow/vflow.js +2 -13
- package/dist/app/demo/form/event/form/form.js +11 -22
- package/dist/app/demo/form/event/task/task.js +14 -29
- package/dist/app/demo/form/main.js +381 -387
- package/dist/app/demo/form/main.xml +3 -0
- package/dist/app/demo/form/method/acontrol/acontrol.js +2 -13
- package/dist/app/demo/form/method/aform/aform.js +41 -60
- package/dist/app/demo/form/method/aform/sd.js +3 -14
- package/dist/app/demo/form/method/core/core.js +25 -50
- package/dist/app/demo/form/method/dom/dom.js +35 -58
- package/dist/app/demo/form/method/form/form.js +106 -149
- package/dist/app/demo/form/method/fs/fs.js +126 -147
- package/dist/app/demo/form/method/native/native.js +44 -72
- package/dist/app/demo/form/method/storage/storage.js +9 -27
- package/dist/app/demo/form/method/system/system.js +16 -41
- package/dist/app/demo/form/method/task/task.js +18 -37
- package/dist/app/demo/form/method/theme/theme.js +39 -54
- package/dist/app/demo/form/method/tool/tool.js +22 -43
- package/dist/app/demo/form/method/zip/zip.js +18 -29
- package/dist/app/demo/form/solution/backpanel/backpanel.js +10 -23
- package/dist/app/task/app.js +2 -13
- package/dist/app/task/form/bar/bar.js +32 -45
- 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/novnc.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/index.js +59 -71
- package/dist/lib/control.js +213 -235
- package/dist/lib/core.js +356 -379
- package/dist/lib/dom.js +62 -91
- package/dist/lib/form.js +834 -906
- package/dist/lib/fs.js +834 -892
- package/dist/lib/native.js +32 -63
- package/dist/lib/storage.js +21 -33
- package/dist/lib/task.js +1054 -1098
- package/dist/lib/theme.js +102 -121
- package/dist/lib/tool.js +65 -98
- package/dist/lib/zip.js +27 -42
- 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
|
@@ -123,6 +123,9 @@
|
|
|
123
123
|
<button @click="openForm('ctplink')">Tplink</button>
|
|
124
124
|
<button @click="openForm('ccaptcha')">Captcha</button>
|
|
125
125
|
</layout>
|
|
126
|
+
<layout gutter="10">
|
|
127
|
+
<button @click="openForm('cnovnc')">Novnc</button>
|
|
128
|
+
</layout>
|
|
126
129
|
</layout>
|
|
127
130
|
</flow>
|
|
128
131
|
<flow v-else-if="ntab === 'method'" class="inner" direction="v">
|
|
@@ -32,22 +32,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
36
|
const clickgo = __importStar(require("clickgo"));
|
|
46
37
|
class default_1 extends clickgo.form.AbstractForm {
|
|
47
|
-
onTouch() {
|
|
48
|
-
|
|
49
|
-
yield clickgo.form.dialog('OK');
|
|
50
|
-
});
|
|
38
|
+
async onTouch() {
|
|
39
|
+
await clickgo.form.dialog('OK');
|
|
51
40
|
}
|
|
52
41
|
}
|
|
53
42
|
exports.default = default_1;
|
|
@@ -32,15 +32,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
37
|
};
|
|
@@ -61,63 +52,53 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
61
52
|
'key': this.sendValue
|
|
62
53
|
});
|
|
63
54
|
}
|
|
64
|
-
hhide() {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
this.show();
|
|
69
|
-
});
|
|
55
|
+
async hhide() {
|
|
56
|
+
this.hide();
|
|
57
|
+
await clickgo.tool.sleep(1000);
|
|
58
|
+
this.show();
|
|
70
59
|
}
|
|
71
|
-
sshowDialog() {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
this.dr = yield frm.showDialog();
|
|
75
|
-
});
|
|
60
|
+
async sshowDialog() {
|
|
61
|
+
const frm = await clickgo.form.create(sd_1.default);
|
|
62
|
+
this.dr = await frm.showDialog();
|
|
76
63
|
}
|
|
77
|
-
showLoading() {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
this.loading = false;
|
|
82
|
-
});
|
|
64
|
+
async showLoading() {
|
|
65
|
+
this.loading = true;
|
|
66
|
+
await clickgo.tool.sleep(1000);
|
|
67
|
+
this.loading = false;
|
|
83
68
|
}
|
|
84
|
-
showLoadingFast() {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
this.loading = false;
|
|
92
|
-
});
|
|
69
|
+
async showLoadingFast() {
|
|
70
|
+
this.loading = true;
|
|
71
|
+
await clickgo.tool.sleep(1000);
|
|
72
|
+
this.loading = false;
|
|
73
|
+
this.loading = true;
|
|
74
|
+
await clickgo.tool.sleep(1000);
|
|
75
|
+
this.loading = false;
|
|
93
76
|
}
|
|
94
|
-
toEnterStep() {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
yield clickgo.form.dialog('Result: ' + (rtn ? 'true' : 'false'));
|
|
115
|
-
});
|
|
77
|
+
async toEnterStep() {
|
|
78
|
+
const rtn = await this.enterStep([
|
|
79
|
+
{
|
|
80
|
+
'value': 'step1',
|
|
81
|
+
'label': 'step1'
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
'value': 'step2'
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
'icon': '/package/res/marker.svg',
|
|
88
|
+
'value': 'icon'
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
'label': 'successful',
|
|
92
|
+
'value': 'step3',
|
|
93
|
+
'desc': 'qq'
|
|
94
|
+
}
|
|
95
|
+
]);
|
|
96
|
+
await clickgo.form.dialog('Result: ' + (rtn ? 'true' : 'false'));
|
|
116
97
|
}
|
|
117
98
|
onMounted() {
|
|
118
|
-
this.watch('test', () =>
|
|
119
|
-
|
|
120
|
-
})
|
|
99
|
+
this.watch('test', async () => {
|
|
100
|
+
await clickgo.form.dialog('test changed.');
|
|
101
|
+
});
|
|
121
102
|
}
|
|
122
103
|
}
|
|
123
104
|
exports.default = default_1;
|
|
@@ -32,15 +32,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
36
|
const clickgo = __importStar(require("clickgo"));
|
|
46
37
|
class Sd extends clickgo.form.AbstractForm {
|
|
@@ -48,11 +39,9 @@ class Sd extends clickgo.form.AbstractForm {
|
|
|
48
39
|
super(...arguments);
|
|
49
40
|
this.dr = '';
|
|
50
41
|
}
|
|
51
|
-
newDialog() {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
this.dr = yield frm.showDialog();
|
|
55
|
-
});
|
|
42
|
+
async newDialog() {
|
|
43
|
+
const frm = await clickgo.form.create(Sd);
|
|
44
|
+
this.dr = await frm.showDialog();
|
|
56
45
|
}
|
|
57
46
|
}
|
|
58
47
|
exports.default = Sd;
|
|
@@ -32,15 +32,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
36
|
const clickgo = __importStar(require("clickgo"));
|
|
46
37
|
class default_1 extends clickgo.form.AbstractForm {
|
|
@@ -55,54 +46,38 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
55
46
|
get global() {
|
|
56
47
|
return JSON.stringify(clickgo.core.global, null, 4);
|
|
57
48
|
}
|
|
58
|
-
getCdn() {
|
|
59
|
-
|
|
60
|
-
yield clickgo.form.dialog(clickgo.core.getCdn());
|
|
61
|
-
});
|
|
49
|
+
async getCdn() {
|
|
50
|
+
await clickgo.form.dialog(clickgo.core.getCdn());
|
|
62
51
|
}
|
|
63
|
-
getAvailArea() {
|
|
64
|
-
|
|
65
|
-
yield clickgo.form.dialog(JSON.stringify(clickgo.core.getAvailArea()));
|
|
66
|
-
});
|
|
52
|
+
async getAvailArea() {
|
|
53
|
+
await clickgo.form.dialog(JSON.stringify(clickgo.core.getAvailArea()));
|
|
67
54
|
}
|
|
68
|
-
hashe() {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
yield clickgo.form.dialog('No permission.');
|
|
74
|
-
});
|
|
55
|
+
async hashe() {
|
|
56
|
+
if (clickgo.core.hash(this.hash)) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
await clickgo.form.dialog('No permission.');
|
|
75
60
|
}
|
|
76
|
-
getHash() {
|
|
77
|
-
|
|
78
|
-
yield clickgo.form.dialog('Hash is: ' + clickgo.core.getHash());
|
|
79
|
-
});
|
|
61
|
+
async getHash() {
|
|
62
|
+
await clickgo.form.dialog('Hash is: ' + clickgo.core.getHash());
|
|
80
63
|
}
|
|
81
|
-
getHost() {
|
|
82
|
-
|
|
83
|
-
yield clickgo.form.dialog('Host is: ' + clickgo.core.getHost());
|
|
84
|
-
});
|
|
64
|
+
async getHost() {
|
|
65
|
+
await clickgo.form.dialog('Host is: ' + clickgo.core.getHost());
|
|
85
66
|
}
|
|
86
|
-
locatione() {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
yield clickgo.form.dialog('No permission.');
|
|
92
|
-
});
|
|
67
|
+
async locatione() {
|
|
68
|
+
if (clickgo.core.location(this.location)) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
await clickgo.form.dialog('No permission.');
|
|
93
72
|
}
|
|
94
|
-
getLocation() {
|
|
95
|
-
|
|
96
|
-
yield clickgo.form.dialog('Location is: ' + clickgo.core.getLocation());
|
|
97
|
-
});
|
|
73
|
+
async getLocation() {
|
|
74
|
+
await clickgo.form.dialog('Location is: ' + clickgo.core.getLocation());
|
|
98
75
|
}
|
|
99
|
-
back() {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
yield clickgo.form.dialog('No permission.');
|
|
105
|
-
});
|
|
76
|
+
async back() {
|
|
77
|
+
if (clickgo.core.back()) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
await clickgo.form.dialog('No permission.');
|
|
106
81
|
}
|
|
107
82
|
open() {
|
|
108
83
|
clickgo.core.open('https://www.maiyun.net');
|
|
@@ -32,15 +32,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
36
|
const clickgo = __importStar(require("clickgo"));
|
|
46
37
|
class default_1 extends clickgo.form.AbstractForm {
|
|
@@ -92,10 +83,8 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
92
83
|
getStyleCount() {
|
|
93
84
|
clickgo.form.dialog(clickgo.dom.getStyleCount(this.taskId, 'form').toString()).catch((e) => { throw e; });
|
|
94
85
|
}
|
|
95
|
-
getWatchSizeCount(taskId) {
|
|
96
|
-
|
|
97
|
-
yield clickgo.form.dialog(clickgo.dom.getWatchSizeCount(taskId).toString());
|
|
98
|
-
});
|
|
86
|
+
async getWatchSizeCount(taskId) {
|
|
87
|
+
await clickgo.form.dialog(clickgo.dom.getWatchSizeCount(taskId).toString());
|
|
99
88
|
}
|
|
100
89
|
watchSize() {
|
|
101
90
|
this.watchSizeText = !this.watchSizeText;
|
|
@@ -133,24 +122,20 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
133
122
|
clickgo.dom.unwatch(this.refs.watch.$el);
|
|
134
123
|
}
|
|
135
124
|
}
|
|
136
|
-
getWatchCount(taskId) {
|
|
137
|
-
|
|
138
|
-
yield clickgo.form.dialog(clickgo.dom.getWatchCount(taskId).toString());
|
|
139
|
-
});
|
|
125
|
+
async getWatchCount(taskId) {
|
|
126
|
+
await clickgo.form.dialog(clickgo.dom.getWatchCount(taskId).toString());
|
|
140
127
|
}
|
|
141
128
|
isWatchStyle() {
|
|
142
129
|
clickgo.form.dialog(clickgo.dom.isWatchStyle(this.refs.watchStyle.$el) ? 'true' : 'false').catch((e) => { throw e; });
|
|
143
130
|
}
|
|
144
|
-
getWatchInfo() {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
this.getWatchInfoDisabled = false;
|
|
153
|
-
});
|
|
131
|
+
async getWatchInfo() {
|
|
132
|
+
this.getWatchInfoDisabled = true;
|
|
133
|
+
for (let i = 0; i < 40; ++i) {
|
|
134
|
+
const rtn = clickgo.dom.getWatchInfo();
|
|
135
|
+
this.getWatchInfoText = JSON.stringify(rtn, undefined, 4);
|
|
136
|
+
await clickgo.tool.sleep(500);
|
|
137
|
+
}
|
|
138
|
+
this.getWatchInfoDisabled = false;
|
|
154
139
|
}
|
|
155
140
|
bindGesture(e) {
|
|
156
141
|
clickgo.dom.bindGesture(e, (ne, dir) => {
|
|
@@ -158,11 +143,11 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
158
143
|
return 1;
|
|
159
144
|
}
|
|
160
145
|
return 0;
|
|
161
|
-
}, (dir) =>
|
|
146
|
+
}, async (dir) => {
|
|
162
147
|
this.bindGestureText = dir.slice(0, 1).toUpperCase() + dir.slice(1);
|
|
163
|
-
|
|
148
|
+
await clickgo.tool.sleep(500);
|
|
164
149
|
this.bindGestureText = '';
|
|
165
|
-
})
|
|
150
|
+
});
|
|
166
151
|
}
|
|
167
152
|
bindGestureWheel(e) {
|
|
168
153
|
clickgo.dom.bindGesture(e, (ne, dir) => {
|
|
@@ -170,21 +155,21 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
170
155
|
return 1;
|
|
171
156
|
}
|
|
172
157
|
return 0;
|
|
173
|
-
}, (dir) =>
|
|
158
|
+
}, async (dir) => {
|
|
174
159
|
this.bindGestureWheelText = dir.slice(0, 1).toUpperCase() + dir.slice(1);
|
|
175
|
-
|
|
160
|
+
await clickgo.tool.sleep(500);
|
|
176
161
|
this.bindGestureWheelText = '';
|
|
177
|
-
})
|
|
162
|
+
});
|
|
178
163
|
}
|
|
179
164
|
bindLong() {
|
|
180
165
|
clickgo.form.dialog('Press and hold this button.').catch((e) => { throw e; });
|
|
181
166
|
}
|
|
182
167
|
bindLongDown(e) {
|
|
183
|
-
clickgo.dom.bindLong(e, () =>
|
|
168
|
+
clickgo.dom.bindLong(e, async () => {
|
|
184
169
|
this.bindLongText = true;
|
|
185
|
-
|
|
170
|
+
await clickgo.tool.sleep(500);
|
|
186
171
|
this.bindLongText = false;
|
|
187
|
-
})
|
|
172
|
+
});
|
|
188
173
|
}
|
|
189
174
|
bindDragDown(e) {
|
|
190
175
|
clickgo.dom.bindDrag(e, {
|
|
@@ -192,26 +177,20 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
192
177
|
'data': 'bindDragDownTest'
|
|
193
178
|
});
|
|
194
179
|
}
|
|
195
|
-
dragEnter(e) {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
e.target.innerText = '';
|
|
200
|
-
});
|
|
180
|
+
async dragEnter(e) {
|
|
181
|
+
e.target.innerText = 'enter';
|
|
182
|
+
await clickgo.tool.sleep(200);
|
|
183
|
+
e.target.innerText = '';
|
|
201
184
|
}
|
|
202
|
-
dragLeave(e) {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
e.target.innerText = '';
|
|
207
|
-
});
|
|
185
|
+
async dragLeave(e) {
|
|
186
|
+
e.target.innerText = 'leave';
|
|
187
|
+
await clickgo.tool.sleep(200);
|
|
188
|
+
e.target.innerText = '';
|
|
208
189
|
}
|
|
209
|
-
drop(e) {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
e.target.innerText = '';
|
|
214
|
-
});
|
|
190
|
+
async drop(e) {
|
|
191
|
+
e.target.innerText = 'drop';
|
|
192
|
+
await clickgo.tool.sleep(500);
|
|
193
|
+
e.target.innerText = '';
|
|
215
194
|
}
|
|
216
195
|
bindMoveDown(e) {
|
|
217
196
|
clickgo.dom.bindMove(e, {
|
|
@@ -237,10 +216,8 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
237
216
|
this.scaleS *= scale;
|
|
238
217
|
});
|
|
239
218
|
}
|
|
240
|
-
fullscreen() {
|
|
241
|
-
|
|
242
|
-
yield clickgo.dom.fullscreen();
|
|
243
|
-
});
|
|
219
|
+
async fullscreen() {
|
|
220
|
+
await clickgo.dom.fullscreen();
|
|
244
221
|
}
|
|
245
222
|
onMounted() {
|
|
246
223
|
clickgo.dom.watchStyle(this.refs.watchStyle.$el, 'font-size', (n, v) => {
|