现在是黑色的背景 我想让它变成别的颜色 手册中说可以className为其添加类名 可是试了不成功是怎么回事?文档地址链接描述
完整代码
<template>
<div>
<button @click=copy>复制</button>
</div>
</template>
<script>
import { Toast } from 'mint-ui'
export default {
methods: {
copy () {
Toast({
message: '提示',
position: 'bottom',
duration: 1000,
className: 'toasts'
})
}
}
}
</script>
<style scoped>
.mint-toast {
background-color: red !important;
}
.toasts {
background: red !important;
}
</style>
你打开开发者工具,然后在element样式中找到对应样式,强制修改就好了呀