提交 65f3618b 编写于 作者: inkwalk's avatar inkwalk

feat(App): getImageInfo

上级 91198f1b
export * from './file/getFileInfo'
export * from './device/compass'
export * from './device/vibrate'
export * from './media/getImageInfo'
import { extend } from '@vue/shared'
import {
API_GET_IMAGE_INFO,
API_TYPE_GET_IMAGE_INFO,
defineAsyncApi,
GetImageInfoOptions,
GetImageInfoProtocol,
} from '@dcloudio/uni-api'
import {
warpPlusSuccessCallback,
warpPlusErrorCallback,
} from '../../../helpers/plus'
export const getImageInfo = defineAsyncApi<API_TYPE_GET_IMAGE_INFO>(
API_GET_IMAGE_INFO,
(options, { resolve, reject }) => {
plus.io.getImageInfo(
extend(options, {
success: warpPlusSuccessCallback(resolve),
fail: warpPlusErrorCallback(reject),
})
)
},
GetImageInfoProtocol,
GetImageInfoOptions
)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册