# uni-combox ## Instructions 组件名:uni-combox 代码块: uCombox 点击下载&安装 ### Syntax - 使用 ``(或 ``,当需要包裹子节点时)。 - 遇到平台差异时,建议使用条件编译(`#ifdef / #endif`)显式处理。 #### Properties | 属性名 | 类型 | 默认值 | 说明 | | --- | --- | --- | --- | | label | String | - | 标签文字 | | value | String | - | combox的值 | | labelWidth | String | auto | 标签宽度,有单位字符串,如:'100px' | | placeholder | String | - | 输入框占位符 | | candidates | Array/String | [] | 候选字段 | | emptyTips | String | 无匹配项 | 无匹配项时的提示语 | #### Events | 事件称名 | 说明 | 返回值 | | --- | --- | --- | | @input | combox输入事件 | 返回combox值 | #### Platform Compatibility See official docs for platform support table: `https://uniapp.dcloud.net.cn/component/uniui/uni-combox.html` ### Examples ### Example (Example 1) ```vue ``` ### Example (Example 2) ```html ``` ### Example (Example 3) ```vue ``` ### Example (Example 4) ```vue ``` ### Example (Example 5) ```vue ``` ### Example (Example 6) ```vue ``` Reference: - [Official Documentation](https://uniapp.dcloud.net.cn/component/uniui/uni-combox.html) - [Plugin Marketplace](https://ext.dcloud.net.cn/plugin?name=combox) - [Local Example](examples/uni-ui/uni-combox.vue)