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:
류한경 2022-07-10 17:28:45 +09:00 committed by GitHub
parent 2ed1ecea12
commit 2fce0f1d3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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)'
)
})
})

View File

@ -34,7 +34,7 @@ export default defineComponent({
'div',
{
class: ns.e('marks-text'),
style,
style: style.value,
},
label.value
)