0.0.1-2022072901-Alpha • Published 2 years ago

gc-starter-form-create v0.0.1-2022072901-Alpha

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

gc-starter-form-create

基于千行低代码的页面运行器

一、安装

$ npm install gc-starter-form-create

二、在千行框架中使用

1. 在组件中引入运行器组件和样式

<template>
  <PageRun />
</template>
<script>
  // 引入预览组件和样式css
  import { PageRun }  from 'gc-starter-form-create'
  import "gc-starter-form-create/lib/pageRender.css"
  export default {
    components: {
      PageRun
    }
  }
</script>

2. 在千行框架下store/index.js中引入页面运行器所需要的vuex模块

// 其他代码省略
// 此处引入页面运行器vuex模块
import { $page } from 'gc-starter-form-create'

const store = new Vuex.Store({
  modules: {
    ...$gc.store,
    ...modules,
    // 此处导出页面运行器vuex模块
    page: $page.pageStore
  }
})
export default store