XAddress
Install

Install

  <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

nametypedefaultdescriptionrequired version
raw-valuebooleanfalseif the initial value is string value instead of id value--
titlestringlabel text--
valuearrayform value, use v-model for binding--
listarrayaddress data--
inline-descstringdescription text below label--
placeholderstringplaceholder--
hide-districtbooleanfalseif hide district column--
value-text-alignstringrightalign setting of value--
popup-styleobjectpopup stylev2.5.2
showbooleanpopup show (supports the .sync modifier next)v2.5.8
disabledbooleanwhether disabled selectingv2.9.0

Events

nameparamsdescriptionrequired 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 changedv2.5.6

Slots

namedescriptionrequired version
titletitle slotv2.3.8


Contributors

Contributors

Total commits quantity: 46,Total contributors quantity: 3

airyland万刚Season

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