This commit is contained in:
2026-08-26 16:50:25 +08:00
parent 5868e774d4
commit 083299602d
31 changed files with 816 additions and 239 deletions
+4 -4
View File
@@ -15,13 +15,13 @@
class="scan-target-value"
:value="modelValue"
:placeholder="placeholder"
:aria-label="`${label},支持扫码或人工输入`"
:aria-label="label"
confirm-type="done"
@focus="$emit('activate', name)"
@input="handleInput"
@confirm="handleConfirm"
/>
<text v-if="active" class="scan-target-badge">当前扫码</text>
<text v-if="active" class="scan-target-badge">{{ $t('scanInput.active') }}</text>
</view>
</template>
@@ -31,8 +31,8 @@
props: {
name: { type: String, required: true },
modelValue: { type: String, default: '' },
label: { type: String, default: '扫码输入框' },
placeholder: { type: String, default: '扫描或人工输入' },
label: { type: String, default: '' },
placeholder: { type: String, default: '' },
active: Boolean
},
methods: {