# ElementUI新上线了一个组件很实用

* 抖音：<https://v.douyin.com/rC181Gw/>
* B站：<https://www.bilibili.com/video/BV1iW4y1W7Zv/>

哎我无意中发现啊

饿了么UI上个礼拜上线了一个新组件

就是这个统计数值

那这块还好没怎么太吸引我

主要是下边它支持时间的倒计时

然后呢我也替大家试了一下啊

特别简单

写这个组件然后指定一个日期

这个就是未来的一个时间点

然后呢把这个加上

它就自动倒计时

大家看我未来两个小时

然后呢效果就是这样

然后呢还可以指定一个回调方法

等它倒计时结束之后回调

特别简单大家自己看文档就好了

然后呢我再说一个事

就是我之前的（视频里的）demo啊

有vue版本的和一些HTML版本的

vue版本的demo都放这个仓库里了

后来呢

有一些小伙伴要的代码是在HTML里边

所以呢

我把那个HTML版本呢也传上来了

这里边都是纯HTML的

但是呢就是代码有点乱

大家将就看就好了


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sunzsh.gitbook.io/xiaoshan.bug/elementui-xin-shang-xian-le-yi-ge-zu-jian-hen-shi-yong.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
