From e0cb82c8dbf83fabc0cab548abc873926366fb75 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 21 五月 2025 17:29:15 +0800 Subject: [PATCH] fix: 修改ui --- packages/components/src/components/Result/ResultWithTips.vue | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/packages/components/src/components/Result/ResultWithTips.vue b/packages/components/src/components/Result/ResultWithTips.vue new file mode 100644 index 0000000..2381c2e --- /dev/null +++ b/packages/components/src/components/Result/ResultWithTips.vue @@ -0,0 +1,35 @@ +<template> + <Result> + <template #remark> + <slot name="remark"> </slot> + </template> + <template #tips> + <slot name="tips"> + <div class="result-wrapper-tips-item title">鍏呭�奸』鐭�</div> + <div class="result-wrapper-tips-item danger">{{ dangerTips }}</div> + <div class="result-wrapper-tips-item warning">{{ warningTips }}</div> + <div class="result-wrapper-tips-item">{{ customerServiceTips }}</div> + </slot> + </template> + </Result> +</template> + +<script setup lang="ts"> +import Result from './Result.vue'; +import { CustomerServiceTips } from '../../constants'; + +defineOptions({ + name: 'ResultWithTips', +}); + +type Props = { + dangerTips?: string; + warningTips?: string; + customerServiceTips?: string; +}; + +const props = withDefaults(defineProps<Props>(), { + warningTips: '濡傛帴鍒伴檶鐢熸潵鐢碉紝瀵规柟浠ョ即璐规垨璇搷浣滅瓑鐞嗙敱瑕佹眰澶勭悊娆鹃」锛屽姟蹇呯珛鍗虫媺榛戯紝璋ㄩ槻璇堥獥!!!', + customerServiceTips: CustomerServiceTips, +}); +</script> -- Gitblit v1.9.1