mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 09:50:58 +08:00
19 lines
361 B
Vue
19 lines
361 B
Vue
|
<template>
|
||
|
<div>
|
||
|
<el-config-provider :message="config">
|
||
|
<el-button @click="open">open</el-button>
|
||
|
</el-config-provider>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts" setup>
|
||
|
import { reactive } from 'vue'
|
||
|
import { ElMessage } from 'element-plus'
|
||
|
const config = reactive({
|
||
|
max: 3,
|
||
|
})
|
||
|
const open = () => {
|
||
|
ElMessage('this is a message.')
|
||
|
}
|
||
|
</script>
|