# person-mp-app **Repository Path**: jgmiu/person-mp-app ## Basic Information - **Project Name**: person-mp-app - **Description**: 个人小程序-小程序端 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-18 - **Last Updated**: 2024-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # taro 对应uniapp的东西 ## 配置文件 - app.config.ts - 设置tabbar 整体窗口表现等等等等 - ## ui选型 1. nutui-react: https://nutui.jd.com/h5/react/2x/#/zh-CN/component/input 2. taro-ui: https://taro-ui.jd.com/#/doc/introduction 3. antmjs Vantui: https://antmjs.github.io/vantui/main/#/form 4. taroify: https://taroify.github.io/taroify.com/components/button/ - 这个组件库h5与小程序没有打通 - 目前选择taro-ui,然后代码平台物料也从改平台进行选择。 (xxx)这个taro-ui表单校验太难用了,样式也怪怪的。 比如button按钮太大,full感觉也没啥用。 - 网友推荐使用的, 看起不错。 - taroify这个组件库是vant团队提供的。表单那块跟antd差不多。 ## 动态表单所需组件 1. 输入框 Input InputNumber 2. 选择器 Picker 3. 单选框 Radio 4. 多选框 Checkbox 5. 图片上传 ImagePicker ## 表单校验 由于taro-ui并没有集成表单校验那一套,所以使用react-hook-form进行了表单校验。 需要一个通用的方案,最好代码能够简单