Input Should be editable from Components Javascript/Typescript as inputClassName

未关闭
#468 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
55/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
停滞
技术栈
react, typescript
领域
frontend

调研方向

首先跟踪暴露 popupClassName 和 dropdownClassName 的 picker 组件 API,然后检查使用者如何从 JavaScript 或 TypeScript 传入这些 props。当一个类似的 inputClassName prop 能够从组件 state 动态更改 input(包括其 placeholder 样式)时,工作就完成了。

由索引模型根据 Issue 内容生成。

描述

The component would be much easier to work with if it included an inputClassName in the same way it includes a popupClassName & dropdownClassName. An example of something that can't currently be done dynamically from Javscript/Typescript is changing the placeholder color dynamically. At the moment I must do this from within CSS and can't do it Dynamically based on some state change

主要语言
TypeScript
星标
306
派生
356
平均合并
1 小时 42 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

react-component/picker 的其他 Issue

查看 react-component/picker 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。