@opentinyvue/vue-image 3.21.0 → 3.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.
- package/lib/index.js +4 -4
- package/package.json +10 -9
- package/src/index.d.ts +3 -3
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 = "3.
|
|
98
|
+
var version = "3.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
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "3.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/
|
|
11
|
-
"@opentinyvue/vue-
|
|
12
|
-
"@opentinyvue/vue-
|
|
13
|
-
"@opentinyvue/vue-
|
|
14
|
-
"@opentinyvue/vue-
|
|
11
|
+
"@opentinyvue/utils": "~3.22.0",
|
|
12
|
+
"@opentinyvue/vue-common": "~3.22.0",
|
|
13
|
+
"@opentinyvue/vue-icon": "~3.22.0",
|
|
14
|
+
"@opentinyvue/vue-image-viewer": "~3.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",
|
package/src/index.d.ts
CHANGED
|
@@ -201,11 +201,12 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
201
201
|
tiny_theme: StringConstructor;
|
|
202
202
|
tiny_chart_theme: ObjectConstructor;
|
|
203
203
|
}>>, {
|
|
204
|
+
zIndex: number;
|
|
205
|
+
lazy: boolean;
|
|
206
|
+
appendToBody: boolean;
|
|
204
207
|
tiny_mode_root: boolean;
|
|
205
208
|
_constants: Record<string, any>;
|
|
206
209
|
round: boolean;
|
|
207
|
-
zIndex: number;
|
|
208
|
-
appendToBody: boolean;
|
|
209
210
|
scrollContainer: {
|
|
210
211
|
type: (StringConstructor | {
|
|
211
212
|
new (): HTMLElement;
|
|
@@ -213,7 +214,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
213
214
|
})[] | null;
|
|
214
215
|
default: null;
|
|
215
216
|
};
|
|
216
|
-
lazy: boolean;
|
|
217
217
|
previewVisible: boolean;
|
|
218
218
|
showIndex: boolean;
|
|
219
219
|
keepStyle: boolean;
|