更新记录

1.1.0(2021-11-19) 下载此版本

代码重新整理发布


平台兼容性

uni-app

Vue2 Vue3 Chrome Safari app-vue app-nvue Android iOS 鸿蒙
- - - -
微信小程序 支付宝小程序 抖音小程序 百度小程序 快手小程序 京东小程序 鸿蒙元服务 QQ小程序 飞书小程序 快应用-华为 快应用-联盟
- - - - - - - - - -

其他

多语言 暗黑模式 宽屏模式
× ×

template

复制代码<button @click="showSheet" type="primary">默认</button>

<xui-xsheet
    ref="showSheet_ref"
>
</xui-xsheet>

script

复制代码showSheet() {
    this.$refs.showSheet_ref.open();
}

通用参数

参数 说明 类型 默认值
maskOpacity 遮罩透明度 Number 0.7
maskClose 是否可点击遮罩关闭 Boolean true
height 高度,可以为 auto 自适应 String 150px
cancel 是否显示取消按钮 Boolean false
cancelStr 取消按钮文字 String 取消
padding 内边距 String 0px
title 标题,不为空时显示 String [空字符]
btnList 选项列表 Array []

分享用的额外参数

参数 说明 类型 默认值
shareList 选项列表,详情见下面 Array []
shareTitle 分享标题 String [空字符]
shareType 分享类型,详情见下面 Number 0
shareSummary 分享内容的摘要 String [空字符]
shareHref 跳转链接 String [空字符]
shareImageUrl 图片地址 String [空字符]
shareMediaUrl 音视频地址 String [空字符]
sharelist 参数例示
复制代码[
    {name: 'weixin_firend', title: '微信好友'},
    {name: 'weixin_zone', title: '朋友圈'},
    {name: 'qq_firend', title: 'QQ好友'},
    {name: 'sinaweibo', title: '新浪微博'},
]
shareType 分享类型
数值 类型
0 图文
1 纯文字
2 纯图片
3 音乐
4 视频

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议
209***@qq.com

2023-05-01

6,open都没有反应

120***@qq.com

2022-09-19

没有反应呢

YangChenJun

2022-06-29

垃圾插件