Przeglądaj źródła

解决message遮盖下面的元素的bug

Michael Wang 3 lat temu
rodzic
commit
deae5121db
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      src/styles/global.css

+ 4 - 0
src/styles/global.css

@@ -221,4 +221,8 @@ body {
 https://github.com/TuSimple/naive-ui/blob/cbc2940bd84ea74782b900d2efb2d5cbadedbe1a/src/message/src/styles/index.cssr.ts#L113 */
 .n-message-container {
   height: auto !important;
+  pointer-events: none;
+}
+.n-message-container * {
+  pointer-events: auto;
 }