Procházet zdrojové kódy

feat: ios18,选段样式问题修复

TIANYONG před 4 měsíci
rodič
revize
ff750a6e5e
1 změnil soubory, kde provedl 8 přidání a 0 odebrání
  1. 8 0
      src/view/selection/index.tsx

+ 8 - 0
src/view/selection/index.tsx

@@ -416,6 +416,14 @@ export default defineComponent({
 												position: "top",
 												className: "selectionToast",
 											});
+											// IOS18.1.1浏览器渲染更新有问题,需要手动更新一下
+											const selectionDom = document.getElementById('selectionBox')
+											if (selectionDom) {
+												selectionDom.style.display = 'none';
+												requestAnimationFrame(() => {
+													selectionDom.style.display = 'block';
+												})
+											}
 										}
 									}}></div>
 								</div>