美文网首页
header的使用

header的使用

作者: 稻草人_9ac7 | 来源:发表于2019-12-18 11:18 被阅读0次

<template>
  <div>测试

    <mt-header title="标题过长会隐藏后面的内容啊哈哈哈哈">
  <mt-button v-link="'/'" icon="back" slot="left" @click.native="back">返回</mt-button>
  <mt-button icon="more" slot="right" @click.native="more"></mt-button>
</mt-header>

  </div>
</template>
<script>
export default {
  methods: {
    back(){
      console.log("返回")

    },
    more(){
      console.log("更多")
    }

  },
}
</script>
<style scoped>
.mint-header{
  background: red;
}
</style>

相关文章

网友评论

      本文标题:header的使用

      本文链接:https://www.haomeiwen.com/subject/uqnynctx.html