UNPKG
ohayolibs
Version:
latest (1.0.1)
1.0.1
1.0.0
Ohayo is a set of essential modules for ohayojp.
ohayolibs
/
packages
/
chart
/
trend
/
demo
/
basic.md
20 lines
(16 loc)
•
319 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
order:
0
title:
演示
---
在数值背后添加一个小图标来标识涨跌情况。
```ts
import
{
Component
}
from
'@angular/core'
;
@Component({
selector:
'app-demo'
,
template:
`
<trend
flag="up">12%</trend>
<trend
flag="down"
class="ml-sm">11%</trend>
`,
})
export
class
DemoComponent
{}
```