全局默认值异常 Element.Select.props.clearable.default = true 不生效
Open
stale
- Dominant language
- Vue
- Stars
- 54k
- Forks
- 14.4k
- PR merge metrics
- No merged PRs in 30d
Description
希望所有的下拉框都支持 clearable 和 filterable
就在 全局定义 defaultprops.js
import Element from 'element-ui'
// select
// 开启过滤功能
Element.Select.props.filterable.default = true
// 开启输入后小叉叉
Element.Select.props.clearable.default = true
// input
// 开启输入后小叉叉
Element.Input.props.clearable.default = true
然后在main.js 的 Vue.use() 之前引入
然而 只有 input 的 clearable 起效果了 , select 的 clearable 和 filterable 默认值并没有其效果
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.