best-gauge.js 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["components/best-gauge/best-gauge"],{
  2. /***/ 221:
  3. /*!*****************************************************************************************************************!*\
  4. !*** C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/components/best-gauge/best-gauge.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 _best_gauge_vue_vue_type_template_id_0b57f1c4___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./best-gauge.vue?vue&type=template&id=0b57f1c4& */ 222);
  11. /* harmony import */ var _best_gauge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./best-gauge.vue?vue&type=script&lang=js& */ 224);
  12. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _best_gauge_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 _best_gauge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  13. /* harmony import */ var _best_gauge_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./best-gauge.vue?vue&type=style&index=0&lang=css& */ 226);
  14. /* harmony import */ var _Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
  15. var renderjs
  16. /* normalize component */
  17. var component = Object(_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  18. _best_gauge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  19. _best_gauge_vue_vue_type_template_id_0b57f1c4___WEBPACK_IMPORTED_MODULE_0__["render"],
  20. _best_gauge_vue_vue_type_template_id_0b57f1c4___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  21. false,
  22. null,
  23. null,
  24. null,
  25. false,
  26. _best_gauge_vue_vue_type_template_id_0b57f1c4___WEBPACK_IMPORTED_MODULE_0__["components"],
  27. renderjs
  28. )
  29. component.options.__file = "components/best-gauge/best-gauge.vue"
  30. /* harmony default export */ __webpack_exports__["default"] = (component.exports);
  31. /***/ }),
  32. /***/ 222:
  33. /*!************************************************************************************************************************************************!*\
  34. !*** C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/components/best-gauge/best-gauge.vue?vue&type=template&id=0b57f1c4& ***!
  35. \************************************************************************************************************************************************/
  36. /*! exports provided: render, staticRenderFns, recyclableRender, components */
  37. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38. "use strict";
  39. __webpack_require__.r(__webpack_exports__);
  40. /* harmony import */ var _Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_vue_vue_type_template_id_0b57f1c4___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./best-gauge.vue?vue&type=template&id=0b57f1c4& */ 223);
  41. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_vue_vue_type_template_id_0b57f1c4___WEBPACK_IMPORTED_MODULE_0__["render"]; });
  42. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_vue_vue_type_template_id_0b57f1c4___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
  43. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_vue_vue_type_template_id_0b57f1c4___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
  44. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_vue_vue_type_template_id_0b57f1c4___WEBPACK_IMPORTED_MODULE_0__["components"]; });
  45. /***/ }),
  46. /***/ 223:
  47. /*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  48. !*** ./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!C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/components/best-gauge/best-gauge.vue?vue&type=template&id=0b57f1c4& ***!
  49. \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  50. /*! exports provided: render, staticRenderFns, recyclableRender, components */
  51. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52. "use strict";
  53. __webpack_require__.r(__webpack_exports__);
  54. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
  55. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
  56. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
  57. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
  58. var components
  59. var render = function() {
  60. var _vm = this
  61. var _h = _vm.$createElement
  62. var _c = _vm._self._c || _h
  63. }
  64. var recyclableRender = false
  65. var staticRenderFns = []
  66. render._withStripped = true
  67. /***/ }),
  68. /***/ 224:
  69. /*!******************************************************************************************************************************************!*\
  70. !*** C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/components/best-gauge/best-gauge.vue?vue&type=script&lang=js& ***!
  71. \******************************************************************************************************************************************/
  72. /*! no static exports found */
  73. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  74. "use strict";
  75. __webpack_require__.r(__webpack_exports__);
  76. /* harmony import */ var _Desktop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./best-gauge.vue?vue&type=script&lang=js& */ 225);
  77. /* harmony import */ var _Desktop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
  78. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Desktop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_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 _Desktop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  79. /* harmony default export */ __webpack_exports__["default"] = (_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
  80. /***/ }),
  81. /***/ 225:
  82. /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  83. !*** ./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!C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/components/best-gauge/best-gauge.vue?vue&type=script&lang=js& ***!
  84. \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  85. /*! no static exports found */
  86. /***/ (function(module, exports, __webpack_require__) {
  87. "use strict";
  88. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;} //
  89. //
  90. //
  91. //
  92. //
  93. //
  94. var mainDefault = {
  95. bgColor: 'rgba(30,130,250,1)',
  96. startAngle: 0.75,
  97. endAngle: 0.25,
  98. width: uni.upx2px(350),
  99. padding: 10,
  100. min: 0,
  101. max: 100,
  102. value: 0,
  103. unit: '℃',
  104. name: 'CK01排风温度显示',
  105. detail: {},
  106. axisTick: [] };
  107. var detailDefault = { //标题、数值、单位设置
  108. title: { //name字体位置设置
  109. offsetCenter: [0, uni.upx2px(160)], //距离圆心直径偏移
  110. color: '#A9CCFD',
  111. fontSize: uni.upx2px(28),
  112. fontWeight: 'normal',
  113. textAlign: 'center' },
  114. value: {
  115. color: '#FFFFFF',
  116. fontSize: uni.upx2px(48),
  117. fontWeight: 'bolder',
  118. offsetCenter: [-10, uni.upx2px(15)], //距离圆心直径偏移
  119. textAlign: 'center' },
  120. unit: {
  121. color: '#FFFFFF',
  122. fontSize: uni.upx2px(48),
  123. fontWeight: 'normal',
  124. offsetCenter: [0, uni.upx2px(15)], //距离圆心直径偏移
  125. textAlign: 'center' } };
  126. var axisTickDefault = { //轴刻度线
  127. width: uni.upx2px(25), //轴长
  128. number: 6, //轴数量(相当于几等分)
  129. color: '#33ff33,#ff9933', //轴颜色(第一个值--指针之前的颜色,之后的颜色)
  130. subNumber: 10, //一个大刻度分成几个小刻度
  131. subWidth: uni.upx2px(25),
  132. subHeight: 1,
  133. padding: uni.upx2px(10) //刻度距离边距
  134. };
  135. var axisTickDefaultSmall = { //轴刻度线(里圈)
  136. width: uni.upx2px(10), //轴长
  137. number: 6, //轴数量(相当于几等分)
  138. color: '#33ff33,#ff9933', //轴颜色(第一个值--指针之前的颜色,之后的颜色)
  139. subNumber: 10, //大刻度之间分成几个小刻度
  140. subWidth: uni.upx2px(6),
  141. subHeight: 1,
  142. padding: uni.upx2px(25) //刻度距离边距
  143. };var _default2 =
  144. {
  145. data: function data() {
  146. return {
  147. gaugeOption: {} };
  148. },
  149. props: {
  150. config: {
  151. type: Object,
  152. default: function _default() {
  153. return {};
  154. } },
  155. bgColor: {
  156. type: String,
  157. default: 'linear-gradient(180deg, #2A8FFB 0%, #0467FB 100%)' } },
  158. computed: {
  159. _width: function _width() {
  160. return this.config.width || mainDefault.width;
  161. },
  162. _status: function _status() {
  163. return String(this.config.status) !== 'false' ? true : false;
  164. },
  165. _dStatus: function _dStatus() {
  166. return String(this.config.status) === 'true' || this.config.status === 1 ? 1 : 0;
  167. } },
  168. watch: {
  169. config: {
  170. handler: function handler(newVal, oldVal) {
  171. this.initCharts();
  172. },
  173. deep: true } },
  174. mounted: function mounted() {
  175. this.initCharts();
  176. },
  177. methods: {
  178. initCharts: function initCharts() {
  179. // 自动填充数据
  180. var gaugeOption = this.fillInData();
  181. var uChartsGauge = null;
  182. uChartsGauge = uni.createCanvasContext(gaugeOption.id, this);
  183. uChartsGauge.fillStyle = gaugeOption.bgColor;
  184. uChartsGauge.fillRect(0, 0, gaugeOption.width, gaugeOption.width);
  185. uChartsGauge.save();
  186. this.drawGauge(gaugeOption, uChartsGauge);
  187. },
  188. drawGauge: function drawGauge(options, ctx) {
  189. var centerPosition = {
  190. x: options.width / 2,
  191. y: options.width / 2 };
  192. // 总角度数(为什么要加1)假装下图是个圆 0.75PI ~ 0.25PI 实际间隔1.5PI
  193. // 1.5PI
  194. // ——
  195. // 1.0PI | | 0PI
  196. // ——
  197. // 0.5PI
  198. var totalAngle = options.startAngle - options.endAngle + 1;
  199. // 计算半径
  200. var radius = Math.min(centerPosition.x, centerPosition.y);
  201. //画刻度线
  202. for (var idx = 0, len = options.axisTick.length; idx < len; idx++) {
  203. var gaugeOption = options.axisTick[idx];
  204. radius -= gaugeOption.padding + gaugeOption.width / 2;
  205. var criticalPoint = Math.floor(options.value / (options.max / gaugeOption.number)); //大刻度临界点
  206. var subCriticalPoint = Math.floor(options.value / (options.max / gaugeOption.subNumber /
  207. gaugeOption.number)); //小刻度临界点
  208. if (options.value * 1 === 0) {
  209. criticalPoint = -1; //防止0的时候被上颜色
  210. subCriticalPoint = -1;
  211. }
  212. var colors = gaugeOption.color.split(',');
  213. colors[1] = colors[1] || colors[0];
  214. var splitAngle = totalAngle / gaugeOption.number;
  215. var childAngle = totalAngle / gaugeOption.number / gaugeOption.subNumber;
  216. var startX = -radius - gaugeOption.width * 0.5;
  217. var endX = -radius - gaugeOption.width * 0.5 + gaugeOption.width;
  218. var childEndX = -radius - gaugeOption.width * 0.5 + gaugeOption.subWidth;
  219. // 画大刻度
  220. var maxScaleData = _objectSpread(_objectSpread({},
  221. centerPosition), {}, {
  222. startX: startX,
  223. endX: endX,
  224. splitAngle: splitAngle,
  225. criticalPoint: criticalPoint,
  226. colors: colors,
  227. startAngle: options.startAngle,
  228. width: gaugeOption.subHeight,
  229. number: gaugeOption.number });
  230. this.drawScale(ctx, maxScaleData);
  231. // 画小刻度
  232. var minScaleData = _objectSpread(_objectSpread({},
  233. centerPosition), {}, {
  234. startX: startX,
  235. colors: colors,
  236. criticalPoint: subCriticalPoint,
  237. endX: childEndX,
  238. splitAngle: childAngle,
  239. startAngle: options.startAngle,
  240. width: gaugeOption.subHeight,
  241. number: gaugeOption.number * gaugeOption.subNumber });
  242. this.drawScale(ctx, minScaleData);
  243. }
  244. // 标题
  245. var titleObj = _objectSpread(_objectSpread(_objectSpread({},
  246. options.detail.title),
  247. centerPosition), {}, {
  248. name: options.name });
  249. this.drawText(ctx, titleObj);
  250. // 数值
  251. var _fillText = options.value * 1 === 0 ? 0 : (options.value * 1).toFixed(1);
  252. var valueObj = _objectSpread(_objectSpread(_objectSpread({},
  253. options.detail.value),
  254. centerPosition), {}, {
  255. name: _fillText });
  256. this.drawText(ctx, valueObj);
  257. // 单位
  258. if (String(options.unit) !== 'false') {
  259. var unitObj = _objectSpread(_objectSpread(_objectSpread({},
  260. options.detail.unit),
  261. centerPosition), {}, {
  262. name: options.unit });
  263. var valueLength = (options.value * 1).toFixed(1).length;
  264. var _oftX = (valueLength - 1.5) / 2 * valueObj.fontSize; //需要保证单位在数值后面
  265. unitObj.offsetCenter[0] += _oftX;
  266. this.drawText(ctx, unitObj);
  267. }
  268. ctx.draw();
  269. },
  270. // 画字
  271. drawText: function drawText(ctx, data) {var
  272. fontSize =
  273. data.fontSize,fontWeight = data.fontWeight,color = data.color,textAlign = data.textAlign,offsetCenter = data.offsetCenter,x = data.x,y = data.y,name = data.name;
  274. // 画标题
  275. ctx.beginPath();
  276. // 设置字体
  277. ctx.font = fontWeight + " " + fontSize + "px MicrosoftYaHei";
  278. // 设置颜色
  279. ctx.fillStyle = color;
  280. // 设置水平对齐方式
  281. ctx.textAlign = textAlign;
  282. // 设置中心点
  283. ctx.translate(x, y);
  284. // 绘制文字(参数:要写的字,x坐标,y坐标)
  285. ctx.fillText.apply(ctx, [name].concat(_toConsumableArray(offsetCenter)));
  286. ctx.closePath();
  287. ctx.stroke();
  288. ctx.restore();
  289. ctx.save();
  290. },
  291. // 画刻度
  292. drawScale: function drawScale(ctx, data) {var
  293. number =
  294. data.number,criticalPoint = data.criticalPoint,startX = data.startX,endX = data.endX,splitAngle = data.splitAngle,width = data.width,x = data.x,y = data.y,startAngle = data.startAngle,colors = data.colors;
  295. // 设置中心点
  296. ctx.translate(x, y);
  297. ctx.rotate((startAngle - 1) * Math.PI);
  298. for (var i = 0; i <= number; i++) {
  299. ctx.beginPath();
  300. ctx.setStrokeStyle(i <= criticalPoint ? colors[0] : colors[1]);
  301. ctx.setLineWidth(width);
  302. ctx.moveTo(startX, 0);
  303. ctx.lineTo(endX, 0);
  304. ctx.stroke();
  305. ctx.rotate(splitAngle * Math.PI);
  306. }
  307. // 清除状态
  308. ctx.restore();
  309. ctx.save();
  310. },
  311. fillInData: function fillInData() {
  312. var gaugeOption = this.deepClone(mainDefault, this.config);
  313. for (var _k in detailDefault) {
  314. gaugeOption.detail[_k] = this.deepClone(detailDefault[_k], gaugeOption.detail[_k]);
  315. }
  316. if (gaugeOption.axisTickLength === undefined || gaugeOption.axisTickLength === null) {
  317. if (!(gaugeOption.axisTick instanceof Array)) {
  318. gaugeOption.axisTick = [gaugeOption.axisTick];
  319. }
  320. } else {
  321. gaugeOption.axisTick = gaugeOption.axisTick || [];
  322. }
  323. var axisTickLength = gaugeOption.axisTickLength || gaugeOption.axisTick.length || 1;
  324. var axisTick = [].concat(gaugeOption.axisTick);
  325. for (var idx = 0, len = axisTickLength; idx < len; idx++) {
  326. var defaultData = idx == 0 ? axisTickDefault : axisTickDefaultSmall;
  327. axisTick[idx] = axisTick[idx] || {};
  328. if (idx > 0 && !axisTick[idx].padding) {
  329. axisTick[idx].padding = +axisTick[idx - 1].width;
  330. }
  331. axisTick[idx] = this.deepClone(defaultData, axisTick[idx]);
  332. }
  333. gaugeOption.axisTick = axisTick;
  334. return gaugeOption;
  335. },
  336. deepClone: function deepClone(source, target) {//待优化代码
  337. var _obj = {};
  338. source = source || {};
  339. target = target || {};
  340. Object.assign(_obj, source, target);
  341. return JSON.parse(JSON.stringify(_obj));
  342. } } };exports.default = _default2;
  343. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  344. /***/ }),
  345. /***/ 226:
  346. /*!**************************************************************************************************************************************************!*\
  347. !*** C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/components/best-gauge/best-gauge.vue?vue&type=style&index=0&lang=css& ***!
  348. \**************************************************************************************************************************************************/
  349. /*! no static exports found */
  350. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  351. "use strict";
  352. __webpack_require__.r(__webpack_exports__);
  353. /* harmony import */ var _Desktop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./best-gauge.vue?vue&type=style&index=0&lang=css& */ 227);
  354. /* harmony import */ var _Desktop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
  355. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Desktop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Desktop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  356. /* harmony default export */ __webpack_exports__["default"] = (_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Desktop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_best_gauge_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
  357. /***/ }),
  358. /***/ 227:
  359. /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  360. !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/components/best-gauge/best-gauge.vue?vue&type=style&index=0&lang=css& ***!
  361. \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  362. /*! no static exports found */
  363. /***/ (function(module, exports, __webpack_require__) {
  364. // extracted by mini-css-extract-plugin
  365. if(false) { var cssReload; }
  366. /***/ })
  367. }]);
  368. //# sourceMappingURL=../../../.sourcemap/mp-weixin/components/best-gauge/best-gauge.js.map
  369. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  370. 'components/best-gauge/best-gauge-create-component',
  371. {
  372. 'components/best-gauge/best-gauge-create-component':(function(module, exports, __webpack_require__){
  373. __webpack_require__('1')['createComponent'](__webpack_require__(221))
  374. })
  375. },
  376. [['components/best-gauge/best-gauge-create-component']]
  377. ]);