浏览代码

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'>