index.vue 763 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <app-modal class="app-trade" direction="right" :show="showModal">
  3. <template #header>
  4. <app-navbar title="挂牌求购" @back="closed" />
  5. </template>
  6. <AddressEdit show-postal show-delete show-set-default show-search-result
  7. :area-columns-placeholder="['请选择', '请选择', '请选择']" />
  8. </app-modal>
  9. </template>
  10. <script lang="ts" setup>
  11. import { ref } from 'vue'
  12. import { AddressEdit } from 'vant'
  13. import AppModal from '@/components/base/modal/index.vue'
  14. const showModal = ref(true);
  15. // 关闭弹窗
  16. const closed = () => {
  17. showModal.value = false;
  18. }
  19. // 暴露组件属性给父组件调用
  20. defineExpose({
  21. closed,
  22. })
  23. </script>
  24. <style lang="less">
  25. @import './index.less';
  26. </style>