提交 20c24d0a 编写于 作者: 雪洛's avatar 雪洛

update: 新增头条相关API

上级 c7634b4a
...@@ -2,21 +2,16 @@ import previewImage from '../../../mp-weixin/helpers/normalize-preview-image' ...@@ -2,21 +2,16 @@ import previewImage from '../../../mp-weixin/helpers/normalize-preview-image'
// 不支持的 API 列表 // 不支持的 API 列表
const todos = [ const todos = [
'getBackgroundAudioManager',
'createCameraContext', 'createCameraContext',
'createLivePlayerContext', 'createLivePlayerContext',
'getSavedFileInfo', 'getSavedFileInfo',
'openDocument',
'chooseLocation',
'createMapContext', 'createMapContext',
'canIUse',
'onMemoryWarning', 'onMemoryWarning',
'onGyroscopeChange', 'onGyroscopeChange',
'startGyroscope', 'startGyroscope',
'stopGyroscope', 'stopGyroscope',
'setScreenBrightness', 'setScreenBrightness',
'getScreenBrightness', 'getScreenBrightness',
'onUserCaptureScreen',
'addPhoneContact', 'addPhoneContact',
'openBluetoothAdapter', 'openBluetoothAdapter',
'startBluetoothDevicesDiscovery', 'startBluetoothDevicesDiscovery',
...@@ -55,8 +50,6 @@ const todos = [ ...@@ -55,8 +50,6 @@ const todos = [
'setBackgroundColor', 'setBackgroundColor',
'setBackgroundTextStyle', 'setBackgroundTextStyle',
'chooseInvoiceTitle', 'chooseInvoiceTitle',
'navigateToMiniProgram',
'navigateBackMiniProgram',
'addTemplate', 'addTemplate',
'deleteTemplate', 'deleteTemplate',
'getTemplateLibraryById', 'getTemplateLibraryById',
...@@ -66,13 +59,12 @@ const todos = [ ...@@ -66,13 +59,12 @@ const todos = [
'setEnableDebug', 'setEnableDebug',
'onWindowResize', 'onWindowResize',
'offWindowResize', 'offWindowResize',
'compressImage',
'createOffscreenCanvas', 'createOffscreenCanvas',
'vibrate' 'vibrate'
] ]
// 存在兼容性的 API 列表 // 存在兼容性的 API 列表
// 头条小程序支持canIUses // 头条小程序自1.35.0+支持canIUses
const canIUses = [ const canIUses = [
// 'createIntersectionObserver', // 'createIntersectionObserver',
// 'getSavedFileList', // 'getSavedFileList',
...@@ -88,6 +80,13 @@ const canIUses = [ ...@@ -88,6 +80,13 @@ const canIUses = [
// 'onSocketClose', // 'onSocketClose',
// 'getExtConfig', // 'getExtConfig',
// 'getExtConfigSync', // 'getExtConfigSync',
// 'navigateToMiniProgram',
// 'navigateBackMiniProgram',
// 'compressImage',
// 'chooseLocation',
// 'openDocument',
// 'onUserCaptureScreen',
// 'getBackgroundAudioManager',
] ]
// 需要做转换的 API 列表 // 需要做转换的 API 列表
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册