@touchvue/ui 1.0.0-beta.46 → 1.0.0-beta.48

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.
Files changed (46) hide show
  1. package/es/components/float/index.d.ts +15 -0
  2. package/es/components/float/src/Float.vue.d.ts +9 -0
  3. package/es/components/float/src/float.d.ts +4 -0
  4. package/es/components/grid/src/grid-item.vue.d.ts +2 -9
  5. package/es/components/scroll/index.d.ts +3 -3
  6. package/es/components/scroll/src/Scroll.vue.d.ts +1 -1
  7. package/es/components/select/src/select.d.ts +14 -0
  8. package/es/components/select/src/select.vue.d.ts +18 -0
  9. package/es/packages/components/float/src/Float.vue2.mjs +141 -122
  10. package/es/packages/components/float/src/Float.vue2.mjs.map +1 -1
  11. package/es/packages/components/float/src/float.mjs +2 -1
  12. package/es/packages/components/float/src/float.mjs.map +1 -1
  13. package/es/packages/components/grid/src/grid-item.vue2.mjs +9 -52
  14. package/es/packages/components/grid/src/grid-item.vue2.mjs.map +1 -1
  15. package/es/packages/components/select/src/hooks/use-select-class-style.mjs +3 -0
  16. package/es/packages/components/select/src/hooks/use-select-class-style.mjs.map +1 -1
  17. package/es/packages/components/select/src/select.mjs +14 -0
  18. package/es/packages/components/select/src/select.mjs.map +1 -1
  19. package/es/packages/components/select/src/select.vue2.mjs +28 -8
  20. package/es/packages/components/select/src/select.vue2.mjs.map +1 -1
  21. package/es/packages/hooks/useDevice.mjs.map +1 -1
  22. package/lib/components/float/index.d.ts +15 -0
  23. package/lib/components/float/src/Float.vue.d.ts +9 -0
  24. package/lib/components/float/src/float.d.ts +4 -0
  25. package/lib/components/grid/src/grid-item.vue.d.ts +2 -9
  26. package/lib/components/scroll/index.d.ts +3 -3
  27. package/lib/components/scroll/src/Scroll.vue.d.ts +1 -1
  28. package/lib/components/select/src/select.d.ts +14 -0
  29. package/lib/components/select/src/select.vue.d.ts +18 -0
  30. package/lib/packages/components/float/src/Float.vue2.js +140 -121
  31. package/lib/packages/components/float/src/Float.vue2.js.map +1 -1
  32. package/lib/packages/components/float/src/float.js +2 -1
  33. package/lib/packages/components/float/src/float.js.map +1 -1
  34. package/lib/packages/components/grid/src/grid-item.vue2.js +8 -51
  35. package/lib/packages/components/grid/src/grid-item.vue2.js.map +1 -1
  36. package/lib/packages/components/select/src/hooks/use-select-class-style.js +3 -0
  37. package/lib/packages/components/select/src/hooks/use-select-class-style.js.map +1 -1
  38. package/lib/packages/components/select/src/select.js +14 -0
  39. package/lib/packages/components/select/src/select.js.map +1 -1
  40. package/lib/packages/components/select/src/select.vue2.js +27 -7
  41. package/lib/packages/components/select/src/select.vue2.js.map +1 -1
  42. package/lib/packages/hooks/useDevice.js.map +1 -1
  43. package/package.json +1 -1
  44. package/theme/components/index.css +41 -3
  45. package/theme/index.css +41 -3
  46. package/theme/skin/default.css +41 -3
@@ -76,6 +76,10 @@ export declare const ToFloat: import("@touchvue/ui/es/utils").SFCWithInstall<{
76
76
  type: BooleanConstructor;
77
77
  default: boolean;
78
78
  };
79
+ speed: {
80
+ type: (NumberConstructor | StringConstructor)[];
81
+ default: number;
82
+ };
79
83
  }>> & Readonly<{}>, {
80
84
  open: (by?: any) => void;
81
85
  close: (e?: Event) => void;
@@ -101,6 +105,7 @@ export declare const ToFloat: import("@touchvue/ui/es/utils").SFCWithInstall<{
101
105
  mask: boolean;
102
106
  dx: string | number;
103
107
  dy: string | number;
108
+ speed: string | number;
104
109
  }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
105
110
  P: {};
106
111
  B: {};
@@ -185,6 +190,10 @@ export declare const ToFloat: import("@touchvue/ui/es/utils").SFCWithInstall<{
185
190
  type: BooleanConstructor;
186
191
  default: boolean;
187
192
  };
193
+ speed: {
194
+ type: (NumberConstructor | StringConstructor)[];
195
+ default: number;
196
+ };
188
197
  }>> & Readonly<{}>, {
189
198
  open: (by?: any) => void;
190
199
  close: (e?: Event) => void;
@@ -210,6 +219,7 @@ export declare const ToFloat: import("@touchvue/ui/es/utils").SFCWithInstall<{
210
219
  mask: boolean;
211
220
  dx: string | number;
212
221
  dy: string | number;
222
+ speed: string | number;
213
223
  }>;
214
224
  __isFragment?: never;
215
225
  __isTeleport?: never;
@@ -291,6 +301,10 @@ export declare const ToFloat: import("@touchvue/ui/es/utils").SFCWithInstall<{
291
301
  type: BooleanConstructor;
292
302
  default: boolean;
293
303
  };
304
+ speed: {
305
+ type: (NumberConstructor | StringConstructor)[];
306
+ default: number;
307
+ };
294
308
  }>> & Readonly<{}>, {
295
309
  open: (by?: any) => void;
296
310
  close: (e?: Event) => void;
@@ -316,6 +330,7 @@ export declare const ToFloat: import("@touchvue/ui/es/utils").SFCWithInstall<{
316
330
  mask: boolean;
317
331
  dx: string | number;
318
332
  dy: string | number;
333
+ speed: string | number;
319
334
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
320
335
  $slots: {
321
336
  default?(_: {}): any;
@@ -82,6 +82,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
82
82
  type: BooleanConstructor;
83
83
  default: boolean;
84
84
  };
85
+ speed: {
86
+ type: (NumberConstructor | StringConstructor)[];
87
+ default: number;
88
+ };
85
89
  }>, {
86
90
  open: typeof open;
87
91
  close: typeof close;
@@ -164,6 +168,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
164
168
  type: BooleanConstructor;
165
169
  default: boolean;
166
170
  };
171
+ speed: {
172
+ type: (NumberConstructor | StringConstructor)[];
173
+ default: number;
174
+ };
167
175
  }>> & Readonly<{}>, {
168
176
  mode: string;
169
177
  left: string | number;
@@ -184,6 +192,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
184
192
  mask: boolean;
185
193
  dx: string | number;
186
194
  dy: string | number;
195
+ speed: string | number;
187
196
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
188
197
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
189
198
  export default _default;
@@ -76,6 +76,10 @@ export declare const floatProps: {
76
76
  type: BooleanConstructor;
77
77
  default: boolean;
78
78
  };
79
+ speed: {
80
+ type: (NumberConstructor | StringConstructor)[];
81
+ default: number;
82
+ };
79
83
  };
80
84
  export type FloatProps = ExtractPropTypes<typeof floatProps>;
81
85
  export declare const floatEmits: string[];
@@ -1,20 +1,13 @@
1
- export interface GridProps {
2
- space?: number | string;
3
- spaceX?: number | string;
4
- spaceY?: number | string;
5
- }
6
1
  export interface Props {
7
- merge?: number | string;
8
2
  width?: number | string;
9
- side?: boolean;
3
+ flex?: boolean;
10
4
  }
11
5
  declare function __VLS_template(): {
12
6
  default?(_: {}): any;
13
7
  };
14
8
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
9
+ flex: boolean;
15
10
  width: number | string;
16
- merge: number | string;
17
- side: boolean;
18
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
19
12
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
20
13
  export default _default;
@@ -88,8 +88,8 @@ export declare const ToScroll: import("@touchvue/ui/es/utils").SFCWithInstall<{
88
88
  modelValue: string | number;
89
89
  bottom: string | number;
90
90
  top: string | number;
91
- virtual: boolean;
92
91
  speed: number;
92
+ virtual: boolean;
93
93
  barDisplay: string;
94
94
  except: string;
95
95
  }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
@@ -180,8 +180,8 @@ export declare const ToScroll: import("@touchvue/ui/es/utils").SFCWithInstall<{
180
180
  modelValue: string | number;
181
181
  bottom: string | number;
182
182
  top: string | number;
183
- virtual: boolean;
184
183
  speed: number;
184
+ virtual: boolean;
185
185
  barDisplay: string;
186
186
  except: string;
187
187
  }>;
@@ -277,8 +277,8 @@ export declare const ToScroll: import("@touchvue/ui/es/utils").SFCWithInstall<{
277
277
  modelValue: string | number;
278
278
  bottom: string | number;
279
279
  top: string | number;
280
- virtual: boolean;
281
280
  speed: number;
281
+ virtual: boolean;
282
282
  barDisplay: string;
283
283
  except: string;
284
284
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -145,8 +145,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
145
145
  modelValue: string | number;
146
146
  bottom: string | number;
147
147
  top: string | number;
148
- virtual: boolean;
149
148
  speed: number;
149
+ virtual: boolean;
150
150
  barDisplay: string;
151
151
  except: string;
152
152
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -431,6 +431,20 @@ export declare const selectProps: {
431
431
  type: StringConstructor;
432
432
  default: string;
433
433
  };
434
+ /**
435
+ * 是否开启远程搜索
436
+ */
437
+ remote: {
438
+ type: BooleanConstructor;
439
+ default: boolean;
440
+ };
441
+ /**
442
+ * 远程搜索方法
443
+ */
444
+ remoteMethod: {
445
+ type: FunctionConstructor;
446
+ default: any;
447
+ };
434
448
  };
435
449
  export type SelectProps = ExtractPropTypes<typeof selectProps>;
436
450
  export {};
@@ -242,6 +242,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
242
242
  type: StringConstructor;
243
243
  default: string;
244
244
  };
245
+ remote: {
246
+ type: BooleanConstructor;
247
+ default: boolean;
248
+ };
249
+ remoteMethod: {
250
+ type: FunctionConstructor;
251
+ default: any;
252
+ };
245
253
  }>, {
246
254
  closeLayer: () => void;
247
255
  setSelected: (val: any) => void;
@@ -486,6 +494,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
486
494
  type: StringConstructor;
487
495
  default: string;
488
496
  };
497
+ remote: {
498
+ type: BooleanConstructor;
499
+ default: boolean;
500
+ };
501
+ remoteMethod: {
502
+ type: FunctionConstructor;
503
+ default: any;
504
+ };
489
505
  }>> & Readonly<{
490
506
  onSelect?: (value: string | number) => any;
491
507
  onChange?: (value: SelectValueType, option: any) => any;
@@ -550,6 +566,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
550
566
  focusWhenClear: boolean;
551
567
  beforeChange: Function;
552
568
  valueType: string;
569
+ remote: boolean;
570
+ remoteMethod: Function;
553
571
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
554
572
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
555
573
  export default _default;
@@ -1,4 +1,4 @@
1
- import { defineComponent, useAttrs, ref, watch, computed, onMounted, onActivated, onBeforeUnmount, onDeactivated, nextTick, openBlock, createBlock, Teleport, createElementBlock, normalizeClass, unref, normalizeStyle, withModifiers, createElementVNode, renderSlot, createCommentVNode } from 'vue';
1
+ import { defineComponent, useAttrs, ref, watch, computed, onMounted, onActivated, onBeforeUnmount, onDeactivated, nextTick, openBlock, createElementBlock, Fragment, createElementVNode, createBlock, Teleport, normalizeClass, unref, normalizeStyle, withModifiers, renderSlot, createCommentVNode } from 'vue';
2
2
  import { floatProps, floatEmits } from './float.mjs';
3
3
 
4
4
  const __default__ = defineComponent({
@@ -59,6 +59,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
59
59
  arr.push("is-mask");
60
60
  return arr;
61
61
  });
62
+ const transitionTransform = computed(() => `transform ${props.speed}ms ease-out`);
62
63
  const setStyle = computed(() => {
63
64
  var _a;
64
65
  const obj = {};
@@ -147,6 +148,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
147
148
  } else if (link2) {
148
149
  if (wrapper.value)
149
150
  wrapper.value.style.height = "";
151
+ if (el.value) {
152
+ el.value.style.transition = "none";
153
+ el.value.style.transform = "";
154
+ }
150
155
  nextTick(() => {
151
156
  var _a, _b;
152
157
  if (!props.width && el.value) {
@@ -209,71 +214,77 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
209
214
  }
210
215
  }
211
216
  }
212
- if (el.value === null)
213
- return;
214
- if (iposition.value === "top") {
215
- el.value.style.top = "";
216
- el.value.style.bottom = bottomSpace + linkHeight - 1 - dy + "px";
217
- }
218
- if (iposition.value === "bottom") {
219
- el.value.style.top = topSpace + linkHeight - 1 + dy + "px";
220
- el.value.style.bottom = "";
221
- }
222
- if (iposition.value === "top" || iposition.value === "bottom") {
223
- if (ialign.value === "left") {
224
- el.value.style.left = leftSpace + dx + "px";
225
- el.value.style.right = "";
226
- } else if (ialign.value === "center") {
227
- el.value.style.left = leftSpace - wrapperWidth / 2 + linkWidth / 2 + "px";
228
- el.value.style.right = "";
229
- } else {
230
- el.value.style.right = rightSpace - dx + "px";
231
- el.value.style.left = "";
232
- }
233
- }
234
- if (iposition.value === "left") {
235
- el.value.style.right = rightSpace + linkWidth - dx - 1 + "px";
236
- el.value.style.left = "";
237
- }
238
- if (iposition.value === "right") {
239
- el.value.style.left = leftSpace + linkWidth + dx - 1 + "px";
240
- el.value.style.right = "";
241
- }
242
- if (iposition.value === "left" || iposition.value === "right") {
243
- if (ialign.value === "bottom") {
217
+ if (el.value) {
218
+ if (iposition.value === "top") {
244
219
  el.value.style.top = "";
245
- el.value.style.bottom = bottomSpace - dy + "px";
246
- } else {
247
- el.value.style.top = topSpace + dy + "px";
220
+ el.value.style.bottom = bottomSpace + linkHeight - 1 - dy + "px";
221
+ }
222
+ if (iposition.value === "bottom") {
223
+ el.value.style.top = topSpace + linkHeight - 1 + dy + "px";
248
224
  el.value.style.bottom = "";
249
225
  }
250
- }
251
- if (iposition.value === "bottom") {
252
- useSpace = bottomSpace;
253
- origin.value = "top";
254
- } else if (iposition.value === "top") {
255
- useSpace = topSpace;
256
- origin.value = "bottom";
257
- } else {
258
- if (ialign.value === "bottom") {
259
- useSpace = topSpace + linkHeight;
260
- origin.value = "bottom";
261
- } else if (ialign.value === "top") {
262
- useSpace = bottomSpace + linkHeight;
226
+ if (iposition.value === "top" || iposition.value === "bottom") {
227
+ if (ialign.value === "left") {
228
+ el.value.style.left = leftSpace + dx + "px";
229
+ el.value.style.right = "";
230
+ } else if (ialign.value === "center") {
231
+ el.value.style.left = leftSpace - wrapperWidth / 2 + linkWidth / 2 + "px";
232
+ el.value.style.right = "";
233
+ } else {
234
+ el.value.style.right = rightSpace - dx + "px";
235
+ el.value.style.left = "";
236
+ }
237
+ }
238
+ if (iposition.value === "left") {
239
+ el.value.style.right = rightSpace + linkWidth - dx - 1 + "px";
240
+ el.value.style.left = "";
241
+ }
242
+ if (iposition.value === "right") {
243
+ el.value.style.left = leftSpace + linkWidth + dx - 1 + "px";
244
+ el.value.style.right = "";
245
+ }
246
+ if (iposition.value === "left" || iposition.value === "right") {
247
+ if (ialign.value === "bottom") {
248
+ el.value.style.top = "";
249
+ el.value.style.bottom = bottomSpace - dy + "px";
250
+ } else {
251
+ el.value.style.top = topSpace + dy + "px";
252
+ el.value.style.bottom = "";
253
+ }
254
+ }
255
+ if (iposition.value === "bottom") {
256
+ useSpace = bottomSpace;
263
257
  origin.value = "top";
258
+ } else if (iposition.value === "top") {
259
+ useSpace = topSpace;
260
+ origin.value = "bottom";
264
261
  } else {
265
- console.error("[ToFloat] \u6D6E\u5C42\u5BF9\u9F50\u65B9\u5F0F\u8BBE\u7F6E\u9519\u8BEF\uFF01position \u5728\u5DE6\u53F3\u4E24\u4FA7\u65F6\uFF0C\u5BF9\u9F50\u65B9\u5F0F\u5E94\u662F\u9876\u90E8\u6216\u5E95\u90E8");
262
+ if (ialign.value === "bottom") {
263
+ useSpace = topSpace + linkHeight;
264
+ origin.value = "bottom";
265
+ } else if (ialign.value === "top") {
266
+ useSpace = bottomSpace + linkHeight;
267
+ origin.value = "top";
268
+ } else {
269
+ console.error("[ToFloat] \u6D6E\u5C42\u5BF9\u9F50\u65B9\u5F0F\u8BBE\u7F6E\u9519\u8BEF\uFF01position \u5728\u5DE6\u53F3\u4E24\u4FA7\u65F6\uFF0C\u5BF9\u9F50\u65B9\u5F0F\u5E94\u662F\u9876\u90E8\u6216\u5E95\u90E8");
270
+ }
271
+ }
272
+ if (useSpace < wrapperHeight && wrapper.value) {
273
+ isOver.value = true;
274
+ wrapper.value.style.height = useSpace + "px";
275
+ }
276
+ if (link2) {
277
+ const ratio = link2.getBoundingClientRect().width / link2.offsetWidth;
278
+ const ratio2 = Number(getComputedStyle(link2).fontSize.trim().toLowerCase().replace(/px$/, "")) / Number(getComputedStyle(document.body).fontSize.trim().toLowerCase().replace(/px$/, ""));
279
+ size.value = ratio * ratio2;
266
280
  }
267
281
  }
268
- if (useSpace < wrapperHeight && wrapper.value) {
269
- isOver.value = true;
270
- wrapper.value.style.height = useSpace + "px";
271
- }
272
- if (link2) {
273
- const ratio = link2.getBoundingClientRect().width / link2.offsetWidth;
274
- const ratio2 = Number(getComputedStyle(link2).fontSize.trim().toLowerCase().replace(/px$/, "")) / Number(getComputedStyle(document.body).fontSize.trim().toLowerCase().replace(/px$/, ""));
275
- size.value = ratio * ratio2;
276
- }
282
+ }
283
+ if (el.value) {
284
+ setOpenStyle();
285
+ }
286
+ if (link2 && !("x" in link2) && !("touches" in link2)) {
287
+ setScrollStatus();
277
288
  }
278
289
  });
279
290
  }
@@ -314,7 +325,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
314
325
  emit("opened");
315
326
  clearTimeout(timer);
316
327
  timer = null;
317
- }, 100);
328
+ }, Number(props.speed));
318
329
  isOpen.value = true;
319
330
  } else {
320
331
  document.body.addEventListener("mousedown", blur);
@@ -343,10 +354,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
343
354
  }
344
355
  setTimeout(() => {
345
356
  set(link.value);
346
- setOpenStyle();
347
- if (link.value && !("x" in link.value) && !("touches" in link.value)) {
348
- setScrollStatus();
349
- }
350
357
  }, 0);
351
358
  if (props.afterOpen && Object.prototype.toString.call(props.afterOpen) === "[object Function]") {
352
359
  props.afterOpen();
@@ -372,22 +379,24 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
372
379
  wrapper.value.style.transform = "translateX(-100%)";
373
380
  }
374
381
  setTimeout(() => {
375
- wrapper.value.style.transition = "transform 100ms ease-out";
382
+ wrapper.value.style.transition = transitionTransform.value;
376
383
  wrapper.value.style.transform = "translateY(0)";
377
384
  setTimeout(() => {
378
385
  wrapper.value.style.transform = "";
379
- }, 100);
386
+ }, Number(props.speed));
380
387
  }, 0);
381
388
  } else {
389
+ el.value.style.transition = "none";
382
390
  el.value.style.transform = "scale(1, 0)";
383
391
  el.value.style.visibility = "visible";
384
- setTimeout(() => {
385
- el.value.style.transition = "transform 100ms ease-out";
392
+ requestAnimationFrame(() => {
393
+ el.value.style.transition = transitionTransform.value;
386
394
  el.value.style.transform = "scale(1)";
387
395
  setTimeout(() => {
388
396
  el.value.style.transform = "";
389
- }, 100);
390
- }, 0);
397
+ el.value.style.transition = "";
398
+ }, Number(props.speed));
399
+ });
391
400
  }
392
401
  el.value.style.zIndex = (_a = window.$TouchUI) == null ? void 0 : _a.zIndex;
393
402
  }
@@ -437,7 +446,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
437
446
  if (props.afterClose && Object.prototype.toString.call(props.afterClose) === "[object Function]") {
438
447
  props.afterClose();
439
448
  }
440
- }, 100);
449
+ }, Number(props.speed));
441
450
  }
442
451
  function setCloseStyle() {
443
452
  if (props.slide) {
@@ -454,7 +463,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
454
463
  wrapper.value.style.transform = "translateX(-100%)";
455
464
  }
456
465
  } else {
457
- el.value.style.transform = "scale(1,0)";
466
+ el.value.style.transition = transitionTransform.value;
467
+ el.value.style.transform = "scale(1, 0)";
458
468
  }
459
469
  }
460
470
  function toggle(by) {
@@ -513,63 +523,72 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
513
523
  }
514
524
  __expose({ open, close, toggle, set });
515
525
  return (_ctx, _cache) => {
516
- return openBlock(), createBlock(Teleport, {
517
- to: "body",
518
- disabled: !_ctx.global
519
- }, [
520
- (_ctx.lazy ? ifShow.value : true) ? (openBlock(), createElementBlock("div", {
521
- key: 0,
522
- ref_key: "el",
523
- ref: el,
524
- class: normalizeClass(["to-float", [setClass.value, unref(attrs).class]]),
525
- style: normalizeStyle([setStyle.value, unref(attrs).style]),
526
- onMousedown: ($event) => _ctx.$emit("click"),
527
- onTouchstart: ($event) => _ctx.$emit("click"),
528
- onMouseenter: ($event) => _ctx.$emit("mouseenter"),
529
- onMouseleave: ($event) => _ctx.$emit("mouseleave"),
530
- onClick: withModifiers(() => {
531
- }, ["stop"])
532
- }, [
533
- createElementVNode(
534
- "div",
535
- {
536
- ref_key: "mask",
537
- ref: mask,
538
- class: "to-float-mask",
539
- onClick: maskClickHandle
540
- },
541
- null,
542
- 512
543
- /* NEED_PATCH */
544
- ),
545
- createElementVNode(
546
- "div",
547
- {
548
- ref_key: "wrapper",
549
- ref: wrapper,
550
- class: "to-float-wrapper",
551
- style: normalizeStyle(_ctx.slide ? wrapperStyle.value : null)
552
- },
553
- [
526
+ return openBlock(), createElementBlock(
527
+ Fragment,
528
+ null,
529
+ [
530
+ createElementVNode("div", null, "1"),
531
+ (openBlock(), createBlock(Teleport, {
532
+ to: "body",
533
+ disabled: !_ctx.global
534
+ }, [
535
+ (_ctx.lazy ? ifShow.value : true) ? (openBlock(), createElementBlock("div", {
536
+ key: 0,
537
+ ref_key: "el",
538
+ ref: el,
539
+ class: normalizeClass(["to-float", [setClass.value, unref(attrs).class]]),
540
+ style: normalizeStyle([setStyle.value, unref(attrs).style]),
541
+ onMousedown: ($event) => _ctx.$emit("click"),
542
+ onTouchstart: ($event) => _ctx.$emit("click"),
543
+ onMouseenter: ($event) => _ctx.$emit("mouseenter"),
544
+ onMouseleave: ($event) => _ctx.$emit("mouseleave"),
545
+ onClick: withModifiers(() => {
546
+ }, ["stop"])
547
+ }, [
554
548
  createElementVNode(
555
549
  "div",
556
550
  {
557
- ref_key: "content",
558
- ref: content,
559
- class: "to-float-content"
551
+ ref_key: "mask",
552
+ ref: mask,
553
+ class: "to-float-mask",
554
+ onClick: maskClickHandle
560
555
  },
561
- [
562
- renderSlot(_ctx.$slots, "default")
563
- ],
556
+ null,
564
557
  512
565
558
  /* NEED_PATCH */
559
+ ),
560
+ createElementVNode(
561
+ "div",
562
+ {
563
+ ref_key: "wrapper",
564
+ ref: wrapper,
565
+ class: "to-float-wrapper",
566
+ style: normalizeStyle(_ctx.slide ? wrapperStyle.value : null)
567
+ },
568
+ [
569
+ createElementVNode(
570
+ "div",
571
+ {
572
+ ref_key: "content",
573
+ ref: content,
574
+ class: "to-float-content"
575
+ },
576
+ [
577
+ renderSlot(_ctx.$slots, "default")
578
+ ],
579
+ 512
580
+ /* NEED_PATCH */
581
+ )
582
+ ],
583
+ 4
584
+ /* STYLE */
566
585
  )
567
- ],
568
- 4
569
- /* STYLE */
570
- )
571
- ], 46, ["onMousedown", "onTouchstart", "onMouseenter", "onMouseleave", "onClick"])) : createCommentVNode("v-if", true)
572
- ], 8, ["disabled"]);
586
+ ], 46, ["onMousedown", "onTouchstart", "onMouseenter", "onMouseleave", "onClick"])) : createCommentVNode("v-if", true)
587
+ ], 8, ["disabled"]))
588
+ ],
589
+ 64
590
+ /* STABLE_FRAGMENT */
591
+ );
573
592
  };
574
593
  }
575
594
  });