1.0.1 • Published 4 years ago

deue-ui v1.0.1

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

Treno UI

NPM Version NPM Downloads

Installation

Via NPM
npm install deue-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>
Usage(in Nuxt.js)
<no-ssr>
  <tr-drawer v-model="collapse" :width="500" position="right">
      <!-- slot -->
      <div>
          Slot Content
      </div>
  </tr-drawer>
</no-ssr>

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