123456789101112131415161718192021222324252627282930313233343536373839 |
- <template>
- <view class="dots">
- <view class="dot" v-for="item in pageAll" :key="item" :class="isActive === item ? 'active' : ''" @click="$emit('hanlderClick', item)"></view>
- </view>
- </template>
- <script>
- export default {
- props: {
- pageAll: {
- type: Number,
- default: () => 0
- },
- isActive: {
- type: Number,
- default: () => 0
- }
- },
- }
- </script>
- <style scoped lang="scss">
- .dots {
- width: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- .dot {
- width: 12rpx;
- height: 12rpx;
- border-radius: 50%;
- background: rgba(255, 91, 0, 0.4);
- margin-right: 20rpx;
- }
- }
- .active {
- background: #FF5B00 !important;
- }
- </style>
|