fix: qrcode type
parent
fc7cadb3f9
commit
27c5a6c96a
|
@ -1,5 +1,6 @@
|
|||
import type { CSSProperties } from 'vue';
|
||||
import { defineComponent, ref, watch, computed, watchEffect } from 'vue';
|
||||
import type { ImageSettings } from './interface';
|
||||
import { qrProps } from './interface';
|
||||
|
||||
import qrcodegen from './qrcodegen';
|
||||
|
@ -14,15 +15,6 @@ const ERROR_LEVEL_MAP: { [index: string]: qrcodegen.QrCode.Ecc } = {
|
|||
H: qrcodegen.QrCode.Ecc.HIGH,
|
||||
};
|
||||
|
||||
type ImageSettings = {
|
||||
src: string;
|
||||
height: number;
|
||||
width: number;
|
||||
excavate: boolean;
|
||||
x?: number;
|
||||
y?: number;
|
||||
};
|
||||
|
||||
const DEFAULT_SIZE = 128;
|
||||
const DEFAULT_LEVEL = 'L';
|
||||
const DEFAULT_BGCOLOR = '#FFFFFF';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { objectType, stringType } from '../_util/type';
|
||||
|
||||
interface ImageSettings {
|
||||
export interface ImageSettings {
|
||||
src: string;
|
||||
height: number;
|
||||
width: number;
|
||||
|
|
Loading…
Reference in New Issue