File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -232,14 +232,15 @@ export interface Options {
232
232
2 . 对于 ` composition api ` , ` unplugin-vue-cssvars ` 会提取 ` setup ` 函数返回变量进行匹配。
233
233
````
234
234
<script>
235
- export default {
235
+ import { defineComponent } from 'vue'
236
+ export default defineComponent( {
236
237
setup(){
237
238
const color = 'red'
238
239
return {
239
240
color
240
241
}
241
242
}
242
- }
243
+ })
243
244
</script>
244
245
````
245
246
3 . 对于 ` options api ` , ` unplugin-vue-cssvars ` 会提取 ` data ` 函数返回变量进行匹配。
Original file line number Diff line number Diff line change @@ -236,14 +236,15 @@ otherwise the conversion analysis will be performed according to the `lang` attr
236
236
2 . For ` composition api ` , ` unplugin-vue-cssvars ` will extract ` setup ` function return variables for matching.
237
237
````
238
238
<script>
239
- export default {
239
+ import { defineComponent } from 'vue'
240
+ export default defineComponent( {
240
241
setup(){
241
242
const color = 'red'
242
243
return {
243
244
color
244
245
}
245
246
}
246
- }
247
+ })
247
248
</script>
248
249
````
249
250
3 . For ` options api ` , ` unplugin-vue-cssvars ` will extract ` data ` function return variables for matching.
You can’t perform that action at this time.
0 commit comments