We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
有些东西隔一段时间不用就容易忘记,在此作下记录。
诸如 styleIsolation、virtualHost 等自定义组件配置,声明方式如下:
▼ Composition API
若是 Vue3.3+,可使用 defineOptions()。
<script setup> defineOptions({ options: { virtualHost: false, styleIsolation: 'shared', }, }) // your code... </script>
若是 Vue3.3 以下,需要独立的 <script> 块。
<script>
<script setup> // your code... </script> <script> export default { options: { virtualHost: false, styleIsolation: 'shared', }, } </script>
▼ Options API
<script> export default { options: { virtualHost: false, styleIsolation: 'shared', }, } </script>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
有些东西隔一段时间不用就容易忘记,在此作下记录。
自定义组件选项配置
诸如 styleIsolation、virtualHost 等自定义组件配置,声明方式如下:
▼ Composition API
若是 Vue3.3+,可使用 defineOptions()。
若是 Vue3.3 以下,需要独立的
<script>
块。▼ Options API
The text was updated successfully, but these errors were encountered: