Skip to content

Commit

Permalink
docs: fix update theme property to a reactive property (#2750) (#2010)
Browse files Browse the repository at this point in the history
* update sfc-css-features.md

Update theme to reactive  property

* docs: make example consistent with ref recommendation as standard

---------

Co-authored-by: Hu Jing <[email protected]>
Co-authored-by: Ben Hong <[email protected]>
  • Loading branch information
3 people committed Apr 26, 2024
1 parent 43935ce commit d80e827
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/api/sfc-css-features.md
Expand Up @@ -183,9 +183,10 @@ export default {

```vue
<script setup>
const theme = {
color: 'red'
}
import { ref } from 'vue'
const theme = ref({
color: 'red',
})
</script>
<template>
Expand Down

0 comments on commit d80e827

Please sign in to comment.