1.2.1 • Published 2 days ago

vue-tiny-dialog v1.2.1

Weekly downloads
56
License
-
Repository
-
Last release
2 days ago

vue-tiny-dialog

Usage

the first step in main.js

import tinyDialog from 'vue-tiny-dialog';
import 'vue-tiny-dialog/dist/vue-tiny-dialog.css';

Vue.use(tinyDialog);

and then in your *.vue

<vue-tiny-dialog></vue-tiny-dialog>

finally, it works

options in props

props: {
    visible: {
        type: Boolean,
        default: false
    },
    title: {
        type: String,
        default: ''
    },
    container: {
        type: String,
        default: ''
    },
    tip: {
        type: String,
        default: ''
    },
    width: {
        type: String,
        default: '400'
    },
    height: {
        type: String,
        default: ''
    },
    modal: {
        type: Boolean,
        default: true
    }
}
props属性描述
visible显示、隐藏弹框
title标题
container内容
tip副内容
info副内容
width宽度
height高度
modal是否需要遮罩

直接在 *.vue 中使用

slot

header、footer、default

 <vue-tiny-dialog
    :visible="visible"
    title="温馨提示!"
    container="您输入的内容不合法~"
    tip="请再次输入正确的内容~"
    @confirm="confirm"
    @close="close"
>
    <template slot="header"></template>
    <div></div>
    <template slot="footer"></template>
</vue-tiny-dialog>

直接用 js 使用

const response = await this.$tinyDialog(
    {
        title: '我用js打开title',
        visible: true
    }
)
console.log(response)

具体使用请移步 examples 查看

1.2.0

2 days ago

1.2.1

2 days ago

1.1.0

4 years ago

1.0.14

4 years ago

1.0.11

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago