Slider: add marks attribute (#15133)

This commit is contained in:
luckyCao
2019-04-19 16:02:01 +08:00
committed by hetech
parent e5385e8531
commit da01541d60
9 changed files with 318 additions and 43 deletions

View File

@@ -0,0 +1,18 @@
export default {
name: 'ElMarker',
props: {
mark: {
type: [String, Object]
}
},
render() {
let label = typeof this.mark === 'string' ? this.mark : this.mark.label;
return (
<div class="el-slider__marks-text" style={ this.mark.style || {} }>
{ label }
</div>
);
}
};