We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@nutui/nutui-react-taro
3.0.0-beta.10
weapp
1
import React, { useState } from 'react' import { Cell, Calendar } from '@nutui/nutui-react-taro' import { Star } from '@nutui/icons-react-taro' const Demo1 = () => { const d = new Date() const currDay = `${d.getFullYear()}-${d.getMonth() + 1}-${d.getDate()}` const [date, setDate] = useState(currDay) const [isVisible, setIsVisible] = useState(false) const [dateWeek, setDateWeek] = useState('') const openSwitch = () => { setIsVisible(true) } const closeSwitch = () => { setIsVisible(false) } const setChooseValue = (param: string) => { setDate(param[3]) setDateWeek(param[4]) } const select = (param: string) => { console.log(param) } return ( <> <Cell title="选择单个日期" description={date ? `${date} ${dateWeek}` : '请选择'} onClick={openSwitch} /> <Calendar visible={isVisible} showTitle={false} defaultValue={date} onClose={closeSwitch} onConfirm={setChooseValue} onDayClick={select} closeIcon={<Star />} /> </> ) } export default Demo1
样式正常
样式错位
No response
The text was updated successfully, but these errors were encountered:
xiaoyatong
No branches or pull requests
NutUI React 包名
@nutui/nutui-react-taro
NutUI React 版本号
3.0.0-beta.10
平台
weapp
重现链接
1
重现步骤
期望的结果是什么?
样式正常
实际的结果是什么?
样式错位
环境信息
No response
其他补充信息
No response
The text was updated successfully, but these errors were encountered: