| 
				
					 | 
			2 سال پیش | |
|---|---|---|
| .. | ||
| components | 2 سال پیش | |
| changelog.md | 2 سال پیش | |
| package.json | 2 سال پیش | |
| readme.md | 2 سال پیش | |
组件名:uni-combox 代码块:
uCombox
组合框组件。
暂不支持nvue
本组件符合easycom规范,HBuilderX 2.5.5起,只需将本组件导入项目,在页面template中即可直接使用,无需在页面中import和注册components。
如需通过npm方式使用uni-ui组件,另见文档:https://ext.dcloud.net.cn/plugin?id=55
在 template 中使用组件
<uni-combox label="所在城市" :candidates="candidates" placeholder="请选择所在城市" v-model="city"></uni-combox>
| 属性名 | 类型 | 默认值 | 说明 | 
|---|---|---|---|
| label | String | - | 标签文字 | 
| value | String | - | combox的值 | 
| labelWidth | String | auto | 标签宽度,有单位字符串,如:'100px' | 
| placeholder | String | - | 输入框占位符 | 
| candidates | Array/String | [] | 候选字段 | 
| emptyTips | String | 无匹配项 | 无匹配项时的提示语 | 
| 事件称名 | 说明 | 返回值 | 
|---|---|---|
| @input | combox输入事件 | 返回combox值 | 
点击查看:https://hellouniapp.dcloud.net.cn/pages/extUI/combox/combox