chore: better comment hovers preview [ci skip] (#1612)

This commit is contained in:
lawvs 2020-07-18 00:24:12 +09:00 committed by GitHub
parent 341b30c961
commit a935998b33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View File

@ -10,19 +10,19 @@ import { ParserPlugin } from '@babel/parser'
export interface ParserOptions {
/**
* e.g. platform native elements, e.g. <div> for browsers
* e.g. platform native elements, e.g. `<div>` for browsers
*/
isNativeTag?: (tag: string) => boolean
/**
* e.g. native elements that can self-close, e.g. <img>, <br>, <hr>
* e.g. native elements that can self-close, e.g. `<img>`, `<br>`, `<hr>`
*/
isVoidTag?: (tag: string) => boolean
/**
* e.g. elements that should preserve whitespace inside, e.g. <pre>
* e.g. elements that should preserve whitespace inside, e.g. `<pre>`
*/
isPreTag?: (tag: string) => boolean
/**
* Platform-specific built-in components e.g. <Transition>
* Platform-specific built-in components e.g. `<Transition>`
*/
isBuiltInComponent?: (tag: string) => symbol | void
/**
@ -127,7 +127,7 @@ export interface TransformOptions {
*/
ssr?: boolean
/**
* SFC <style vars> injection string
* SFC `<style vars>` injection string
* needed to render inline CSS variables on component root
*/
ssrCssVars?: string

View File

@ -876,7 +876,7 @@ function genRuntimeEmits(emits: Set<string>) {
}
/**
* export default {} inside <script setup> cannot access variables declared
* export default {} inside `<script setup>` cannot access variables declared
* inside since it's hoisted. Walk and check to make sure.
*/
function checkDefaultExport(

View File

@ -11,7 +11,7 @@ import { PatchFlags, SlotFlags } from '@vue/shared'
import { warn } from '../warning'
/**
* Compiler runtime helper for rendering <slot/>
* Compiler runtime helper for rendering `<slot/>`
* @private
*/
export function renderSlot(

View File

@ -12,7 +12,7 @@ export const enum SlotFlags {
*/
DYNAMIC = 2,
/**
* <slot/> being forwarded into a child component. Whether the parent needs
* `<slot/>` being forwarded into a child component. Whether the parent needs
* to update the child is dependent on what kind of slots the parent itself
* received. This has to be refined at runtime, when the child's vnode
* is being created (in `normalizeChildren`)