diff --git a/src/picker-item/picker-item.less b/src/picker-item/picker-item.less index 9a1118e49..460c8214c 100644 --- a/src/picker-item/picker-item.less +++ b/src/picker-item/picker-item.less @@ -6,6 +6,7 @@ @picker-item-height: var(--td-picker-item-height, 80rpx); @picker-item-color: var(--td-picker-item-color, @text-color-secondary); @picker-item-active-color: var(--td-picker-item-active-color, @text-color-primary); +@picker-item-font-size: var(--td-picker-item-font-size, @font-size-m); :host { display: flex; @@ -32,6 +33,7 @@ text-overflow: ellipsis; overflow: hidden; color: @picker-item-color; + font-size: @picker-item-font-size; &--active { color: @picker-item-active-color; diff --git a/src/picker/README.md b/src/picker/README.md index 275124ddc..3595193de 100644 --- a/src/picker/README.md +++ b/src/picker/README.md @@ -106,4 +106,5 @@ options | Array | [] | 数据源。TS 类型:`PickerItemOption[]` `interface P --td-picker-toolbar-height | 116rpx | - --td-picker-item-active-color | @font-gray-1 | - --td-picker-item-color | @font-gray-2 | - +--td-picker-item-font-size | @font-size-m | - --td-picker-item-height | 80rpx | - \ No newline at end of file