tiny-vue/examples/sites/demos/mobile-first/app/modal/div-button-content.vue

34 lines
793 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="content">
<tiny-button @click="baseClick" :reset-time="0">基本提示框</tiny-button>
<tiny-button @click="successClick" :reset-time="0">成功提示框</tiny-button>
</div>
</template>
<script>
import { Button, Modal } from '@opentiny/vue'
export default {
components: {
TinyButton: Button
},
methods: {
baseClick() {
Modal.alert({
message: '基本提示框',
title: '基本标题',
confirmContent: '自定义确认',
cancelContent: '自定义取消'
})
},
successClick() {
Modal.alert({
message: '密码已经修改成功为保障信息安全建议每30天修改1次密码。',
title: '成功提示',
status: 'success'
})
}
}
}
</script>