cyy-vue-material 1.0.35 → 1.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyy-vue-material",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -2,42 +2,17 @@
2
2
  <div>
3
3
  <div v-if="!props.selectImg.length" class="holder">请上传图片</div>
4
4
  <template v-else>
5
- 轮播图
6
- <!-- <div
7
- v-if="props.showStyle === 0"
8
- class="golds"
9
- :style="{ backgroundColor: props.backgroundColor, paddingTop: props.paddingTop + 'px', paddingBottom: props.paddingBottom + 'px' }"
10
- >
11
- <div class="golds-item" v-for="(item, index) in resultArr" :key="index" @click="linkClick(item)">
12
- <img
13
- :class="[props.photoSize === 1 ? 'photoSizeBig' : 'photoSizeSmall']"
14
- :style="{ borderRadius: props.photoCorner + '%' }"
15
- :lazy-load="true"
16
- :src="item['imgUrl']"
17
- />
18
- <div :style="{ color: props.fontColor }">{{ item.name }}</div>
5
+ <div class="swiperBox">
6
+ <div class="swiper">
7
+ <swiper interval="4000" class="swiper-content" circular="true" autoplay="true" duration="1500" @change="setimg">
8
+ <block v-for="(item, index) in resultArr" :key="index">
9
+ <swiper-item class="img-item">
10
+ <img :lazy-load="true" :src="item['imgUrl']" @click="linkClick(item)" />
11
+ </swiper-item>
12
+ </block>
13
+ </swiper>
19
14
  </div>
20
15
  </div>
21
- <div v-if="props.showStyle === 1">
22
- <div class="classify-list" :style="{ paddingTop: props.paddingTop + 'px', paddingBottom: props.paddingBottom + 'px' }">
23
- <div
24
- class="classify-item"
25
- :class="[props.photoSize === 1 ? 'classifyItemBig' : 'classifyItemSmall']"
26
- :style="{ backgroundColor: props.backgroundColor }"
27
- v-for="item in resultArr"
28
- :key="index"
29
- @click="linkClick(item)"
30
- >
31
- <div :class="[props.photoSize === 1 ? 'classifyFontBig' : 'classifyFontSmall']" :style="{ color: props.fontColor }">{{ item.name }}</div>
32
- <img
33
- :class="[props.photoSize === 1 ? 'classifyImgBig' : 'classifyImgSmall']"
34
- :style="{ borderRadius: classifyPhotoCorner(props.photoCorner) + 'px' }"
35
- :lazy-load="true"
36
- :src="item['imgUrl']"
37
- />
38
- </div>
39
- </div>
40
- </div> -->
41
16
  </template>
42
17
  </div>
43
18
  </template>
@@ -45,14 +20,9 @@
45
20
  <script>
46
21
  import { isEmpty, isUndefined } from "lodash-es";
47
22
  export default {
48
- name: "cyy-ArsenalPicture",
23
+ name: "cyy-ArsenalCarousel",
49
24
  data() {
50
- return {
51
- imgStyle: {
52
- width: "100%",
53
- boxSizing: "border-box",
54
- },
55
- };
25
+ return {};
56
26
  },
57
27
  props: {
58
28
  props: {
@@ -102,6 +72,32 @@ export default {
102
72
  width: 100%;
103
73
  padding: 10px 0;
104
74
  height: 60px;
105
- background-color: rgb(80, 431, 73);
75
+ background-color: rgb(888, 431, 73);
76
+ }
77
+ .swiperBox {
78
+ width: 375px;
79
+ height: 150px;
80
+ border-radius: 10px;
81
+
82
+ .swiper {
83
+ width: 375px;
84
+ height: 150px;
85
+
86
+ .swiper-content {
87
+ height: 150px;
88
+ width: 100%;
89
+
90
+ .img-item {
91
+ padding: 0 12.5px;
92
+ box-sizing: border-box;
93
+ }
94
+ }
95
+
96
+ img {
97
+ width: 100%;
98
+ height: 100%;
99
+ border-radius: 10px;
100
+ }
101
+ }
106
102
  }
107
103
  </style>