Vuejs2 以下哪种格式有效:仅限使用VuePhoneNumberInput的国家/地区?
以下哪种格式有效:仅限使用VuePhoneNumberInput的国家/地区? 我尝试:Vuejs2 以下哪种格式有效:仅限使用VuePhoneNumberInput的国家/地区?,vuejs2,Vuejs2,以下哪种格式有效:仅限使用VuePhoneNumberInput的国家/地区? 我尝试: 谢谢 不使用小写的ISO2国家/地区代码,您需要使用所有caps代码,如: :only-countries="[ 'ES', 'US', 'AF', 'AL' ]" 此外,请验证哪个国家的代码是en,如果您想使用“大不列颠”的国家代码,则需要使用GB [Vue warn]: Error in nextTick: "Error: Key is undefined on item (keyField is '
谢谢 不使用小写的ISO2国家/地区代码,您需要使用所有caps代码,如:
:only-countries="[ 'ES', 'US', 'AF', 'AL' ]"
此外,请验证哪个国家的代码是en
,如果您想使用“大不列颠”的国家代码,则需要使用GB
[Vue warn]: Error in nextTick: "Error: Key is undefined on item (keyField is 'null')"
found in
---> <RecycleScroller>
<CountrySelector>
<MazPhoneNumberInput>
<VuePhoneNumberInput
v-model="profileRow.phone"
@update="onUpdate"
:only-countries="[ ['Afghanistan', 'af', '93'], ['Albania', 'al', '355'] ]"
/>
"vue": "^2.6.11",
"vue-phone-number-input": "^1.1.9",
:only-countries="[ 'ES', 'US', 'AF', 'AL' ]"