You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
586 B
32 lines
586 B
<template>
|
|
<div>
|
|
<el-cascader
|
|
v-model="value"
|
|
:options="options"
|
|
:props="props"
|
|
@change="changeHandle"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import city from './level.min.json'
|
|
export default {
|
|
name: 'ProvinceCity',
|
|
data() {
|
|
return {
|
|
options: city,
|
|
props: {
|
|
label: 'n',
|
|
value: 'n',
|
|
children: 'd'
|
|
}
|
|
}
|
|
}, methods: {
|
|
changeHandle(val) {
|
|
this.$emit('input', val)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
|