✨ feat: 发货单对接70%
This commit is contained in:
@@ -57,6 +57,9 @@
|
||||
}
|
||||
}
|
||||
&--text {
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
align-items: center;
|
||||
color: currentColor;
|
||||
}
|
||||
// active 伪类
|
||||
|
||||
@@ -17,6 +17,7 @@ interface PropsType {
|
||||
onClick?: Function
|
||||
customClassName?: string
|
||||
customStyles?: React.CSSProperties
|
||||
customTextClassName?: string
|
||||
}
|
||||
|
||||
const NormalButton: FC<PropsType> = (props) => {
|
||||
@@ -31,6 +32,7 @@ const NormalButton: FC<PropsType> = (props) => {
|
||||
circle = false,
|
||||
customStyles = {},
|
||||
customClassName = '',
|
||||
customTextClassName = ''
|
||||
} = props
|
||||
const getClassName = () => {
|
||||
const classObject = {
|
||||
@@ -54,7 +56,7 @@ const NormalButton: FC<PropsType> = (props) => {
|
||||
|
||||
return (
|
||||
<View className={classnames(styles['button'], getClassName(), customClassName)} style={customStyles} onClick={handleClick}>
|
||||
<Text className={styles['button--text']}>{children}</Text>
|
||||
<View className={classnames(styles['button--text'], customTextClassName)}>{children}</View>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user