some bug
This commit is contained in:
parent
27e393106c
commit
34755ab398
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "vue-flip-page",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.5",
|
||||
"description": "vue翻页效果插件",
|
||||
"main": "dist/flip.min.js",
|
||||
"scripts": {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -2,50 +2,41 @@
|
|||
<div class="turn-wraper"
|
||||
:style="{width: width+'px', height: height+'px', overflow: active ? 'visible' : 'hidden', zIndex: length - index}">
|
||||
<div class="turn-page-left" :style="{left: '-'+width+'px'}">
|
||||
<div class="turn-page-left-clip" :style="(Object.assign({}, {width: clipSize+'px', height: clipSize+'px'}, styles[3]))">
|
||||
<div class="turn-page-left-clip"
|
||||
:style="(Object.assign({}, {width: clipSize+'px', height: clipSize+'px'}, styles[3]))">
|
||||
<div class="turn-page-left-content"
|
||||
:style="(Object.assign({}, {width: width+'px', height: height+'px'}, styles[1]))">
|
||||
<div class="turn-page-left-inner">
|
||||
<div class="manual-item">
|
||||
<div class="page-count">{{index + 1}} / {{length}}</div>
|
||||
<div class="manual-page">
|
||||
<div class="page-photo">
|
||||
<img :src="item.picture_image">
|
||||
<div class="manual-item">
|
||||
<div class="page-count">{{index + 1}} / {{length}}</div>
|
||||
<div class="manual-page">
|
||||
<div class="page-photo">
|
||||
<img :src="item.picture_image">
|
||||
</div>
|
||||
<!--<div class="page-content page-content-type-1">-->
|
||||
<!--<div class="desc"><h4 class="name">-->
|
||||
<!--小程序组件小程序组件小程序组件小程序组件小程序组件小程序组件</h4>-->
|
||||
<!--<div class="price">¥19800</div> <!––> <!––></div>-->
|
||||
<!--<div class="buy-button">-->
|
||||
<!--<button type="button">查看详情</button>-->
|
||||
<!--</div>-->
|
||||
<!--</div>-->
|
||||
<slot></slot>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="turn-page-left-gradient" :style="(Object.assign({}, {top: ('-' + (height / 2)+'px'), height: (height* 2)+'px'}, styles[4]))"></div>
|
||||
<div class="turn-page-left-gradient"
|
||||
:style="(Object.assign({}, {top: ('-' + (height / 2)+'px'), height: (height* 2)+'px'}, styles[4]))"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="turn-page-right" :style="{width: width+'px', height: height+'px'}">
|
||||
<div class="turn-page-right-gradient" :style="(Object.assign({}, {top: ('-' + (height / 2)+'px'), height: (height* 2)+'px'}, styles[5]))"></div>
|
||||
<div class="turn-page-right-gradient"
|
||||
:style="(Object.assign({}, {top: ('-' + (height / 2)+'px'), height: (height* 2)+'px'}, styles[5]))"></div>
|
||||
|
||||
<div class="turn-page-right-clip" :style="(Object.assign({}, {width: clipSize+'px', height: clipSize+'px'}, styles[2]))">
|
||||
<div class="turn-page-right-content" :style="(Object.assign({}, {width: width+'px', height: height+'px'}, styles[0]))">
|
||||
<div class="manual-item">
|
||||
<div class="page-count">{{index + 1}} / {{length}}</div>
|
||||
<div class="manual-page">
|
||||
<div class="page-photo">
|
||||
<img :src="item.picture_image">
|
||||
<div class="turn-page-right-clip"
|
||||
:style="(Object.assign({}, {width: clipSize+'px', height: clipSize+'px'}, styles[2]))">
|
||||
<div class="turn-page-right-content"
|
||||
:style="(Object.assign({}, {width: width+'px', height: height+'px'}, styles[0]))">
|
||||
<div class="manual-item">
|
||||
<div class="page-count">{{index + 1}} / {{length}}</div>
|
||||
<div class="manual-page">
|
||||
<div class="page-photo">
|
||||
<img :src="item.picture_image">
|
||||
</div>
|
||||
<!--<div class="page-content page-content-type-1">-->
|
||||
<!--<div class="desc"><h4 class="name">-->
|
||||
<!--小程序组件小程序组件小程序组件小程序组件小程序组件小程序组件</h4>-->
|
||||
<!--<div class="price">¥19800</div> <!––> <!––></div>-->
|
||||
<!--<div class="buy-button">-->
|
||||
<!--<button type="button">查看详情</button>-->
|
||||
<!--</div>-->
|
||||
<!--</div>-->
|
||||
<slot></slot>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -55,9 +46,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import turn_page_controller from "./turn_page_controller";
|
||||
import turn_page_controller from "./turn_page_controller";
|
||||
|
||||
export default turn_page_controller;
|
||||
export default turn_page_controller;
|
||||
</script>
|
||||
|
||||
<style lang="scss" rel="stylesheet/scss" scoped>
|
||||
|
|
|
@ -1,36 +1,36 @@
|
|||
export default {
|
||||
props: {
|
||||
item: Object,
|
||||
index: Number,
|
||||
width: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
height: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
length: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
active: { // 翻动效果生效
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
styles: {
|
||||
type: Array,
|
||||
default: () => [{}, {}, {}, {}, {}, {}]
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
computed: {
|
||||
clipSize() {
|
||||
return Math.sqrt(Math.pow(this.width, 2) + Math.pow(this.height, 2), 2);
|
||||
}
|
||||
}
|
||||
props: {
|
||||
item: Object,
|
||||
index: Number,
|
||||
width: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
height: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
length: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
active: { // 翻动效果生效
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
styles: {
|
||||
type: Array,
|
||||
default: () => [{}, {}, {}, {}, {}, {}]
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
computed: {
|
||||
clipSize() {
|
||||
return Math.sqrt(Math.pow(this.width, 2) + Math.pow(this.height, 2), 2);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue