@varlet/ui 2.7.4 → 2.7.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.7.4",
4
+ "version": "2.7.5",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -3411,7 +3411,7 @@
3411
3411
  "description": "Whether to display the top toolbar",
3412
3412
  "default": "true",
3413
3413
  "value": {
3414
- "type": "string",
3414
+ "type": "boolean",
3415
3415
  "kind": "expression"
3416
3416
  }
3417
3417
  },
@@ -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.7.4",
4
+ "version": "2.7.5",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -3484,7 +3484,7 @@
3484
3484
  "description": "是否显示上方工具栏",
3485
3485
  "default": "true",
3486
3486
  "value": {
3487
- "type": "string",
3487
+ "type": "boolean",
3488
3488
  "kind": "expression"
3489
3489
  }
3490
3490
  },
package/lib/varlet.cjs.js CHANGED
@@ -3295,7 +3295,7 @@ function __render__$_(_ctx, _cache) {
3295
3295
  zIndex: _ctx.floated ? _ctx.zIndex : void 0
3296
3296
  }),
3297
3297
  onClick: _cache[0] || (_cache[0] = function() {
3298
- return _ctx.onClick && _ctx.onClick(...arguments);
3298
+ return _ctx.handleClick && _ctx.handleClick(...arguments);
3299
3299
  })
3300
3300
  },
3301
3301
  [vue.createElementVNode(
@@ -3547,6 +3547,9 @@ var __sfc__$$ = vue.defineComponent({
3547
3547
  var close2 = () => {
3548
3548
  call(props2["onUpdate:floating"], false);
3549
3549
  };
3550
+ var handleClick = (e) => {
3551
+ call(props2.onClick, e);
3552
+ };
3550
3553
  vue.watch(() => props2.floating, (value) => {
3551
3554
  if (isRow.value)
3552
3555
  return;
@@ -3577,7 +3580,8 @@ var __sfc__$$ = vue.defineComponent({
3577
3580
  isRow,
3578
3581
  close: close2,
3579
3582
  showFloatingButtons,
3580
- floated
3583
+ floated,
3584
+ handleClick
3581
3585
  };
3582
3586
  }
3583
3587
  });
@@ -4420,7 +4424,7 @@ function __render__$V(_ctx, _cache) {
4420
4424
  key: 0,
4421
4425
  class: vue.normalizeClass(_ctx.n("--close")),
4422
4426
  onClick: _cache[0] || (_cache[0] = function() {
4423
- return _ctx.onClose && _ctx.onClose(...arguments);
4427
+ return _ctx.handleClose && _ctx.handleClose(...arguments);
4424
4428
  })
4425
4429
  },
4426
4430
  [vue.createVNode(
@@ -4483,11 +4487,15 @@ var __sfc__$W = vue.defineComponent({
4483
4487
  var roundClass = round2 ? n$U("--round") : null;
4484
4488
  return [n$U("--" + size), blockClass, plainTypeClass, roundClass];
4485
4489
  });
4490
+ var handleClose = (e) => {
4491
+ call(props2.onClose, e);
4492
+ };
4486
4493
  return {
4487
4494
  n: n$U,
4488
4495
  classes: classes$J,
4489
4496
  chipStyles,
4490
- contentClass
4497
+ contentClass,
4498
+ handleClose
4491
4499
  };
4492
4500
  }
4493
4501
  });
@@ -4579,7 +4587,7 @@ function __render__$U(_ctx, _cache) {
4579
4587
  paddingRight: _ctx.toSizeUnit(_ctx.padding.right)
4580
4588
  }),
4581
4589
  onClick: _cache[0] || (_cache[0] = function() {
4582
- return _ctx.onClick && _ctx.onClick(...arguments);
4590
+ return _ctx.handleClick && _ctx.handleClick(...arguments);
4583
4591
  })
4584
4592
  },
4585
4593
  [vue.renderSlot(_ctx.$slots, "default")],
@@ -4623,6 +4631,9 @@ var __sfc__$V = vue.defineComponent({
4623
4631
  }
4624
4632
  return classes2;
4625
4633
  };
4634
+ var handleClick = (e) => {
4635
+ call(props2.onClick, e);
4636
+ };
4626
4637
  vue.watch([() => props2.span, () => props2.offset], () => {
4627
4638
  row2 == null ? void 0 : row2.computePadding();
4628
4639
  });
@@ -4635,7 +4646,8 @@ var __sfc__$V = vue.defineComponent({
4635
4646
  toSizeUnit,
4636
4647
  getSize,
4637
4648
  span,
4638
- offset: offset2
4649
+ offset: offset2,
4650
+ handleClick
4639
4651
  };
4640
4652
  }
4641
4653
  });
@@ -10940,7 +10952,7 @@ function __render__$H(_ctx, _cache) {
10940
10952
  return _ctx.handleError && _ctx.handleError(...arguments);
10941
10953
  }),
10942
10954
  onClick: _cache[2] || (_cache[2] = function() {
10943
- return _ctx.onClick && _ctx.onClick(...arguments);
10955
+ return _ctx.handleClick && _ctx.handleClick(...arguments);
10944
10956
  })
10945
10957
  },
10946
10958
  null,
@@ -10964,7 +10976,7 @@ function __render__$H(_ctx, _cache) {
10964
10976
  return _ctx.handleError && _ctx.handleError(...arguments);
10965
10977
  }),
10966
10978
  onClick: _cache[5] || (_cache[5] = function() {
10967
- return _ctx.onClick && _ctx.onClick(...arguments);
10979
+ return _ctx.handleClick && _ctx.handleClick(...arguments);
10968
10980
  })
10969
10981
  },
10970
10982
  null,
@@ -11006,12 +11018,16 @@ var __sfc__$I = vue.defineComponent({
11006
11018
  } = props2;
11007
11019
  !lazy && call(onError, e);
11008
11020
  };
11021
+ var handleClick = (e) => {
11022
+ call(props2.onClick, e);
11023
+ };
11009
11024
  return {
11010
11025
  n: n$G,
11011
11026
  classes: classes$z,
11012
11027
  toSizeUnit,
11013
11028
  handleLoad,
11014
- handleError
11029
+ handleError,
11030
+ handleClick
11015
11031
  };
11016
11032
  }
11017
11033
  });
@@ -16060,9 +16076,10 @@ function __render__$u(_ctx, _cache) {
16060
16076
  vue.mergeProps({
16061
16077
  class: _ctx.n()
16062
16078
  }, _ctx.$attrs),
16063
- [vue.createElementVNode(
16079
+ [_ctx.toolbar ? (vue.openBlock(), vue.createElementBlock(
16064
16080
  "div",
16065
16081
  {
16082
+ key: 0,
16066
16083
  class: vue.normalizeClass(_ctx.n("toolbar"))
16067
16084
  },
16068
16085
  [vue.renderSlot(_ctx.$slots, "cancel", {}, () => [vue.createVNode(
@@ -16116,7 +16133,7 @@ function __render__$u(_ctx, _cache) {
16116
16133
  )])],
16117
16134
  2
16118
16135
  /* CLASS */
16119
- ), vue.createElementVNode(
16136
+ )) : vue.createCommentVNode("v-if", true), vue.createElementVNode(
16120
16137
  "div",
16121
16138
  {
16122
16139
  class: vue.normalizeClass(_ctx.n("columns")),
@@ -18139,7 +18156,7 @@ function __render__$h(_ctx, _cache) {
18139
18156
  margin: _ctx.average ? "0 -" + _ctx.average + "px" : void 0
18140
18157
  }),
18141
18158
  onClick: _cache[0] || (_cache[0] = function() {
18142
- return _ctx.onClick && _ctx.onClick(...arguments);
18159
+ return _ctx.handleClick && _ctx.handleClick(...arguments);
18143
18160
  })
18144
18161
  },
18145
18162
  [vue.renderSlot(_ctx.$slots, "default")],
@@ -18168,6 +18185,9 @@ var __sfc__$i = vue.defineComponent({
18168
18185
  });
18169
18186
  });
18170
18187
  };
18188
+ var handleClick = (e) => {
18189
+ call(props2.onClick, e);
18190
+ };
18171
18191
  var rowProvider = {
18172
18192
  computePadding
18173
18193
  };
@@ -18177,7 +18197,8 @@ var __sfc__$i = vue.defineComponent({
18177
18197
  return {
18178
18198
  n: n$j,
18179
18199
  classes: classes$f,
18180
- average
18200
+ average,
18201
+ handleClick
18181
18202
  };
18182
18203
  }
18183
18204
  });
@@ -23472,9 +23493,9 @@ const skeleton = "";
23472
23493
  const SkeletonSfc = "";
23473
23494
  const slider = "";
23474
23495
  const SliderSfc = "";
23475
- const SnackbarSfc = "";
23476
23496
  const snackbar = "";
23477
23497
  const coreSfc = "";
23498
+ const SnackbarSfc = "";
23478
23499
  const space = "";
23479
23500
  const step = "";
23480
23501
  const StepSfc = "";
@@ -23500,7 +23521,7 @@ const tooltip = "";
23500
23521
  const TooltipSfc = "";
23501
23522
  const uploader = "";
23502
23523
  const UploaderSfc = "";
23503
- const version = "2.7.4";
23524
+ const version = "2.7.5";
23504
23525
  function install(app) {
23505
23526
  ActionSheet.install && app.use(ActionSheet);
23506
23527
  AppBar.install && app.use(AppBar);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "2.7.4",
3
+ "version": "2.7.5",
4
4
  "description": "A material like components library",
5
5
  "main": "lib/varlet.cjs.js",
6
6
  "module": "es/index.mjs",
@@ -46,8 +46,8 @@
46
46
  "@popperjs/core": "^2.11.6",
47
47
  "dayjs": "^1.10.4",
48
48
  "decimal.js": "^10.2.1",
49
- "@varlet/icons": "2.7.4",
50
- "@varlet/shared": "2.7.4"
49
+ "@varlet/icons": "2.7.5",
50
+ "@varlet/shared": "2.7.5"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/jest": "^26.0.15",
@@ -62,8 +62,8 @@
62
62
  "typescript": "^4.4.4",
63
63
  "vue": "3.2.25",
64
64
  "vue-router": "4.0.12",
65
- "@varlet/touch-emulator": "2.7.4",
66
- "@varlet/cli": "2.7.4"
65
+ "@varlet/cli": "2.7.5",
66
+ "@varlet/touch-emulator": "2.7.5"
67
67
  },
68
68
  "browserslist": [
69
69
  "Chrome >= 54",
@@ -54,7 +54,6 @@ export interface SnackbarOptions {
54
54
  contentClass?: string
55
55
  duration?: number
56
56
  vertical?: boolean
57
- show?: boolean
58
57
  forbidClick?: boolean
59
58
  onOpen?: () => void
60
59
  onClose?: () => void