提交 b229c6c4 作者: 方治民

style: 抽离 Widget 组件公共样式

上级 2fbca106
...@@ -82,9 +82,7 @@ ...@@ -82,9 +82,7 @@
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
@mixin animate() { @import '../../common.scss';
transition: all 0.35s;
}
.wrap { .wrap {
@include animate(); @include animate();
......
<!-- 左侧控制组件 -->
<script setup lang="ts">
//
</script>
<template>
<view class="wrap left-bar">
<!-- -->
</view>
</template>
<style lang="scss" scoped>
//
</style>
...@@ -134,9 +134,7 @@ ...@@ -134,9 +134,7 @@
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
@mixin animate() { @import '../../common.scss';
transition: all 0.35s;
}
.wrap { .wrap {
@include animate(); @include animate();
......
...@@ -57,9 +57,11 @@ ...@@ -57,9 +57,11 @@
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '../../common.scss';
.switch-control { .switch-control {
> * { > * {
width: 70rpx; width: 60rpx;
height: 120rpx; height: 120rpx;
background-color: rgba(0, 0, 0, 0.3); background-color: rgba(0, 0, 0, 0.3);
display: flex; display: flex;
...@@ -73,7 +75,7 @@ ...@@ -73,7 +75,7 @@
.prev { .prev {
left: 0; left: 0;
border-radius: 0 10rpx 10rpx 0; border-radius: 0 15rpx 15rpx 0;
.icon { .icon {
position: relative; position: relative;
...@@ -83,7 +85,7 @@ ...@@ -83,7 +85,7 @@
.next { .next {
right: 0; right: 0;
border-radius: 10rpx 0 0 10rpx; border-radius: 15rpx 0 0 15rpx;
} }
} }
</style> </style>
...@@ -235,9 +235,7 @@ ...@@ -235,9 +235,7 @@
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
@mixin animate() { @import '../../common.scss';
transition: all 0.35s;
}
.wrap { .wrap {
@include animate(); @include animate();
......
@mixin animate() {
transition: all 0.35s;
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论