Skip to content

@vtj


@vtj / core / PageFile

Interface: PageFile ​

Defined in: packages/core/src/protocols/schemas/file.ts:81

页面描述

Extends ​

Properties ​

cache? ​

optional cache: boolean

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

开启页面缓存


category? ​

optional category: string

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

分组

Inherited from ​

BlockFile.category


children? ​

optional children: PageFile[]

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

目录包含的页面


dir? ​

optional dir: boolean

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

是否目录


dsl? ​

optional dsl: BlockSchema

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

文件内容

Inherited from ​

BlockFile.dsl


fromType? ​

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

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

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

Inherited from ​

BlockFile.fromType


hidden? ​

optional hidden: boolean

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

不在菜单显示


icon? ​

optional icon: string

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

菜单icon


id ​

id: string

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

唯一标识

Inherited from ​

BlockFile.id


layout? ​

optional layout: boolean

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

是否布局页面


library? ​

optional library: string

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

Plugin 时的插件名称

Inherited from ​

BlockFile.library


market? ​

optional market: MarketInstallInfo

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

从物料市场安装

Inherited from ​

BlockFile.market


mask? ​

optional mask: boolean

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

是否在母版内


meta? ​

optional meta: Record<string, any>

Defined in: packages/core/src/protocols/schemas/file.ts:130

路由元信息


name ​

name: string

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

文件名

Inherited from ​

BlockFile.name


needLogin? ​

optional needLogin: boolean

Defined in: packages/core/src/protocols/schemas/file.ts:135

是否需要登录才可访问, UniApp 专用


preset? ​

optional preset: boolean

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

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

Inherited from ​

BlockFile.preset


pure? ​

optional pure: boolean

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

纯净的页面


raw? ​

optional raw: boolean

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

源码文件,非低代码页面


style? ​

optional style: Record<string, any>

Defined in: packages/core/src/protocols/schemas/file.ts:140

配置页面窗口表现,UniApp专用。 配置项参考下方 https://uniapp.dcloud.net.cn/collocation/pages.html#style


title ​

title: string

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

页面标题

Inherited from ​

BlockFile.title


type ​

type: FileType

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

文件类型

Inherited from ​

BlockFile.type


urls? ​

optional urls: string

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

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

Inherited from ​

BlockFile.urls