🎈 perf(按钮): 优化normalButton组件

This commit is contained in:
xuan
2022-09-28 15:23:32 +08:00
parent 4f09a902ac
commit d00604b3f0
50 changed files with 610 additions and 150 deletions
+3
View File
@@ -73,3 +73,6 @@
padding-left: 20px !important;
}
}
.customRightSlot{
margin-right: 20px;
}
+9 -10
View File
@@ -101,22 +101,21 @@ export default memo(
disabled={disabled}
value={inputCon}
placeholder={placeholder}
onInput={(e) => onInputEven(e)}
onInput={e => onInputEven(e)}
/>
<View className={styles.search_closeBtn}>
{!!inputCon && <CloseBtn onClose={() => clearInput()} styleObj={{ width: '20rpx', height: '20rpx', backgroundColor: '#fff', border: '0' }} />}
</View>
{
showScan && <View onClick={() => {
handScan?.()
}}>
<IconFont
name={'icon-saomiao'} size={40} color={'#337FFF'}
></IconFont>
{showScan && (
<View
onClick={() => {
handScan?.()
}}>
<IconFont name={'icon-saomiao'} size={40} color={'#337FFF'}></IconFont>
</View>
}
)}
<View>{customRightSlot}</View>
<View className={styles.customRightSlot}>{customRightSlot}</View>
</View>
</View>
{showBtn && (