feat(runtime-core): implement RFC-0020

BREAKING CHANGE: data no longer supports object format (per RFC-0020)
This commit is contained in:
Evan You
2020-03-12 16:13:12 -04:00
parent dd17fa1c90
commit bb7fa3dabc
3 changed files with 16 additions and 10 deletions

View File

@@ -89,9 +89,9 @@ describe('compiler + runtime integration', () => {
it('should support using element innerHTML as template', () => {
const app = createApp({
data: {
data: () => ({
msg: 'hello'
}
})
})
const container = document.createElement('div')
container.innerHTML = '{{msg}}'