如何更改占位符文本?
How do I change the placeholder text?
添加以下prop好像不行
文本={{占位符:"Select product"}}
<DropdownTreeSelect
data={data}
texts={{placeholder: 'Some other text'}}
onChange={onChange}
className="bootstrap-demo"
/>
占位符文本仍然是默认值 "Choose ..."
道具名称是placeholderText
尝试:
<DropdownTreeSelect
data={data}
placeholderText={'Some other text'}
onChange={onChange}
className="bootstrap-demo"
/>
我尝试使用 texts={{ placeholder: "Search" }},效果非常好!
添加以下prop好像不行
文本={{占位符:"Select product"}}
<DropdownTreeSelect
data={data}
texts={{placeholder: 'Some other text'}}
onChange={onChange}
className="bootstrap-demo"
/>
占位符文本仍然是默认值 "Choose ..."
道具名称是placeholderText
尝试:
<DropdownTreeSelect
data={data}
placeholderText={'Some other text'}
onChange={onChange}
className="bootstrap-demo"
/>
我尝试使用 texts={{ placeholder: "Search" }},效果非常好!