更新记录
1.0.1(2025-06-16) 下载此版本
补充使用的api
1.0.0(2025-06-16) 下载此版本
一行代码实现弹框,支持背景更换,logo图片更换,各个文字颜色更换,按钮颜色以及文字更换。
平台兼容性
hbis-pop
轻量级图片预览组件
基本用法
<hbis-pop ref="hbisPop" @cancelClick="cancelClick" @okClick="okClick" title-text="弹框标题栏" message-text="弹框内容描述"
cancel-text="取 消" ok-text="确定" single-btn="false" ></hbis-pop>
API
字段说明:
titleText: {
//标题
type: String,
default: "消息"
},
titleTextColor: {
//标题颜色
type: String,
default: "#000"
},
backgroundImageUrl: {
//背景图
type: String,
default: "/static/img/pop_bg_icon.png"
},
messageText: {
//内容描述
type: String,
default: ""
},
messageTextColor: {
//内容描述颜色
type: String,
default: "#000"
},
cancelText: {
//取消按钮文字
type: String,
default: "取消"
},
cancelTextColor: {
//取消按钮文字
type: String,
default: "#4259EA"
},
cancelBTNColor: {
//取消按钮颜色
type: String,
default: "#4259EA"
},
okText: {
//确定按钮文字
type: String,
default: "确定"
},
okTextColor: {
//确定按钮文字
type: String,
default: "#FFF"
},
okBTNColor: {
//确定按钮文字
type: String,
default: "#4259EA"
},
singleBTN: {
////是否单按钮
type: Boolean,
default: false
},
noBTN: {
//是否无按钮
type: Boolean,
default: false
},
autoCloose: {
//点击按钮后是否关闭
type: Boolean,
default: true
}