clickgo 3.13.0 → 3.13.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/form/method/form/form.js +1 -1
- package/dist/clickgo.js +1 -1
- package/dist/clickgo.ts +1 -1
- package/dist/control/monaco.cgc +0 -0
- package/dist/control/nav.cgc +0 -0
- package/dist/control/table.cgc +0 -0
- package/dist/control/weditor.cgc +0 -0
- package/dist/index.js +1 -1
- package/dist/index.ts +1 -1
- package/dist/lib/core.js +1 -1
- package/dist/lib/core.ts +1 -1
- package/dist/lib/form.js +3 -3
- package/dist/lib/form.ts +3 -3
- package/package.json +1 -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.7/dist/loader.min.js?path=index&npm={'clickgo':'3.13.
|
|
28
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.13.1'}"></script>
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
**index.js**
|
|
@@ -219,7 +219,7 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
219
219
|
this.dr = yield clickgo.form.dialog({
|
|
220
220
|
'direction': 'v',
|
|
221
221
|
'gutter': 10,
|
|
222
|
-
'content': '<block>Hello text!</block><text :modelValue="data.txt"
|
|
222
|
+
'content': '<block>Hello text!</block><text :modelValue="data.txt" />',
|
|
223
223
|
'data': {
|
|
224
224
|
'txt': 'Text\nLine 2.'
|
|
225
225
|
}
|
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.13.
|
|
27
|
+
const version = '3.13.1';
|
|
28
28
|
function getVersion() {
|
|
29
29
|
return version;
|
|
30
30
|
}
|
package/dist/clickgo.ts
CHANGED
package/dist/control/monaco.cgc
CHANGED
|
Binary file
|
package/dist/control/nav.cgc
CHANGED
|
Binary file
|
package/dist/control/table.cgc
CHANGED
|
Binary file
|
package/dist/control/weditor.cgc
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -110,7 +110,7 @@ function launcher(boot) {
|
|
|
110
110
|
return __awaiter(this, void 0, void 0, function* () {
|
|
111
111
|
var _a;
|
|
112
112
|
const paths = [
|
|
113
|
-
`${loader.cdn}/npm/vue@3.4.
|
|
113
|
+
`${loader.cdn}/npm/vue@3.4.30/dist/vue.global${boot.isDebug() ? '' : '.prod.min'}.js`
|
|
114
114
|
];
|
|
115
115
|
if (!(window.TouchEvent)) {
|
|
116
116
|
window.TouchEvent = CustomEvent;
|
package/dist/index.ts
CHANGED
|
@@ -192,7 +192,7 @@ export function launcher(boot: AbstractBoot): void {
|
|
|
192
192
|
(async function() {
|
|
193
193
|
// --- 通过标签加载库 ---
|
|
194
194
|
const paths: string[] = [
|
|
195
|
-
`${loader.cdn}/npm/vue@3.4.
|
|
195
|
+
`${loader.cdn}/npm/vue@3.4.30/dist/vue.global${boot.isDebug() ? '' : '.prod.min'}.js`
|
|
196
196
|
];
|
|
197
197
|
// --- 判断 TouchEvent 是否存在(例如某些浏览器可能不存在这个对象) ---
|
|
198
198
|
if (!((window as any).TouchEvent)) {
|
package/dist/lib/core.js
CHANGED
|
@@ -194,7 +194,7 @@ const modules = {
|
|
|
194
194
|
func: function () {
|
|
195
195
|
return __awaiter(this, void 0, void 0, function* () {
|
|
196
196
|
return new Promise(function (resolve, reject) {
|
|
197
|
-
fetch(loader.cdn + '/npm/monaco-editor@0.
|
|
197
|
+
fetch(loader.cdn + '/npm/monaco-editor@0.50.0/min/vs/loader.js').then(function (r) {
|
|
198
198
|
return r.blob();
|
|
199
199
|
}).then(function (b) {
|
|
200
200
|
return tool.blob2DataUrl(b);
|
package/dist/lib/core.ts
CHANGED
|
@@ -268,7 +268,7 @@ const modules: Record<string, {
|
|
|
268
268
|
'monaco': {
|
|
269
269
|
func: async function() {
|
|
270
270
|
return new Promise(function(resolve, reject) {
|
|
271
|
-
fetch(loader.cdn + '/npm/monaco-editor@0.
|
|
271
|
+
fetch(loader.cdn + '/npm/monaco-editor@0.50.0/min/vs/loader.js').then(function(r) {
|
|
272
272
|
return r.blob();
|
|
273
273
|
}).then(function(b) {
|
|
274
274
|
return tool.blob2DataUrl(b);
|
package/dist/lib/form.js
CHANGED
|
@@ -2769,9 +2769,9 @@ function confirm(opt) {
|
|
|
2769
2769
|
return false;
|
|
2770
2770
|
}
|
|
2771
2771
|
const locale = t.locale.lang || core.config.locale;
|
|
2772
|
-
const buttons = [(_b = (_a = info.locale[locale]) === null || _a === void 0 ? void 0 : _a.
|
|
2772
|
+
const buttons = [(_b = (_a = info.locale[locale]) === null || _a === void 0 ? void 0 : _a.no) !== null && _b !== void 0 ? _b : info.locale['en'].no, (_d = (_c = info.locale[locale]) === null || _c === void 0 ? void 0 : _c.yes) !== null && _d !== void 0 ? _d : info.locale['en'].yes];
|
|
2773
2773
|
if (opt.cancel) {
|
|
2774
|
-
buttons.
|
|
2774
|
+
buttons.unshift((_f = (_e = info.locale[locale]) === null || _e === void 0 ? void 0 : _e.cancel) !== null && _f !== void 0 ? _f : info.locale['en'].cancel);
|
|
2775
2775
|
}
|
|
2776
2776
|
const res = yield dialog({
|
|
2777
2777
|
'taskId': taskId,
|
|
@@ -2811,7 +2811,7 @@ function prompt(opt) {
|
|
|
2811
2811
|
'title': opt.title,
|
|
2812
2812
|
'direction': 'v',
|
|
2813
2813
|
'gutter': 10,
|
|
2814
|
-
'content': '<block>' + opt.content + '</block><text v-model="data.text"
|
|
2814
|
+
'content': '<block>' + opt.content + '</block><text v-model="data.text" />',
|
|
2815
2815
|
'data': {
|
|
2816
2816
|
'text': (_a = opt.text) !== null && _a !== void 0 ? _a : ''
|
|
2817
2817
|
},
|
package/dist/lib/form.ts
CHANGED
|
@@ -3497,9 +3497,9 @@ export async function confirm(opt: string | types.IFormConfirmOptions): Promise<
|
|
|
3497
3497
|
return false;
|
|
3498
3498
|
}
|
|
3499
3499
|
const locale = t.locale.lang || core.config.locale;
|
|
3500
|
-
const buttons = [info.locale[locale]?.
|
|
3500
|
+
const buttons = [info.locale[locale]?.no ?? info.locale['en'].no, info.locale[locale]?.yes ?? info.locale['en'].yes];
|
|
3501
3501
|
if (opt.cancel) {
|
|
3502
|
-
buttons.
|
|
3502
|
+
buttons.unshift(info.locale[locale]?.cancel ?? info.locale['en'].cancel);
|
|
3503
3503
|
}
|
|
3504
3504
|
const res = await dialog({
|
|
3505
3505
|
'taskId': taskId,
|
|
@@ -3542,7 +3542,7 @@ export async function prompt(opt: string | types.IFormPromptOptions): Promise<st
|
|
|
3542
3542
|
'title': opt.title,
|
|
3543
3543
|
'direction': 'v',
|
|
3544
3544
|
'gutter': 10,
|
|
3545
|
-
'content': '<block>' + opt.content + '</block><text v-model="data.text"
|
|
3545
|
+
'content': '<block>' + opt.content + '</block><text v-model="data.text" />',
|
|
3546
3546
|
'data': {
|
|
3547
3547
|
'text': opt.text ?? ''
|
|
3548
3548
|
},
|