优化
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user