@opentiny/vue-drawer 3.11.0-alpha.2 → 3.11.0

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.
package/lib/index.js CHANGED
@@ -97,7 +97,7 @@ var Drawer = {
97
97
  });
98
98
  }
99
99
  };
100
- var version = "3.11.0-alpha.2";
100
+ var version = "3.11.0";
101
101
  Drawer.model = {
102
102
  prop: "modelValue",
103
103
  event: "update:modelValue"
@@ -7,7 +7,7 @@ function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
7
7
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
8
8
  if (it)
9
9
  return (it = it.call(o)).next.bind(it);
10
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
10
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray_tiny(o)) || allowArrayLike && o && typeof o.length === "number") {
11
11
  if (it)
12
12
  o = it;
13
13
  var i = 0;
@@ -19,20 +19,20 @@ function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
19
19
  }
20
20
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
21
21
  }
22
- function _unsupportedIterableToArray(o, minLen) {
22
+ function _unsupportedIterableToArray_tiny(o, minLen) {
23
23
  if (!o)
24
24
  return;
25
25
  if (typeof o === "string")
26
- return _arrayLikeToArray(o, minLen);
26
+ return _arrayLikeToArray_tiny(o, minLen);
27
27
  var n = Object.prototype.toString.call(o).slice(8, -1);
28
28
  if (n === "Object" && o.constructor)
29
29
  n = o.constructor.name;
30
30
  if (n === "Map" || n === "Set")
31
31
  return Array.from(o);
32
32
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
33
- return _arrayLikeToArray(o, minLen);
33
+ return _arrayLikeToArray_tiny(o, minLen);
34
34
  }
35
- function _arrayLikeToArray(arr, len) {
35
+ function _arrayLikeToArray_tiny(arr, len) {
36
36
  if (len == null || len > arr.length)
37
37
  len = arr.length;
38
38
  for (var i = 0, arr2 = new Array(len); i < len; i++)
package/lib/pc.js CHANGED
@@ -8,7 +8,7 @@ function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
8
8
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
9
9
  if (it)
10
10
  return (it = it.call(o)).next.bind(it);
11
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
11
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray_tiny(o)) || allowArrayLike && o && typeof o.length === "number") {
12
12
  if (it)
13
13
  o = it;
14
14
  var i = 0;
@@ -20,20 +20,20 @@ function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
20
20
  }
21
21
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22
22
  }
23
- function _unsupportedIterableToArray(o, minLen) {
23
+ function _unsupportedIterableToArray_tiny(o, minLen) {
24
24
  if (!o)
25
25
  return;
26
26
  if (typeof o === "string")
27
- return _arrayLikeToArray(o, minLen);
27
+ return _arrayLikeToArray_tiny(o, minLen);
28
28
  var n = Object.prototype.toString.call(o).slice(8, -1);
29
29
  if (n === "Object" && o.constructor)
30
30
  n = o.constructor.name;
31
31
  if (n === "Map" || n === "Set")
32
32
  return Array.from(o);
33
33
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
34
- return _arrayLikeToArray(o, minLen);
34
+ return _arrayLikeToArray_tiny(o, minLen);
35
35
  }
36
- function _arrayLikeToArray(arr, len) {
36
+ function _arrayLikeToArray_tiny(arr, len) {
37
37
  if (len == null || len > arr.length)
38
38
  len = arr.length;
39
39
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -143,7 +143,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
143
143
  "is-right": $props.placement === "right",
144
144
  "is-top": $props.placement === "top",
145
145
  "is-bottom": $props.placement === "bottom",
146
- "drag-effects": !_ctx.state.dragEvent.isDrag
146
+ "drag-effects": !_ctx.state.dragEvent.isDrag,
147
+ "toggle": _ctx.state.toggle
147
148
  }, $props.customClass]),
148
149
  style: normalizeStyle({
149
150
  width: ["left", "right"].includes($props.placement) ? _ctx.state.computedWidth : null,
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@opentiny/vue-drawer",
3
- "version": "3.11.0-alpha.2",
3
+ "version": "3.11.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
7
7
  "sideEffects": false,
8
8
  "type": "module",
9
9
  "dependencies": {
10
- "@opentiny/vue-button": "~3.11.0-alpha.0",
11
- "@opentiny/vue-common": "~3.11.0-alpha.0",
12
- "@opentiny/vue-renderless": "~3.11.0-alpha.0"
10
+ "@opentiny/vue-button": "~3.11.0",
11
+ "@opentiny/vue-common": "~3.11.0",
12
+ "@opentiny/vue-renderless": "~3.11.0"
13
13
  },
14
14
  "license": "MIT",
15
15
  "types": "index.d.ts"