riku
2025-09-20 0796eebe3520fafb0ac5d36ee584af81506d7e9c
src/components/search-option/FYOptionLocation.vue
@@ -1,6 +1,7 @@
<template>
  <el-form-item :label="placeholder" :prop="prop">
    <el-cascader
      v-bind="$attrs"
      :model-value="formatedValue"
      @change="handleChange"
      :options="locations"
@@ -43,7 +44,7 @@
      default: '_locations'
    }
  },
  emits: ['update:value'],
  emits: ['update:value', 'change'],
  data() {
    return {
      locations: enumLocation(this.allOption, this.level),
@@ -68,6 +69,7 @@
  methods: {
    handleChange(value) {
      this.$emit('update:value', this.optionFormat(value));
      this.$emit('change', this.optionFormat(value));
    },
    /**
     * 地区选项结果格式化