1
- import { reactive , ref , defineComponent , onMounted , onBeforeUnmount , openBlock , createElementBlock , normalizeStyle , createElementVNode , normalizeClass , createCommentVNode , toDisplayString , pushScopeId , popScopeId } from "vue" ;
1
+ import { reactive , ref , defineComponent , onMounted , onBeforeUnmount , openBlock , createElementBlock , normalizeStyle , createElementVNode , normalizeClass , createCommentVNode , toDisplayString } from "vue" ;
2
2
const PI = Math . PI ;
3
3
function sum ( x , y ) {
4
4
return x + y ;
@@ -38,7 +38,7 @@ function getRandomNumberByRange(start, end) {
38
38
}
39
39
function getRandomImg ( imgs ) {
40
40
const len = imgs . length ;
41
- return len > 0 ? imgs [ getRandomNumberByRange ( 0 , len - 1 ) ] : "https://source.unsplash.com/300x150/?book,library" ;
41
+ return len > 0 ? imgs [ getRandomNumberByRange ( 0 , len - 1 ) ] : "https://picsum.photos/300/150?image=" + getRandomNumberByRange ( 0 , 1084 ) ;
42
42
}
43
43
function throttle ( fn , interval , options = { leading : true , trailing : true } ) {
44
44
const { leading, trailing, resultCallback } = options ;
@@ -319,14 +319,9 @@ const _sfc_main = defineComponent({
319
319
} ;
320
320
}
321
321
} ) ;
322
- const _withScopeId = ( n ) => ( pushScopeId ( "data-v-f61c42f2" ) , n = n ( ) , popScopeId ( ) , n ) ;
323
322
const _hoisted_1 = [ "width" , "height" ] ;
324
- const _hoisted_2 = /* @__PURE__ */ _withScopeId ( ( ) => /* @__PURE__ */ createElementVNode ( "i" , { class : "iconfont icon-refresh" } , null , - 1 ) ) ;
325
- const _hoisted_3 = [
326
- _hoisted_2
327
- ] ;
328
- const _hoisted_4 = [ "width" , "height" ] ;
329
- const _hoisted_5 = { class : "slide-verify-slider-text" } ;
323
+ const _hoisted_2 = [ "width" , "height" ] ;
324
+ const _hoisted_3 = { class : "slide-verify-slider-text" } ;
330
325
function _sfc_render ( _ctx , _cache , $props , $setup , $data , $options ) {
331
326
return openBlock ( ) , createElementBlock ( "div" , {
332
327
id : "slideVerify" ,
@@ -346,13 +341,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
346
341
key : 0 ,
347
342
class : "slide-verify-refresh-icon" ,
348
343
onClick : _cache [ 0 ] || ( _cache [ 0 ] = ( ...args ) => _ctx . refresh && _ctx . refresh ( ...args ) )
349
- } , _hoisted_3 ) ) : createCommentVNode ( "" , true ) ,
344
+ } , _cache [ 5 ] || ( _cache [ 5 ] = [
345
+ createElementVNode ( "i" , { class : "iconfont icon-refresh" } , null , - 1 )
346
+ ] ) ) ) : createCommentVNode ( "" , true ) ,
350
347
createElementVNode ( "canvas" , {
351
348
ref : "block" ,
352
349
width : _ctx . w ,
353
350
height : _ctx . h ,
354
351
class : "slide-verify-block"
355
- } , null , 8 , _hoisted_4 ) ,
352
+ } , null , 8 , _hoisted_2 ) ,
356
353
createElementVNode ( "div" , {
357
354
class : normalizeClass ( [ "slide-verify-slider" , {
358
355
"container-active" : _ctx . containerCls . containerActive ,
@@ -377,7 +374,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
377
374
} , null , 2 )
378
375
] , 36 )
379
376
] , 4 ) ,
380
- createElementVNode ( "span" , _hoisted_5 , toDisplayString ( _ctx . sliderText ) , 1 )
377
+ createElementVNode ( "span" , _hoisted_3 , toDisplayString ( _ctx . sliderText ) , 1 )
381
378
] , 2 )
382
379
] , 4 ) ;
383
380
}
0 commit comments