根据uniapp调整工程结构
This commit is contained in:
28
components/AiGap.vue
Normal file
28
components/AiGap.vue
Normal file
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<section class="AiGap" :style="{height,width}"/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "AiGap",
|
||||
props: {
|
||||
h: {default: 30},
|
||||
w: {default: '100%'}
|
||||
},
|
||||
computed: {
|
||||
height() {
|
||||
let {h} = this
|
||||
return /\d/.test(h) ? `${h}rpx` : h
|
||||
},
|
||||
width() {
|
||||
let {w} = this
|
||||
return /\d/.test(w) ? `${w}rpx` : w
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AiGap {
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user