jky-component-lib 0.0.18 → 0.0.19

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.
@@ -1,4 +1,4 @@
1
- const version = "0.0.18";
1
+ const version = "0.0.19";
2
2
  export {
3
3
  version
4
4
  };
@@ -19,6 +19,7 @@ declare function __VLS_template(): {
19
19
  slots: {
20
20
  center?(_: {}): any;
21
21
  time?(_: {}): any;
22
+ userIcon?(_: {}): any;
22
23
  };
23
24
  refs: {};
24
25
  rootEl: HTMLElement;
@@ -40,7 +40,7 @@ const _hoisted_9 = { class: "jky-page-header__time hidden md:block" };
40
40
  const _hoisted_10 = { class: "jky-page-header__user" };
41
41
  const _hoisted_11 = ["src", "alt"];
42
42
  const _hoisted_12 = {
43
- key: 2,
43
+ key: 0,
44
44
  class: "jky-page-header__username hidden md:block"
45
45
  };
46
46
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
@@ -224,33 +224,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
224
224
  ]),
225
225
  default: withCtx(() => [
226
226
  createElementVNode("div", _hoisted_10, [
227
- __props.userAvatar ? (openBlock(), createBlock(unref(ElIcon), {
228
- key: 0,
229
- size: 32,
230
- class: "jky-page-header__avatar"
231
- }, {
232
- default: withCtx(() => [
233
- createElementVNode("img", {
234
- src: __props.userAvatar,
235
- alt: __props.userName,
236
- class: "rounded-full"
237
- }, null, 8, _hoisted_11)
238
- ]),
239
- _: 1
240
- })) : (openBlock(), createBlock(unref(ElIcon), {
241
- key: 1,
242
- size: 32,
243
- class: "jky-page-header__avatar"
244
- }, {
245
- default: withCtx(() => [..._cache[1] || (_cache[1] = [
246
- createElementVNode("span", { class: "icon-[heroicons--user]" }, null, -1)
247
- ])]),
248
- _: 1
249
- })),
227
+ renderSlot(_ctx.$slots, "userIcon", {}, () => [
228
+ __props.userAvatar ? (openBlock(), createBlock(unref(ElIcon), {
229
+ key: 0,
230
+ size: 24,
231
+ class: "jky-page-header__avatar"
232
+ }, {
233
+ default: withCtx(() => [
234
+ createElementVNode("img", {
235
+ src: __props.userAvatar,
236
+ alt: __props.userName,
237
+ class: "rounded-full"
238
+ }, null, 8, _hoisted_11)
239
+ ]),
240
+ _: 1
241
+ })) : (openBlock(), createBlock(unref(ElIcon), {
242
+ key: 1,
243
+ size: 24,
244
+ class: "jky-page-header__avatar"
245
+ }, {
246
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [
247
+ createElementVNode("span", { class: "icon-[heroicons--user]" }, null, -1)
248
+ ])]),
249
+ _: 1
250
+ }))
251
+ ]),
250
252
  __props.userName ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(__props.userName), 1)) : createCommentVNode("", true)
251
253
  ])
252
254
  ]),
253
- _: 1
255
+ _: 3
254
256
  })
255
257
  ])
256
258
  ])
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "0.0.18";
3
+ const version = "0.0.19";
4
4
  exports.version = version;
@@ -19,6 +19,7 @@ declare function __VLS_template(): {
19
19
  slots: {
20
20
  center?(_: {}): any;
21
21
  time?(_: {}): any;
22
+ userIcon?(_: {}): any;
22
23
  };
23
24
  refs: {};
24
25
  rootEl: HTMLElement;
@@ -42,7 +42,7 @@ const _hoisted_9 = { class: "jky-page-header__time hidden md:block" };
42
42
  const _hoisted_10 = { class: "jky-page-header__user" };
43
43
  const _hoisted_11 = ["src", "alt"];
44
44
  const _hoisted_12 = {
45
- key: 2,
45
+ key: 0,
46
46
  class: "jky-page-header__username hidden md:block"
47
47
  };
48
48
  const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
@@ -226,33 +226,35 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
226
226
  ]),
227
227
  default: vue.withCtx(() => [
228
228
  vue.createElementVNode("div", _hoisted_10, [
229
- __props.userAvatar ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElIcon), {
230
- key: 0,
231
- size: 32,
232
- class: "jky-page-header__avatar"
233
- }, {
234
- default: vue.withCtx(() => [
235
- vue.createElementVNode("img", {
236
- src: __props.userAvatar,
237
- alt: __props.userName,
238
- class: "rounded-full"
239
- }, null, 8, _hoisted_11)
240
- ]),
241
- _: 1
242
- })) : (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElIcon), {
243
- key: 1,
244
- size: 32,
245
- class: "jky-page-header__avatar"
246
- }, {
247
- default: vue.withCtx(() => [..._cache[1] || (_cache[1] = [
248
- vue.createElementVNode("span", { class: "icon-[heroicons--user]" }, null, -1)
249
- ])]),
250
- _: 1
251
- })),
229
+ vue.renderSlot(_ctx.$slots, "userIcon", {}, () => [
230
+ __props.userAvatar ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElIcon), {
231
+ key: 0,
232
+ size: 24,
233
+ class: "jky-page-header__avatar"
234
+ }, {
235
+ default: vue.withCtx(() => [
236
+ vue.createElementVNode("img", {
237
+ src: __props.userAvatar,
238
+ alt: __props.userName,
239
+ class: "rounded-full"
240
+ }, null, 8, _hoisted_11)
241
+ ]),
242
+ _: 1
243
+ })) : (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElIcon), {
244
+ key: 1,
245
+ size: 24,
246
+ class: "jky-page-header__avatar"
247
+ }, {
248
+ default: vue.withCtx(() => [..._cache[1] || (_cache[1] = [
249
+ vue.createElementVNode("span", { class: "icon-[heroicons--user]" }, null, -1)
250
+ ])]),
251
+ _: 1
252
+ }))
253
+ ]),
252
254
  __props.userName ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_12, vue.toDisplayString(__props.userName), 1)) : vue.createCommentVNode("", true)
253
255
  ])
254
256
  ]),
255
- _: 1
257
+ _: 3
256
258
  })
257
259
  ])
258
260
  ])
package/dist/umd/index.js CHANGED
@@ -1398,7 +1398,7 @@ img {
1398
1398
  }
1399
1399
  /*$vite$:1*/`;
1400
1400
  document.head.appendChild(__vite_style__);
1401
- const version$1 = "0.0.18";
1401
+ const version$1 = "0.0.19";
1402
1402
  const INSTALLED_KEY = Symbol("INSTALLED_KEY");
1403
1403
  function createInstaller(components2 = []) {
1404
1404
  const install2 = (app, options) => {
@@ -1735,7 +1735,7 @@ img {
1735
1735
  const _hoisted_10 = { class: "jky-page-header__user" };
1736
1736
  const _hoisted_11 = ["src", "alt"];
1737
1737
  const _hoisted_12 = {
1738
- key: 2,
1738
+ key: 0,
1739
1739
  class: "jky-page-header__username hidden md:block"
1740
1740
  };
1741
1741
  const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
@@ -1919,33 +1919,35 @@ img {
1919
1919
  ]),
1920
1920
  default: vue.withCtx(() => [
1921
1921
  vue.createElementVNode("div", _hoisted_10, [
1922
- __props.userAvatar ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElIcon), {
1923
- key: 0,
1924
- size: 32,
1925
- class: "jky-page-header__avatar"
1926
- }, {
1927
- default: vue.withCtx(() => [
1928
- vue.createElementVNode("img", {
1929
- src: __props.userAvatar,
1930
- alt: __props.userName,
1931
- class: "rounded-full"
1932
- }, null, 8, _hoisted_11)
1933
- ]),
1934
- _: 1
1935
- })) : (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElIcon), {
1936
- key: 1,
1937
- size: 32,
1938
- class: "jky-page-header__avatar"
1939
- }, {
1940
- default: vue.withCtx(() => [..._cache[1] || (_cache[1] = [
1941
- vue.createElementVNode("span", { class: "icon-[heroicons--user]" }, null, -1)
1942
- ])]),
1943
- _: 1
1944
- })),
1922
+ vue.renderSlot(_ctx.$slots, "userIcon", {}, () => [
1923
+ __props.userAvatar ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElIcon), {
1924
+ key: 0,
1925
+ size: 24,
1926
+ class: "jky-page-header__avatar"
1927
+ }, {
1928
+ default: vue.withCtx(() => [
1929
+ vue.createElementVNode("img", {
1930
+ src: __props.userAvatar,
1931
+ alt: __props.userName,
1932
+ class: "rounded-full"
1933
+ }, null, 8, _hoisted_11)
1934
+ ]),
1935
+ _: 1
1936
+ })) : (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElIcon), {
1937
+ key: 1,
1938
+ size: 24,
1939
+ class: "jky-page-header__avatar"
1940
+ }, {
1941
+ default: vue.withCtx(() => [..._cache[1] || (_cache[1] = [
1942
+ vue.createElementVNode("span", { class: "icon-[heroicons--user]" }, null, -1)
1943
+ ])]),
1944
+ _: 1
1945
+ }))
1946
+ ]),
1945
1947
  __props.userName ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_12, vue.toDisplayString(__props.userName), 1)) : vue.createCommentVNode("", true)
1946
1948
  ])
1947
1949
  ]),
1948
- _: 1
1950
+ _: 3
1949
1951
  })
1950
1952
  ])
1951
1953
  ])
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jky-component-lib",
3
3
  "type": "module",
4
- "version": "0.0.18",
4
+ "version": "0.0.19",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },