fix: qrcode type

pull/6358/head
tangjinzhou 2023-03-13 15:22:48 +08:00
parent fc7cadb3f9
commit 27c5a6c96a
2 changed files with 2 additions and 10 deletions

View File

@ -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';

View File

@ -1,6 +1,6 @@
import { objectType, stringType } from '../_util/type';
interface ImageSettings {
export interface ImageSettings {
src: string;
height: number;
width: number;