Skip to content

Commit

Permalink
chore: improve readme, git ignore yarn*
Browse files Browse the repository at this point in the history
  • Loading branch information
fritx committed Apr 13, 2018
1 parent 429a1d9 commit 9275d6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DS_Store
node_modules/
node_modules*/
dist/
npm-debug.log

yarn-error.log
yarn.lock
package-lock.json
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ npm i -S textarea-caret # also, for textarea

## Custom Templates

### List Templates
### Custom List

```vue
<template>
Expand Down Expand Up @@ -129,7 +129,7 @@ members: [{
</style>
```

#### Custom List Templates with Vue 1.x
#### Custom List with Vue 1.x

There is no "scoped slot" feature in Vue 1.<br>
Use a "normal slot" with `data-` attribute instead.
Expand All @@ -142,12 +142,12 @@ Use a "normal slot" with `data-` attribute instead.
</template>
```

### Tag Template
### Custom Tags

This gives you the option of changing the style of inserted tagged items. It is only supported for ContentEditable version, not Textarea.

```
<span slot="embeddedItem" slot-scope="item">
<span class="tag"><img class="avatar" :src="item.current.avatar"/>{{ item.current.name }}</span>
</span>
```vue
<span slot="embeddedItem" slot-scope="s">
<span class="tag"><img :src="s.current.avatar">{{ s.current.name }}</span>
</span>
```

0 comments on commit 9275d6b

Please sign in to comment.