feat: 删除View和Text引用

This commit is contained in:
2023-07-13 16:26:03 +08:00
parent 3d1cf71ff1
commit b6e30a9c20
6 changed files with 45 additions and 43 deletions

View File

@ -8,19 +8,19 @@
*
-->
<template>
<View v-show="modelValue" h-100vh w-full w-750rpx relative bg="#818181" overflow-hidden z-1000>
<View class="th-prompt" w-400rpx text-center rounded-16rpx absolute top="1/3" left="1/2" ml="-200rpx" right-0 bg-white z-1001>
<View py-32rpx>
<View color="#3a3a3a" fs-17 font-500>
<view v-show="modelValue" h-100vh w-full w-750rpx relative bg="#818181" overflow-hidden z-1000>
<view class="th-prompt" w-400rpx text-center rounded-16rpx absolute top="1/3" left="1/2" ml="-200rpx" right-0 bg-white z-1001>
<view py-32rpx>
<view color="#3a3a3a" fs-17 font-500>
{{ title }}
</View>
<View v-if="title && content" h-16rpx />
<View color="#6a6a6a" fs-13 font-400>
</view>
<view v-if="title && content" h-16rpx />
<view color="#6a6a6a" fs-13 font-400>
{{ content }}
</View>
</View>
<View flex fs-15 border-t-1rpx border-t-solid border-t="#DCDCDC">
<View
</view>
</view>
<view flex fs-15 border-t-1rpx border-t-solid border-t="#DCDCDC">
<view
v-show="showConfirm"
class="rounded-lb-16rpx"
active="bg-#f2f7ff"
@ -35,9 +35,9 @@
@click="confirm"
>
{{ confirmText }}
</View>
<View v-show="showConfirm && showCancel" w-1rpx bg="#dcdcdc" />
<View
</view>
<view v-show="showConfirm && showCancel" w-1rpx bg="#dcdcdc" />
<view
v-show="showCancel"
class="rounded-rb-16rpx"
active="bg-#f2f7ff"
@ -52,10 +52,10 @@
@click="cancel"
>
{{ cancelText }}
</View>
</View>
</View>
</View>
</view>
</view>
</view>
</view>
</template>
<script lang="ts" setup name="Confirm">