跳转到内容

级联选择器

使用el-cascader组件封装,该组件提供级联数据输入能力,支持逐级查看并选择。支持编辑器类型包含:级联选择器

示例效果

输入参数

名称说明类型默认值
value编辑器值String-
controller编辑器控制器对象new RequiredProp(Object as PropType<C>)-
data容器数据,通常为表单数据,表格行数据,面板数据new RequiredProp(Object as PropType<IData>)-
disabled是否禁用{ type: Boolean }false
readonly是否只读{ type: Boolean, default: false }false
controlParams容器控件参数,一般是指表单部件控件参数、表格控件参数、面板控件参数{ type: Object, required: false }-

事件

名称说明类型
change值变更事件{_value:V, _name?:string, _ignore?:boolean}
blur失焦事件{_event?:IData}
focus聚焦事件{_event?:IData}
enter回车事件{_event?:IData}

编辑器参数

名称说明类型默认值
editorstyle设为'other'时会改变懒加载逻辑,不会将懒加载回的数据填充到树型数据中,'default'为默认逻辑,会将懒加载回的数据填充到树型数据中'default' | 'other''default'
sizeel-cascader组件的size属性'large' | 'default' | 'small''default'
filterableel-cascader组件的filterable属性booleantrue
multipleel-cascader组件props属性的multiple参数booleanfalse
separatorel-cascader组件的separator属性string'/'
readonly设置编辑器是否为只读态booleanfalse
未来已来,立即拥抱应用融合的力量
Released under the MIT License.