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.
Files changed (100) hide show
  1. package/README.md +1 -1
  2. package/dist/app/demo/app.js +4 -16
  3. package/dist/app/demo/config.json +4 -1
  4. package/dist/app/demo/form/control/arteditor/arteditor.js +7 -18
  5. package/dist/app/demo/form/control/button/button.js +2 -13
  6. package/dist/app/demo/form/control/check/check.js +3 -14
  7. package/dist/app/demo/form/control/content/content.js +3 -14
  8. package/dist/app/demo/form/control/daterange/daterange.js +1 -1
  9. package/dist/app/demo/form/control/delete/delete.js +3 -14
  10. package/dist/app/demo/form/control/dialog/dialog.js +2 -0
  11. package/dist/app/demo/form/control/dialog/dialog.xml +26 -12
  12. package/dist/app/demo/form/control/flow/flow.js +2 -13
  13. package/dist/app/demo/form/control/form/form.js +4 -15
  14. package/dist/app/demo/form/control/iconview/iconview.js +12 -29
  15. package/dist/app/demo/form/control/jodit/jodit.js +7 -18
  16. package/dist/app/demo/form/control/link/link.js +2 -13
  17. package/dist/app/demo/form/control/list/list.js +38 -57
  18. package/dist/app/demo/form/control/map/map.js +17 -28
  19. package/dist/app/demo/form/control/menu/menu.js +6 -17
  20. package/dist/app/demo/form/control/mpegts/mpegts.js +1 -1
  21. package/dist/app/demo/form/control/nav/nav.js +6 -17
  22. package/dist/app/demo/form/control/novnc/novnc.js +75 -0
  23. package/dist/app/demo/form/control/novnc/novnc.xml +13 -0
  24. package/dist/app/demo/form/control/panel/panel.js +9 -20
  25. package/dist/app/demo/form/control/panel/test1.js +20 -41
  26. package/dist/app/demo/form/control/pdf/pdf.js +7 -20
  27. package/dist/app/demo/form/control/progress/progress.js +3 -12
  28. package/dist/app/demo/form/control/radio/radio.js +6 -17
  29. package/dist/app/demo/form/control/select/select.js +25 -38
  30. package/dist/app/demo/form/control/switch/switch.js +3 -14
  31. package/dist/app/demo/form/control/tab/tab.js +7 -18
  32. package/dist/app/demo/form/control/table/table.js +8 -23
  33. package/dist/app/demo/form/control/text/text.js +2 -13
  34. package/dist/app/demo/form/control/tuieditor/tuieditor.js +7 -18
  35. package/dist/app/demo/form/control/uploader/uploader.js +20 -31
  36. package/dist/app/demo/form/control/vflow/vflow.js +2 -13
  37. package/dist/app/demo/form/event/form/form.js +11 -22
  38. package/dist/app/demo/form/event/task/task.js +14 -29
  39. package/dist/app/demo/form/main.js +381 -387
  40. package/dist/app/demo/form/main.xml +3 -0
  41. package/dist/app/demo/form/method/acontrol/acontrol.js +2 -13
  42. package/dist/app/demo/form/method/aform/aform.js +41 -60
  43. package/dist/app/demo/form/method/aform/sd.js +3 -14
  44. package/dist/app/demo/form/method/core/core.js +25 -50
  45. package/dist/app/demo/form/method/dom/dom.js +35 -58
  46. package/dist/app/demo/form/method/form/form.js +106 -149
  47. package/dist/app/demo/form/method/fs/fs.js +126 -147
  48. package/dist/app/demo/form/method/native/native.js +44 -72
  49. package/dist/app/demo/form/method/storage/storage.js +9 -27
  50. package/dist/app/demo/form/method/system/system.js +16 -41
  51. package/dist/app/demo/form/method/task/task.js +18 -37
  52. package/dist/app/demo/form/method/theme/theme.js +39 -54
  53. package/dist/app/demo/form/method/tool/tool.js +22 -43
  54. package/dist/app/demo/form/method/zip/zip.js +18 -29
  55. package/dist/app/demo/form/solution/backpanel/backpanel.js +10 -23
  56. package/dist/app/task/app.js +2 -13
  57. package/dist/app/task/form/bar/bar.js +32 -45
  58. package/dist/clickgo.js +1 -1
  59. package/dist/control/arteditor.cgc +0 -0
  60. package/dist/control/box.cgc +0 -0
  61. package/dist/control/captcha.cgc +0 -0
  62. package/dist/control/common.cgc +0 -0
  63. package/dist/control/desc.cgc +0 -0
  64. package/dist/control/drawer.cgc +0 -0
  65. package/dist/control/echarts.cgc +0 -0
  66. package/dist/control/form.cgc +0 -0
  67. package/dist/control/iconview.cgc +0 -0
  68. package/dist/control/jodit.cgc +0 -0
  69. package/dist/control/map.cgc +0 -0
  70. package/dist/control/monaco.cgc +0 -0
  71. package/dist/control/mpegts.cgc +0 -0
  72. package/dist/control/nav.cgc +0 -0
  73. package/dist/control/novnc.cgc +0 -0
  74. package/dist/control/page.cgc +0 -0
  75. package/dist/control/pdf.cgc +0 -0
  76. package/dist/control/property.cgc +0 -0
  77. package/dist/control/qrcode.cgc +0 -0
  78. package/dist/control/table.cgc +0 -0
  79. package/dist/control/task.cgc +0 -0
  80. package/dist/control/tplink.cgc +0 -0
  81. package/dist/control/tuieditor.cgc +0 -0
  82. package/dist/control/tuiviewer.cgc +0 -0
  83. package/dist/control/xterm.cgc +0 -0
  84. package/dist/index.js +59 -71
  85. package/dist/lib/control.js +213 -235
  86. package/dist/lib/core.js +356 -379
  87. package/dist/lib/dom.js +62 -91
  88. package/dist/lib/form.js +834 -906
  89. package/dist/lib/fs.js +834 -892
  90. package/dist/lib/native.js +32 -63
  91. package/dist/lib/storage.js +21 -33
  92. package/dist/lib/task.js +1054 -1098
  93. package/dist/lib/theme.js +102 -121
  94. package/dist/lib/tool.js +65 -98
  95. package/dist/lib/zip.js +27 -42
  96. package/dist/theme/blue.cgt +0 -0
  97. package/dist/theme/byterun.cgt +0 -0
  98. package/dist/theme/dark.cgt +0 -0
  99. package/dist/theme/light.cgt +0 -0
  100. 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
- return __awaiter(this, void 0, void 0, function* () {
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
- return __awaiter(this, void 0, void 0, function* () {
66
- this.hide();
67
- yield clickgo.tool.sleep(1000);
68
- this.show();
69
- });
55
+ async hhide() {
56
+ this.hide();
57
+ await clickgo.tool.sleep(1000);
58
+ this.show();
70
59
  }
71
- sshowDialog() {
72
- return __awaiter(this, void 0, void 0, function* () {
73
- const frm = yield clickgo.form.create(sd_1.default);
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
- return __awaiter(this, void 0, void 0, function* () {
79
- this.loading = true;
80
- yield clickgo.tool.sleep(1000);
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
- return __awaiter(this, void 0, void 0, function* () {
86
- this.loading = true;
87
- yield clickgo.tool.sleep(1000);
88
- this.loading = false;
89
- this.loading = true;
90
- yield clickgo.tool.sleep(1000);
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
- return __awaiter(this, void 0, void 0, function* () {
96
- const rtn = yield this.enterStep([
97
- {
98
- 'value': 'step1',
99
- 'label': 'step1'
100
- },
101
- {
102
- 'value': 'step2'
103
- },
104
- {
105
- 'icon': '/package/res/marker.svg',
106
- 'value': 'icon'
107
- },
108
- {
109
- 'label': 'successful',
110
- 'value': 'step3',
111
- 'desc': 'qq'
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', () => __awaiter(this, void 0, void 0, function* () {
119
- yield clickgo.form.dialog('test changed.');
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
- return __awaiter(this, void 0, void 0, function* () {
53
- const frm = yield clickgo.form.create(Sd);
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
- return __awaiter(this, void 0, void 0, function* () {
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
- return __awaiter(this, void 0, void 0, function* () {
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
- return __awaiter(this, void 0, void 0, function* () {
70
- if (clickgo.core.hash(this.hash)) {
71
- return;
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
- return __awaiter(this, void 0, void 0, function* () {
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
- return __awaiter(this, void 0, void 0, function* () {
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
- return __awaiter(this, void 0, void 0, function* () {
88
- if (clickgo.core.location(this.location)) {
89
- return;
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
- return __awaiter(this, void 0, void 0, function* () {
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
- return __awaiter(this, void 0, void 0, function* () {
101
- if (clickgo.core.back()) {
102
- return;
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
- return __awaiter(this, void 0, void 0, function* () {
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
- return __awaiter(this, void 0, void 0, function* () {
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
- return __awaiter(this, void 0, void 0, function* () {
146
- this.getWatchInfoDisabled = true;
147
- for (let i = 0; i < 40; ++i) {
148
- const rtn = clickgo.dom.getWatchInfo();
149
- this.getWatchInfoText = JSON.stringify(rtn, undefined, 4);
150
- yield clickgo.tool.sleep(500);
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) => __awaiter(this, void 0, void 0, function* () {
146
+ }, async (dir) => {
162
147
  this.bindGestureText = dir.slice(0, 1).toUpperCase() + dir.slice(1);
163
- yield clickgo.tool.sleep(500);
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) => __awaiter(this, void 0, void 0, function* () {
158
+ }, async (dir) => {
174
159
  this.bindGestureWheelText = dir.slice(0, 1).toUpperCase() + dir.slice(1);
175
- yield clickgo.tool.sleep(500);
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, () => __awaiter(this, void 0, void 0, function* () {
168
+ clickgo.dom.bindLong(e, async () => {
184
169
  this.bindLongText = true;
185
- yield clickgo.tool.sleep(500);
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
- return __awaiter(this, void 0, void 0, function* () {
197
- e.target.innerText = 'enter';
198
- yield clickgo.tool.sleep(200);
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
- return __awaiter(this, void 0, void 0, function* () {
204
- e.target.innerText = 'leave';
205
- yield clickgo.tool.sleep(200);
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
- return __awaiter(this, void 0, void 0, function* () {
211
- e.target.innerText = 'drop';
212
- yield clickgo.tool.sleep(500);
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
- return __awaiter(this, void 0, void 0, function* () {
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) => {