Skip to content

Commit 8b8f9c9

Browse files
author
maran
committed
add License
1 parent f0233df commit 8b8f9c9

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

LICENSE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
The MIT License (MIT)
22
Copyright (c) 2018 ElemeFE
3+
Copyright (c) 2016 Ethan Cohen
4+
Copyright (c) 2013-present, Yuxi (Evan) You
35

46
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
57

docs/rules/mouse-events-have-key-events.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,13 @@ Enforce onmouseenter/onmouseover/onmouseout/onmouseleave/onhover are accompanied
77
This rule takes no arguments.
88

99
### Succeed
10-
```jsx
11-
<div onMouseOver={ () => void 0 } onFocus={ () => void 0 } />
12-
<div onMouseOut={ () => void 0 } onBlur={ () => void 0 } />
13-
<div onMouseOver={ () => void 0 } onFocus={ () => void 0 } {...otherProps} />
14-
<div onMouseOut={ () => void 0 } onBlur={ () => void 0 } {...otherProps} />
10+
```
11+
<div @mouseover="doSth" @focus="doSth"></div>
12+
<div @mouseout="doSth" @blur="doSth"></div>
1513
```
1614

1715
### Fail
18-
In example 3 and 4 below, even if otherProps contains onBlur and/or onFocus, this rule will still fail. Props should be passed down explicitly for rule to pass.
1916

2017
```jsx
21-
<div onMouseOver={ () => void 0 } />
22-
<div onMouseOut={ () => void 0 } />
23-
<div onMouseOver={ () => void 0 } {...otherProps} />
24-
<div onMouseOut={ () => void 0 } {...otherProps} />
25-
```
18+
<div @mouseover="doSth"></div>
19+
```

0 commit comments

Comments
 (0)