Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

components.EmptyContent里的按钮无法点击问题 #351

Closed
ArSrNa opened this issue Jan 15, 2024 · 1 comment
Closed

components.EmptyContent里的按钮无法点击问题 #351

ArSrNa opened this issue Jan 15, 2024 · 1 comment

Comments

@ArSrNa
Copy link

ArSrNa commented Jan 15, 2024

当这么设置的时候,里面的按钮无法使用,但是文字可以选择

<BaseTable
  components={{
          EmptyContent: () => (<button onClick={console.log}>按钮11111</button>)
     }}
  {...props}
/>

image
image

@ArSrNa
Copy link
Author

ArSrNa commented Jan 15, 2024

已解决,是pointer-events属性造成的,把原来的这个属性删除即可解决
pointer-events: unset !important;

@ArSrNa ArSrNa closed this as completed Jan 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant