<!--库位组件--> <template> <view class="" > <view class="" style="background-color: #fff;"> <view class="uni-flex space-between" style="padding: 20rpx;"> <view class="" > <text class="font_xl text_black text_bold">{{locationDetail.code}}</text> </view> <view class=""> <location-status :type="locationDetail.type" ></location-status> </view> </view> <location-detail :dataContent="locationDetail"></location-detail> </view> </view> </template> <script> import locationDetail from '@/mycomponents/location/locationDetail.vue' import locationStatus from '@/mycomponents/location/locationStatus.vue' export default { name: "comlocation", components: { locationDetail, locationStatus, }, data() { return { }; }, // 此处定义传入的数据 props: { locationDetail: { type: Object, value: null } }, methods:{ } } </script> <style scoped lang="scss"> </style>