Skip to content

nutui-taro 中页面加入countdown组件,界面上不显示倒计时 #3268

Open
@meguoe

Description

@meguoe

NutUI 包名

@nutui/nutui-taro

NutUI 版本号

4.3.13

平台

weapp

重现链接

重现步骤

nutui-taro 中页面加入countdown组件,界面上不显示倒计时,看渲染的wxml,只有一个0x0尺寸的nut-countdown元素。

<template>
<nut-row>
  <nut-countdown :start-time="start" :end-time="end"></nut-countdown>
</nut-row>
</template>

<script setup lang="ts">
  const start = Date.now();
  const end = Date.now() + 60 * 1000;
</script>

期望的结果是什么?

正常显示倒计时

实际的结果是什么?

正常显示倒计时

环境信息

👽 Taro v4.0.10

Taro CLI 4.0.10 environment info:
System:
OS: macOS 15.4.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 23.9.0 - /opt/homebrew/bin/node
Yarn: 1.22.22 - /usr/local/bin/yarn
npm: 10.9.2 - /opt/homebrew/bin/npm
npmPackages:
@tarojs/cli: 4.0.12 => 4.0.12
@tarojs/components: 4.0.12 => 4.0.12
@tarojs/components-advanced: ^4.0.12 => 4.0.12
@tarojs/helper: 4.0.12 => 4.0.12
@tarojs/plugin-framework-vue3: 4.0.12 => 4.0.12
@tarojs/plugin-html: 4.0.12 => 4.0.12
@tarojs/plugin-platform-alipay: 4.0.12 => 4.0.12
@tarojs/plugin-platform-h5: 4.0.12 => 4.0.12
@tarojs/plugin-platform-jd: 4.0.12 => 4.0.12
@tarojs/plugin-platform-qq: 4.0.12 => 4.0.12
@tarojs/plugin-platform-swan: 4.0.12 => 4.0.12
@tarojs/plugin-platform-tt: 4.0.12 => 4.0.12
@tarojs/plugin-platform-weapp: 4.0.12 => 4.0.12
@tarojs/runtime: 4.0.12 => 4.0.12
@tarojs/shared: 4.0.12 => 4.0.12
@tarojs/taro: 4.0.12 => 4.0.12
@tarojs/taro-loader: 4.0.12 => 4.0.12
@tarojs/webpack5-runner: 4.0.12 => 4.0.12
babel-preset-taro: 4.0.12 => 4.0.12
eslint-config-taro: 4.0.12 => 4.0.12

其他补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions