This commit is contained in:
2025-12-20 08:34:16 +08:00
commit 9d4fdc7242
872 changed files with 3536 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uni-drawer/uni-drawer"],{"286f":function(t,e,i){"use strict";var n=i("6b63"),o=i.n(n);o.a},"321f":function(t,e,i){"use strict";i.r(e);var n=i("d519"),o=i("c5c1");for(var s in o)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(s);i("286f");var r=i("828b"),c=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=c.exports},"6b63":function(t,e,i){},c5c1:function(t,e,i){"use strict";i.r(e);var n=i("d5ca"),o=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=o.a},d519:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},o=[]},d5ca:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"UniDrawer",props:{visible:{type:Boolean,default:!1},mode:{type:String,default:""},mask:{type:Boolean,default:!0}},data:function(){return{visibleSync:!1,showDrawer:!1,rightMode:!1,closeTimer:null,watchTimer:null,isIphoneX:!1}},watch:{visible:function(t){var e=this;clearTimeout(this.watchTimer),setTimeout((function(){e.showDrawer=t}),100),this.visibleSync&&clearTimeout(this.closeTimer),t?this.visibleSync=t:this.watchTimer=setTimeout((function(){e.visibleSync=t}),300)}},created:function(){var t=this;this.isIphoneX=this.$util.uniappIsIPhoneX(),this.visibleSync=this.visible,setTimeout((function(){t.showDrawer=t.visible}),100),this.rightMode="right"===this.mode},methods:{close:function(){var t=this;this.showDrawer=!1,this.closeTimer=setTimeout((function(){t.visibleSync=!1,t.$emit("close")}),200)},moveHandle:function(){}}};e.default=n}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/uni-drawer/uni-drawer-create-component',
{
'components/uni-drawer/uni-drawer-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("321f"))
})
},
[['components/uni-drawer/uni-drawer-create-component']]
]);

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<block wx:if="{{visibleSync}}"><view data-event-opts="{{[['touchmove',[['moveHandle',['$event']]]]]}}" class="{{['uni-drawer',(showDrawer)?'uni-drawer--visible':'',(rightMode)?'uni-drawer--right':'']}}" catchtouchmove="__e"><view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="uni-drawer__mask" bindtap="__e"></view><view class="{{['uni-drawer__content',(isIphoneX)?'safe-area':'']}}"><slot></slot></view></view></block>

View File

@@ -0,0 +1 @@
.uni-drawer{display:block;position:fixed;top:0;left:0;right:0;bottom:0;overflow:hidden;visibility:hidden;z-index:999;height:100%}.uni-drawer.uni-drawer--right .uni-drawer__content{left:auto;right:0;-webkit-transform:translatex(100%);transform:translatex(100%)}.uni-drawer.uni-drawer--visible{visibility:visible}.uni-drawer.uni-drawer--visible .uni-drawer__content{-webkit-transform:translatex(0);transform:translatex(0)}.uni-drawer.uni-drawer--visible .uni-drawer__mask{display:block;opacity:1}.uni-drawer__mask{display:block;opacity:0;position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.4);transition:opacity .3s}.uni-drawer__content{display:block;position:absolute;top:0;left:0;width:61.8%;height:100%;background:#fff;transition:all .3s ease-out;-webkit-transform:translatex(-100%);transform:translatex(-100%)}.safe-area{padding-bottom:68rpx;padding-top:44rpx;box-sizing:border-box}