mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
remove ununsed component (#415)
This commit is contained in:
parent
b9576eee0d
commit
dcb2cfb824
31
dist/common/pop-manager/index.js
vendored
31
dist/common/pop-manager/index.js
vendored
@ -1,31 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
Component({
|
||||
properties: {
|
||||
show: {
|
||||
type: Boolean,
|
||||
value: false
|
||||
},
|
||||
// 是否有遮罩层
|
||||
overlay: {
|
||||
type: Boolean,
|
||||
value: true
|
||||
},
|
||||
// 遮罩层是否会显示
|
||||
showOverlay: {
|
||||
type: Boolean,
|
||||
value: true
|
||||
},
|
||||
// 内容从哪个方向出,可选 center top bottom left right
|
||||
type: {
|
||||
type: String,
|
||||
value: 'center'
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
handleMaskClick: function handleMaskClick() {
|
||||
this.triggerEvent('clickmask', {});
|
||||
}
|
||||
}
|
||||
});
|
3
dist/common/pop-manager/index.json
vendored
3
dist/common/pop-manager/index.json
vendored
@ -1,3 +0,0 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
12
dist/common/pop-manager/index.wxml
vendored
12
dist/common/pop-manager/index.wxml
vendored
@ -1,12 +0,0 @@
|
||||
<view
|
||||
class="pop pop--{{ type }} {{ show ? 'pop--show' : '' }}"
|
||||
>
|
||||
<view
|
||||
wx:if="{{ overlay }}"
|
||||
class="pop__mask {{ showOverlay ? '' : 'pop__mask--hide' }}"
|
||||
bindtap="handleMaskClick"
|
||||
></view>
|
||||
<view class="pop__container">
|
||||
<slot></slot>
|
||||
</view>
|
||||
</view>
|
1
dist/common/pop-manager/index.wxss
vendored
1
dist/common/pop-manager/index.wxss
vendored
@ -1 +0,0 @@
|
||||
.pop{visibility:hidden}.pop--show{visibility:visible}.pop__mask{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;background:rgba(0,0,0,.7);display:none}.pop__mask--hide{background:0 0}.pop__container{position:fixed;left:50%;top:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);-webkit-transform-origin:center;transform-origin:center;-webkit-transition:all .4s ease;transition:all .4s ease;z-index:11;opacity:0}.pop--show .pop__container{opacity:1}.pop--show .pop__mask{display:block}.pop--left .pop__container{left:0;top:50%;-webkit-transform:translate3d(-100%,-50%,0);transform:translate3d(-100%,-50%,0)}.pop--show.pop--left .pop__container{-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.pop--right .pop__container{right:0;top:50%;left:auto;-webkit-transform:translate3d(100%,-50%,0);transform:translate3d(100%,-50%,0)}.pop--show.pop--right .pop__container{-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.pop--bottom .pop__container{top:auto;left:50%;bottom:0;-webkit-transform:translate3d(-50%,100%,0);transform:translate3d(-50%,100%,0)}.pop--show.pop--bottom .pop__container{-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0)}.pop--top .pop__container{top:0;left:50%;-webkit-transform:translate3d(-50%,-100%,0);transform:translate3d(-50%,-100%,0)}.pop--show.pop--top .pop__container{-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0)}
|
Loading…
x
Reference in New Issue
Block a user