diff --git a/packages/uni-app-plus/dist/style.css b/packages/uni-app-plus/dist/style.css index c84638b1361ca86e0444ed739ce84d0aa6c170a9..c25f390fb71c577b426f8ea58ad7de3aa0fedc20 100644 --- a/packages/uni-app-plus/dist/style.css +++ b/packages/uni-app-plus/dist/style.css @@ -109,6 +109,39 @@ uni-button[loading]:before { [nvue] uni-swiper-item { position: absolute; } +@keyframes once-show { + from { + top: 0; + } +} +uni-resize-sensor, +uni-resize-sensor > div { + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + overflow: hidden; +} +uni-resize-sensor { + display: block; + z-index: -1; + visibility: hidden; + animation: once-show 1ms; +} +uni-resize-sensor > div > div { + position: absolute; + left: 0; + top: 0; +} +uni-resize-sensor > div:first-child > div { + width: 100000px; + height: 100000px; +} +uni-resize-sensor > div:last-child > div { + width: 200%; + height: 200%; +} uni-text[selectable] { cursor: auto; -webkit-user-select: text; diff --git a/packages/uni-app-plus/src/view/index.ts b/packages/uni-app-plus/src/view/index.ts index 8f6439ea695f980f4ee22a46824c757b5deacf16..0ee259a24b9878fd5facdf04d6a2b084c736d3e6 100644 --- a/packages/uni-app-plus/src/view/index.ts +++ b/packages/uni-app-plus/src/view/index.ts @@ -1,5 +1,6 @@ import '../../style/framework/base.css' import '@dcloudio/uni-h5/style/framework/nvue.css' +import '@dcloudio/uni-components/style/resize-sensor.css' import { initView } from '@dcloudio/uni-core' import { ON_WEBVIEW_READY } from '../constants' import { UniViewJSBridge } from './bridge'