File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export default defineComponent({
57
57
} ;
58
58
} > ,
59
59
60
- setup ( { content , as } , { attrs, slots } ) {
60
+ setup ( props , { attrs, slots } ) {
61
61
function _serialize ( children ?: RichTextChildren ) : RawChildren [ ] | null {
62
62
if ( ! children ) return null ;
63
63
@@ -111,8 +111,8 @@ export default defineComponent({
111
111
} ) ;
112
112
}
113
113
114
- const children = _serialize ( content ) ;
114
+ const children = _serialize ( props . content ) ;
115
115
if ( ! children ) return h ( "div" , { ...attrs } , "No rich text provided" ) ;
116
- return ( ) => h ( as , { ...attrs } , ...children ) ;
116
+ return ( ) => h ( props . as , { ...attrs } , ...children ) ;
117
117
} ,
118
118
} ) ;
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export default defineComponent<Props>({
51
51
52
52
// We extract the "custom" prop to avoid overrides
53
53
// eslint-disable-next-line @typescript-eslint/no-unused-vars
54
- setup ( { custom , ... props } , ctx ) {
54
+ setup ( props , ctx ) {
55
55
const $route = useRoute ( ) ;
56
56
57
57
function resolveLinkClass (
@@ -90,7 +90,7 @@ export default defineComponent<Props>({
90
90
)
91
91
: h (
92
92
NuxtLink ,
93
- { custom : true , ...props } ,
93
+ { custom : true , ...omit ( props , [ "custom" ] ) } ,
94
94
{
95
95
default : ( {
96
96
route,
You can’t perform that action at this time.
0 commit comments