refactor: Numpad 组件支持 fixed prop — 弹窗内嵌 / 页面固定两种模式

This commit is contained in:
2026-06-09 09:10:36 +08:00
parent 7bf899f0b1
commit df6f1a54d6
2 changed files with 18 additions and 16 deletions

View File

@@ -135,10 +135,8 @@
</picker>
</view>
<!-- 数字键盘 -->
<view class="form-numpad-wrap">
<Numpad v-model="amountStr" />
</view>
<!-- 数字键盘内嵌模式不固定在底部 -->
<Numpad v-model="amountStr" :fixed="false" />
</scroll-view>
<view class="modal-footer" @tap="handleSubmit">
<text class="submit-text">{{ editingId ? '保存修改' : '添加' }}</text>
@@ -501,11 +499,4 @@ function goBack() { uni.navigateBack() }
&:active { opacity: 0.8; }
}
/* Numpad 内嵌在表单中 */
.form-numpad-wrap {
margin-top: $space-sm;
background: $bg;
border-radius: $radius-lg;
overflow: hidden;
}
</style>