mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 19:28:14 +08:00
fix(components): [slider] not changed marker style (#8737)
* fix(components): [slider] not changed marker style * test: add mark props test case
This commit is contained in:
parent
2ed1ecea12
commit
2fce0f1d3b
@ -610,6 +610,9 @@ describe('Slider', () => {
|
||||
const marks = wrapper.findAll('.el-slider__marks .el-slider__marks-text')
|
||||
expect(marks.length).toBe(2)
|
||||
expect(stops.length).toBe(2)
|
||||
expect(getComputedStyle(marks[marks.length - 1].element).color).toBe(
|
||||
'rgb(255, 85, 0)'
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -34,7 +34,7 @@ export default defineComponent({
|
||||
'div',
|
||||
{
|
||||
class: ns.e('marks-text'),
|
||||
style,
|
||||
style: style.value,
|
||||
},
|
||||
label.value
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user