最终效果:

引入mint-ui后 见上篇

buttonmint.vue全部内容:

<template>
  <div>
    <h1 class="page-title">按钮</h1>
    <mt-button @click.native="handleClick">按钮</mt-button>
    <mt-button icon="back">back</mt-button>
    <mt-button icon="more">更多</mt-button>
    <mt-button plain>幽灵</mt-button>
    <mt-button disabled>禁用</mt-button>
    <mt-button type="default">default</mt-button>
    <mt-button type="primary">primary</mt-button>
    <mt-button type="danger">danger</mt-button>
  </div>
</template>

<script>
    export default {
        name: "buttonmint",
      methods: {
        handleClick: function () {
          this.$toast('Hello world!')
          //alert("Hello world")
        },
      }
    }
</script>

<style scoped>
  .mint-button--normal{
    margin-left: 5px;
    margin-top: 10px;
  }
</style>

 

Logo

前往低代码交流专区

更多推荐