-
Notifications
You must be signed in to change notification settings - Fork 282
Description
NutUI React 包名
@nutui/nutui-react-taro
NutUI React 版本号
^2.6.14
平台
alipay
重现链接
https://codesandbox.io/p/devbox/vigorous-blackwell-wgh25v?workspaceId=ws_XsDhfrL6eq5yTrT1F9yCMg
重现步骤
import { useState } from "react";
import { Button, DatePicker } from "@nutui/nutui-react";
import dayjs from "dayjs";
function App() {
const [showDateTimePicker, setShowDateTimePicker] = useState(false);
return (
<div className="App">
<DatePicker
title="日期选择"
visible={showDateTimePicker}
startDate={new Date(1970, 0, 1)}
endDate={dayjs().subtract(14, "years").toDate()}
defaultValue={dayjs().subtract(14, "years").toDate()}
showChinese
onCancel={() => setShowDateTimePicker(false)}
onConfirm={(options, values) => {
setShowDateTimePicker(false);
// onDateConfirm(values);
}}
/>
<Button type="primary" onClick={() => setShowDateTimePicker(true)}>
选择日期
</Button>
</div>
);
}
export default App;
期望的结果是什么?
正常展示日期选择列表
实际的结果是什么?

环境信息
"dependencies": {
"@babel/runtime": "^7.21.5",
"@nutui/nutui-react-taro": "^2.6.14",
"@tarojs/components": "4.0.8",
"@tarojs/helper": "4.0.8",
"@tarojs/plugin-framework-react": "4.0.8",
"@tarojs/plugin-html": "4.0.8",
"@tarojs/plugin-platform-alipay": "4.0.8",
"@tarojs/plugin-platform-h5": "4.0.8",
"@tarojs/plugin-platform-jd": "4.0.8",
"@tarojs/plugin-platform-qq": "4.0.8",
"@tarojs/plugin-platform-swan": "4.0.8",
"@tarojs/plugin-platform-tt": "4.0.8",
"@tarojs/plugin-platform-weapp": "4.0.8",
"@tarojs/react": "4.0.8",
"@tarojs/runtime": "4.0.8",
"@tarojs/shared": "4.0.8",
"@tarojs/taro": "4.0.8",
"crypto-js": "^4.2.0",
"dayjs": "^1.11.13",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-redux": "^8.1.3",
"redux": "^4.2.1",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.4.2"
},
其他补充信息
No response