refactor(样式): View Text

This commit is contained in:
2023-07-13 12:31:46 +08:00
parent 69be9b75bd
commit f83c1b348e
10 changed files with 29 additions and 47 deletions

View File

@ -2,7 +2,7 @@
* @Author: peerless_hero peerless_hero@outlook.com
* @Date: 2023-07-08 01:44:46
* @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-07-10 19:07:56
* @LastEditTime: 2023-07-13 12:11:08
* @FilePath: \uni\packages\card-text\index.vue
* @Description:
*
@ -16,20 +16,20 @@
</template>
</slot>
</View>
<View color="#3a3a3a" flex-grow>
</view>
<view color="#3a3a3a" flex-grow>
<slot name="text">
<Text>
<text>
{{ text }}
</Text>
</text>
</slot>
</View>
<View>
</view>
<view>
<View h-48rpx w-128rpx rounded-8rpx border-solid color="#f3a73f" border="#f6ddb8" bg="#fff6e8" border-2rpx fs-24 leh-48 text-center>
试试
</View>
</View>
</View>
</view>
</view>
</view>
</template>
<script lang="ts" setup name="CardText">

View File

@ -10,7 +10,7 @@
<template>
<View fs-30 font-500 leh-42 mx-24rpx mt-24rpx mb-12rpx color="#3A3A3A">
<slot>{{ title }}</slot>
</View>
</view>
</template>
<script lang="ts" setup name="CardTitle">

View File

@ -2,16 +2,16 @@
* @Author: peerless_hero peerless_hero@outlook.com
* @Date: 2023-07-08 01:36:19
* @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-07-13 10:22:18
* @LastEditTime: 2023-07-13 12:06:10
* @FilePath: \uni\packages\card\index.vue
* @Description:
*
-->
<template>
<View class="th-card" bg-white rounded-16rpx m-24rpx max-w-702rpx overflow-hidden>
<view class="th-card" bg-white rounded-16rpx m-24rpx max-w-702rpx overflow-hidden>
<slot />
<View v-if="noCardActions" h-16rpx />
</View>
<view v-if="noCardActions" h-16rpx />
</view>
</template>
<script lang="ts" setup name="Card">

View File

@ -12,7 +12,7 @@
<View rounded-t-48rpx w-750rpx absolute bottom-0 bg-white z-1001>
<View mt-32rpx mb-24rpx mx-48rpx fs-30 font-400>
{{ title }}
</View>
</view>
<View text-center mx-48rpx>
<textarea
v-model="value"
@ -38,9 +38,9 @@
>
{{ confirmText }}
</button>
</View>
</View>
</View>
</view>
</view>
</view>
</template>
<script lang="ts" setup name="Prompt">

View File

@ -8,7 +8,7 @@
*
-->
<template>
<Text
<text
class="th-tag"
:class="className"
text-center
@ -23,7 +23,7 @@
rounded-16rpx
>
&nbsp;&nbsp;&nbsp;{{ text }}&nbsp;&nbsp;&nbsp;
</Text>
</text>
</template>
<script lang="ts" setup name="Tag">