jky-component-lib 0.0.36 → 0.0.37

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/umd/index.js CHANGED
@@ -826,6 +826,10 @@ img {
826
826
  margin-left: calc(var(--spacing) * 1);
827
827
  }
828
828
 
829
+ .ml-2 {
830
+ margin-left: calc(var(--spacing) * 2);
831
+ }
832
+
829
833
  .icon-\\[ant-design--menu-fold-outlined\\] {
830
834
  width: 1em;
831
835
  height: 1em;
@@ -1274,6 +1278,22 @@ img {
1274
1278
  mask-repeat: no-repeat;
1275
1279
  }
1276
1280
 
1281
+ .icon-\\[mdi--format-list-bulleted\\] {
1282
+ width: 1em;
1283
+ height: 1em;
1284
+ -webkit-mask-image: var(--svg);
1285
+ -webkit-mask-image: var(--svg);
1286
+ -webkit-mask-image: var(--svg);
1287
+ mask-image: var(--svg);
1288
+ --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M7 5h14v2H7zm0 8v-2h14v2zM4 4.5A1.5 1.5 0 0 1 5.5 6A1.5 1.5 0 0 1 4 7.5A1.5 1.5 0 0 1 2.5 6A1.5 1.5 0 0 1 4 4.5m0 6A1.5 1.5 0 0 1 5.5 12A1.5 1.5 0 0 1 4 13.5A1.5 1.5 0 0 1 2.5 12A1.5 1.5 0 0 1 4 10.5M7 19v-2h14v2zm-3-2.5A1.5 1.5 0 0 1 5.5 18A1.5 1.5 0 0 1 4 19.5A1.5 1.5 0 0 1 2.5 18A1.5 1.5 0 0 1 4 16.5'/%3E%3C/svg%3E");
1289
+ background-color: currentColor;
1290
+ display: inline-block;
1291
+ -webkit-mask-size: 100% 100%;
1292
+ mask-size: 100% 100%;
1293
+ -webkit-mask-repeat: no-repeat;
1294
+ mask-repeat: no-repeat;
1295
+ }
1296
+
1277
1297
  .icon-\\[ri--logout-circle-line\\] {
1278
1298
  width: 1em;
1279
1299
  height: 1em;
@@ -1590,7 +1610,7 @@ img {
1590
1610
  }
1591
1611
  /*$vite$:1*/`;
1592
1612
  document.head.appendChild(__vite_style__);
1593
- const version$1 = "0.0.36";
1613
+ const version$1 = "0.0.37";
1594
1614
  const INSTALLED_KEY = Symbol("INSTALLED_KEY");
1595
1615
  function createInstaller(components2 = []) {
1596
1616
  const install2 = (app, options) => {
@@ -1616,20 +1636,20 @@ img {
1616
1636
  });
1617
1637
  return main;
1618
1638
  }
1619
- const _hoisted_1$2 = ["disabled"];
1620
- const _hoisted_2$1 = {
1639
+ const _hoisted_1$3 = ["disabled"];
1640
+ const _hoisted_2$2 = {
1621
1641
  key: 0,
1622
1642
  class: "jky-button__loading"
1623
1643
  };
1624
- const _hoisted_3$1 = {
1644
+ const _hoisted_3$2 = {
1625
1645
  key: 0,
1626
1646
  class: "jky-button__icon"
1627
1647
  };
1628
- const _hoisted_4$1 = {
1648
+ const _hoisted_4$2 = {
1629
1649
  key: 1,
1630
1650
  class: "jky-button__icon"
1631
1651
  };
1632
- const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
1652
+ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
1633
1653
  name: "JkyButton"
1634
1654
  }), {
1635
1655
  __name: "Button",
@@ -1662,7 +1682,7 @@ img {
1662
1682
  disabled: __props.disabled || __props.loading,
1663
1683
  onClick: handleClick
1664
1684
  }, [
1665
- __props.loading ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$1, [..._cache[0] || (_cache[0] = [
1685
+ __props.loading ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$2, [..._cache[0] || (_cache[0] = [
1666
1686
  vue.createElementVNode("svg", {
1667
1687
  class: "loading-spinner",
1668
1688
  viewBox: "0 0 50 50"
@@ -1688,7 +1708,7 @@ img {
1688
1708
  ])
1689
1709
  ], -1)
1690
1710
  ])])) : __props.icon ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
1691
- __props.iconPosition === "prefix" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$1, [
1711
+ __props.iconPosition === "prefix" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$2, [
1692
1712
  vue.renderSlot(_ctx.$slots, "icon", {}, () => [
1693
1713
  vue.createElementVNode("span", {
1694
1714
  class: vue.normalizeClass(__props.icon)
@@ -1696,7 +1716,7 @@ img {
1696
1716
  ])
1697
1717
  ])) : vue.createCommentVNode("", true),
1698
1718
  vue.renderSlot(_ctx.$slots, "default"),
1699
- __props.iconPosition === "suffix" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$1, [
1719
+ __props.iconPosition === "suffix" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$2, [
1700
1720
  vue.renderSlot(_ctx.$slots, "icon", {}, () => [
1701
1721
  vue.createElementVNode("span", {
1702
1722
  class: vue.normalizeClass(__props.icon)
@@ -1707,13 +1727,13 @@ img {
1707
1727
  vue.renderSlot(_ctx.$slots, "icon"),
1708
1728
  vue.renderSlot(_ctx.$slots, "default")
1709
1729
  ], 64))
1710
- ], 10, _hoisted_1$2);
1730
+ ], 10, _hoisted_1$3);
1711
1731
  };
1712
1732
  }
1713
1733
  }));
1714
- const JkyButton = installWithSFC(_sfc_main$4);
1715
- const _hoisted_1$1 = { class: "jky-button-nav flex flex-wrap items-center gap-2" };
1716
- const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
1734
+ const JkyButton = installWithSFC(_sfc_main$5);
1735
+ const _hoisted_1$2 = { class: "jky-button-nav flex flex-wrap items-center gap-2" };
1736
+ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
1717
1737
  name: "JkyButtonNav"
1718
1738
  }), {
1719
1739
  __name: "ButtonNav",
@@ -1754,7 +1774,7 @@ img {
1754
1774
  }
1755
1775
  }
1756
1776
  return (_ctx, _cache) => {
1757
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
1777
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
1758
1778
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(visibleItems.value, (item) => {
1759
1779
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElButton), {
1760
1780
  key: item.value,
@@ -1834,8 +1854,8 @@ img {
1834
1854
  };
1835
1855
  }
1836
1856
  }));
1837
- const JkyButtonNav = installWithSFC(_sfc_main$3);
1838
- const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
1857
+ const JkyButtonNav = installWithSFC(_sfc_main$4);
1858
+ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
1839
1859
  name: "JkyMenu",
1840
1860
  inheritAttrs: false
1841
1861
  }), {
@@ -1922,34 +1942,112 @@ img {
1922
1942
  };
1923
1943
  }
1924
1944
  }));
1925
- const JkyMenu = installWithSFC(_sfc_main$2);
1926
- const _hoisted_1 = { class: "jky-page-header__container" };
1927
- const _hoisted_2 = {
1945
+ const JkyMenu = installWithSFC(_sfc_main$3);
1946
+ const _hoisted_1$1 = {
1928
1947
  key: 0,
1929
1948
  class: "jky-page-header__popover mr-2 h-full flex items-center text-white"
1930
1949
  };
1931
- const _hoisted_3 = { class: "grid grid-cols-3 gap-2 p-2" };
1932
- const _hoisted_4 = { class: "text-sm text-center" };
1933
- const _hoisted_5 = { class: "jky-page-header__left" };
1934
- const _hoisted_6 = ["src", "alt"];
1935
- const _hoisted_7 = {
1950
+ const _hoisted_2$1 = { class: "flex items-center" };
1951
+ const _hoisted_3$1 = {
1952
+ key: 0,
1953
+ class: "text-white ml-2"
1954
+ };
1955
+ const _hoisted_4$1 = { class: "grid grid-cols-3 gap-2 p-2" };
1956
+ const _hoisted_5$1 = { class: "text-sm text-center" };
1957
+ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
1958
+ __name: "PopoverMenu",
1959
+ props: {
1960
+ refIconClass: {},
1961
+ refName: {},
1962
+ menus: { default: () => [] },
1963
+ buttonClass: { default: "w-20 h-20" },
1964
+ elButtonClass: {},
1965
+ elButtonType: {},
1966
+ width: { default: 400 },
1967
+ trigger: { default: "click" },
1968
+ highlightCurrent: { type: Boolean, default: true }
1969
+ },
1970
+ setup(__props) {
1971
+ const props = __props;
1972
+ const popoverIndex = vue.ref("");
1973
+ function onPopoverButtonClick(item) {
1974
+ var _a;
1975
+ if (props.highlightCurrent) {
1976
+ popoverIndex.value = item.value;
1977
+ }
1978
+ (_a = item.onClick) == null ? void 0 : _a.call(item);
1979
+ }
1980
+ return (_ctx, _cache) => {
1981
+ var _a;
1982
+ return ((_a = __props.menus) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
1983
+ vue.createVNode(vue.unref(ElementPlus.ElPopover), {
1984
+ title: "菜单",
1985
+ placement: "bottom-start",
1986
+ class: "h-full",
1987
+ trigger: __props.trigger,
1988
+ width: __props.width
1989
+ }, {
1990
+ reference: vue.withCtx(() => [
1991
+ vue.createElementVNode("div", _hoisted_2$1, [
1992
+ vue.createElementVNode("span", {
1993
+ class: vue.normalizeClass(["icon-[ant-design--menu-fold-outlined] text-[white] text-2xl cursor-pointer hover:opacity-80", __props.refIconClass])
1994
+ }, null, 2),
1995
+ __props.refName ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$1, vue.toDisplayString(__props.refName), 1)) : vue.createCommentVNode("", true)
1996
+ ])
1997
+ ]),
1998
+ default: vue.withCtx(() => [
1999
+ vue.createElementVNode("div", _hoisted_4$1, [
2000
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.menus, (item) => {
2001
+ return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElButton), {
2002
+ key: item.value,
2003
+ disabled: item.disabled,
2004
+ class: vue.normalizeClass(["w-fit! h-fit! ml-0!", [__props.elButtonClass, item.elButtonClass]]),
2005
+ type: vue.unref(popoverIndex) === item.value ? "primary" : __props.elButtonType || "default",
2006
+ onClick: ($event) => onPopoverButtonClick(item)
2007
+ }, {
2008
+ default: vue.withCtx(() => [
2009
+ vue.createElementVNode("div", {
2010
+ class: vue.normalizeClass(["jky-page-header__popover-inner flex flex-col justify-around items-center", __props.buttonClass])
2011
+ }, [
2012
+ item.icon ? (vue.openBlock(), vue.createElementBlock("span", {
2013
+ key: 0,
2014
+ class: vue.normalizeClass(["text-xl mr-2", [item.icon]])
2015
+ }, null, 2)) : vue.createCommentVNode("", true),
2016
+ vue.createElementVNode("span", _hoisted_5$1, vue.toDisplayString(item.label), 1)
2017
+ ], 2)
2018
+ ]),
2019
+ _: 2
2020
+ }, 1032, ["disabled", "class", "type", "onClick"]);
2021
+ }), 128))
2022
+ ])
2023
+ ]),
2024
+ _: 1
2025
+ }, 8, ["trigger", "width"])
2026
+ ])) : vue.createCommentVNode("", true);
2027
+ };
2028
+ }
2029
+ });
2030
+ const _hoisted_1 = { class: "jky-page-header__container" };
2031
+ const _hoisted_2 = { class: "jky-page-header__left" };
2032
+ const _hoisted_3 = ["src", "alt"];
2033
+ const _hoisted_4 = {
1936
2034
  key: 1,
1937
2035
  class: "jky-page-header__title"
1938
2036
  };
1939
- const _hoisted_8 = { class: "jky-page-header__center" };
1940
- const _hoisted_9 = { class: "jky-page-header__right" };
1941
- const _hoisted_10 = { class: "jky-page-header__status-icons hidden md:flex" };
1942
- const _hoisted_11 = {
2037
+ const _hoisted_5 = { class: "jky-page-header__center" };
2038
+ const _hoisted_6 = { class: "jky-page-header__right" };
2039
+ const _hoisted_7 = { class: "jky-page-header__status-icons hidden md:flex" };
2040
+ const _hoisted_8 = {
1943
2041
  xmlns: "http://www.w3.org/2000/svg",
1944
2042
  style: { "color": "white" },
1945
2043
  fill: "none",
1946
2044
  viewBox: "0 0 24 24",
1947
2045
  stroke: "currentColor"
1948
2046
  };
1949
- const _hoisted_12 = { class: "jky-page-header__time hidden md:block" };
1950
- const _hoisted_13 = { class: "jky-page-header__user" };
1951
- const _hoisted_14 = ["src", "alt"];
1952
- const _hoisted_15 = {
2047
+ const _hoisted_9 = { class: "jky-page-header__time hidden md:block" };
2048
+ const _hoisted_10 = { class: "jky-page-header__user" };
2049
+ const _hoisted_11 = ["src", "alt"];
2050
+ const _hoisted_12 = {
1953
2051
  key: 0,
1954
2052
  class: "jky-page-header__username text-base hidden md:block"
1955
2053
  };
@@ -1967,6 +2065,8 @@ img {
1967
2065
  userName: {},
1968
2066
  userAvatar: {},
1969
2067
  popover: {},
2068
+ showMore: { type: Boolean },
2069
+ showPopover: { type: Boolean },
1970
2070
  showLogout: { type: Boolean },
1971
2071
  userDropdownItems: { default: () => [
1972
2072
  { label: "个人信息", value: "profile", icon: "icon-[heroicons--user]" },
@@ -1978,22 +2078,6 @@ img {
1978
2078
  setup(__props, { emit: __emit }) {
1979
2079
  const props = __props;
1980
2080
  const emit = __emit;
1981
- const popover = vue.computed(() => __spreadValues({
1982
- menus: [],
1983
- buttonClass: "w-20 h-20",
1984
- elButtonClass: "",
1985
- width: 400,
1986
- trigger: "click",
1987
- highlightCurrent: true
1988
- }, props.popover));
1989
- const popoverIndex = vue.ref("");
1990
- function onPopoverButtonClick(item) {
1991
- var _a;
1992
- if (popover.value.highlightCurrent) {
1993
- popoverIndex.value = item.value;
1994
- }
1995
- (_a = item.onClick) == null ? void 0 : _a.call(item);
1996
- }
1997
2081
  function handleCommand(command) {
1998
2082
  emit("command", command);
1999
2083
  }
@@ -2016,66 +2100,27 @@ img {
2016
2100
  return style;
2017
2101
  });
2018
2102
  return (_ctx, _cache) => {
2019
- var _a;
2103
+ var _a, _b, _c, _d;
2020
2104
  return vue.openBlock(), vue.createElementBlock("header", {
2021
2105
  class: "jky-page-header",
2022
- style: vue.normalizeStyle([backgroundStyle.value, { height: heightValue.value }])
2106
+ style: vue.normalizeStyle([vue.unref(backgroundStyle), { height: vue.unref(heightValue) }])
2023
2107
  }, [
2024
2108
  vue.createElementVNode("div", _hoisted_1, [
2025
- ((_a = popover.value.menus) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
2026
- vue.createVNode(vue.unref(ElementPlus.ElPopover), {
2027
- title: "菜单",
2028
- placement: "bottom-start",
2029
- class: "h-full",
2030
- trigger: popover.value.trigger,
2031
- width: popover.value.width
2032
- }, {
2033
- reference: vue.withCtx(() => [..._cache[1] || (_cache[1] = [
2034
- vue.createElementVNode("span", { class: "icon-[ant-design--menu-fold-outlined] text-[white] text-2xl cursor-pointer hover:opacity-80" }, null, -1)
2035
- ])]),
2036
- default: vue.withCtx(() => [
2037
- vue.createElementVNode("div", _hoisted_3, [
2038
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(popover.value.menus, (item) => {
2039
- return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElButton), {
2040
- key: item.value,
2041
- disabled: item.disabled,
2042
- class: vue.normalizeClass(["w-fit! h-fit! ml-0!", [popover.value.elButtonClass, item.elButtonClass]]),
2043
- type: vue.unref(popoverIndex) === item.value ? "primary" : popover.value.elButtonType || "default",
2044
- onClick: ($event) => onPopoverButtonClick(item)
2045
- }, {
2046
- default: vue.withCtx(() => [
2047
- vue.createElementVNode("div", {
2048
- class: vue.normalizeClass(["jky-page-header__popover-inner flex flex-col justify-around items-center", popover.value.buttonClass])
2049
- }, [
2050
- item.icon ? (vue.openBlock(), vue.createElementBlock("span", {
2051
- key: 0,
2052
- class: vue.normalizeClass(["text-xl mr-2", [item.icon]])
2053
- }, null, 2)) : vue.createCommentVNode("", true),
2054
- vue.createElementVNode("span", _hoisted_4, vue.toDisplayString(item.label), 1)
2055
- ], 2)
2056
- ]),
2057
- _: 2
2058
- }, 1032, ["disabled", "class", "type", "onClick"]);
2059
- }), 128))
2060
- ])
2061
- ]),
2062
- _: 1
2063
- }, 8, ["trigger", "width"])
2064
- ])) : vue.createCommentVNode("", true),
2065
- vue.createElementVNode("div", _hoisted_5, [
2109
+ __props.showPopover && ((_b = (_a = __props.popover) == null ? void 0 : _a.menus) == null ? void 0 : _b.length) ? (vue.openBlock(), vue.createBlock(_sfc_main$2, vue.normalizeProps(vue.mergeProps({ key: 0 }, __props.popover)), null, 16)) : vue.createCommentVNode("", true),
2110
+ vue.createElementVNode("div", _hoisted_2, [
2066
2111
  __props.logo ? (vue.openBlock(), vue.createElementBlock("img", {
2067
2112
  key: 0,
2068
2113
  src: __props.logo,
2069
2114
  alt: __props.title || "Logo",
2070
2115
  class: "jky-page-header__logo"
2071
- }, null, 8, _hoisted_6)) : vue.createCommentVNode("", true),
2072
- __props.title ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7, vue.toDisplayString(__props.title), 1)) : vue.createCommentVNode("", true)
2116
+ }, null, 8, _hoisted_3)) : vue.createCommentVNode("", true),
2117
+ __props.title ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4, vue.toDisplayString(__props.title), 1)) : vue.createCommentVNode("", true)
2073
2118
  ]),
2074
- vue.createElementVNode("div", _hoisted_8, [
2119
+ vue.createElementVNode("div", _hoisted_5, [
2075
2120
  vue.renderSlot(_ctx.$slots, "center")
2076
2121
  ]),
2077
- vue.createElementVNode("div", _hoisted_9, [
2078
- vue.createElementVNode("div", _hoisted_10, [
2122
+ vue.createElementVNode("div", _hoisted_6, [
2123
+ vue.createElementVNode("div", _hoisted_7, [
2079
2124
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.statusIcons, (icon, index) => {
2080
2125
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index }, [
2081
2126
  typeof icon.icon === "string" ? (vue.openBlock(), vue.createElementBlock("span", {
@@ -2139,7 +2184,7 @@ img {
2139
2184
  class: "jky-page-header__status-icon text-white"
2140
2185
  }, {
2141
2186
  default: vue.withCtx(() => [
2142
- (vue.openBlock(), vue.createElementBlock("svg", _hoisted_11, [..._cache[2] || (_cache[2] = [
2187
+ (vue.openBlock(), vue.createElementBlock("svg", _hoisted_8, [..._cache[1] || (_cache[1] = [
2143
2188
  vue.createElementVNode("path", {
2144
2189
  "stroke-linecap": "round",
2145
2190
  "stroke-linejoin": "round",
@@ -2153,11 +2198,16 @@ img {
2153
2198
  ]),
2154
2199
  _: 1
2155
2200
  })) : vue.createCommentVNode("", true),
2156
- vue.createElementVNode("div", _hoisted_12, [
2201
+ vue.createElementVNode("div", _hoisted_9, [
2157
2202
  vue.renderSlot(_ctx.$slots, "time", {}, () => [
2158
2203
  vue.createElementVNode("span", null, vue.toDisplayString((/* @__PURE__ */ new Date()).toLocaleString("zh-CN")), 1)
2159
2204
  ])
2160
2205
  ]),
2206
+ __props.showMore && ((_d = (_c = __props.popover) == null ? void 0 : _c.menus) == null ? void 0 : _d.length) ? (vue.openBlock(), vue.createBlock(_sfc_main$2, vue.mergeProps({
2207
+ key: 1,
2208
+ "ref-name": "更多",
2209
+ "ref-icon-class": "icon-[mdi--format-list-bulleted]"
2210
+ }, __props.popover), null, 16)) : vue.createCommentVNode("", true),
2161
2211
  vue.createVNode(vue.unref(ElementPlus.ElDropdown), {
2162
2212
  trigger: "hover",
2163
2213
  onCommand: handleCommand
@@ -2186,7 +2236,7 @@ img {
2186
2236
  })
2187
2237
  ]),
2188
2238
  default: vue.withCtx(() => [
2189
- vue.createElementVNode("div", _hoisted_13, [
2239
+ vue.createElementVNode("div", _hoisted_10, [
2190
2240
  vue.renderSlot(_ctx.$slots, "userIcon", {}, () => [
2191
2241
  __props.userAvatar ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElIcon), {
2192
2242
  key: 0,
@@ -2198,7 +2248,7 @@ img {
2198
2248
  src: __props.userAvatar,
2199
2249
  alt: __props.userName,
2200
2250
  class: "rounded-full"
2201
- }, null, 8, _hoisted_14)
2251
+ }, null, 8, _hoisted_11)
2202
2252
  ]),
2203
2253
  _: 1
2204
2254
  })) : (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElIcon), {
@@ -2206,22 +2256,22 @@ img {
2206
2256
  size: 24,
2207
2257
  class: "jky-page-header__avatar"
2208
2258
  }, {
2209
- default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
2259
+ default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
2210
2260
  vue.createElementVNode("span", { class: "icon-[heroicons--user]" }, null, -1)
2211
2261
  ])]),
2212
2262
  _: 1
2213
2263
  }))
2214
2264
  ]),
2215
- __props.userName ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_15, vue.toDisplayString(__props.userName), 1)) : vue.createCommentVNode("", true)
2265
+ __props.userName ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_12, vue.toDisplayString(__props.userName), 1)) : vue.createCommentVNode("", true)
2216
2266
  ])
2217
2267
  ]),
2218
2268
  _: 3
2219
2269
  }),
2220
2270
  __props.showLogout ? (vue.openBlock(), vue.createElementBlock("div", {
2221
- key: 1,
2271
+ key: 2,
2222
2272
  class: "jky-page-header__logout h-full flex items-center text-white",
2223
2273
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("logout"))
2224
- }, [..._cache[4] || (_cache[4] = [
2274
+ }, [..._cache[3] || (_cache[3] = [
2225
2275
  vue.createElementVNode("span", { class: "icon-[ri--logout-circle-line] mr-2" }, null, -1),
2226
2276
  vue.createElementVNode("span", null, "退出登录", -1)
2227
2277
  ])])) : vue.createCommentVNode("", true)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jky-component-lib",
3
3
  "type": "module",
4
- "version": "0.0.36",
4
+ "version": "0.0.37",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },