1.0.9 • Published 5 years ago

treno-ui v1.0.9

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Treno UI

NPM Version NPM Downloads

Installation

Via NPM
npm install treno-ui -S
Import
import Vue from 'vue'
import Treno from 'treno-ui'

Vue.use(Treno)

Drawer 侧边抽屉

Usage
<tr-drawer v-model="collapse" :width="500" position="right">
    <!-- slot -->
    <div>
        Slot Content
    </div>
</tr-drawer>

API

V-Model : Boolean. Drawer Status, collapsed or not.

Props
NameDescriptionUsage
widthContent WidthString, Number, (default: '600px'). You can set it to a number, e.g. 600 which turns out to be 600px. or a string like "30vw" and "50%"
positionDrawer PositionString, (default: "right"). Options: right, top, left, bottom
autoHideIf drawer collapse when click on the maskBoolean, (default: true)
showCloseIf display Close buttonBoolean, (default: true)
customClassDrawer Root ClassString, (default: ""), Use it to overwrite default Drawer Style
beforeClosecallback method before close. Interrupts drawer close actionFunction, function(callback) { callback() }
Events
NameDescriptionExample
closeTriggers when close the drawerFunction, function() { }
openTriggers when open the drawerFunction, function() { }

LICENSE

MIT

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

0.1.0

5 years ago

1.0.0

5 years ago