mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
b81bf53f0a
* style(components): [el-message-box] string does not wrap(#3856) * feat(components): [el-message] merge the same content messages(#3836) * feat(components): [el-message] merge the same content messages(#3836) * feat(components): [el-message] merge the same content messages(#3836) * refactor(components): el-swtich custom texts and icons * fix: test * fix: font size * fix: example margin * feat(components): el-switch add inline-prompt support * revert: paly * docs: update icons * feat: add inner text * fix: switch test * refactor: icon inline * feat(components): [el-message] merge the same content messages(#3836) * feat(components): [el-message] merge the same content messages(#3836) Co-authored-by: Aex <adaex@qq.com>
25 lines
430 B
Vue
25 lines
430 B
Vue
<template>
|
|
<el-button :plain="true" @click="open">Show message</el-button>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue'
|
|
import { ElMessage } from 'element-plus'
|
|
|
|
export default defineComponent({
|
|
setup() {
|
|
const open = () => {
|
|
ElMessage({
|
|
message: 'this is a message.',
|
|
grouping: true,
|
|
type: 'success',
|
|
})
|
|
}
|
|
|
|
return {
|
|
open,
|
|
}
|
|
},
|
|
})
|
|
</script>
|