test.vue 508 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <view>
  3. <view @click="click">hello wold</view>
  4. <uOpenPic :newValue="showOpenPic" @closeOpenPic="closeOpenPic"></uOpenPic>
  5. </view>
  6. </template>
  7. <script>
  8. import uOpenPic from '@/components/page-component/goods/u-open-pic.vue';
  9. export default {
  10. components: {
  11. uOpenPic
  12. },
  13. data() {
  14. return {
  15. showOpenPic:false
  16. };
  17. },
  18. methods:{
  19. click(){
  20. this.showOpenPic=true;
  21. },
  22. closeOpenPic(e){
  23. this.showOpenPic=e;
  24. }
  25. }
  26. }
  27. </script>
  28. <style lang="scss">
  29. </style>