clickgo 3.16.20 → 3.16.22
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 +24 -12
- package/dist/app/demo/app.js +1 -1
- package/dist/app/demo/config.json +2 -0
- package/dist/app/demo/form/control/calendar/calendar.js +58 -0
- package/dist/app/demo/form/control/calendar/calendar.xml +31 -0
- package/dist/app/demo/form/control/flow/flow.xml +13 -13
- package/dist/app/demo/form/control/icon/icon.xml +12 -0
- package/dist/app/demo/form/control/list/list.js +22 -1
- package/dist/app/demo/form/control/list/list.xml +3 -3
- package/dist/app/demo/form/control/marquee/marquee.xml +6 -6
- package/dist/app/demo/form/control/menu/menu.xml +6 -6
- package/dist/app/demo/form/control/monaco/monaco.xml +2 -2
- package/dist/app/demo/form/control/panel/test1.xml +1 -1
- package/dist/app/demo/form/control/progress/progress.js +1 -0
- package/dist/app/demo/form/control/progress/progress.xml +4 -3
- package/dist/app/demo/form/control/radio/radio.xml +2 -2
- package/dist/app/demo/form/control/scroll/scroll.xml +6 -6
- package/dist/app/demo/form/control/select/select.js +2 -1
- package/dist/app/demo/form/control/select/select.xml +18 -11
- package/dist/app/demo/form/control/switch/switch.js +1 -0
- package/dist/app/demo/form/control/switch/switch.xml +9 -6
- package/dist/app/demo/form/control/text/text.js +1 -0
- package/dist/app/demo/form/control/text/text.xml +2 -1
- package/dist/app/demo/form/control/vflow/vflow.xml +13 -13
- package/dist/app/demo/form/main.js +5 -0
- package/dist/app/demo/form/main.xml +2 -1
- package/dist/app/demo/form/method/dom/dom.js +3 -0
- package/dist/app/demo/form/method/dom/dom.xml +1 -0
- package/dist/app/demo/form/method/theme/theme.xml +1 -0
- 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/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/global.css +1 -1
- package/dist/lib/dom.d.ts +1 -0
- package/dist/lib/dom.js +5 -1
- package/dist/lib/form.js +8 -16
- package/dist/lib/fs.js +1 -1
- package/dist/lib/tool.d.ts +2 -0
- package/dist/lib/tool.js +50 -3
- 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/types/index.d.ts +11 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ClickGo
|
|
2
2
|
|
|
3
|
-
<p align="center"><img src="dist/icon.png" width="68" height="68" alt="ClickGo"></p>
|
|
3
|
+
<p align="center"><img src="./dist/icon.png" width="68" height="68" alt="ClickGo"></p>
|
|
4
4
|
<p align="center">
|
|
5
5
|
<a href="https://github.com/maiyun/clickgo/blob/master/LICENSE">
|
|
6
6
|
<img alt="License" src="https://img.shields.io/github/license/maiyun/clickgo?color=blue" />
|
|
@@ -16,16 +16,26 @@
|
|
|
16
16
|
</a>
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
[简体中文](./doc/README.sc.md)
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
Build web and native apps using HTML + CSS.
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
Apps compile into a single `.cga` file — run it in the browser or locally via `ClickGo Native`. Great for image editors, DB tools, file managers, admin panels, and more.
|
|
24
|
+
|
|
25
|
+
<p align="center">
|
|
26
|
+
<img src="./doc/pic3.jpg" alt="ClickGo">
|
|
27
|
+
<img src="./doc/pic.jpg" alt="ClickGo">
|
|
28
|
+
<img src="./doc/pic2.jpg" alt="ClickGo">
|
|
29
|
+
</p>
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
First, load the module loader, then load your app with it.
|
|
24
34
|
|
|
25
35
|
**index.html**
|
|
26
36
|
|
|
27
37
|
```html
|
|
28
|
-
<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.22'}"></script>
|
|
29
39
|
```
|
|
30
40
|
|
|
31
41
|
**index.js**
|
|
@@ -42,15 +52,18 @@ clickgo.launcher(new Boot());
|
|
|
42
52
|
|
|
43
53
|
### NPM
|
|
44
54
|
|
|
45
|
-
|
|
55
|
+
Use TypeScript? Install via NPM for full IntelliSense support.
|
|
46
56
|
|
|
47
57
|
```sh
|
|
48
58
|
$ npm i clickgo --save-dev
|
|
59
|
+
$ npm i @litert/loader --save-dev
|
|
60
|
+
$ npm i jszip --save-dev
|
|
49
61
|
```
|
|
50
62
|
|
|
51
|
-
##
|
|
63
|
+
## Notes
|
|
52
64
|
|
|
53
|
-
ClickGo
|
|
65
|
+
ClickGo auto-loads Vue, jszip, and resize-observer.
|
|
66
|
+
**Don't** include them manually — just import the `ClickGo` module.
|
|
54
67
|
|
|
55
68
|
## Demo
|
|
56
69
|
|
|
@@ -58,10 +71,6 @@ Clone and visit "dist/test/index.html".
|
|
|
58
71
|
|
|
59
72
|
[Click here to visit online.](https://maiyun.github.io/clickgo/dist/test/)
|
|
60
73
|
|
|
61
|
-
## Changelog
|
|
62
|
-
|
|
63
|
-
[Changelog](doc/CHANGELOG.md)
|
|
64
|
-
|
|
65
74
|
## License
|
|
66
75
|
|
|
67
76
|
This library is published under [Apache-2.0](./LICENSE) license.
|
|
@@ -184,6 +193,9 @@ This library is published under [Apache-2.0](./LICENSE) license.
|
|
|
184
193
|
|
|
185
194
|
[Question Circle SVG Vector](https://www.svgrepo.com/svg/522997/question-circle)
|
|
186
195
|
[Info Circle SVG Vector](https://www.svgrepo.com/svg/522904/info-circle)
|
|
196
|
+
[Copy SVG Vector](https://www.svgrepo.com/svg/522803/copy)
|
|
197
|
+
[Scissors SVG Vector](https://www.svgrepo.com/svg/523012/scissors)
|
|
198
|
+
[Paste SVG Vector](https://www.svgrepo.com/svg/489767/paste)
|
|
187
199
|
|
|
188
200
|
### **LICENSE:** CC0 License **UPLOADER:** SVG Repo
|
|
189
201
|
|
package/dist/app/demo/app.js
CHANGED
|
@@ -52,7 +52,7 @@ class default_1 extends clickgo.core.AbstractApp {
|
|
|
52
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
53
|
var _a;
|
|
54
54
|
this.run(yield clickgo.form.create(main_1.default, {
|
|
55
|
-
'param': (_a = data.param) !== null && _a !== void 0 ? _a : 'none'
|
|
55
|
+
'param': (_a = data.param) !== null && _a !== void 0 ? _a : 'none',
|
|
56
56
|
}));
|
|
57
57
|
});
|
|
58
58
|
}
|
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
"/form/control/button/button.css",
|
|
49
49
|
"/form/control/button/button.js",
|
|
50
50
|
"/form/control/button/button.xml",
|
|
51
|
+
"/form/control/calendar/calendar.js",
|
|
52
|
+
"/form/control/calendar/calendar.xml",
|
|
51
53
|
"/form/control/captcha/captcha.js",
|
|
52
54
|
"/form/control/captcha/captcha.xml",
|
|
53
55
|
"/form/control/check/check.js",
|
|
@@ -0,0 +1,58 @@
|
|
|
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 () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
const clickgo = __importStar(require("clickgo"));
|
|
37
|
+
class default_1 extends clickgo.form.AbstractForm {
|
|
38
|
+
constructor() {
|
|
39
|
+
super(...arguments);
|
|
40
|
+
this.mv = [];
|
|
41
|
+
this.ym = '';
|
|
42
|
+
this.bottom = false;
|
|
43
|
+
this.left = false;
|
|
44
|
+
this.disabled = false;
|
|
45
|
+
this.plain = false;
|
|
46
|
+
this.start = false;
|
|
47
|
+
this.end = false;
|
|
48
|
+
this.dlist = false;
|
|
49
|
+
this.selected = '';
|
|
50
|
+
}
|
|
51
|
+
onChanged() {
|
|
52
|
+
console.log('onChanged', JSON.stringify(this.mv));
|
|
53
|
+
}
|
|
54
|
+
onSelected(e) {
|
|
55
|
+
this.selected = e.detail.value;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<form width="600" height="750" title="Calendar">
|
|
2
|
+
<layout direction="v" gutter="10" style="padding: 10px; flex: 1;">
|
|
3
|
+
<label>modelValue: {{mv}}</label>
|
|
4
|
+
<label>yearmonth: {{ym}}</label>
|
|
5
|
+
<label>selected: {{selected}}</label>
|
|
6
|
+
<label>dlist: {{dlist ? ['20240101'] : undefined}}</label>
|
|
7
|
+
<calendar v-model="mv" v-model:yearmonth="ym" :disabled="disabled" :plain="plain" :start="start ? '20240305' : undefined" :end="end ? '20280306' : undefined" :disabledList="dlist ? ['20240101'] : undefined" @changed="onChanged" @selected="onSelected" style="flex: 1;">
|
|
8
|
+
<template v-if="bottom" v-slot="d">
|
|
9
|
+
<layout style="flex: 1;" align-h="center">{{d.year}}</layout>
|
|
10
|
+
</template>
|
|
11
|
+
<template v-if="left" v-slot:left="d">
|
|
12
|
+
<block style="text-align: center;">Year{{d.index}}</block>
|
|
13
|
+
</template>
|
|
14
|
+
</calendar>
|
|
15
|
+
<layout gutter="10">
|
|
16
|
+
<button @click="disabled = !disabled" style="flex: 1;">{{disabled ? '' : '!'}}disabled</button>
|
|
17
|
+
<button @click="plain = !plain" style="flex: 1;">{{plain ? '' : '!'}}plain</button>
|
|
18
|
+
<button @click="bottom = !bottom" style="flex: 1;">{{bottom ? '' : '!'}}bottom</button>
|
|
19
|
+
</layout>
|
|
20
|
+
<layout gutter="10">
|
|
21
|
+
<button @click="settime" style="flex: 1;">Set time</button>
|
|
22
|
+
<button @click="start = !start" style="flex: 1;">{{start ? '' : '!'}}start</button>
|
|
23
|
+
<button @click="end = !end" style="flex: 1;">{{end ? '' : '!'}}end</button>
|
|
24
|
+
</layout>
|
|
25
|
+
<layout gutter="10" align-v="center">
|
|
26
|
+
<button @click="ym = '200708'" style="flex: 1;">Set yearmonth</button>
|
|
27
|
+
<button @click="dlist = !dlist" style="flex: 1;">{{dlist ? '' : '!'}}disabledList</button>
|
|
28
|
+
<button @click="left = !left" style="flex: 1;">{{left ? '' : '!'}}left</button>
|
|
29
|
+
</layout>
|
|
30
|
+
</layout>
|
|
31
|
+
</form>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<flow v-model:scroll-left="sLeft1" v-model:scroll-top="sTop1" direction="v" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" @gesture="onGesture" @select="area = $event" @clientwidth="cWidth1 = $event" @clientheight="cHeight1 = $event" @scrollwidth="sWidth1 = $event" @scrollheight="sHeight1 = $event" :style="{'line-height': style ? '1.5' : undefined}" class="border" style="flex: 1;">
|
|
8
8
|
<block :style="{'padding': style ? '10px' : undefined}">
|
|
9
9
|
<block v-for="(line, index) of lineCount">
|
|
10
|
-
<button v-if="index > 0 && index % 10 === 0"
|
|
10
|
+
<button v-if="index > 0 && index % 10 === 0">test</button>
|
|
11
11
|
<block v-else :style="{'height': sub && (index === 1) ? '50px' : undefined}">Line {{line}}, index: {{index}}.</block>
|
|
12
12
|
</block>
|
|
13
13
|
</block>
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
<!-- button list -->
|
|
41
41
|
<layout gutter="10">
|
|
42
42
|
<select v-model="lineValue" :data="[10, 50, 500, 5000]" style="flex: 1; width: 0;"></select>
|
|
43
|
-
<button @click="lineCount += parseInt(lineValue[0])"
|
|
44
|
-
<button @click="lineCount -= parseInt(lineValue[0]);if(lineCount < 0) {lineCount = 0;}"
|
|
43
|
+
<button @click="lineCount += parseInt(lineValue[0])">Add lines</button>
|
|
44
|
+
<button @click="lineCount -= parseInt(lineValue[0]);if(lineCount < 0) {lineCount = 0;}" >Remove lines</button>
|
|
45
45
|
</layout>
|
|
46
46
|
<layout gutter="10">
|
|
47
|
-
<button @click="gesture = !gesture" style="flex: 1; width: 0;
|
|
48
|
-
<button @click="selection = !selection" style="flex: 1; width: 0;
|
|
49
|
-
<button @click="style = !style" style="flex: 1; width: 0;
|
|
50
|
-
<button @click="sub = !sub" style="flex: 1; width: 0;
|
|
47
|
+
<button @click="gesture = !gesture" style="flex: 1; width: 0;">{{gesture ? '' : '!'}}gesture</button>
|
|
48
|
+
<button @click="selection = !selection" style="flex: 1; width: 0;">{{selection ? '' : '!'}}selection</button>
|
|
49
|
+
<button @click="style = !style" style="flex: 1; width: 0;">{{style ? '' : '!'}}style</button>
|
|
50
|
+
<button @click="sub = !sub" style="flex: 1; width: 0;">{{sub ? '' : '!'}}sub</button>
|
|
51
51
|
</layout>
|
|
52
52
|
</layout>
|
|
53
53
|
<!-- 自适应 -->
|
|
@@ -55,23 +55,23 @@
|
|
|
55
55
|
<layout :direction="direction ? 'h' : 'v'" style="flex: 1; height: 0;">
|
|
56
56
|
<flow class="border" v-model:scroll-left="sLeft4" v-model:scroll-top="sTop4" :selection="selection" :gesture="gesture ? (direction ? ['left', 'right'] : ['top', 'bottom']) : []" @gesture="onGesture" :direction="direction ? 'h' : 'v'" @clientwidth="cWidth4 = $event" @clientheight="cHeight4 = $event" @scrollwidth="sWidth4 = $event" @scrollheight="sHeight4 = $event">
|
|
57
57
|
<layout v-for="(line, index) of lineCount" align-v="center" direction="v" :class="[direction && 'rightborder']">
|
|
58
|
-
<button v-if="index > 0 && index % 10 === 0"
|
|
58
|
+
<button v-if="index > 0 && index % 10 === 0" :style="{'width': direction ? '30px' : undefined}">test</button>
|
|
59
59
|
<block v-else :style="{'width': direction ? '80px' : undefined, 'text-align': direction ? 'center' : undefined}">Line {{line}}</block>
|
|
60
60
|
</layout>
|
|
61
61
|
</flow>
|
|
62
62
|
</layout>
|
|
63
63
|
<label>Scroll Left / Top: {{sLeft4}} / {{sTop4}}, Client Width / Height: {{cWidth4}} / {{cHeight4}}, Scroll Width / Height: {{sWidth4}} / {{sHeight4}}.</label>
|
|
64
64
|
<layout gutter="10">
|
|
65
|
-
<button @click="lineCount += 10" style="flex: 1;
|
|
66
|
-
<button @click="lineCount -= 10;if(lineCount < 0) {lineCount = 0;}" style="flex: 1;
|
|
67
|
-
<button @click="direction = !direction" style="flex: 1;
|
|
65
|
+
<button @click="lineCount += 10" style="flex: 1;">Add 10 lines</button>
|
|
66
|
+
<button @click="lineCount -= 10;if(lineCount < 0) {lineCount = 0;}" style="flex: 1;">Remove 10 lines</button>
|
|
67
|
+
<button @click="direction = !direction" style="flex: 1;">Direction</button>
|
|
68
68
|
</layout>
|
|
69
69
|
</layout>
|
|
70
70
|
<!-- 内容超出 -->
|
|
71
71
|
<layout v-else-if="ntab === 'beyond'" gutter="10" direction="v" style="flex: 1; width: 0; padding: 10px;">
|
|
72
72
|
<layout gutter="10" align-v="center">
|
|
73
|
-
<button @click="dir5 = (dir5 === 'h' ? 'v' : 'h')" style="flex: 1;
|
|
74
|
-
<button @click="line5 = (line5 === 10 ? 1 : 10)" style="flex: 1;
|
|
73
|
+
<button @click="dir5 = (dir5 === 'h' ? 'v' : 'h')" style="flex: 1;">Change direction</button>
|
|
74
|
+
<button @click="line5 = (line5 === 10 ? 1 : 10)" style="flex: 1;">Change data</button>
|
|
75
75
|
<label>Direction: {{dir5}}</label>
|
|
76
76
|
</layout>
|
|
77
77
|
<flow v-model:scroll-left="sLeft5" v-model:scroll-top="sTop5" :selection="selection" :gesture="gesture ? ['left', 'right', 'top', 'bottom'] : []" @gesture="onGesture" :direction="dir5" @clientwidth="cWidth5 = $event" @clientheight="cHeight5 = $event" @scrollwidth="sWidth5 = $event" @scrollheight="sHeight5 = $event" class="border" style="flex: 1; height: 0; padding: 10px 0 0 10px;">
|
|
@@ -24,5 +24,17 @@
|
|
|
24
24
|
<icon name="info" size="m"></icon>
|
|
25
25
|
<label>info</label>
|
|
26
26
|
</layout>
|
|
27
|
+
<layout gutter="20" align-v="center">
|
|
28
|
+
<icon name="copy"></icon>
|
|
29
|
+
<icon name="copy" size="m"></icon>
|
|
30
|
+
<label>copy</label>
|
|
31
|
+
<icon name="cut"></icon>
|
|
32
|
+
<icon name="cut" size="m"></icon>
|
|
33
|
+
<label>cut</label>
|
|
34
|
+
</layout>
|
|
35
|
+
<layout gutter="20" align-v="center">
|
|
36
|
+
<icon name="paste"></icon>
|
|
37
|
+
<icon name="paste" size="m"></icon>
|
|
38
|
+
</layout>
|
|
27
39
|
</layout>
|
|
28
40
|
</form>
|
|
@@ -80,11 +80,29 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
80
80
|
{
|
|
81
81
|
'control': 'split'
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
'type': 1
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
'type': 1
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
'type': 1
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
'type': 1
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
'type': 1
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
'type': 1
|
|
100
|
+
},
|
|
83
101
|
{
|
|
84
102
|
'type': 1
|
|
85
103
|
}
|
|
86
104
|
];
|
|
87
|
-
this.select = [];
|
|
105
|
+
this.select = [11];
|
|
88
106
|
this.select2 = ['Appraise'];
|
|
89
107
|
this.label2 = [''];
|
|
90
108
|
this.listData5 = [
|
|
@@ -143,6 +161,7 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
143
161
|
this.check = false;
|
|
144
162
|
this.mode = ['default'];
|
|
145
163
|
this.listDataEmpty = false;
|
|
164
|
+
this.glNone = false;
|
|
146
165
|
}
|
|
147
166
|
get sizes() {
|
|
148
167
|
const rtn = {};
|
|
@@ -362,5 +381,7 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
362
381
|
resolve();
|
|
363
382
|
});
|
|
364
383
|
}
|
|
384
|
+
onMounted() {
|
|
385
|
+
}
|
|
365
386
|
}
|
|
366
387
|
exports.default = default_1;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<tab v-model="ntab" :tabs="['greatlist', 'adaptation', 'beyond', 'list', 'object', 'async']" style="flex: 1; height: 0;">
|
|
4
4
|
<!-- 默认 -->
|
|
5
5
|
<layout v-if="ntab === 'greatlist'" direction="v" style="flex: 1; width: 0; padding: 10px;">
|
|
6
|
-
<greatlist v-model="select" :data="slist" :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" :virtual="virtual" :mode="mode[0]" @gesture="onGesture" @add="onGAdd" @Remove="onGRemove" @change="onGChange" @changed="onGChanged" :scroll="scroll" :sizes="sizes" @select="onSelect" style="line-height: 1.3; flex: 1; height: 0;">
|
|
6
|
+
<greatlist v-model="select" :data="slist" :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" :virtual="virtual" :mode="mode[0]" @gesture="onGesture" @add="onGAdd" @Remove="onGRemove" @change="onGChange" @changed="onGChanged" :scroll="scroll" :sizes="sizes" @select="onSelect" style="line-height: 1.3; flex: 1; height: 0;" :style="{'display': glNone ? 'none': undefined}">
|
|
7
7
|
<template v-slot="data">
|
|
8
8
|
<layout v-if="data.row.type === 0" align-v="center" gutter="5" style="flex: 1;">
|
|
9
9
|
<img :src="data.row.src" style="width: 32px; height: 32px;"></img>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<block style="opacity: .7;">{{data.row.path}}</block>
|
|
13
13
|
</block>
|
|
14
14
|
</layout>
|
|
15
|
-
<template v-else>Other</template>
|
|
15
|
+
<template v-else>Other{{data.index}}</template>
|
|
16
16
|
</template>
|
|
17
17
|
<template v-slot:pop>
|
|
18
18
|
<menulist>
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
</greatlist>
|
|
29
29
|
<label class="tip">Right-click (computer) or press and hold (phone) to open the universal menu.</label>
|
|
30
30
|
<label class="tip">Area: {{selectionArea}}</label>
|
|
31
|
-
<button @click="select = [
|
|
31
|
+
<button @click="select = [5]" style="margin-top: 10px;">Select [5]</button>
|
|
32
32
|
</layout>
|
|
33
33
|
<!-- 自适应 -->
|
|
34
34
|
<layout v-else-if="ntab === 'adaptation'" direction="v" style="flex: 1; width: 0; padding: 10px;">
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<layout direction="v" style="flex: 1; width: 0;">
|
|
6
6
|
<marquee direction="top" style="border: 1px solid rgba(0, 0, 0, .1); background: #FFF;" :style="{'padding': style ? '10px' : undefined, 'line-height': style ? '1.5' : undefined}">
|
|
7
7
|
<block v-for="(line, index) of lineCount">
|
|
8
|
-
<button v-if="index > 0 && index % 10 === 0"
|
|
8
|
+
<button v-if="index > 0 && index % 10 === 0">test</button>
|
|
9
9
|
<block v-else>Line {{line}}, index: {{index}}.</block>
|
|
10
10
|
</block>
|
|
11
11
|
</marquee>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
</marquee>
|
|
17
17
|
<marquee :direction="direction" style="flex: 1; height: 0; border: 1px solid rgba(0, 0, 0, .1); background: #FFF;" :style="{'padding': style ? '10px' : undefined, 'line-height': style ? '1.5' : undefined}">
|
|
18
18
|
<block v-for="(line, index) of lineCount">
|
|
19
|
-
<button v-if="index > 0 && index % 10 === 0"
|
|
19
|
+
<button v-if="index > 0 && index % 10 === 0">test</button>
|
|
20
20
|
<block v-else>Line {{line}}, index: {{index}}.</block>
|
|
21
21
|
</block>
|
|
22
22
|
</marquee>
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
</layout>
|
|
25
25
|
<!-- 控制按钮 -->
|
|
26
26
|
<layout gutter="10">
|
|
27
|
-
<button @click="++lineCount" style="
|
|
28
|
-
<button @click="--lineCount;if(lineCount < 0){lineCount = 0}" style="
|
|
29
|
-
<button @click="style = !style" style="
|
|
27
|
+
<button @click="++lineCount" style="flex: 1; width: 0;">Add item</button>
|
|
28
|
+
<button @click="--lineCount;if(lineCount < 0){lineCount = 0}" style="flex: 1; width: 0;">Remove item</button>
|
|
29
|
+
<button @click="style = !style" style="flex: 1; width: 0;">Change style</button>
|
|
30
30
|
</layout>
|
|
31
|
-
<button @click="changeDirection"
|
|
31
|
+
<button @click="changeDirection">Right bottom: {{direction}}</button>
|
|
32
32
|
</layout>
|
|
33
33
|
</form>
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
<template v-slot>Icon</template>
|
|
35
35
|
<template v-slot:pop>
|
|
36
36
|
<menulist>
|
|
37
|
-
<menulist-item alt="A"><img src="../../../res/txt.svg" style="width: 16px; height: 16px;" /><label
|
|
38
|
-
<menulist-item alt="B"><img src="../../../res/sql.svg" style="width: 16px; height: 16px;" /><label
|
|
39
|
-
<menulist-item alt="C"><img src="../../../res/zip.svg" style="width: 16px; height: 16px;" /><label
|
|
37
|
+
<menulist-item alt="A"><img src="../../../res/txt.svg" style="width: 16px; height: 16px;" /><label>Txt</label></menulist-item>
|
|
38
|
+
<menulist-item alt="B"><img src="../../../res/sql.svg" style="width: 16px; height: 16px;" /><label>Sql</label></menulist-item>
|
|
39
|
+
<menulist-item alt="C"><img src="../../../res/zip.svg" style="width: 16px; height: 16px;" /><label>Zip</label></menulist-item>
|
|
40
40
|
</menulist>
|
|
41
41
|
</template>
|
|
42
42
|
</menulist-item>
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
<template v-slot:pop>
|
|
46
46
|
<menulist>
|
|
47
47
|
<menulist-item alt="A">
|
|
48
|
-
<button @click="$event.stopPropagation()" style="
|
|
48
|
+
<button @click="$event.stopPropagation()" style="flex: 1; width: 0;">Button</button>
|
|
49
49
|
</menulist-item>
|
|
50
50
|
<menulist-item alt="B">
|
|
51
|
-
<scroll direction="h" @click="$event.stopPropagation()" style="
|
|
51
|
+
<scroll direction="h" @click="$event.stopPropagation()" style="width: 150px; height: 30px;"></scroll>
|
|
52
52
|
</menulist-item>
|
|
53
53
|
<menulist-item alt="C">
|
|
54
|
-
<text @click="$event.stopPropagation()" style="
|
|
54
|
+
<text @click="$event.stopPropagation()" style="flex: 1; width: 0;"></text>
|
|
55
55
|
</menulist-item>
|
|
56
56
|
</menulist>
|
|
57
57
|
</template>
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
<layout gutter="10" style="flex: 1; height: 0;">
|
|
19
19
|
<layout direction="v" gutter="10" style="width: 100px;">
|
|
20
20
|
<list v-model="file" :data="filesName" :must="false" style="flex: 1;"></list>
|
|
21
|
-
<button @click="globalInclude"
|
|
22
|
-
<button @click="newInclude"
|
|
21
|
+
<button @click="globalInclude">{{globali ? '' : '!'}}global</button>
|
|
22
|
+
<button @click="newInclude">{{newi ? '' : '!'}}new</button>
|
|
23
23
|
</layout>
|
|
24
24
|
<monaco v-if="files[file] !== undefined" v-model="files[file]" language="typescript" style="flex: 1; width: 0;"></monaco>
|
|
25
25
|
<layout v-else align-v="center" align-h="center" style="flex: 1; width: 0;">Please select file.</layout>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<label>Qs: {{qs}}</label>
|
|
7
7
|
<label>rootMountData: {{rootMountData}}</label>
|
|
8
8
|
<button @click="click">Hi</button>
|
|
9
|
-
<button @click="sendToRootPanel({'a':1})"
|
|
9
|
+
<button @click="sendToRootPanel({'a':1})">sendToRootPanel({'a':1})</button>
|
|
10
10
|
<button @click="clearQss">clearQs()</button>
|
|
11
11
|
<button @click="jump">Jump</button>
|
|
12
12
|
<layout>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<form title="Progress" width="500" height="400" min-width="300" min-height="400" padding="10">
|
|
2
2
|
<layout gutter="10" direction="v" style="flex: 1; width: 0;">
|
|
3
|
-
<progress v-model="v"></progress>
|
|
4
|
-
<progress v-model="v2"></progress>
|
|
5
|
-
<progress v-model="v3" style="height: 10px;"></progress>
|
|
3
|
+
<progress v-model="v" :type="v4[0]"></progress>
|
|
4
|
+
<progress v-model="v2" :type="v4[0]"></progress>
|
|
5
|
+
<progress v-model="v3" style="height: 10px;" :type="v4[0]"></progress>
|
|
6
6
|
<button @click="v3 = v3 === 20 ? 60 : 20">Set to {{v3 === 20 ? '60' : '20'}}</button>
|
|
7
|
+
<select v-model="v4" :data="['default', 'primary', 'info', 'warning', 'danger']"></select>
|
|
7
8
|
</layout>
|
|
8
9
|
</form>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<radio v-model="value" :disabled="disabled" value="radio3" style="flex: 1; width: 0;">radio3</radio>
|
|
10
10
|
<radio v-model="value" :disabled="disabled" value="radio4" @change="onChange" style="flex: 1; width: 0;">radio4 (r2n4)</radio>
|
|
11
11
|
</layout>
|
|
12
|
-
<button @click="value = 'radio2'"
|
|
13
|
-
<button @click="disabled = !disabled"
|
|
12
|
+
<button @click="value = 'radio2'">Set value to "radio2"</button>
|
|
13
|
+
<button @click="disabled = !disabled">{{disabled ? 'Remove' : 'Set'}} disabled</button>
|
|
14
14
|
</layout>
|
|
15
15
|
</form>
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
<layout gutter="10" direction="v" style="flex: 1;">
|
|
5
5
|
<label>Offset: {{so1}}</label>
|
|
6
6
|
<layout gutter="10">
|
|
7
|
-
<button @click="sh1 = (sh1 === 1000 ? 2000 : 1000)" style="
|
|
8
|
-
<button @click="c1 = (c1 === 100 ? 200 : 100)" style="
|
|
7
|
+
<button @click="sh1 = (sh1 === 1000 ? 2000 : 1000)" style="flex: 1;">Set length {{sh1 === 1000 ? '2000' : '1000'}}</button>
|
|
8
|
+
<button @click="c1 = (c1 === 100 ? 200 : 100)" style="flex: 1;">Set client {{c1 === 100 ? '200' : '100'}}</button>
|
|
9
9
|
</layout>
|
|
10
10
|
<layout gutter="10">
|
|
11
|
-
<button @click="disabled = !disabled" style="
|
|
12
|
-
<button @click="sh1 = 1000;c1 = 2000" style="
|
|
11
|
+
<button @click="disabled = !disabled" style="flex: 1;">{{disabled ? 'Remove' : 'Set'}} disabled</button>
|
|
12
|
+
<button @click="sh1 = 1000;c1 = 2000" style="flex: 1;">Set client > length</button>
|
|
13
13
|
</layout>
|
|
14
14
|
</layout>
|
|
15
15
|
<scroll :length="sh1" :client="c1" v-model:offset="so1" :disabled="disabled" style="width: 20px;"></scroll>
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
<label>On the left is the flow control.</label>
|
|
32
32
|
<label>isShow: {{isShow}}</label>
|
|
33
33
|
</layout>
|
|
34
|
-
<button @click="float = !float"
|
|
35
|
-
<button @click="count += 10"
|
|
34
|
+
<button @click="float = !float">{{float ? 'Remove' : 'Set'}} float</button>
|
|
35
|
+
<button @click="count += 10">Add 10 lines</button>
|
|
36
36
|
</layout>
|
|
37
37
|
</layout>
|
|
38
38
|
</form>
|
|
@@ -127,9 +127,10 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
127
127
|
'3': []
|
|
128
128
|
};
|
|
129
129
|
this.noValue = [];
|
|
130
|
+
this.reward = ['z'];
|
|
130
131
|
this.disabledList = [];
|
|
131
132
|
this.unavailableList = [];
|
|
132
|
-
this.padding =
|
|
133
|
+
this.padding = ['m'];
|
|
133
134
|
this.fontSize = false;
|
|
134
135
|
this.background = false;
|
|
135
136
|
this.disabled = false;
|