This commit is contained in:
@jyuhsin
2025-08-29 17:52:16 +08:00
parent a08ae49f03
commit 06a8e2fda4
90 changed files with 2475 additions and 147 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -15,7 +15,7 @@
append-to-body
>
<div class="qrcode-container" style="text-align: center;">
<qrcode :value="url" :options="{ width: 126 }" class="signature-qrcode"></qrcode>
<qrcode v-if="url" :value="url" :options="{ width: width }" class="signature-qrcode"></qrcode>
</div>
<template #footer>
<el-button @click="dialogVisible = false">关闭</el-button>
@@ -26,7 +26,7 @@
<!-- 内联模式 -->
<template v-else-if="mode === 'inline'">
<div class="qrcode-inline-container">
<qrcode :value="url" :options="{ width: 126 }" class="signature-qrcode"></qrcode>
<qrcode v-if="url" :value="url" :options="{ width: width }" class="signature-qrcode"></qrcode>
</div>
</template>
</div>
@@ -41,7 +41,7 @@ module.exports = {
// 二维码内容
url: {
type: String,
required: true
required: true,
},
// 显示模式:dialog(默认)或 inline
mode: {
@@ -53,6 +53,10 @@ module.exports = {
value: {
type: Boolean,
default: false
},
width: {
type: Number,
default: 200
}
},