微信小程序
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

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