@vtj/designer 0.8.8 → 0.8.9

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/dist/index.mjs CHANGED
@@ -12,10 +12,10 @@ import ms from "mockjs";
12
12
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
13
13
  * @name @vtj/designer
14
14
  * @author CHC chenhuachun1549@dingtalk.com
15
- * @version 0.8.8
15
+ * @version 0.8.9
16
16
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
17
17
  */
18
- const vs = "0.8.8", Rt = {
18
+ const vs = "0.8.9", Rt = {
19
19
  width: 390,
20
20
  height: 844
21
21
  }, Tt = {
@@ -6560,7 +6560,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6560
6560
  name: "logo",
6561
6561
  editor: Vt,
6562
6562
  props: { attachment: { accept: ".png,.jpg,.jpeg" } }
6563
- }, null, 8, ["props"]),
6563
+ }),
6564
6564
  p(t(I), {
6565
6565
  label: "主题切换",
6566
6566
  name: "themeSwitchable",
@@ -8113,7 +8113,7 @@ class Ni {
8113
8113
  const l = Object.values(this.widgets);
8114
8114
  return e ? l.filter(
8115
8115
  (a) => a.region === e && (!n || n && n === a.group)
8116
- ) : l;
8116
+ ).map((a, s) => (a.order = a.order ?? s, a)).sort((a, s) => (a.order ?? 0) - (s.order ?? 0)) : l;
8117
8117
  }
8118
8118
  }
8119
8119
  const jn = new Ni();
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@vtj/designer",
3
3
  "private": false,
4
- "version": "0.8.8",
4
+ "version": "0.8.9",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "mockjs": "~1.1.0",
8
8
  "monaco-editor": "~0.48.0",
9
- "@vtj/core": "~0.8.8",
10
- "@vtj/icons": "~0.8.8",
11
- "@vtj/renderer": "~0.8.8",
12
- "@vtj/ui": "~0.8.8",
13
- "@vtj/utils": "~0.8.8"
9
+ "@vtj/core": "~0.8.9",
10
+ "@vtj/icons": "~0.8.9",
11
+ "@vtj/ui": "~0.8.9",
12
+ "@vtj/renderer": "~0.8.9",
13
+ "@vtj/utils": "~0.8.9"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/mockjs": "~1.0.10",
@@ -50,6 +50,10 @@ export interface Widget {
50
50
  * 分组名称
51
51
  */
52
52
  group?: string;
53
+ /**
54
+ * 排序
55
+ */
56
+ order?: number;
53
57
  }
54
58
  /**
55
59
  * App类型器件
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/designer
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.8.7
5
+ * @version 0.8.8
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.8.7";
8
+ export declare const version = "0.8.8";