index.wxs 397B

12345678910111213141516171819
  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. };