colorful-button

1.0.0 • Public • Published

安装

npm i -save waterripple
或
yarn add waterripple

使用

<template>
  <WaterRipple class="login-box" @onClick="login" text="登陆"></WaterRipple>
</template>

<script>
  import WaterRipple from 'waterripple'
  export default {
    components: {
      WaterRipple
    },
    methods: {
      login (password) {
        console.log('点击了!')
      }
    }
  }
</script>

<style scoped>
  .login-box {
      height: 400px;
      width: 500px;
      background-color: rgba(0, 0, 0, 0.2);
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      margin: auto;
    }
</style>

效果

Alt text

Readme

Keywords

Package Sidebar

Install

npm i colorful-button

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

3.78 kB

Total Files

6

Last publish

Collaborators

  • puge