@varlet/cli 2.20.5-alpha.1703836585426 → 2.20.5
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/cli",
|
|
3
|
-
"version": "2.20.5
|
|
3
|
+
"version": "2.20.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "cli of varlet",
|
|
6
6
|
"bin": {
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"slash": "^3.0.0",
|
|
65
65
|
"typescript": "^5.1.5",
|
|
66
66
|
"webfont": "11.2.26",
|
|
67
|
-
"@varlet/shared": "2.20.5
|
|
68
|
-
"@varlet/vite-plugins": "2.20.5
|
|
67
|
+
"@varlet/shared": "2.20.5",
|
|
68
|
+
"@varlet/vite-plugins": "2.20.5"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@types/babel__core": "^7.20.1",
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"@types/semver": "^7.3.9",
|
|
81
81
|
"@types/sharp": "0.31.1",
|
|
82
82
|
"rimraf": "^5.0.1",
|
|
83
|
-
"@varlet/
|
|
84
|
-
"@varlet/icons": "2.20.5
|
|
85
|
-
"@varlet/
|
|
83
|
+
"@varlet/ui": "2.20.5",
|
|
84
|
+
"@varlet/icons": "2.20.5",
|
|
85
|
+
"@varlet/touch-emulator": "2.20.5"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"@vue/runtime-core": "3.3.4",
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
"lodash-es": "^4.17.21",
|
|
96
96
|
"vue": "3.3.4",
|
|
97
97
|
"vue-router": "4.2.0",
|
|
98
|
-
"@varlet/
|
|
99
|
-
"@varlet/icons": "2.20.5
|
|
100
|
-
"@varlet/
|
|
98
|
+
"@varlet/ui": "2.20.5",
|
|
99
|
+
"@varlet/icons": "2.20.5",
|
|
100
|
+
"@varlet/touch-emulator": "2.20.5"
|
|
101
101
|
},
|
|
102
102
|
"scripts": {
|
|
103
103
|
"dev": "tsc --watch",
|
|
@@ -144,7 +144,10 @@ export default defineComponent({
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
const notifyThemeChange = (target: 'mobile' | 'window') => {
|
|
147
|
-
const contentWindow = target === 'window' ? window : (document.getElementById(target) as HTMLIFrameElement)
|
|
147
|
+
const contentWindow = target === 'window' ? window : (document.getElementById(target) as HTMLIFrameElement | undefined)?.contentWindow
|
|
148
|
+
if (!contentWindow) {
|
|
149
|
+
return
|
|
150
|
+
}
|
|
148
151
|
|
|
149
152
|
contentWindow.postMessage(getThemeMessage(), '*')
|
|
150
153
|
}
|