@opentiny/vue-drawer 3.19.0 → 3.19.1

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
@@ -31,7 +31,7 @@ var $constants = {
31
31
  return scrollLockClasses[mode] || "";
32
32
  },
33
33
  DEFAULT_WIDTH: "500px",
34
- DEFAULT_HEIGHT: "500px"
34
+ DEFAULT_HEIGHT: "100vh"
35
35
  };
36
36
  var drawerProps = _extends({}, $props, {
37
37
  _constants: {
@@ -164,7 +164,7 @@ var service = function service2(configs) {
164
164
  });
165
165
  return instance;
166
166
  };
167
- var version = "3.19.0";
167
+ var version = "3.undefined";
168
168
  Drawer.model = {
169
169
  prop: "visible",
170
170
  event: "update:visible"
package/lib/pc.js CHANGED
@@ -155,7 +155,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
155
155
  }, "tiny-drawer-main", _ctx.customClass]),
156
156
  style: normalizeStyle({
157
157
  width: ["left", "right"].includes(_ctx.placement) ? _ctx.state.computedWidth : null,
158
- height: ["top", "bottom"].includes(_ctx.placement) || _ctx.dragable ? _ctx.state.computedHeight : null,
158
+ height: ["top", "bottom", "left", "right"].includes(_ctx.placement) || _ctx.dragable ? _ctx.state.computedHeight : null,
159
159
  zIndex: _ctx.zIndex
160
160
  })
161
161
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/vue-drawer",
3
- "version": "3.19.0",
3
+ "version": "3.19.1",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
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: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
19
+ customClass: (ObjectConstructor | StringConstructor | 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: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
87
+ customClass: (ObjectConstructor | StringConstructor | 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: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
156
+ customClass: (ObjectConstructor | StringConstructor | 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;
211
212
  mask: boolean;
212
213
  tiny_mode_root: boolean;
213
214
  _constants: Record<string, any>;
214
215
  placement: string;
215
216
  zIndex: number;
216
- visible: boolean;
217
- showClose: boolean;
218
217
  showHeader: boolean;
219
218
  showFooter: boolean;
220
- maskClosable: boolean;
221
219
  dragable: boolean;
220
+ maskClosable: boolean;
222
221
  lockScroll: boolean;
223
222
  flex: boolean;
223
+ showClose: boolean;
224
224
  }, {}>;
225
225
  export default _default;
@@ -1,4 +1,5 @@
1
1
  declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
+ visible?: any;
2
3
  title?: any;
3
4
  mask?: any;
4
5
  tiny_mode?: any;
@@ -10,12 +11,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
10
11
  tiny_chart_theme?: any;
11
12
  width?: any;
12
13
  placement?: any;
13
- visible?: any;
14
14
  customClass?: any;
15
15
  showHeader?: any;
16
16
  showFooter?: any;
17
- maskClosable?: any;
18
17
  dragable?: any;
18
+ maskClosable?: any;
19
19
  lockScroll?: any;
20
20
  flex?: any;
21
21
  beforeClose?: any;
@@ -27,7 +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" | "update:visible" | "open")[], "close" | "confirm" | "update:visible" | "open", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
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;
31
32
  title?: any;
32
33
  mask?: any;
33
34
  tiny_mode?: any;
@@ -39,21 +40,21 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
39
40
  tiny_chart_theme?: any;
40
41
  width?: any;
41
42
  placement?: any;
42
- visible?: any;
43
43
  customClass?: any;
44
44
  showHeader?: any;
45
45
  showFooter?: any;
46
- maskClosable?: any;
47
46
  dragable?: any;
47
+ maskClosable?: any;
48
48
  lockScroll?: any;
49
49
  flex?: any;
50
50
  beforeClose?: any;
51
51
  }>>> & {
52
52
  onClose?: ((...args: any[]) => any) | undefined;
53
- "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
54
53
  onConfirm?: ((...args: any[]) => any) | undefined;
55
54
  onOpen?: ((...args: any[]) => any) | undefined;
55
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
56
56
  }, {
57
+ readonly visible?: any;
57
58
  readonly title?: any;
58
59
  readonly mask?: any;
59
60
  readonly tiny_mode?: any;
@@ -65,12 +66,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
65
66
  readonly tiny_chart_theme?: any;
66
67
  readonly width?: any;
67
68
  readonly placement?: any;
68
- readonly visible?: any;
69
69
  readonly customClass?: any;
70
70
  readonly showHeader?: any;
71
71
  readonly showFooter?: any;
72
- readonly maskClosable?: any;
73
72
  readonly dragable?: any;
73
+ readonly maskClosable?: any;
74
74
  readonly lockScroll?: any;
75
75
  readonly flex?: any;
76
76
  readonly beforeClose?: any;
package/src/pc.vue.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
+ visible?: any;
2
3
  title?: any;
3
4
  mask?: any;
4
5
  tiny_mode?: any;
@@ -11,17 +12,16 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
11
12
  width?: any;
12
13
  height?: any;
13
14
  placement?: any;
14
- zIndex?: any;
15
- visible?: any;
16
15
  customClass?: any;
17
- showClose?: any;
16
+ zIndex?: any;
18
17
  showHeader?: any;
19
18
  showFooter?: any;
20
- maskClosable?: any;
21
19
  dragable?: any;
20
+ maskClosable?: any;
22
21
  lockScroll?: any;
23
22
  flex?: any;
24
23
  beforeClose?: any;
24
+ showClose?: any;
25
25
  tipsProps?: any;
26
26
  customSlots?: any;
27
27
  }>, {
@@ -32,7 +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" | "update:visible" | "open")[], "close" | "drag" | "confirm" | "update:visible" | "open", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
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;
36
37
  title?: any;
37
38
  mask?: any;
38
39
  tiny_mode?: any;
@@ -45,26 +46,26 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
45
46
  width?: any;
46
47
  height?: any;
47
48
  placement?: any;
48
- zIndex?: any;
49
- visible?: any;
50
49
  customClass?: any;
51
- showClose?: any;
50
+ zIndex?: any;
52
51
  showHeader?: any;
53
52
  showFooter?: any;
54
- maskClosable?: any;
55
53
  dragable?: any;
54
+ maskClosable?: any;
56
55
  lockScroll?: any;
57
56
  flex?: any;
58
57
  beforeClose?: any;
58
+ showClose?: any;
59
59
  tipsProps?: any;
60
60
  customSlots?: any;
61
61
  }>>> & {
62
62
  onClose?: ((...args: any[]) => any) | undefined;
63
63
  onDrag?: ((...args: any[]) => any) | undefined;
64
- "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
65
64
  onConfirm?: ((...args: any[]) => any) | undefined;
66
65
  onOpen?: ((...args: any[]) => any) | undefined;
66
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
67
67
  }, {
68
+ readonly visible?: any;
68
69
  readonly title?: any;
69
70
  readonly mask?: any;
70
71
  readonly tiny_mode?: any;
@@ -77,17 +78,16 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
77
78
  readonly width?: any;
78
79
  readonly height?: any;
79
80
  readonly placement?: any;
80
- readonly zIndex?: any;
81
- readonly visible?: any;
82
81
  readonly customClass?: any;
83
- readonly showClose?: any;
82
+ readonly zIndex?: any;
84
83
  readonly showHeader?: any;
85
84
  readonly showFooter?: any;
86
- readonly maskClosable?: any;
87
85
  readonly dragable?: any;
86
+ readonly maskClosable?: any;
88
87
  readonly lockScroll?: any;
89
88
  readonly flex?: any;
90
89
  readonly beforeClose?: any;
90
+ readonly showClose?: any;
91
91
  readonly tipsProps?: any;
92
92
  readonly customSlots?: any;
93
93
  }, {}>;