element-ui-etm
v1.0.1
Published
A Component Library for Vue.js.
Downloads
4
Readme
element-ui-etm
原生为element-ui,根据etm项目业务需求进行扩展的ui组件库。
更新记录
V1.0.0
Cascader 级联选择器
noCheck
Attributes 中的options参数如果配置了noCheck属性为true,可以屏蔽掉该级前面展示的checkbox多选框。
<div>
<el-cascader :options="options"></el-cascader>
</div>
<script>
export default {
data() {
return {
options: [{
value: 1,
label: '选项一',
noCheck: true
}]
}
}
}
</script>
Tree 树形控件
icon-class-expanded
Attributes中的icon-class属性可以自定义树节点图标在菜单展开前的类名,菜单展开后图标会顺时针旋转90度。如果添加了icon-class-expanded属性,图标在菜单展开前拥有icon-class的类名,菜单展开后会替代为icon-class-expanded的类名,这样就可以自定义展开前后两种状态的图标了。
<div>
<el-tree icon-class="before-expand" icon-class-expanded="after-expand"></el-tree>
</div>