refactor: Numpad 组件支持 fixed prop — 弹窗内嵌 / 页面固定两种模式
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user