Advertisement

覆盖微信原生组件Switch样式

阅读量:

index.tsx

复制代码
 import { FC, memo, PropsWithChildren } from 'react'

    
 import { View, Switch } from '@tarojs/components'
    
 import classNames from 'classnames'
    
 import styles from './index.module.less'
    
 import { AccurateEmsState } from '../../const'
    
  
    
 interface EmsProps {
    
   /** ems 开 | 关 */
    
   value: AccurateEmsState
    
   onChange: (value: AccurateEmsState) => void
    
 }
    
  
    
 /** * Ems
    
  * @param props 
    
  * @returns 
    
  */
    
 const Component: FC<PropsWithChildren<EmsProps>> = ({ value, onChange }) => {
    
   const getChec

全部评论 (0)

还没有任何评论哟~