|
@@ -15,7 +15,7 @@ export function wrapProps(props: PropsWithChildren<CustomPropsType>) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- if (!width) {
|
|
|
|
|
|
+ if (typeof width !== 'number') {
|
|
const windowInfo = Taro.getWindowInfo()
|
|
const windowInfo = Taro.getWindowInfo()
|
|
width = windowInfo?.windowWidth
|
|
width = windowInfo?.windowWidth
|
|
}
|
|
}
|