问卷设计,结束语停留时长,保持整数

This commit is contained in:
钱冠学
2024-06-26 09:52:12 +08:00
parent c2efc2c2b7
commit fdc01fd50c

View File

@@ -37,7 +37,10 @@
</div>
<div class="end-footer">
<span style="margin-left: 23px">停留时长</span>
<a-input v-model:value="survey.time" class="custom-input time-input" />
<a-input-number v-model:value="survey.time"
:formatter="value => `${value}`.replace(/\D*/g, '').replace(/^0{1}/, '')"
:parser="value => `${value}`.replace(/\D*/g, '').replace(/^0{1}/, '')"
class="custom-input time-input" />
<span style="margin-left: 12px">s</span>
</div>
</div>