@opentiny/vue-drawer 3.19.1 → 3.21.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,8 +2,7 @@ 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);
@@ -164,7 +163,7 @@ var service = function service2(configs) {
164
163
  });
165
164
  return instance;
166
165
  };
167
- var version = "3.undefined";
166
+ var version = "3.21.0";
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,22 +18,20 @@ 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) {
35
32
  var target = sfc.__vccOpts || sfc;
36
33
  for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
37
- var _step$value2 = _step.value, key = _step$value2[0], val = _step$value2[1];
34
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
38
35
  target[key] = val;
39
36
  }
40
37
  return target;
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,22 +20,20 @@ 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) {
37
34
  var target = sfc.__vccOpts || sfc;
38
35
  for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
39
- var _step$value2 = _step.value, key = _step$value2[0], val = _step$value2[1];
36
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
40
37
  target[key] = val;
41
38
  }
42
39
  return target;
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@opentiny/vue-drawer",
3
- "version": "3.19.1",
3
+ "version": "3.21.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.19.0",
11
- "@opentiny/vue-tooltip": "~3.19.0",
12
- "@opentiny/vue-common": "~3.19.0",
13
- "@opentiny/vue-renderless": "~3.19.0",
14
- "@opentiny/vue-icon": "~3.19.0",
15
- "@opentiny/vue-theme": "~3.19.0"
10
+ "@opentiny/vue-button": "~3.21.0",
11
+ "@opentiny/vue-tooltip": "~3.21.0",
12
+ "@opentiny/vue-common": "~3.21.0",
13
+ "@opentiny/vue-renderless": "~3.21.0",
14
+ "@opentiny/vue-icon": "~3.21.0",
15
+ "@opentiny/vue-theme": "~3.21.0"
16
16
  },
17
17
  "license": "MIT",
18
18
  "types": "index.d.ts"
package/src/index.d.ts CHANGED
@@ -16,7 +16,7 @@ export declare const drawerProps: {
16
16
  type: BooleanConstructor;
17
17
  default: boolean;
18
18
  };
19
- customClass: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
19
+ customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
20
20
  placement: {
21
21
  type: StringConstructor;
22
22
  default: string;
@@ -84,7 +84,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
84
84
  type: BooleanConstructor;
85
85
  default: boolean;
86
86
  };
87
- customClass: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
87
+ customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
88
88
  placement: {
89
89
  type: StringConstructor;
90
90
  default: string;
@@ -153,7 +153,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
153
153
  type: BooleanConstructor;
154
154
  default: boolean;
155
155
  };
156
- customClass: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
156
+ customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
157
157
  placement: {
158
158
  type: StringConstructor;
159
159
  default: string;
@@ -208,18 +208,18 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
208
208
  tiny_theme: StringConstructor;
209
209
  tiny_chart_theme: ObjectConstructor;
210
210
  }>>, {
211
- visible: boolean;
212
211
  mask: boolean;
213
212
  tiny_mode_root: boolean;
214
213
  _constants: Record<string, any>;
215
214
  placement: string;
216
215
  zIndex: number;
216
+ visible: boolean;
217
+ showClose: boolean;
217
218
  showHeader: boolean;
218
219
  showFooter: boolean;
219
- dragable: boolean;
220
220
  maskClosable: boolean;
221
+ dragable: boolean;
221
222
  lockScroll: boolean;
222
223
  flex: boolean;
223
- showClose: boolean;
224
224
  }, {}>;
225
225
  export default _default;
@@ -1,5 +1,4 @@
1
1
  declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
- visible?: any;
3
2
  title?: any;
4
3
  mask?: any;
5
4
  tiny_mode?: any;
@@ -11,11 +10,12 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
11
10
  tiny_chart_theme?: any;
12
11
  width?: any;
13
12
  placement?: any;
13
+ visible?: any;
14
14
  customClass?: any;
15
15
  showHeader?: any;
16
16
  showFooter?: any;
17
- dragable?: any;
18
17
  maskClosable?: any;
18
+ dragable?: any;
19
19
  lockScroll?: any;
20
20
  flex?: any;
21
21
  beforeClose?: any;
@@ -27,8 +27,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
27
27
  d: (props: any) => void;
28
28
  dp: (props: any) => void;
29
29
  gcls: (key: any) => any;
30
- }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("close" | "confirm" | "open" | "update:visible")[], "close" | "confirm" | "open" | "update:visible", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
31
- visible?: any;
30
+ m: (...cssClasses: any[]) => string;
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
32
  title?: any;
33
33
  mask?: any;
34
34
  tiny_mode?: any;
@@ -40,21 +40,21 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
40
40
  tiny_chart_theme?: any;
41
41
  width?: any;
42
42
  placement?: any;
43
+ visible?: any;
43
44
  customClass?: any;
44
45
  showHeader?: any;
45
46
  showFooter?: any;
46
- dragable?: any;
47
47
  maskClosable?: any;
48
+ dragable?: any;
48
49
  lockScroll?: any;
49
50
  flex?: any;
50
51
  beforeClose?: any;
51
52
  }>>> & {
52
53
  onClose?: ((...args: any[]) => any) | undefined;
54
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
53
55
  onConfirm?: ((...args: any[]) => any) | undefined;
54
56
  onOpen?: ((...args: any[]) => any) | undefined;
55
- "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
56
57
  }, {
57
- readonly visible?: any;
58
58
  readonly title?: any;
59
59
  readonly mask?: any;
60
60
  readonly tiny_mode?: any;
@@ -66,11 +66,12 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
66
66
  readonly tiny_chart_theme?: any;
67
67
  readonly width?: any;
68
68
  readonly placement?: any;
69
+ readonly visible?: any;
69
70
  readonly customClass?: any;
70
71
  readonly showHeader?: any;
71
72
  readonly showFooter?: any;
72
- readonly dragable?: any;
73
73
  readonly maskClosable?: any;
74
+ readonly dragable?: any;
74
75
  readonly lockScroll?: any;
75
76
  readonly flex?: any;
76
77
  readonly beforeClose?: any;
package/src/pc.vue.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
- visible?: any;
3
2
  title?: any;
4
3
  mask?: any;
5
4
  tiny_mode?: any;
@@ -12,16 +11,17 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
12
11
  width?: any;
13
12
  height?: any;
14
13
  placement?: any;
15
- customClass?: any;
16
14
  zIndex?: any;
15
+ visible?: any;
16
+ customClass?: any;
17
+ showClose?: any;
17
18
  showHeader?: any;
18
19
  showFooter?: any;
19
- dragable?: any;
20
20
  maskClosable?: any;
21
+ dragable?: any;
21
22
  lockScroll?: any;
22
23
  flex?: any;
23
24
  beforeClose?: any;
24
- showClose?: any;
25
25
  tipsProps?: any;
26
26
  customSlots?: any;
27
27
  }>, {
@@ -32,8 +32,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
32
32
  d: (props: any) => void;
33
33
  dp: (props: any) => void;
34
34
  gcls: (key: any) => any;
35
- }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("close" | "drag" | "confirm" | "open" | "update:visible")[], "close" | "drag" | "confirm" | "open" | "update:visible", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
36
- visible?: any;
35
+ m: (...cssClasses: any[]) => string;
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
37
  title?: any;
38
38
  mask?: any;
39
39
  tiny_mode?: any;
@@ -46,26 +46,26 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
46
46
  width?: any;
47
47
  height?: any;
48
48
  placement?: any;
49
- customClass?: any;
50
49
  zIndex?: any;
50
+ visible?: any;
51
+ customClass?: any;
52
+ showClose?: any;
51
53
  showHeader?: any;
52
54
  showFooter?: any;
53
- dragable?: any;
54
55
  maskClosable?: any;
56
+ dragable?: any;
55
57
  lockScroll?: any;
56
58
  flex?: any;
57
59
  beforeClose?: any;
58
- showClose?: any;
59
60
  tipsProps?: any;
60
61
  customSlots?: any;
61
62
  }>>> & {
62
63
  onClose?: ((...args: any[]) => any) | undefined;
63
64
  onDrag?: ((...args: any[]) => any) | undefined;
65
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
64
66
  onConfirm?: ((...args: any[]) => any) | undefined;
65
67
  onOpen?: ((...args: any[]) => any) | undefined;
66
- "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
67
68
  }, {
68
- readonly visible?: any;
69
69
  readonly title?: any;
70
70
  readonly mask?: any;
71
71
  readonly tiny_mode?: any;
@@ -78,16 +78,17 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
78
78
  readonly width?: any;
79
79
  readonly height?: any;
80
80
  readonly placement?: any;
81
- readonly customClass?: any;
82
81
  readonly zIndex?: any;
82
+ readonly visible?: any;
83
+ readonly customClass?: any;
84
+ readonly showClose?: any;
83
85
  readonly showHeader?: any;
84
86
  readonly showFooter?: any;
85
- readonly dragable?: any;
86
87
  readonly maskClosable?: any;
88
+ readonly dragable?: any;
87
89
  readonly lockScroll?: any;
88
90
  readonly flex?: any;
89
91
  readonly beforeClose?: any;
90
- readonly showClose?: any;
91
92
  readonly tipsProps?: any;
92
93
  readonly customSlots?: any;
93
94
  }, {}>;