From e00ff9097176823cd74ffb52d08c48ef470c8ed9 Mon Sep 17 00:00:00 2001 From: 0305chenke <1224307557@qq.com> Date: Tue, 9 Aug 2022 16:00:20 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BC=98=E5=8C=96u-picker=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E9=80=89=E6=8B=A9=E5=9F=8E=E5=B8=82=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=A6=82=E6=9E=9C=E7=9C=81=E5=B8=82=E5=8C=BA=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E8=BF=87=E9=95=BF=EF=BC=8C=E6=98=BE=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E5=85=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uview-ui/components/u-picker/u-picker.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/uview-ui/components/u-picker/u-picker.vue b/uview-ui/components/u-picker/u-picker.vue index 68212a48..a87a13e3 100644 --- a/uview-ui/components/u-picker/u-picker.vue +++ b/uview-ui/components/u-picker/u-picker.vue @@ -21,7 +21,7 @@ - + {{ item.label }} @@ -106,6 +106,7 @@ import areas from '../../libs/util/area.js'; * @tutorial https://www.uviewui.com/components/picker.html * @property {Object} params 需要显示的参数,见官网说明 * @property {String} mode 模式选择,region-地区类型,time-时间类型(默认time) + * @property {String} indicatorStyle 设置选择器中间选中框的样式(默认height: 37rpx;) * @property {String Number} start-year 可选的开始年份,mode=time时有效(默认1950) * @property {String Number} end-year 可选的结束年份,mode=time时有效(默认2050) * @property {Boolean} safe-area-inset-bottom 是否开启底部安全区适配(默认false) @@ -154,6 +155,11 @@ export default { return []; } }, + // 设置选择器中间选中框的样式 + indicatorStyle: { + type: String, + default: "height: 37rpx;", + }, // 当mode=selector或者mode=multiSelector时,提供的默认选中的下标 defaultSelector: { type: Array,