html 須要在標籤上加屬性 labelInValue :html
<a-select labelInValue
placeholder="請選擇市"
v-decorator="['cityCode', validatorRules.cityCode]"
@change="onchangeCity"ide
js 獲取得時候 value.label 便可獲取到了:
onchangeCity(value) {
this.model.cityCode = value.key
this.model.cityName = value.label.replace(/\ /g,"").replace(/\s/g,"")//去掉空格和 \nthis