<group>
<x-address title="title" v-model="value"></x-address>
</group>
import { XAddress } from 'vux'
// you can import built-in data
import { XAddress, ChinaAddressV3Data } from 'vux'
// if you need older data
import { XAddress, ChinaAddressV1Data } from 'vux'
you can view source data at src/datas.
x-address
should be used in Group
API
Props
name | type | default | description | required version |
raw-value | boolean | false | if the initial value is string value instead of id value | -- |
title | string | label text | -- | |
value | array | form value, use v-model for binding | -- | |
list | array | address data | -- | |
inline-desc | string | description text below label | -- | |
placeholder | string | placeholder | -- | |
hide-district | boolean | false | if hide district column | -- |
value-text-align | string | right | align setting of value | -- |
popup-style | object | popup style | v2.5.2 | |
show | boolean | popup show (supports the .sync modifier next) | v2.5.8 | |
disabled | boolean | whether disabled selecting | v2.9.0 |
Events
name | params | description | required version |
@on-hide | -- | emits when being closed | -- |
@on-show | -- | emits when being open | -- |
@on-shadow-change | (Array ids, Array names) | emits when picker value is changed | v2.5.6 |
Slots
name | description | required version |
title | title slot | v2.3.8 |
Changelog
Releases
- v2.9.0 [feature] add prop:disabled #2641
- v2.8.0 [change] remove empty root div #2371
- v2.7.0 [fix] fix [email protected] scope issue #2076
- v2.7.0 [feature] add prop:popup-title(use component:popup-header) #1866
- v2.6.2 [fix] update address data #2000
- v2.5.9 [feature] prop:show supports the .sync modifier
- v2.5.8 [feature] Add prop:show to control visibility
- v2.5.6 [feature] Support event:on-shadow-change #1778
- v2.5.2 [feature] Add prop:popup-style #1656
- v2.3.8 [feature] Add slot:title #1389
- v2.2.2 [feature] Support setting value by labels(beta)
- v2.2.1-rc.6 [feature] Support prop:display-format
- v2.2.1-rc.3 [feature] Support prop:confirm-text and prop:cancel-text. #1233
- v2.2.0 [enhance] Upgrade datas #1101
- v2.1.1-rc.12 [enhance] Simpify Address data #1101
- v2.1.1-rc.7 [enhance] Support PC mouse drag #1039 @michael829
- v2.1.0-rc.49 [feature] support `value-text-align` #921 @linhaobin
- v2.1.0-rc.49 [fix] fix `label` styles not conform to `group` settings