The documentation is a work in progress, and English edition is just an empty shell for now. I will translate it when Chinese edition has done.
- fileTs
- fileData
- title
- tags
- startDate
- endDate
- cover
- creator
- updater
- otherFlags
- links
- backlinks
- backlinkFiles
- isLoadingBacklinks
- hasLoadedBacklinks
fileTs
v1.2.0 +
- 类型:
typeof file | null
vno.file
模块的实例。
fileData
v1.2.0 +
- 类型:
string
初步预处理过的页面文件内容。
title
v1.2.0 +
- 类型:
string
页面标题。
tags
v1.2.0 +
- 类型:
string[]
标签列表。
startDate
v1.2.0 +
- 类型:
string
最旧日期。
endDate
v1.2.0 +
- 类型:
string
最新日期。
cover
v1.2.0 +
- 类型:
string
题图地址。
creator
v1.2.0 +
- 类型:
string
创建者。
updater
v1.2.0 +
- 类型:
string
更新者。
otherFlags
v1.2.9 +
- 类型:
TFlag[]
非预定义 Flag 列表。
links
v1.2.0 +
- 类型:
string[]
页面文件所链接的其它文件地址列表。
backlinks
v1.2.0 +
- 类型:
string[]
链接到页面文件的其它文件地址列表。
backlinkFiles
v1.2.2 +
- 类型:
ISimpleFile[]
链接到页面文件的其它文件对象列表。
isLoadingBacklinks
v1.2.0 +
- 类型:
boolean
是否正在加载反向链接。
hasLoadedBacklinks
v1.2.0 +
- 类型:
boolean
是否已经加载过反向链接。
showTime
v1.2.0 +
- 类型:
number
页面展示前的时间戳。
isShow
v1.2.0 +
- 类型:
boolean
是否展示页面。
isError
v1.2.0 +
- 类型:
boolean
是否为错误页面。
isRedirectPage
v1.2.0 +
- 类型:
boolean
是否为重定向页面。
redirectFrom
v1.2.2 +
- 类型:
TRedirectList
重定向到页面文件的链接列表。
initing
v1.2.2 +
- 类型:
boolean
页面初始化状态。
get homePath()
v1.2.0 +
- 类型:
typeof store.state.homePath
get filePath()
v1.2.0 +
- 类型:
typeof store.state.filePath
get anchor()
v1.2.0 +
- 类型:
typeof store.state.anchor
get queryStr()
v1.2.0 +
- 类型:
typeof store.state.queryStr
get shortFilePath()
v1.2.0 +
- 类型:
string
页面文件的短路径(省略 index.md
)。
get rawFilePath()
v1.2.0 +
- 类型:
string
页面文件的源路径。
get query()
v1.2.0 +
- 类型:
TQuery
vno.mainSelf.queryStr
转换后的对象。
get conf()
v1.2.15 (Latest)
- 类型:
typeof config.config
get isIndexFile()
v1.2.0 +
- 类型:
boolean
是否为主页。
get lastUpdatedMessage()
v1.2.0 +
- 类型:
string
最后更新信息。
get iconSync()
v1.2.0 +
- 类型:
string
Sync 图标元素字符串。
get iconBacklink()
v1.2.0 +
- 类型:
string
反向链接图标元素字符串。
reload(toTop?)
v1.2.0 +
- 参数:
toTop = false
:是否在重载后滚动到页面顶部。
- 返回值:无
重载页面。
getData()
v1.2.2 +
- 参数:无
- 返回值:
Promise<TFileData | undefined>
获取页面文件的内容。
setData(fileData?)
v1.2.2 +
- 参数:
fileData?: TFileData
:页面文件内容。
- 返回值:无
用页面文件内容更新页面。
setFlags(flags)
v1.2.0 +
- 参数:
flags: IFlags
:Flag 对象。
- 返回值:无
用 Flag 对象更新 Flag。
addFlag(key, value)
v1.2.9 +
- 参数:
key: string
:Flag 键。value: string
:Flag 值。
- 返回值:
TFlag
将指定 Flag 添加到非预定义 Flag 列表,返回被添加的 Flag 对象。
removeFlag(key)
v1.2.9 +
- 参数:
key: string
:Flag 键。
- 返回值:
number
从非预定义 Flag 列表中移除 Flag,返回被移除的 Flag 索引。
redirectTo(path, anchor?, query?)
v1.2.4 +
- 参数:
path: string
:文件路径。anchor?: string
:Hash 锚点。query?: string
:URL 查询字符串。
- 返回值:
boolean
重定向当前页面,返回是否重定向成功。
loadBacklinks()
v1.2.4 +
- 参数:无
- 返回值:
Promise<void>
加载页面文件的反向链接。
getListHtml(file)
v1.2.2 +
- 参数:
file: ISimpleFile
:文件对象。
- 返回值:
string
同 vno.element.createList
的 innerHTML
。
getQueryTagLinks(tag)
v1.2.9 +
- 参数:
tag: string
:标签名。
- 返回值:
TAnchor[]
同 vno.element.getQueryTagLinks
。
returnHome()
v1.2.0 +
- 参数:无
- 返回值:无
- This page is open source, improve it