OfficeSystem/node_modules/@climblee/uv-ui/components/uv-qrcode/props.js
WindowBird 7ab9e16c35 init
2025-10-30 16:42:12 +08:00

85 lines
1.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export default {
props: {
//二维码内容
value: {
type: [String, Number]
},
//选项
options: {
type: Object,
default: () => {
return {};
}
},
//二维码大小
size: {
type: [String, Number],
default: 200
},
//导出的文件类型
fileType: {
type: String,
default: 'png'
},
//是否初始化组件后就开始生成
start: {
type: Boolean,
default: true
},
//是否数据发生改变自动重绘
auto: {
type: Boolean,
default: true
},
//隐藏组件
hide: {
type: Boolean,
default: false
},
/**
* canvas 类型微信小程序默认使用2d非2d微信官方已放弃维护问题比较多
* 注意微信小程序type2d手机上正常PC上微信内打开小程序toDataURL报错看后期微信官方团队会不会做兼容不兼容的话只能在自行判断在PC使用非2d或者直接提示用户请在手机上操作微信团队的海报中心小程序就是这么做的
*/
type: {
type: String,
default: () => {
// #ifdef MP-WEIXIN
return '2d';
// #endif
// #ifndef MP-WEIXIN
return 'normal';
// #endif
}
},
//队列绘制主要针对NVue端
queue: {
type: Boolean,
default: false
},
//是否队列加载图片可减少canvas发起的网络资源请求节省服务器资源
isQueueLoadImage: {
type: Boolean,
default: false
},
//loading态
loading: {
type: Boolean,
default: undefined
},
//H5保存即自动下载在支持的环境下默认false为仅弹层提示用户需要长按图片保存不会自动下载
h5SaveIsDownload: {
type: Boolean,
default: false
},
//H5下载名称
h5DownloadName: {
type: String,
default: 'uvQRCode'
},
// H5保存二维码时候是否显示提示
h5SaveTip: {
type: Boolean,
default: true
}
}
}