初始化仓库
This commit is contained in:
49
components/trigonometry/trigonometry.vue
Normal file
49
components/trigonometry/trigonometry.vue
Normal file
@ -0,0 +1,49 @@
|
||||
<template>
|
||||
<view :class="'trigonometry ' + (direction === 'up' ? 'up' : '') + ' ' + (size === 'small' ? 'small' : '')" :style="'color:' + color + ';opacity: ' + opacity"></view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
|
||||
components: {},
|
||||
props: {
|
||||
color: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
direction: {
|
||||
type: String
|
||||
},
|
||||
size: {
|
||||
type: String
|
||||
},
|
||||
opacity: {
|
||||
type: String,
|
||||
default: '0.8'
|
||||
}
|
||||
},
|
||||
methods: {}
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
.trigonometry {
|
||||
border-color: transparent transparent currentcolor currentcolor;
|
||||
border-style: solid;
|
||||
border-width: 2px;
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
opacity: .8;
|
||||
margin: -2px 10rpx 0;
|
||||
}
|
||||
|
||||
.up {
|
||||
margin-top: 3rpx;
|
||||
-webkit-transform: rotate(135deg);
|
||||
transform: rotate(135deg);
|
||||
}
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user