Comparing version 1.0.16 to 1.0.17
@@ -15,2 +15,3 @@ import { defineComponent, reactive, watch, computed, toRefs, openBlock, createBlock, createVNode, toDisplayString, createCommentVNode } from 'vue'; | ||
updateTime.timer = null; | ||
this.timeObj = Object.assign({ countdownTime: 0 }, getCountdownTime(0)); | ||
} | ||
@@ -17,0 +18,0 @@ }; |
@@ -29,2 +29,3 @@ 'use strict'; | ||
updateTime.timer = null; | ||
this.timeObj = Object.assign({ countdownTime: 0 }, time.getCountdownTime(0)); | ||
} | ||
@@ -31,0 +32,0 @@ }; |
@@ -20,2 +20,3 @@ import { defineComponent, reactive, watch, computed, toRefs, openBlock, createBlock, createVNode, toDisplayString, createCommentVNode, ref, toRef, Fragment, renderSlot, inject, provide, h, getCurrentInstance, onUpdated, onMounted, withDirectives, vShow, nextTick } from 'vue'; | ||
updateTime.timer = null; | ||
this.timeObj = Object.assign({ countdownTime: 0 }, getCountdownTime(0)); | ||
} | ||
@@ -22,0 +23,0 @@ }; |
@@ -6,2 +6,11 @@ var tow = function tow(n) { | ||
var getCountdownTime = function getCountdownTime(timestamp) { | ||
if (!timestamp) { | ||
return { | ||
day: '00', | ||
hour: '00', | ||
minute: '00', | ||
second: '00' | ||
}; | ||
} | ||
var day = tow(Math.floor(timestamp / 86400)); //整数部分代表的是天;一天有24*60*60=86400秒 ; | ||
@@ -8,0 +17,0 @@ |
{ | ||
"name": "c-dhn-act", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"description": "c-dhn-act component", | ||
@@ -5,0 +5,0 @@ "author": "peng.luo@asiainnovations.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
210975
5535