@opentinyvue/vue-image 2.21.0 → 2.22.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 +4 -4
- 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, $
|
|
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 {
|
|
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:
|
|
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.
|
|
98
|
+
var version = "2.undefined";
|
|
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
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "2.22.1",
|
|
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/
|
|
11
|
-
"@opentinyvue/vue-
|
|
12
|
-
"@opentinyvue/vue-
|
|
13
|
-
"@opentinyvue/vue-
|
|
14
|
-
"@opentinyvue/vue-
|
|
11
|
+
"@opentinyvue/utils": "~3.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",
|