-
Notifications
You must be signed in to change notification settings - Fork 296
feat(input): 适配鸿蒙、小程序、H5、RN; 鸿蒙下无法隐藏密码Icon #2338
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
Merged
xiaoyatong
merged 2 commits into
jdf2e:dev-harmony
from
oasis-cloud:feat/input-standard
Jun 18, 2024
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,4 +27,5 @@ exports = module.exports = [ | |
| 'safearea', | ||
| 'hoverbuttonitem', | ||
| 'configprovider', | ||
| 'input', | ||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/nutui-taro-demo-rn/src/dentry/pages/input/index.config.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| export default { | ||
| navigationBarTitleText: 'Input', | ||
| navigationBarTitleText: 'Input' | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| export default <>button</>; | ||
| import Demo from '@/packages/input/demo.taro'; | ||
| export default Demo; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ const Demo12 = () => { | |
| title: 'onClick', | ||
| }) | ||
| } | ||
| placeholderTextColor="#757575" | ||
| /> | ||
| </> | ||
| ) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,39 @@ | ||
| import React, { useState } from 'react' | ||
| import { Input, Cell, Button } from '@nutui/nutui-react-taro' | ||
| import { Text, View } from '@tarojs/components' | ||
| import { Button, Input } from '@nutui/nutui-react-taro' | ||
| import pxTransform from '@/utils/px-transform' | ||
|
|
||
| const Demo7 = () => { | ||
| const [keyword, setKeyword] = useState('') | ||
| return ( | ||
| <Cell | ||
| style={{ alignItems: 'center' }} | ||
| title={ | ||
| <Input | ||
| placeholder="受控下的清除" | ||
| value={keyword} | ||
| onChange={setKeyword} | ||
| /> | ||
| } | ||
| extra={ | ||
| <Button | ||
| type="primary" | ||
| size="small" | ||
| onClick={() => { | ||
| setKeyword('') | ||
| }} | ||
| > | ||
| <View | ||
| style={{ | ||
| display: 'flex', | ||
| flexWrap: 'nowrap', | ||
| alignItems: 'center', | ||
| flexDirection: 'row', | ||
| backgroundColor: '#ffffff', | ||
| }} | ||
| > | ||
| <Input | ||
| placeholder="受控下的清除" | ||
| value={keyword} | ||
| onChange={setKeyword} | ||
| placeholderTextColor="#757575" | ||
| /> | ||
| <Button | ||
| type="primary" | ||
| size="small" | ||
| onClick={() => { | ||
| setKeyword('') | ||
| }} | ||
| style={{ marginRight: pxTransform(10) }} | ||
| > | ||
| <Text style={{ color: '#ffffff', fontSize: pxTransform(12) }}> | ||
| 点我清除 | ||
| </Button> | ||
| } | ||
| /> | ||
| </Text> | ||
| </Button> | ||
| </View> | ||
| ) | ||
| } | ||
| export default Demo7 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tip
Codebase Verification
重复添加
placeholderTextColor属性确实存在于多个 demo 文件中。src/packages/input/demos/taro/demo10.tsx包含了两次相同的placeholderTextColor属性。请检查这些重复添加是否是有意为之,以便在不同场景中进行配置。如果不是,请移除多余的属性。
Analysis chain
重复添加
placeholderTextColor属性。请确保这是有意为之,用于不同场景的配置。Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 77
Script:
Length of output: 78
Script:
Length of output: 1771