详情小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
2.1 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <template>
  2. <view>
  3. <!-- <view class="content"> -->
  4. <!-- float 方案 -->
  5. <!-- <view class="item" :class="{'max-item': item == 0}" v-for="item in 6">{{ item + 1 }}</view> -->
  6. <!-- flex 方案 -->
  7. <!-- <view class="lf-flex-wrap">
  8. <view class="flex"
  9. :style="{order: item + 1}"
  10. :class="{'flex-max': item == 0}"
  11. v-for="item in 6"
  12. >{{ item + 1 }}</view>
  13. </view> -->
  14. <!-- </view> -->
  15. <!-- <div class="box-wrapper">
  16. <div style="margin-top:0px" class="box"></div>
  17. <div class="box spe"></div>
  18. <div class="box spe"></div>
  19. <div class="box spe"></div>
  20. <div class="box spe"></div>
  21. <div class="box"></div>
  22. <div class="box"></div>
  23. <div class="box spe"></div>
  24. <div class="box spe"></div>
  25. </div> -->
  26. <lf-upload-image></lf-upload-image>
  27. <drag />
  28. </view>
  29. </template>
  30. <style>
  31. page{
  32. background-color: #F6F6F6;
  33. }
  34. </style>
  35. <script>
  36. import lfUploadImage from "@/components/lf-uploadImage/lf-uploadImage.vue"
  37. import drag from './drag.vue';
  38. export default {
  39. components: { lfUploadImage, drag },
  40. data(){
  41. return {
  42. }
  43. },
  44. onLoad(){
  45. },
  46. methods: {
  47. }
  48. }
  49. </script>
  50. <style lang="scss" scoped="scoped">
  51. .box{
  52. height: 123px;
  53. padding: 1em;
  54. margin-top: 1em;
  55. -moz-page-break-inside: avoid;
  56. -webkit-column-break-inside: avoid;
  57. break-inside: avoid;
  58. border: 1px solid #000;
  59. background: #909090;
  60. }
  61. .spe{
  62. height: 225px;
  63. }
  64. .box-wrapper{
  65. -moz-column-count:4; /* Firefox */
  66. -webkit-column-count:4; /* Safari 和 Chrome */
  67. column-count:4;
  68. -moz-column-gap: 1em;
  69. -webkit-column-gap: 1em;
  70. column-gap: 1em;
  71. }
  72. .content{
  73. width: 750rpx;
  74. height: max-content;
  75. background-color: #FFFFFF;
  76. box-sizing: border-box;
  77. padding: 27rpx;
  78. overflow: hidden;
  79. .flex{
  80. width: 222rpx;
  81. height: 222rpx;
  82. background-color: #DD6161;
  83. margin: 5rpx;
  84. }
  85. .flex-max{
  86. width: 454rpx;
  87. height: 454rpx;
  88. }
  89. /* float
  90. .item{
  91. width: 222rpx;
  92. height: 222rpx;
  93. background-color: #DD6161;
  94. float: left;
  95. margin: 5rpx;
  96. }
  97. .max-item{
  98. width: 454rpx;
  99. height: 453rpx;
  100. }
  101. */
  102. }
  103. </style>