Last active
January 23, 2018 02:00
-
-
Save atimermann/023a1023c2cd6d1ad3e2f7ebc5eb5dea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id="app"> | |
<!--<img src="./assets/logo.png">--> | |
<h1></h1> | |
<h2>Smartify Crud Demo 01</h2> | |
<div class="container"> | |
<smartify-crud :options="options" :schema="schema" :omodel="model"></smartify-crud> | |
</div> | |
<hr> | |
App.vue: {{ model }} | |
</div> | |
</template> | |
<script> | |
let model = [ | |
{ | |
id: '0584e8d2', | |
name: 'André', | |
age: 0, | |
}, | |
{ | |
id: 'f4769183', | |
name: 'Fernando', | |
age: 0, | |
}, | |
{ | |
id: 'e171c9fb', | |
name: 'Guilherme', | |
age: 0 | |
} | |
] | |
export default { | |
name: 'demo01', | |
data() { | |
return { | |
options: {}, | |
schema: {}, | |
model | |
} | |
} | |
} | |
setInterval(() => { | |
model[0].age = model[0].age + 1 | |
}, 1000) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment