z-card.vue 358 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <view class="shadow-2 z-card" :style="{width:width+'rpx'}">
  3. <slot></slot>
  4. </view>
  5. </template>
  6. <script>
  7. export default{
  8. name:'z-card',
  9. props:{
  10. width:{
  11. type:String,
  12. default:'690'
  13. }
  14. },
  15. data(){
  16. return{
  17. }
  18. }
  19. }
  20. </script>
  21. <style scoped lang="scss">
  22. .z-card{
  23. margin: 0 auto;
  24. border-radius: 2rpx;
  25. }
  26. </style>