<!-- template中的代码 -->
<a-select
style="width: 100%"
v-model="formData.channelId"
:getPopupContainer="trigger => trigger.parentNode"
:placeholder="i18nRender('form.selectPlaceholder') + i18nRender('newsapp.config.tabbarTable.sourceChannel')"
@change="channelChange"
>
<a-select-option v-for="item in channels" :key="item.uuid" :value="item.uuid" :channel="item">
{{ item.name }}
</a-select-option>
</a-select>
<-- methods 中方法 -->
// 单选
channelChange(value, option) {
console.log(option);
this.formData.channelId = value;
this.selectedChannel = option.data.attrs.channel;
}