Skip to content

Commit

Permalink
fix: 修复依赖vue版本可能会污染宿主环境的问题 #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro-Pang committed Jul 21, 2024
1 parent c0a100a commit 33b0fab
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 6 deletions.
4 changes: 4 additions & 0 deletions demos/vue2-demo/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ html, body {
width: 100%;
margin: 0;
padding: 0;
-webkit-print-color-adjust: exact;
-moz-print-color-adjust: exact;
-ms-print-color-adjust: exact;
print-color-adjust: exact;
}

h1 {
Expand Down
4 changes: 4 additions & 0 deletions demos/vue3-demo/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ html, body {
width: 100%;
margin: 0;
padding: 0;
-webkit-print-color-adjust: exact;
-moz-print-color-adjust: exact;
-ms-print-color-adjust: exact;
print-color-adjust: exact;
}

h1 {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@
},
"packageManager": "^[email protected]",
"peerDependencies": {
"vue": "^3.0.0"
"vue": "^2.0.0 || >=3.0.0"
},
"devDependencies": {
"vue": "^3.4.33",
"@types/node": "^20.14.8",
"@vitejs/plugin-vue": "^5.0.5",
"typescript": "^5.5.2",
Expand Down
119 changes: 114 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 33b0fab

Please sign in to comment.