You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import React, { useState } from 'react'
import isEmpty from 'lodash/isEmpty'
import { ConfigProvider, Picker, Field } from 'react-vant'
import { fieldNamesData } from '../utils/cityData'
Which React Vant packages are impacted?
react-vant
(React Vant core)react-vant-icons
(React Vant Icon)What version of React Vant are you using?
3.3.5
Reproduce live demo(codesandebox or stackblitz)?
No response
Descripition
import React, { useState } from 'react'
import isEmpty from 'lodash/isEmpty'
import { ConfigProvider, Picker, Field } from 'react-vant'
import { fieldNamesData } from '../utils/cityData'
export default ({ handleArea, area }) => {
let defaultCity = ['北京市', '北京市', '东城区']
let preCity = null
if (area) {
preCity = area.split(',').filter((o) => o)
defaultCity = preCity
}
const [value, setValue] = useState(defaultCity)
return (
<ConfigProvider
themeVars={{
rvPickerOptionTextColor: '#FF4901',
// '--rv-picker-option-text-color': '#FF4901',
// '--rv-picker-option-text-color--selected': '#FF4901',
}}
>
<Picker
confirmButtonText={
<span
style={{
color: '#FF4901',
fontSize: '16px',
lineHeight: '20px',
}}
>
确定
}
cancelButtonText={
<span
style={{
color: '#666',
fontSize: '16px',
lineHeight: '20px',
}}
>
取消
}
)
}
The text was updated successfully, but these errors were encountered: