更新记录
1.0.1(2023-09-18)
优化一些问题 自定义组件更灵活
1.0.0(2023-09-08)
微信小程序隐私弹框
平台兼容性
App |
快应用 |
微信小程序 |
支付宝小程序 |
百度小程序 |
字节小程序 |
QQ小程序 |
× |
× |
√ |
× |
× |
× |
× |
钉钉小程序 |
快手小程序 |
飞书小程序 |
京东小程序 |
× |
× |
× |
× |
H5-Safari |
Android Browser |
微信浏览器(Android) |
QQ浏览器(Android) |
Chrome |
IE |
Edge |
Firefox |
PC-Safari |
× |
× |
× |
× |
× |
× |
× |
× |
× |
参数 |
类型 |
必填 |
说明 |
confirm |
Function |
否 |
确认事件,用于确认后续操作 |
refuse |
Function |
否 |
拒绝事件,默认为:退出小程序 |
title |
String |
否 |
默认为:隐私保护指引 |
titleStyle |
Object |
否 |
默认样式: fontSize fontWeight color textAlign |
linkStyle |
Object |
否 |
默认样式: color textDecoration |
buttonLeftStyle,buttonRightStyle |
Object |
否 |
默认样式: background color |
buttonLeft,buttonRight |
String |
否 |
默认文字: 拒绝 同意 |
zIndex |
Number |
否 |
弹出层层级,默认数字: 999 |
组件使用方式
<template>
<xiaoxinPrivacy :confirm="confirm" :refuse="refuse"></xiaoxinPrivacy>
</template>
<script>
import xiaoxinPrivacy from '@/components/xiaoxin-privacy/xiaoxin-privacy.vue'
export default {
components: {
xiaoxinPrivacy
},
methods:{
confirm(){},
refuse(){}
}
}
</script>