소스 검색

feat: 清理点击蒙层事件

huangzhichao 1 년 전
부모
커밋
0d5aa755f0
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      src/plugin/components/custom/index.tsx

+ 1 - 5
src/plugin/components/custom/index.tsx

@@ -136,10 +136,6 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
     setShow(false)
   }
 
-  function clickMask() {
-    closeCustom()
-  }
-
   function adActionReport(eventId, businessType, extParams = {}) {
     const data = createAdActionReportData()
 
@@ -204,7 +200,7 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
 
   return (
     <>
-      {show && <View className='pq-custom' onClick={clickMask} style={{width: `${width}px`}}>
+      {show && <View className='pq-custom' style={{width: `${width}px`}}>
         <View className='custom-container'>
           {/* 广告icon */}
           <View className='icon'>