微信小程序
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

23 righe
403 B

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