faviconv-noREADME|ARCHIVES|CATEGORIES|SEARCH|
«Wed Feb 03 2021AkrISrnAPI2fa80d4Raw
appSelf
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.

keyInput

v1.2.0 +

  • 类型:string

记录按键输入的字符串,v-no 会监听它来响应自定义输入绑定,最大长度为 20。

selectConf

v1.2.0 +

  • 类型:string

vno.config.getSelectConf 的返回值。

links

v1.2.13 +

  • 类型:string[]

预定义的顶栏链接地址列表。

otherLinks

v1.2.9 +

  • 类型:TAnchor[]

非预定义顶栏链接列表。

get initing()

v1.2.2 +

  • 类型:typeof store.state.initing

vno.store.state.initing

get homePath()

v1.2.0 +

  • 类型:typeof store.state.homePath

vno.store.state.homePath

get conf()

v1.2.15 (Latest)

  • 类型:typeof config.config

vno.config.config

get confList()

v1.2.0 +

  • 类型:typeof config.confList

vno.config.confList

get enableMultiConf()

v1.2.0 +

  • 类型:typeof config.enableMultiConf

vno.config.enableMultiConf

get favicon()

v1.2.0 +

  • 类型:string

加上 URL 前缀后的 favicon 路径。

get iconExternal()

v1.2.10 +

  • 类型:string

外部链接图标元素字符串。

addLink(href, text?)

v1.2.9 +

  • 参数:
    • href: string:链接地址。
    • text = '':链接文本。
  • 返回值:TAnchor

将指定链接添加到自定义顶栏链接列表,返回被添加的链接对象。

如果省略 text 让 v-no 自动填充 .md 文件的标题,要在 $nextTick 中更新 document

vno.appSelf.addLink('/index.md');
vno.appSelf.$nextTick(() => vno.updateDom());
JavaScript

removeLink(href)

v1.2.9 +

  • 参数:
    • href: string:链接地址。
  • 返回值:number

自定义顶栏链接列表中移除链接,返回被移除的链接索引。

returnHome()

v1.2.0 +

  • 参数:无
  • 返回值:无

vno.path.returnHome

This page is open source, improve it
Graph