Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Commit

Permalink
feat(build): Added slot support
Browse files Browse the repository at this point in the history
  • Loading branch information
eperedo committed Apr 1, 2018
1 parent 19df7d2 commit 9d1a48b
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 28 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,24 @@ export default {
| ----- | ------- | ------ | ----------------------------- |
| input | none | Object | The fixer http response |
| error | none | Object | the fixer http response error |

### Slots

Instead using events you can use slots and get the same result

```html
<fixer :api-key="model.key">
<div slot-scope="props">
<div v-show="props.fixer.success">
<header>
<h2>Today 1 {{ props.fixer.base }} worth</h2>
</header>
<section>
<ul v-for="(rate, label) in props.fixer.rates" :key="rate">
<li>In {{label}} = {{ rate }}</li>
</ul>
</section>
</div>
</div>
</fixer>
```
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
self.__precacheManifest = [
{
"revision": "0a392054aa5d11988cb1",
"revision": "4c4e7125cbc5907b0444",
"url": "./vueFixer.umd.js"
}
];
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
self.__precacheManifest = [
{
"revision": "e9168036759bf9b11323",
"revision": "dbc0aae40423621d211c",
"url": "./vueFixer.umd.min.js"
}
];
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
self.__precacheManifest = [
{
"revision": "b11c83ceeb19968ea273",
"revision": "c464d879c847869a3022",
"url": "./vueFixer.common.js"
}
];
2 changes: 1 addition & 1 deletion dist/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.0.1/workbox-sw.js");

importScripts(
"./precache-manifest.22db9ec412cbec8c7379c4fad0195e33.js"
"./precache-manifest.811aeb0705605c2ef0a0ce65a4e91303.js"
);

workbox.core.setCacheNameDetails({prefix: "vue-fixer"});
Expand Down
6 changes: 4 additions & 2 deletions dist/vueFixer.common.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/vueFixer.common.js.map

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions dist/vueFixer.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/vueFixer.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vueFixer.umd.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9d1a48b

Please sign in to comment.