You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.9 KiB
55 lines
1.9 KiB
<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>
|