Showing
1 changed file
with
5 additions
and
2 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-08-30 14:32:11 | 2 | * @Date: 2022-08-30 14:32:11 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-02-10 10:06:14 | 4 | + * @LastEditTime: 2023-02-14 14:37:45 |
| 5 | * @FilePath: /data-table/src/components/AreaPickerField/index.vue | 5 | * @FilePath: /data-table/src/components/AreaPickerField/index.vue |
| 6 | * @Description: 省市区选择控件 | 6 | * @Description: 省市区选择控件 |
| 7 | --> | 7 | --> |
| ... | @@ -17,9 +17,10 @@ | ... | @@ -17,9 +17,10 @@ |
| 17 | placeholder="请选择省市区" | 17 | placeholder="请选择省市区" |
| 18 | :rules="item.rules" | 18 | :rules="item.rules" |
| 19 | @click="showPicker = true" | 19 | @click="showPicker = true" |
| 20 | - :border="true" | 20 | + :border="show_address ? true : false" |
| 21 | /> | 21 | /> |
| 22 | <van-field | 22 | <van-field |
| 23 | + v-if="show_address" | ||
| 23 | name="ignore" | 24 | name="ignore" |
| 24 | v-model="address" | 25 | v-model="address" |
| 25 | placeholder="请填写详细地址" | 26 | placeholder="请填写详细地址" |
| ... | @@ -61,6 +62,8 @@ const HideShow = computed(() => { | ... | @@ -61,6 +62,8 @@ const HideShow = computed(() => { |
| 61 | const emit = defineEmits(["active"]); | 62 | const emit = defineEmits(["active"]); |
| 62 | const show_empty = ref(false); | 63 | const show_empty = ref(false); |
| 63 | 64 | ||
| 65 | +const show_address = ref(!props.item.component_props.no_street) | ||
| 66 | + | ||
| 64 | const address = ref(""); | 67 | const address = ref(""); |
| 65 | const city_code = ref(""); | 68 | const city_code = ref(""); |
| 66 | const showPicker = ref(false); | 69 | const showPicker = ref(false); | ... | ... |
-
Please register or login to post a comment