Browse Source

feat: 清理点击蒙层事件

huangzhichao 1 year ago
parent
commit
0d5aa755f0
1 changed files with 1 additions and 5 deletions
  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)
     setShow(false)
   }
   }
 
 
-  function clickMask() {
-    closeCustom()
-  }
-
   function adActionReport(eventId, businessType, extParams = {}) {
   function adActionReport(eventId, businessType, extParams = {}) {
     const data = createAdActionReportData()
     const data = createAdActionReportData()
 
 
@@ -204,7 +200,7 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
 
 
   return (
   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'>
         <View className='custom-container'>
           {/* 广告icon */}
           {/* 广告icon */}
           <View className='icon'>
           <View className='icon'>