{"_id":"@bmstravel/form-platform","_rev":"3-96f9fa08018f7cf1f2f621d25e3a123b","name":"@bmstravel/form-platform","dist-tags":{"latest":"0.0.20"},"versions":{"0.1.3":{"name":"@bmstravel/form-platform","version":"0.1.3","publishConfig":{"access":"public"},"scripts":{"dev":"lerna run --parallel dev --scope scalable-form-sdk","dev:server":"lerna run --parallel dev --scope scalable-form-server --scope scalable-form-admin","dev:koa":"lerna run --parallel dev --scope scalable-form-use-server-sdk-with-koa --scope scalable-form-admin","dev:express":"lerna run --parallel dev --scope scalable-form-use-server-sdk-with-express --scope scalable-form-admin","dev:egg":"lerna run --parallel dev --scope scalable-form-use-server-sdk-with-egg --scope scalable-form-admin","postinstall":"lerna bootstrap --hoist","prebuild":"node_modules/.bin/rimraf ./dist && mkdir dist","build":"lerna run --parallel build","build:storybook":"build-storybook -c .storybook -o ./dist","start":"lerna run --stream start --scope scalable-form-server","stop":"lerna run --stream stop","test":"lerna run --parallel test --scope scalable-form-core && coveralls < packages/scalable-form-core/coverage/lcov.info","publish":"lerna run --parallel publish","publish:daily":"node ./scripts/version-daily.js && npm run publish","publish:core":"lerna run --parallel publish --scope scalable-form-core","publish:antd":"lerna run --parallel publish --scope scalable-form-antd","publish:antd-mobile":"lerna run --parallel publish --scope scalable-form-antd-mobile","publish:editor":"lerna run --parallel publish --scope scalable-form-editor","publish:server":"lerna run --parallel publish --scope scalable-form-server"},"dependencies":{},"devDependencies":{"@commitlint/cli":"^7.5.2","@commitlint/config-conventional":"^7.5.0","@storybook/react":"^5.2.5","coveralls":"^3.0.11","git-branch":"^2.0.1","husky":"^1.3.1","lerna":"^3.18.3","rimraf":"^3.0.0","tslint":"^5.15.0","tslint-config-prettier":"^1.18.0","tslint-eslint-rules":"^5.4.0","tslint-react":"^4.0.0","typescript":"^3.4.4"},"husky":{"hooks":{"post-checkout":"node ./scripts/version.js","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"description":"基于动态表单协议（[JSON Schema](http://json-schema.org/)）的表单解决方案，提供了基于 [ant-design](https://github.com/ant-design/ant-design) 和 [ant-design-mobile](https://github.com/ant-design/ant-design-mobile) 的前端表单渲染引擎sdk、可视化表单编辑器和可独立部署镜像。","licenseText":"MIT License\n\nCopyright (c) 2020 Alibaba\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@bmstravel/form-platform@0.1.3","dist":{"shasum":"a3efbf11606c6a9ded006a84b343308e6fa83ef7","integrity":"sha512-K9eMcLKLkPwRgMDoN4uGjXOmdSaOXQq4RgsWzx6ofwm3zJryddfrYJ4GgbVBXotGpWSR8ANLqITUM1hkkv6NNw==","tarball":"https://registry.npmjs.org/@bmstravel/form-platform/-/form-platform-0.1.3.tgz","fileCount":561,"unpackedSize":1916528,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1FEfCRA9TVsSAnZWagAA/FsQAJKqZ3bp3rnS9YeJwD5j\nmuoKI3dv20ukBuYmzoyhvznZ99rAQI4pFc49mPlwCSkbH++WBobEHS5iBuGu\nISzkHMsNltYMf5EzsDl+LZ1/T25jFPd9v2nsE4TH/iE6vrGmAX0G+tTr3lqd\nZqiFHZu8seauM18Rb1x4Avcbz2PYJBEqZ6yr1D93YPDk4gbHvrF8Z8DbC0nf\nFYspubGjZnaXyMb5xGA1syhesMgz98eIjYqnV860kT2y0qlph5ILDE3Y6tUz\nqBEX4PmYqIoLWrT8rPFKRYgM4bLDGkkXw95qaL4I8r/i3k7MUTz2K4MgyO2x\nLW0BI8UTfyVC4o/DFU8Bl326ED3BhEy0IUgOcMKMOZJoEcgwJ8jaLrT7QQr4\nznG2jV1mb+vBausdr0SHVhl3OfGW9dbCuweTKRhPgmpF/7/iA/Jt/dSlferi\nlfESqvZREDvSl78qV8OFa8r8zdUNKVRAtHisTxIflBQWEFHtj+ZFvW7GQsQ0\nTK670Eb1Rwr+wkEXZbpp3k3LVCfJW+SNoGikb1iPIA5QjeS0z/pF99BTtwN/\nTOzkZJ50QPIoMgaVzWtIOh/gAg1y5C5vOgmLtw8KNOH74+jC5P1mgTjP+oSG\n2xCJN6IjIDhgrk71/ewsDNa0d9gXI963hELiBFG2DGQwNOjDyFrRhxZd3kBG\n8gH4\r\n=0ZCS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFElYPCQApieT1QywVaXd3+kU7+zj5JVZ3jY1YyumqKCAiB8cNFtPU26Az+22+TRT9ABliv8l3D8a10DqrYUi7lgUw=="}]},"_npmUser":{"name":"phongnv86","email":"phongnguyenvan86@gmail.com"},"directories":{},"maintainers":[{"name":"phongnv86","email":"phongnguyenvan86@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/form-platform_0.1.3_1607749919104_0.6686160261938585"},"_hasShrinkwrap":false},"0.0.1":{"name":"@bmstravel/form-platform","version":"0.0.1","publishConfig":{"access":"public"},"scripts":{"dev":"lerna run --parallel dev --scope scalable-form-sdk","dev:server":"lerna run --parallel dev --scope scalable-form-server --scope scalable-form-admin","dev:koa":"lerna run --parallel dev --scope scalable-form-use-server-sdk-with-koa --scope scalable-form-admin","dev:express":"lerna run --parallel dev --scope scalable-form-use-server-sdk-with-express --scope scalable-form-admin","dev:egg":"lerna run --parallel dev --scope scalable-form-use-server-sdk-with-egg --scope scalable-form-admin","postinstall":"lerna bootstrap --hoist","prebuild":"node_modules/.bin/rimraf ./dist && mkdir dist","build":"lerna run --parallel build","build:storybook":"build-storybook -c .storybook -o ./dist","start":"lerna run --stream start --scope scalable-form-server","stop":"lerna run --stream stop","test":"lerna run --parallel test --scope scalable-form-core && coveralls < packages/scalable-form-core/coverage/lcov.info","publish":"lerna run --parallel publish","publish:daily":"node ./scripts/version-daily.js && npm run publish","publish:core":"lerna run --parallel publish --scope @bmstravel/form-core","publish:antd":"lerna run --parallel publish --scope @bmstravel/form-antd","publish:antd-mobile":"lerna run --parallel publish --scope @bmstravel/form-antd-mobile","publish:editor":"lerna run --parallel publish --scope @bmstravel/form-editor","publish:server":"lerna run --parallel publish --scope @bmstravel/form-server"},"dependencies":{},"devDependencies":{"@commitlint/cli":"^7.5.2","@commitlint/config-conventional":"^7.5.0","@storybook/react":"^5.2.5","coveralls":"^3.0.11","git-branch":"^2.0.1","husky":"^1.3.1","lerna":"^3.18.3","rimraf":"^3.0.0","tslint":"^5.15.0","tslint-config-prettier":"^1.18.0","tslint-eslint-rules":"^5.4.0","tslint-react":"^4.0.0","typescript":"^3.4.4"},"husky":{"hooks":{"post-checkout":"node ./scripts/version.js","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"description":"基于动态表单协议（[JSON Schema](http://json-schema.org/)）的表单解决方案，提供了基于 [ant-design](https://github.com/ant-design/ant-design) 和 [ant-design-mobile](https://github.com/ant-design/ant-design-mobile) 的前端表单渲染引擎sdk、可视化表单编辑器和可独立部署镜像。","licenseText":"MIT License\n\nCopyright (c) 2020 Alibaba\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@bmstravel/form-platform@0.0.1","dist":{"shasum":"606e07428e1289f203ad5cba5d0719b0cb54bf7d","integrity":"sha512-CTuuFwwvD9QJrByXAfCqJKOP7j8ii35duhDfWranLd94X8QqtaQe/Z1+I47bqTfvd9meanYVRN8wQyJLxg/5nA==","tarball":"https://registry.npmjs.org/@bmstravel/form-platform/-/form-platform-0.0.1.tgz","fileCount":562,"unpackedSize":1916390,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1uVmCRA9TVsSAnZWagAAHysP/j/ypP7e9zogYkC65hAG\nDCMofyqw2hnweU4bmTUn/87iS6CxkaVWLs3CctIw22ed3lX7ImvCfq7tf+tv\nHuTrLsQu0/+lAzeHQ1W/9w52DgQOgvRF4hjXBEVGRvj02S7UiPpV+O7iv3o3\nzZGGR3McKgQkjS+iazSfIIzllycEh0GHne4QcrtgRl6hqWqSXFZlS72W704x\nstNcDWQqogwkjCpb3p/2Ij7FMh59Z/laoGOZj3C1HVPkKB+Wwmd7yY1f/pPF\npfEjmuByIALXeiGdHUx17YepehVrKmwZMQxCEfsfdjXI454TlI05Nwsy1Z6W\ndUtc9KTRdRC3mQQgC6tSmDJKjgw0ZpCOJOiqPFTc2o+6bLesEIKdtwXs8nj4\n6JJsS71i2nB1YSTkMErNdHDclG7zl7zkArHwNVqUhd7DZb8FNwHeEFaIka4N\nqSRcskY4moW84XKa7NXxyRK7xeJDQwFBHO+uVTugBhExV9b8MX0+x4llFitZ\nua6/UOQI7mbpExSzcR1gVKeSNX1JlTxwT4vq4/A2tRGMwC0ePEojbN1mfmgq\nu+p3W6yeI5oKUM6iCSF2TGh6DMyNUdY1+KJNG/9UyhqO1TeCVc/ZpPXhMjg8\nS026M5y4d8em3auEulOJNSLYDRxVxH/AuqvWLF2hIaww8skRm1BhSnJ7sYxq\n4B6B\r\n=j3iN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDajkBgd1cA1ZcRKNm7wgEt8G/4O6UVv3YLMnybu4OhPwIgF6mefVItZ9yO2DSHB9VfPKX9+pZYJF3SbV4vn4+/SkE="}]},"_npmUser":{"name":"phongnv86","email":"phongnguyenvan86@gmail.com"},"directories":{},"maintainers":[{"name":"phongnv86","email":"phongnguyenvan86@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/form-platform_0.0.1_1607918949475_0.7760643208336844"},"_hasShrinkwrap":false},"0.0.20":{"name":"@bmstravel/form-platform","version":"0.0.20","publishConfig":{"access":"public"},"scripts":{"dev":"lerna run --parallel dev --scope scalable-form-sdk","dev:server":"lerna run --parallel dev --scope scalable-form-server --scope scalable-form-admin","dev:koa":"lerna run --parallel dev --scope scalable-form-use-server-sdk-with-koa --scope scalable-form-admin","dev:express":"lerna run --parallel dev --scope scalable-form-use-server-sdk-with-express --scope scalable-form-admin","dev:egg":"lerna run --parallel dev --scope scalable-form-use-server-sdk-with-egg --scope scalable-form-admin","postinstall":"lerna bootstrap --hoist","prebuild":"node_modules/.bin/rimraf ./dist && mkdir dist","build":"lerna run --parallel build","build:storybook":"build-storybook -c .storybook -o ./dist","start":"lerna run --stream start --scope scalable-form-server","stop":"lerna run --stream stop","test":"lerna run --parallel test --scope scalable-form-core && coveralls < packages/scalable-form-core/coverage/lcov.info","publish":"lerna run --parallel publish","publish:daily":"node ./scripts/version-daily.js && npm run publish","publish:core":"lerna run --parallel publish --scope @bmstravel/form-core","publish:antd":"lerna run --parallel publish --scope @bmstravel/form-antd","publish:antd-mobile":"lerna run --parallel publish --scope @bmstravel/form-antd-mobile","publish:editor":"lerna run --parallel publish --scope @bmstravel/form-editor","publish:server":"lerna run --parallel publish --scope @bmstravel/form-server"},"dependencies":{},"devDependencies":{"@commitlint/cli":"^7.5.2","@commitlint/config-conventional":"^7.5.0","@storybook/react":"^5.2.5","coveralls":"^3.0.11","git-branch":"^2.0.1","husky":"^1.3.1","lerna":"^3.18.3","rimraf":"^3.0.0","tslint":"^5.15.0","tslint-config-prettier":"^1.18.0","tslint-eslint-rules":"^5.4.0","tslint-react":"^4.0.0","typescript":"^3.4.4"},"husky":{"hooks":{"post-checkout":"node ./scripts/version.js","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"description":"基于动态表单协议（[JSON Schema](http://json-schema.org/)）的表单解决方案，提供了基于 [ant-design](https://github.com/ant-design/ant-design) 和 [ant-design-mobile](https://github.com/ant-design/ant-design-mobile) 的前端表单渲染引擎sdk、可视化表单编辑器和可独立部署镜像。","licenseText":"MIT License\n\nCopyright (c) 2020 Alibaba\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@bmstravel/form-platform@0.0.20","dist":{"shasum":"20215345e2290ca48a9a514854f8cfd4233a338b","integrity":"sha512-RpKxY3z3MEaVmyskDO0a4frG8hD4NSiJFYIjkSXOh7V72A+CdF8sNLOsLLh9voSfyZzhy1tnQDN/Lvh3Pg3m8Q==","tarball":"https://registry.npmjs.org/@bmstravel/form-platform/-/form-platform-0.0.20.tgz","fileCount":562,"unpackedSize":1916391,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1uXjCRA9TVsSAnZWagAAUdMP/38vFtjmpK5HnDgmzQKA\nKN82vXoiq+ICSiOXUJgdueIwEWY8rovpOTvomXnvG7h/eF753zSEcBbKKh4b\n/m+asvLy4QCRZJUEjSFIv9UZs3fErcebuRsUP5ZjQFtNImH5PaBY125DOSaf\no7hHLrwuLnD8CRJu8EMyhXPW4bFCE0QXwIyCgg3ZWMIZueQJsgGS9u2D0Iny\nY9UDKcopttxAvODkBUvoV2SGFWJSLtsA1EJSLaKM6Rv/ZfDdSokUiVRyQGEy\n0VYGP2joNtgaksOet6vB+0xutBWNssQl53vs1IRviQrBwqdK92cWUz2pIDQH\nxd3ZX+SejQx0w+C20CREqEWawab8bSec0Mw4cixarwiRj/esDvmipd/cMP0A\nAD7Dwzc5QrpyNyYkdkcisswNaz90UYoeYURlrD1sS3vO7d4TUpT+lY/8E37M\nGTUXnOya5+ogYjXZjBUjxYY2d/NdedX7BwDLWDNTfqkzLwkAIDRXEVQXDWCD\nN8/Id26tXH5XTX0212xgmeq+RVrf4q0CYNFZpbAXfZ4a0rFOGz+OJluecFIW\nHGuhESNPffZ87c35iMjPD5znQiLAjxe0oPEsYruLeM5TvXEwnmgPyLx8IYoh\nXnDfyttrq5isCMKsTSaQnWrUXI5gn+i+PmYlYV8TfLA30uePpgopcKGgSGDM\nh0bT\r\n=wo+L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyXy+7PsPt8xZQTqgHf2MmLp188Qe7UjdwDNILzFStYgIgSU1TM43EvSELhOObh4WwH+51SGNJIsvE5RPRjSR9aO8="}]},"_npmUser":{"name":"phongnv86","email":"phongnguyenvan86@gmail.com"},"directories":{},"maintainers":[{"name":"phongnv86","email":"phongnguyenvan86@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/form-platform_0.0.20_1607919074596_0.21893058115999642"},"_hasShrinkwrap":false}},"time":{"created":"2020-12-12T05:11:58.889Z","0.1.3":"2020-12-12T05:11:59.301Z","modified":"2022-04-04T19:53:02.693Z","0.0.1":"2020-12-14T04:09:09.837Z","0.0.20":"2020-12-14T04:11:14.768Z"},"maintainers":[{"name":"phongnv86","email":"phongnguyenvan86@gmail.com"}],"description":"基于动态表单协议（[JSON Schema](http://json-schema.org/)）的表单解决方案，提供了基于 [ant-design](https://github.com/ant-design/ant-design) 和 [ant-design-mobile](https://github.com/ant-design/ant-design-mobile) 的前端表单渲染引擎sdk、可视化表单编辑器和可独立部署镜像。","license":"MIT","readme":"# scalable-form-platform\n基于动态表单协议（[JSON Schema](http://json-schema.org/)）的表单解决方案，提供了基于 [ant-design](https://github.com/ant-design/ant-design) 和 [ant-design-mobile](https://github.com/ant-design/ant-design-mobile) 的前端表单渲染引擎sdk、可视化表单编辑器和可独立部署镜像。\n\nA solution for editing and publish dynamic web forms with visual editor, providing react components for rendering web forms from [JSON schema](http://json-schema.org/) using [ant-design](https://github.com/rjsf-team/react-jsonschema-form) or [ant-design-mobile](https://github.com/ant-design/ant-design-mobile), an visual editor component to edit dynamic form json schema and an server library helping you build an dynamic form system.\n\n![GitHub](https://img.shields.io/github/license/alibaba/scalable-form-platform?style=flat)\n![npm](https://img.shields.io/npm/v/scalable-form-antd?color=blue&style=flat)\n[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/lvshuncn/scalable-form-platform)](https://hub.docker.com/r/lvshuncn/scalable-form-platform)\n![Travis (.org)](https://api.travis-ci.com/alibaba/scalable-form-platform.svg?branch=daily%2F0.0.2)\n![](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)\n![GitHub last commit](https://img.shields.io/github/last-commit/alibaba/scalable-form-platform?style=flat)\n![GitHub issues](https://img.shields.io/github/issues/alibaba/scalable-form-platform)\n\n查看文档 [https://scalable-form-platform.github.io/#/](https://scalable-form-platform.github.io/#/)\n\n<p align=\"center\">\n  <a href=\"https://scalable-form-platform.github.io/\" target=\"_blank\">\n    <img max-width=\"1440\" src=\"https://img.alicdn.com/tfs/TB1MnB9z7Y2gK0jSZFgXXc5OFXa-1440-900.png\" />\n  </a>\n</p>\n\n## ✨ 特性/features\n- 🛳 企业级解决方案和高稳定性\n- 📦 开箱即用的动态表单渲染sdk\n- ⚙️ 完整的开发工具支持\n- 🗄 服务端支持和用于管理表单的可独立部署站点\n\n<br />\n\n- 🛳 Enterprise-class Solutions for web form\n- 📦 A set of high-quality react components for rendering web forms from JSON schema out of the box\n- ⚙️ Whole package of development tools\n- 🗄 Server support and independently deployable sites\n\n<br />\n\n- 更多特性请查看文档 [https://scalable-form-platform.github.io/#/](https://scalable-form-platform.github.io/#/)\n\n## 📦 包管理/Packages\n我们使用[Lerna](https://github.com/lerna/lerna)来进行包管理，所以本仓库会发布多个包到npm，包括：\n\nThis repository is a monorepo that we manage using [Lerna](https://github.com/lerna/lerna). That means that we actually publish several packages to npm from the same codebase, including:\n\n|  Package | NPMVersions  | Documents  | Description  |\n|  ----  | ----  | ----  | ----  |\n| scalable-form-antd  | [![npm](https://img.shields.io/npm/v/scalable-form-antd.svg?color=blue&style=flat)](https://www.npmjs.com/package/scalable-form-antd) | [![](https://img.shields.io/badge/API%20Docs-site-green.svg?style=flat)](https://scalable-form-platform.github.io/#/zh/scalable_form_antd) | 基于react-jsonschema-form，结合ant-design的动态表单渲染sdk |\n| scalable-form-antd-mobile  | [![npm](https://img.shields.io/npm/v/scalable-form-antd-mobile.svg?color=blue&style=flat)](https://www.npmjs.com/package/scalable-form-antd-mobile)|[![](https://img.shields.io/badge/API%20Docs-site-green.svg?style=flat)](https://scalable-form-platform.github.io/#/zh/scalable_form_antd_mobile)| 基于react-jsonschema-form，结合ant-design-mobile的动态表单渲染sdk，适用于移动端的渲染sdk |\n| scalable-form-editor  | [![npm](https://img.shields.io/npm/v/scalable-form-editor.svg?color=blue&style=flat)](https://www.npmjs.com/package/scalable-form-editor) | [![](https://img.shields.io/badge/API%20Docs-site-green.svg?style=flat)](https://scalable-form-platform.github.io/#/zh/scalable-form-editor)| 表单可视化编辑器，可视化编排表单，产出scalable-form-antd和scalable-form-antd-mobile可用的schema |\n| scalable-form-server  | [![npm](https://img.shields.io/npm/v/scalable-form-server.svg?color=blue&style=flat)](https://www.npmjs.com/package/scalable-form-server) | [![](https://img.shields.io/badge/API%20Docs-site-green.svg?style=flat)](https://scalable-form-platform.github.io/#/zh/%E4%BD%BF%E7%94%A8Node)| 服务端sdk，用户可以基于scalable-form-server保存表单配置。服务端sdk提供一个可用的表单站点，提供表单编排，表单管理，表单投放，数据回流分析的能力。 |\n\n## ⛳️ 快速上手\n我们从一个例子快速开始，在这个例子中，我们会渲染一个表单，表单支持用户填写自己的名字（name字段）。\n\n### 使用scalable-form-antd渲染表单\n> [scalable-form-antd](https://www.npmjs.com/package/scalable-form-antd)会根据表单描述协议（JSONSchema），使用ant-design组件渲染表单。\n```bash\nnpm i scalable-form-antd -S\n```\n\n使用scalable-form-antd，我们需要针对表单需求写一下表单描述（schema），并且将schema作为scalable-form-antd的props传入。\n> 您可能觉得写这个schema很繁琐，不过放心，Scalable Form的一大创新就是支持使用可视化的编排组件 [scalable-form-editor](https://www.npmjs.com/package/scalable-form-editor) 来搭建生成这个schema，完全不需要您手动书写，下文中，您会了解如何使用这个editor。\n\n```jsx harmony\nimport React from \"react\";\nimport \"./styles.css\";\nimport ScalableForm from \"scalable-form-antd\";\n\n// 这个例子，使用scalable-form-antd渲染了一个表单\nexport default class FormExample extends React.PureComponent {\n  constructor(props) {\n    super(props);\n    this.state = {\n      formData: {\n        name: \"\"\n      }\n    };\n\n    // 规则jsonSchema，用于描述表单字段信息，包括字段类型，长度等\n    this.jsonSchema = {\n      title: \"Scalable Form render sdk with Ant Design components\",\n      description: \"\",\n      type: \"object\",\n      required: [\"name\"],\n      properties: {\n        name: {\n          type: \"string\",\n          title: \"名称\",\n          default: \"\",\n          maxLength: 15\n        }\n      }\n    };\n\n    // 规则uiSchema，用于描述表单UI组件信息，包括输入框的placeholder等字段\n    this.uiSchema = {\n      name: {\n        \"ui:help\": '关于\"名称\"字段的帮助说明',\n        \"ui:options\": {\n          placeholder: \"请输入名称\"\n        }\n      }\n    };\n  }\n\n  // 用户输入表单数据变化时的回调，会返回用户当前填写的表单数据formData\n  handleChanged = (formData) => {\n    console.log(\"ScalableForm Changed!\", formData);\n    this.setState({\n      formData: { ...formData }\n    });\n  };\n\n  // 用户点击提交时的回调，会返回用户填写的表单数据formData\n  handleSubmit = (formData) => {\n    console.log(\"ScalableForm Submitted!\", formData);\n  };\n\n  render() {\n    return (\n      <div className=\"scalable-form-demo-element\">\n        <ScalableForm\n          jsonSchema={this.jsonSchema}\n          uiSchema={this.uiSchema}\n          formData={this.state.formData}\n          onChange={this.handleChanged}\n          onSubmit={this.handleSubmit}\n        />\n      </div>\n    );\n  }\n}\n```\n\n您可以在 [codesandbox](https://codesandbox.io/s/late-bird-xform-antd-x6qoo?from-embed) 查看这个例子的演示。<br />\n您可以访问访问[scalable-form-antd文档](https://scalable-form-platform.github.io/#/zh/scalable_form_antd)了解更多信息\n   \n<img src=\"https://img.alicdn.com/tfs/TB1kDsPAeH2gK0jSZJnXXaT1FXa-2554-696.png\" />\n\n> 您也可以使用[scalable-form-antd-mobile](https://www.npmjs.com/package/scalable-form-antd-mobile)在移动端渲染表单，[点击这里](https://codesandbox.io/s/late-bird-xform-antd-mobile-qspcg)在codesandbox中查看移动端渲染表单的例子，您也可以[在这里](https://scalable-form-platform.github.io/#/zh/%E7%A7%BB%E5%8A%A8%E7%AB%AF%E6%B8%B2%E6%9F%93)查看更多scalable-form-antd-mobile的文档。\n\n\n\n### 使用scalable-form-editor可视化编排表单\n```bash\nnpm i scalable-form-editor -S\n```\n[scalable-form-editor](https://www.npmjs.com/package/scalable-form-editor)是可视化编排表单的前端组件，您可以通过scalable-form-editor快速搭建您的表单。\n```javascript\nimport React from \"react\";\nimport \"./styles.css\";\nimport ScalableFormEditor from \"scalable-form-editor\";\n\nclass FormEditorExample extends Component {\n  constructor(...args) {\n    super(...args);\n    this.state = {\n        uiSchema: {},\n        jsonSchema: {},\n        bizData: {},\n        sequence: []\n        formData: {}\n    };\n  }\n\n  handleSubmit = (formCode, {jsonSchema,uiSchema, formData, bizData, sequence}) => {\n    console.log('submit by editor', jsonSchema, uiSchema, formData, bizData, sequence);\n  };\n\n  render() {\n    return (\n      <ScalableFormEditor\n        jsonSchema={this.state.jsonSchema}\n        uiSchema={this.state.uiSchema}\n        formData={this.state.formData}\n        bizData={this.state.bizData}\n        sequence={this.state.sequence}\n        onSubmit={this.handleSubmit}\n      />\n    );\n  }\n}\n```\n\n您可以在 [codesandbox](https://codesandbox.io/s/late-bird-xform-antd-x6qoo?from-embed) 查看scalable-form-editor的演示，[访问这里](https://scalable-form-platform.github.io/#/zh/scalable-form-editor)查看scalable-form-editor的更多文档\n\n![](https://img.alicdn.com/tfs/TB1m6eUz4v1gK0jSZFFXXb0sXXa-2874-1486.png)\n\n\n\n### 使用Scalable Form站点\n实际业务使用中，Scalable Form整体上由三个主要部分组成，表单渲染端，表单配置端，表单存储的服务端。\n\n- 表单配置端可以通过可视化的方式来编排产出渲染端可用的表单配置，并支持用户填写表单。\n- 渲染端使用配置端编排出来的表单配置，渲染为可用的表单。\n- 服务端用于存储表单配置。不仅如此，服务端还可以串联起整个Scalable Form的使用场景，提供配置站点（权限控制，场景配置，自定义组件配置），表单维护管理，表单填写页面，表单数据存储展示与简单的数据分析能力。\n\n通过docker镜像的方式，你可以很方便地在本地或者服务器部署一个Scalable Form服务器。\n你可以从[docker hub](https://hub.docker.com/repository/docker/lvshuncn/scalable-form-platform/general)搜索到Scalable Form服务器的docker镜像\n如果你在本地测试，你可以执行以下命令通过`scalable-form-platform`镜像开启一个Scalable Form服务器，端口绑定3000\n```\ndocker run -d -p 3000:3000 lvshuncn/scalable-form-platform\n```\n开启后，访问`http://localhost:3000/xform/admin`即可使用Scalable Form独立站点\n> 默认情况下docker中的Scalable Form会开启demo模式，demo模式仅用于快速演示，服务器以内存数据库的方式存储数据，重启后数据会清空，不要在生产环境下使用。生产环境使用方法请[查看文档](https://scalable-form-platform.github.io/#/zh/%E4%BD%BF%E7%94%A8dockerr)\n\n<p align=\"center\">\n  <a href=\"https://scalable-form-platform.github.io/\" target=\"_blank\">\n    <img max-width=\"1440\" src=\"https://img.alicdn.com/tfs/TB1MnB9z7Y2gK0jSZFgXXc5OFXa-1440-900.png\" />\n  </a>\n</p>\n\n## 🖥 浏览器支持/Environment Support\n\n* Modern browsers and Internet Explorer 9+ (with [polyfills](https://ant.design/docs/react/getting-started#Compatibility))\n\n| [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png\" alt=\"IE / Edge\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png\" alt=\"Firefox\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png\" alt=\"Chrome\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png\" alt=\"Safari\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png\" alt=\"Opera\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)</br>Opera |\n| --------- | --------- | --------- | --------- | --------- |\n| IE9, IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions|\n\n","readmeFilename":"README.md"}