index.uts 306 B

1234567891011
  1. import {ScanCodeOption, GeneralCallbackResult} from './interface'
  2. export function scanCode(options: ScanCodeOption){
  3. // #ifndef APP-ANDROID || APP-IOS || WEB
  4. uni.scanCode(options)
  5. // #endif
  6. // #ifdef WEB
  7. options.fail?.({
  8. errMsg: 'lime-scan: web 不支持'
  9. } as GeneralCallbackResult)
  10. // #endif
  11. }