@opentiny/tiny-engine-toolbar-breadcrumb 2.3.1 → 2.4.0
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.js +31 -33
- package/dist/style.css +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { resolveComponent as l, createBlock as p, openBlock as i, withCtx as m, createElementVNode as
|
|
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";
|
|
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
|
|
6
|
-
const
|
|
7
|
-
const r = t.__vccOpts || t;
|
|
8
|
-
for (const [e, c] of o)
|
|
9
|
-
r[e] = c;
|
|
10
|
-
return r;
|
|
11
|
-
}, U = {
|
|
5
|
+
import { ToolbarBase as V, BlockDeployDialog as F } from "@opentiny/tiny-engine-common";
|
|
6
|
+
const z = {
|
|
12
7
|
components: {
|
|
13
8
|
TinyBreadcrumb: X,
|
|
14
9
|
TinyBreadcrumbItem: P,
|
|
15
|
-
BlockDeployDialog:
|
|
10
|
+
BlockDeployDialog: F,
|
|
16
11
|
TinyButton: K,
|
|
17
12
|
ToolbarBase: V
|
|
18
13
|
},
|
|
@@ -26,50 +21,55 @@ const M = (t, o) => {
|
|
|
26
21
|
const t = {
|
|
27
22
|
PAGEID: "engine.plugins.appmanage",
|
|
28
23
|
BLOCKID: "engine.plugins.blockmanage"
|
|
29
|
-
}, { layoutState: o } = x(), { plugins: r } = o || {}, e =
|
|
24
|
+
}, { layoutState: o } = x(), { plugins: r } = o || {}, e = S({
|
|
30
25
|
showDeployBlock: !1
|
|
31
|
-
}), { CONSTANTS: c, getBreadcrumbData: k } = G(), s = k(),
|
|
26
|
+
}), { CONSTANTS: c, getBreadcrumbData: k } = G(), s = k(), u = () => {
|
|
32
27
|
e.showDeployBlock = !0;
|
|
33
|
-
},
|
|
28
|
+
}, b = () => {
|
|
34
29
|
r && (r.render = s.value[0] === c.PAGETEXT ? t.PAGEID : t.BLOCKID);
|
|
35
|
-
},
|
|
30
|
+
}, d = h(() => {
|
|
36
31
|
var a, n, g;
|
|
37
32
|
return (g = (n = (a = B) == null ? void 0 : a()) == null ? void 0 : n.getCurrentBlock) == null ? void 0 : g.call(n);
|
|
38
33
|
});
|
|
39
34
|
return {
|
|
40
35
|
breadcrumbData: s,
|
|
41
|
-
publishBlock:
|
|
36
|
+
publishBlock: u,
|
|
42
37
|
state: e,
|
|
43
38
|
CONSTANTS: c,
|
|
44
|
-
open:
|
|
45
|
-
currentBlock:
|
|
39
|
+
open: b,
|
|
40
|
+
currentBlock: d,
|
|
46
41
|
handleChangeSchema: (a) => {
|
|
47
42
|
B().initBlock({ ...B().getCurrentBlock(), content: a });
|
|
48
43
|
}
|
|
49
44
|
};
|
|
50
45
|
}
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
}, M = (t, o) => {
|
|
47
|
+
const r = t.__vccOpts || t;
|
|
48
|
+
for (const [e, c] of o)
|
|
49
|
+
r[e] = c;
|
|
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");
|
|
54
54
|
return i(), p(T, { options: r.options }, {
|
|
55
55
|
default: m(() => {
|
|
56
56
|
var a;
|
|
57
57
|
return [
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
class:
|
|
58
|
+
f("div", U, [
|
|
59
|
+
f("div", {
|
|
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
|
-
|
|
65
|
+
C(u, {
|
|
66
66
|
separator: ":",
|
|
67
67
|
onSelect: e.open
|
|
68
68
|
}, {
|
|
69
69
|
default: m(() => [
|
|
70
|
-
(i(!0),
|
|
70
|
+
(i(!0), N(O, null, A(e.breadcrumbData.slice(0, 2), (n) => (i(), p(s, { key: n }, {
|
|
71
71
|
default: m(() => [
|
|
72
|
-
|
|
72
|
+
D(I(n), 1)
|
|
73
73
|
]),
|
|
74
74
|
_: 2
|
|
75
75
|
}, 1024))), 128))
|
|
@@ -77,7 +77,7 @@ function F(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(
|
|
80
|
+
e.breadcrumbData[0] === e.CONSTANTS.BLOCKTEXT && ((a = e.currentBlock) != null && a.id) ? (i(), p(b, {
|
|
81
81
|
key: 0,
|
|
82
82
|
class: "publish",
|
|
83
83
|
onClick: o[0] || (o[0] = (n) => e.publishBlock()),
|
|
@@ -85,12 +85,12 @@ function F(t, o, r, e, c, k) {
|
|
|
85
85
|
size: "small"
|
|
86
86
|
}, {
|
|
87
87
|
default: m(() => o[2] || (o[2] = [
|
|
88
|
-
|
|
88
|
+
D("发布区块 ")
|
|
89
89
|
])),
|
|
90
90
|
_: 1
|
|
91
|
-
})) :
|
|
91
|
+
})) : v("", !0)
|
|
92
92
|
]),
|
|
93
|
-
|
|
93
|
+
C(d, {
|
|
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 F(t, o, r, e, c, k) {
|
|
|
101
101
|
_: 1
|
|
102
102
|
}, 8, ["options"]);
|
|
103
103
|
}
|
|
104
|
-
const H = /* @__PURE__ */ M(
|
|
104
|
+
const H = /* @__PURE__ */ M(z, [["render", j], ["__scopeId", "data-v-47dff162"]]), q = {
|
|
105
105
|
id: "engine.toolbars.breadcrumb",
|
|
106
106
|
type: "toolbars",
|
|
107
107
|
title: "breadcrumb",
|
|
@@ -111,9 +111,7 @@ const H = /* @__PURE__ */ M(U, [["render", F], ["__scopeId", "data-v-53e9cfc6"]]
|
|
|
111
111
|
},
|
|
112
112
|
renderType: "slot"
|
|
113
113
|
}
|
|
114
|
-
}
|
|
115
|
-
let _ = L([]);
|
|
116
|
-
const y = {
|
|
114
|
+
}, _ = L([]), y = {
|
|
117
115
|
PAGETEXT: "页面",
|
|
118
116
|
BLOCKTEXT: "区块"
|
|
119
117
|
}, J = (t) => {
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.top-panel-breadcrumb[data-v-
|
|
1
|
+
.top-panel-breadcrumb[data-v-47dff162]{padding-left:12px;box-sizing:border-box;display:flex;justify-content:flex-start;align-items:center;width:auto;height:100%;margin-right:3px;cursor:pointer}.top-panel-breadcrumb-title[data-v-47dff162]{height:28px;padding:0 8px;background-color:var(--te-toolbars-breadcrumb-bg-color);display:flex;border-radius:4px}.top-panel-breadcrumb-title[data-v-47dff162] .reference-wrapper{line-height:22px}.top-panel-breadcrumb .tiny-breadcrumb[data-v-47dff162]{line-height:var(--base-top-panel-breadcrumb-line-height);padding-right:4px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:12px;cursor:inherit}.top-panel-breadcrumb .tiny-breadcrumb__item[data-v-47dff162]{cursor:inherit;-webkit-user-select:none;user-select:none}.top-panel-breadcrumb .tiny-breadcrumb__item[data-v-47dff162] .tiny-breadcrumb__inner{color:var(--te-toolbars-breadcrumb-text-color);text-decoration:none;cursor:pointer}.top-panel-breadcrumb .tiny-breadcrumb__item[data-v-47dff162] .tiny-breadcrumb__separator{padding:0;margin:0 4px 0 0}.top-panel-breadcrumb .tiny-breadcrumb__item[data-v-47dff162]:last-child .tiny-breadcrumb__inner{font-weight:400;color:var(--te-toolbars-breadcrumb-text-color)}.top-panel-breadcrumb-title-block[data-v-47dff162]{background-color:var(--te-toolbars-breadcrumb-block-bg-color)}.top-panel-breadcrumb-title-block .tiny-breadcrumb__item[data-v-47dff162] .tiny-breadcrumb__inner{color:var(--te-toolbars-breadcrumb-block-text-color)}.top-panel-breadcrumb-title-block .tiny-breadcrumb__item[data-v-47dff162]:last-child .tiny-breadcrumb__inner{color:var(--te-toolbars-breadcrumb-block-text-color)}.top-panel-breadcrumb-title-block[data-v-47dff162]:hover{background-color:var(--te-toolbars-breadcrumb-block-bg-color-hover)}.top-panel-breadcrumb .publish[data-v-47dff162]{margin:0 8px;height:24px;line-height:24px;min-width:40px;font-size:12px}:root{--te-toolbars-breadcrumb-bg-color: var(--te-common-bg-prompt);--te-toolbars-breadcrumb-block-bg-color: var(--te-common-color-prompt-secondary);--te-toolbars-breadcrumb-block-bg-color-hover: var(--te-common-bg-purple-hover);--te-toolbars-breadcrumb-text-color: var(--te-common-text-primary);--te-toolbars-breadcrumb-block-text-color: var(--te-common-text-purple)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/tiny-engine-toolbar-breadcrumb",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
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.
|
|
29
|
-
"@opentiny/tiny-engine-meta-register": "2.
|
|
30
|
-
"@opentiny/tiny-engine-utils": "2.
|
|
28
|
+
"@opentiny/tiny-engine-common": "2.4.0",
|
|
29
|
+
"@opentiny/tiny-engine-meta-register": "2.4.0",
|
|
30
|
+
"@opentiny/tiny-engine-utils": "2.4.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@opentiny/tiny-engine-vite-plugin-meta-comments": "2.
|
|
33
|
+
"@opentiny/tiny-engine-vite-plugin-meta-comments": "2.4.0",
|
|
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": "
|
|
42
|
+
"gitHead": "477aa411da11a4f95712e3e5c251d97cae23f4ad"
|
|
43
43
|
}
|