2020-02-03 21:34:20 +08:00
|
|
|
export default {
|
2020-02-05 11:05:03 +08:00
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-02-03 21:34:20 +08:00
|
|
|
};
|