update
This commit is contained in:
@@ -14,11 +14,15 @@ const STATUS = {
|
||||
},
|
||||
};
|
||||
|
||||
const {text, status, tile} = defineProps({
|
||||
const {text, status, tile, textColor} = defineProps({
|
||||
text: {
|
||||
type: String,
|
||||
default: '提示:请在规定时间内,按要求提交回填1。以免影响收益。哈哈哈哈哈哈哈哈哈哈'
|
||||
},
|
||||
textColor: {
|
||||
type: String,
|
||||
default: '#000'
|
||||
},
|
||||
status: {
|
||||
type: String,
|
||||
default: 'error'
|
||||
@@ -52,8 +56,8 @@ onMounted(() => {
|
||||
:style="{alignItems: tile ? 'start' : 'center'}">
|
||||
<image v-if="status==='error'" class="!size-[26rpx] flex-shrink-0" :src="warn"></image>
|
||||
<image v-else class="!size-[26rpx] flex-shrink-0" :src="success"></image>
|
||||
<text v-if="!tile" class="!whitespace-nowrap flex-shrink-0">{{ text }}</text>
|
||||
<text v-else>
|
||||
<text v-if="!tile" class="!whitespace-nowrap flex-shrink-0" :style="{color: textColor}">{{ text }}</text>
|
||||
<text v-else :style="{color: textColor}">
|
||||
{{ text }}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user