亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

Element-ui?Dialog對話框基本使用

 更新時間:2023年06月29日 09:35:51   作者:菜園前端  
這篇文章主要為大家介紹了Element-ui?Dialog對話框基本使用示例,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪

按需引入方式

Element-ui Dialog對話框用于彈出窗口

如果是完整引入可跳過此步驟

import Vue from 'vue'
import { Dialog } from 'element-ui'
import 'element-ui/lib/theme-chalk/base.css'
import 'element-ui/lib/theme-chalk/dialog.css'
Vue.use(Dialog)

基礎(chǔ)使用

<template>
    <el-button @click="dialogVisible = true">點擊打開 Dialog</el-button>
    <el-dialog title="提示" :visible.sync="dialogVisible" width="30%">
        <span>這是一段信息</span>
        <span slot="footer" class="dialog-footer">
            <el-button @click="dialogVisible = false">取 消</el-button>
            <el-button type="primary" @click="dialogVisible = false">確 定</el-button>
        </span>
    </el-dialog>
</template>
<script>
export default {
    data() {
        return {
            dialogVisible: false
        }
    }
}
</script>

Attributes

以上就是Element-ui Dialog 對話框基本使用的詳細內(nèi)容,更多關(guān)于Element-ui Dialog對話框的資料請關(guān)注腳本之家其它相關(guān)文章!

相關(guān)文章

最新評論