From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目
---
src/components/DiyEditor/components/mobile/TitleBar/index.vue | 75 +++++++++++++++++++++++++++++++++++++
1 files changed, 75 insertions(+), 0 deletions(-)
diff --git a/src/components/DiyEditor/components/mobile/TitleBar/index.vue b/src/components/DiyEditor/components/mobile/TitleBar/index.vue
new file mode 100644
index 0000000..8c77d62
--- /dev/null
+++ b/src/components/DiyEditor/components/mobile/TitleBar/index.vue
@@ -0,0 +1,75 @@
+<template>
+ <div class="title-bar" :style="{ height: `${property.height}px` }">
+ <el-image v-if="property.bgImgUrl" :src="property.bgImgUrl" fit="cover" class="w-full" />
+ <div class="absolute left-0 top-0 w-full h-full flex flex-col justify-center">
+ <!-- 鏍囬 -->
+ <div
+ :style="{
+ fontSize: `${property.titleSize}px`,
+ fontWeight: property.titleWeight,
+ color: property.titleColor,
+ textAlign: property.textAlign,
+ marginLeft: `${property.marginLeft}px`,
+ marginBottom: '4px'
+ }"
+ v-if="property.title"
+ >
+ {{ property.title }}
+ </div>
+ <!-- 鍓爣棰� -->
+ <div
+ :style="{
+ fontSize: `${property.descriptionSize}px`,
+ fontWeight: property.descriptionWeight,
+ color: property.descriptionColor,
+ textAlign: property.textAlign,
+ marginLeft: `${property.marginLeft}px`
+ }"
+ v-if="property.description"
+ >
+ {{ property.description }}
+ </div>
+ </div>
+ <!-- 鏇村 -->
+ <div
+ class="more"
+ v-show="property.more.show"
+ :style="{
+ color: property.descriptionColor
+ }"
+ >
+ <span v-if="property.more.type !== 'icon'"> {{ property.more.text }} </span>
+ <Icon icon="ep:arrow-right" v-if="property.more.type !== 'text'" />
+ </div>
+ </div>
+</template>
+<script setup lang="ts">
+import { TitleBarProperty } from './config'
+
+/** 鏍囬鏍� */
+defineOptions({ name: 'TitleBar' })
+
+defineProps<{ property: TitleBarProperty }>()
+</script>
+<style scoped lang="scss">
+.title-bar {
+ position: relative;
+ width: 100%;
+ min-height: 20px;
+ box-sizing: border-box;
+
+ /* 鏇村 */
+ .more {
+ position: absolute;
+ top: 0;
+ right: 8px;
+ bottom: 0;
+ display: flex;
+ margin: auto;
+ font-size: 10px;
+ color: #969799;
+ align-items: center;
+ justify-content: center;
+ }
+}
+</style>
--
Gitblit v1.8.0