@opentinyvue/vue-image 2.21.0 → 2.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.
Files changed (2) hide show
  1. package/lib/index.js +4 -4
  2. package/package.json +10 -9
package/lib/index.js CHANGED
@@ -7,10 +7,10 @@ function _extends() {
7
7
  return n;
8
8
  }, _extends.apply(null, arguments);
9
9
  }
10
- import { defineComponent, $prefix, $setup, $props } from "@opentinyvue/vue-common";
10
+ import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-common";
11
11
  import PcTemplate from "./pc.js";
12
12
  import MobileFirstTemplate from "./mobile-first.js";
13
- import { isBrowser } from "@opentinyvue/vue-renderless/common/browser";
13
+ import { isServer } from "@opentinyvue/utils";
14
14
  import "@opentinyvue/vue-theme/image/index.css";
15
15
  var template = function template2(mode) {
16
16
  var _process$env;
@@ -47,7 +47,7 @@ var imageProps = _extends({}, $props, {
47
47
  }
48
48
  },
49
49
  scrollContainer: {
50
- type: isBrowser ? [String, HTMLElement] : null,
50
+ type: !isServer ? [String, HTMLElement] : null,
51
51
  default: null
52
52
  },
53
53
  src: String,
@@ -95,7 +95,7 @@ var Image = defineComponent({
95
95
  });
96
96
  }
97
97
  });
98
- var version = "2.21.0";
98
+ var version = "2.22.0";
99
99
  Image.install = function(Vue) {
100
100
  Vue.component(Image.name, Image);
101
101
  };
package/package.json CHANGED
@@ -1,19 +1,20 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-image",
3
- "version": "2.21.0",
3
+ "type": "module",
4
+ "version": "2.22.0",
4
5
  "description": "",
6
+ "license": "MIT",
7
+ "sideEffects": false,
5
8
  "main": "./lib/index.js",
6
9
  "module": "./lib/index.js",
7
- "sideEffects": false,
8
- "type": "module",
9
10
  "dependencies": {
10
- "@opentinyvue/vue-common": "~2.21.0",
11
- "@opentinyvue/vue-renderless": "~3.21.0",
12
- "@opentinyvue/vue-image-viewer": "~2.21.0",
13
- "@opentinyvue/vue-theme": "~3.21.0",
14
- "@opentinyvue/vue-icon": "~2.21.0"
11
+ "@opentinyvue/utils": "~2.22.0",
12
+ "@opentinyvue/vue-common": "~2.22.0",
13
+ "@opentinyvue/vue-icon": "~2.22.0",
14
+ "@opentinyvue/vue-image-viewer": "~2.22.0",
15
+ "@opentinyvue/vue-renderless": "~3.22.0",
16
+ "@opentinyvue/vue-theme": "~3.22.0"
15
17
  },
16
- "license": "MIT",
17
18
  "types": "index.d.ts",
18
19
  "scripts": {
19
20
  "build": "pnpm -w build:ui $npm_package_name",