@@ -178,39 +178,6 @@ export function difference(a, b) {
178178 return Array . from ( new Set ( a . concat ( b ) . filter ( v => ! aSet . has ( v ) || ! bSet . has ( v ) ) ) )
179179}
180180
181- export function requestFullScreen ( element ) {
182- // 判断各种浏览器,找到正确的方法
183- const requestMethod = element . requestFullScreen || //W3C
184- element . webkitRequestFullScreen || //FireFox
185- element . mozRequestFullScreen || //Chrome等
186- element . msRequestFullScreen ; //IE11
187- if ( requestMethod ) {
188- requestMethod . call ( element ) ;
189- } else if ( typeof window . ActiveXObject !== "undefined" ) { //for Internet Explorer
190- const wScript = new window . ActiveXObject ( "WScript.Shell" ) ;
191- if ( wScript !== null ) {
192- wScript . SendKeys ( "{F11}" ) ;
193- }
194- }
195- }
196-
197- //退出全屏 判断浏览器种类
198- export function exitFull ( ) {
199- // 判断各种浏览器,找到正确的方法
200- const exitMethod = document . exitFullscreen || //W3C
201- document . mozCancelFullScreen || //FireFox
202- document . webkitExitFullscreen || //Chrome等
203- document . webkitExitFullscreen ; //IE11
204- if ( exitMethod ) {
205- exitMethod . call ( document ) ;
206- } else if ( typeof window . ActiveXObject !== "undefined" ) { //for Internet Explorer
207- const wScript = new window . ActiveXObject ( "WScript.Shell" ) ;
208- if ( wScript !== null ) {
209- wScript . SendKeys ( "{F11}" ) ;
210- }
211- }
212- }
213-
214181export function renderSize ( value ) {
215182 if ( null == value || value === '' || value === 0 ) {
216183 return "0 Bytes" ;
0 commit comments