index.wxs 403B

1234567891011121314151617181920212223
  1. /* eslint-disable */
  2. var style = require('../wxs/style.wxs');
  3. var addUnit = require('../wxs/add-unit.wxs');
  4. function rootStyle(data) {
  5. return style({
  6. 'z-index': data.zIndex,
  7. top: addUnit(data.top),
  8. });
  9. }
  10. function notifyStyle(data) {
  11. return style({
  12. background: data.background,
  13. color: data.color,
  14. });
  15. }
  16. module.exports = {
  17. rootStyle: rootStyle,
  18. notifyStyle: notifyStyle,
  19. };