luyoumin-ui 0.0.64 → 0.0.65

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,3 +1,4 @@
1
+ declare function getDropdownBoxPoints(): void;
1
2
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
3
  modelValue: {
3
4
  type: (StringConstructor | {
@@ -121,7 +122,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
121
122
  type: BooleanConstructor;
122
123
  default: boolean;
123
124
  };
124
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
125
+ }, {
126
+ getDropdownBoxPoints: typeof getDropdownBoxPoints;
127
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
125
128
  "update:modelValue": (val: any) => void;
126
129
  selectCompleted: () => void;
127
130
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -5942,7 +5942,7 @@ const __vite_glob_0_27 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
5942
5942
  __proto__: null,
5943
5943
  default: LymCascader
5944
5944
  }, Symbol.toStringTag, { value: "Module" }));
5945
- const _withScopeId$3 = (n) => (pushScopeId("data-v-b04c8490"), n = n(), popScopeId(), n);
5945
+ const _withScopeId$3 = (n) => (pushScopeId("data-v-089f8bd8"), n = n(), popScopeId(), n);
5946
5946
  const _hoisted_1$k = { class: "lym-select__wrapper lym-flex-cb no-select" };
5947
5947
  const _hoisted_2$6 = { style: { "flex": "1" } };
5948
5948
  const _hoisted_3$6 = { class: "lym-flex-c lym-select__multiple-item" };
@@ -6107,7 +6107,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
6107
6107
  }
6108
6108
  },
6109
6109
  emits: ["update:modelValue", "selectCompleted"],
6110
- setup(__props, { emit: __emit }) {
6110
+ setup(__props, { expose: __expose, emit: __emit }) {
6111
6111
  const props = __props;
6112
6112
  const emit = __emit;
6113
6113
  const checkOptions = ref([]);
@@ -6132,7 +6132,6 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
6132
6132
  const lymSelectRef = ref();
6133
6133
  const dropdownBoxPoints = ref({ x: 0, y: 0 });
6134
6134
  const formDisabled = inject("formDisabled", null);
6135
- const updatePointsInterval = ref(null);
6136
6135
  watch(() => props.modelValue, (cur, old) => {
6137
6136
  if (cur !== old) {
6138
6137
  if (isChangeByInner.value) {
@@ -6160,12 +6159,6 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
6160
6159
  onMounted(() => {
6161
6160
  initData();
6162
6161
  });
6163
- onUnmounted(() => {
6164
- if (updatePointsInterval.value) {
6165
- clearInterval(updatePointsInterval.value);
6166
- updatePointsInterval.value = null;
6167
- }
6168
- });
6169
6162
  const isDisabled = computed(() => {
6170
6163
  return props.disabled || formDisabled ? formDisabled.value : false;
6171
6164
  });
@@ -6247,17 +6240,13 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
6247
6240
  }
6248
6241
  nextTick(() => {
6249
6242
  getDropdownBoxPoints();
6250
- if (props.needIntervalForPoints) {
6251
- updatePointsInterval.value = setInterval(() => {
6252
- console.log("updatePointsInterval--", updatePointsInterval.value);
6253
- getDropdownBoxPoints();
6254
- }, 1e4);
6255
- }
6256
6243
  });
6257
6244
  }
6258
6245
  function getDropdownBoxPoints() {
6246
+ console.log("lymSelectRef.value----", lymSelectRef.value);
6259
6247
  dropdownBoxPoints.value.x = lymSelectRef.value.offsetLeft;
6260
6248
  dropdownBoxPoints.value.y = lymSelectRef.value.offsetTop + lymSelectRef.value.offsetHeight + 15;
6249
+ console.log("dropdownBoxPoints.value----", dropdownBoxPoints.value);
6261
6250
  }
6262
6251
  function onMouseEnter(e) {
6263
6252
  const targetDom = e.target;
@@ -6523,6 +6512,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
6523
6512
  emit("update:modelValue", result);
6524
6513
  emit("selectCompleted");
6525
6514
  }
6515
+ __expose({
6516
+ getDropdownBoxPoints
6517
+ });
6526
6518
  return (_ctx, _cache2) => {
6527
6519
  const _directive_lym_click_outside = resolveDirective("lym-click-outside");
6528
6520
  return withDirectives((openBlock(), createElementBlock("div", {
@@ -6751,7 +6743,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
6751
6743
  };
6752
6744
  }
6753
6745
  });
6754
- const LymSelect = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-b04c8490"]]);
6746
+ const LymSelect = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-089f8bd8"]]);
6755
6747
  const __vite_glob_0_20 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6756
6748
  __proto__: null,
6757
6749
  default: LymSelect