You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.0 KiB

2 months ago
  1. const version = '3'
  2. // 开发环境才提示,生产环境不会提示
  3. if (process.env.NODE_ENV === 'development') {
  4. console.log(`\n %c uview-plus V${version} %c https://ijry.github.io/uview-plus/ \n\n`, 'color: #ffffff; background: #3c9cff; padding:5px 0;', 'color: #3c9cff;background: #ffffff; padding:5px 0;');
  5. }
  6. export default {
  7. v: version,
  8. version,
  9. // 主题名称
  10. type: [
  11. 'primary',
  12. 'success',
  13. 'info',
  14. 'error',
  15. 'warning'
  16. ],
  17. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  18. color: {
  19. 'u-primary': '#2979ff',
  20. 'u-warning': '#ff9900',
  21. 'u-success': '#19be6b',
  22. 'u-error': '#fa3534',
  23. 'u-info': '#909399',
  24. 'u-main-color': '#303133',
  25. 'u-content-color': '#606266',
  26. 'u-tips-color': '#909399',
  27. 'u-light-color': '#c0c4cc'
  28. },
  29. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  30. unit: 'px'
  31. }