摘要:
swiper 外层 .swiper-container、swiper-wrapper、swiper-slide 都存在 position:relative 样式, 直接 子元素absolute 无效 干脆去掉 overflow:hidden,但这样 swiper 其他本该隐藏切换显示的 swiper 阅读全文
摘要:
阅读全文
摘要:
1.在utils中新建一个文件watchLocalStorage.ts export default function dispatchEventStroage() { const signSetItem = localStorage.setItem localStorage.setItem = f 阅读全文
摘要:
注意:app router 的多语言 next.config.js 中配置i18n不起作用 import { createNavigation } from 'next-intl/navigation' export const { Link, redirect, usePathname, useR 阅读全文
摘要:
@font-face { font-family: 'font-ali-bold'; src: url('https://cdnurl/Alibaba-PuHuiTi-Bold.woff2') format('woff2'); font-weight: normal; font-style: nor 阅读全文
摘要:
Error: Usage of next-intl APIs in Server Components currently opts into dynamic rendering. This limitation will eventually be lifted, but as a stopgap 阅读全文
摘要:
1.ios input 键盘收起页面底部有间隙没有自动还原解决办法: 最外层元素增加fixed 布局即可2. ios input输入 页面会放大,收起时页面不自动还原解决办法 input 字体设置最小为16px即可3.网页标签切换获取切换状态 document.addEventListener("v 阅读全文
摘要:
useEffect(() => { form.clearErrors() if (state && state.data) { router.push('/') } // 后台错误 if (state && state.errorMessage) { // showErrorToast(t(stat 阅读全文
摘要:
<Popover open={open} onOpenChange={setOpen}> <PopoverTrigger asChild> <Button role="combobox" aria-expanded={open} className="w-full justify-between h 阅读全文
摘要:
import { Swiper, SwiperSlide } from 'swiper/react' import { Autoplay, Pagination, Navigation } from 'swiper/modules' // Import Swiper styles import 's 阅读全文