-
-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
130 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
<template> | ||
<MDCSlot :use="use" :unwrap="unwrap" /> | ||
</template> | ||
<script lang="ts"> | ||
import { defineComponent, h, resolveComponent } from 'vue' | ||
<script setup lang="ts"> | ||
defineProps({ | ||
/** | ||
* A slot name or function | ||
*/ | ||
use: { | ||
type: Function, | ||
default: undefined | ||
export default defineComponent({ | ||
props: { | ||
/** | ||
* A slot name or function | ||
*/ | ||
use: { | ||
type: Function, | ||
default: undefined | ||
}, | ||
/** | ||
* Tags to unwrap separated by spaces | ||
* Example: 'ul li' | ||
*/ | ||
unwrap: { | ||
type: [Boolean, String], | ||
default: false | ||
} | ||
}, | ||
/** | ||
* Tags to unwrap separated by spaces | ||
* Example: 'ul li' | ||
*/ | ||
unwrap: { | ||
type: [Boolean, String], | ||
default: false | ||
render (props: any) { | ||
return h(resolveComponent('MDCSlot'), props) | ||
} | ||
}) | ||
</script> |
This file was deleted.
Oops, something went wrong.