init
This commit is contained in:
10
components/toTop/toTop.js
Normal file
10
components/toTop/toTop.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/toTop/toTop"],{"29fc":function(t,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default={data:function(){return{value:!0}},methods:{toTopClick:function(){this.$emit("toTop")}}}},9261:function(t,n,o){"use strict";o.d(n,"b",(function(){return e})),o.d(n,"c",(function(){return u})),o.d(n,"a",(function(){}));var e=function(){var t=this.$createElement,n=(this._self._c,this.$util.img("public/uniapp/common/mescroll-totop.png"));this.$mp.data=Object.assign({},{$root:{g0:n}})},u=[]},"929d":function(t,n,o){"use strict";o.r(n);var e=o("29fc"),u=o.n(e);for(var i in e)["default"].indexOf(i)<0&&function(t){o.d(n,t,(function(){return e[t]}))}(i);n["default"]=u.a},ad43:function(t,n,o){"use strict";o.r(n);var e=o("9261"),u=o("929d");for(var i in u)["default"].indexOf(i)<0&&function(t){o.d(n,t,(function(){return u[t]}))}(i);o("e77a");var c=o("828b"),a=Object(c["a"])(u["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);n["default"]=a.exports},c493:function(t,n,o){},e77a:function(t,n,o){"use strict";var e=o("c493"),u=o.n(e);u.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/toTop/toTop-create-component',
|
||||
{
|
||||
'components/toTop/toTop-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("ad43"))
|
||||
})
|
||||
},
|
||||
[['components/toTop/toTop-create-component']]
|
||||
]);
|
||||
4
components/toTop/toTop.json
Normal file
4
components/toTop/toTop.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
components/toTop/toTop.wxml
Normal file
1
components/toTop/toTop.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<image class="{{['mescroll-totop',value?'mescroll-totop-in':'mescroll-totop-out']}}" src="{{$root.g0}}" mode="widthFix" data-event-opts="{{[['tap',[['toTopClick',['$event']]]]]}}" bindtap="__e"></image>
|
||||
1
components/toTop/toTop.wxss
Normal file
1
components/toTop/toTop.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.mescroll-totop{z-index:99;position:fixed!important;right:46rpx!important;bottom:272rpx!important;width:72rpx;height:72rpx;border-radius:50%;opacity:0;transition:opacity .5s;margin-bottom:0}.mescroll-safe-bottom{margin-bottom:calc(0px + constant(safe-area-inset-bottom));margin-bottom:calc(0px + env(safe-area-inset-bottom))}.mescroll-totop-in{opacity:1}.mescroll-totop-out{opacity:0;pointer-events:none}
|
||||
Reference in New Issue
Block a user