diff --git a/src/components/business/qrcode/index.vue b/src/components/business/qrcode/index.vue index 5246fcb..f81a154 100644 --- a/src/components/business/qrcode/index.vue +++ b/src/components/business/qrcode/index.vue @@ -11,7 +11,7 @@ diff --git a/src/components/modules/widgets/wQrcode/wQrcode.vue b/src/components/modules/widgets/wQrcode/wQrcode.vue index 849eb26..8ae37a1 100644 --- a/src/components/modules/widgets/wQrcode/wQrcode.vue +++ b/src/components/modules/widgets/wQrcode/wQrcode.vue @@ -7,8 +7,8 @@ --> - diff --git a/src/components/modules/widgets/wQrcode/wQrcodeSetting.ts b/src/components/modules/widgets/wQrcode/wQrcodeSetting.ts new file mode 100644 index 0000000..cf1f5ad --- /dev/null +++ b/src/components/modules/widgets/wQrcode/wQrcodeSetting.ts @@ -0,0 +1,61 @@ +import { DotType } from "qr-code-styling" + +export type TWQrcodeSetting = { + name: string + type: string + uuid: string | number + width: number + height: number + left: number + top: number + zoom: number + transform: string + radius: number + opacity: number + parent: string + url: string + dotType: DotType + dotColorType: string + dotRotation: number + dotColor: string + dotColor2: string + value: string + setting: Record[] + record: { + width: number + height: number + minWidth: number + minHeight: number + dir: string + } +} + +export const wQrcodeSetting: TWQrcodeSetting = { + name: '二维码', + type: 'w-qrcode', + uuid: -1, + width: 300, + height: 300, + left: 0, + top: 0, + zoom: 1, + transform: '', + radius: 0, + opacity: 1, + parent: '-1', + url: '', + dotType: 'classy', + dotColorType: 'single', + dotRotation: 270, + dotColor: '#35495E', + dotColor2: '#35495E', + value: 'https://xp.palxp.cn', + setting: [], + record: { + width: 0, + height: 0, + minWidth: 10, + minHeight: 10, + dir: 'all', + }, +} diff --git a/src/components/modules/widgets/wSvg/wSvg.vue b/src/components/modules/widgets/wSvg/wSvg.vue index 1a2ba3a..5b06ad8 100644 --- a/src/components/modules/widgets/wSvg/wSvg.vue +++ b/src/components/modules/widgets/wSvg/wSvg.vue @@ -1,3 +1,6 @@ +