refactor: reuse parseStringStyle across compiler and runtime

This commit is contained in:
Evan You
2020-05-06 11:22:49 -04:00
parent 2d9f136077
commit 8df6bc0132
3 changed files with 28 additions and 33 deletions

View File

@@ -258,7 +258,8 @@ describe('vnode', () => {
}
})
})
test('style', () => {
test('style w/ strings', () => {
let props1: Data = {
style: 'width:100px;right:10;top:10'
}
@@ -281,8 +282,8 @@ describe('vnode', () => {
width: '300px',
height: '300px',
fontSize: 30,
right: 10,
top: 10
right: '10',
top: '10'
}
})
})