feat(uniapp): 新增辅助空白/辅助线/富文本楼层渲染

This commit is contained in:
pikachu1995@126.com
2026-10-12 10:26:00 +08:00
parent a32f6d2313
commit fb10038547
6 changed files with 1005 additions and 925 deletions

View File

@@ -0,0 +1,21 @@
<template>
<view class="tpl-line" :style="wrapperStyle">
<view :style="lineStyle"></view>
</view>
</template>
<script setup lang="ts">
import { computed } from "vue";
const props = defineProps<{ res: any }>();
const wrapperStyle = computed(() => ({
background: props.res?.bgColor || "#FFFFFF",
padding: `0 ${props.res?.paddingX ?? 0}rpx`,
marginBottom: `${props.res?.pageGap ?? 10}rpx`,
}));
const lineStyle = computed(() => ({
borderTop: `${props.res?.lineHeight ?? 1}rpx ${props.res?.lineStyle || "dashed"} ${props.res?.lineColor || "#979797"}`,
}));
</script>