Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update custom-directive.md (#1198)
I suggest add this params demo because i can not understand when i saw this part,i think other people will have the same confusion
  • Loading branch information
HeGangSZ authored and potato4d committed Oct 10, 2017
commit 0fd9ec385a20dd57bc65c0984d19d058dce6da99
3 changes: 3 additions & 0 deletions src/v2/guide/custom-directive.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ Vue.directive('focus', {
directives: {
focus: {
// ディレクティブ定義
inserted: function (el) {
el.focus()
}
}
}
```
Expand Down