工单小程序后端代码
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.

40 lines
747 B

  1. <template>
  2. <div :class="[prefixCls, reverseColor && 'reverse-color' ]">
  3. <span>
  4. <slot name="term"></slot>
  5. <span class="item-text">
  6. <slot></slot>
  7. </span>
  8. </span>
  9. <span :class="[flag]"><a-icon :type="`caret-${flag}`"/></span>
  10. </div>
  11. </template>
  12. <script>
  13. export default {
  14. name: "Trend",
  15. props: {
  16. prefixCls: {
  17. type: String,
  18. default: 'ant-pro-trend'
  19. },
  20. /**
  21. * 上升下降标识up|down
  22. */
  23. flag: {
  24. type: String,
  25. required: true
  26. },
  27. /**
  28. * 颜色反转
  29. */
  30. reverseColor: {
  31. type: Boolean,
  32. default: false
  33. }
  34. }
  35. }
  36. </script>
  37. <style lang="less" scoped>
  38. @import "index";
  39. </style>