患者1.2
This commit is contained in:
@@ -17,6 +17,10 @@ var component_1 = require("../common/component");
|
||||
type: Boolean,
|
||||
value: true,
|
||||
},
|
||||
rootPortal: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
onClick: function () {
|
||||
|
||||
@@ -1,21 +1,7 @@
|
||||
<van-transition
|
||||
wx:if="{{ lockScroll }}"
|
||||
show="{{ show }}"
|
||||
custom-class="van-overlay custom-class"
|
||||
custom-style="z-index: {{ zIndex }}; {{ customStyle }}"
|
||||
duration="{{ duration }}"
|
||||
bind:tap="onClick"
|
||||
catch:touchmove="noop"
|
||||
>
|
||||
<slot></slot>
|
||||
</van-transition>
|
||||
<van-transition
|
||||
wx:else
|
||||
show="{{ show }}"
|
||||
custom-class="van-overlay custom-class"
|
||||
custom-style="z-index: {{ zIndex }}; {{ customStyle }}"
|
||||
duration="{{ duration }}"
|
||||
bind:tap="onClick"
|
||||
>
|
||||
<slot></slot>
|
||||
</van-transition>
|
||||
<import src="./overlay.wxml" />
|
||||
|
||||
<root-portal wx:if="{{ rootPortal }}">
|
||||
<include src="./overlay.wxml" />
|
||||
</root-portal>
|
||||
|
||||
<include wx:else src="./overlay.wxml" />
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<van-transition
|
||||
show="{{ show }}"
|
||||
custom-class="van-overlay custom-class"
|
||||
custom-style="z-index: {{ zIndex }}; {{ customStyle }}"
|
||||
duration="{{ duration }}"
|
||||
bind:tap="onClick"
|
||||
catch:touchmove="{{ lockScroll ? 'noop' : ''}}"
|
||||
>
|
||||
<slot></slot>
|
||||
</van-transition>
|
||||
Reference in New Issue
Block a user