效果图(可选择某个省份下的全部市,或某个市下面的全部区/县)
代码
<el-cascader
:props="props"
@change="locationsChange"
placeholder="省/市/区"
size="small"
v-model="locationsData"
clearable
></el-cascader>
<script>
// import { getComProvince, getComCity, getComDistrict } from "@/service/common";
export default {
data() {
return {
locationsData: [],
props: {
lazy: true,
async lazyLoad(node,