会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
joken-前端工程师
博客园
::
首页
::
博问
::
闪存
::
新随笔
:: :: ::
管理
::
2024年9月13日
类型“{}”的参数不能赋给类型“(Partial<{ readonly [x: number]: string; } | {}> & Omit<(readonly string[] | { readonly [x: string]: 。。。
摘要: 去掉子组件多余的空参数即可,比如props:{}
阅读全文
posted @ 2024-09-13 21:57 joken1310
阅读(277)
评论(0)
推荐(0)
vue3 tsx中使用hook
摘要: 代码 使用方组件 import { defineComponent, PropType, h, computed, ref, watch } from 'vue'; import useMyHooks from './hooks/useMyHooks'; export default defineC
阅读全文
posted @ 2024-09-13 21:49 joken1310
阅读(84)
评论(0)
推荐(0)
tsx 实现slot插槽
摘要: tsx 实现slot插槽 父组件 <template> <div class="component-name"> <child> <template #default="scope"> <div>default</div> <div>{{ scope.a }}</div> </template> <
阅读全文
posted @ 2024-09-13 21:41 joken1310
阅读(146)
评论(0)
推荐(0)
tsx css class样式如何使用
摘要: 参考代码 import { defineComponent, PropType, h, computed, ref, watch } from 'vue'; import type { Reactive, Ref } from 'vue'; import styles from '../scss/c
阅读全文
posted @ 2024-09-13 21:24 joken1310
阅读(153)
评论(0)
推荐(0)