邃芒智像相册
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.
 
 

40 Zeilen
757 B

  1. /* eslint-disable */
  2. var style = require('../wxs/style.wxs');
  3. function rootStyle(data) {
  4. if (!data.color) {
  5. return data.customStyle;
  6. }
  7. var properties = {
  8. color: data.plain ? data.color : '#fff',
  9. background: data.plain ? null : data.color,
  10. };
  11. // hide border when color is linear-gradient
  12. if (data.color.indexOf('gradient') !== -1) {
  13. properties.border = 0;
  14. } else {
  15. properties['border-color'] = data.color;
  16. }
  17. return style([properties, data.customStyle]);
  18. }
  19. function loadingColor(data) {
  20. if (data.plain) {
  21. return data.color ? data.color : '#c9c9c9';
  22. }
  23. if (data.type === 'default') {
  24. return '#c9c9c9';
  25. }
  26. return '#fff';
  27. }
  28. module.exports = {
  29. rootStyle: rootStyle,
  30. loadingColor: loadingColor,
  31. };