1.2.1 • Published 5 years ago

ym-drawer v1.2.1

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

ym-drawer

ym-drawer can be used to do these fancy things:

  • build mobile navbar
  • build mobile ui components with PC ui libraries like element-ui
  • become a container to show various data

Largely refered to muse-ui

Getting Started

install

To begin with, just install ym-drawer:

npm i ym-drawer -s

examples

You can use YmDrawerHorizontal as a vue component anywhere like this:

<template>
  <div class="home">
    <ym-drawer-horizontal
      :open.sync="isDrawerOpen"
      :zDepth="6666">
      This is ym-drawer-horizontal!!!
    </ym-drawer-horizontal>
  </div>
</template>

<script>
export default {
  name: 'home',
  data() {
    return {
      isDrawerOpen: false,
    };
  },
  methods: {
    handleClick() {
      this.isDrawerOpen = !this.isDrawerOpen;
    },
  },
}
</script>

<style lang="scss">
.ym-drawer--horizontal {
  background-color: #333;
}
</style>

Attributes

paramexplaintyperequiredDefault value
openwhether is openBooleanyes
rightwhether position is rightBoolean
dockedwhether is deckedBooleantrue
widthwidth valueNumber, String
zDepthz-index valueNumber100
overlayClickcallback when clicking overlayFunction

ToDo

  • complete YmDrawerVertical component.
1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago