You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17602169347 372c5bb485
初始化
1 year ago
..
components/uni-data-checkbox 初始化 1 year ago
changelog.md 初始化 1 year ago
package.json 初始化 1 year ago
readme.md 初始化 1 year ago

readme.md

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

DataCheckbox 数据驱动的单选复选框

组件名uni-data-checkbox 代码块: uDataCheckbox

本组件是基于uni-app基础组件checkbox的封装。本组件要解决问题包括

  1. 数据绑定型组件给本组件绑定一个data会自动渲染一组候选内容。再以往开发者需要编写不少代码实现类似功能
  2. 自动的表单校验组件绑定了data且符合uni-forms组件的表单校验规范,搭配使用会自动实现表单校验
  3. 本组件合并了单选多选
  4. 本组件有若干风格选择如普通的单选多选框、并列button风格、tag风格。开发者可以快速选择需要的风格。但作为一个封装组件样式代码虽然不用自己写了却会牺牲一定的样式自定义性

在uniCloud开发中DB Schema中配置了enum枚举等类型后在web控制台的自动生成表单功能中,会自动生成uni-data-checkbox组件并绑定好data

查看文档

如使用过程中有任何问题或者您对uni-ui有一些好的建议欢迎加入 uni-ui 交流群871950839