props.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * @Author : jry
  3. * @Description :
  4. * @version : 3.0
  5. * @LastAuthor : jry
  6. * @lastTime : 2025-08-17 17:23:53
  7. * @FilePath : /uview-plus/libs/config/props/props.js
  8. */
  9. import { defineMixin } from '../../libs/vue'
  10. import defProps from '../../libs/config/props.js'
  11. export const props = defineMixin({
  12. props: {
  13. // 显示文字
  14. title: {
  15. type: String,
  16. default: () => defProps.alert.title
  17. },
  18. // 主题,success/warning/info/error
  19. type: {
  20. type: String,
  21. default: () => defProps.alert.type
  22. },
  23. // 辅助性文字
  24. description: {
  25. type: String,
  26. default: () => defProps.alert.description
  27. },
  28. // 是否可关闭
  29. closable: {
  30. type: Boolean,
  31. default: () => defProps.alert.closable
  32. },
  33. // 是否显示图标
  34. showIcon: {
  35. type: Boolean,
  36. default: () => defProps.alert.showIcon
  37. },
  38. // 浅或深色调,light-浅色,dark-深色
  39. effect: {
  40. type: String,
  41. default: () => defProps.alert.effect
  42. },
  43. // 文字是否居中
  44. center: {
  45. type: Boolean,
  46. default: () => defProps.alert.center
  47. },
  48. // 字体大小
  49. fontSize: {
  50. type: [String, Number],
  51. default: () => defProps.alert.fontSize
  52. },
  53. // 动画类型
  54. transitionMode: {
  55. type: [String],
  56. default: () => defProps.alert.transitionMode
  57. },
  58. // 自动定时关闭毫秒
  59. duration: {
  60. type: [Number],
  61. default: () => defProps.alert.duration
  62. },
  63. // 自定义图标
  64. icon: {
  65. type: [String],
  66. default: () => defProps.alert.icon
  67. },
  68. // 是否显示
  69. modelValue: {
  70. type: [String],
  71. default: () => defProps.alert.value
  72. }
  73. }
  74. })