Skip to content

@vtj


@vtj / core / PageFile

Interface: PageFile

页面描述

Extends

Properties

cache?

optional cache: boolean

开启页面缓存

Defined in

packages/core/src/protocols/schemas/file.ts:120


category?

optional category: string

分组

Inherited from

BlockFile.category

Defined in

packages/core/src/protocols/schemas/file.ts:42


children?

optional children: PageFile[]

目录包含的页面

Defined in

packages/core/src/protocols/schemas/file.ts:95


dir?

optional dir: boolean

是否目录

Defined in

packages/core/src/protocols/schemas/file.ts:85


dsl?

optional dsl: BlockSchema

文件内容

Inherited from

BlockFile.dsl

Defined in

packages/core/src/protocols/schemas/file.ts:75


fromType?

optional fromType: "Schema" | "UrlSchema" | "Plugin"

区块来源,默认为Schema,一旦确定,不允许更改

Inherited from

BlockFile.fromType

Defined in

packages/core/src/protocols/schemas/file.ts:52


hidden?

optional hidden: boolean

不在菜单显示

Defined in

packages/core/src/protocols/schemas/file.ts:105


icon?

optional icon: string

菜单icon

Defined in

packages/core/src/protocols/schemas/file.ts:90


id

id: string

唯一标识

Inherited from

BlockFile.id

Defined in

packages/core/src/protocols/schemas/file.ts:27


library?

optional library: string

Plugin 时的插件名称

Inherited from

BlockFile.library

Defined in

packages/core/src/protocols/schemas/file.ts:70


market?

optional market: MarketInstallInfo

从物料市场安装

Inherited from

BlockFile.market

Defined in

packages/core/src/protocols/schemas/file.ts:47


mask?

optional mask: boolean

是否在母版内

Defined in

packages/core/src/protocols/schemas/file.ts:100


meta?

optional meta: Record<string, any>

路由元信息

Defined in

packages/core/src/protocols/schemas/file.ts:125


name

name: string

文件名

Inherited from

BlockFile.name

Defined in

packages/core/src/protocols/schemas/file.ts:32


preset?

optional preset: boolean

是否预设,预设的插件不能编辑和删除

Inherited from

BlockFile.preset

Defined in

packages/core/src/protocols/schemas/file.ts:57


pure?

optional pure: boolean

纯净的页面

Defined in

packages/core/src/protocols/schemas/file.ts:115


raw?

optional raw: boolean

源码文件,非低代码页面

Defined in

packages/core/src/protocols/schemas/file.ts:110


title

title: string

页面标题

Inherited from

BlockFile.title

Defined in

packages/core/src/protocols/schemas/file.ts:37


type

type: FileType

文件类型

Inherited from

BlockFile.type

Defined in

packages/core/src/protocols/schemas/file.ts:23


urls?

optional urls: string

资源url, Schema: 无url UrlSchema: 只允许一个json文件 Plugin:支持多个文件(.css或.js),多个文件用逗号分隔

Inherited from

BlockFile.urls

Defined in

packages/core/src/protocols/schemas/file.ts:65

Released under the MIT License.