inleft
2022-03-01 88f419df77ade235ea5e5e24be204842a24b7b33
commit | author | age
9bcb19 1 <template>
I 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
13 <script>
14 export default {
15   name: 'Trend',
16   props: {
17     prefixCls: {
18       type: String,
19       default: 'ant-pro-trend'
20     },
21     /**
22        * 上升下降标识:up|down
23        */
24     flag: {
25       type: String,
26       required: true
27     },
28     /**
29        * 颜色反转
30        */
31     reverseColor: {
32       type: Boolean,
33       default: false
34     }
35   }
36 }
37 </script>
38
39 <style lang="less" scoped>
40   @import "index";
41 </style>