@opentiny/tiny-engine-toolbar-breadcrumb 2.4.1 → 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 +23 -23
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import "./style.css";
2
- import { reactive as S, computed as h, resolveComponent as l, createBlock as p, openBlock as i, withCtx as m, createElementVNode as f, createVNode as C, createCommentVNode as v, normalizeClass as E, createElementBlock as N, Fragment as O, renderList as A, createTextVNode as D, toDisplayString as I, ref as L } from "vue";
2
+ import { reactive as D, computed as h, resolveComponent as l, createBlock as p, openBlock as i, withCtx as m, createElementVNode as f, createVNode as C, createCommentVNode as v, normalizeClass as E, createElementBlock as N, Fragment as O, renderList as I, createTextVNode as S, toDisplayString as A, ref as L } from "vue";
3
3
  import { Button as K, BreadcrumbItem as P, Breadcrumb as X } from "@opentiny/vue";
4
4
  import { useLayout as x, useBreadcrumb as G, useBlock as B, HOOK_NAME as w } from "@opentiny/tiny-engine-meta-register";
5
- import { ToolbarBase as V, BlockDeployDialog as F } from "@opentiny/tiny-engine-common";
6
- const z = {
5
+ import { ToolbarBase as V, BlockDeployDialog as z } from "@opentiny/tiny-engine-common";
6
+ const M = {
7
7
  components: {
8
8
  TinyBreadcrumb: X,
9
9
  TinyBreadcrumbItem: P,
10
- BlockDeployDialog: F,
10
+ BlockDeployDialog: z,
11
11
  TinyButton: K,
12
12
  ToolbarBase: V
13
13
  },
@@ -21,55 +21,55 @@ const z = {
21
21
  const t = {
22
22
  PAGEID: "engine.plugins.appmanage",
23
23
  BLOCKID: "engine.plugins.blockmanage"
24
- }, { layoutState: o } = x(), { plugins: r } = o || {}, e = S({
24
+ }, { layoutState: o } = x(), { plugins: r } = o || {}, e = D({
25
25
  showDeployBlock: !1
26
- }), { CONSTANTS: c, getBreadcrumbData: k } = G(), s = k(), u = () => {
26
+ }), { CONSTANTS: c, getBreadcrumbData: k } = G(), s = k(), b = () => {
27
27
  e.showDeployBlock = !0;
28
- }, b = () => {
28
+ }, d = () => {
29
29
  r && (r.render = s.value[0] === c.PAGETEXT ? t.PAGEID : t.BLOCKID);
30
- }, d = h(() => {
30
+ }, u = h(() => {
31
31
  var a, n, g;
32
32
  return (g = (n = (a = B) == null ? void 0 : a()) == null ? void 0 : n.getCurrentBlock) == null ? void 0 : g.call(n);
33
33
  });
34
34
  return {
35
35
  breadcrumbData: s,
36
- publishBlock: u,
36
+ publishBlock: b,
37
37
  state: e,
38
38
  CONSTANTS: c,
39
- open: b,
40
- currentBlock: d,
39
+ open: d,
40
+ currentBlock: u,
41
41
  handleChangeSchema: (a) => {
42
42
  B().initBlock({ ...B().getCurrentBlock(), content: a });
43
43
  }
44
44
  };
45
45
  }
46
- }, M = (t, o) => {
46
+ }, U = (t, o) => {
47
47
  const r = t.__vccOpts || t;
48
48
  for (const [e, c] of o)
49
49
  r[e] = c;
50
50
  return r;
51
- }, U = { class: "top-panel-breadcrumb" };
52
- function j(t, o, r, e, c, k) {
53
- const s = l("tiny-breadcrumb-item"), u = l("tiny-breadcrumb"), b = l("tiny-button"), d = l("block-deploy-dialog"), T = l("toolbar-base");
51
+ }, j = { class: "top-panel-breadcrumb" };
52
+ function F(t, o, r, e, c, k) {
53
+ const s = l("tiny-breadcrumb-item"), b = l("tiny-breadcrumb"), d = l("tiny-button"), u = l("block-deploy-dialog"), T = l("toolbar-base");
54
54
  return i(), p(T, { options: r.options }, {
55
55
  default: m(() => {
56
56
  var a;
57
57
  return [
58
- f("div", U, [
58
+ f("div", j, [
59
59
  f("div", {
60
60
  class: E([
61
61
  "top-panel-breadcrumb-title",
62
62
  { "top-panel-breadcrumb-title-block": e.breadcrumbData[0] === e.CONSTANTS.BLOCKTEXT }
63
63
  ])
64
64
  }, [
65
- C(u, {
65
+ C(b, {
66
66
  separator: ":",
67
67
  onSelect: e.open
68
68
  }, {
69
69
  default: m(() => [
70
- (i(!0), N(O, null, A(e.breadcrumbData.slice(0, 2), (n) => (i(), p(s, { key: n }, {
70
+ (i(!0), N(O, null, I(e.breadcrumbData.slice(0, 2), (n) => (i(), p(s, { key: n }, {
71
71
  default: m(() => [
72
- D(I(n), 1)
72
+ S(A(n), 1)
73
73
  ]),
74
74
  _: 2
75
75
  }, 1024))), 128))
@@ -77,7 +77,7 @@ function j(t, o, r, e, c, k) {
77
77
  _: 1
78
78
  }, 8, ["onSelect"])
79
79
  ], 2),
80
- e.breadcrumbData[0] === e.CONSTANTS.BLOCKTEXT && ((a = e.currentBlock) != null && a.id) ? (i(), p(b, {
80
+ e.breadcrumbData[0] === e.CONSTANTS.BLOCKTEXT && ((a = e.currentBlock) != null && a.id) ? (i(), p(d, {
81
81
  key: 0,
82
82
  class: "publish",
83
83
  onClick: o[0] || (o[0] = (n) => e.publishBlock()),
@@ -85,12 +85,12 @@ function j(t, o, r, e, c, k) {
85
85
  size: "small"
86
86
  }, {
87
87
  default: m(() => o[2] || (o[2] = [
88
- D("发布区块 ")
88
+ S("发布区块 ")
89
89
  ])),
90
90
  _: 1
91
91
  })) : v("", !0)
92
92
  ]),
93
- C(d, {
93
+ C(u, {
94
94
  visible: e.state.showDeployBlock,
95
95
  "onUpdate:visible": o[1] || (o[1] = (n) => e.state.showDeployBlock = n),
96
96
  block: e.currentBlock,
@@ -101,7 +101,7 @@ function j(t, o, r, e, c, k) {
101
101
  _: 1
102
102
  }, 8, ["options"]);
103
103
  }
104
- const H = /* @__PURE__ */ M(z, [["render", j], ["__scopeId", "data-v-47dff162"]]), q = {
104
+ const H = /* @__PURE__ */ U(M, [["render", F], ["__scopeId", "data-v-47dff162"]]), q = {
105
105
  id: "engine.toolbars.breadcrumb",
106
106
  type: "toolbars",
107
107
  title: "breadcrumb",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-toolbar-breadcrumb",
3
- "version": "2.4.1",
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",
29
- "@opentiny/tiny-engine-meta-register": "2.4.1",
30
- "@opentiny/tiny-engine-utils": "2.4.1"
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",
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": "5a3c6f536a46e25338800e9fe4c72c12e0c32bc5"
42
+ "gitHead": "3c5679965e80e59a8083fe629086e42b7b5dde36"
43
43
  }