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,