请问`v-if` and `slot-scope`怎么一起使用?
使用Element UI中的table,想利用tableHeader董涛生成不同的列,其中包括自定义的和非自定义的,但是使用v-if控制自定义与否的时候出问题了,v-if好像失效了一样,这个自定义还是
顺晟科技
2022-09-03 12:50:58
174
如题, 我的组件里用了<script setup=“props, context”>但是为什么props 和 context都是not defined?
顺晟科技:
https://staging-cn.vuejs.org/api/sfc-script-setup.html#defineexpose
我做了个连接: Vue SFC Playground
因为,不是这种使用方式。
context 被拆开了,分为 useSlots、useAttrs等。
https://staging-cn.vuejs.org/api/sfc-script-setup.html#defineprops-defineemits
https://staging-cn.vuejs.org/api/sfc-script-setup.html#useslots-useattrs
感谢大佬
03
2022-09
03
2022-09
03
2022-09
11
2021-12
11
2021-12
11
2021-12