|
@@ -7,7 +7,7 @@
|
|
:persistent="persistent || false"
|
|
:persistent="persistent || false"
|
|
>
|
|
>
|
|
<div class="white-bgc pa-5" style="border-radius: 2px; max-height: 600px; overflow-y: auto;">
|
|
<div class="white-bgc pa-5" style="border-radius: 2px; max-height: 600px; overflow-y: auto;">
|
|
- <div class="d-flex align-center">
|
|
|
|
|
|
+ <div :class="['d-flex', {'flex-column': componentMap[name]}, 'align-center', {'mb-5': componentMap[name]}]">
|
|
<!-- 前置图标 -->
|
|
<!-- 前置图标 -->
|
|
<span
|
|
<span
|
|
v-if="icon"
|
|
v-if="icon"
|
|
@@ -15,8 +15,9 @@
|
|
:class="[icon]"
|
|
:class="[icon]"
|
|
class="ml-2 mr-2"
|
|
class="ml-2 mr-2"
|
|
></span>
|
|
></span>
|
|
|
|
+ <component :is="componentMap[name]"></component>
|
|
<!-- 文字 -->
|
|
<!-- 文字 -->
|
|
- <div :style="{color:color}">{{message}}</div>
|
|
|
|
|
|
+ <div class="font-size-18" :style="{color:color}">{{message}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="text-center mt-3">
|
|
<div class="text-center mt-3">
|
|
@@ -29,6 +30,8 @@
|
|
<script setup>
|
|
<script setup>
|
|
import { ref } from 'vue'
|
|
import { ref } from 'vue'
|
|
defineOptions({name: 'curtain-message'})
|
|
defineOptions({name: 'curtain-message'})
|
|
|
|
+import SubmitPage from '@/components/svg/submitPage'
|
|
|
|
+
|
|
defineProps({
|
|
defineProps({
|
|
message: String, // 单条数据,也可以用list['']
|
|
message: String, // 单条数据,也可以用list['']
|
|
// list: Array, // 多条数据一起展示传list['', '']
|
|
// list: Array, // 多条数据一起展示传list['', '']
|
|
@@ -50,11 +53,21 @@ defineProps({
|
|
type: String,
|
|
type: String,
|
|
default: ''
|
|
default: ''
|
|
},
|
|
},
|
|
|
|
+ // 要展示的组件
|
|
|
|
+ name: {
|
|
|
|
+ type: String,
|
|
|
|
+ default: ''
|
|
|
|
+ }
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+const componentMap = {
|
|
|
|
+ 'SubmitPage': SubmitPage
|
|
|
|
+}
|
|
|
|
+
|
|
const dialog = ref(true)
|
|
const dialog = ref(true)
|
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
+
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
::-webkit-scrollbar {
|
|
::-webkit-scrollbar {
|
|
width: 4px;
|
|
width: 4px;
|