@opentiny/vue-drawer 3.19.0 → 3.20.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
@@ -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.20.0";
168
168
  Drawer.model = {
169
169
  prop: "visible",
170
170
  event: "update:visible"
@@ -34,7 +34,7 @@ function _arrayLikeToArray(r, a) {
34
34
  var _export_sfc = function _export_sfc2(sfc, props) {
35
35
  var target = sfc.__vccOpts || sfc;
36
36
  for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
37
- var _step$value2 = _step.value, key = _step$value2[0], val = _step$value2[1];
37
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
38
38
  target[key] = val;
39
39
  }
40
40
  return target;
package/lib/pc.js CHANGED
@@ -36,7 +36,7 @@ function _arrayLikeToArray(r, a) {
36
36
  var _export_sfc = function _export_sfc2(sfc, props) {
37
37
  var target = sfc.__vccOpts || sfc;
38
38
  for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
39
- var _step$value2 = _step.value, key = _step$value2[0], val = _step$value2[1];
39
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
40
40
  target[key] = val;
41
41
  }
42
42
  return target;
@@ -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,18 +1,18 @@
1
1
  {
2
2
  "name": "@opentiny/vue-drawer",
3
- "version": "3.19.0",
3
+ "version": "3.20.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.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"
16
16
  },
17
17
  "license": "MIT",
18
18
  "types": "index.d.ts"
@@ -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
+ 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<{
31
32
  title?: any;
32
33
  mask?: any;
33
34
  tiny_mode?: any;
package/src/pc.vue.d.ts CHANGED
@@ -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
+ 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<{
36
37
  title?: any;
37
38
  mask?: any;
38
39
  tiny_mode?: any;