@opentiny/vue-drawer 2.11.0 → 2.13.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
@@ -16,10 +16,12 @@ import { $prefix, $props, $setup } from "@opentiny/vue-common";
16
16
  import PcTemplate from "./pc.js";
17
17
  import MobileFirstTemplate from "./mobile-first.js";
18
18
  var template = function template2(mode) {
19
- if ("pc" === (process.env.TINY_MODE || mode)) {
19
+ var _process$env;
20
+ var tinyMode = typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null;
21
+ if ("pc" === (tinyMode || mode)) {
20
22
  return PcTemplate;
21
23
  }
22
- if ("mobile-first" === (process.env.TINY_MODE || mode)) {
24
+ if ("mobile-first" === (tinyMode || mode)) {
23
25
  return MobileFirstTemplate;
24
26
  }
25
27
  return PcTemplate;
@@ -97,7 +99,7 @@ var Drawer = {
97
99
  });
98
100
  }
99
101
  };
100
- var version = "2.11.0";
102
+ var version = "2.13.0";
101
103
  Drawer.model = {
102
104
  prop: "modelValue",
103
105
  event: "update:modelValue"
package/lib/pc.js CHANGED
@@ -100,7 +100,7 @@ var render = function render2() {
100
100
  }
101
101
  }) : _vm._e()]), _c("transition", {
102
102
  attrs: {
103
- "name": "drawer-slideRight"
103
+ "name": "drawer-slide-" + _vm.placement
104
104
  }
105
105
  }, [_c("div", {
106
106
  directives: [{
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@opentiny/vue-drawer",
3
- "version": "2.11.0",
3
+ "version": "2.13.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": "~2.11.0",
11
- "@opentiny/vue-common": "~2.11.0",
12
- "@opentiny/vue-renderless": "~3.11.0"
10
+ "@opentiny/vue-button": "~2.13.0",
11
+ "@opentiny/vue-common": "~2.13.0",
12
+ "@opentiny/vue-renderless": "~3.13.0"
13
13
  },
14
14
  "license": "MIT",
15
15
  "types": "index.d.ts"