# rocket-render
**Repository Path**: zhouwd/rocket-render
## Basic Information
- **Project Name**: rocket-render
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2024-09-30
- **Last Updated**: 2024-11-05
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## rocket-render
一款基于 Vue2.6 实现的表单、表格低代码插件,支持查询表单、表单联动、表单显隐、表单异步赋值,动态表格能各项能力。组件文档可能更新不及时,大家可以查看 [Release 文档](https://jackysoft.github.io/rocket-render-doc/Release.html)。
## Document
- 体验 DEMO:https://jackysoft.github.io/rocket-render/
- 开发文档:https://jackysoft.github.io/rocket-render-doc
- Release: [Release 文档](https://jackysoft.github.io/rocket-render-doc/Release.html)。
## Features
- 基于 json 配置化开发表单、表格组件
- 基于 ElementUI 二次封装,无缝对接,属性、事件均和 ElementUI 同步
- rocket-render 更加易用、快速开发
## Install
1. 安装 rocket-render
```
yarn add rocket-render -S
# or
npm i rocket-render -S
```
2. rocket-render 依赖 ElementUI,所以需要安装 ElementUI
```
yarn add element-ui -S
```
3. 本案例需要使用 axios 发送请求,所以也需要安装 axios(插件本身不需要 axios)
```
yarn add axios -S
```
## Usage
1. main.js 中全局安装插件
```js
import Vue from 'vue';
import Element from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import RocketRender from 'rocket-render';
import 'rocket-render/lib/rocket-render.css';
Vue.use(Element);
// 可根据公司业务做全局定制
Vue.use(RocketRender, {
size: 'small', // form/table全局尺寸: medium / small / mini
empty: '-', // table列中字段为空时,默认显示内容
inline: 'flex', // 搜索表单全局配置,默认:flex
toolbar: true, // 是否展示工具条,默认:true
align: 'center', // 表格列对齐方式,默认:center
border: true, // 表格是否显示边框,默认:true
pager: true, // 是否显示分页器,默认:true
pageSize: 20, // 全局每页条数,默认:20
emptyText: '暂无数据', // 表格无数据时展示内容,默认:暂无数据
});
```
2. 页面使用组件
```html
```