docs: update csp usage docs

This commit is contained in:
Justineo
2024-07-24 16:03:33 +08:00
committed by GU Yiling
parent 3c063ed21e
commit d941e35a61
3 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@
* Dropped support for Vue < 2.7.
* Dropped CJS outputs.
* Dropped extra wrapper element so that you should no longer set `padding` on the component root.
* For strict CSP usage, `vue-echarts/csp` should now be used as the entry point and `vue-echarts/csp/style.css` should be included manually.
## 6.7.3

View File

@ -459,7 +459,7 @@ Static methods can be accessed from [`echarts` itself](https://echarts.apache.or
## CSP: `style-src` or `style-src-elem`
If you are applying a CSP to prevent inline `<style>` injection, you need to use files from `dist/csp` directory and include `dist/csp/style.css` into your app manually.
If you are applying a CSP to prevent inline `<style>` injection, you need to use `vue-echarts/csp` instead of `vue-echarts` and include `vue-echarts/csp/style.css` manually.
## Migration to v6

View File

@ -461,7 +461,7 @@ import { THEME_KEY } from 'vue-echarts'
## CSP: `style-src` 或 `style-src-elem`
如果你正在应用 CSP 来防止内联 `<style>` 注入,则需要使用 `dist/csp` 目录中的文件,并手动引入 `dist/csp/style.css`
如果你正在应用 CSP 来防止内联 `<style>` 注入,则需要使用 `vue-echarts/csp` 代替 `vue-echarts`,并手动引入 `vue-echarts/csp/style.css`
## 迁移到 v6