为SFC添加过期、废弃、过时的注解 #515
HighSky2GT
started this conversation in
General
Replies: 2 comments 2 replies
-
感觉应该做到 https://github.com/vuejs/language-tools 里面 |
Beta Was this translation helpful? Give feedback.
1 reply
-
<script setup lang="ts">
const props = defineProps<{
/**
* 😄
*/
foobar: string;
}>();
</script>
<script lang="ts">
/**
* 这是一个组件,
* 喜欢:
* * 唱
* * 跳
* * rap
* * 🏀
*
* @deprecated 但是过气了
*/
export default {};
</script>
<template>
<span>🐔</span>
</template> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What problem does this feature solve?
类似于使用
@deprecated
标记一个废弃的方法,也可以使用类似的标记使SFC废弃What does the proposed API look like?
在SFC头部添加
<!-- @deprecated -->
Beta Was this translation helpful? Give feedback.
All reactions