@opentiny/tiny-engine-toolbar-setting 2.4.1-rc.0 → 2.4.2

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 (2) hide show
  1. package/dist/index.js +27 -27
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { useCanvas as B, useBlock as P, usePage as k, useLayout as y, useModal as S, useNotify as b } from "@opentiny/tiny-engine-meta-register";
1
+ import { useCanvas as P, useBlock as k, usePage as y, useLayout as S, useModal as B, useNotify as b } from "@opentiny/tiny-engine-meta-register";
2
2
  import { constants as A } from "@opentiny/tiny-engine-utils";
3
3
  import { ToolbarBase as C } from "@opentiny/tiny-engine-common";
4
- import { resolveComponent as E, createBlock as v, openBlock as x } from "vue";
4
+ import { resolveComponent as v, createBlock as x, openBlock as h } from "vue";
5
5
  const {
6
- PAGE_STATUS: h
7
- } = A, M = {
6
+ PAGE_STATUS: M
7
+ } = A, T = {
8
8
  components: {
9
9
  ToolbarBase: C
10
10
  },
@@ -18,26 +18,26 @@ const {
18
18
  const {
19
19
  pageState: s,
20
20
  isBlock: a
21
- } = B(), {
22
- getCurrentBlock: t
23
21
  } = P(), {
22
+ getCurrentBlock: t
23
+ } = k(), {
24
24
  initCurrentPageData: n,
25
25
  isChangePageData: c
26
- } = k(), {
27
- PLUGIN_NAME: u,
28
- activePlugin: i,
29
- layoutState: g,
30
- isEmptyPage: l
31
26
  } = y(), {
27
+ PLUGIN_NAME: p,
28
+ activePlugin: i,
29
+ layoutState: l,
30
+ isEmptyPage: u
31
+ } = S(), {
32
32
  confirm: m,
33
33
  message: f
34
- } = S(), d = () => {
35
- i(u.BlockManage).then((e) => {
34
+ } = B(), d = () => {
35
+ i(p.BlockManage).then((e) => {
36
36
  e.openSettingPanel({
37
37
  item: t()
38
38
  });
39
39
  });
40
- }, p = async (e) => {
40
+ }, g = async (e) => {
41
41
  const {
42
42
  currentPage: r
43
43
  } = s;
@@ -48,31 +48,31 @@ const {
48
48
  var r;
49
49
  const {
50
50
  pageStatus: e
51
- } = g;
52
- if (e.state === h.Lock) {
51
+ } = l;
52
+ if (e.state === M.Lock) {
53
53
  const o = ((r = e.data) == null ? void 0 : r.username) || "";
54
54
  f({
55
55
  message: `您点击的页面被${o}锁定,暂时无法编辑,请联系解锁`
56
56
  });
57
57
  return;
58
58
  }
59
- i(u.AppManage).then((o) => {
59
+ i(p.AppManage).then((o) => {
60
60
  if (c()) {
61
61
  m({
62
62
  title: "提示",
63
63
  message: "当前页面尚未保存,是否要继续切换?",
64
64
  exec: () => {
65
- p(o);
65
+ g(o);
66
66
  }
67
67
  });
68
68
  return;
69
69
  }
70
- p(o);
70
+ g(o);
71
71
  });
72
72
  };
73
73
  return {
74
74
  openSetting: () => {
75
- if (l()) {
75
+ if (u()) {
76
76
  b({
77
77
  type: "warning",
78
78
  message: "请先创建页面"
@@ -88,22 +88,22 @@ const {
88
88
  isBlock: a
89
89
  };
90
90
  }
91
- }, T = (s, a) => {
91
+ }, D = (s, a) => {
92
92
  const t = s.__vccOpts || s;
93
93
  for (const [n, c] of a)
94
94
  t[n] = c;
95
95
  return t;
96
96
  };
97
- function D(s, a, t, n, c, u) {
98
- const i = E("toolbar-base");
99
- return x(), v(i, {
97
+ function E(s, a, t, n, c, p) {
98
+ const i = v("toolbar-base");
99
+ return h(), x(i, {
100
100
  content: n.isBlock() ? "区块设置" : "页面设置",
101
101
  icon: t.options.icon.default || t.options.icon,
102
102
  options: t.options,
103
103
  onClickApi: n.openSetting
104
104
  }, null, 8, ["content", "icon", "options", "onClickApi"]);
105
105
  }
106
- const I = /* @__PURE__ */ T(M, [["render", D]]), L = {
106
+ const I = /* @__PURE__ */ D(T, [["render", E]]), L = {
107
107
  id: "engine.toolbars.setting",
108
108
  title: "setting",
109
109
  type: "toolbars",
@@ -114,10 +114,10 @@ const I = /* @__PURE__ */ T(M, [["render", D]]), L = {
114
114
  renderType: "icon",
115
115
  collapsed: !0
116
116
  }
117
- }, U = {
117
+ }, j = {
118
118
  ...L,
119
119
  entry: I
120
120
  };
121
121
  export {
122
- U as default
122
+ j as default
123
123
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-toolbar-setting",
3
- "version": "2.4.1-rc.0",
3
+ "version": "2.4.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -25,12 +25,12 @@
25
25
  "license": "MIT",
26
26
  "homepage": "https://opentiny.design/tiny-engine",
27
27
  "dependencies": {
28
- "@opentiny/tiny-engine-common": "2.4.1-rc.0",
29
- "@opentiny/tiny-engine-meta-register": "2.4.1-rc.0",
30
- "@opentiny/tiny-engine-utils": "2.4.1-rc.0"
28
+ "@opentiny/tiny-engine-common": "2.4.2",
29
+ "@opentiny/tiny-engine-meta-register": "2.4.2",
30
+ "@opentiny/tiny-engine-utils": "2.4.2"
31
31
  },
32
32
  "devDependencies": {
33
- "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.4.1-rc.0",
33
+ "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.4.2",
34
34
  "@vitejs/plugin-vue": "^5.1.2",
35
35
  "@vitejs/plugin-vue-jsx": "^4.0.1",
36
36
  "vite": "^5.4.2"
@@ -39,5 +39,5 @@
39
39
  "@opentiny/vue": "^3.20.0",
40
40
  "vue": "^3.4.15"
41
41
  },
42
- "gitHead": "201b935708dc2d86ccdd8550d87cc30c12814822"
42
+ "gitHead": "3c5679965e80e59a8083fe629086e42b7b5dde36"
43
43
  }