@varlet/ui 2.13.3 → 2.13.4-alpha.1690280210151

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.3",
4
+ "version": "2.13.4-alpha.1690280210151",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -2698,7 +2698,7 @@
2698
2698
  {
2699
2699
  "name": "teleport",
2700
2700
  "description": "element to which the component mounts",
2701
- "default": "-",
2701
+ "default": "body",
2702
2702
  "value": {
2703
2703
  "type": "TeleportProps['to']",
2704
2704
  "kind": "expression"
@@ -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.3",
4
+ "version": "2.13.4-alpha.1690280210151",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -2857,7 +2857,7 @@
2857
2857
  {
2858
2858
  "name": "teleport",
2859
2859
  "description": "组件挂载的元素",
2860
- "default": "-",
2860
+ "default": "body",
2861
2861
  "value": {
2862
2862
  "type": "TeleportProps['to']",
2863
2863
  "kind": "expression"
package/lib/varlet.cjs.js CHANGED
@@ -11331,7 +11331,8 @@ var {
11331
11331
  } = createNamespace("drag");
11332
11332
  function __render__$M(_ctx, _cache) {
11333
11333
  return vue.openBlock(), vue.createBlock(vue.Teleport, {
11334
- to: _ctx.teleport
11334
+ to: _ctx.teleport,
11335
+ disabled: _ctx.teleportDisabled
11335
11336
  }, [vue.createElementVNode(
11336
11337
  "div",
11337
11338
  vue.mergeProps({
@@ -11356,7 +11357,7 @@ function __render__$M(_ctx, _cache) {
11356
11357
  [vue.renderSlot(_ctx.$slots, "default")],
11357
11358
  16
11358
11359
  /* FULL_PROPS */
11359
- )], 8, ["to"]);
11360
+ )], 8, ["to", "disabled"]);
11360
11361
  }
11361
11362
  var __sfc__$N = vue.defineComponent({
11362
11363
  name: "VarDrag",
@@ -11378,6 +11379,9 @@ var __sfc__$N = vue.defineComponent({
11378
11379
  var dragged = vue.ref(false);
11379
11380
  var enableTransition = vue.ref(false);
11380
11381
  var dragging = vue.ref(false);
11382
+ var {
11383
+ disabled: teleportDisabled
11384
+ } = useTeleport();
11381
11385
  var touching = false;
11382
11386
  var prevX = 0;
11383
11387
  var prevY = 0;
@@ -11583,6 +11587,7 @@ var __sfc__$N = vue.defineComponent({
11583
11587
  y,
11584
11588
  enableTransition,
11585
11589
  dragging,
11590
+ teleportDisabled,
11586
11591
  n: n$M,
11587
11592
  classes: classes$E,
11588
11593
  getAttrs,
@@ -13620,7 +13625,8 @@ var props$G = {
13620
13625
  default: false
13621
13626
  },
13622
13627
  teleport: {
13623
- type: [String, Object]
13628
+ type: [String, Object],
13629
+ default: "body"
13624
13630
  },
13625
13631
  onClick: defineListenerProp(),
13626
13632
  onOpen: defineListenerProp(),
@@ -22447,8 +22453,8 @@ function __render__$8(_ctx, _cache) {
22447
22453
  key: 0,
22448
22454
  class: vue.normalizeClass(_ctx.n("loading")),
22449
22455
  style: vue.normalizeStyle({
22450
- width: _ctx.multiplySizeUnit(_ctx.radius, 2),
22451
- height: _ctx.multiplySizeUnit(_ctx.radius, 2)
22456
+ width: _ctx.radius,
22457
+ height: _ctx.radius
22452
22458
  })
22453
22459
  },
22454
22460
  _hoisted_2$2,
@@ -22537,7 +22543,7 @@ var __sfc__$8 = vue.defineComponent({
22537
22543
  }
22538
22544
  };
22539
22545
  });
22540
- var radius = vue.computed(() => multiplySizeUnit(props2.size, 0.4));
22546
+ var radius = vue.computed(() => multiplySizeUnit(props2.size, 0.8));
22541
22547
  var switchActive = (event) => {
22542
22548
  var {
22543
22549
  onClick,
@@ -25131,7 +25137,7 @@ const TimePickerSfc = "";
25131
25137
  const TooltipSfc = "";
25132
25138
  const uploader = "";
25133
25139
  const UploaderSfc = "";
25134
- const version = "2.13.3";
25140
+ const version = "2.13.4-alpha.1690280210151";
25135
25141
  function install(app) {
25136
25142
  ActionSheet.install && app.use(ActionSheet);
25137
25143
  AppBar.install && app.use(AppBar);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "2.13.3",
3
+ "version": "2.13.4-alpha.1690280210151",
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.3",
50
- "@varlet/shared": "2.13.3",
51
- "@varlet/use": "2.13.3"
49
+ "@varlet/icons": "2.13.4-alpha.1690280210151",
50
+ "@varlet/use": "2.13.4-alpha.1690280210151",
51
+ "@varlet/shared": "2.13.4-alpha.1690280210151"
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.3",
67
- "@varlet/touch-emulator": "2.13.3"
66
+ "@varlet/cli": "2.13.4-alpha.1690280210151",
67
+ "@varlet/touch-emulator": "2.13.4-alpha.1690280210151"
68
68
  },
69
69
  "browserslist": [
70
70
  "Chrome >= 54",