1.0.10 • Published 2 years ago

test-zy-render v1.0.10

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

一个简易的自定义表单项目

安装(需要先安装element-ui)

npm install element-ui
npm install test-zy-render

使用表单编辑

  <render/>
import { render } from 'test-zy-render'
  components:{
    render
  },

使用表单

// renderflowData 为表单编辑获取到的数据
<template>
  <div>
    <showForm ref="showForm" @getData="getData" :renderFormData="renderflowData" />
    <el-button type="primary" @click="submit">提交</el-button>
  </div>
</template>
<script>
import { showForm } from "test-zy-render";
export default {
  components: {
    showForm,
  },
  data() {
    return {
      renderflowData: {
        renderEditList: [
        ],
      },
    };
  },
  methods: {
    submit() {
      this.$refs.showForm.submit();
    },
    getData(data, option) {
      console.log(data);
      console.log(option);
    },
  },
};
</script>

开源协议

ISC

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago