s2e30 element style with array

This commit is contained in:
Tyrel Souza 2018-04-13 15:14:55 -04:00
parent 73b096560c
commit 8d5c1a2edf
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0

View File

@ -7,9 +7,9 @@
</head>
<body>
<div id='app'>
<div class="demo" :style="{backgroundColor: color}"></div>
<div class="demo" :style="myStyle"></div>
<div class="demo"></div>
<div class="demo"></div>
<div class="demo" :style="[myStyle, {height: width + 'px'}]"></div>
<hr>
<input type="text" v-model="color">
<input type="text" v-model="width">