diff --git a/src/components/Picker/index.tsx b/src/components/Picker/index.tsx index 7761011..ece26db 100644 --- a/src/components/Picker/index.tsx +++ b/src/components/Picker/index.tsx @@ -103,10 +103,10 @@ class MPicker extends component({ } render() { - const { maskClosable, data, itemHeight, visibleItemCount, noCancel, cancelText, confirmText, title } = this.props + const { maskClosable, data, itemHeight, visibleItemCount, noCancel, cancelText, confirmText, title, className } = this.props const { localVisible, localSelectedIndexes } = this.state return ( - + {this.props.children} diff --git a/src/components/PickerView/index.tsx b/src/components/PickerView/index.tsx index e65e045..0d04a8e 100644 --- a/src/components/PickerView/index.tsx +++ b/src/components/PickerView/index.tsx @@ -186,13 +186,13 @@ export default class MPickerView extends component({ } render() { - const { disabled } = this.props + const { disabled, className } = this.props const { normalizedData, localSelectedIndexes } = this.state const styles = this.computeStyles() return ( {this.props.children} diff --git a/src/components/Sticky/index.tsx b/src/components/Sticky/index.tsx index 8f399c1..fd90a4a 100644 --- a/src/components/Sticky/index.tsx +++ b/src/components/Sticky/index.tsx @@ -83,10 +83,11 @@ export default class MSticky extends component({ } render() { + const { className } = this.props const { fixed, contentHeight } = this.state return ( {this.props.children}