no message
This commit is contained in:
24
components/float-back-to-top/index.js
Normal file
24
components/float-back-to-top/index.js
Normal file
@@ -0,0 +1,24 @@
|
||||
var e = require("../../common/vendor.js");
|
||||
Array || e.resolveComponent("uni-icons")(), Math;
|
||||
var o = {
|
||||
__name: "index",
|
||||
props: { visible: { type: Boolean, default: !1 } },
|
||||
setup: function (o) {
|
||||
var r = function () {
|
||||
e.index.pageScrollTo({ scrollTop: 0, duration: 100 });
|
||||
};
|
||||
return function (n, t) {
|
||||
return e.e(
|
||||
{ a: o.visible },
|
||||
o.visible
|
||||
? {
|
||||
b: e.p({ type: "arrow-up", size: "24", color: "#1F68E9" }),
|
||||
c: e.o(r),
|
||||
}
|
||||
: {}
|
||||
);
|
||||
};
|
||||
},
|
||||
},
|
||||
r = e._export_sfc(o, [["__scopeId", "data-v-f87a1e9e"]]);
|
||||
wx.createComponent(r);
|
||||
6
components/float-back-to-top/index.json
Normal file
6
components/float-back-to-top/index.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
|
||||
}
|
||||
}
|
||||
15
components/float-back-to-top/index.wxml
Normal file
15
components/float-back-to-top/index.wxml
Normal file
@@ -0,0 +1,15 @@
|
||||
<view
|
||||
catchtap="{{c}}"
|
||||
class="button data-v-f87a1e9e"
|
||||
hoverClass="default-hover-class"
|
||||
hoverStayTime="100"
|
||||
wx:if="{{a}}"
|
||||
>
|
||||
<uni-icons
|
||||
bind:__l="__l"
|
||||
class="data-v-f87a1e9e"
|
||||
uI="f87a1e9e-0"
|
||||
uP="{{b}}"
|
||||
wx:if="{{b}}"
|
||||
></uni-icons>
|
||||
</view>
|
||||
15
components/float-back-to-top/index.wxss
Normal file
15
components/float-back-to-top/index.wxss
Normal file
@@ -0,0 +1,15 @@
|
||||
.button.data-v-f87a1e9e {
|
||||
align-items: center;
|
||||
background-color: #fff;
|
||||
border-radius: 100%;
|
||||
bottom: 180rpx;
|
||||
box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.15);
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
height: 80rpx;
|
||||
justify-content: center;
|
||||
position: fixed;
|
||||
right: 40rpx;
|
||||
width: 80rpx;
|
||||
z-index: 88;
|
||||
}
|
||||
Reference in New Issue
Block a user