UNPKG
@gaonengwww/tiny-toolkit-docs
Version:
latest (1.0.9)
1.0.9
这里对你的套件进行简单描述, 比如适用哪些场景,使用了什么技术, 有什么特点
github.com/opentiny/tiny-cli
opentiny/tiny-cli
@gaonengwww/tiny-toolkit-docs
/
template
/
ng
/
demos
/
app
/
button
/
ButtonEventComponent.ts
12 lines
(10 loc)
•
289 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{
Component
}
from
'@angular/core'
;
@Component
({
templateUrl
:
'./button-event.html'
, })
export
class
ButtonEventComponent
{
myLogs
:
Array
<
string
> = [];
onClick
(
event
:
MouseEvent
):
void
{
this
.
myLogs
= [...
this
.
myLogs
,
`onClick() event =
${event.
type
}
`
]; } }