@opentiny/tiny-engine-toolbar-breadcrumb 2.2.0 → 2.3.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 +17 -17
- package/dist/style.css +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { resolveComponent as l, createBlock as p, openBlock as i, withCtx as m, createElementVNode as C, createVNode as f, createCommentVNode as D, normalizeClass as h, createElementBlock as v, Fragment as E, renderList as N, createTextVNode as S, toDisplayString as O, reactive as I, computed as A, ref as L } from "vue";
|
|
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 {
|
|
5
|
+
import { ToolbarBase as V, BlockDeployDialog as z } from "@opentiny/tiny-engine-common";
|
|
6
6
|
const M = (t, o) => {
|
|
7
7
|
const r = t.__vccOpts || t;
|
|
8
8
|
for (const [e, c] of o)
|
|
@@ -10,11 +10,11 @@ const M = (t, o) => {
|
|
|
10
10
|
return r;
|
|
11
11
|
}, U = {
|
|
12
12
|
components: {
|
|
13
|
-
TinyBreadcrumb:
|
|
13
|
+
TinyBreadcrumb: X,
|
|
14
14
|
TinyBreadcrumbItem: P,
|
|
15
|
-
BlockDeployDialog:
|
|
16
|
-
TinyButton:
|
|
17
|
-
ToolbarBase:
|
|
15
|
+
BlockDeployDialog: z,
|
|
16
|
+
TinyButton: K,
|
|
17
|
+
ToolbarBase: V
|
|
18
18
|
},
|
|
19
19
|
props: {
|
|
20
20
|
options: {
|
|
@@ -26,13 +26,13 @@ const M = (t, o) => {
|
|
|
26
26
|
const t = {
|
|
27
27
|
PAGEID: "engine.plugins.appmanage",
|
|
28
28
|
BLOCKID: "engine.plugins.blockmanage"
|
|
29
|
-
}, { layoutState: o } = x(), { plugins: r } = o || {}, e =
|
|
29
|
+
}, { layoutState: o } = x(), { plugins: r } = o || {}, e = I({
|
|
30
30
|
showDeployBlock: !1
|
|
31
31
|
}), { CONSTANTS: c, getBreadcrumbData: k } = G(), s = k(), b = () => {
|
|
32
32
|
e.showDeployBlock = !0;
|
|
33
33
|
}, d = () => {
|
|
34
34
|
r && (r.render = s.value[0] === c.PAGETEXT ? t.PAGEID : t.BLOCKID);
|
|
35
|
-
}, u =
|
|
35
|
+
}, u = A(() => {
|
|
36
36
|
var a, n, g;
|
|
37
37
|
return (g = (n = (a = B) == null ? void 0 : a()) == null ? void 0 : n.getCurrentBlock) == null ? void 0 : g.call(n);
|
|
38
38
|
});
|
|
@@ -57,19 +57,19 @@ function F(t, o, r, e, c, k) {
|
|
|
57
57
|
return [
|
|
58
58
|
C("div", j, [
|
|
59
59
|
C("div", {
|
|
60
|
-
class:
|
|
60
|
+
class: h([
|
|
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
|
+
f(b, {
|
|
66
66
|
separator: ":",
|
|
67
67
|
onSelect: e.open
|
|
68
68
|
}, {
|
|
69
69
|
default: m(() => [
|
|
70
|
-
(i(!0), E
|
|
70
|
+
(i(!0), v(E, null, N(e.breadcrumbData.slice(0, 2), (n) => (i(), p(s, { key: n }, {
|
|
71
71
|
default: m(() => [
|
|
72
|
-
|
|
72
|
+
S(O(n), 1)
|
|
73
73
|
]),
|
|
74
74
|
_: 2
|
|
75
75
|
}, 1024))), 128))
|
|
@@ -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
|
+
S("发布区块 ")
|
|
89
89
|
])),
|
|
90
90
|
_: 1
|
|
91
|
-
})) :
|
|
91
|
+
})) : D("", !0)
|
|
92
92
|
]),
|
|
93
|
-
|
|
93
|
+
f(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 F(t, o, r, e, c, k) {
|
|
|
101
101
|
_: 1
|
|
102
102
|
}, 8, ["options"]);
|
|
103
103
|
}
|
|
104
|
-
const H = /* @__PURE__ */ M(U, [["render", F], ["__scopeId", "data-v-
|
|
104
|
+
const H = /* @__PURE__ */ M(U, [["render", F], ["__scopeId", "data-v-53e9cfc6"]]), q = {
|
|
105
105
|
id: "engine.toolbars.breadcrumb",
|
|
106
106
|
type: "toolbars",
|
|
107
107
|
title: "breadcrumb",
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.top-panel-breadcrumb[data-v-
|
|
1
|
+
.top-panel-breadcrumb[data-v-53e9cfc6]{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-53e9cfc6]{height:28px;padding:0 8px;background-color:var(--te-toolbars-breadcrumb-bg-color);display:flex;border-radius:4px}.top-panel-breadcrumb-title[data-v-53e9cfc6] .reference-wrapper{line-height:22px}.top-panel-breadcrumb .tiny-breadcrumb[data-v-53e9cfc6]{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-53e9cfc6]{cursor:inherit;-webkit-user-select:none;user-select:none}.top-panel-breadcrumb .tiny-breadcrumb__item[data-v-53e9cfc6] .tiny-breadcrumb__inner{color:var(--te-toolbars-breadcrumb-text-color);text-decoration:none;cursor:pointer}.top-panel-breadcrumb .tiny-breadcrumb__item[data-v-53e9cfc6] .tiny-breadcrumb__separator{padding:0;margin:0 4px 0 0}.top-panel-breadcrumb .tiny-breadcrumb__item[data-v-53e9cfc6]:last-child .tiny-breadcrumb__inner{font-weight:400;color:var(--te-toolbars-breadcrumb-text-color)}.top-panel-breadcrumb-title-block[data-v-53e9cfc6]{background-color:var(--te-toolbars-breadcrumb-block-bg-color)}.top-panel-breadcrumb-title-block .tiny-breadcrumb__item[data-v-53e9cfc6] .tiny-breadcrumb__inner{color:var(--te-toolbars-breadcrumb-block-text-color)}.top-panel-breadcrumb-title-block .tiny-breadcrumb__item[data-v-53e9cfc6]:last-child .tiny-breadcrumb__inner{color:var(--te-toolbars-breadcrumb-block-text-color)}.top-panel-breadcrumb-title-block[data-v-53e9cfc6]:hover{background-color:var(--te-toolbars-breadcrumb-block-bg-color-hover)}.top-panel-breadcrumb .publish[data-v-53e9cfc6]{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.3.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -25,19 +25,19 @@
|
|
|
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.3.0",
|
|
29
|
+
"@opentiny/tiny-engine-meta-register": "2.3.0",
|
|
30
|
+
"@opentiny/tiny-engine-utils": "2.3.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@opentiny/tiny-engine-vite-plugin-meta-comments": "2.
|
|
33
|
+
"@opentiny/tiny-engine-vite-plugin-meta-comments": "2.3.0",
|
|
34
34
|
"@vitejs/plugin-vue": "^5.1.2",
|
|
35
35
|
"@vitejs/plugin-vue-jsx": "^4.0.1",
|
|
36
36
|
"vite": "^5.4.2"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@opentiny/vue": "^3.
|
|
39
|
+
"@opentiny/vue": "^3.20.0",
|
|
40
40
|
"vue": "^3.4.15"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "330c4d2b319d5b5ba6ad64c270c21a7931a2e400"
|
|
43
43
|
}
|