props.js 873 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { defineProps } from '../../libs/util/props';
  2. export default defineProps('alert', {
  3. // 显示文字
  4. title: {
  5. type: String,
  6. default: ''
  7. },
  8. // 主题,success/warning/info/error
  9. type: {
  10. type: String,
  11. default: 'warning'
  12. },
  13. // 辅助性文字
  14. description: {
  15. type: String,
  16. default: ''
  17. },
  18. // 是否可关闭
  19. closable: {
  20. type: Boolean,
  21. default: false
  22. },
  23. // 是否显示图标
  24. showIcon: {
  25. type: Boolean,
  26. default: false
  27. },
  28. // 浅或深色调,light-浅色,dark-深色
  29. effect: {
  30. type: String,
  31. default: 'light'
  32. },
  33. // 文字是否居中
  34. center: {
  35. type: Boolean,
  36. default: false
  37. },
  38. // 字体大小
  39. fontSize: {
  40. type: [String, Number],
  41. default: 14
  42. }
  43. })