@varlet/ui 2.13.5-alpha.1690486822677 → 2.13.5

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,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "2.13.5-alpha.1690486822677",
4
+ "version": "2.13.5",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -104,7 +104,7 @@
104
104
  "description": "The location of the action sheet to mount",
105
105
  "default": "body",
106
106
  "value": {
107
- "type": "TeleportProps['to']",
107
+ "type": "TeleportProps['to'] | false",
108
108
  "kind": "expression"
109
109
  }
110
110
  }
@@ -290,6 +290,15 @@
290
290
  "kind": "expression"
291
291
  }
292
292
  },
293
+ {
294
+ "name": "alt",
295
+ "description": "Image alt text, the same as the native attribute of the `img` tag",
296
+ "default": "-",
297
+ "value": {
298
+ "type": "string",
299
+ "kind": "expression"
300
+ }
301
+ },
293
302
  {
294
303
  "name": "fit",
295
304
  "description": "Filling mode of avatar image, optional value `fill contain cover none scale-down`",
@@ -2287,7 +2296,7 @@
2287
2296
  "description": "The location of the Dialog to mount",
2288
2297
  "default": "body",
2289
2298
  "value": {
2290
- "type": "TeleportProps['to']",
2299
+ "type": "TeleportProps['to'] | false",
2291
2300
  "kind": "expression"
2292
2301
  }
2293
2302
  }
@@ -2456,7 +2465,7 @@
2456
2465
  "description": "The location where the dragged element is mounted",
2457
2466
  "default": "body",
2458
2467
  "value": {
2459
- "type": "TeleportProps['to']",
2468
+ "type": "TeleportProps['to'] | false",
2460
2469
  "kind": "expression"
2461
2470
  }
2462
2471
  }
@@ -2535,10 +2544,10 @@
2535
2544
  },
2536
2545
  {
2537
2546
  "name": "drag",
2538
- "description": "Whether to enable drag",
2547
+ "description": "Drag component props, for deep customization (support `direction` `attraction` `boundary`)",
2539
2548
  "default": "false",
2540
2549
  "value": {
2541
- "type": "boolean",
2550
+ "type": "boolean | DragProps",
2542
2551
  "kind": "expression"
2543
2552
  }
2544
2553
  },
@@ -2700,7 +2709,7 @@
2700
2709
  "description": "element to which the component mounts",
2701
2710
  "default": "body",
2702
2711
  "value": {
2703
- "type": "TeleportProps['to']",
2712
+ "type": "TeleportProps['to'] | false",
2704
2713
  "kind": "expression"
2705
2714
  }
2706
2715
  },
@@ -3101,7 +3110,7 @@
3101
3110
  "description": "The location of the pop-up layer to mount",
3102
3111
  "default": "body",
3103
3112
  "value": {
3104
- "type": "TeleportProps['to']",
3113
+ "type": "TeleportProps['to'] | false",
3105
3114
  "kind": "expression"
3106
3115
  }
3107
3116
  },
@@ -3822,7 +3831,7 @@
3822
3831
  "description": "The location of the menu mount",
3823
3832
  "default": "body",
3824
3833
  "value": {
3825
- "type": "TeleportProps['to']",
3834
+ "type": "TeleportProps['to'] | false",
3826
3835
  "kind": "expression"
3827
3836
  }
3828
3837
  },
@@ -3988,7 +3997,7 @@
3988
3997
  "description": "The location of the Overlay to mount",
3989
3998
  "default": "-",
3990
3999
  "value": {
3991
- "type": "TeleportProps['to']",
4000
+ "type": "TeleportProps['to'] | false",
3992
4001
  "kind": "expression"
3993
4002
  }
3994
4003
  }
@@ -4445,7 +4454,7 @@
4445
4454
  "description": "The location of the Popup to mount",
4446
4455
  "default": "body",
4447
4456
  "value": {
4448
- "type": "TeleportProps['to']",
4457
+ "type": "TeleportProps['to'] | false",
4449
4458
  "kind": "expression"
4450
4459
  }
4451
4460
  },
@@ -5606,7 +5615,7 @@
5606
5615
  "description": "The location of the Snackbar to mount",
5607
5616
  "default": "body",
5608
5617
  "value": {
5609
- "type": "TeleportProps['to']",
5618
+ "type": "TeleportProps['to'] | false",
5610
5619
  "kind": "expression"
5611
5620
  }
5612
5621
  }
@@ -6619,7 +6628,7 @@
6619
6628
  "description": "The location of the tooltip mount",
6620
6629
  "default": "body",
6621
6630
  "value": {
6622
- "type": "TeleportProps['to']",
6631
+ "type": "TeleportProps['to'] | false",
6623
6632
  "kind": "expression"
6624
6633
  }
6625
6634
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "2.13.5-alpha.1690486822677",
4
+ "version": "2.13.5",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -104,7 +104,7 @@
104
104
  "description": "动作面板挂载的位置",
105
105
  "default": "body",
106
106
  "value": {
107
- "type": "TeleportProps['to']",
107
+ "type": "TeleportProps['to'] | false",
108
108
  "kind": "expression"
109
109
  }
110
110
  }
@@ -290,6 +290,15 @@
290
290
  "kind": "expression"
291
291
  }
292
292
  },
293
+ {
294
+ "name": "alt",
295
+ "description": "替代文本,和 `img` 标签原生属性一致",
296
+ "default": "-",
297
+ "value": {
298
+ "type": "string",
299
+ "kind": "expression"
300
+ }
301
+ },
293
302
  {
294
303
  "name": "fit",
295
304
  "description": "头像图片的填充模式,可选值 `fill contain cover none scale-down`",
@@ -2446,7 +2455,7 @@
2446
2455
  "description": "弹出层挂载的位置",
2447
2456
  "default": "body",
2448
2457
  "value": {
2449
- "type": "TeleportProps['to']",
2458
+ "type": "TeleportProps['to'] | false",
2450
2459
  "kind": "expression"
2451
2460
  }
2452
2461
  }
@@ -2615,7 +2624,7 @@
2615
2624
  "description": "拖拽元素挂载的位置",
2616
2625
  "default": "body",
2617
2626
  "value": {
2618
- "type": "TeleportProps['to']",
2627
+ "type": "TeleportProps['to'] | false",
2619
2628
  "kind": "expression"
2620
2629
  }
2621
2630
  }
@@ -2694,10 +2703,10 @@
2694
2703
  },
2695
2704
  {
2696
2705
  "name": "drag",
2697
- "description": "是否开启拖拽",
2706
+ "description": "Drag 组件配置,用于深度定制(支持 `direction` `attraction` `boundary`)",
2698
2707
  "default": "false",
2699
2708
  "value": {
2700
- "type": "boolean",
2709
+ "type": "boolean | DragProps",
2701
2710
  "kind": "expression"
2702
2711
  }
2703
2712
  },
@@ -2859,7 +2868,7 @@
2859
2868
  "description": "组件挂载的元素",
2860
2869
  "default": "body",
2861
2870
  "value": {
2862
- "type": "TeleportProps['to']",
2871
+ "type": "TeleportProps['to'] | false",
2863
2872
  "kind": "expression"
2864
2873
  }
2865
2874
  },
@@ -3269,7 +3278,7 @@
3269
3278
  "description": "弹出层挂载的位置",
3270
3279
  "default": "body",
3271
3280
  "value": {
3272
- "type": "TeleportProps['to']",
3281
+ "type": "TeleportProps['to'] | false",
3273
3282
  "kind": "expression"
3274
3283
  }
3275
3284
  },
@@ -4003,7 +4012,7 @@
4003
4012
  "description": "菜单挂载的位置",
4004
4013
  "default": "body",
4005
4014
  "value": {
4006
- "type": "TeleportProps['to']",
4015
+ "type": "TeleportProps['to'] | false",
4007
4016
  "kind": "expression"
4008
4017
  }
4009
4018
  },
@@ -4169,7 +4178,7 @@
4169
4178
  "description": "遮罩层挂载的位置",
4170
4179
  "default": "-",
4171
4180
  "value": {
4172
- "type": "TeleportProps['to']",
4181
+ "type": "TeleportProps['to'] | false",
4173
4182
  "kind": "expression"
4174
4183
  }
4175
4184
  }
@@ -4626,7 +4635,7 @@
4626
4635
  "description": "弹出层挂载的位置",
4627
4636
  "default": "body",
4628
4637
  "value": {
4629
- "type": "TeleportProps['to']",
4638
+ "type": "TeleportProps['to'] | false",
4630
4639
  "kind": "expression"
4631
4640
  }
4632
4641
  },
@@ -5959,7 +5968,7 @@
5959
5968
  "description": "弹出层挂载的位置",
5960
5969
  "default": "body",
5961
5970
  "value": {
5962
- "type": "TeleportProps['to']",
5971
+ "type": "TeleportProps['to'] | false",
5963
5972
  "kind": "expression"
5964
5973
  }
5965
5974
  }
@@ -6972,7 +6981,7 @@
6972
6981
  "description": "挂载的位置",
6973
6982
  "default": "body",
6974
6983
  "value": {
6975
- "type": "TeleportProps['to']",
6984
+ "type": "TeleportProps['to'] | false",
6976
6985
  "kind": "expression"
6977
6986
  }
6978
6987
  },
package/lib/varlet.cjs.js CHANGED
@@ -1081,7 +1081,7 @@ var props$1b = {
1081
1081
  default: false
1082
1082
  },
1083
1083
  teleport: {
1084
- type: [String, Object],
1084
+ type: [String, Object, Boolean],
1085
1085
  default: "body"
1086
1086
  },
1087
1087
  onOpen: defineListenerProp(),
@@ -2390,6 +2390,9 @@ var props$17 = {
2390
2390
  validator: sizeValidator$6,
2391
2391
  default: "normal"
2392
2392
  },
2393
+ alt: {
2394
+ type: String
2395
+ },
2393
2396
  color: {
2394
2397
  type: String
2395
2398
  },
@@ -2426,8 +2429,8 @@ var {
2426
2429
  n: n$1e,
2427
2430
  classes: classes$11
2428
2431
  } = createNamespace("avatar");
2429
- var _hoisted_1$s = ["src", "lazy-loading", "lazy-error"];
2430
- var _hoisted_2$f = ["src"];
2432
+ var _hoisted_1$s = ["src", "alt", "lazy-loading", "lazy-error"];
2433
+ var _hoisted_2$f = ["src", "alt"];
2431
2434
  function __render__$1e(_ctx, _cache) {
2432
2435
  var _directive_lazy = vue.resolveDirective("lazy");
2433
2436
  return vue.openBlock(), vue.createElementBlock(
@@ -2454,6 +2457,7 @@ function __render__$1e(_ctx, _cache) {
2454
2457
  key: 0,
2455
2458
  class: vue.normalizeClass(_ctx.n("image")),
2456
2459
  src: _ctx.src,
2460
+ alt: _ctx.alt,
2457
2461
  style: vue.normalizeStyle({
2458
2462
  objectFit: _ctx.fit
2459
2463
  }),
@@ -2466,6 +2470,7 @@ function __render__$1e(_ctx, _cache) {
2466
2470
  key: 1,
2467
2471
  class: vue.normalizeClass(_ctx.n("image")),
2468
2472
  src: _ctx.src,
2473
+ alt: _ctx.alt,
2469
2474
  style: vue.normalizeStyle({
2470
2475
  objectFit: _ctx.fit
2471
2476
  }),
@@ -11278,7 +11283,7 @@ var props$J = {
11278
11283
  default: 90
11279
11284
  },
11280
11285
  teleport: {
11281
- type: [String, Object],
11286
+ type: [String, Object, Boolean],
11282
11287
  default: "body"
11283
11288
  }
11284
11289
  };
@@ -11331,8 +11336,8 @@ var {
11331
11336
  } = createNamespace("drag");
11332
11337
  function __render__$M(_ctx, _cache) {
11333
11338
  return vue.openBlock(), vue.createBlock(vue.Teleport, {
11334
- to: _ctx.teleport,
11335
- disabled: _ctx.teleportDisabled
11339
+ to: _ctx.teleport === false ? void 0 : _ctx.teleport,
11340
+ disabled: _ctx.teleportDisabled || _ctx.teleport === false
11336
11341
  }, [vue.createElementVNode(
11337
11342
  "div",
11338
11343
  vue.mergeProps({
@@ -13279,7 +13284,7 @@ var props$I = {
13279
13284
  default: 0
13280
13285
  },
13281
13286
  teleport: {
13282
- type: [String, Object],
13287
+ type: [String, Object, Boolean],
13283
13288
  default: "body"
13284
13289
  },
13285
13290
  sameWidth: {
@@ -13318,8 +13323,8 @@ function __render__$L(_ctx, _cache) {
13318
13323
  })
13319
13324
  },
13320
13325
  [vue.renderSlot(_ctx.$slots, "default"), (vue.openBlock(), vue.createBlock(vue.Teleport, {
13321
- to: _ctx.teleport,
13322
- disabled: _ctx.teleportDisabled
13326
+ to: _ctx.teleport === false ? void 0 : _ctx.teleport,
13327
+ disabled: _ctx.teleportDisabled || _ctx.teleport === false
13323
13328
  }, [vue.createVNode(vue.Transition, {
13324
13329
  name: _ctx.n(),
13325
13330
  onAfterEnter: _ctx.onOpened,
@@ -13569,7 +13574,7 @@ var props$G = {
13569
13574
  default: true
13570
13575
  },
13571
13576
  drag: {
13572
- type: Boolean,
13577
+ type: [Object, Boolean],
13573
13578
  default: false
13574
13579
  },
13575
13580
  type: {
@@ -13642,7 +13647,7 @@ var props$G = {
13642
13647
  default: false
13643
13648
  },
13644
13649
  teleport: {
13645
- type: [String, Object],
13650
+ type: [String, Object, Boolean],
13646
13651
  default: "body"
13647
13652
  },
13648
13653
  onClick: defineListenerProp(),
@@ -13744,6 +13749,7 @@ const Fab = vue.defineComponent({
13744
13749
  var _slot;
13745
13750
  var _call;
13746
13751
  var children = flatFragment((_call = call(slots.default)) != null ? _call : []);
13752
+ var dragProps = isBoolean(props2.drag) ? {} : props2.drag;
13747
13753
  return vue.createVNode(Drag, vue.mergeProps({
13748
13754
  "ref": dragRef,
13749
13755
  "class": classes$B(n$J("--position-" + props2.position), [!props2.fixed, n$J("--absolute")]),
@@ -13755,7 +13761,10 @@ const Fab = vue.defineComponent({
13755
13761
  },
13756
13762
  "zIndex": props2.zIndex,
13757
13763
  "teleport": props2.teleport,
13758
- "disabled": props2.disabled || !props2.drag || !props2.fixed
13764
+ "disabled": props2.disabled || !props2.drag || !props2.fixed,
13765
+ "direction": dragProps.direction,
13766
+ "attraction": dragProps.attraction,
13767
+ "boundary": dragProps.boundary
13759
13768
  }, attrs), {
13760
13769
  default: () => [vue.createVNode("div", {
13761
13770
  "class": classes$B(n$J(), n$J("--direction-" + props2.direction), [props2.safeArea, n$J("--safe-area")]),
@@ -17077,7 +17086,7 @@ var props$s = {
17077
17086
  default: 0
17078
17087
  },
17079
17088
  teleport: {
17080
- type: [String, Object],
17089
+ type: [String, Object, Boolean],
17081
17090
  default: "body"
17082
17091
  },
17083
17092
  sameWidth: {
@@ -17127,8 +17136,8 @@ function __render__$x(_ctx, _cache) {
17127
17136
  })
17128
17137
  },
17129
17138
  [vue.renderSlot(_ctx.$slots, "default"), (vue.openBlock(), vue.createBlock(vue.Teleport, {
17130
- to: _ctx.teleport,
17131
- disabled: _ctx.teleportDisabled
17139
+ to: _ctx.teleport === false ? void 0 : _ctx.teleport,
17140
+ disabled: _ctx.teleportDisabled || _ctx.teleport === false
17132
17141
  }, [vue.createVNode(vue.Transition, {
17133
17142
  name: _ctx.n(),
17134
17143
  onAfterEnter: _ctx.onOpened,
@@ -21545,7 +21554,7 @@ var props$c = {
21545
21554
  default: false
21546
21555
  },
21547
21556
  teleport: {
21548
- type: [String, Object],
21557
+ type: [String, Object, Boolean],
21549
21558
  default: "body"
21550
21559
  },
21551
21560
  forbidClick: {
@@ -21698,8 +21707,8 @@ var {
21698
21707
  function __render__$b(_ctx, _cache) {
21699
21708
  var _component_var_snackbar_core = vue.resolveComponent("var-snackbar-core");
21700
21709
  return vue.openBlock(), vue.createBlock(vue.Teleport, {
21701
- to: _ctx.teleport,
21702
- disabled: _ctx.disabled
21710
+ to: _ctx.teleport === false ? void 0 : _ctx.teleport,
21711
+ disabled: _ctx.disabled || _ctx.teleport === false
21703
21712
  }, [vue.createVNode(vue.Transition, {
21704
21713
  name: _ctx.n() + "-fade",
21705
21714
  onAfterEnter: _ctx.onOpened,
@@ -25129,9 +25138,9 @@ const skeleton = "";
25129
25138
  const SkeletonSfc = "";
25130
25139
  const slider = "";
25131
25140
  const SliderSfc = "";
25132
- const SnackbarSfc = "";
25133
25141
  const snackbar = "";
25134
25142
  const coreSfc = "";
25143
+ const SnackbarSfc = "";
25135
25144
  const space = "";
25136
25145
  const step = "";
25137
25146
  const StepSfc = "";
@@ -25156,7 +25165,7 @@ const TimePickerSfc = "";
25156
25165
  const TooltipSfc = "";
25157
25166
  const uploader = "";
25158
25167
  const UploaderSfc = "";
25159
- const version = "2.13.5-alpha.1690486822677";
25168
+ const version = "2.13.5";
25160
25169
  function install(app) {
25161
25170
  ActionSheet.install && app.use(ActionSheet);
25162
25171
  AppBar.install && app.use(AppBar);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "2.13.5-alpha.1690486822677",
3
+ "version": "2.13.5",
4
4
  "description": "A material like components library",
5
5
  "main": "lib/varlet.cjs.js",
6
6
  "module": "es/index.mjs",
@@ -46,9 +46,9 @@
46
46
  "@popperjs/core": "^2.11.6",
47
47
  "dayjs": "^1.10.4",
48
48
  "decimal.js": "^10.2.1",
49
- "@varlet/icons": "2.13.5-alpha.1690486822677",
50
- "@varlet/shared": "2.13.5-alpha.1690486822677",
51
- "@varlet/use": "2.13.5-alpha.1690486822677"
49
+ "@varlet/shared": "2.13.5",
50
+ "@varlet/icons": "2.13.5",
51
+ "@varlet/use": "2.13.5"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@vue/runtime-core": "3.3.4",
@@ -63,8 +63,8 @@
63
63
  "typescript": "^5.1.5",
64
64
  "vue": "3.3.4",
65
65
  "vue-router": "4.2.0",
66
- "@varlet/cli": "2.13.5-alpha.1690486822677",
67
- "@varlet/touch-emulator": "2.13.5-alpha.1690486822677"
66
+ "@varlet/touch-emulator": "2.13.5",
67
+ "@varlet/cli": "2.13.5"
68
68
  },
69
69
  "browserslist": [
70
70
  "Chrome >= 54",
@@ -14,7 +14,7 @@ export interface ActionSheetProps extends BasicAttributes {
14
14
  closeOnClickAction?: boolean
15
15
  closeOnClickOverlay?: boolean
16
16
  safeArea?: boolean
17
- teleport?: TeleportProps['to']
17
+ teleport?: TeleportProps['to'] | false
18
18
  onOpen?: ListenerProp<() => void>
19
19
  onOpened?: ListenerProp<() => void>
20
20
  onClose?: ListenerProp<() => void>
package/types/avatar.d.ts CHANGED
@@ -12,6 +12,7 @@ export interface AvatarProps extends BasicAttributes {
12
12
  size?: AvatarSize
13
13
  color?: string
14
14
  src?: string
15
+ alt?: string
15
16
  fit?: AvatarFit
16
17
  bordered?: boolean
17
18
  borderColor?: string
package/types/dialog.d.ts CHANGED
@@ -26,7 +26,7 @@ export interface DialogProps extends BasicAttributes {
26
26
  dialogStyle?: Record<string, any>
27
27
  lockScroll?: boolean
28
28
  closeOnClickOverlay?: boolean
29
- teleport?: TeleportProps['to']
29
+ teleport?: TeleportProps['to'] | false
30
30
  onOpen?: ListenerProp<() => void>
31
31
  onOpened?: ListenerProp<() => void>
32
32
  onBeforeClose?: ListenerProp<(action: DialogActions, done: () => void) => void>
package/types/drag.d.ts CHANGED
@@ -20,7 +20,7 @@ export interface DragProps extends BasicAttributes {
20
20
  disabled?: boolean
21
21
  boundary?: DragBoundary
22
22
  zIndex?: string | number
23
- teleport?: TeleportProps['to']
23
+ teleport?: TeleportProps['to'] | false
24
24
  }
25
25
 
26
26
  export class Drag extends VarComponent {
package/types/fab.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { VNode, TeleportProps } from 'vue'
2
2
  import { VarComponent, BasicAttributes, ListenerProp, Type } from './varComponent'
3
+ import { DragProps } from './drag'
3
4
 
4
5
  export type FabPosition = 'left-top' | 'right-top' | 'left-bottom' | 'right-bottom'
5
6
 
@@ -9,6 +10,8 @@ export type FabDirection = 'top' | 'right' | 'bottom' | 'left'
9
10
 
10
11
  export type FabType = Type
11
12
 
13
+ export type FabDrag = boolean | Pick<DragProps, 'attraction' | 'boundary' | 'direction'>
14
+
12
15
  export declare const fabProps: Record<string, any>
13
16
 
14
17
  export interface FabTriggerData {
@@ -18,7 +21,7 @@ export interface FabTriggerData {
18
21
  export interface FabProps extends BasicAttributes {
19
22
  active?: boolean
20
23
  show?: boolean
21
- drag?: boolean
24
+ drag?: FabDrag
22
25
  type?: FabType
23
26
  fixed?: boolean
24
27
  position?: FabPosition
@@ -36,7 +39,7 @@ export interface FabProps extends BasicAttributes {
36
39
  left?: string | number
37
40
  right?: string | number
38
41
  safeArea?: boolean
39
- teleport?: TeleportProps['to']
42
+ teleport?: TeleportProps['to'] | false
40
43
  elevation?: boolean | number | string
41
44
  onClick?: ListenerProp<(active: boolean, e: Event) => void>
42
45
  onOpen?: ListenerProp<() => void>
@@ -12,7 +12,7 @@ export interface ImagePreviewProps extends BasicAttributes {
12
12
  lockScroll?: boolean
13
13
  indicator?: boolean
14
14
  closeable?: boolean
15
- teleport?: TeleportProps['to']
15
+ teleport?: TeleportProps['to'] | false
16
16
  imagePreventDefault?: boolean
17
17
  onOpen?: ListenerProp<() => void>
18
18
  onOpened?: ListenerProp<() => void>
package/types/menu.d.ts CHANGED
@@ -31,7 +31,7 @@ export interface MenuProps extends BasicAttributes {
31
31
  strategy?: MenuStrategy
32
32
  offsetX?: string | number
33
33
  offsetY?: string | number
34
- teleport?: TeleportProps['to']
34
+ teleport?: TeleportProps['to'] | false
35
35
  sameWidth?: boolean
36
36
  elevation?: boolean | number | string
37
37
  defaultStyle?: boolean
@@ -5,7 +5,7 @@ export declare const overlayProps: Record<string, any>
5
5
 
6
6
  export interface OverlayProps extends BasicAttributes {
7
7
  lockScroll?: boolean
8
- teleport?: TeleportProps['to']
8
+ teleport?: TeleportProps['to'] | false
9
9
  onClick?: ListenerProp<() => void>
10
10
  'onUpdate:show'?: ListenerProp<(show: boolean) => void>
11
11
  }
package/types/popup.d.ts CHANGED
@@ -16,7 +16,7 @@ export interface PopupProps extends BasicAttributes {
16
16
  defaultStyle?: boolean
17
17
  safeArea?: boolean
18
18
  safeAreaTop?: boolean
19
- teleport?: TeleportProps['to']
19
+ teleport?: TeleportProps['to'] | false
20
20
  onOpen?: ListenerProp<() => void>
21
21
  onOpened?: ListenerProp<() => void>
22
22
  onClose?: ListenerProp<() => void>
@@ -16,7 +16,7 @@ export interface SnackbarProps extends BasicAttributes {
16
16
  loadingSize?: LoadingSize
17
17
  loadingColor?: string
18
18
  loadingRadius?: string | number
19
- teleport?: TeleportProps['to']
19
+ teleport?: TeleportProps['to'] | false
20
20
  lockScroll?: boolean
21
21
  contentClass?: string
22
22
  duration?: number
@@ -27,7 +27,7 @@ export interface TooltipProps extends BasicAttributes {
27
27
  strategy?: TooltipStrategy
28
28
  offsetX?: string | number
29
29
  offsetY?: string | number
30
- teleport?: TeleportProps['to']
30
+ teleport?: TeleportProps['to'] | false
31
31
  sameWidth?: boolean
32
32
  closeOnClickReference?: boolean
33
33
  onOpen?: ListenerProp<() => void>