From 4fed57c2375542eb3b5b8b72a46e9227d54efeaa Mon Sep 17 00:00:00 2001 From: WangJiaLiang <1316140201@qq.com> Date: Thu, 12 Jan 2023 20:44:10 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86Readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 109 ++++++++++++++++++++++------------------------ src/Inputsmall.js | 25 ----------- 2 files changed, 52 insertions(+), 82 deletions(-) delete mode 100644 src/Inputsmall.js diff --git a/README.md b/README.md index 58beeac..30de635 100644 --- a/README.md +++ b/README.md @@ -1,70 +1,65 @@ -# Getting Started with Create React App +# EVA Form +EVA 对外表单填报系统 用于精品活动/纳新报名页 -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). +可接受自定义参数生成表格 -## Available Scripts +API LIST -In the project directory, you can run: +问题格式 -### `npm start` +- methods:get +- url:/api/forminfo/*{router}* -Runs the app in the development mode.\ -Open [http://localhost:3000](http://localhost:3000) to view it in your browser. +```json +{ + code:200, + data:{ + formname:"EVA", + question:[ + { + type: "input", //输入框 + title: "blank1",// label + placeholder: "placeholder1",//文本框提示语 + message: "please input the blank",//未填写提交 报错提示语 + style: { width: "200px" }, + }, + { + type: "radio",//选择题 + title: "radio1",//label + options: ["option1", "option2", "option3"],//选项 + message: "please select one option", + }, + { + type: "textarea",//长文本输入框 + title: "textarea1", + placeholder: "text area placeholder1",//文本框提示语 + message: "please input the text area", + style: { width: "400px" }, + rows: 4,//行数 + } + ] + } +} +``` -The page will reload when you make changes.\ -You may also see any lint errors in the console. +答案提交 -### `npm test` +- methods:post -Launches the test runner in the interactive watch mode.\ -See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. +- url: /api/formsubmit/{router} -### `npm run build` +- post格式 -Builds the app for production to the `build` folder.\ -It correctly bundles React in production mode and optimizes the build for the best performance. + ```json + { + "title":value, //title是之前题目生成时传的title + "title":value, //value根据题目类型而定 可能是string number boolean + "title":value, + } + ``` -The build is minified and the filenames include the hashes.\ -Your app is ready to be deployed! + ## TODO -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. + 增加图片上传组件 -### `npm run eject` - -**Note: this is a one-way operation. Once you `eject`, you can't go back!** - -If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. - -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. - -You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. - -## Learn More - -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). - -To learn React, check out the [React documentation](https://reactjs.org/). - -### Code Splitting - -This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) - -### Analyzing the Bundle Size - -This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) - -### Making a Progressive Web App - -This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) - -### Advanced Configuration - -This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) - -### Deployment - -This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) - -### `npm run build` fails to minify - -This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) + diff --git a/src/Inputsmall.js b/src/Inputsmall.js deleted file mode 100644 index 37dd07b..0000000 --- a/src/Inputsmall.js +++ /dev/null @@ -1,25 +0,0 @@ -import { Input } from "antd"; -import React, { Component } from "react"; -class Inputsmall extends Component { - constructor(props) { - super(props); - this.state = { - describe: "#", - placeholder: "请输入你的名字", - }; - } - render() { - return ( -