diff --git a/docs/component/datetime-picker.md b/docs/component/datetime-picker.md index 67d99b489..a9408e468 100644 --- a/docs/component/datetime-picker.md +++ b/docs/component/datetime-picker.md @@ -334,5 +334,6 @@ const displayFormatTabLabel = (items) => { | 类名 | 说明 | 最低版本 | |-----|------|--------| | custom-view-class | pickerView 外部自定义样式 | - | +| custom-cell-class | pickerView cell 外部自定义样式 | $LOWEST_VERSION$ | | custom-label-class | label 外部自定义样式 | - | | custom-value-class | value 外部自定义样式 | - | diff --git a/src/uni_modules/wot-design-uni/components/wd-datetime-picker/types.ts b/src/uni_modules/wot-design-uni/components/wd-datetime-picker/types.ts index 7c4ba844f..eb54a8cab 100644 --- a/src/uni_modules/wot-design-uni/components/wd-datetime-picker/types.ts +++ b/src/uni_modules/wot-design-uni/components/wd-datetime-picker/types.ts @@ -155,6 +155,10 @@ export const datetimePickerProps = { * 表单验证规则,结合wd-form组件使用 */ rules: makeArrayProp(), + /** + * picker cell 外部自定义样式 + */ + customCellClass: makeStringProp(''), /** * pickerView 外部自定义样式 */ diff --git a/src/uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker.vue b/src/uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker.vue index 8d6eac20e..918664e16 100644 --- a/src/uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker.vue +++ b/src/uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker.vue @@ -8,7 +8,7 @@ - +