|
13 | 13 | 'uni-fab__content--flexDirectionStart': flexDirectionStart, |
14 | 14 | 'uni-fab__content--flexDirectionEnd': flexDirectionEnd, |
15 | 15 | 'uni-fab__content--other-platform': !isAndroidNvue |
16 | | - }" :style="{ width: boxWidth, height: boxHeight, backgroundColor: styles.backgroundColor }" class="uni-fab__content"> |
| 16 | + }" :style="{ width: boxWidth, height: boxHeight, backgroundColor: styles.backgroundColor }" class="uni-fab__content" elevation="5"> |
17 | 17 | <view v-if="flexDirectionStart || horizontalLeft" class="uni-fab__item uni-fab__item--first" /> |
18 | 18 | <view v-for="(item, index) in content" :key="index" :class="{ 'uni-fab__item--active': isShow }" class="uni-fab__item" @click="_onItemClick(index, item)"> |
19 | 19 | <image :src="item.active ? item.selectedIconPath : item.iconPath" class="uni-fab__item-image" mode="widthFix" /> |
|
23 | 23 | </view> |
24 | 24 | </view> |
25 | 25 | <view :class="{ |
26 | | - 'uni-fab--leftBottom': leftBottom, |
27 | | - 'uni-fab--rightBottom': rightBottom, |
28 | | - 'uni-fab--leftTop': leftTop, |
29 | | - 'uni-fab--rightTop': rightTop, |
| 26 | + 'uni-fab__circle--leftBottom': leftBottom, |
| 27 | + 'uni-fab__circle--rightBottom': rightBottom, |
| 28 | + 'uni-fab__circle--leftTop': leftTop, |
| 29 | + 'uni-fab__circle--rightTop': rightTop, |
30 | 30 | 'uni-fab__content--other-platform': !isAndroidNvue |
31 | 31 | }" class="uni-fab__circle uni-fab__plus" :style="{ 'background-color': styles.buttonColor }" @click="_onClick"> |
32 | 32 | <view class="fab-circle-v" :class="{'uni-fab__plus--active': isShow}"></view> |
|
190 | 190 | z-index: 10; |
191 | 191 | } |
192 | 192 |
|
193 | | - .uni-fab--top { |
194 | | - width: 30px; |
195 | | - height: 30px; |
196 | | - right: 15px; |
197 | | - bottom: 30px; |
198 | | - border-style: solid; |
199 | | - border-width: 1px; |
200 | | - border-color: #5989b9; |
201 | | - border-radius: 5px; |
202 | | - transition: opacity 0.3; |
203 | | - opacity: 0; |
204 | | - } |
205 | | -
|
206 | 193 | .uni-fab--active { |
207 | 194 | opacity: 1; |
208 | 195 | } |
209 | 196 |
|
210 | 197 | .uni-fab--leftBottom { |
211 | | - left: 15px; |
212 | | - bottom: 30px; |
| 198 | + left: 5px; |
| 199 | + bottom: 20px; |
| 200 | + padding: 10px; |
213 | 201 | } |
214 | 202 |
|
215 | 203 | .uni-fab--leftTop { |
216 | | - left: 15px; |
217 | | - top: 40px; |
| 204 | + left: 5px; |
| 205 | + top: 30px; |
218 | 206 | /* #ifdef H5 */ |
219 | | - top: calc(40px + var(--window-top)); |
| 207 | + top: calc(30px + var(--window-top)); |
220 | 208 | /* #endif */ |
| 209 | + padding: 10px; |
221 | 210 | } |
222 | 211 |
|
223 | 212 | .uni-fab--rightBottom { |
224 | | - right: 15px; |
225 | | - bottom: 30px; |
| 213 | + right: 5px; |
| 214 | + bottom: 20px; |
| 215 | + padding: 10px; |
226 | 216 | } |
227 | 217 |
|
228 | 218 | .uni-fab--rightTop { |
229 | | - right: 15px; |
230 | | - top: 40px; |
| 219 | + right: 5px; |
| 220 | + top: 30px; |
231 | 221 | /* #ifdef H5 */ |
232 | | - top: calc(40px + var(--window-top)); |
| 222 | + top: calc(30px + var(--window-top)); |
233 | 223 | /* #endif */ |
| 224 | + padding: 10px; |
234 | 225 | } |
235 | 226 |
|
236 | 227 | .uni-fab__circle { |
|
247 | 238 | z-index: 11; |
248 | 239 | } |
249 | 240 |
|
| 241 | + .uni-fab__circle--leftBottom { |
| 242 | + left: 15px; |
| 243 | + bottom: 30px; |
| 244 | + } |
| 245 | +
|
| 246 | + .uni-fab__circle--leftTop { |
| 247 | + left: 15px; |
| 248 | + top: 40px; |
| 249 | + /* #ifdef H5 */ |
| 250 | + top: calc(40px + var(--window-top)); |
| 251 | + /* #endif */ |
| 252 | + } |
| 253 | +
|
| 254 | + .uni-fab__circle--rightBottom { |
| 255 | + right: 15px; |
| 256 | + bottom: 30px; |
| 257 | + } |
| 258 | +
|
| 259 | + .uni-fab__circle--rightTop { |
| 260 | + right: 15px; |
| 261 | + top: 40px; |
| 262 | + /* #ifdef H5 */ |
| 263 | + top: calc(40px + var(--window-top)); |
| 264 | + /* #endif */ |
| 265 | + } |
| 266 | +
|
250 | 267 | .uni-fab__circle--left { |
251 | 268 | left: 0; |
252 | 269 | } |
|
0 commit comments