You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
673 B
36 lines
673 B
<!--
|
|
* @Author: ch
|
|
* @Date: 2022-03-26 10:06:38
|
|
* @LastEditors: ch
|
|
* @LastEditTime: 2022-03-26 10:14:12
|
|
* @Description: file content
|
|
-->
|
|
<template>
|
|
<button class="btn" :class="`btn__${type}`"><slot></slot></button>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
props : {
|
|
type : String,
|
|
default : 'line'
|
|
}
|
|
}
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.btn{
|
|
display: inline-block;
|
|
font-size: 28rpx;
|
|
height: 64rpx;
|
|
line-height: 64rpx;
|
|
padding: 0 50rpx;
|
|
text-align: center;
|
|
border-radius: 50rpx;
|
|
background: linear-gradient(270deg, #FF7F39 0%, #FFA35B 100%);
|
|
color: #fff;
|
|
&__line{
|
|
background: none;
|
|
color: #333;
|
|
border: 1px solid rgb(192, 185, 185);
|
|
}
|
|
}
|
|
</style> |