|
@@ -15,8 +15,9 @@
|
|
|
/>
|
|
/>
|
|
|
<span class="whitespace-pre! z-2" :style="titleTextStyle">{{ resolvedTitle.text }}</span>
|
|
<span class="whitespace-pre! z-2" :style="titleTextStyle">{{ resolvedTitle.text }}</span>
|
|
|
<span
|
|
<span
|
|
|
|
|
+ v-if="props.closebtn"
|
|
|
:style="styleMap?.titleButtonStyle"
|
|
:style="styleMap?.titleButtonStyle"
|
|
|
- class="bg-#2195f6 z-2 shadow-[0_4px_0_#cccccc] text-white w-40px h-30px rounded-10px relative grid place-items-center"
|
|
|
|
|
|
|
+ class="bg-#2195f6 z-2 shadow-[0_4px_0_#cccccc] text-white w-43px h-21px rounded-13px relative grid place-items-center"
|
|
|
>
|
|
>
|
|
|
<ImageBg
|
|
<ImageBg
|
|
|
:src="styleMap?.titleButtonStyle?.imageSrc"
|
|
:src="styleMap?.titleButtonStyle?.imageSrc"
|
|
@@ -46,19 +47,19 @@
|
|
|
<div class="h-40px shrink-0 flex items-center justify-around z-2">
|
|
<div class="h-40px shrink-0 flex items-center justify-around z-2">
|
|
|
<div
|
|
<div
|
|
|
:style="{
|
|
:style="{
|
|
|
- ...styleMap?.bottomButtonStyle,
|
|
|
|
|
- width: btnWidth + 'px',
|
|
|
|
|
- height: btnHeight + 'px'
|
|
|
|
|
|
|
+ ...styleMap?.bottomButtonStyle
|
|
|
}"
|
|
}"
|
|
|
v-for="(btn, index) in btns"
|
|
v-for="(btn, index) in btns"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
- class="relative grid place-items-center shadow-[0_4px_0_#cccccc] whitespace-pre!"
|
|
|
|
|
|
|
+ class="relative grid place-items-center shadow-[0_4px_0_#cccccc] whitespace-pre! h-21px rounded-13px"
|
|
|
>
|
|
>
|
|
|
<ImageBg
|
|
<ImageBg
|
|
|
:src="styleMap?.bottomButtonStyle?.imageSrc"
|
|
:src="styleMap?.bottomButtonStyle?.imageSrc"
|
|
|
:imageStyle="styleMap?.bottomButtonStyle?.imageStyle"
|
|
:imageStyle="styleMap?.bottomButtonStyle?.imageStyle"
|
|
|
/>
|
|
/>
|
|
|
- <span class="z-2" :style="getButtonTextStyle(btn.text)">{{ resolveText(btn.text).text }}</span>
|
|
|
|
|
|
|
+ <span class="z-2 px-12px" :style="getButtonTextStyle(btn.text)">{{
|
|
|
|
|
+ resolveText(btn.text).text
|
|
|
|
|
+ }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -82,9 +83,7 @@ const props = defineProps<{
|
|
|
part: string
|
|
part: string
|
|
|
title: string
|
|
title: string
|
|
|
content: string
|
|
content: string
|
|
|
- // closeBtn: boolean
|
|
|
|
|
- btnWidth: number
|
|
|
|
|
- btnHeight: number
|
|
|
|
|
|
|
+ closebtn: boolean
|
|
|
btns: { text: string }[]
|
|
btns: { text: string }[]
|
|
|
id?: string
|
|
id?: string
|
|
|
fixedHeight?: boolean
|
|
fixedHeight?: boolean
|
|
@@ -100,8 +99,14 @@ const textBoxHeight = ref(0)
|
|
|
const textHeight = ref(0)
|
|
const textHeight = ref(0)
|
|
|
const resolvedTitle = computed(() => resolveText(props.title))
|
|
const resolvedTitle = computed(() => resolveText(props.title))
|
|
|
const resolvedContent = computed(() => resolveText(props.content))
|
|
const resolvedContent = computed(() => resolveText(props.content))
|
|
|
-const titleTextStyle = getTextStyle(() => undefined, () => props.title)
|
|
|
|
|
-const contentTextStyle = getTextStyle(() => undefined, () => props.content)
|
|
|
|
|
|
|
+const titleTextStyle = getTextStyle(
|
|
|
|
|
+ () => undefined,
|
|
|
|
|
+ () => props.title
|
|
|
|
|
+)
|
|
|
|
|
+const contentTextStyle = getTextStyle(
|
|
|
|
|
+ () => undefined,
|
|
|
|
|
+ () => props.content
|
|
|
|
|
+)
|
|
|
|
|
|
|
|
useResizeObserver(txtBoxRef, (entries) => {
|
|
useResizeObserver(txtBoxRef, (entries) => {
|
|
|
const entry = entries[0]
|
|
const entry = entries[0]
|