-
Notifications
You must be signed in to change notification settings - Fork 323
Closed
Labels
questionThis is a question, not a bugThis is a question, not a bug
Description
tdesign-miniprogram 版本
1.8.6
重现链接
No response
重现步骤
- 在
json中引入组件
{
"usingComponents": {
"t-date-time-picker": "tdesign-miniprogram/date-time-picker/date-time-picker"
}
}- 脚本文件定义数据
Page({
data: {
expireShow: false,
expireDate: 0,
}
})- 在页面中使用
<!--报错:Cannot read property 'extend' of undefined,疑似无法引入 dayjs-->
<t-date-time-picker auto-close title="选择日期" visible="{{ expireShow }}" mode="date" default-value="{{expireDate}}" format="YYYY-MM-DD" /> 错误信息
页面【miniprogram_npm/tdesign-miniprogram/date-time-picker/date-time-picker]错误:
TypeError: Cannot read property 'extend' of undefined
at date-time-picker.js? [sm]:14
at WASubContext.js?t=wechat&s=1740980238658&v=3.6.6:1期望结果
能够在小程序中正常使用时间选择组件。
实际结果
No response
基础库版本
3.6.6
补充说明
我的小程序依赖如下:
{
"author": "0604hx/集成显卡",
"license": "MIT",
"dependencies": {
"dayjs": "^1.11.13",
"tdesign-miniprogram": "^1.8.6"
}
}dayjs 用于日期格式化,在 util 中能够正常引入并使用。
Metadata
Metadata
Assignees
Labels
questionThis is a question, not a bugThis is a question, not a bug
