This commit is contained in:
harriet
2020-02-05 11:05:03 +08:00
parent 27e393106c
commit 34755ab398
6 changed files with 1416 additions and 1367 deletions

View File

@@ -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);
}
}
};