vue-test.ts (vue-2.7.13) | : | vue-test.ts (vue-2.7.14) | ||
---|---|---|---|---|
skipping to change at line 231 | skipping to change at line 231 | |||
a = 123 | a = 123 | |||
} | } | |||
const obj = Vue.observable({ a: 1 }) | const obj = Vue.observable({ a: 1 }) | |||
obj.a++ | obj.a++ | |||
// VNodeData style tests. | // VNodeData style tests. | |||
const ComponentWithStyleInVNodeData = Vue.extend({ | const ComponentWithStyleInVNodeData = Vue.extend({ | |||
render(h) { | render(h) { | |||
const elementWithStyleAsString = h('div', { | const elementWithStyleAsString = h('div', { | |||
style: 'background-color: red;' | style: '--theme-color: black;' | |||
}) | }) | |||
const elementWithStyleAsObject = h('div', { | const elementWithStyleCSSProperties = h('div', { | |||
style: { backgroundColor: 'green' } | style: { ['--theme-color' as any]: 'black' } | |||
}) | }) | |||
const elementWithStyleAsArrayOfObjects = h('div', { | const elementWithStyleAsArrayOfStyleValues = h('div', { | |||
style: [{ backgroundColor: 'blue' }] | style: [{ ['--theme-color' as any]: 'black' }] | |||
}) | }) | |||
return h('div', undefined, [ | return h('div', undefined, [ | |||
elementWithStyleAsString, | elementWithStyleAsString, | |||
elementWithStyleAsObject, | elementWithStyleCSSProperties, | |||
elementWithStyleAsArrayOfObjects | elementWithStyleAsArrayOfStyleValues | |||
]) | ]) | |||
} | } | |||
}) | }) | |||
// infer mixin type with new Vue() #12730 | // infer mixin type with new Vue() #12730 | |||
new Vue({ | new Vue({ | |||
mixins: [ | mixins: [ | |||
defineComponent({ | defineComponent({ | |||
props: { | props: { | |||
p1: String, | p1: String, | |||
End of changes. 4 change blocks. | ||||
7 lines changed or deleted | 7 lines changed or added |