keli-ui 0.2.6 → 0.2.8

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/keli-ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { onMounted, nextTick, getCurrentScope, onScopeDispose, getCurrentInstance, computed, shallowRef, watch, toValue, reactive, inject, provide, createCommentVNode, h as h$1, defineComponent, ref, onUnmounted, TransitionGroup, Teleport, onActivated, onDeactivated, onBeforeUnmount, resolveComponent, isRef, unref, isVNode, createVNode, watchEffect, mergeProps, Transition, withDirectives, vShow, Fragment, createApp, withKeys, createBlock, openBlock, withCtx, createElementBlock, renderList, resolveDynamicComponent, createElementVNode, createTextVNode, toDisplayString, renderSlot, mergeModels, useModel, withModifiers, normalizeStyle, normalizeClass, resolveDirective, createSlots, useAttrs, normalizeProps, guardReactiveProps, toRefs, useTemplateRef } from "vue";
1
+ import { onMounted, nextTick, getCurrentScope, onScopeDispose, getCurrentInstance, computed, shallowRef, watch, toValue, reactive, inject, provide, createCommentVNode, h as h$1, defineComponent, ref, onUnmounted, TransitionGroup, Teleport, onActivated, onDeactivated, onBeforeUnmount, resolveComponent, isRef, unref, isVNode, createVNode, watchEffect, mergeProps, Transition, withDirectives, vShow, Fragment, createApp, withKeys, createBlock, openBlock, withCtx, createElementBlock, renderList, resolveDynamicComponent, createElementVNode, createTextVNode, toDisplayString, renderSlot, mergeModels, useModel, withModifiers, normalizeStyle, normalizeClass, resolveDirective, createSlots, useAttrs, normalizeProps, guardReactiveProps, useSlots, toRefs, useTemplateRef } from "vue";
2
2
  import { Setting, Download, More } from "@element-plus/icons-vue";
3
3
  import { dayjs, ElMessage, ElNotification, ElMessageBox, ElTable, ElTableColumn } from "element-plus";
4
4
  function tryOnScopeDispose(fn) {
@@ -36854,6 +36854,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
36854
36854
  };
36855
36855
  return (_ctx, _cache) => {
36856
36856
  return openBlock(), createElementBlock("div", _hoisted_1$b, [
36857
+ renderSlot(_ctx.$slots, "custom-button", {}, void 0, true),
36857
36858
  (openBlock(true), createElementBlock(Fragment, null, renderList(directToolButton.value, (btn) => {
36858
36859
  return openBlock(), createBlock(unref(Button), {
36859
36860
  key: btn.id,
@@ -36896,7 +36897,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
36896
36897
  };
36897
36898
  }
36898
36899
  });
36899
- const ToolBarMobile = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-f3dd7c43"]]);
36900
+ const ToolBarMobile = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-a79427fd"]]);
36900
36901
  const customFormatter = (options) => {
36901
36902
  if (isEmpty(options.cellValue) || isEmpty(options.tabObj))
36902
36903
  return options.cellValue;
@@ -38709,9 +38710,19 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
38709
38710
  setup(__props) {
38710
38711
  const currentComponent = computed(() => isMobileDevice.value ? ToolBarMobile : ToolBarClient);
38711
38712
  const attrs = useAttrs();
38713
+ const slots = useSlots();
38712
38714
  const forwardedAttrs = attrs;
38713
38715
  return (_ctx, _cache) => {
38714
- return openBlock(), createBlock(resolveDynamicComponent(currentComponent.value), normalizeProps(guardReactiveProps(unref(forwardedAttrs))), null, 16);
38716
+ return openBlock(), createBlock(resolveDynamicComponent(currentComponent.value), normalizeProps(guardReactiveProps(unref(forwardedAttrs))), createSlots({ _: 2 }, [
38717
+ renderList(unref(slots), (_, name2) => {
38718
+ return {
38719
+ name: name2,
38720
+ fn: withCtx((slotProps) => [
38721
+ renderSlot(_ctx.$slots, name2, normalizeProps(guardReactiveProps(slotProps)))
38722
+ ])
38723
+ };
38724
+ })
38725
+ ]), 1040);
38715
38726
  };
38716
38727
  }
38717
38728
  });