materialDialog.vue 794 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <u-popup :show="searchVisible" mode="bottom" @close="searchVisible = false">
  3. <view>
  4. <contentBox
  5. warehousingType="1"
  6. @handleCancel="close"
  7. @pick="select"
  8. :chooseList="selectList"
  9. />
  10. </view>
  11. </u-popup>
  12. </template>
  13. <script>
  14. import contentBox from "./contentBox.vue";
  15. export default {
  16. components: { contentBox },
  17. props: {
  18. selectList: {
  19. type: Array,
  20. default: function () {
  21. return [];
  22. },
  23. },
  24. },
  25. data() {
  26. return {
  27. searchVisible: false,
  28. };
  29. },
  30. methods: {
  31. open() {
  32. this.searchVisible = true;
  33. },
  34. close() {
  35. this.searchVisible = false;
  36. },
  37. select(list) {
  38. this.$emit("affirm", list);
  39. this.searchVisible = false;
  40. },
  41. },
  42. };
  43. </script>