-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ support pending named slot (same as non-scoped default)
- Loading branch information
Showing
3 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<template> | ||
<Promised v-bind="$props"> | ||
<h1 slot="pending">loading</h1> | ||
<!-- The default scoped slots will be used as the result --> | ||
<h1 slot="then" slot-scope="data">{{ data | text }}</h1> | ||
<!-- The 'error' named scoped slots will be used if there is an error --> | ||
<h1 slot="catch" slot-scope="error">{{ error | errorText }}</h1> | ||
</Promised> | ||
</template> | ||
|
||
<script> | ||
import common from './common' | ||
export default { | ||
mixins: [common], | ||
} | ||
</script> |