1
0
mirror of https://github.com/sahadev/vue-component-creater-ui.git synced 2025-12-15 23:14:18 +08:00

update: 完全升级Vue3过程中的记录

This commit is contained in:
shangbin
2021-11-30 19:17:29 +08:00
parent 23bb007b5b
commit d6f575c503
26 changed files with 1032 additions and 463 deletions

View File

@@ -3,12 +3,13 @@
</template>
<script>
import { defineAsyncComponent } from 'vue'
// 以这样一段结构初始化VCC组件
const initCodeStr = '{"template":{"lc_id":"root","__children":[{"div":{"class":"container","style":"min-height: 100%; padding-bottom: 100px;","lc_id":"container","__text__":"Hello欢迎使用LCG请往此区域拖拽组件","__children":[{"el-button":{"lc-mark":"","type":"danger","lc_id":"COAAYXizyI","__children":[],"__text__":"危险按钮","@click":"onButtonClick","size":"small"}}]}}]}}'
export default {
components: {
vcc: () => import('./components-v2/VCC.vue'),
vcc: defineAsyncComponent(() => import('./components-v2/VCC.vue')),
},
data() {
return {