diff --git a/src/packages/__VUE/countdown/index.vue b/src/packages/__VUE/countdown/index.vue index c2f8fb87b9b7e90e278421fe83a468cff358b485..b410c26de0b072a8499603ac1a5082c5db591130 100644 --- a/src/packages/__VUE/countdown/index.vue +++ b/src/packages/__VUE/countdown/index.vue @@ -12,10 +12,8 @@ {{ resttime.h }}:{{ resttime.m }}:{{ resttime.s }} + >:{{ resttime.m }}:{{ resttime.s }} @@ -73,7 +71,7 @@ export default create({ } }, components: {}, - emits: ['input', 'on-end', 'on-restart', 'on-paused'], + emits: ['input', 'on-end', 'on-restart', 'on-paused', 'update:modelValue'], setup(props, { emit, slots }) { console.log('componentName', componentName); @@ -209,10 +207,7 @@ export default create({ const d = ts >= ds ? parseInt(ts / ds) : 0; const h = ts - d * ds >= hs ? parseInt((ts - d * ds) / hs) : 0; - const m = - ts - d * ds - h * hs >= ms - ? parseInt((ts - d * ds - h * hs) / ms) - : 0; + const m = ts - d * ds - h * hs >= ms ? parseInt((ts - d * ds - h * hs) / ms) : 0; const s = Math.round((ts - d * ds - h * hs - m * ms) / 1000); if (d >= 0) rest.d = d + ''; diff --git a/src/packages/__VUE/noticebar/index.vue b/src/packages/__VUE/noticebar/index.vue index 480370f01c68f36764b96826cc79cb7c3e07636f..cfe86d05a283fb7cd874c9fd7f3fa506c92fafb2 100644 --- a/src/packages/__VUE/noticebar/index.vue +++ b/src/packages/__VUE/noticebar/index.vue @@ -8,26 +8,14 @@ @click="handleClick" v-if="direction == 'across'" > - - + + - +