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

feat(Input): support format props #1602

Merged
merged 2 commits into from
Sep 25, 2024
Merged

Conversation

anlyyao
Copy link
Collaborator

@anlyyao anlyyao commented Sep 25, 2024

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

fix #1594

💡 需求背景和解决方案

使用参考:

<t-input
    v-model="value"
    label="标签文字"
    placeholder="请输入文字"
    type="number"
    :format="formatFunc"
  ></t-input>
···
const formatFunc = (v) => {
  return Number(v).toFixed(2);
};

📝 更新日志

  • feat(Input): 支持 format 属性

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

Copy link
Contributor

完成

@anlyyao anlyyao changed the title Feature/input/format feat(Input): support format props Sep 25, 2024
@liweijie0812 liweijie0812 merged commit 68b5ca8 into develop Sep 25, 2024
13 checks passed
@liweijie0812 liweijie0812 deleted the feature/input/format branch September 25, 2024 08:12
@github-actions github-actions bot mentioned this pull request Sep 26, 2024
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.

[Input 输入框] type="number"时,如何控制小数精度,对Input原始属性step不支持
2 participants