docs: add sass compatible version description (#18428)

* chore: fix docs/play dev sass deprecation warning

* chore: update

* chore: update

* docs: add sass compatible version description

---------

Co-authored-by: btea <2356281422@qq.com>
This commit is contained in:
sea 2024-10-01 09:32:34 +08:00 committed by GitHub
parent da60940ae3
commit 68d57aff34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,6 +18,20 @@ Since Vue 3 no longer supports IE11, Element Plus does not support IE either.
| < 2.5.0 | Chrome 64 | Edge 79 | Firefox 78 | Safari 12 |
| 2.5.0 + | Chrome ≥ 85 | Edge ≥ 85 | Firefox ≥ 79 | Safari ≥ 14.1 |
### Sass
Version `2.8.5` and later, the minimum compatible version of [Sass](https://github.com/sass) is `1.79.0`.
If your terminal prompts `legacy JS API Deprecation Warning`, you can configure the following code in [vite.config.ts](https://vitejs.dev/config/shared-options.html#css-preprocessoroptions).
```ts{3}
css: {
preprocessorOptions: {
scss: { api: 'modern-compiler' },
}
}
```
### Version
Element Plus is currently in a rapid development iteration.