@nutui/nutui-react 1.4.2 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v1.4.3
2
+ `2023-01-11`
3
+
4
+ * :sparkles: feat: watermark水印组件taro编译h5环境下适配 (#570) @junjun666
5
+ * :bug: fix: 修复 Badge 组件无法修改背景色问题 (#582) @xiaoyatong
6
+ * :bug: fix: inputNumber 组件在 taro h5 环境样式缺失 (#577) @oasis-cloud
7
+ * :bug: fix: drag 组件 Trao h5 适配 (#576) @irisSong
8
+ * :bug: fix: backtop组件demo优化,父级元素内滚动方式优化 (#575) @vickyYe
9
+ * :bug: fix: dialog 组件 okText 属性缺失默认值 (#573) @oasis-cloud
10
+ * :bug: fix: signature组件适配taro:h5 (#571) @irisSong
11
+ * 📖 docs: 更新多语言文档 (#584) @xiaoyatong
12
+
1
13
  # v1.4.2
2
14
  `2023-01-04`
3
15
 
@@ -279,34 +279,32 @@ var CustomRender = function CustomRender(props) {
279
279
  if (modelValue.length > 0) {
280
280
  var tagIndex = 0;
281
281
  var selectedRegionC = selectedRegion && Object.assign(selectedRegion);
282
- var _loop = function _loop() {
282
+ for (var index = 0; index < modelValue.length; index++) {
283
283
  if (regionList[tabName[index]].length === 0) {
284
284
  tagIndex = index - 1;
285
285
  setTabIndex(index - 1);
286
- return "break";
286
+ break;
287
287
  } else {
288
- var val = modelValue[index];
289
- var arr = regionList[tabName[index]];
290
- if (privateType === 'custom') {
291
- selectedRegionC[[tabName[index]]] = arr.filter(function (item) {
292
- return item.id === val;
293
- })[0];
294
- } else if (privateType === 'custom2') {
295
- var sumArr = [];
296
- arr.forEach(function (item) {
297
- sumArr.push.apply(sumArr, _toConsumableArray(item.list));
298
- });
299
- selectedRegionC[[tabName[index]]] = sumArr.filter(function (item) {
300
- return item.id === val;
301
- })[0];
302
- }
303
- tagIndex = index;
304
- setSelectedRegion(selectedRegionC);
288
+ (function () {
289
+ var val = modelValue[index];
290
+ var arr = regionList[tabName[index]];
291
+ if (privateType === 'custom') {
292
+ selectedRegionC[[tabName[index]]] = arr.filter(function (item) {
293
+ return item.id === val;
294
+ })[0];
295
+ } else if (privateType === 'custom2') {
296
+ var sumArr = [];
297
+ arr.forEach(function (item) {
298
+ sumArr.push.apply(sumArr, _toConsumableArray(item.list));
299
+ });
300
+ selectedRegionC[[tabName[index]]] = sumArr.filter(function (item) {
301
+ return item.id === val;
302
+ })[0];
303
+ }
304
+ tagIndex = index;
305
+ setSelectedRegion(selectedRegionC);
306
+ })();
305
307
  }
306
- };
307
- for (var index = 0; index < modelValue.length; index++) {
308
- var _ret = _loop();
309
- if (_ret === "break") break;
310
308
  }
311
309
  setTabIndex(tagIndex);
312
310
  lineAnimation(tagIndex);
@@ -49,6 +49,8 @@ var BackTop = function BackTop(props) {
49
49
  var init = function init() {
50
50
  if (elId && document.getElementById(elId)) {
51
51
  scrollEl.current = document.getElementById(elId);
52
+ } else {
53
+ scrollEl.current = window;
52
54
  }
53
55
  addEventListener();
54
56
  initCancelAniFrame();
@@ -71,6 +73,7 @@ var BackTop = function BackTop(props) {
71
73
  window.scrollTo(0, y);
72
74
  } else {
73
75
  scrollEl.current.scrollTop = y;
76
+ window.scrollTo(0, y);
74
77
  }
75
78
  };
76
79
  var scrollAnimation = function scrollAnimation() {
package/dist/esm/Badge.js CHANGED
@@ -41,7 +41,7 @@ var Badge = function Badge(props) {
41
41
  style.top = "".concat(Number(top) || parseFloat(top) || 0, "px");
42
42
  style.right = "".concat(Number(right) || parseFloat(right) || 0, "px");
43
43
  style.zIndex = zIndex;
44
- style.backgroundColor = color;
44
+ style.background = color;
45
45
  return style;
46
46
  };
47
47
  return React__default.createElement("div", {
@@ -51,7 +51,7 @@ var InternalBarrage = function InternalBarrage(props, ref) {
51
51
  }, [barrageList]);
52
52
  var run = function run() {
53
53
  clearInterval(timer.current);
54
- timer.current = setInterval(function () {
54
+ timer.current = window.setInterval(function () {
55
55
  play();
56
56
  run();
57
57
  }, frequency);
@@ -321,42 +321,44 @@ var InternalCascader = function InternalCascader(props) {
321
321
  var initData = /*#__PURE__*/function () {
322
322
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
323
323
  return _regeneratorRuntime.wrap(function _callee$(_context) {
324
- while (1) switch (_context.prev = _context.next) {
325
- case 0:
326
- // 初始化开始处理数据
327
- state.lazyLoadMap.clear();
328
- if (convertConfig && Object.keys(convertConfig).length > 0) {
329
- state.optionsData = convertListToOptions(options, convertConfig);
330
- } else {
331
- state.optionsData = options;
332
- }
333
- state.tree = new Tree(state.optionsData, {
334
- value: state.configs.valueKey,
335
- text: state.configs.textKey,
336
- children: state.configs.childrenKey
337
- });
338
- if (!(isLazy() && !state.tree.nodes.length)) {
324
+ while (1) {
325
+ switch (_context.prev = _context.next) {
326
+ case 0:
327
+ // 初始化开始处理数据
328
+ state.lazyLoadMap.clear();
329
+ if (convertConfig && Object.keys(convertConfig).length > 0) {
330
+ state.optionsData = convertListToOptions(options, convertConfig);
331
+ } else {
332
+ state.optionsData = options;
333
+ }
334
+ state.tree = new Tree(state.optionsData, {
335
+ value: state.configs.valueKey,
336
+ text: state.configs.textKey,
337
+ children: state.configs.childrenKey
338
+ });
339
+ if (!(isLazy() && !state.tree.nodes.length)) {
340
+ _context.next = 6;
341
+ break;
342
+ }
339
343
  _context.next = 6;
340
- break;
341
- }
342
- _context.next = 6;
343
- return invokeLazyLoad({
344
- root: true,
345
- loading: true,
346
- text: '',
347
- value: ''
348
- });
349
- case 6:
350
- state.panes = [{
351
- nodes: state.tree.nodes,
352
- selectedNode: null,
353
- paneKey: 'c1'
354
- }];
355
- syncValue();
356
- setOptiosData(state.panes);
357
- case 9:
358
- case "end":
359
- return _context.stop();
344
+ return invokeLazyLoad({
345
+ root: true,
346
+ loading: true,
347
+ text: '',
348
+ value: ''
349
+ });
350
+ case 6:
351
+ state.panes = [{
352
+ nodes: state.tree.nodes,
353
+ selectedNode: null,
354
+ paneKey: 'c1'
355
+ }];
356
+ syncValue();
357
+ setOptiosData(state.panes);
358
+ case 9:
359
+ case "end":
360
+ return _context.stop();
361
+ }
360
362
  }
361
363
  }, _callee);
362
364
  }));
@@ -369,88 +371,92 @@ var InternalCascader = function InternalCascader(props) {
369
371
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
370
372
  var currentValue, needToSync, parent, last, pathNodes;
371
373
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
372
- while (1) switch (_context3.prev = _context3.next) {
373
- case 0:
374
- currentValue = state.innerValue;
375
- if (!(currentValue === undefined || !state.tree.nodes.length)) {
376
- _context3.next = 3;
377
- break;
378
- }
379
- return _context3.abrupt("return");
380
- case 3:
381
- if (!(currentValue.length === 0)) {
382
- _context3.next = 6;
383
- break;
384
- }
385
- state.tabsCursor = 0;
386
- // state.panes = [{ nodes: state.tree.nodes, selectedNode: null }];
387
- return _context3.abrupt("return");
388
- case 6:
389
- needToSync = currentValue;
390
- if (!(isLazy() && Array.isArray(currentValue) && currentValue.length)) {
391
- _context3.next = 19;
392
- break;
393
- }
394
- needToSync = [];
395
- parent = state.tree.nodes.find(function (node) {
396
- return node.value === currentValue[0];
397
- });
398
- if (!parent) {
399
- _context3.next = 19;
400
- break;
401
- }
402
- needToSync = [parent.value];
403
- state.initLoading = true;
404
- _context3.next = 15;
405
- return currentValue.slice(1).reduce( /*#__PURE__*/function () {
406
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(p, value) {
407
- var _parent$children;
408
- var parent, node;
409
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
410
- while (1) switch (_context2.prev = _context2.next) {
411
- case 0:
412
- _context2.next = 2;
413
- return p;
414
- case 2:
415
- parent = _context2.sent;
416
- _context2.next = 5;
417
- return invokeLazyLoad(parent);
418
- case 5:
419
- node = parent === null || parent === void 0 ? void 0 : (_parent$children = parent.children) === null || _parent$children === void 0 ? void 0 : _parent$children.find(function (item) {
420
- return item.value === value;
421
- });
422
- if (node) {
423
- needToSync.push(value);
424
- }
425
- return _context2.abrupt("return", Promise.resolve(node));
426
- case 8:
427
- case "end":
428
- return _context2.stop();
429
- }
430
- }, _callee2);
431
- }));
432
- return function (_x, _x2) {
433
- return _ref3.apply(this, arguments);
434
- };
435
- }(), Promise.resolve(parent));
436
- case 15:
437
- last = _context3.sent;
438
- _context3.next = 18;
439
- return invokeLazyLoad(last);
440
- case 18:
441
- state.initLoading = false;
442
- case 19:
443
- if (needToSync.length && currentValue === value) {
444
- pathNodes = state.tree.getPathNodesByValue(needToSync);
445
- pathNodes.forEach(function (node, index) {
446
- state.tabsCursor = index;
447
- // 当有默认值时,不触发 chooseItem 里的 emit 事件
448
- _chooseItem(node, true);
374
+ while (1) {
375
+ switch (_context3.prev = _context3.next) {
376
+ case 0:
377
+ currentValue = state.innerValue;
378
+ if (!(currentValue === undefined || !state.tree.nodes.length)) {
379
+ _context3.next = 3;
380
+ break;
381
+ }
382
+ return _context3.abrupt("return");
383
+ case 3:
384
+ if (!(currentValue.length === 0)) {
385
+ _context3.next = 6;
386
+ break;
387
+ }
388
+ state.tabsCursor = 0;
389
+ // state.panes = [{ nodes: state.tree.nodes, selectedNode: null }];
390
+ return _context3.abrupt("return");
391
+ case 6:
392
+ needToSync = currentValue;
393
+ if (!(isLazy() && Array.isArray(currentValue) && currentValue.length)) {
394
+ _context3.next = 19;
395
+ break;
396
+ }
397
+ needToSync = [];
398
+ parent = state.tree.nodes.find(function (node) {
399
+ return node.value === currentValue[0];
449
400
  });
450
- }
451
- case 20:
452
- case "end":
453
- return _context3.stop();
401
+ if (!parent) {
402
+ _context3.next = 19;
403
+ break;
404
+ }
405
+ needToSync = [parent.value];
406
+ state.initLoading = true;
407
+ _context3.next = 15;
408
+ return currentValue.slice(1).reduce( /*#__PURE__*/function () {
409
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(p, value) {
410
+ var _parent$children;
411
+ var parent, node;
412
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
413
+ while (1) {
414
+ switch (_context2.prev = _context2.next) {
415
+ case 0:
416
+ _context2.next = 2;
417
+ return p;
418
+ case 2:
419
+ parent = _context2.sent;
420
+ _context2.next = 5;
421
+ return invokeLazyLoad(parent);
422
+ case 5:
423
+ node = parent === null || parent === void 0 ? void 0 : (_parent$children = parent.children) === null || _parent$children === void 0 ? void 0 : _parent$children.find(function (item) {
424
+ return item.value === value;
425
+ });
426
+ if (node) {
427
+ needToSync.push(value);
428
+ }
429
+ return _context2.abrupt("return", Promise.resolve(node));
430
+ case 8:
431
+ case "end":
432
+ return _context2.stop();
433
+ }
434
+ }
435
+ }, _callee2);
436
+ }));
437
+ return function (_x, _x2) {
438
+ return _ref3.apply(this, arguments);
439
+ };
440
+ }(), Promise.resolve(parent));
441
+ case 15:
442
+ last = _context3.sent;
443
+ _context3.next = 18;
444
+ return invokeLazyLoad(last);
445
+ case 18:
446
+ state.initLoading = false;
447
+ case 19:
448
+ if (needToSync.length && currentValue === value) {
449
+ pathNodes = state.tree.getPathNodesByValue(needToSync);
450
+ pathNodes.forEach(function (node, index) {
451
+ state.tabsCursor = index;
452
+ // 当有默认值时,不触发 chooseItem 里的 emit 事件
453
+ _chooseItem(node, true);
454
+ });
455
+ }
456
+ case 20:
457
+ case "end":
458
+ return _context3.stop();
459
+ }
454
460
  }
455
461
  }, _callee3);
456
462
  }));
@@ -462,53 +468,55 @@ var InternalCascader = function InternalCascader(props) {
462
468
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(node) {
463
469
  var parent, lazyLoadPromise, nodes;
464
470
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
465
- while (1) switch (_context4.prev = _context4.next) {
466
- case 0:
467
- if (node) {
468
- _context4.next = 2;
469
- break;
470
- }
471
- return _context4.abrupt("return");
472
- case 2:
473
- if (state.configs.lazyLoad) {
474
- _context4.next = 5;
475
- break;
476
- }
477
- node.leaf = true;
478
- return _context4.abrupt("return");
479
- case 5:
480
- if (!(state.tree.isLeaf(node, isLazy()) || state.tree.hasChildren(node, isLazy()))) {
481
- _context4.next = 7;
482
- break;
483
- }
484
- return _context4.abrupt("return");
485
- case 7:
486
- node.loading = true;
487
- parent = node.root ? null : node;
488
- lazyLoadPromise = state.lazyLoadMap.get(node);
489
- if (!lazyLoadPromise) {
490
- lazyLoadPromise = new Promise(function (resolve) {
491
- var _state$configs$lazyLo, _state$configs;
492
- // 外部必须resolve
493
- (_state$configs$lazyLo = (_state$configs = state.configs).lazyLoad) === null || _state$configs$lazyLo === void 0 ? void 0 : _state$configs$lazyLo.call(_state$configs, node, resolve);
494
- });
495
- state.lazyLoadMap.set(node, lazyLoadPromise);
496
- }
497
- _context4.next = 13;
498
- return lazyLoadPromise;
499
- case 13:
500
- nodes = _context4.sent;
501
- if (Array.isArray(nodes) && nodes.length > 0) {
502
- state.tree.updateChildren(nodes, parent);
503
- } else {
504
- // 如果加载完成后没有提供子节点,作为叶子节点处理
471
+ while (1) {
472
+ switch (_context4.prev = _context4.next) {
473
+ case 0:
474
+ if (node) {
475
+ _context4.next = 2;
476
+ break;
477
+ }
478
+ return _context4.abrupt("return");
479
+ case 2:
480
+ if (state.configs.lazyLoad) {
481
+ _context4.next = 5;
482
+ break;
483
+ }
505
484
  node.leaf = true;
506
- }
507
- node.loading = false;
508
- state.lazyLoadMap["delete"](node);
509
- case 17:
510
- case "end":
511
- return _context4.stop();
485
+ return _context4.abrupt("return");
486
+ case 5:
487
+ if (!(state.tree.isLeaf(node, isLazy()) || state.tree.hasChildren(node, isLazy()))) {
488
+ _context4.next = 7;
489
+ break;
490
+ }
491
+ return _context4.abrupt("return");
492
+ case 7:
493
+ node.loading = true;
494
+ parent = node.root ? null : node;
495
+ lazyLoadPromise = state.lazyLoadMap.get(node);
496
+ if (!lazyLoadPromise) {
497
+ lazyLoadPromise = new Promise(function (resolve) {
498
+ var _state$configs$lazyLo, _state$configs;
499
+ // 外部必须resolve
500
+ (_state$configs$lazyLo = (_state$configs = state.configs).lazyLoad) === null || _state$configs$lazyLo === void 0 ? void 0 : _state$configs$lazyLo.call(_state$configs, node, resolve);
501
+ });
502
+ state.lazyLoadMap.set(node, lazyLoadPromise);
503
+ }
504
+ _context4.next = 13;
505
+ return lazyLoadPromise;
506
+ case 13:
507
+ nodes = _context4.sent;
508
+ if (Array.isArray(nodes) && nodes.length > 0) {
509
+ state.tree.updateChildren(nodes, parent);
510
+ } else {
511
+ // 如果加载完成后没有提供子节点,作为叶子节点处理
512
+ node.leaf = true;
513
+ }
514
+ node.loading = false;
515
+ state.lazyLoadMap["delete"](node);
516
+ case 17:
517
+ case "end":
518
+ return _context4.stop();
519
+ }
512
520
  }
513
521
  }, _callee4);
514
522
  }));
@@ -528,79 +536,81 @@ var InternalCascader = function InternalCascader(props) {
528
536
  var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(node, type) {
529
537
  var pathNodes, optionParams, level, _pathNodes, _optionParams;
530
538
  return _regeneratorRuntime.wrap(function _callee5$(_context5) {
531
- while (1) switch (_context5.prev = _context5.next) {
532
- case 0:
533
- if (!(!type && node.disabled || !state.panes[state.tabsCursor])) {
534
- _context5.next = 2;
535
- break;
536
- }
537
- return _context5.abrupt("return");
538
- case 2:
539
- if (!state.tree.isLeaf(node, isLazy())) {
540
- _context5.next = 10;
541
- break;
542
- }
543
- node.leaf = true;
544
- state.panes[state.tabsCursor].selectedNode = node;
545
- state.panes = state.panes.slice(0, node.level + 1);
546
- if (!type) {
547
- pathNodes = state.panes.map(function (item) {
548
- return item.selectedNode;
549
- });
550
- optionParams = pathNodes.map(function (item) {
551
- return item.value;
552
- });
553
- onChange(optionParams, pathNodes);
554
- onPathChange(optionParams, pathNodes);
555
- }
556
- setOptiosData(state.panes);
557
- close();
558
- return _context5.abrupt("return");
559
- case 10:
560
- if (!state.tree.hasChildren(node, isLazy())) {
561
- _context5.next = 20;
562
- break;
563
- }
564
- level = node.level + 1;
565
- state.panes[state.tabsCursor].selectedNode = node;
566
- state.panes = state.panes.slice(0, level);
567
- state.tabsCursor = level;
568
- state.panes.push({
569
- nodes: node.children || [],
570
- selectedNode: null,
571
- paneKey: "c".concat(state.tabsCursor + 1)
572
- });
573
- setTabvalue("c".concat(state.tabsCursor + 1));
574
- setOptiosData(state.panes);
575
- if (!type) {
576
- _pathNodes = state.panes.map(function (item) {
577
- return item.selectedNode;
578
- });
579
- _optionParams = _pathNodes.map(function (item) {
580
- return item === null || item === void 0 ? void 0 : item.value;
581
- });
582
- onPathChange(_optionParams, _pathNodes);
583
- }
584
- return _context5.abrupt("return");
585
- case 20:
586
- state.currentProcessNode = node;
587
- if (!node.loading) {
588
- _context5.next = 23;
589
- break;
590
- }
591
- return _context5.abrupt("return");
592
- case 23:
593
- _context5.next = 25;
594
- return invokeLazyLoad(node);
595
- case 25:
596
- if (state.currentProcessNode === node) {
539
+ while (1) {
540
+ switch (_context5.prev = _context5.next) {
541
+ case 0:
542
+ if (!(!type && node.disabled || !state.panes[state.tabsCursor])) {
543
+ _context5.next = 2;
544
+ break;
545
+ }
546
+ return _context5.abrupt("return");
547
+ case 2:
548
+ if (!state.tree.isLeaf(node, isLazy())) {
549
+ _context5.next = 10;
550
+ break;
551
+ }
552
+ node.leaf = true;
597
553
  state.panes[state.tabsCursor].selectedNode = node;
598
- _chooseItem(node, type);
599
- }
600
- setOptiosData(state.panes);
601
- case 27:
602
- case "end":
603
- return _context5.stop();
554
+ state.panes = state.panes.slice(0, node.level + 1);
555
+ if (!type) {
556
+ pathNodes = state.panes.map(function (item) {
557
+ return item.selectedNode;
558
+ });
559
+ optionParams = pathNodes.map(function (item) {
560
+ return item.value;
561
+ });
562
+ onChange(optionParams, pathNodes);
563
+ onPathChange(optionParams, pathNodes);
564
+ }
565
+ setOptiosData(state.panes);
566
+ close();
567
+ return _context5.abrupt("return");
568
+ case 10:
569
+ if (!state.tree.hasChildren(node, isLazy())) {
570
+ _context5.next = 20;
571
+ break;
572
+ }
573
+ level = node.level + 1;
574
+ state.panes[state.tabsCursor].selectedNode = node;
575
+ state.panes = state.panes.slice(0, level);
576
+ state.tabsCursor = level;
577
+ state.panes.push({
578
+ nodes: node.children || [],
579
+ selectedNode: null,
580
+ paneKey: "c".concat(state.tabsCursor + 1)
581
+ });
582
+ setTabvalue("c".concat(state.tabsCursor + 1));
583
+ setOptiosData(state.panes);
584
+ if (!type) {
585
+ _pathNodes = state.panes.map(function (item) {
586
+ return item.selectedNode;
587
+ });
588
+ _optionParams = _pathNodes.map(function (item) {
589
+ return item === null || item === void 0 ? void 0 : item.value;
590
+ });
591
+ onPathChange(_optionParams, _pathNodes);
592
+ }
593
+ return _context5.abrupt("return");
594
+ case 20:
595
+ state.currentProcessNode = node;
596
+ if (!node.loading) {
597
+ _context5.next = 23;
598
+ break;
599
+ }
600
+ return _context5.abrupt("return");
601
+ case 23:
602
+ _context5.next = 25;
603
+ return invokeLazyLoad(node);
604
+ case 25:
605
+ if (state.currentProcessNode === node) {
606
+ state.panes[state.tabsCursor].selectedNode = node;
607
+ _chooseItem(node, type);
608
+ }
609
+ setOptiosData(state.panes);
610
+ case 27:
611
+ case "end":
612
+ return _context5.stop();
613
+ }
604
614
  }
605
615
  }, _callee5);
606
616
  }));
@@ -7,7 +7,7 @@ import classNames from 'classnames';
7
7
  import { CSSTransition } from 'react-transition-group';
8
8
  import { useConfig } from './ConfigProvider.js';
9
9
  import Icon from './Icon.js';
10
- import { O as Overlay } from './overlay-41da5070.js';
10
+ import { O as Overlay } from './overlay-85e1180a.js';
11
11
  import { C as ComponentDefaults } from './typings-1c5f2628.js';
12
12
  import './bem-893ad28d.js';
13
13
  import '@bem-react/classname';
@@ -181,7 +181,7 @@ var NoticeBar = function NoticeBar(props) {
181
181
  var startRollEasy = function startRollEasy() {
182
182
  showhorseLamp();
183
183
  var time = height / speed / 4 < 1 ? Number((height / speed / 4).toFixed(1)) * 1000 : ~~(height / speed / 4) * 1000;
184
- var timerCurr = setInterval(showhorseLamp, time + Number(standTime));
184
+ var timerCurr = window.setInterval(showhorseLamp, time + Number(standTime));
185
185
  SetTimer(timerCurr);
186
186
  };
187
187
  var showhorseLamp = function showhorseLamp() {
@@ -194,7 +194,7 @@ var NoticeBar = function NoticeBar(props) {
194
194
  }, time);
195
195
  };
196
196
  var startRoll = function startRoll() {
197
- var timerCurr = setInterval(function () {
197
+ var timerCurr = window.setInterval(function () {
198
198
  var chunk = 100;
199
199
  for (var i = 0; i < chunk; i++) {
200
200
  scroll(i, !(i < chunk - 1));
@@ -1,5 +1,5 @@
1
- import { O as Overlay } from './overlay-41da5070.js';
2
- export { O as default } from './overlay-41da5070.js';
1
+ import { O as Overlay } from './overlay-85e1180a.js';
2
+ export { O as default } from './overlay-85e1180a.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import './bem-893ad28d.js';