index.wxs 364B

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