tm-groupcheckbox.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["tm-vuetify/components/tm-groupcheckbox/tm-groupcheckbox"],{
  2. /***/ 664:
  3. /*!*******************************************************************************************!*\
  4. !*** D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-groupcheckbox/tm-groupcheckbox.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_groupcheckbox_vue_vue_type_template_id_58965d4d___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tm-groupcheckbox.vue?vue&type=template&id=58965d4d& */ 665);
  11. /* harmony import */ var _tm_groupcheckbox_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tm-groupcheckbox.vue?vue&type=script&lang=js& */ 667);
  12. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _tm_groupcheckbox_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_groupcheckbox_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_groupcheckbox_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  18. _tm_groupcheckbox_vue_vue_type_template_id_58965d4d___WEBPACK_IMPORTED_MODULE_0__["render"],
  19. _tm_groupcheckbox_vue_vue_type_template_id_58965d4d___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  20. false,
  21. null,
  22. null,
  23. null,
  24. false,
  25. _tm_groupcheckbox_vue_vue_type_template_id_58965d4d___WEBPACK_IMPORTED_MODULE_0__["components"],
  26. renderjs
  27. )
  28. component.options.__file = "tm-vuetify/components/tm-groupcheckbox/tm-groupcheckbox.vue"
  29. /* harmony default export */ __webpack_exports__["default"] = (component.exports);
  30. /***/ }),
  31. /***/ 665:
  32. /*!**************************************************************************************************************************!*\
  33. !*** D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-groupcheckbox/tm-groupcheckbox.vue?vue&type=template&id=58965d4d& ***!
  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_groupcheckbox_vue_vue_type_template_id_58965d4d___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-groupcheckbox.vue?vue&type=template&id=58965d4d& */ 666);
  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_groupcheckbox_vue_vue_type_template_id_58965d4d___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_groupcheckbox_vue_vue_type_template_id_58965d4d___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_groupcheckbox_vue_vue_type_template_id_58965d4d___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_groupcheckbox_vue_vue_type_template_id_58965d4d___WEBPACK_IMPORTED_MODULE_0__["components"]; });
  44. /***/ }),
  45. /***/ 666:
  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-groupcheckbox/tm-groupcheckbox.vue?vue&type=template&id=58965d4d& ***!
  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. }
  63. var recyclableRender = false
  64. var staticRenderFns = []
  65. render._withStripped = true
  66. /***/ }),
  67. /***/ 667:
  68. /*!********************************************************************************************************************!*\
  69. !*** D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-groupcheckbox/tm-groupcheckbox.vue?vue&type=script&lang=js& ***!
  70. \********************************************************************************************************************/
  71. /*! no static exports found */
  72. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  73. "use strict";
  74. __webpack_require__.r(__webpack_exports__);
  75. /* 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_groupcheckbox_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-groupcheckbox.vue?vue&type=script&lang=js& */ 668);
  76. /* 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_groupcheckbox_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_groupcheckbox_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
  77. /* 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_groupcheckbox_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_groupcheckbox_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  78. /* 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_groupcheckbox_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
  79. /***/ }),
  80. /***/ 668:
  81. /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  82. !*** ./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-groupcheckbox/tm-groupcheckbox.vue?vue&type=script&lang=js& ***!
  83. \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  84. /*! no static exports found */
  85. /***/ (function(module, exports, __webpack_require__) {
  86. "use strict";
  87. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; //
  88. //
  89. //
  90. //
  91. //
  92. //
  93. /**
  94. * 复选框组
  95. * @description 此组件必须,配合tm-checkbox组件使用,不可单独使用。
  96. * @property {Number} max = [999] 最大选择数量
  97. * @property {String} name = [] 默认:'',提交表单时的的字段名称标识
  98. * @property {String} customClass = [] 默认:'',自定义class
  99. * @property {Function} change 任何一个checkekBox改变将会触发此事件,并携带选中的数组数据。
  100. * @property {Function} error 如果超过最大选择数量将会触发此事件。
  101. * @example <tm-groupcheckbox><tm-checkbox v-model="checked" label="苹果"></tm-checkbox></tm-groupcheckbox>
  102. *
  103. */var _default =
  104. {
  105. name: 'tm-groupcheckbox',
  106. props: {
  107. // 最大选择数量
  108. max: {
  109. type: Number,
  110. default: 9999 },
  111. //提交表单时的的字段名称
  112. name: {
  113. type: String,
  114. default: '' },
  115. customClass: {
  116. type: String,
  117. default: '' } },
  118. data: function data() {
  119. return {};
  120. },
  121. mounted: function mounted() {
  122. this.$nextTick(function () {
  123. this.$emit('change', this.getVal());
  124. });
  125. },
  126. methods: {
  127. change: function change(e) {
  128. this.$emit('change', e);
  129. },
  130. // 获取选中的结果 。
  131. getVal: function getVal() {
  132. var box = [];
  133. function findchild(p, index) {var _preat$$options;
  134. var preat = p;
  135. if (((_preat$$options = preat.$options) === null || _preat$$options === void 0 ? void 0 : _preat$$options.name) === 'tm-checkbox') {
  136. if (preat.changValue) {
  137. box.push({ index: index, value: preat.name, checked: preat.changValue });
  138. }
  139. } else {
  140. if (preat.$children.length > 0) {
  141. preat.$children.forEach(function (item) {
  142. findchild(item, index++);
  143. });
  144. }
  145. }
  146. };
  147. findchild(this, 0);
  148. return box;
  149. },
  150. // 反选。如果一个都没选择。反选就相当于全选。如果是全选,则结果是全部不选。
  151. // 执行完毕后。不能立即使用getVal获取结果需要this.$nextTick
  152. reverseVal: function reverseVal() {
  153. function findchild(p, index) {var _preat$$options2;
  154. var preat = p;
  155. if (((_preat$$options2 = preat.$options) === null || _preat$$options2 === void 0 ? void 0 : _preat$$options2.name) === 'tm-checkbox') {
  156. preat.changValue = !preat.changValue;
  157. } else {
  158. if (preat.$children.length > 0) {
  159. preat.$children.forEach(function (item) {
  160. findchild(item, index++);
  161. });
  162. }
  163. }
  164. };
  165. findchild(this, 0);
  166. },
  167. // 清除选中。
  168. clear: function clear() {
  169. function findchild(p, index) {var _preat$$options3;
  170. var preat = p;
  171. if (((_preat$$options3 = preat.$options) === null || _preat$$options3 === void 0 ? void 0 : _preat$$options3.name) === 'tm-checkbox') {
  172. preat.changValue = false;
  173. } else {
  174. if (preat.$children.length > 0) {
  175. preat.$children.forEach(function (item) {
  176. findchild(item, index++);
  177. });
  178. }
  179. }
  180. };
  181. findchild(this, 0);
  182. },
  183. // 只有当超过最选选项时才会发出错误。
  184. error: function error() {
  185. uni.showToast({
  186. title: "超过选择限制", icon: 'none' });
  187. this.$emit('error', "超过选择限制");
  188. } } };exports.default = _default;
  189. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  190. /***/ })
  191. }]);
  192. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/tm-vuetify/components/tm-groupcheckbox/tm-groupcheckbox.js.map
  193. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  194. 'tm-vuetify/components/tm-groupcheckbox/tm-groupcheckbox-create-component',
  195. {
  196. 'tm-vuetify/components/tm-groupcheckbox/tm-groupcheckbox-create-component':(function(module, exports, __webpack_require__){
  197. __webpack_require__('1')['createComponent'](__webpack_require__(664))
  198. })
  199. },
  200. [['tm-vuetify/components/tm-groupcheckbox/tm-groupcheckbox-create-component']]
  201. ]);