1
0
mirror of https://github.com/sahadev/vue-component-creater-ui.git synced 2025-06-06 21:14:03 +08:00
2021-06-02 10:41:21 +08:00
2021-04-22 16:50:02 +08:00
2021-04-09 20:06:44 +08:00
2021-04-11 22:33:19 +08:00
2021-04-09 20:06:44 +08:00
2021-04-22 17:35:08 +08:00
2021-06-02 10:41:21 +08:00
2021-04-22 17:35:08 +08:00
2021-04-11 22:33:19 +08:00
2021-06-02 10:41:21 +08:00
2021-04-22 17:50:09 +08:00
2021-04-22 16:50:02 +08:00
2021-04-09 20:06:44 +08:00

lcg-vcc介绍

vcc是Low Code Generator中独立的Vue组件代码编辑器。可以独立运行。

使用示例:

<template>
  <vcc :initCodeEntity="codeStructure" @updateCodeEntity="onCodeUpdate"></vcc>
</template>

<script>
// 以这样一段结构初始化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('lcg-vcc')
  },
  data() {
    return {
      codeStructure: JSON.parse(initCodeStr),
    }
  },
  mounted() {
  },
  methods: {
    onCodeUpdate(newCodeEntity) {
      // 编辑后新的代码结构
    }
  }
}
</script>
Description
通过它可以通过拖拽快速完成 Vue 组件代码骨架的搭建
Readme MIT 1.9 MiB
Languages
Vue 65.3%
JavaScript 33%
CSS 1.2%
HTML 0.5%