clickgo 3.3.3 → 3.3.4

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 CHANGED
@@ -28,7 +28,7 @@ Load the module loader first, and then load it using the module loader.
28
28
  **index.html**
29
29
 
30
30
  ```html
31
- <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.0/dist/loader.min.js?path=index&npm={'clickgo':'3.3.3'}"></script>
31
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.0/dist/loader.min.js?path=index&npm={'clickgo':'3.3.4'}"></script>
32
32
  ```
33
33
 
34
34
  **index.js**
@@ -28,15 +28,24 @@ class default_1 extends clickgo.form.AbstractForm {
28
28
  constructor() {
29
29
  super(...arguments);
30
30
  this.i = 0;
31
+ this.f = 0;
31
32
  this.layouts = [
32
33
  `<path d="M9.5 2h-6A1.502 1.502 0 0 0 2 3.5v6A1.502 1.502 0 0 0 3.5 11h6A1.502 1.502 0 0 0 11 9.5v-6A1.502 1.502 0 0 0 9.5 2zm.5 7.5a.501.501 0 0 1-.5.5h-6a.501.501 0 0 1-.5-.5v-6a.501.501 0 0 1 .5-.5h6a.501.501 0 0 1 .5.5zM20.5 2h-6A1.502 1.502 0 0 0 13 3.5v6a1.502 1.502 0 0 0 1.5 1.5h6A1.502 1.502 0 0 0 22 9.5v-6A1.502 1.502 0 0 0 20.5 2zm.5 7.5a.501.501 0 0 1-.5.5h-6a.501.501 0 0 1-.5-.5v-6a.501.501 0 0 1 .5-.5h6a.501.501 0 0 1 .5.5zM9.5 13h-6A1.502 1.502 0 0 0 2 14.5v6A1.502 1.502 0 0 0 3.5 22h6a1.502 1.502 0 0 0 1.5-1.5v-6A1.502 1.502 0 0 0 9.5 13zm.5 7.5a.501.501 0 0 1-.5.5h-6a.501.501 0 0 1-.5-.5v-6a.501.501 0 0 1 .5-.5h6a.501.501 0 0 1 .5.5zM20.5 13h-6a1.502 1.502 0 0 0-1.5 1.5v6a1.502 1.502 0 0 0 1.5 1.5h6a1.502 1.502 0 0 0 1.5-1.5v-6a1.502 1.502 0 0 0-1.5-1.5zm.5 7.5a.501.501 0 0 1-.5.5h-6a.501.501 0 0 1-.5-.5v-6a.501.501 0 0 1 .5-.5h6a.501.501 0 0 1 .5.5z"/><path fill="none" d="M0 0h24v24H0z"/>`,
33
34
  `<path d="M24 12a4.99 4.99 0 0 1-2.15 4.101l-.85-.495v-.163a3.974 3.974 0 0 0-1.377-7.377l-.79-.124-.052-.798a5.293 5.293 0 0 0-10.214-1.57L8.17 6.59l-.977-.483A2.277 2.277 0 0 0 6.19 5.87a2.18 2.18 0 0 0-1.167.339 2.206 2.206 0 0 0-.98 1.395l-.113.505-.476.2A4 4 0 0 0 5 16h2v1H5a5 5 0 0 1-1.934-9.611 3.21 3.21 0 0 1 1.422-2.025 3.17 3.17 0 0 1 1.702-.493 3.269 3.269 0 0 1 1.446.34 6.293 6.293 0 0 1 12.143 1.867A4.988 4.988 0 0 1 24 12zm-5.437 7.5l-4.016 2.342-4.015-2.342.587-.342-.993-.579-1.578.92 6 3.501 6-3.5-1.579-.92-.992.578zm1.985-3l-1.579-.92-.992.578.586.342-4.016 2.342-4.015-2.342.587-.342-.993-.579-1.578.921 6 3.5zm-12-3l6-3.5 6 3.5-6 3.5zm6 2.342l4.015-2.342-4.016-2.343-4.015 2.343z"/>`,
34
35
  `<path d="M4 4H3v1h2V2h1v20H5v-1H4v2h18V1H4zm3-2h14v20H7zM5 20H3v-1h1v-1h1zm0-6H3v-1h1v-1h1zm0-6H3V7h1V6h1zm0 3H3v-1h1V9h1zm0 6H3v-1h1v-1h1zm10.5-5h-3A3.504 3.504 0 0 0 9 15.5V18h10v-2.5a3.504 3.504 0 0 0-3.5-3.5zm2.5 5h-8v-1.5a2.503 2.503 0 0 1 2.5-2.5h3a2.503 2.503 0 0 1 2.5 2.5zm-4-6a3 3 0 1 0-3-3 3.003 3.003 0 0 0 3 3zm0-5a2 2 0 1 1-2 2 2.002 2.002 0 0 1 2-2z"/>`
35
36
  ];
37
+ this.files = [
38
+ '../../../res/icon.svg',
39
+ '../../../res/r-1.svg',
40
+ '../../../res/r-2.svg'
41
+ ];
36
42
  this.color = undefined;
37
43
  }
38
44
  get layout() {
39
- return this.layouts[this.i];
45
+ return this.i >= 3 ? '' : this.layouts[this.i];
46
+ }
47
+ get file() {
48
+ return this.f >= 3 ? '' : this.files[this.f];
40
49
  }
41
50
  }
42
51
  exports.default = default_1;
@@ -1,6 +1,8 @@
1
1
  <form title="Svg" width="400" height="450" min-width="400" min-height="400" padding="10" direction="v">
2
- <layout align-v="center" align-h="center" style="flex: 1;" :style="{'fill': color}">
3
- <svg :layout="layout" style="width: 64px; height: 64px;" />
2
+ <label>Shape: {{layout ? layout.slice(0, 30) + '...' : ''}}</label>
3
+ <label style="margin-top: 10px;">File: {{file ? file : ''}}</label>
4
+ <layout align-v="center" align-h="center" style="margin-top: 10px; flex: 1;" :style="{'fill': color}">
5
+ <svg :layout="layout" :src="file" style="width: 64px; height: 64px;" />
4
6
  </layout>
5
7
  <layout gutter="10" style="margin-top: 10px;">
6
8
  <button @click="color = undefined" style="padding: 0 10px; flex: 1; width: 0; height: 30px;">Default</button>
@@ -11,5 +13,12 @@
11
13
  <button @click="i = 0" style="padding: 0 10px; flex: 1; width: 0; height: 30px;">Shape 0</button>
12
14
  <button @click="i = 1" style="padding: 0 10px; flex: 1; width: 0; height: 30px;">1</button>
13
15
  <button @click="i = 2" style="padding: 0 10px; flex: 1; width: 0; height: 30px;">2</button>
16
+ <button @click="i = 3" style="padding: 0 10px; flex: 1; width: 0; height: 30px;">None</button>
17
+ </layout>
18
+ <layout gutter="10" style="margin-top: 10px;">
19
+ <button @click="f = 0" style="padding: 0 10px; flex: 1; width: 0; height: 30px;">File 0</button>
20
+ <button @click="f = 1" style="padding: 0 10px; flex: 1; width: 0; height: 30px;">1</button>
21
+ <button @click="f = 2" style="padding: 0 10px; flex: 1; width: 0; height: 30px;">2</button>
22
+ <button @click="f = 3" style="padding: 0 10px; flex: 1; width: 0; height: 30px;">None</button>
14
23
  </layout>
15
24
  </form>
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.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.3.3';
27
+ const version = '3.3.4';
28
28
  function getVersion() {
29
29
  return version;
30
30
  }
package/dist/clickgo.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- const version = '3.3.3';
16
+ const version = '3.3.4';
17
17
  export function getVersion(): string {
18
18
  return version;
19
19
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.3.3",
3
+ "version": "3.3.4",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",