|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<uni-popup ref="popup" type="bottom" :safe-area="false">
|
|
<uni-popup ref="popup" type="bottom" :safe-area="false">
|
|
|
- <view class="time-picker-container">
|
|
|
|
|
|
|
+ <view class="time-picker-container" :style="{ marginBottom: bottomOffset + 'rpx' }">
|
|
|
<view class="picker-header">
|
|
<view class="picker-header">
|
|
|
<text class="title">期望取件时间</text>
|
|
<text class="title">期望取件时间</text>
|
|
|
<view class="close-btn" @click="close">
|
|
<view class="close-btn" @click="close">
|
|
@@ -34,6 +34,12 @@ const minutes = [0, 10, 20, 30, 40, 50];
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'TimePicker',
|
|
name: 'TimePicker',
|
|
|
|
|
+ props: {
|
|
|
|
|
+ bottomOffset: {
|
|
|
|
|
+ type: [Number, String],
|
|
|
|
|
+ default: 0
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
visible: false, // 控制picker-view的渲染
|
|
visible: false, // 控制picker-view的渲染
|