微信小程序
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
397 B

  1. /* eslint-disable */
  2. var style = require('../wxs/style.wxs');
  3. function popupStyle(data) {
  4. return style([
  5. {
  6. 'z-index': data.zIndex,
  7. '-webkit-transition-duration': data.currentDuration + 'ms',
  8. 'transition-duration': data.currentDuration + 'ms',
  9. },
  10. data.display ? null : 'display: none',
  11. data.customStyle,
  12. ]);
  13. }
  14. module.exports = {
  15. popupStyle: popupStyle,
  16. };