keli-ui 0.0.4 → 0.0.6

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 { defineComponent, createElementBlock, openBlock, createElementVNode, onMounted, nextTick, getCurrentScope, onScopeDispose, getCurrentInstance, computed, shallowRef, watch, toValue, reactive, inject, provide, createCommentVNode, h, ref, onUnmounted, TransitionGroup, Teleport, onActivated, onDeactivated, onBeforeUnmount, resolveComponent, unref, watchEffect, readonly, isRef, warn, mergeProps, renderSlot, toRef, useAttrs as useAttrs$1, useSlots, normalizeStyle, normalizeClass, Fragment, createBlock, withCtx, resolveDynamicComponent, withModifiers, createVNode, toDisplayString, Transition, withDirectives, createTextVNode, vShow, Text, shallowReactive, isVNode, render, withKeys, markRaw, toRefs, createApp, renderList, mergeModels, useModel, resolveDirective, createSlots } from "vue";
1
+ import { defineComponent, createElementBlock, openBlock, createElementVNode, onMounted, nextTick, getCurrentScope, onScopeDispose, getCurrentInstance, computed, shallowRef, watch, toValue, reactive, inject, provide, createCommentVNode, h, ref, onUnmounted, TransitionGroup, Teleport, onActivated, onDeactivated, onBeforeUnmount, resolveComponent, unref, watchEffect, readonly, isRef, warn, mergeProps, renderSlot, toRef, useAttrs as useAttrs$1, useSlots, normalizeStyle, normalizeClass, Fragment, createBlock, withCtx, resolveDynamicComponent, withModifiers, createVNode, toDisplayString, Transition, withDirectives, createTextVNode, vShow, Text, shallowReactive, isVNode, render, withKeys, markRaw, toRefs, createApp, renderList, mergeModels, useModel, resolveDirective, createSlots, normalizeProps, guardReactiveProps } from "vue";
2
2
  /*! Element Plus Icons Vue v2.3.1 */
3
3
  var circle_check_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
4
4
  name: "CircleCheck",
@@ -32487,7 +32487,7 @@ const __default__$6 = defineComponent({
32487
32487
  name: "ElIcon",
32488
32488
  inheritAttrs: false
32489
32489
  });
32490
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
32490
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
32491
32491
  ...__default__$6,
32492
32492
  props: iconProps$1,
32493
32493
  setup(__props) {
@@ -32512,7 +32512,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
32512
32512
  };
32513
32513
  }
32514
32514
  });
32515
- var Icon$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["__file", "icon.vue"]]);
32515
+ var Icon$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["__file", "icon.vue"]]);
32516
32516
  const ElIcon = withInstall$1(Icon$1);
32517
32517
  const iconPropType = definePropType([
32518
32518
  String,
@@ -32976,7 +32976,7 @@ const __default__$5 = defineComponent({
32976
32976
  name: COMPONENT_NAME,
32977
32977
  inheritAttrs: false
32978
32978
  });
32979
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
32979
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
32980
32980
  ...__default__$5,
32981
32981
  props: inputProps,
32982
32982
  emits: inputEmits,
@@ -33388,7 +33388,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
33388
33388
  };
33389
33389
  }
33390
33390
  });
33391
- var Input = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["__file", "input.vue"]]);
33391
+ var Input = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["__file", "input.vue"]]);
33392
33392
  const ElInput = withInstall$1(Input);
33393
33393
  const FOCUSABLE_ELEMENT_SELECTORS = `a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])`;
33394
33394
  const isVisible = (element) => {
@@ -33608,7 +33608,7 @@ const useEscapeKeydown = (handler) => {
33608
33608
  }
33609
33609
  });
33610
33610
  };
33611
- const _sfc_main$l = defineComponent({
33611
+ const _sfc_main$q = defineComponent({
33612
33612
  name: "ElFocusTrap",
33613
33613
  inheritAttrs: false,
33614
33614
  props: {
@@ -33853,7 +33853,7 @@ const _sfc_main$l = defineComponent({
33853
33853
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
33854
33854
  return renderSlot(_ctx.$slots, "default", { handleKeydown: _ctx.onKeydown });
33855
33855
  }
33856
- var ElFocusTrap = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$1], ["__file", "focus-trap.vue"]]);
33856
+ var ElFocusTrap = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_render$1], ["__file", "focus-trap.vue"]]);
33857
33857
  const badgeProps$1 = buildProps({
33858
33858
  value: {
33859
33859
  type: [String, Number],
@@ -33889,7 +33889,7 @@ const badgeProps$1 = buildProps({
33889
33889
  const __default__$4 = defineComponent({
33890
33890
  name: "ElBadge"
33891
33891
  });
33892
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
33892
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
33893
33893
  ...__default__$4,
33894
33894
  props: badgeProps$1,
33895
33895
  setup(__props, { expose }) {
@@ -33951,7 +33951,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
33951
33951
  };
33952
33952
  }
33953
33953
  });
33954
- var Badge$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["__file", "badge.vue"]]);
33954
+ var Badge$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["__file", "badge.vue"]]);
33955
33955
  const ElBadge = withInstall$1(Badge$1);
33956
33956
  const buttonGroupContextKey = Symbol("buttonGroupContextKey");
33957
33957
  const useDeprecated = ({ from, replacement, scope, version: version2, ref: ref2, type = "API" }, condition) => {
@@ -35024,7 +35024,7 @@ function useButtonCustomStyle(props) {
35024
35024
  const __default__$3 = defineComponent({
35025
35025
  name: "ElButton"
35026
35026
  });
35027
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
35027
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
35028
35028
  ...__default__$3,
35029
35029
  props: buttonProps$1,
35030
35030
  emits: buttonEmits,
@@ -35091,7 +35091,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
35091
35091
  };
35092
35092
  }
35093
35093
  });
35094
- var Button$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["__file", "button.vue"]]);
35094
+ var Button$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["__file", "button.vue"]]);
35095
35095
  const buttonGroupProps = {
35096
35096
  size: buttonProps$1.size,
35097
35097
  type: buttonProps$1.type
@@ -35099,7 +35099,7 @@ const buttonGroupProps = {
35099
35099
  const __default__$2 = defineComponent({
35100
35100
  name: "ElButtonGroup"
35101
35101
  });
35102
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
35102
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
35103
35103
  ...__default__$2,
35104
35104
  props: buttonGroupProps,
35105
35105
  setup(__props) {
@@ -35118,7 +35118,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
35118
35118
  };
35119
35119
  }
35120
35120
  });
35121
- var ButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["__file", "button-group.vue"]]);
35121
+ var ButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["__file", "button-group.vue"]]);
35122
35122
  const ElButton = withInstall$1(Button$1, {
35123
35123
  ButtonGroup
35124
35124
  });
@@ -35773,7 +35773,7 @@ const getOffsetOrSpace = (id, offset) => {
35773
35773
  const __default__$1 = defineComponent({
35774
35774
  name: "ElMessage"
35775
35775
  });
35776
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
35776
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
35777
35777
  ...__default__$1,
35778
35778
  props: messageProps,
35779
35779
  emits: messageEmits,
@@ -35914,7 +35914,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
35914
35914
  };
35915
35915
  }
35916
35916
  });
35917
- var MessageConstructor = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["__file", "message.vue"]]);
35917
+ var MessageConstructor = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["__file", "message.vue"]]);
35918
35918
  let seed$1 = 1;
35919
35919
  const normalizeOptions = (params) => {
35920
35920
  const options = !params || isString$1(params) || isVNode(params) || isFunction$2(params) ? { message: params } : params;
@@ -36083,7 +36083,7 @@ const TrapFocus = {
36083
36083
  }
36084
36084
  }
36085
36085
  };
36086
- const _sfc_main$g = defineComponent({
36086
+ const _sfc_main$l = defineComponent({
36087
36087
  name: "ElMessageBox",
36088
36088
  directives: {
36089
36089
  TrapFocus
@@ -36560,7 +36560,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
36560
36560
  _: 3
36561
36561
  }, 8, ["onAfterLeave"]);
36562
36562
  }
36563
- var MessageBoxConstructor = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_render], ["__file", "index.vue"]]);
36563
+ var MessageBoxConstructor = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render], ["__file", "index.vue"]]);
36564
36564
  const messageInstance = /* @__PURE__ */ new Map();
36565
36565
  const getAppendToElement = (props) => {
36566
36566
  let appendTo = document.body;
@@ -36773,7 +36773,7 @@ const notificationEmits = {
36773
36773
  const __default__ = defineComponent({
36774
36774
  name: "ElNotification"
36775
36775
  });
36776
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
36776
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
36777
36777
  ...__default__,
36778
36778
  props: notificationProps,
36779
36779
  emits: notificationEmits,
@@ -36902,7 +36902,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
36902
36902
  };
36903
36903
  }
36904
36904
  });
36905
- var NotificationConstructor = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["__file", "notification.vue"]]);
36905
+ var NotificationConstructor = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["__file", "notification.vue"]]);
36906
36906
  const notifications = {
36907
36907
  "top-left": [],
36908
36908
  "top-right": [],
@@ -39762,8 +39762,7 @@ const msgTips = { alert, elNotification, tips };
39762
39762
  }
39763
39763
  })();
39764
39764
  function useCopyPaste(params) {
39765
- var _a2;
39766
- if (!((_a2 = params.rowConfig) == null ? void 0 : _a2.height)) {
39765
+ if (!params.rowConfig || !params.rowConfig.height) {
39767
39766
  return {
39768
39767
  cellArea: () => {
39769
39768
  },
@@ -40209,9 +40208,9 @@ function useCopyPaste(params) {
40209
40208
  }
40210
40209
  if (pasteEventHandler) return;
40211
40210
  pasteEventHandler = (event) => {
40212
- var _a3;
40211
+ var _a2;
40213
40212
  event.preventDefault();
40214
- const clipboardData = (_a3 = event.clipboardData) == null ? void 0 : _a3.getData("text");
40213
+ const clipboardData = (_a2 = event.clipboardData) == null ? void 0 : _a2.getData("text");
40215
40214
  if (!clipboardData) {
40216
40215
  console.warn("剪贴板中没有数据");
40217
40216
  return;
@@ -40346,7 +40345,7 @@ const mergeObjects = (queryData, typeData) => {
40346
40345
  return mergedObj;
40347
40346
  };
40348
40347
  const _hoisted_1$a = { style: { "width": "100%", "text-align": "right" } };
40349
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
40348
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
40350
40349
  __name: "QueryBarClient",
40351
40350
  props: {
40352
40351
  frame: {
@@ -40513,7 +40512,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
40513
40512
  };
40514
40513
  }
40515
40514
  });
40516
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
40515
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
40517
40516
  __name: "ToolBarClient",
40518
40517
  props: {
40519
40518
  toolButtons: {
@@ -40556,17 +40555,17 @@ const _export_sfc = (sfc, props) => {
40556
40555
  }
40557
40556
  return target;
40558
40557
  };
40559
- const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-1d587f27"]]);
40560
- const _hoisted_1$9 = { class: "table-render-client" };
40558
+ const ToolBarClient = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-a54415be"]]);
40559
+ const _hoisted_1$9 = { class: "ke-table-render-client" };
40561
40560
  const _hoisted_2$6 = {
40562
40561
  key: 1,
40563
- class: "table-tool-button"
40562
+ class: "ke-table-tool-button"
40564
40563
  };
40565
40564
  const _hoisted_3$3 = {
40566
40565
  key: 2,
40567
- class: "pagination-div"
40566
+ class: "ke-pagination-div"
40568
40567
  };
40569
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
40568
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
40570
40569
  __name: "TableRenderClient",
40571
40570
  props: /* @__PURE__ */ mergeModels({
40572
40571
  tableId: {
@@ -40675,6 +40674,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
40675
40674
  });
40676
40675
  const vxeGridContainerRef = ref();
40677
40676
  const { height: vxeGridContainerHeight } = useElementSize(vxeGridContainerRef);
40677
+ watch(() => vxeGridContainerHeight, () => {
40678
+ console.log(vxeGridContainerHeight.value);
40679
+ });
40678
40680
  let queryData = {};
40679
40681
  const btnClick = (data, button, rowIndex) => {
40680
40682
  useButtonExec(data, button, rowIndex);
@@ -40721,14 +40723,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
40721
40723
  const _component_el_button = resolveComponent("el-button");
40722
40724
  const _component_el_pagination = resolveComponent("el-pagination");
40723
40725
  return openBlock(), createElementBlock("div", _hoisted_1$9, [
40724
- __props.queryConfig && __props.queryConfig.length > 0 ? (openBlock(), createBlock(_sfc_main$e, {
40726
+ createTextVNode(" 高度:" + toDisplayString(unref(vxeGridContainerHeight)) + " ", 1),
40727
+ __props.queryConfig && __props.queryConfig.length > 0 ? (openBlock(), createBlock(_sfc_main$j, {
40725
40728
  key: 0,
40726
40729
  frame: __props.queryConfig,
40727
- class: "query-bar-client",
40730
+ class: "ke-query-bar-client",
40728
40731
  onQueryClick: queryClick
40729
40732
  }, null, 8, ["frame"])) : createCommentVNode("", true),
40730
40733
  __props.tableToolButtons && __props.tableToolButtons.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
40731
- createVNode(ToolBar, { "tool-buttons": __props.tableToolButtons }, {
40734
+ createVNode(ToolBarClient, { "tool-buttons": __props.tableToolButtons }, {
40732
40735
  "custom-button": withCtx(() => [
40733
40736
  createVNode(_component_el_button, {
40734
40737
  icon: unref(setting_default),
@@ -40738,7 +40741,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
40738
40741
  icon: unref(download_default),
40739
40742
  onClick: exportData
40740
40743
  }, null, 8, ["icon"]),
40741
- renderSlot(_ctx.$slots, "tool-bar", {}, void 0, true)
40744
+ renderSlot(_ctx.$slots, "tool-bar")
40742
40745
  ]),
40743
40746
  _: 3
40744
40747
  }, 8, ["tool-buttons"])
@@ -40746,7 +40749,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
40746
40749
  createElementVNode("div", {
40747
40750
  ref_key: "vxeGridContainerRef",
40748
40751
  ref: vxeGridContainerRef,
40749
- class: "vxe-grid-container"
40752
+ class: "ke-vxe-grid-container"
40750
40753
  }, [
40751
40754
  createElementVNode("div", {
40752
40755
  ref_key: "cellArea",
@@ -40843,7 +40846,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
40843
40846
  };
40844
40847
  }
40845
40848
  });
40846
- const TableRenderClient = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-aedf503a"]]);
40847
40849
  const customFormatter = (options) => {
40848
40850
  if (isEmpty(options.cellValue) || isEmpty(options.tabObj))
40849
40851
  return options.cellValue;
@@ -40862,7 +40864,7 @@ const customFormatter = (options) => {
40862
40864
  return options.cellValue;
40863
40865
  };
40864
40866
  const _hoisted_1$8 = { style: { "margin": "16px" } };
40865
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
40867
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
40866
40868
  __name: "QueryBarMobile",
40867
40869
  props: {
40868
40870
  frame: {
@@ -40992,7 +40994,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
40992
40994
  }
40993
40995
  });
40994
40996
  const _hoisted_1$7 = { class: "button-container" };
40995
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
40997
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
40996
40998
  __name: "ToolBarMobile",
40997
40999
  props: {
40998
41000
  toolButtons: {
@@ -41055,7 +41057,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
41055
41057
  };
41056
41058
  }
41057
41059
  });
41058
- const ToolBarMobile = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-e19155b1"]]);
41060
+ const ToolBarMobile = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-c0feb3aa"]]);
41059
41061
  const _hoisted_1$6 = { class: "table-render-mobile" };
41060
41062
  const _hoisted_2$5 = { class: "table-render-mobile-search" };
41061
41063
  const _hoisted_3$2 = { class: "table-tool-button" };
@@ -41064,7 +41066,7 @@ const _hoisted_5$2 = {
41064
41066
  key: 0,
41065
41067
  class: "pagination-div"
41066
41068
  };
41067
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
41069
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
41068
41070
  __name: "TableRenderMobile",
41069
41071
  props: /* @__PURE__ */ mergeModels({
41070
41072
  tableId: {
@@ -41193,7 +41195,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
41193
41195
  const _directive_loading = resolveDirective("loading");
41194
41196
  return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$6, [
41195
41197
  createElementVNode("div", _hoisted_2$5, [
41196
- createVNode(_sfc_main$b, {
41198
+ createVNode(_sfc_main$g, {
41197
41199
  frame: __props.queryConfig,
41198
41200
  onQueryClick: queryClick
41199
41201
  }, null, 8, ["frame"])
@@ -41289,8 +41291,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
41289
41291
  };
41290
41292
  }
41291
41293
  });
41292
- const TableRenderMobile = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-24559185"]]);
41293
- const KeliTableRender = isMobileDevice.value ? TableRenderMobile : TableRenderClient;
41294
+ const TableRenderMobile = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-24559185"]]);
41295
+ const KeliTableRender = isMobileDevice.value ? TableRenderMobile : _sfc_main$h;
41294
41296
  KeliTableRender.install = (app) => {
41295
41297
  app.component(KeliTableRender.__name, KeliTableRender);
41296
41298
  };
@@ -41304,7 +41306,7 @@ const _hoisted_4$1 = ["src"];
41304
41306
  const _hoisted_5$1 = { class: "title-wrapper" };
41305
41307
  const _hoisted_6$1 = { class: "title-text" };
41306
41308
  const _hoisted_7 = { class: "pagination-div" };
41307
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
41309
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
41308
41310
  __name: "TableCardRenderClient",
41309
41311
  props: /* @__PURE__ */ mergeModels({
41310
41312
  tableId: {
@@ -41558,14 +41560,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
41558
41560
  };
41559
41561
  }
41560
41562
  });
41561
- const TableCardRenderClient = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-f727ae8d"]]);
41563
+ const TableCardRenderClient = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-f727ae8d"]]);
41562
41564
  const _hoisted_1$4 = { class: "table-render-mobile" };
41563
41565
  const _hoisted_2$3 = { class: "table-render-mobile-search" };
41564
41566
  const _hoisted_3 = { class: "table-tool-button" };
41565
41567
  const _hoisted_4 = { class: "table-render-mobile-content" };
41566
41568
  const _hoisted_5 = ["src"];
41567
41569
  const _hoisted_6 = { class: "pagination-div" };
41568
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
41570
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
41569
41571
  __name: "TableCardRenderMobile",
41570
41572
  props: /* @__PURE__ */ mergeModels({
41571
41573
  tableId: {
@@ -41799,7 +41801,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
41799
41801
  };
41800
41802
  }
41801
41803
  });
41802
- const TableCardRenderMobile = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-f646ed8a"]]);
41804
+ const TableCardRenderMobile = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-f646ed8a"]]);
41803
41805
  const KeliTableCardRender = isMobileDevice.value ? TableCardRenderMobile : TableCardRenderClient;
41804
41806
  KeliTableCardRender.install = (app) => {
41805
41807
  app.component(KeliTableCardRender.__name, KeliTableCardRender);
@@ -41809,7 +41811,7 @@ const _hoisted_2$2 = {
41809
41811
  key: 1,
41810
41812
  class: "table-tool-button"
41811
41813
  };
41812
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
41814
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
41813
41815
  __name: "TableTreeRender",
41814
41816
  props: {
41815
41817
  tableId: {
@@ -42010,13 +42012,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
42010
42012
  };
42011
42013
  }
42012
42014
  });
42013
- const KeliTableTreeRender = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-ab548e2d"]]);
42015
+ const KeliTableTreeRender = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-ab548e2d"]]);
42014
42016
  KeliTableTreeRender.install = (app) => {
42015
42017
  app.component(KeliTableTreeRender.__name, KeliTableTreeRender);
42016
42018
  };
42017
42019
  const _hoisted_1$2 = { class: "table-check-box-async" };
42018
42020
  const _hoisted_2$1 = { class: "dialog-header" };
42019
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42021
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
42020
42022
  __name: "TableCheckBoxAsync",
42021
42023
  props: /* @__PURE__ */ mergeModels({
42022
42024
  value: {
@@ -42166,12 +42168,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42166
42168
  };
42167
42169
  }
42168
42170
  });
42169
- const KeliTableCheckBoxAsync = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-16ccc8c0"]]);
42171
+ const KeliTableCheckBoxAsync = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-16ccc8c0"]]);
42170
42172
  KeliTableCheckBoxAsync.install = (app) => {
42171
42173
  app.component(KeliTableCheckBoxAsync.__name, KeliTableCheckBoxAsync);
42172
42174
  };
42173
42175
  const _hoisted_1$1 = { style: { "margin": "4px 0 0", "text-align": "right" } };
42174
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
42176
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
42175
42177
  __name: "TableInput",
42176
42178
  props: /* @__PURE__ */ mergeModels({
42177
42179
  value: {
@@ -42284,10 +42286,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
42284
42286
  };
42285
42287
  }
42286
42288
  });
42287
- const KeliTableInput = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-d7547436"]]);
42289
+ const KeliTableInput = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-d7547436"]]);
42288
42290
  const _hoisted_1 = { style: { "width": "100%" } };
42289
42291
  const _hoisted_2 = { style: { "margin": "4px 0 0", "text-align": "right" } };
42290
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
42292
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
42291
42293
  __name: "TableInputNumber",
42292
42294
  props: /* @__PURE__ */ mergeModels({
42293
42295
  value: {
@@ -42404,11 +42406,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
42404
42406
  };
42405
42407
  }
42406
42408
  });
42407
- const KeliTableInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-305591d3"]]);
42409
+ const KeliTableInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-305591d3"]]);
42408
42410
  KeliTableInputNumber.install = (app) => {
42409
42411
  app.component(KeliTableInputNumber.__name, KeliTableInputNumber);
42410
42412
  };
42411
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
42413
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
42412
42414
  __name: "TableSelect",
42413
42415
  props: {
42414
42416
  value: {
@@ -42487,10 +42489,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
42487
42489
  };
42488
42490
  }
42489
42491
  });
42490
- _sfc_main$2.install = (app) => {
42491
- app.component(_sfc_main$2.__name, _sfc_main$2);
42492
+ _sfc_main$7.install = (app) => {
42493
+ app.component(_sfc_main$7.__name, _sfc_main$7);
42492
42494
  };
42493
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
42495
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
42494
42496
  __name: "TableSelectAsync",
42495
42497
  props: /* @__PURE__ */ mergeModels({
42496
42498
  value: {
@@ -42554,10 +42556,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
42554
42556
  };
42555
42557
  }
42556
42558
  });
42557
- _sfc_main$1.install = (app) => {
42558
- app.component(_sfc_main$1.__name, _sfc_main$1);
42559
+ _sfc_main$6.install = (app) => {
42560
+ app.component(_sfc_main$6.__name, _sfc_main$6);
42559
42561
  };
42560
- const _sfc_main = /* @__PURE__ */ defineComponent({
42562
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42561
42563
  __name: "TableSwitch",
42562
42564
  props: /* @__PURE__ */ mergeModels({
42563
42565
  value: {
@@ -42600,6 +42602,222 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42600
42602
  };
42601
42603
  }
42602
42604
  });
42605
+ _sfc_main$5.install = (app) => {
42606
+ app.component(_sfc_main$5.__name, _sfc_main$5);
42607
+ };
42608
+ const KeliQueryBar = isMobileDevice.value ? _sfc_main$g : _sfc_main$j;
42609
+ KeliQueryBar.install = (app) => {
42610
+ app.component(KeliQueryBar.__name, KeliQueryBar);
42611
+ };
42612
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
42613
+ __name: "QueryDateTimeClient",
42614
+ props: /* @__PURE__ */ mergeModels({
42615
+ value: {
42616
+ required: true
42617
+ }
42618
+ }, {
42619
+ "value": {
42620
+ type: [Array]
42621
+ // 正确地定义属性类型
42622
+ },
42623
+ "valueModifiers": {}
42624
+ }),
42625
+ emits: /* @__PURE__ */ mergeModels(["update:value", "update:queryType"], ["update:value"]),
42626
+ setup(__props, { emit: __emit }) {
42627
+ const emit = __emit;
42628
+ const valueModel = useModel(__props, "value");
42629
+ const shortcuts = [
42630
+ {
42631
+ text: "上周",
42632
+ value: () => {
42633
+ const end = /* @__PURE__ */ new Date();
42634
+ const start = /* @__PURE__ */ new Date();
42635
+ start.setDate(start.getDate() - 7);
42636
+ return [start, end];
42637
+ }
42638
+ },
42639
+ {
42640
+ text: "上个月",
42641
+ value: () => {
42642
+ const end = /* @__PURE__ */ new Date();
42643
+ const start = /* @__PURE__ */ new Date();
42644
+ start.setMonth(start.getMonth() - 1);
42645
+ return [start, end];
42646
+ }
42647
+ },
42648
+ {
42649
+ text: "三个月前",
42650
+ value: () => {
42651
+ const end = /* @__PURE__ */ new Date();
42652
+ const start = /* @__PURE__ */ new Date();
42653
+ start.setMonth(start.getMonth() - 3);
42654
+ return [start, end];
42655
+ }
42656
+ }
42657
+ ];
42658
+ onMounted(() => {
42659
+ emit("update:queryType", "range");
42660
+ });
42661
+ return (_ctx, _cache) => {
42662
+ const _component_el_date_picker = resolveComponent("el-date-picker");
42663
+ return openBlock(), createBlock(_component_el_date_picker, {
42664
+ modelValue: valueModel.value,
42665
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueModel.value = $event),
42666
+ shortcuts,
42667
+ "end-placeholder": "结束日期",
42668
+ format: "YYYY-MM-DD HH:mm:ss",
42669
+ "range-separator": "至",
42670
+ "start-placeholder": "开始日期",
42671
+ type: "datetimerange",
42672
+ "value-format": "YYYY-MM-DD HH:mm:ss"
42673
+ }, null, 8, ["modelValue"]);
42674
+ };
42675
+ }
42676
+ });
42677
+ _sfc_main$4.install = (app) => {
42678
+ app.component(_sfc_main$4.__name, _sfc_main$4);
42679
+ };
42680
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
42681
+ __name: "QueryInput",
42682
+ props: /* @__PURE__ */ mergeModels({
42683
+ value: {
42684
+ required: true
42685
+ }
42686
+ }, {
42687
+ "value": {
42688
+ type: [String, Number]
42689
+ // 正确地定义属性类型
42690
+ },
42691
+ "valueModifiers": {}
42692
+ }),
42693
+ emits: /* @__PURE__ */ mergeModels(["update:value", "update:queryType"], ["update:value"]),
42694
+ setup(__props, { emit: __emit }) {
42695
+ const emit = __emit;
42696
+ const valueModel = useModel(__props, "value");
42697
+ onMounted(() => {
42698
+ emit("update:queryType", "equals");
42699
+ });
42700
+ return (_ctx, _cache) => {
42701
+ const _component_el_input = resolveComponent("el-input");
42702
+ return openBlock(), createBlock(_component_el_input, {
42703
+ modelValue: valueModel.value,
42704
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueModel.value = $event),
42705
+ clearable: ""
42706
+ }, null, 8, ["modelValue"]);
42707
+ };
42708
+ }
42709
+ });
42710
+ _sfc_main$3.install = (app) => {
42711
+ app.component(_sfc_main$3.__name, _sfc_main$3);
42712
+ };
42713
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
42714
+ __name: "QueryInputLike",
42715
+ props: /* @__PURE__ */ mergeModels({
42716
+ value: {
42717
+ required: true
42718
+ }
42719
+ }, {
42720
+ "value": {
42721
+ type: [String, Number]
42722
+ // 正确地定义属性类型
42723
+ },
42724
+ "valueModifiers": {}
42725
+ }),
42726
+ emits: /* @__PURE__ */ mergeModels(["update:value", "update:queryType"], ["update:value"]),
42727
+ setup(__props, { emit: __emit }) {
42728
+ const emit = __emit;
42729
+ const valueModel = useModel(__props, "value");
42730
+ onMounted(() => {
42731
+ emit("update:queryType", "like");
42732
+ });
42733
+ return (_ctx, _cache) => {
42734
+ const _component_el_input = resolveComponent("el-input");
42735
+ return openBlock(), createBlock(_component_el_input, {
42736
+ modelValue: valueModel.value,
42737
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueModel.value = $event),
42738
+ clearable: ""
42739
+ }, null, 8, ["modelValue"]);
42740
+ };
42741
+ }
42742
+ });
42743
+ _sfc_main$2.install = (app) => {
42744
+ app.component(_sfc_main$2.__name, _sfc_main$2);
42745
+ };
42746
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
42747
+ __name: "QuerySelectClient",
42748
+ props: /* @__PURE__ */ mergeModels({
42749
+ value: {
42750
+ required: false,
42751
+ default: () => {
42752
+ return null;
42753
+ }
42754
+ },
42755
+ detail: {
42756
+ required: true,
42757
+ type: Object
42758
+ }
42759
+ }, {
42760
+ "value": {},
42761
+ "valueModifiers": {}
42762
+ }),
42763
+ emits: /* @__PURE__ */ mergeModels(["update:value", "update:queryType"], ["update:value"]),
42764
+ setup(__props, { emit: __emit }) {
42765
+ const emit = __emit;
42766
+ const valueRef = useModel(__props, "value");
42767
+ onMounted(() => {
42768
+ emit("update:queryType", "equals");
42769
+ });
42770
+ return (_ctx, _cache) => {
42771
+ var _a2;
42772
+ const _component_el_option = resolveComponent("el-option");
42773
+ const _component_el_select = resolveComponent("el-select");
42774
+ return openBlock(), createBlock(_component_el_select, {
42775
+ modelValue: valueRef.value,
42776
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event),
42777
+ options: (_a2 = __props.detail) == null ? void 0 : _a2.options,
42778
+ class: "minWidth",
42779
+ clearable: ""
42780
+ }, {
42781
+ default: withCtx(() => {
42782
+ var _a3;
42783
+ return [
42784
+ (openBlock(true), createElementBlock(Fragment, null, renderList((_a3 = __props.detail) == null ? void 0 : _a3.options, (item) => {
42785
+ return openBlock(), createBlock(_component_el_option, {
42786
+ key: item.value,
42787
+ disabled: item.disabled === true,
42788
+ label: item.label,
42789
+ value: item.value
42790
+ }, null, 8, ["disabled", "label", "value"]);
42791
+ }), 128))
42792
+ ];
42793
+ }),
42794
+ _: 1
42795
+ }, 8, ["modelValue", "options"]);
42796
+ };
42797
+ }
42798
+ });
42799
+ const KeliQuerySelect = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-ce16482a"]]);
42800
+ KeliQuerySelect.install = (app) => {
42801
+ app.component(KeliQuerySelect.__name, KeliQuerySelect);
42802
+ };
42803
+ const _sfc_main = /* @__PURE__ */ defineComponent({
42804
+ __name: "ToolBarProxy",
42805
+ props: {
42806
+ toolButtons: {
42807
+ required: true,
42808
+ type: Array
42809
+ }
42810
+ },
42811
+ setup(__props) {
42812
+ const props = __props;
42813
+ const currentComponent = computed(() => {
42814
+ return isMobileDevice.value ? ToolBarMobile : ToolBarClient;
42815
+ });
42816
+ return (_ctx, _cache) => {
42817
+ return openBlock(), createBlock(resolveDynamicComponent(currentComponent.value), normalizeProps(guardReactiveProps(props)), null, 16);
42818
+ };
42819
+ }
42820
+ });
42603
42821
  _sfc_main.install = (app) => {
42604
42822
  app.component(_sfc_main.__name, _sfc_main);
42605
42823
  };
@@ -42610,8 +42828,14 @@ const components = [
42610
42828
  KeliTableCheckBoxAsync,
42611
42829
  KeliTableInput,
42612
42830
  KeliTableInputNumber,
42831
+ _sfc_main$7,
42832
+ _sfc_main$6,
42833
+ _sfc_main$5,
42834
+ KeliQueryBar,
42835
+ _sfc_main$4,
42836
+ _sfc_main$3,
42613
42837
  _sfc_main$2,
42614
- _sfc_main$1,
42838
+ KeliQuerySelect,
42615
42839
  _sfc_main
42616
42840
  ];
42617
42841
  const index = {
@@ -42622,14 +42846,20 @@ const index = {
42622
42846
  }
42623
42847
  };
42624
42848
  export {
42849
+ KeliQueryBar,
42850
+ _sfc_main$4 as KeliQueryDateTime,
42851
+ _sfc_main$3 as KeliQueryInput,
42852
+ _sfc_main$2 as KeliQueryInputLike,
42853
+ KeliQuerySelect,
42625
42854
  KeliTableCardRender,
42626
42855
  KeliTableCheckBoxAsync,
42627
42856
  KeliTableInput,
42628
42857
  KeliTableInputNumber,
42629
42858
  KeliTableRender,
42630
- _sfc_main$2 as KeliTableSelect,
42631
- _sfc_main$1 as KeliTableSelectAsync,
42632
- _sfc_main as KeliTableSwitch,
42859
+ _sfc_main$7 as KeliTableSelect,
42860
+ _sfc_main$6 as KeliTableSelectAsync,
42861
+ _sfc_main$5 as KeliTableSwitch,
42633
42862
  KeliTableTreeRender,
42863
+ _sfc_main as KeliToolBar,
42634
42864
  index as default
42635
42865
  };