Current collected state Current
Observed since 20 Oct, 21:30 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
91-customize-form
Secondary encapsulation based on Vform
> 拖拽式表单设计;
> 支持PC、H5两种布局;
> 支持运行时动态加载表单;
> 支持表单复杂交互控制;
> 支持自定义CSS样式;
> 支持历史撤销、重做功能;
> 可导出Vue组件、HTML源码;
> 可导出Vue的SFC单文件组件;
> 更多功能等你探究...;
npm install --registry=https://registry.npm.taobao.org
npm run serve-iview
npm run build-iview
npm run lib-iview
npm run lib-render-iview
Chrome(及同内核的浏览器如QQ浏览器、360浏览器等等),Edge, Firefox,Safari,IE 11
npm i 91-customize-form
或
yarn add 91-customize-form
import Vue from 'vue'
import App from './App.vue'
import ViewUI from 'view-design' //引入iView库
import VForm from '91-customize-form' //引入iView版本VForm库文件
import 'view-design/dist/styles/iview.css' //引入iView样式
import '91-customize-form/dist/VFormDesigner-iView.css' //引入VForm样式
Vue.config.productionTip = false
Vue.use(ViewUI, {size:'small'}) //全局注册iView
Vue.use(VForm) //全局注册VForm(同时注册了v-form-designer和v-form-render组件)
new Vue({
render: h => h(App),
}).$mount('#app')
<template>
<v-form-designer></v-form-designer>
</template>
<script>
export default {
data() {
return {
}
}
}
</script>
<style lang="scss">
body {
margin: 0; /* 如果页面出现垂直滚动条,则加入此行CSS以消除之 */
}
</style>
<template>
<div>
<v-form-render :form-json="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef">
</v-form-render>
<el-button type="primary" @click="submitForm">Submit</el-button>
</div>
</template>
<script>
export default {
data() {
return {
formJson: {"widgetList":[],"formConfig":{"labelWidth":80,"labelPosition":"left","size":"","labelAlign":"label-left-align","cssCode":"","customClass":"","functions":"","layoutType":"PC","onFormCreated":"","onFormMounted":"","onFormDataChange":""}},
formData: {},
optionData: {}
}
},
methods: {
submitForm() {
this.$refs.vFormRef.getFormData().then(formData => {
// Form Validation OK
alert( JSON.stringify(formData) )
}).catch(error => {
// Form Validation failed
this.$message.error(error)
})
}
}
}
</script>
Download counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
Source distribution
{
"shasum": "0446011ff1bde725873ef233d913cfd4d4839c5c",
"tarball": "https://registry.npmjs.org/91-customize-form/-/91-customize-form-0.0.18.tgz",
"fileCount": 17,
"integrity": "sha512-7P8mkUBzSRuD1EsHownW5oqTjGegv4G0sdMLf7G0K+ffE01BwLTS6YEWuFAwUapYqbaiM6rL7uyja77eNoUKGw==",
"signatures": [
{
"sig": "MEUCIB3izBtBeEIvbeMTKsTFdqwIClVKjNfZe2nAf8pKed20AiEAz4h/TarQcPc2YPK7PyisDQOGvZMispT3L6P7jPSxRzE=",
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
}
],
"unpackedSize": 17347473,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjot/bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrv6g/8CtwHg8XpU9B7DZ/+gD7Nnozq67UKomjjIsBmWizY2TysP16e\r\n26R89UhV1oLudOZcdLhbl+PPWVxI92x1yksJdm5r9UbQAOQuZGvFzqvR3neC\r\nOq2NJZ00C++obl1use5wfw6QypvjmhLKPWodk8FWWQmd7KCTDncYsiC8eCFp\r\nxwvseK4iX8H4OMujaQ6PyRzDOEIAT5difonuR8pP07H6wrWuUn/W/J8VOUO1\r\n+ngC3tvwiUYb6l8otC19VzPE8g2eLmtoMcRFnSp3e0LBWgQ8jmaVXtz8w4/7\r\nRGaSoZfIWrGiKM6dXFLbu3OtQ6QIttlYTyXwrQFSPB+qa3a704gP1wTmmxKT\r\nqx4QQIMpAYOeT3jRk7vmxo5lfon/RQSCIThAsgcqGdBoAJBHKs0NtM1TEihd\r\nP6o6Hi+7CT1pCvLDvH/mOmnMz+uE+Ka1GIjIH9LWMlKE3cExzS3yRBMEDoHG\r\nrbABxCTeZuBvKL5fM4mxOGq7AO78tPHLMIgWy78U51AUJEvP3D7bpjad9lcK\r\nQIjJ5+rX0xGWVUUdLA/cpfHJqgzIUqT/0eHzvtjFsVljktcU8370elRj5yJ8\r\nxUbQVz+K918xUsPlm8x5tKukMeLMj5l/VCRmEtr42RMCVaFhKJ2eSS6/KH4/\r\n+JEkNzqM1f0iQTVDKBLMaTQJgo6Z2F7z8LA=\r\n=duUM\r\n-----END PGP SIGNATURE-----\r\n"
}Observed since 20 Oct, 21:30 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:b6d39999157677cf5a7a5e75ff7807aa3267edce8237a1ad2a5fb8a1b74709de