<template>
  <div v-if="addressData">
    <el-select clearable v-model="value.province">
      <el-option label="不指定" :value="''"></el-option>
      <el-option v-for="(v,k) in addressData" :value="k" :key="k">{{k}}</el-option>
    </el-select>
    <el-select clearable v-model="value.city">
      <el-option label="不指定" :value="''"></el-option>
      <el-option v-for="(v,k) in addressData[value.province]" :value="k" :key="k"></el-option>
    </el-select>
  </div>
</template>

<script>
export default {
  name: 'ZFormParamAddress',
  props: {
    addressData: {
      type: Object
    },
    value: {
      type: Object
    }
  }
}
</script>

<style scoped>

</style>
