Skip to content

Commit d941e35

Browse files
committed
docs: update csp usage docs
1 parent 3c063ed commit d941e35

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Dropped support for Vue < 2.7.
1111
* Dropped CJS outputs.
1212
* Dropped extra wrapper element so that you should no longer set `padding` on the component root.
13+
* 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.
1314

1415
## 6.7.3
1516

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ Static methods can be accessed from [`echarts` itself](https://echarts.apache.or
459459
460460
## CSP: `style-src` or `style-src-elem`
461461
462-
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.
462+
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.
463463
464464
## Migration to v6
465465

README.zh-Hans.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ import { THEME_KEY } from 'vue-echarts'
461461
462462
## CSP: `style-src``style-src-elem`
463463
464-
如果你正在应用 CSP 来防止内联 `<style>` 注入,则需要使用 `dist/csp` 目录中的文件,并手动引入 `dist/csp/style.css`
464+
如果你正在应用 CSP 来防止内联 `<style>` 注入,则需要使用 `vue-echarts/csp` 代替 `vue-echarts`,并手动引入 `vue-echarts/csp/style.css`
465465
466466
## 迁移到 v6
467467

0 commit comments

Comments
 (0)