微信小程序
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

18 行
364 B

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