From 61ecba7dc989290bb08ee329a3721505df36d6a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BF=97=E5=9B=BD?= <854933521@qq.com> Date: Tue, 29 Oct 2024 13:45:32 +0800 Subject: [PATCH] =?UTF-8?q?mycomponents/common=20=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=208/8-10/25?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/common/comMessage.vue | 32 ++++++++++++++++++-------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/src/mycomponents/common/comMessage.vue b/src/mycomponents/common/comMessage.vue index 75d4640c..ff095403 100644 --- a/src/mycomponents/common/comMessage.vue +++ b/src/mycomponents/common/comMessage.vue @@ -8,15 +8,21 @@ - - - {{content}} - - - + + + + + {{content}} + + + + + + + - + {{ cancelText }} @@ -61,7 +67,7 @@ const seconds = ref(0) const success = ref(() => {}) const version = ref('') const modal = ref(null) -const textColor = ref('#000') +const textColor = ref('') const count = ref(0) // onMounted(() => { // const systemInfo = uni.getSystemInfoSync() @@ -405,7 +411,7 @@ const showModal = (data) => { if (data.textColor) { textColor.value = data.textColor } else { - textColor.value = '#000' + textColor.value = '' } if (data.showConfirmButton === false || data.showConfirmButton === true) { showConfirmButton.value = data.showConfirmButton @@ -491,6 +497,7 @@ defineExpose({ display: flex; //弹性布局 flex-direction: column; //垂直排列 align-items: center; //子元素居中 + margin: 8rpx; // background-image: url() } @@ -542,4 +549,11 @@ defineExpose({ .def_text { color: $uni-color-primary; } +.text_content{ + padding: 10rpx; + font-size: 32rpx; + text-align: center; + word-break: break-all; + white-space: normal; +}