Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

[Input] Add basic input component in form #62

Closed
1 task done
Kimi-Gao opened this issue Sep 4, 2019 · 0 comments · Fixed by #77
Closed
1 task done

[Input] Add basic input component in form #62

Kimi-Gao opened this issue Sep 4, 2019 · 0 comments · Fixed by #77
Assignees

Comments

@Kimi-Gao
Copy link
Member

Kimi-Gao commented Sep 4, 2019

Description

Input is a controlled component, it always shows react binding value. It will be used in form as different type

Under normal circumstances, input event should be handled. Its handler should update component's binding value. Otherwise, input box's value will not change.

Type

Hover and focus

Hover:

Focus:

Note: If input is invalid, the color of border will be red series.

With icon

Disabled and readonly

Errors and info

Mark a control as invalid:

Display an error message:

Display an info section:

Disabled info:

Info should support href(such as default linked button):

Others

  • test coverage > 90%
@Kimi-Gao Kimi-Gao added this to the earth-ui@0.6.x milestone Sep 14, 2019
@Kimi-Gao Kimi-Gao added this to To do in earth-ui@0.6.x Sep 20, 2019
@Kimi-Gao Kimi-Gao moved this from To do to In progress in earth-ui@0.6.x Sep 20, 2019
@Kimi-Gao Kimi-Gao self-assigned this Sep 20, 2019
Kimi-Gao added a commit that referenced this issue Oct 1, 2019
@Kimi-Gao Kimi-Gao removed this from In progress (issues) in earth-ui@0.6.x Oct 1, 2019
@Kimi-Gao Kimi-Gao added this to To do in earth-ui@0.7.x Oct 1, 2019
@Kimi-Gao Kimi-Gao moved this from To do to In progress (issues) in earth-ui@0.7.x Oct 1, 2019
Kimi-Gao added a commit that referenced this issue Oct 10, 2019
* feat(input): add new input component

re #62

* add clearable to Input component

* optimize clearable codes

* improve input docs

* optimize remove icon

* add input test and optimize code

* remove uncontrolled input

* fix input test and optimize code

* update input docs

* add focus and moseEnter events to input

* fix state variable of icon to focus

* remove ClearableInput from src

* fix console log errors

* optimize Clear test of Input

* fix tests

* optimize tests, docs and lg icon style

* complete tests of input

* fix home page style issue

* add input public api

* remove redundant code in test
earth-ui@0.7.x automation moved this from In progress (issues) to Done (issues) Oct 10, 2019
@Kimi-Gao Kimi-Gao linked a pull request Feb 10, 2020 that will close this issue
8 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
earth-ui@0.7.x
  
Done (issues)
Development

Successfully merging a pull request may close this issue.

1 participant