Houjie
2025-04-11 1bf977929dd324f3ac64b70debd8a79443c54392
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<template>
    <view>
        <cu-custom bgColor="bg-gradual-blue" :isBack="true"><block slot="backText">返回</block><block slot="content">边框阴影</block></cu-custom>
        <view class="cu-bar bg-white solid-bottom">
            <view class="action">
                <text class="cuIcon-title text-blue"></text>边框
            </view>
            <view class="action">
                <switch class="sm" @change="SetSize" :class="size?'checked':''"></switch>
            </view>
        </view>
        <view class="padding bg-white text-center">
            <view class="padding" :class="size?'solids':'solid'">四周</view>
            <view class="padding margin-top" :class="size?'solids-top':'solid-top'">上</view>
            <view class="padding margin-top" :class="size?'solids-right':'solid-right'">右</view>
            <view class="padding margin-top" :class="size?'solids-bottom':'solid-bottom'">下</view>
            <view class="padding margin-top" :class="size?'solids-left':'solid-left'">左</view>
        </view>
        <view class="cu-bar bg-white margin-top">
            <view class="action">
                <text class="cuIcon-title text-blue"></text>阴影
            </view>
        </view>
        <view class="padding text-center">
            <view class="padding-xl radius shadow bg-white">默认阴影</view>
            <view class="padding-xl radius shadow bg-blue margin-top">根据背景颜色而改变的阴影</view>
            <view class="padding-xl radius shadow shadow-lg bg-white margin-top">长阴影</view>
            <view class="padding-xl radius shadow shadow-lg bg-blue margin-top">长阴影</view>
            <view class="padding-xl radius shadow-warp bg-white margin-top">翘边阴影</view>
            <view class="padding-xl radius shadow-blur bg-red margin-top bg-img" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big91005.jpg);">
                <view>根据背景图而改变的阴影</view>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                size: false
            };
        },
        methods: {
            SetSize(e) {
                this.size = e.detail.value
            }
        }
    }
</script>
 
<style>
 
</style>