[英]How do I dynamically reflect the country code & flag on UI in vue-tel-input
I'm receiving the country code from the back-end and want to show the same in the vue-tel-input form.我正在从后端接收国家代码,并希望在 vue-tel-input 表单中显示相同的代码。
I'm using the below code, but its not working as expected.我正在使用下面的代码,但它没有按预期工作。
<vue-tel-input
:defaultCountry="defaultCountryCode"
:dropdownOptions="{showFlags:true,showDialCodeInSelection:true}"
@country-changed="setCountryCode"
></vue-tel-input>
for props refer: https://iamstevendao.github.io/vue-tel-input/documentation/props.html道具参考: https://iamstevendao.github.io/vue-tel-input/documentation/props.html
I realize I'm late here but this should fix it:我意识到我来晚了,但这应该可以解决:
:key="defaultCountryCode"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.