SfcSection
interfaz
Una sección SFC con posiciones conservadas en el archivo fuente.
ts
import type { SfcSection } from "@meekojs/meeko/parse";Código fuente src/compiler/parser/sfc.ts:65
Declaración #
ts
interface SfcSection {
name: 'script' | 'server' | 'template' | 'style'
start: number
end: number
content: string
contentStart: number
contentEnd: number
attributes: ReadonlyArray<{ name: string; value: string }>
implicit?: true
}Propiedades #
name
#
name: 'script' | 'server' | 'template' | 'style'
start
#
start: number
end
#
end: number
content
#
content: string
contentStart
#
contentStart: number
contentEnd
#
contentEnd: number
attributes
#
attributes: ReadonlyArray<{ name: string; value: string }>
implicit
#
implicit?: trueThe file has no such section: an empty <script lang="ts"> stands in for it, at the
start of the <template>, with no source text. Tools that edit or print sections skip it.