refactor(popup): rename wxs function (#3896)

This commit is contained in:
rex 2020-12-22 20:54:06 +08:00 committed by GitHub
parent 84678ee06c
commit 7c8f4b2113
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
<view
wx:if="{{ inited }}"
class="custom-class {{ classes }} {{ utils.bem('popup', [position, { round, safe: safeAreaInsetBottom, safeTop: safeAreaInsetTop }]) }}"
style="{{ computed.popupClass({ zIndex, currentDuration, display, customStyle }) }}"
style="{{ computed.popupStyle({ zIndex, currentDuration, display, customStyle }) }}"
bind:transitionend="onTransitionEnd"
>
<slot />

View File

@ -1,7 +1,7 @@
/* eslint-disable */
var style = require('../wxs/style.wxs');
function popupClass(data) {
function popupStyle(data) {
return style([
{
'z-index': data.zIndex,
@ -14,5 +14,5 @@ function popupClass(data) {
}
module.exports = {
popupClass: popupClass,
popupStyle: popupStyle,
};