vuepress-plugin-element-tabs
Vuepress plugin - markdown custom container to display content in tabs from Element UI
Docs
Install
This plugin requires VuePress >= 1.0.0, for now you can try it via yarn add vuepress@next -D
yarn add vuepress-plugin-element-tabs -D
// .vuepress/config.jsmoduleexports = plugins: 'vuepress-plugin-element-tabs'
Usage
:::: tabs::: tab title__markdown content__:::::: tab javascript``` javascript() => {console.log('Javascript code example')}```:::::::
Documents
Accepted Value Like That
:::: tabs type:board-card::: tab title lazy__markdown content__:::::::
Tabs Attributes
Attribute | Description | Type | Accepted Values | Default |
---|---|---|---|---|
type | type of Tab | String | card/border-card | border-card |
tab-position | position of tabs | String | top/right/bottom/left | top |
stretch | whether width of tab automatically fits its container | Boolean | - | false |
Tab Attributes
Attribute | Description | Type | Accepted Values | Default |
---|---|---|---|---|
label | title of the tab | String | - | - |
lazy | whether Tab is lazily rendered | Boolean | - | false |
Q&A
- How to get mouse position with canvas ?
var canvas = document;var mouse = ; { try obj; catch e try obj; catch e obj"on" + type = handle; } { var mouse = x: 0 y: 0 ; ; return mouse;}