In non-string templates,it is necessary to use h-select.
For the resolution of the object array, the system uses key, title by default. Two parameter names can be modified through global configuration. For details, see
Note: If datas is passed with{ 1:'a', 2:'b' }this number key, the selected key value will be converted to String. It is recommended to use the[{ key: 1, title: 'a' }]object data mode.
DefineclassName parameter.
Up to 2 selected
Hey UI will provide a data dictionary system call, and built-in dictMappingmethods to display. For details, go to
| Property | Description | Type | Optional | Default |
|---|---|---|---|---|
| multiple | multiple | Boolean | - | false |
| type | The format of the data | String | key, object | key |
| datas | Data Dictionary | Array,Object | - | - |
| dict | Call the configured dictionary library. For details, please go to |
String | ||
| limit | Limit how many can only be selected | Number | - | - |
| nullOption | Is there a "Please select" option | Boolean | - | true |
| nullOptionText | "Please select" text option | String | - | 请选择 |
| filterable | filterable | Boolean | - | false |
| autosize | Whether to adapt the width according to the text | Boolean | - | false |
| render | Dropdown menu display customization | Function | - | - |
| placeholder | Show the default prompt | String | - | please choose |
| equalWidth | Whether the width of the dropdown is consistent with the input box | Boolean | - | true |
| className | Custom className | String | - | |
| emptyContent | No prompt for search value | String | - | no results found |
| keyName | Key field name for data | String | - | config dict.keyName |
| titleName | title field name for data | String | - | config dict.titleName |