tm-countdown.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["tm-vuetify/components/tm-countdown/tm-countdown"],{
  2. /***/ 478:
  3. /*!***********************************************************************************!*\
  4. !*** D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-countdown/tm-countdown.vue ***!
  5. \***********************************************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8. "use strict";
  9. __webpack_require__.r(__webpack_exports__);
  10. /* harmony import */ var _tm_countdown_vue_vue_type_template_id_f33d0fa6___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tm-countdown.vue?vue&type=template&id=f33d0fa6& */ 479);
  11. /* harmony import */ var _tm_countdown_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tm-countdown.vue?vue&type=script&lang=js& */ 481);
  12. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _tm_countdown_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _tm_countdown_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  13. /* harmony import */ var _exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
  14. var renderjs
  15. /* normalize component */
  16. var component = Object(_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
  17. _tm_countdown_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  18. _tm_countdown_vue_vue_type_template_id_f33d0fa6___WEBPACK_IMPORTED_MODULE_0__["render"],
  19. _tm_countdown_vue_vue_type_template_id_f33d0fa6___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  20. false,
  21. null,
  22. null,
  23. null,
  24. false,
  25. _tm_countdown_vue_vue_type_template_id_f33d0fa6___WEBPACK_IMPORTED_MODULE_0__["components"],
  26. renderjs
  27. )
  28. component.options.__file = "tm-vuetify/components/tm-countdown/tm-countdown.vue"
  29. /* harmony default export */ __webpack_exports__["default"] = (component.exports);
  30. /***/ }),
  31. /***/ 479:
  32. /*!******************************************************************************************************************!*\
  33. !*** D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-countdown/tm-countdown.vue?vue&type=template&id=f33d0fa6& ***!
  34. \******************************************************************************************************************/
  35. /*! exports provided: render, staticRenderFns, recyclableRender, components */
  36. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37. "use strict";
  38. __webpack_require__.r(__webpack_exports__);
  39. /* harmony import */ var _exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_tm_countdown_vue_vue_type_template_id_f33d0fa6___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tm-countdown.vue?vue&type=template&id=f33d0fa6& */ 480);
  40. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_tm_countdown_vue_vue_type_template_id_f33d0fa6___WEBPACK_IMPORTED_MODULE_0__["render"]; });
  41. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_tm_countdown_vue_vue_type_template_id_f33d0fa6___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
  42. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_tm_countdown_vue_vue_type_template_id_f33d0fa6___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
  43. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_tm_countdown_vue_vue_type_template_id_f33d0fa6___WEBPACK_IMPORTED_MODULE_0__["components"]; });
  44. /***/ }),
  45. /***/ 480:
  46. /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  47. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-countdown/tm-countdown.vue?vue&type=template&id=f33d0fa6& ***!
  48. \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  49. /*! exports provided: render, staticRenderFns, recyclableRender, components */
  50. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51. "use strict";
  52. __webpack_require__.r(__webpack_exports__);
  53. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
  54. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
  55. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
  56. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
  57. var components
  58. var render = function() {
  59. var _vm = this
  60. var _h = _vm.$createElement
  61. var _c = _vm._self._c || _h
  62. if (_vm.$scope.data.scopedSlotsCompiler === "augmented") {
  63. _vm.$setScopedSlotsParams("default", {
  64. timeData: {
  65. data: _vm.time_data,
  66. finish: _vm.isfinish
  67. }
  68. })
  69. }
  70. }
  71. var recyclableRender = false
  72. var staticRenderFns = []
  73. render._withStripped = true
  74. /***/ }),
  75. /***/ 481:
  76. /*!************************************************************************************************************!*\
  77. !*** D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-countdown/tm-countdown.vue?vue&type=script&lang=js& ***!
  78. \************************************************************************************************************/
  79. /*! no static exports found */
  80. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  81. "use strict";
  82. __webpack_require__.r(__webpack_exports__);
  83. /* harmony import */ var _exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_tm_countdown_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tm-countdown.vue?vue&type=script&lang=js& */ 482);
  84. /* harmony import */ var _exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_tm_countdown_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_tm_countdown_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
  85. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_tm_countdown_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_tm_countdown_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  86. /* harmony default export */ __webpack_exports__["default"] = (_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_exe_HBuilderX_3_4_7_20220422_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_tm_countdown_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
  87. /***/ }),
  88. /***/ 482:
  89. /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  90. !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-countdown/tm-countdown.vue?vue&type=script&lang=js& ***!
  91. \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  92. /*! no static exports found */
  93. /***/ (function(module, exports, __webpack_require__) {
  94. "use strict";
  95. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; //
  96. //
  97. //
  98. //
  99. //
  100. //
  101. /**
  102. * 倒计时
  103. * @description 倒计时。
  104. * @property {Number} time = [] 默认 10*1000,单位毫秒,倒计时的总时长。
  105. * @property {String} format = [] 默认 'DD天HH小时MM分SS秒',格式。如果只想要秒:SS秒。
  106. * @property {Boolean} autoStart = [] 默认 true,自动开始倒计时。
  107. * @property {Function} change 时间变化时触发。
  108. * @property {Function} finish 倒计时结束时触发。
  109. * @example <tm-button size="s"><tm-countdown format="SS秒" :time="6*1000">
  110. <template v-slot:default="{timeData}">
  111. {{timeData.finish?'结束':timeData.data.seconds}}
  112. </template>
  113. </tm-countdown></tm-button>
  114. */var _default =
  115. {
  116. name: "tm-countdown",
  117. props: {
  118. time: {
  119. type: Number,
  120. default: 10 * 1000 },
  121. format: {
  122. type: String,
  123. default: 'DD天HH小时MM分SS秒' },
  124. autoStart: {
  125. type: Boolean,
  126. default: true } },
  127. data: function data() {
  128. return {
  129. timid: null,
  130. now: 0,
  131. time_data: {} };
  132. },
  133. computed: {
  134. text: function text() {
  135. var minaox = this.formatTime(this.time - this.now);
  136. var ps = this.format;
  137. ps = ps.replace(/(DD)/g, minaox.day);
  138. ps = ps.replace(/(MM)/g, minaox.minutes);
  139. ps = ps.replace(/(HH)/g, minaox.hour);
  140. ps = ps.replace(/(SS)/g, minaox.seconds);
  141. return ps;
  142. },
  143. isfinish: function isfinish() {
  144. if (this.now == this.time) return true;
  145. return false;
  146. } },
  147. destroyed: function destroyed() {
  148. clearInterval(this.time);
  149. },
  150. mounted: function mounted() {
  151. this.formatTime(this.time);
  152. if (this.autoStart) {
  153. this.start();
  154. }
  155. },
  156. methods: {
  157. formatTime: function formatTime(my_time) {
  158. // var daysRound = Math.floor(my_time/1000/60/60/24);
  159. var hoursRound = Math.floor(my_time / 1000 / 60 / 60 % 24);
  160. var minutesRound = Math.floor(my_time / 1000 / 60 % 60);
  161. var secondsRound = Math.floor(my_time / 1000 % 60);
  162. // var millisecondRound = Math.floor(my_time % 1000);
  163. var time = {
  164. // day:daysRound>9?daysRound:'0'+daysRound,//天
  165. hour: hoursRound > 9 ? hoursRound : '0' + hoursRound, //小时,
  166. minutes: minutesRound > 9 ? minutesRound : '0' + minutesRound, //分.
  167. seconds: secondsRound > 9 ? secondsRound : '0' + secondsRound //秒。
  168. // millisecond:millisecondRound>9?millisecondRound:'0'+millisecondRound//毫秒。
  169. };
  170. this.time_data = time;
  171. return time;
  172. },
  173. // 开始或者继续。
  174. start: function start() {
  175. var t = this;
  176. clearInterval(this.timid);
  177. this.timid = setInterval(function () {
  178. var lst = t.now + 50;
  179. if (lst == t.time) {
  180. t.$emit('finish');
  181. }
  182. if (lst > t.time) {
  183. clearInterval(t.timid);
  184. return;
  185. }
  186. t.now = lst;
  187. t.$emit('change', t.time_data);
  188. }, 50);
  189. },
  190. // 停止,直接结束。
  191. stop: function stop() {
  192. clearInterval(this.timid);
  193. this.now = this.time;
  194. },
  195. // 暂停。
  196. pause: function pause() {
  197. clearInterval(this.timid);
  198. },
  199. // 重置。
  200. resinit: function resinit() {
  201. clearInterval(this.timid);
  202. this.now = 0;
  203. } } };exports.default = _default;
  204. /***/ })
  205. }]);
  206. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/tm-vuetify/components/tm-countdown/tm-countdown.js.map
  207. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  208. 'tm-vuetify/components/tm-countdown/tm-countdown-create-component',
  209. {
  210. 'tm-vuetify/components/tm-countdown/tm-countdown-create-component':(function(module, exports, __webpack_require__){
  211. __webpack_require__('1')['createComponent'](__webpack_require__(478))
  212. })
  213. },
  214. [['tm-vuetify/components/tm-countdown/tm-countdown-create-component']]
  215. ]);