新增辅助空白

master
于肖磊 2024-09-10 09:39:53 +08:00
parent c09f13190f
commit 7d023c9af7
1 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,41 @@
<template>
<view :style="style_container">
<view :style="style"></view>
</view>
</template>
<script>
const app = getApp();
import { common_styles_computer } from '@/common/js/common/common.js';
export default {
props: {
value: {
type: Object,
default: () => {
return {};
},
},
},
data() {
return {
style_container: '',
style: ''
};
},
created() {
const { height } = this.value.content;
const { line_color, common_style} = this.value.style;
this.style = `height: ${height}px;background: ${line_color || 'transparent'};`;
this.style_container = common_styles_computer(common_style);
},
methods: {
},
};
</script>
<style scoped lang="scss">
.right-0 {
top: 50%;
transform: translateY(-50%);
}
</style>