bkui-vue 0.0.1-beta.219 → 0.0.1-beta.220

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.esm.js CHANGED
@@ -30584,6 +30584,12 @@ var Component$4 = defineComponent({
30584
30584
  const timelinesCls = classes({}, `${timelineClsPrefix} ${timelineThemeCls} ${timelineSizeCls} ${timelinesColorsCls} ${timelineFilledCls}`);
30585
30585
  return timelinesCls;
30586
30586
  };
30587
+ const getContent = (item) => this.$slots.content ? createVNode("div", {
30588
+ "class": "bk-timeline-content"
30589
+ }, [this.$slots.content(item)]) : createVNode("div", {
30590
+ "class": "bk-timeline-content",
30591
+ "innerHTML": item.content
30592
+ }, null);
30587
30593
  return createVNode("ul", {
30588
30594
  "class": ["bk-timeline", this.extCls]
30589
30595
  }, [this.defaultTimelines.map((item) => {
@@ -30605,12 +30611,9 @@ var Component$4 = defineComponent({
30605
30611
  "onClick": () => {
30606
30612
  this.titleSelect(item);
30607
30613
  }
30608
- }, [(_c = (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) != null ? _c : createVNode("span", {
30614
+ }, [(_c = (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a, item)) != null ? _c : createVNode("span", {
30609
30615
  "innerHTML": item.tag
30610
- }, null)]), item.content ? createVNode("div", {
30611
- "class": "bk-timeline-content",
30612
- "innerHTML": item.content
30613
- }, null) : ""])]);
30616
+ }, null)]), item.content ? getContent(item) : ""])]);
30614
30617
  })]);
30615
30618
  }
30616
30619
  });