riku
2024-10-17 971c7c5993ff475157b0c9ed137998fd39f6c548
src/components/search-option/FYOptionLocation.vue
@@ -21,7 +21,7 @@
      type: Boolean,
      default: true
    },
    // 查询的行政级别,取值1,2,3,4
    // 查询的行政级别,取值1,2,3,4, 5, 6
    level: {
      type: Number,
      default: 4
@@ -38,9 +38,12 @@
      type: Boolean,
      default: true
    },
    prop: String
    prop: {
      type: String,
      default: '_locations'
    }
  },
  emits: ['update:value'],
  emits: ['update:value', 'change'],
  data() {
    return {
      locations: enumLocation(this.allOption, this.level),
@@ -65,6 +68,7 @@
  methods: {
    handleChange(value) {
      this.$emit('update:value', this.optionFormat(value));
      this.$emit('change', this.optionFormat(value));
    },
    /**
     * 地区选项结果格式化