实现省市区选择器
<el-form-item label="公墓地址" prop="address">
<el-cascader v-model="form.address" :options="areaOptions"placeholder="行政区划"
:props="{value:'label'}">
<template #default="{ data }">
<span>{{ data.label }}</span>
</template>
</el-cascader>
</el-form-item>
<el-form-item prop="detailedAddress" label-width="0">
<el-input v-model="form.detailedAddress" placeholder="请输入详细地址" style="width: 100%"/>
</el-form-item>
<script>
import areaOptions from "@/assets/data/shengShiQuData";
</script>
省市区文件链接-shengShiQuData
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/35b1256f83ad84895dd94f319e0a34ba.png)