Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加标签属性 #1286

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

添加标签属性 #1286

wants to merge 1 commit into from

Conversation

phanithken
Copy link

为倒计时组件添加时间单位标签

本次提交为 u-count-down.vue 组件添加了四个新的属性,允许用户自定义倒计时中不同时间单位的标签。新属性如下:

  • dayLabel:天的标签
  • hourLabel:小时的标签
  • minuteLabel:分钟的标签
  • secondLabel:秒的标签

每个属性都是字符串类型,有一个默认值,与组件当前的行为相匹配。用户可以覆盖这些默认值,以显示其首选语言或格式的标签。

新属性在组件的模板中使用,替换了之前使用的硬编码标签。组件的行为和样式仍然与之前相同。

此更改应使组件更灵活,更易于在不同的上下文中使用。请审核并让我知道您是否有任何反馈或建议。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants