@@ -51,7 +51,7 @@ const Demo = () => (
5151 < LoginPage>
5252 < Banner style= {{ backgroundImage: ` url(${ defaultBannerImage} )` }} / >
5353 < Email name= " userUserName" / >
54- < Password placeholder= " 请输入密码" name= " userPassword" / >
54+ < Password placeholder= " 请输入密码" label = " 密码 " name= " userPassword" / >
5555 < Submit> 提交< / Submit>
5656 < Reset> 重置< / Reset>
5757 < Welcome> 欢迎回来! 登录您的帐户以查看今天的客户:< / Welcome>
@@ -103,11 +103,11 @@ const Demo = () => (
103103 < Logo>
104104 < LoginLogo / >
105105 < / Logo>
106- < Email index= {3 } type= " text" placeholder= " Username " / >
106+ < Email index= {3 } type= " text" placeholder= " Email " / >
107107 < Password index= {2 } / >
108- < Input name = " phone" index= {1 } placeholder= " Phone number" >
108+ < Email rename = " phone" label = " Phone: " type = " tel " index= {1 } placeholder= " Phone number" >
109109 < div> xx< / div>
110- < / Input >
110+ < / Email >
111111 < Banner style= {{ backgroundImage: ` url(${ defaultBannerImage} )` }} / >
112112 < ButtonAfter>
113113 Forgot < a href= " #" > Username / Password? < / a>
@@ -223,7 +223,7 @@ Custom CSS style overrides
223223Components be provided to modify control properties and perform other related functions.
224224
225225` ` ` jsx
226- import LoginPage from ' @react-login-page/page3' ;
226+ import Login from ' @react-login-page/page3' ;
227227// buttons
228228import { Reset , Submit } from ' @react-login-page/page3' ;
229229// blocks
@@ -234,24 +234,24 @@ import { Email, Password } from '@react-login-page/page3';
234234import defaultBannerImage from ' @react-login-page/page3/banner-image' ;
235235
236236// Basic Components
237- import { Button , Input } from ' @react-login-page/page3' ;
237+ import { Button } from ' @react-login-page/page3' ;
238238// or
239- import { Button , Input } from ' react-login-page' ;
239+ import { Button } from ' react-login-page' ;
240240
241- < LoginPage >
241+ < Login >
242242 < Password index= {2 } / >
243- < / LoginPage >
243+ < / Login >
244244
245245// Define the order of `Password` controls
246246< Password index= {2 } / >
247247
248248// Hiding the `Password` control
249249< Password visible= {false } / >
250250
251- // Add input control
252- < Input name = " phone" index= {1 } placeholder= " Phone number" >
253- < svg > ... < / svg >
254- < / Input >
251+ // Add new input control
252+ < Email rename = " phone" label = " Phone: " type = " tel " index= {1 } placeholder= " Phone number" >
253+ < div > xx < / div >
254+ < / Email >
255255
256256// Add content after the button
257257< ButtonAfter>
0 commit comments