clickgo 3.16.26 → 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 +40 -52
- package/dist/app/demo/form/control/list/list.xml +20 -10
- 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 +28 -41
- 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/tool/tool.xml +1 -1
- 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
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ First, load the module loader, then load your app with it.
|
|
|
35
35
|
**index.html**
|
|
36
36
|
|
|
37
37
|
```html
|
|
38
|
-
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.8/dist/loader.min.js?path=index&npm={'clickgo':'3.16.
|
|
38
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.8/dist/loader.min.js?path=index&npm={'clickgo':'3.16.28'}"></script>
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
**index.js**
|
package/dist/app/demo/app.js
CHANGED
|
@@ -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
|
};
|
|
@@ -48,13 +39,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
48
39
|
const clickgo = __importStar(require("clickgo"));
|
|
49
40
|
const main_1 = __importDefault(require("./form/main"));
|
|
50
41
|
class default_1 extends clickgo.core.AbstractApp {
|
|
51
|
-
main(data) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
'param': (_a = data.param) !== null && _a !== void 0 ? _a : 'none',
|
|
56
|
-
}));
|
|
57
|
-
});
|
|
42
|
+
async main(data) {
|
|
43
|
+
this.run(await clickgo.form.create(main_1.default, {
|
|
44
|
+
'param': data.param ?? 'none',
|
|
45
|
+
}));
|
|
58
46
|
}
|
|
59
47
|
}
|
|
60
48
|
exports.default = default_1;
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"/clickgo/control/jodit",
|
|
29
29
|
"/clickgo/control/qrcode",
|
|
30
30
|
"/clickgo/control/mpegts",
|
|
31
|
-
"/clickgo/control/tplink"
|
|
31
|
+
"/clickgo/control/tplink",
|
|
32
|
+
"/clickgo/control/novnc"
|
|
32
33
|
],
|
|
33
34
|
"style": "/package/global",
|
|
34
35
|
|
|
@@ -121,6 +122,8 @@
|
|
|
121
122
|
"/form/control/mpegts/mpegts.xml",
|
|
122
123
|
"/form/control/nav/nav.js",
|
|
123
124
|
"/form/control/nav/nav.xml",
|
|
125
|
+
"/form/control/novnc/novnc.js",
|
|
126
|
+
"/form/control/novnc/novnc.xml",
|
|
124
127
|
"/form/control/page/page.js",
|
|
125
128
|
"/form/control/page/page.xml",
|
|
126
129
|
"/form/control/palette/palette.js",
|
|
@@ -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,15 +52,13 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
61
52
|
}
|
|
62
53
|
];
|
|
63
54
|
}
|
|
64
|
-
imgselect(cb) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
cb(path);
|
|
72
|
-
});
|
|
55
|
+
async imgselect(cb) {
|
|
56
|
+
const frm = await clickgo.form.create(img_1.default);
|
|
57
|
+
const path = await frm.showDialog();
|
|
58
|
+
if (!path) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
cb(path);
|
|
73
62
|
}
|
|
74
63
|
}
|
|
75
64
|
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 default_1 extends clickgo.form.AbstractForm {
|
|
@@ -53,10 +44,8 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
53
44
|
this.plain = ['not'];
|
|
54
45
|
this.sizeh = false;
|
|
55
46
|
}
|
|
56
|
-
dialog(text) {
|
|
57
|
-
|
|
58
|
-
yield clickgo.form.dialog(text);
|
|
59
|
-
});
|
|
47
|
+
async dialog(text) {
|
|
48
|
+
await clickgo.form.dialog(text);
|
|
60
49
|
}
|
|
61
50
|
}
|
|
62
51
|
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 default_1 extends clickgo.form.AbstractForm {
|
|
@@ -55,11 +46,9 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
55
46
|
this.indeterminate4 = false;
|
|
56
47
|
this.disabled = false;
|
|
57
48
|
}
|
|
58
|
-
onChange(e) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
yield clickgo.form.dialog('v: ' + (e.detail.value ? 'true' : 'false') + ', i: ' + (e.detail.indeterminate ? 'true' : 'false'));
|
|
62
|
-
});
|
|
49
|
+
async onChange(e) {
|
|
50
|
+
e.preventDefault();
|
|
51
|
+
await clickgo.form.dialog('v: ' + (e.detail.value ? 'true' : 'false') + ', i: ' + (e.detail.indeterminate ? 'true' : 'false'));
|
|
63
52
|
}
|
|
64
53
|
}
|
|
65
54
|
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 default_1 extends clickgo.form.AbstractForm {
|
|
@@ -48,11 +39,9 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
48
39
|
super(...arguments);
|
|
49
40
|
this.fill = false;
|
|
50
41
|
}
|
|
51
|
-
check() {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
yield clickgo.form.dialog(res ? 'true' : 'false');
|
|
55
|
-
});
|
|
42
|
+
async check() {
|
|
43
|
+
const res = this.refs.content.check();
|
|
44
|
+
await clickgo.form.dialog(res ? 'true' : 'false');
|
|
56
45
|
}
|
|
57
46
|
}
|
|
58
47
|
exports.default = default_1;
|
|
@@ -48,7 +48,7 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
48
48
|
}
|
|
49
49
|
settime() {
|
|
50
50
|
this.ts[0] = clickgo.tool.rand(1504304812000, 1704304812000);
|
|
51
|
-
this.ts[1] = this.ts[0] +
|
|
51
|
+
this.ts[1] = this.ts[0] + 60_000 * 60 * 24 * 30;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
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 default_1 extends clickgo.form.AbstractForm {
|
|
@@ -48,11 +39,9 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
48
39
|
super(...arguments);
|
|
49
40
|
this.list = [0, 1, 2];
|
|
50
41
|
}
|
|
51
|
-
check() {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
yield clickgo.form.dialog(res ? 'true' : 'false');
|
|
55
|
-
});
|
|
42
|
+
async check() {
|
|
43
|
+
const res = this.refs.content.check();
|
|
44
|
+
await clickgo.form.dialog(res ? 'true' : 'false');
|
|
56
45
|
}
|
|
57
46
|
}
|
|
58
47
|
exports.default = default_1;
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
<form title="Dialog" width="
|
|
1
|
+
<form title="Dialog" width="550" height="700" min-width="400" min-height="400" padding="10">
|
|
2
2
|
<layout direction="v" gutter="10" style="flex: 1; width: 0;">
|
|
3
|
-
<layout align-h="center" align-v="center" style="flex: 1;">
|
|
4
|
-
<form title="Title" :min="false" :max="false" :resize="false" width="auto" height="auto" direction="v">
|
|
5
|
-
<dialog @select="btn = $event" :buttons="buttons" :direction="message === 'lines' ? 'v' : 'h'" :width="width ? 300 : undefined" :height="width ? 300 : undefined" :padding="padding">
|
|
6
|
-
<template v-if="message === 'message'">Message</template>
|
|
7
|
-
<template v-else-if="message === 'buttons'"><button style="flex: 1;">Button1</button><button style="margin-left: 10px; flex: 1;">Button2</button></template>
|
|
8
|
-
<template v-else-if="message === 'lines'"><block v-for="i of 5">Line {{i}}.</block></template>
|
|
9
|
-
<template v-else>longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong</template>
|
|
10
|
-
</dialog>
|
|
11
|
-
</form>
|
|
12
|
-
</layout>
|
|
13
3
|
<layout gutter="10">
|
|
14
4
|
<button style="flex: 1;" @click="buttons = ['A', 'B', 'C']">['A', 'B', 'C']</button>
|
|
15
5
|
<button style="flex: 1;" @click="buttons = ['Cancel', 'OK']">['Cancel', 'OK']</button>
|
|
@@ -23,10 +13,34 @@
|
|
|
23
13
|
<layout gutter="10">
|
|
24
14
|
<button style="flex: 1;" @click="padding = !padding">padding</button>
|
|
25
15
|
<button style="flex: 1;" @click="message = 'lines'">Multiple lines</button>
|
|
26
|
-
<button @click="
|
|
16
|
+
<button style="flex: 1;" @click="message = 'many'">Too many lines</button>
|
|
17
|
+
</layout>
|
|
18
|
+
<layout gutter="10">
|
|
19
|
+
<button style="flex: 1;" @click="fill = !fill">{{fill ? '' : '!'}}fill</button>
|
|
20
|
+
<button style="flex: 1;" @click="width = !width" :disabled="fill">Dialog {{width ? '' : '!'}}w/h300</button>
|
|
21
|
+
|
|
22
|
+
<button style="flex: 1;" @click="fwidth = !fwidth" :disabled="fill">Form {{fwidth ? '' : '!'}}w/h400</button>
|
|
27
23
|
</layout>
|
|
28
24
|
<layout gutter="10" align-v="center">
|
|
29
25
|
<label style="flex: 1;">You click: {{btn}}.</label>
|
|
30
26
|
</layout>
|
|
27
|
+
<layout align-h="center" align-v="center" style="flex: 1;">
|
|
28
|
+
<form title="Title" :min="false" :max="false" :resize="false" :width="fwidth ? 400 : 'auto'" :height="fwidth ? 400 : 'auto'" direction="v">
|
|
29
|
+
<dialog @select="btn = $event" :buttons="buttons" :direction="message === 'lines' || message === 'many' ? 'v' : 'h'" :width="fill ? undefined : (width ? 300 : undefined)" :height="fill ? 'fill' : (width ? 300 : undefined)" :padding="padding">
|
|
30
|
+
|
|
31
|
+
<template v-if="message === 'message'">Message</template>
|
|
32
|
+
<template v-else-if="message === 'buttons'"><button style="flex: 1;">Button1</button><button style="margin-left: 10px; flex: 1;">Button2</button></template>
|
|
33
|
+
<template v-else-if="message === 'lines'"><block v-for="i of 5">Line {{i}}.</block></template>
|
|
34
|
+
<template v-else-if="message === 'many'">
|
|
35
|
+
<flow direction="v">
|
|
36
|
+
<block v-for="i of 100">
|
|
37
|
+
Line {{i}}.
|
|
38
|
+
</block>
|
|
39
|
+
</flow>
|
|
40
|
+
</template>
|
|
41
|
+
<template v-else>longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong</template>
|
|
42
|
+
</dialog>
|
|
43
|
+
</form>
|
|
44
|
+
</layout>
|
|
31
45
|
</layout>
|
|
32
46
|
</form>
|
|
@@ -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 {
|
|
@@ -88,10 +79,8 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
88
79
|
this.sub = false;
|
|
89
80
|
this.area = {};
|
|
90
81
|
}
|
|
91
|
-
onGesture(dir) {
|
|
92
|
-
|
|
93
|
-
yield clickgo.form.dialog('onGesture: ' + dir);
|
|
94
|
-
});
|
|
82
|
+
async onGesture(dir) {
|
|
83
|
+
await clickgo.form.dialog('onGesture: ' + dir);
|
|
95
84
|
}
|
|
96
85
|
}
|
|
97
86
|
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 default_1 extends clickgo.form.AbstractForm {
|
|
@@ -61,12 +52,10 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
61
52
|
this.border = 'normal';
|
|
62
53
|
this.banClose = false;
|
|
63
54
|
}
|
|
64
|
-
showLoading() {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
this.loading = false;
|
|
69
|
-
});
|
|
55
|
+
async showLoading() {
|
|
56
|
+
this.loading = true;
|
|
57
|
+
await clickgo.tool.sleep(1000);
|
|
58
|
+
this.loading = false;
|
|
70
59
|
}
|
|
71
60
|
onClose(e) {
|
|
72
61
|
if (this.banClose) {
|
|
@@ -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 {
|
|
@@ -145,27 +136,21 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
145
136
|
});
|
|
146
137
|
}
|
|
147
138
|
}
|
|
148
|
-
remove() {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
this.list.splice(-1, 1);
|
|
155
|
-
});
|
|
139
|
+
async remove() {
|
|
140
|
+
if (this.list.length === 3) {
|
|
141
|
+
await clickgo.form.dialog('It cannot be removed at this time.');
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
this.list.splice(-1, 1);
|
|
156
145
|
}
|
|
157
|
-
drop(e) {
|
|
158
|
-
|
|
159
|
-
yield clickgo.form.dialog(JSON.stringify(e.detail));
|
|
160
|
-
});
|
|
146
|
+
async drop(e) {
|
|
147
|
+
await clickgo.form.dialog(JSON.stringify(e.detail));
|
|
161
148
|
}
|
|
162
149
|
onSelect(e) {
|
|
163
150
|
this.selectionArea = e.detail.area;
|
|
164
151
|
}
|
|
165
|
-
onOpen(e) {
|
|
166
|
-
|
|
167
|
-
yield clickgo.form.dialog('onOpen: ' + e.detail.value.toString());
|
|
168
|
-
});
|
|
152
|
+
async onOpen(e) {
|
|
153
|
+
await clickgo.form.dialog('onOpen: ' + e.detail.value.toString());
|
|
169
154
|
}
|
|
170
155
|
scrollChange() {
|
|
171
156
|
switch (this.scroll) {
|
|
@@ -182,10 +167,8 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
182
167
|
}
|
|
183
168
|
}
|
|
184
169
|
}
|
|
185
|
-
onGesture(dir) {
|
|
186
|
-
|
|
187
|
-
yield clickgo.form.dialog('onGesture: ' + dir);
|
|
188
|
-
});
|
|
170
|
+
async onGesture(dir) {
|
|
171
|
+
await clickgo.form.dialog('onGesture: ' + dir);
|
|
189
172
|
}
|
|
190
173
|
}
|
|
191
174
|
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,15 +52,13 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
61
52
|
this.html = '<p align="center">123</p>';
|
|
62
53
|
this.htmlc = '';
|
|
63
54
|
}
|
|
64
|
-
imgselect(cb) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
cb('https://cdn.jsdelivr.net/npm/clickgo@3.7.0/dist/app/demo/' + path);
|
|
72
|
-
});
|
|
55
|
+
async imgselect(cb) {
|
|
56
|
+
const frm = await clickgo.form.create(img_1.default);
|
|
57
|
+
const path = await frm.showDialog();
|
|
58
|
+
if (!path) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
cb('https://cdn.jsdelivr.net/npm/clickgo@3.7.0/dist/app/demo/' + path);
|
|
73
62
|
}
|
|
74
63
|
}
|
|
75
64
|
exports.default = default_1;
|
|
@@ -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
|
-
alert() {
|
|
48
|
-
|
|
49
|
-
yield clickgo.form.dialog('Alert');
|
|
50
|
-
});
|
|
38
|
+
async alert() {
|
|
39
|
+
await clickgo.form.dialog('Alert');
|
|
51
40
|
}
|
|
52
41
|
}
|
|
53
42
|
exports.default = default_1;
|