Skip to content

Commit 8e4ab4d

Browse files
authored
docs: updated README.md (#64)
1 parent 7e57559 commit 8e4ab4d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.ZH-CN.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,15 @@ export interface Options {
232232
2. 对于 `composition api`, `unplugin-vue-cssvars` 会提取 `setup` 函数返回变量进行匹配。
233233
````
234234
<script>
235-
export default {
235+
import { defineComponent } from 'vue'
236+
export default defineComponent( {
236237
setup(){
237238
const color = 'red'
238239
return {
239240
color
240241
}
241242
}
242-
}
243+
})
243244
</script>
244245
````
245246
3. 对于 `options api`, `unplugin-vue-cssvars` 会提取 `data` 函数返回变量进行匹配。

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,15 @@ otherwise the conversion analysis will be performed according to the `lang` attr
236236
2. For `composition api`, `unplugin-vue-cssvars` will extract `setup` function return variables for matching.
237237
````
238238
<script>
239-
export default {
239+
import { defineComponent } from 'vue'
240+
export default defineComponent( {
240241
setup(){
241242
const color = 'red'
242243
return {
243244
color
244245
}
245246
}
246-
}
247+
})
247248
</script>
248249
````
249250
3. For `options api`, `unplugin-vue-cssvars` will extract `data` function return variables for matching.

0 commit comments

Comments
 (0)