NervJS / taro-ui

一款基于 Taro 框架开发的多端 UI 组件库
https://taro-ui.taro.zone
MIT License
4.53k stars 758 forks source link

在微信小程序中日历组件的展示问题 #1780

Closed yapeng-wyp closed 5 months ago

yapeng-wyp commented 5 months ago

问题描述

使用AtCalendar的时候 微信小程序只能显示周 和箭头 无法显示具体日期

import { Component, PropsWithChildren } from 'react'
import { View, Text, Form, Label, Input } from '@tarojs/components'
import { AtForm, AtInput, AtButton, AtCountdown, AtCalendar, AtIcon } from 'taro-ui'
import Taro from '@tarojs/taro'
import "taro-ui/dist/style/components/calendar.scss" // 按需引入
export default class Index extends Component<PropsWithChildren> {
 render () {
    return (
      <View className='index'>
        <AtCalendar />
      </View>
    )
  }
}

期望行为

希望可以展示官网上的组件即可

系统信息

补充信息

taro-ui-bot[bot] commented 5 months ago

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

robinv8 commented 5 months ago

先参照 https://github.com/NervJS/taro-ui/issues/1726 排查一下

yapeng-wyp commented 5 months ago

搞定了 谢谢.