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