feat: 响应体组件封装
This commit is contained in:
11
components/ResponseWrapper/index.vue
Normal file
11
components/ResponseWrapper/index.vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<view class="response-wrapper">
|
||||
<slot></slot>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup></script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import "./styles/index.scss";
|
||||
</style>
|
||||
7
components/ResponseWrapper/styles/index.scss
Normal file
7
components/ResponseWrapper/styles/index.scss
Normal file
@@ -0,0 +1,7 @@
|
||||
.response-wrapper {
|
||||
background: rgba(255, 255, 255, 0.4);
|
||||
box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 4px 20px 20px 20px;
|
||||
border: 1px solid #fff;
|
||||
padding: 12px;
|
||||
}
|
||||
Reference in New Issue
Block a user