1.1.1 • Published 1 year ago

wq-dialog-box v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

vue弹窗组件

安装

npm i wq-dialog-box

配置项

参数说明是否必传默认值
width设置宽度yes-
height设置高度yes-

弹窗事件

事件名说明参数
confirm确定方法-
cancel取消方法-

使用方法

在main.js文件中引入wq-dialog-box组件
impotant xxx from 'wq-dialog-box'
然后注册到全局
Vue.use(xxx)

在页面中使用方法

<wq-dialog-box 
    ref="dialogBox" 
    :text="dialogText" 
    :width="500" 
    :height="422" 
    :needCancelBtn="false" 
    confirmBtnText="提交"
    @confirm="addOrRevise"
>
    <div class="aut-add-content clear-float">
        <div class="one">
            <span class="text">描述</span>
            <input class="rt erp-ipt erp-ipt-lg" v-model="listData.description"></input>
        </div>
        <div class="one">
            <span class="text">密码</span>
            <input class="rt erp-ipt erp-ipt-lg" v-model="listData.password"></input>
        </div>
        <div class="one">
            <span class="text">角色</span>
            <select class="rt erp-sel erp-sel-lg" v-model="listData.roleId">
            <option :value="item.roleId" v-for="item in roleList">{{ item.roleName }}</option>
            </select>
        </div>
        <div class="one">
            <span class="text">账号</span>
            <input class="rt erp-ipt erp-ipt-lg" disabled placeholder="提交后自动生成账号" :value="accountUsername"></input>
        </div>
        <p class="erp-warn-msg" ref="autMsg"></p>
    </div>
</wq-dialog-box>
1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago