tav-ui
Version:
1 lines • 1.54 kB
Source Map (JSON)
{"version":3,"file":"types2.mjs","sources":["../../../../../../../packages/components/qr-code/src/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue'\nimport type { LogoType, QRCodeRenderersOptions } from './qrcodePlus'\n\nexport const qrcodeProps = {\n value: {\n type: [String, Array] as PropType<string | any[]>,\n default: null,\n },\n // 参数\n options: {\n type: Object as PropType<QRCodeRenderersOptions>,\n default: null,\n },\n // 宽度\n width: {\n type: Number as PropType<number>,\n default: 200,\n },\n // 中间logo图标\n logo: {\n type: [String, Object] as PropType<Partial<LogoType> | string>,\n default: '',\n },\n // img 不支持内嵌logo\n tag: {\n type: String as PropType<'canvas' | 'img'>,\n default: 'canvas',\n validator: (v: string) => ['canvas', 'img'].includes(v),\n },\n}\n\nexport type QrcodeProps = ExtractPropTypes<typeof qrcodeProps>\n"],"names":[],"mappings":"AAAY,MAAC,WAAW,GAAG;AAC3B,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC;AACzB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,QAAQ;AACrB,IAAI,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;AACnD,GAAG;AACH;;;;"}