Saltar al contenido
Meeko
Escribe para buscar en las guías y en la referencia de la API. Ábrela desde cualquier página con / o Ctrl K; muévete con las flechas y entra con Intro.
Empezar

Contenidos

En esta página

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 #

propiedad

name: 'script' | 'server' | 'template' | 'style'

start #

propiedad

start: number

end #

propiedad

end: number

content #

propiedad

content: string

contentStart #

propiedad

contentStart: number

contentEnd #

propiedad

contentEnd: number

attributes #

propiedad

attributes: ReadonlyArray<{ name: string; value: string }>

implicit #

propiedad opcional

implicit?: true

The 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.

¿Te sirvió esta página?

Añadir un comentario

Se envía al elegir «Sí» o «No». Solo se guardan la página, tu respuesta y el comentario: ni cookies ni datos tuyos.

0 de 2000 caracteres

Editar en GitHub: packages/meeko/src/compiler/parser/sfc.ts