diff --git a/docs/README.md b/docs/README.md index 12019786e15c1cae9b7ecfa0cbfdf28b220222bc..a6415be6b80c8f8d66bc9fcd4a0dbf89da04fb5f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -115,7 +115,7 @@ pageClass: custom-page-class

-## 看视频,快速了解uni-app +## 看视频,10分钟了解uni-app 我们精心准备了一个简单的十分钟介绍视频,方便你快速了解`uni-app`的主要特征: diff --git a/docs/api/system/getappauthorizesetting.md b/docs/api/system/getappauthorizesetting.md new file mode 100644 index 0000000000000000000000000000000000000000..7ce94531639e03dccb89bd3e7b0ce4a1fec2e2e5 --- /dev/null +++ b/docs/api/system/getappauthorizesetting.md @@ -0,0 +1,48 @@ +### uni.getAppAuthorizeSetting() +获取 APP 授权设置 + +**平台差异说明** + +|App|H5|微信小程序|支付宝小程序|百度小程序|字节跳动小程序、飞书小程序|钉钉小程序|QQ小程序|快手小程序|京东小程序| +|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| +|HBuilderX 3.5.2+|x|基础库 2.20.1+|x|x|x|x|x|x|x| + +**返回参数说明** + +|属性|类型|说明|平台差异说明| +|:-|:-|:-|:-| +|albumAuthorized|'authorized'/'denied'/'not determined'|允许使用相册的开关|App 端仅 iOS 有效| +|bluetoothAuthorized|'authorized'/'denied'/'not determined'|允许使用蓝牙的开关|App 端仅 iOS 有效| +|cameraAuthorized|'authorized'/'denied'/'not determined'|允许使用摄像头的开关|| +|locationAuthorized|'authorized'/'denied'/'not determined'|允许使用定位的开关|| +|locationReducedAccuracy|boolean|定位准确度。true 表示模糊定位,false 表示精确定位|App 端仅 iOS 有效| +|microphoneAuthorized|'authorized'/'denied'/'not determined'|允许使用麦克风的开关| +|notificationAuthorized|'authorized'/'denied'/'not determined'|允许通知的开关|| +|notificationAlertAuthorized|'authorized'/'denied'/'not determined'|允许通知带有提醒的开关|App 端仅 iOS 有效| +|notificationBadgeAuthorized|'authorized'/'denied'/'not determined'|允许通知带有标记的开关|App 端仅 iOS 有效| +|notificationSoundAuthorized|'authorized'/'denied'/'not determined'|允许通知带有声音的开关|App 端仅 iOS 有效| +|phoneCalendarAuthorized|'authorized'/'denied'/'not determined'|允许读写日历的开关|App 端不支持| + +**Tips:** + +`'authorized'` 表示已经获得授权,无需再次请求授权; +`'denied'` 表示请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限) +`'non determined'` 表示尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关) + +**示例** + +```javascript +const appAuthorizeSetting = uni.getAppAuthorizeSetting() + +console.log(appAuthorizeSetting.albumAuthorized) +console.log(appAuthorizeSetting.bluetoothAuthorized) +console.log(appAuthorizeSetting.cameraAuthorized) +console.log(appAuthorizeSetting.locationAuthorized) +console.log(appAuthorizeSetting.locationReducedAccuracy) +console.log(appAuthorizeSetting.microphoneAuthorized) +console.log(appAuthorizeSetting.notificationAlertAuthorized) +console.log(appAuthorizeSetting.notificationAuthorized) +console.log(appAuthorizeSetting.notificationBadgeAuthorized) +console.log(appAuthorizeSetting.notificationSoundAuthorized) +console.log(appAuthorizeSetting.phoneCalendarAuthorized) +``` diff --git a/docs/api/system/getsystemsetting.md b/docs/api/system/getsystemsetting.md new file mode 100644 index 0000000000000000000000000000000000000000..a3aef5117e19dd016f233789c00c6c1302c199bf --- /dev/null +++ b/docs/api/system/getsystemsetting.md @@ -0,0 +1,29 @@ +### uni.getSystemSetting() +获取设备设置 + +**平台差异说明** + +|App|H5|微信小程序|支付宝小程序|百度小程序|字节跳动小程序、飞书小程序|钉钉小程序|QQ小程序|快手小程序|京东小程序| +|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| +|HBuilderX 3.5.2+|x|基础库 2.20.1+|x|x|x|x|x|x|x| + + +**返回参数说明** + +|属性|类型|说明| +|:-|:-|:-| +|bluetoothEnabled|boolean|蓝牙的系统开关| +|locationEnabled|boolean|地理位置的系统开关| +|wifiEnabled|boolean|Wi-Fi 的系统开关| +|deviceOrientation|string|设备方向。`竖屏:portrait`,`横屏:landscape`| + +**示例** + +```javascript +const systemSetting = uni.getSystemSetting() + +console.log(systemSetting.bluetoothEnabled) +console.log(systemSetting.deviceOrientation) +console.log(systemSetting.locationEnabled) +console.log(systemSetting.wifiEnabled) +``` diff --git a/docs/component/map.md b/docs/component/map.md index 6d584e9104e8fe4679ff7c59d27f5ad6b4655972..1e1a5a7815b387c4358ce7461234a3aae8edeaca 100644 --- a/docs/component/map.md +++ b/docs/component/map.md @@ -48,7 +48,7 @@ |show-location|Boolean||显示带有方向的当前定位点|微信小程序、H5、百度小程序、支付宝小程序、京东小程序| |polygons|Array.``||多边形|App-nvue 2.1.5+、App-vue 3.4.3+、H5 3.4.3+、微信小程序、百度小程序、支付宝小程序| |enable-indoorMap|Boolean|false|是否展示室内地图|App-nvue 3.1.0+| -|@markertap|EventHandle||点击标记点时触发,e.detail = {markerId}|App-nvue 2.3.3+、H5、微信小程序 (App和H5平台需要指定 marker 对象属性 id)| +|@markertap|EventHandle||点击标记点时触发,e.detail = {markerId}|App-nvue 2.3.3+、H5、微信小程序、支付宝小程序 (App和H5平台需要指定 marker 对象属性 id)| |@labeltap|EventHandle||点击label时触发,e.detail = {markerId} |微信小程序2.9.0| |@callouttap|EventHandle||点击标记点对应的气泡时触发,e.detail = {markerId}|| |@controltap|EventHandle||点击控件时触发,e.detail = {controlId}|| @@ -86,10 +86,10 @@ |width|标注图标宽度|Number|否|默认为图片实际宽度|App-nvue 2.1.5+、微信小程序、H5、支付宝小程序、百度小程序、京东小程序| |height|标注图标高度|Number|否|默认为图片实际高度|App-nvue 2.1.5+、微信小程序、H5、支付宝小程序、百度小程序、京东小程序| |callout|自定义标记点上方的气泡窗口|Object|否|支持的属性见下表,可识别换行符。|App-nvue 2.1.5+、微信小程序、支付宝小程序、百度小程序、京东小程序| -|label|为标记点旁边增加标签|Object|否|支持的属性见下表,可识别换行符。|App-nvue 2.1.5+、微信小程序、H5、App、百度小程序| +|label|为标记点旁边增加标签|Object|否|支持的属性见下表,可识别换行符。|App-nvue 2.1.5+、微信小程序、H5、App、百度小程序、支付宝小程序| |anchor|经纬度在标注图标的锚点,默认底边中点|Object|否|{x, y},x表示横向(0-1),y表示竖向(0-1)。{x: .5, y: 1} 表示底边中点|App-nvue 2.1.5+、微信小程序、H5、百度小程序、京东小程序| |clusterId|自定义点聚合簇效果时使用|Number|否||App-nvue 3.1.0+、微信小程序| -|customCallout|自定义气泡窗口|Object|否||app暂时不支持、微信小程序| +|customCallout|自定义气泡窗口|Object|否||app暂时不支持、微信小程序、支付宝小程序| |aria-label|无障碍访问,(属性)元素的额外描述|String|否||App-nvue 3.1.0+、微信小程序| **marker 上的气泡 callout** @@ -112,17 +112,17 @@ |属性|说明|类型|平台差异说明| |:-|:-|:-|:-| |content|文本|String|| -|color|文本颜色|String|App-nvue 2.1.5+、微信小程序、H5、百度小程序| -|fontSize|文字大小|Number|App-nvue 2.1.5+、微信小程序、H5、百度小程序| +|color|文本颜色|String|App-nvue 2.1.5+、微信小程序、H5、百度小程序、支付宝小程序| +|fontSize|文字大小|Number|App-nvue 2.1.5+、微信小程序、H5、百度小程序、支付宝小程序| |x|label的坐标,原点是 marker 对应的经纬度|Number|H5、百度小程序| |y|label的坐标,原点是 marker 对应的经纬度|Number|H5、百度小程序| |anchorX|label的坐标,原点是 marker 对应的经纬度|Number|App-nvue 2.1.5+、微信小程序| |anchorY|label的坐标,原点是 marker 对应的经纬度|Number|App-nvue 2.1.5+、微信小程序| |borderWidth|边框宽度|Number|微信小程序、百度小程序| |borderColor|边框颜色|String|微信小程序、百度小程序| -|borderRadius|边框圆角|Number|App-nvue 2.1.5+、微信小程序、百度小程序| -|bgColor|背景色|String|App-nvue 2.1.5+、微信小程序、百度小程序| -|padding|文本边缘留白|Number|App-nvue 2.1.5+、微信小程序、百度小程序| +|borderRadius|边框圆角|Number|App-nvue 2.1.5+、微信小程序、百度小程序、支付宝小程序| +|bgColor|背景色|String|App-nvue 2.1.5+、微信小程序、百度小程序、支付宝小程序| +|padding|文本边缘留白|Number|App-nvue 2.1.5+、微信小程序、百度小程序、支付宝小程序| |textAlign|文本对齐方式。有效值: left, right, center|String|App-nvue 2.1.5+、微信小程序、百度小程序| |customCallout|自定义气泡窗口|Object|App暂时不支持、微信小程序| |aria-label|无障碍访问,(属性)元素的额外描述|String|App-nvue 3.1.0+、微信小程序| diff --git a/docs/uniCloud/admin.md b/docs/uniCloud/admin.md index 680312556b5d5edcaeec7168c7180aa348c5d0dc..48f6c07e4bd0f412dfd42bc92246daed888f832b 100644 --- a/docs/uniCloud/admin.md +++ b/docs/uniCloud/admin.md @@ -1,6 +1,7 @@ # uni-admin 框架(原名 uniCloud admin) -#### 看视频,15分钟掌握uni-admin +### 看视频,15分钟掌握uni-admin + uni-admin视频教程