Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix(ui-adapter-vue3): update peerDependencies to require Vue 3.0.0 or higher (#5495)

白熱b72b49a06d31
diff --git a/common/shared/vite/data.ts b/common/shared/vite/data.ts
index 87d13f6e16..e654e28969 100644
--- a/common/shared/vite/data.ts
+++ b/common/shared/vite/data.ts
@@ -60,4 +60,9 @@ export const peerDepsMap = {
name: 'monaco-editor',
version: '>=0.50.0',
},
+ vue: {
+ global: 'Vue',
+ name: 'vue',
+ version: '>=3.0.0',
+ },
};
diff --git a/packages/ui-adapter-vue3/package.json b/packages/ui-adapter-vue3/package.json
index 299b5059a7..bc33301cb8 100644
--- a/packages/ui-adapter-vue3/package.json
+++ b/packages/ui-adapter-vue3/package.json
@@ -58,7 +58,7 @@
"build": "univer-cli build"
},
"peerDependencies": {
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ "vue": ">=3.0.0"
},
"dependencies": {
"@univerjs/core": "workspace:*",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d051510b5c..17fbbc1237 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -3446,9 +3446,6 @@ importers:
'@univerjs/ui':
specifier: workspace:*
version: link:../ui
- react:
- specifier: 19.1.0
- version: 19.1.0
devDependencies:
'@univerjs-infra/shared':
specifier: workspace:*