Skip to content

Commit 956ac4f

Browse files
committed
update: 启用nvue版本的uni-fab
1 parent 6c152db commit 956ac4f

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎components/uni-fab/uni-fab.vue‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
</view>
2222
<view v-if="flexDirectionEnd || horizontalRight" class="uni-fab__item uni-fab__item--first" />
2323
</view>
24-
<view :class="{
25-
'uni-fab__circle--left': horizontal === 'left' && direction === 'horizontal',
26-
'uni-fab__circle--top': vertical === 'top' && direction === 'vertical',
27-
'uni-fab__circle--bottom': vertical === 'bottom' && direction === 'vertical',
28-
'uni-fab__circle--right': horizontal === 'right' && direction === 'horizontal',
24+
</view>
25+
<view :class="{
26+
'uni-fab--leftBottom': leftBottom,
27+
'uni-fab--rightBottom': rightBottom,
28+
'uni-fab--leftTop': leftTop,
29+
'uni-fab--rightTop': rightTop,
2930
'uni-fab__content--other-platform': !isAndroidNvue
30-
}" class="uni-fab__circle uni-fab__plus" :style="{ 'background-color': styles.buttonColor }" @click="_onClick">
31-
<view class="fab-circle-v" :class="{'uni-fab__plus--active': isShow}"></view>
32-
<view class="fab-circle-h" :class="{'uni-fab__plus--active': isShow}"></view>
33-
</view>
31+
}" class="uni-fab__circle uni-fab__plus" :style="{ 'background-color': styles.buttonColor }" @click="_onClick">
32+
<view class="fab-circle-v" :class="{'uni-fab__plus--active': isShow}"></view>
33+
<view class="fab-circle-h" :class="{'uni-fab__plus--active': isShow}"></view>
3434
</view>
3535
</view>
3636
</template>
@@ -234,12 +234,12 @@
234234
}
235235
236236
.uni-fab__circle {
237+
position: fixed;
237238
/* #ifndef APP-NVUE */
238239
display: flex;
239240
/* #endif */
240241
justify-content: center;
241242
align-items: center;
242-
position: absolute;
243243
width: 55px;
244244
height: 55px;
245245
background-color: #3c3e49;

0 commit comments

Comments
 (0)