赞
踩
npm install element-china-area-data -S
import {regionData} from 'element-china-area-data'
<template> <div> <el-cascader :options="options" @change="handleChange" v-model="selectedOptions" placeholder="请选择地址" > </el-cascader> <el-input v-model="longitude" ></el-input> </div> </template> <script> import {regionData} from 'element-china-area-data' export default { name: 'App', components: {}, data() { return { options: regionData, selectedOptions:[], } }, created() { }, mounted() { console.log(regionData, "-------") }, methods: { handleChange(){} } } </script>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。