🌈 style(eslint): add eslint rules
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Button, Radio, View } from '@tarojs/components'
|
||||
import { FC, ReactNode } from 'react'
|
||||
import type { FC, ReactNode } from 'react'
|
||||
import classnames from 'classnames'
|
||||
import styles from './index.module.scss'
|
||||
|
||||
@@ -25,7 +25,7 @@ const LayoutBlock: FC<PropsType> = (props) => {
|
||||
return classObject
|
||||
}
|
||||
|
||||
const handleClick = (event)=>{
|
||||
const handleClick = (event) => {
|
||||
console.log('event==>', event)
|
||||
onClick && onClick()
|
||||
}
|
||||
@@ -34,7 +34,8 @@ const LayoutBlock: FC<PropsType> = (props) => {
|
||||
<View
|
||||
className={classnames(styles.layoutBlock, getClassName(), customClassName)}
|
||||
style={customStyle}
|
||||
onClick={handleClick}>
|
||||
onClick={handleClick}
|
||||
>
|
||||
{children}
|
||||
</View>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user