@otwb/ui 2.0.5 → 2.0.7
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 +29 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ const AppAccount = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
head: String,
|
|
21
21
|
showLogoutButton: {
|
|
22
22
|
type: Boolean,
|
|
23
|
-
default: !
|
|
23
|
+
default: !1
|
|
24
24
|
},
|
|
25
25
|
showChangePwd: {
|
|
26
26
|
type: Boolean,
|
|
@@ -51,18 +51,33 @@ const AppAccount = /* @__PURE__ */ defineComponent({
|
|
|
51
51
|
trigger: () => createVNode(NButton, {
|
|
52
52
|
quaternary: !0,
|
|
53
53
|
style: "--n-padding: 0 12px"
|
|
54
|
-
}, { default: () => [createVNode("div", { style: "display: flex; align-items: center; gap: 8px" }, [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
54
|
+
}, { default: () => [createVNode("div", { style: "display: flex; align-items: center; gap: 8px" }, [
|
|
55
|
+
createVNode(NAvatar, {
|
|
56
|
+
key: z.head ? "head" : "no-head",
|
|
57
|
+
src: z.head,
|
|
58
|
+
round: !0,
|
|
59
|
+
size: "small",
|
|
60
|
+
radix: .78,
|
|
61
|
+
color: "var(--color-primary-hover)"
|
|
62
|
+
}, {
|
|
63
|
+
fallback: () => G,
|
|
64
|
+
placeholder: () => G,
|
|
65
|
+
default: z.head ? void 0 : () => U.value
|
|
66
|
+
}),
|
|
67
|
+
createVNode("span", { style: "font-size: 14px" }, [z.username ?? ""]),
|
|
68
|
+
createVNode(NIcon, null, { default: () => [createVNode("svg", {
|
|
69
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
70
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
71
|
+
viewBox: "0 0 512 512"
|
|
72
|
+
}, [createVNode("path", {
|
|
73
|
+
fill: "none",
|
|
74
|
+
stroke: "currentColor",
|
|
75
|
+
"stroke-linecap": "round",
|
|
76
|
+
"stroke-linejoin": "round",
|
|
77
|
+
"stroke-width": "48",
|
|
78
|
+
d: "M112 184l144 144l144-144"
|
|
79
|
+
}, null)])] })
|
|
80
|
+
])] }),
|
|
66
81
|
default: () => {
|
|
67
82
|
let d = () => z.showChangePwd ? createVNode(NButton, {
|
|
68
83
|
quaternary: !0,
|
|
@@ -850,7 +865,7 @@ var AppTab = /* @__PURE__ */ defineComponent({
|
|
|
850
865
|
}, [createVNode("div", { style: "transition: width 300ms; overflow: hidden" }, [createVNode("div", {
|
|
851
866
|
ref: W,
|
|
852
867
|
style: ["display: flex; align-items: center; width: fit-content", J.value],
|
|
853
|
-
class: d.isCurrent ? "bg-[#
|
|
868
|
+
class: d.isCurrent ? "bg-[#F5F5F5]" : ""
|
|
854
869
|
}, [createVNode("span", {
|
|
855
870
|
class: "whitespace-nowrap",
|
|
856
871
|
style: q.value
|