2020-05-20 14:21:08 +00:00
|
|
|
import {
|
|
|
|
defineComponent,
|
|
|
|
reactive,
|
|
|
|
watchEffect,
|
|
|
|
} from '@vue/composition-api';
|
|
|
|
import Schlechtenburg from '@components/Schlechtenburg';
|
|
|
|
|
|
|
|
import './App.scss';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
name: 'App',
|
|
|
|
|
|
|
|
setup() {
|
2020-05-20 17:12:51 +00:00
|
|
|
const block = reactive({
|
|
|
|
block: 'sb-layout',
|
2020-05-20 14:21:08 +00:00
|
|
|
orientation: 'vertical',
|
|
|
|
children: [],
|
|
|
|
});
|
|
|
|
|
|
|
|
watchEffect(() => {
|
2020-05-20 17:12:51 +00:00
|
|
|
console.log(block);
|
2020-05-20 14:21:08 +00:00
|
|
|
});
|
|
|
|
|
2020-05-20 17:12:51 +00:00
|
|
|
return { block };
|
2020-05-20 14:21:08 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div id="app">
|
2020-05-20 17:12:51 +00:00
|
|
|
<Schlechtenburg vModel={this.block} />
|
2020-05-20 14:21:08 +00:00
|
|
|
|
2020-05-20 17:12:51 +00:00
|
|
|
<pre><code>{JSON.stringify(this.block, null, 2)}</code></pre>
|
2020-05-20 14:21:08 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
},
|
|
|
|
});
|