@opentiny/vue-drawer 3.20.0 → 3.22.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
@@ -2,13 +2,12 @@ function _extends() {
2
2
  return _extends = Object.assign ? Object.assign.bind() : function(n) {
3
3
  for (var e = 1; e < arguments.length; e++) {
4
4
  var t = arguments[e];
5
- for (var r in t)
6
- ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
5
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
7
6
  }
8
7
  return n;
9
8
  }, _extends.apply(null, arguments);
10
9
  }
11
- import { defineComponent, $prefix, $setup, $props, createComponent, appProperties, hooks, setupComponent } from "@opentiny/vue-common";
10
+ import { defineComponent, $props, $setup, $prefix, createComponent, appProperties, hooks, setupComponent } from "@opentiny/vue-common";
12
11
  import PcTemplate from "./pc.js";
13
12
  import MobileFirstTemplate from "./mobile-first.js";
14
13
  var template = function template2(mode) {
@@ -164,7 +163,7 @@ var service = function service2(configs) {
164
163
  });
165
164
  return instance;
166
165
  };
167
- var version = "3.20.0";
166
+ var version = "3.undefined";
168
167
  Drawer.model = {
169
168
  prop: "visible",
170
169
  event: "update:visible"
@@ -6,8 +6,7 @@ import { resolveComponent, withDirectives, openBlock, createElementBlock, normal
6
6
 
7
7
  function _createForOfIteratorHelperLoose(r, e) {
8
8
  var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
9
- if (t)
10
- return (t = t.call(r)).next.bind(t);
9
+ if (t) return (t = t.call(r)).next.bind(t);
11
10
  if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
12
11
  t && (r = t);
13
12
  var o = 0;
@@ -19,16 +18,14 @@ function _createForOfIteratorHelperLoose(r, e) {
19
18
  }
20
19
  function _unsupportedIterableToArray(r, a) {
21
20
  if (r) {
22
- if ("string" == typeof r)
23
- return _arrayLikeToArray(r, a);
21
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
24
22
  var t = {}.toString.call(r).slice(8, -1);
25
23
  return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
26
24
  }
27
25
  }
28
26
  function _arrayLikeToArray(r, a) {
29
27
  (null == a || a > r.length) && (a = r.length);
30
- for (var e = 0, n = Array(a); e < a; e++)
31
- n[e] = r[e];
28
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
32
29
  return n;
33
30
  }
34
31
  var _export_sfc = function _export_sfc2(sfc, props) {
package/lib/pc.js CHANGED
@@ -8,8 +8,7 @@ import { resolveComponent, openBlock, createElementBlock, createVNode, Transitio
8
8
 
9
9
  function _createForOfIteratorHelperLoose(r, e) {
10
10
  var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
11
- if (t)
12
- return (t = t.call(r)).next.bind(t);
11
+ if (t) return (t = t.call(r)).next.bind(t);
13
12
  if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
14
13
  t && (r = t);
15
14
  var o = 0;
@@ -21,16 +20,14 @@ function _createForOfIteratorHelperLoose(r, e) {
21
20
  }
22
21
  function _unsupportedIterableToArray(r, a) {
23
22
  if (r) {
24
- if ("string" == typeof r)
25
- return _arrayLikeToArray(r, a);
23
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
26
24
  var t = {}.toString.call(r).slice(8, -1);
27
25
  return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
28
26
  }
29
27
  }
30
28
  function _arrayLikeToArray(r, a) {
31
29
  (null == a || a > r.length) && (a = r.length);
32
- for (var e = 0, n = Array(a); e < a; e++)
33
- n[e] = r[e];
30
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
34
31
  return n;
35
32
  }
36
33
  var _export_sfc = function _export_sfc2(sfc, props) {
@@ -251,7 +248,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
251
248
  key: 1
252
249
  },
253
250
  [createVNode(_component_tiny_button, {
254
- plain: "",
255
251
  class: "tiny-drawer__cancel-btn",
256
252
  onClick: _cache[2] || (_cache[2] = function($event) {
257
253
  return _ctx.handleClose("cancel");
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@opentiny/vue-drawer",
3
- "version": "3.20.0",
3
+ "version": "3.22.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.20.0",
11
- "@opentiny/vue-tooltip": "~3.20.0",
12
- "@opentiny/vue-common": "~3.20.0",
13
- "@opentiny/vue-renderless": "~3.20.0",
14
- "@opentiny/vue-icon": "~3.20.0",
15
- "@opentiny/vue-theme": "~3.20.0"
10
+ "@opentiny/vue-button": "~3.22.0",
11
+ "@opentiny/vue-tooltip": "~3.22.0",
12
+ "@opentiny/vue-common": "~3.22.0",
13
+ "@opentiny/vue-renderless": "~3.22.0",
14
+ "@opentiny/vue-icon": "~3.22.0",
15
+ "@opentiny/vue-theme": "~3.22.0"
16
16
  },
17
17
  "license": "MIT",
18
18
  "types": "index.d.ts"
package/src/index.d.ts CHANGED
@@ -208,12 +208,12 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
208
208
  tiny_theme: StringConstructor;
209
209
  tiny_chart_theme: ObjectConstructor;
210
210
  }>>, {
211
+ zIndex: number;
212
+ visible: boolean;
211
213
  mask: boolean;
214
+ placement: string;
212
215
  tiny_mode_root: boolean;
213
216
  _constants: Record<string, any>;
214
- placement: string;
215
- zIndex: number;
216
- visible: boolean;
217
217
  showClose: boolean;
218
218
  showHeader: boolean;
219
219
  showFooter: boolean;
@@ -1,6 +1,10 @@
1
1
  declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
+ width?: any;
2
3
  title?: any;
4
+ visible?: any;
3
5
  mask?: any;
6
+ placement?: any;
7
+ customClass?: any;
4
8
  tiny_mode?: any;
5
9
  tiny_mode_root?: any;
6
10
  tiny_template?: any;
@@ -8,10 +12,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
8
12
  _constants?: any;
9
13
  tiny_theme?: any;
10
14
  tiny_chart_theme?: any;
11
- width?: any;
12
- placement?: any;
13
- visible?: any;
14
- customClass?: any;
15
15
  showHeader?: any;
16
16
  showFooter?: any;
17
17
  maskClosable?: any;
@@ -29,8 +29,12 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
29
29
  gcls: (key: any) => any;
30
30
  m: (...cssClasses: any[]) => string;
31
31
  }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("close" | "update:visible" | "confirm" | "open")[], "close" | "update:visible" | "confirm" | "open", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
32
+ width?: any;
32
33
  title?: any;
34
+ visible?: any;
33
35
  mask?: any;
36
+ placement?: any;
37
+ customClass?: any;
34
38
  tiny_mode?: any;
35
39
  tiny_mode_root?: any;
36
40
  tiny_template?: any;
@@ -38,10 +42,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
38
42
  _constants?: any;
39
43
  tiny_theme?: any;
40
44
  tiny_chart_theme?: any;
41
- width?: any;
42
- placement?: any;
43
- visible?: any;
44
- customClass?: any;
45
45
  showHeader?: any;
46
46
  showFooter?: any;
47
47
  maskClosable?: any;
@@ -55,8 +55,12 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
55
55
  onConfirm?: ((...args: any[]) => any) | undefined;
56
56
  onOpen?: ((...args: any[]) => any) | undefined;
57
57
  }, {
58
+ readonly width?: any;
58
59
  readonly title?: any;
60
+ readonly visible?: any;
59
61
  readonly mask?: any;
62
+ readonly placement?: any;
63
+ readonly customClass?: any;
60
64
  readonly tiny_mode?: any;
61
65
  readonly tiny_mode_root?: any;
62
66
  readonly tiny_template?: any;
@@ -64,10 +68,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
64
68
  readonly _constants?: any;
65
69
  readonly tiny_theme?: any;
66
70
  readonly tiny_chart_theme?: any;
67
- readonly width?: any;
68
- readonly placement?: any;
69
- readonly visible?: any;
70
- readonly customClass?: any;
71
71
  readonly showHeader?: any;
72
72
  readonly showFooter?: any;
73
73
  readonly maskClosable?: any;
package/src/pc.vue.d.ts CHANGED
@@ -1,6 +1,12 @@
1
1
  declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
+ width?: any;
3
+ height?: any;
2
4
  title?: any;
5
+ zIndex?: any;
6
+ visible?: any;
3
7
  mask?: any;
8
+ placement?: any;
9
+ customClass?: any;
4
10
  tiny_mode?: any;
5
11
  tiny_mode_root?: any;
6
12
  tiny_template?: any;
@@ -8,12 +14,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
8
14
  _constants?: any;
9
15
  tiny_theme?: any;
10
16
  tiny_chart_theme?: any;
11
- width?: any;
12
- height?: any;
13
- placement?: any;
14
- zIndex?: any;
15
- visible?: any;
16
- customClass?: any;
17
17
  showClose?: any;
18
18
  showHeader?: any;
19
19
  showFooter?: any;
@@ -34,8 +34,14 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
34
34
  gcls: (key: any) => any;
35
35
  m: (...cssClasses: any[]) => string;
36
36
  }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("close" | "drag" | "update:visible" | "confirm" | "open")[], "close" | "drag" | "update:visible" | "confirm" | "open", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
37
+ width?: any;
38
+ height?: any;
37
39
  title?: any;
40
+ zIndex?: any;
41
+ visible?: any;
38
42
  mask?: any;
43
+ placement?: any;
44
+ customClass?: any;
39
45
  tiny_mode?: any;
40
46
  tiny_mode_root?: any;
41
47
  tiny_template?: any;
@@ -43,12 +49,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
43
49
  _constants?: any;
44
50
  tiny_theme?: any;
45
51
  tiny_chart_theme?: any;
46
- width?: any;
47
- height?: any;
48
- placement?: any;
49
- zIndex?: any;
50
- visible?: any;
51
- customClass?: any;
52
52
  showClose?: any;
53
53
  showHeader?: any;
54
54
  showFooter?: any;
@@ -66,8 +66,14 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
66
66
  onConfirm?: ((...args: any[]) => any) | undefined;
67
67
  onOpen?: ((...args: any[]) => any) | undefined;
68
68
  }, {
69
+ readonly width?: any;
70
+ readonly height?: any;
69
71
  readonly title?: any;
72
+ readonly zIndex?: any;
73
+ readonly visible?: any;
70
74
  readonly mask?: any;
75
+ readonly placement?: any;
76
+ readonly customClass?: any;
71
77
  readonly tiny_mode?: any;
72
78
  readonly tiny_mode_root?: any;
73
79
  readonly tiny_template?: any;
@@ -75,12 +81,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
75
81
  readonly _constants?: any;
76
82
  readonly tiny_theme?: any;
77
83
  readonly tiny_chart_theme?: any;
78
- readonly width?: any;
79
- readonly height?: any;
80
- readonly placement?: any;
81
- readonly zIndex?: any;
82
- readonly visible?: any;
83
- readonly customClass?: any;
84
84
  readonly showClose?: any;
85
85
  readonly showHeader?: any;
86
86
  readonly showFooter?: any;