We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
正常引入
import { pcTextArr } from 'element-china-area-data'
正常使用
<el-cascader v-model="selectedCascader" :options="pcTextArr" @change="handleChange" />
但是却报类型错误
不能将类型“DataItem[]”分配给类型“CascaderOption[]”。 不能将类型“DataItem”分配给类型“CascaderOption”
相关版本: "element-china-area-data": "^6.0.2", "element-plus": "^2.3.8" "typescript": "^5.1.6", "nuxt": "^3.6.5",
The text was updated successfully, but these errors were encountered:
同样错误,ts适配还有问题
Sorry, something went wrong.
先:options="(pcaTextArr as any[])" 吧,我也没整明白,明明接口一样,为什么不能判等
:options="(pcaTextArr as any[])"
import type { CascaderOption } from 'element-plus/es/components'
No branches or pull requests
正常引入
正常使用
但是却报类型错误
不能将类型“DataItem[]”分配给类型“CascaderOption[]”。
不能将类型“DataItem”分配给类型“CascaderOption”
相关版本:
"element-china-area-data": "^6.0.2",
"element-plus": "^2.3.8"
"typescript": "^5.1.6",
"nuxt": "^3.6.5",
The text was updated successfully, but these errors were encountered: