File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -232,14 +232,15 @@ export interface Options {
2322322 . 对于 ` 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````
2452463 . 对于 ` 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
2362362 . 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````
2492503 . 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