vue-prompt

1.2.2 • Public • Published

使用方法

安装

npm install vue-prompt

引入

import prompt from 'vue-prompt'
Vue.use(prompt)

使用

hint (气泡弹窗)

this.$hint("success");
//默认消失时间为2秒
this.$hint({
    message:"success",
    time:1000
});

confirm

<prompt-confirm
:visible.sync="confirm.visible"
:title="confirm.title"
:content="confirm.content">
  <div class="prompt_confirm_footer" slot="confirm_footer">
    <button @click="submitConfirm">确认</button>
    <button @click="confirm.visible=false">取消</button>
  </div>
</prompt-confirm>

Package Sidebar

Install

npm i vue-prompt

Weekly Downloads

1

Version

1.2.2

License

ISC

Unpacked Size

4.68 kB

Total Files

8

Last publish

Collaborators

  • rtyxmd