"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "types/test/vue-test.ts" between
vue-2.7.13.tar.gz and vue-2.7.14.tar.gz

About: Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

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

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)