bkui-vue 0.0.1-beta.80 → 0.0.1-beta.81

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
@@ -19712,6 +19712,7 @@ var DateRangePanel = defineComponent({
19712
19712
  props: dateRangePanelProps,
19713
19713
  emits: ["pick"],
19714
19714
  setup(props, {
19715
+ slots,
19715
19716
  emit
19716
19717
  }) {
19717
19718
  const [minDate, maxDate] = props.modelValue.map((date) => date || initTime());
@@ -19887,8 +19888,10 @@ var DateRangePanel = defineComponent({
19887
19888
  left: preSelecting.value.left ? handlePreSelection.bind("left") : handleRangePick,
19888
19889
  right: preSelecting.value.right ? handlePreSelection.bind("right") : handleRangePick
19889
19890
  }));
19891
+ const hasShortcuts = computed(() => !!slots.shortcuts);
19890
19892
  return __spreadProps(__spreadValues({}, toRefs(state)), {
19891
19893
  isTime,
19894
+ hasShortcuts,
19892
19895
  prevYear,
19893
19896
  nextYear,
19894
19897
  prevMonth,
@@ -19910,6 +19913,7 @@ var DateRangePanel = defineComponent({
19910
19913
  });
19911
19914
  },
19912
19915
  render() {
19916
+ var _a, _b, _c;
19913
19917
  return createVNode("div", {
19914
19918
  "class": ["bk-picker-panel-body-wrapper", "bk-date-picker-with-range", this.shortcuts.length || this.$slots.shortcuts ? "bk-picker-panel-with-sidebar" : ""],
19915
19919
  "onMousedown": (e) => {
@@ -20045,7 +20049,9 @@ var DateRangePanel = defineComponent({
20045
20049
  default:
20046
20050
  return null;
20047
20051
  }
20048
- })() : ""]), [[vShow, !this.isTime]])])]);
20052
+ })() : ""]), [[vShow, !this.isTime]])]), this.hasShortcuts ? createVNode("div", {
20053
+ "class": "bk-picker-panel-sidebar"
20054
+ }, [(_c = (_b = (_a = this.$slots).shortcuts) == null ? void 0 : _b.call(_a)) != null ? _c : null]) : null]);
20049
20055
  }
20050
20056
  });
20051
20057
  const datePickerProps = {