mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-25 11:06:36 +08:00
29 lines
811 B
Markdown
29 lines
811 B
Markdown
---
|
|
layout: templateLayout
|
|
---
|
|
```vue
|
|
<template>
|
|
<Wb-button @click="click5">可配置的Message</Wb-button>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
methods: {
|
|
click5 () {
|
|
this.$Message({
|
|
title: '标题', //可以传入文本和domString
|
|
template: '我是模版', //可以传入文本和domString
|
|
buttons: [{ //最多有两个, 第一条配置第一个button
|
|
text: '确定',
|
|
class: "xx"
|
|
},{ //配置第二个button
|
|
text: "放弃",
|
|
class: "yy"
|
|
}]
|
|
}).then(function (index) {
|
|
console.log(index)
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
``` |