clickgo 3.11.34 → 3.12.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 +1 -1
- package/dist/app/demo/config.json +7 -1
- package/dist/app/demo/form/control/page/page.js +2 -0
- package/dist/app/demo/form/control/page/page.xml +6 -1
- package/dist/app/demo/form/control/select/select.xml +1 -1
- package/dist/app/demo/form/control/tuiviewer/tuiviewer.js +35 -0
- package/dist/app/demo/form/control/tuiviewer/tuiviewer.xml +14 -0
- package/dist/app/demo/form/control/weditor/weditor.js +69 -0
- package/dist/app/demo/form/control/weditor/weditor.xml +22 -0
- package/dist/app/demo/form/main.js +10 -0
- package/dist/app/demo/form/main.xml +2 -0
- package/dist/app/demo/form/method/aform/aform.xml +1 -1
- package/dist/app/demo/form/method/core/core.xml +1 -1
- package/dist/app/demo/form/method/dom/dom.js +12 -0
- package/dist/app/demo/form/method/dom/dom.xml +4 -0
- package/dist/app/demo/form/method/form/form.xml +7 -1
- package/dist/clickgo.js +1 -1
- package/dist/clickgo.ts +1 -1
- package/dist/control/arteditor.cgc +0 -0
- package/dist/control/box.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/map.cgc +0 -0
- package/dist/control/monaco.cgc +0 -0
- package/dist/control/nav.cgc +0 -0
- package/dist/control/page.cgc +0 -0
- package/dist/control/property.cgc +0 -0
- package/dist/control/table.cgc +0 -0
- package/dist/control/task.cgc +0 -0
- package/dist/control/tuieditor.cgc +0 -0
- package/dist/control/tuiviewer.cgc +0 -0
- package/dist/control/weditor.cgc +0 -0
- package/dist/control/xterm.cgc +0 -0
- package/dist/lib/control.js +5 -0
- package/dist/lib/control.ts +5 -0
- package/dist/lib/core.js +17 -0
- package/dist/lib/core.ts +15 -0
- package/dist/lib/dom.js +163 -6
- package/dist/lib/dom.ts +222 -6
- package/dist/lib/form.js +78 -15
- package/dist/lib/form.ts +93 -17
- package/dist/lib/fs.js +1 -1
- package/dist/lib/fs.ts +1 -1
- package/dist/lib/task.js +13 -0
- package/dist/lib/task.ts +19 -0
- package/dist/lib/tool.js +6 -11
- package/dist/lib/tool.ts +8 -10
- package/dist/theme/byterun.cgt +0 -0
- package/dist/theme/familiar.cgt +0 -0
- package/dist/theme/light.cgt +0 -0
- package/package.json +2 -2
- package/types/index.d.ts +17 -1
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ Load the module loader first, and then load it using the module loader.
|
|
|
25
25
|
**index.html**
|
|
26
26
|
|
|
27
27
|
```html
|
|
28
|
-
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.
|
|
28
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.2/dist/loader.min.js?path=index&npm={'clickgo':'3.12.1'}"></script>
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
**index.js**
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
"/clickgo/control/echarts",
|
|
22
22
|
"/clickgo/control/map",
|
|
23
23
|
"/clickgo/control/tuieditor",
|
|
24
|
-
"/clickgo/control/
|
|
24
|
+
"/clickgo/control/tuiviewer",
|
|
25
|
+
"/clickgo/control/arteditor",
|
|
26
|
+
"/clickgo/control/weditor"
|
|
25
27
|
],
|
|
26
28
|
"style": "/package/global",
|
|
27
29
|
|
|
@@ -119,11 +121,15 @@
|
|
|
119
121
|
"/form/control/tip/tip.xml",
|
|
120
122
|
"/form/control/tuieditor/tuieditor.js",
|
|
121
123
|
"/form/control/tuieditor/tuieditor.xml",
|
|
124
|
+
"/form/control/tuiviewer/tuiviewer.js",
|
|
125
|
+
"/form/control/tuiviewer/tuiviewer.xml",
|
|
122
126
|
"/form/control/vflow/vflow.css",
|
|
123
127
|
"/form/control/vflow/vflow.js",
|
|
124
128
|
"/form/control/vflow/vflow.xml",
|
|
125
129
|
"/form/control/video/video.js",
|
|
126
130
|
"/form/control/video/video.xml",
|
|
131
|
+
"/form/control/weditor/weditor.js",
|
|
132
|
+
"/form/control/weditor/weditor.xml",
|
|
127
133
|
"/form/control/xterm/xterm.js",
|
|
128
134
|
"/form/control/xterm/xterm.xml",
|
|
129
135
|
"/form/event/form/form.css",
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
<form width="700" height="
|
|
1
|
+
<form width="700" height="500" title="Page">
|
|
2
2
|
<layout direction="v" gutter="10" style="flex: 1; padding: 10px;">
|
|
3
|
+
<label>count6: {{count6}}</label>
|
|
3
4
|
<page max="10" :control="control" />
|
|
4
5
|
<page v-model="p1" max="10" :control="control" />
|
|
5
6
|
<page v-model="p2" max="30" :control="control" />
|
|
6
7
|
<page v-model="p3" total="1282" :control="control" />
|
|
7
8
|
<page v-model="p4" total="1282" count="20" :control="control" />
|
|
8
9
|
<page v-model="p5" :total="total5" count="20" :control="control" />
|
|
10
|
+
<page v-model="p6" total="1000" v-model:count="count6" :counts="[20,50,100]" :control="control" />
|
|
9
11
|
<layout gutter="10">
|
|
10
12
|
<button @click="total5 = total5 ? 0 : 300" style="flex: 2;">total to {{total5 ? 0 : 300}}</button>
|
|
13
|
+
<button @click="count6 = count6 === 20 ? 50 : 20" style="flex: 2;">count6 to {{count6 === 20 ? 50 : 20}}</button>
|
|
14
|
+
</layout>
|
|
15
|
+
<layout gutter="10">
|
|
11
16
|
<button @click="control=2" style="flex: 2;">control to 2</button>
|
|
12
17
|
<button @click="control=5" style="flex: 1;">to 5</button>
|
|
13
18
|
<button @click="control=0" style="flex: 1;">to 0</button>
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
<select :data="['1','2','3','4','5']" :disabled="disabled" :editable="editable" :multi="multi" :plain="plain" :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="editableData ? ['1','2','3',{'label':'is
|
|
54
|
+
<select v-model="aemodel" :data="editableData ? ['1','2','3',{'label':'is gDa','value':'gDa'},'5'] : ['6','7','8','9','10']" :disabled="disabled" editable editablelabel :multi="multi" :plain="plain" :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
|
<button @click="aemodel[0] = '22'">22</button>
|
|
@@ -0,0 +1,35 @@
|
|
|
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.text = 'a**b**c';
|
|
31
|
+
this.size = ['12px'];
|
|
32
|
+
this.family = false;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<form title="Tuiviewer" width="600" height="450" padding="10">
|
|
2
|
+
<layout gutter="10" direction="v" style="flex: 1; width: 0;">
|
|
3
|
+
<label>Length: {{text.length}}</label>
|
|
4
|
+
<layout gutter="10" style="flex: 1;">
|
|
5
|
+
<tuiviewer v-model="text" style="flex: 1;" :style="{'font-size': size[0], 'font-family': family ? 'Consolas, \'Courier New\', monospace' : undefined}"></tuiviewer>
|
|
6
|
+
<text style="flex: 1;" v-model="text" type="multi"></text>
|
|
7
|
+
</layout>
|
|
8
|
+
<layout gutter="10">
|
|
9
|
+
<button @click="family = !family" style="flex: 1;">{{family ? '' : '!'}}Family CCM</button>
|
|
10
|
+
<button @click="text = '1**2**3'" style="flex: 1;">v = '1**2**3'</button>
|
|
11
|
+
<select v-model="size" :data="['12px', '13px', '14px', '15px', '16px']" style="flex: 1;"></select>
|
|
12
|
+
</layout>
|
|
13
|
+
</layout>
|
|
14
|
+
</form>
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
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
|
+
};
|
|
34
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
const clickgo = __importStar(require("clickgo"));
|
|
39
|
+
const img_1 = __importDefault(require("../arteditor/img"));
|
|
40
|
+
class default_1 extends clickgo.form.AbstractForm {
|
|
41
|
+
constructor() {
|
|
42
|
+
super(...arguments);
|
|
43
|
+
this.theme = ['light'];
|
|
44
|
+
this.themes = ['light', 'dark'];
|
|
45
|
+
this.disabled = false;
|
|
46
|
+
this.readonly = false;
|
|
47
|
+
this.size = ['12px'];
|
|
48
|
+
this.family = false;
|
|
49
|
+
this.visual = false;
|
|
50
|
+
this.text = '';
|
|
51
|
+
this.html = '<p align="center">123</p>';
|
|
52
|
+
}
|
|
53
|
+
videoselect() {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
yield clickgo.form.dialog('Sorry, video can not be upload.');
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
imgselect(cb) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const frm = yield clickgo.form.create(img_1.default);
|
|
61
|
+
const path = yield frm.showDialog();
|
|
62
|
+
if (!path) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
cb('https://cdn.jsdelivr.net/npm/clickgo@3.7.0/dist/app/demo/' + path);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<form title="Weditor" width="700" height="450" padding="10">
|
|
2
|
+
<layout gutter="10" direction="v" style="flex: 1; width: 0;">
|
|
3
|
+
<label>Length: {{html.length}}</label>
|
|
4
|
+
<layout gutter="10" style="flex: 1; height: 0;">
|
|
5
|
+
<weditor v-model="html" @text="text = $event" :disabled="disabled" :readonly="readonly" :theme="theme[0]" :visual="visual" @imgselect="imgselect" @videoselect="videoselect" style="flex: 2;" :style="{'font-size': size[0], 'font-family': family ? 'Consolas, \'Courier New\', monospace' : undefined}"></weditor>
|
|
6
|
+
<layout gutter="10" direction="v" style="flex: 1;">
|
|
7
|
+
<text style="flex: 1;" v-model="text" readonly type="multi"></text>
|
|
8
|
+
<text style="flex: 1;" v-model="html" type="multi"></text>
|
|
9
|
+
</layout>
|
|
10
|
+
</layout>
|
|
11
|
+
<layout gutter="10">
|
|
12
|
+
<button @click="disabled = !disabled" style="flex: 1;">{{disabled ? '' : '!'}}disabled</button>
|
|
13
|
+
<button @click="readonly = !readonly" style="flex: 1;">{{readonly ? '' : '!'}}readonly</button>
|
|
14
|
+
<button @click="html = '1<b>2</b>3'" style="flex: 1;">v = '1<b>2</b>3'</button>
|
|
15
|
+
</layout>
|
|
16
|
+
<layout gutter="10">
|
|
17
|
+
<button @click="family = !family" style="flex: 1;">{{family ? '' : '!'}}Family CCM</button>
|
|
18
|
+
<select v-model="size" :data="['12px', '13px', '14px', '15px', '16px']" style="flex: 1;"></select>
|
|
19
|
+
<!--<select v-model="theme" :data="themes" style="flex: 1;"></select>-->
|
|
20
|
+
</layout>
|
|
21
|
+
</layout>
|
|
22
|
+
</form>
|
|
@@ -75,7 +75,9 @@ const video_1 = __importDefault(require("./control/video/video"));
|
|
|
75
75
|
const step_1 = __importDefault(require("./control/step/step"));
|
|
76
76
|
const xterm_1 = __importDefault(require("./control/xterm/xterm"));
|
|
77
77
|
const echarts_1 = __importDefault(require("./control/echarts/echarts"));
|
|
78
|
+
const weditor_1 = __importDefault(require("./control/weditor/weditor"));
|
|
78
79
|
const tuieditor_1 = __importDefault(require("./control/tuieditor/tuieditor"));
|
|
80
|
+
const tuiviewer_1 = __importDefault(require("./control/tuiviewer/tuiviewer"));
|
|
79
81
|
const arteditor_1 = __importDefault(require("./control/arteditor/arteditor"));
|
|
80
82
|
const form_2 = __importDefault(require("./event/form/form"));
|
|
81
83
|
const other_1 = __importDefault(require("./event/other/other"));
|
|
@@ -292,10 +294,18 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
292
294
|
frm = yield clickgo.form.create(text_1.default);
|
|
293
295
|
break;
|
|
294
296
|
}
|
|
297
|
+
case 'cweditor': {
|
|
298
|
+
frm = yield clickgo.form.create(weditor_1.default);
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
295
301
|
case 'ctuieditor': {
|
|
296
302
|
frm = yield clickgo.form.create(tuieditor_1.default);
|
|
297
303
|
break;
|
|
298
304
|
}
|
|
305
|
+
case 'ctuiviewer': {
|
|
306
|
+
frm = yield clickgo.form.create(tuiviewer_1.default);
|
|
307
|
+
break;
|
|
308
|
+
}
|
|
299
309
|
case 'carteditor': {
|
|
300
310
|
frm = yield clickgo.form.create(arteditor_1.default);
|
|
301
311
|
break;
|
|
@@ -89,10 +89,12 @@
|
|
|
89
89
|
<layout gutter="10">
|
|
90
90
|
<button @click="openForm('cecharts')">Echarts</button>
|
|
91
91
|
<button @click="openForm('cmap')">Map</button>
|
|
92
|
+
<button @click="openForm('cweditor')">Weditor</button>
|
|
92
93
|
</layout>
|
|
93
94
|
<layout gutter="10">
|
|
94
95
|
<button @click="openForm('carteditor')">Arteditor</button>
|
|
95
96
|
<button @click="openForm('ctuieditor')">Tuieditor</button>
|
|
97
|
+
<button @click="openForm('ctuiviewer')">Tuiviewer</button>
|
|
96
98
|
</layout>
|
|
97
99
|
</layout>
|
|
98
100
|
</flow>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<form width="350" height="600" title="Library
|
|
1
|
+
<form width="350" height="600" title="Library core" padding="10">
|
|
2
2
|
<layout direction="v" gutter="10" style="flex: 1;">
|
|
3
3
|
<label>config:</label>
|
|
4
4
|
<text v-model="config" readonly type="multi" style="flex: 1;"></text>
|
|
@@ -48,6 +48,7 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
48
48
|
this.moveTop = 0;
|
|
49
49
|
this.moveWidth = 25;
|
|
50
50
|
this.moveHeight = 25;
|
|
51
|
+
this.watchPositionText = false;
|
|
51
52
|
this.getWatchInfoDisabled = false;
|
|
52
53
|
this.getWatchInfoText = '{}';
|
|
53
54
|
}
|
|
@@ -94,6 +95,17 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
94
95
|
clickgo.dom.unwatchSize(this.refs.watchSize.$el);
|
|
95
96
|
}
|
|
96
97
|
}
|
|
98
|
+
watchPosition() {
|
|
99
|
+
this.watchPositionText = !this.watchPositionText;
|
|
100
|
+
if (this.watchPositionText) {
|
|
101
|
+
clickgo.dom.watchPosition(this.refs.watchPosition.$el, (state) => {
|
|
102
|
+
console.log('watchPosition', state);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
clickgo.dom.unwatchPosition(this.refs.watchPosition.$el);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
97
109
|
wwatch() {
|
|
98
110
|
this.watchText = !this.watchText;
|
|
99
111
|
if (this.watchText) {
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
<button @click="watchSize" ref="watchSize" :style="{'height': (watchSizeHeight ? 30 : 50) + 'px'}" style="padding: 0 5px; flex: 1;">{{watchSizeText ? '' : '!'}}watchSize</button>
|
|
10
10
|
<button @click="watchSizeHeight = !watchSizeHeight" style="padding: 0 5px; flex: 1;">Change</button>
|
|
11
11
|
</layout>
|
|
12
|
+
<layout gutter="10" align-v="center">
|
|
13
|
+
<button @click="watchPosition" ref="watchPosition" style="flex: 1;">{{watchPositionText ? '' : '!'}}watchPosition</button>
|
|
14
|
+
<label>watch and scroll</label>
|
|
15
|
+
</layout>
|
|
12
16
|
<layout gutter="10">
|
|
13
17
|
<button style="flex: 1;" @click="getWatchSizeCount()">getWatchSizeCount()</button>
|
|
14
18
|
<button style="flex: 1;" @click="getWatchSizeCount(taskId)">getWatchSizeCount({{taskId}})</button>
|
|
@@ -44,7 +44,13 @@
|
|
|
44
44
|
</layout>
|
|
45
45
|
<button @click="showPop">showPop(e.currentTarget, this.refs.pop)</button>
|
|
46
46
|
<teleport to="system">
|
|
47
|
-
<
|
|
47
|
+
<layout ref="pop" gutter="10" direction="v" align-v="center" align-h="center" style="border: solid 1px #000; background: #FFF; width: 200px; height: 100px;">
|
|
48
|
+
<label>refs.pop</label>
|
|
49
|
+
<layout gutter="10">
|
|
50
|
+
<select :data="[1,2,3]"></select>
|
|
51
|
+
<select :data="[4,5,6]"></select>
|
|
52
|
+
</layout>
|
|
53
|
+
</layout>
|
|
48
54
|
</teleport>
|
|
49
55
|
<button @click="create">create('test', undefined, { 'path': this.filename })</button>
|
|
50
56
|
<label>Dialog result: {{dr}}.</label>
|
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.12.1';
|
|
28
28
|
function getVersion() {
|
|
29
29
|
return version;
|
|
30
30
|
}
|
package/dist/clickgo.ts
CHANGED
|
Binary file
|
package/dist/control/box.cgc
CHANGED
|
Binary file
|
package/dist/control/common.cgc
CHANGED
|
Binary file
|
package/dist/control/desc.cgc
CHANGED
|
Binary file
|
package/dist/control/drawer.cgc
CHANGED
|
Binary file
|
package/dist/control/echarts.cgc
CHANGED
|
Binary file
|
package/dist/control/form.cgc
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/control/map.cgc
CHANGED
|
Binary file
|
package/dist/control/monaco.cgc
CHANGED
|
Binary file
|
package/dist/control/nav.cgc
CHANGED
|
Binary file
|
package/dist/control/page.cgc
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/control/table.cgc
CHANGED
|
Binary file
|
package/dist/control/task.cgc
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/control/xterm.cgc
CHANGED
|
Binary file
|
package/dist/lib/control.js
CHANGED
|
@@ -255,6 +255,11 @@ function read(blob) {
|
|
|
255
255
|
}
|
|
256
256
|
const configContent = yield z.getContent('/' + sub.name + '/config.json');
|
|
257
257
|
if (!configContent) {
|
|
258
|
+
form.notify({
|
|
259
|
+
'title': 'Error',
|
|
260
|
+
'content': `Control file not found.\nFile: "${'/' + sub.name + '/config.json'}".`,
|
|
261
|
+
'type': 'danger'
|
|
262
|
+
});
|
|
258
263
|
continue;
|
|
259
264
|
}
|
|
260
265
|
const config = JSON.parse(configContent);
|
package/dist/lib/control.ts
CHANGED
|
@@ -364,6 +364,11 @@ export async function read(blob: Blob): Promise<false | types.TControlPackage> {
|
|
|
364
364
|
}
|
|
365
365
|
const configContent = await z.getContent('/' + sub.name + '/config.json');
|
|
366
366
|
if (!configContent) {
|
|
367
|
+
form.notify({
|
|
368
|
+
'title': 'Error',
|
|
369
|
+
'content': `Control file not found.\nFile: "${'/' + sub.name + '/config.json'}".`,
|
|
370
|
+
'type': 'danger'
|
|
371
|
+
});
|
|
367
372
|
continue;
|
|
368
373
|
}
|
|
369
374
|
// --- 读取本条控件内容 ---
|
package/dist/lib/core.js
CHANGED
|
@@ -277,6 +277,23 @@ const modules = {
|
|
|
277
277
|
'obj': null,
|
|
278
278
|
'loading': false,
|
|
279
279
|
'resolve': []
|
|
280
|
+
},
|
|
281
|
+
'weditor': {
|
|
282
|
+
func: function () {
|
|
283
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
284
|
+
yield loader.loadScripts([
|
|
285
|
+
loader.cdn + '/npm/@wangeditor/editor@5.1.23/dist/index.min.js'
|
|
286
|
+
]);
|
|
287
|
+
yield loader.loadLinks([
|
|
288
|
+
loader.cdn + '/npm/@wangeditor/editor@5.1.23/dist/css/style.min.css'
|
|
289
|
+
]);
|
|
290
|
+
loader.loadStyle('.w-e-modal,.w-e-hover-bar,.w-e-drop-panel,.w-e-select-list,.w-e-bar-item-menus-container{z-index:2 !important;}');
|
|
291
|
+
return window.wangEditor;
|
|
292
|
+
});
|
|
293
|
+
},
|
|
294
|
+
'obj': null,
|
|
295
|
+
'loading': false,
|
|
296
|
+
'resolve': []
|
|
280
297
|
}
|
|
281
298
|
};
|
|
282
299
|
function regModule(name, func) {
|
package/dist/lib/core.ts
CHANGED
|
@@ -344,6 +344,21 @@ const modules: Record<string, {
|
|
|
344
344
|
'obj': null,
|
|
345
345
|
'loading': false,
|
|
346
346
|
'resolve': []
|
|
347
|
+
},
|
|
348
|
+
'weditor': {
|
|
349
|
+
func: async function() {
|
|
350
|
+
await loader.loadScripts([
|
|
351
|
+
loader.cdn + '/npm/@wangeditor/editor@5.1.23/dist/index.min.js'
|
|
352
|
+
]);
|
|
353
|
+
await loader.loadLinks([
|
|
354
|
+
loader.cdn + '/npm/@wangeditor/editor@5.1.23/dist/css/style.min.css'
|
|
355
|
+
]);
|
|
356
|
+
loader.loadStyle('.w-e-modal,.w-e-hover-bar,.w-e-drop-panel,.w-e-select-list,.w-e-bar-item-menus-container{z-index:2 !important;}');
|
|
357
|
+
return (window as any).wangEditor;
|
|
358
|
+
},
|
|
359
|
+
'obj': null,
|
|
360
|
+
'loading': false,
|
|
361
|
+
'resolve': []
|
|
347
362
|
}
|
|
348
363
|
};
|
|
349
364
|
|