tm-form.js 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["tm-vuetify/components/tm-form/tm-form"],{
  2. /***/ 558:
  3. /*!*************************************************************************!*\
  4. !*** D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-form/tm-form.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_form_vue_vue_type_template_id_14a8ec02___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tm-form.vue?vue&type=template&id=14a8ec02& */ 559);
  11. /* harmony import */ var _tm_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tm-form.vue?vue&type=script&lang=js& */ 561);
  12. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _tm_form_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_form_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_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  18. _tm_form_vue_vue_type_template_id_14a8ec02___WEBPACK_IMPORTED_MODULE_0__["render"],
  19. _tm_form_vue_vue_type_template_id_14a8ec02___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  20. false,
  21. null,
  22. null,
  23. null,
  24. false,
  25. _tm_form_vue_vue_type_template_id_14a8ec02___WEBPACK_IMPORTED_MODULE_0__["components"],
  26. renderjs
  27. )
  28. component.options.__file = "tm-vuetify/components/tm-form/tm-form.vue"
  29. /* harmony default export */ __webpack_exports__["default"] = (component.exports);
  30. /***/ }),
  31. /***/ 559:
  32. /*!********************************************************************************************************!*\
  33. !*** D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-form/tm-form.vue?vue&type=template&id=14a8ec02& ***!
  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_form_vue_vue_type_template_id_14a8ec02___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-form.vue?vue&type=template&id=14a8ec02& */ 560);
  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_form_vue_vue_type_template_id_14a8ec02___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_form_vue_vue_type_template_id_14a8ec02___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_form_vue_vue_type_template_id_14a8ec02___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_form_vue_vue_type_template_id_14a8ec02___WEBPACK_IMPORTED_MODULE_0__["components"]; });
  44. /***/ }),
  45. /***/ 560:
  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-form/tm-form.vue?vue&type=template&id=14a8ec02& ***!
  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. /***/ 561:
  68. /*!**************************************************************************************************!*\
  69. !*** D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-form/tm-form.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_form_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-form.vue?vue&type=script&lang=js& */ 562);
  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_form_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_form_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_form_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_form_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_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
  79. /***/ }),
  80. /***/ 562:
  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-form/tm-form.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;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 36));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};} //
  88. //
  89. //
  90. //
  91. //
  92. //
  93. /**
  94. * 表单组件
  95. * @property {String} url = [] 提交时的网址。
  96. * @property {String} method = [POST | GET] 提交时的的方法
  97. * @property {Object} header = [] 提交时的头部对象数据
  98. * @property {Function} submit 验证成功会返回数据集合,验证失败返回false,点击提交按钮时触发。表单内部一定放一个tm-button,注意navtie-type="form"表单专用属性,<tm-button navtie-type="form">提交/tm-button>
  99. * @property {Function} request 请求成功触发的事件,返回请求的数据。
  100. *
  101. */var _default2 =
  102. {
  103. name: "tm-form",
  104. props: {
  105. //提交时的网址。如果填写提交时,不会请求数据。
  106. url: {
  107. type: String,
  108. default: '' },
  109. //请求方法
  110. method: {
  111. type: String,
  112. default: 'POST' //POST | GET
  113. },
  114. //头部数据
  115. header: {
  116. type: Object,
  117. default: function _default() {
  118. return {};
  119. } } },
  120. data: function data() {
  121. return {};
  122. },
  123. mounted: function mounted() {
  124. this.$nextTick( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:
  125. this.init();case 1:case "end":return _context.stop();}}}, _callee, this);})));
  126. },
  127. methods: {
  128. findeChildren: function findeChildren(cl) {
  129. var t = this;
  130. var mubiao = ['tm-input', 'tm-button', 'tm-groupradio', 'tm-groupcheckbox', 'tm-upload', 'tm-rate', 'tm-slider', 'tm-stepper', 'tm-switch'];
  131. var jg = [];
  132. function start(item) {var _item$$options;
  133. var tag = (_item$$options = item.$options) === null || _item$$options === void 0 ? void 0 : _item$$options.name;
  134. var index = mubiao.findIndex(function (citem) {
  135. return tag == citem;
  136. });
  137. if (index > -1) {
  138. if (tag == 'tm-button' && item.$props.navtieType == 'form') {
  139. item.onclick = function () {
  140. t.$nextTick(function () {
  141. t.formSub(jg);
  142. });
  143. };
  144. } else {
  145. if (tag != 'tm-button' && item.$props.name != '') {
  146. jg.push(item);
  147. }
  148. }
  149. } else {
  150. if (Array.isArray(item.$children)) {
  151. item.$children.forEach(function (zcl) {
  152. start(zcl);
  153. });
  154. }
  155. }
  156. }
  157. start(cl);
  158. },
  159. init: function init() {
  160. var cl = this;
  161. this.$nextTick(function () {
  162. this.findeChildren(cl);
  163. });
  164. },
  165. formSub: function formSub(cl) {var _this = this;return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee2() {var bdData, verify, i, _item$$options2, item, tagname, rulst;return _regenerator.default.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:
  166. bdData = {};
  167. verify = true;
  168. i = 0;case 3:if (!(i < cl.length)) {_context2.next = 23;break;}
  169. item = cl[i];
  170. tagname = (_item$$options2 = item.$options) === null || _item$$options2 === void 0 ? void 0 : _item$$options2.name;if (!(
  171. tagname == 'tm-upload')) {_context2.next = 10;break;}
  172. bdData[item.$props.name] = item.getFile();_context2.next = 20;break;case 10:if (!(
  173. tagname == 'tm-input')) {_context2.next = 19;break;}if (!
  174. item.$props.required) {_context2.next = 16;break;}if (
  175. item.verifyInput()) {_context2.next = 16;break;}
  176. verify = false;return _context2.abrupt("break", 23);case 16:
  177. bdData[item.$props.name] = item.$props.value;_context2.next = 20;break;case 19:
  178. if (tagname == 'tm-groupradio' || tagname == 'tm-groupcheckbox') {
  179. bdData[item.$props.name] = item.getVal();
  180. } else if (tagname == 'tm-slider' || tagname == 'tm-stepper' || tagname == 'tm-rate' || tagname == 'tm-switch') {
  181. bdData[item.$props.name] = item.$props.value;
  182. }case 20:i++;_context2.next = 3;break;case 23:if (!(
  183. verify === true)) {_context2.next = 40;break;}
  184. _this.$emit('submit', bdData);if (!(
  185. _this.url !== "")) {_context2.next = 38;break;}
  186. rulst = null;if (!(
  187. _this.method.toLocaleLowerCase() == 'get')) {_context2.next = 33;break;}_context2.next = 30;return (
  188. uni.$tm.request.get(_this.url, bdData, _this.header));case 30:rulst = _context2.sent;_context2.next = 37;break;case 33:if (!(
  189. _this.method.toLocaleLowerCase() == 'post')) {_context2.next = 37;break;}_context2.next = 36;return (
  190. uni.$tm.request.post(_this.url, bdData, _this.header));case 36:rulst = _context2.sent;case 37:
  191. _this.$emit('request', rulst);case 38:_context2.next = 41;break;case 40:
  192. _this.$emit('submit', false);case 41:case "end":return _context2.stop();}}}, _callee2);}))();
  193. },
  194. findeChildren_off: function findeChildren_off(cl) {
  195. var t = this;
  196. var mubiao = ['tm-input', 'tm-button', 'tm-groupradio', 'tm-groupcheckbox', 'tm-upload', 'tm-rate', 'tm-slider', 'tm-stepper', 'tm-switch'];
  197. var jg = [];
  198. function start(item) {var _item$$options3;
  199. var tag = (_item$$options3 = item.$options) === null || _item$$options3 === void 0 ? void 0 : _item$$options3.name;
  200. var index = mubiao.findIndex(function (citem) {
  201. return tag == citem;
  202. });
  203. if (index > -1) {
  204. if (tag == 'tm-button' && item.$props.navtieType == 'form') {
  205. } else {
  206. if (tag != 'tm-button' && item.$props.name != '') {
  207. jg.push(item);
  208. }
  209. }
  210. } else {
  211. if (Array.isArray(item.$children)) {
  212. item.$children.forEach(function (zcl) {
  213. start(zcl);
  214. });
  215. }
  216. }
  217. }
  218. start(cl);
  219. return jg;
  220. },
  221. //手动获取当前表单对象数据,Promise风格。
  222. getFormData: function getFormData() {
  223. var t = this;
  224. return new Promise(function (su, fl) {
  225. t.$nextTick(function () {
  226. var clPren = t.$children[0];
  227. var cl = t.findeChildren_off(clPren);
  228. var bdData = {};
  229. var verify = true;
  230. for (var i = 0; i < cl.length; i++) {var _item$$options4;
  231. var item = cl[i];
  232. var tagname = (_item$$options4 = item.$options) === null || _item$$options4 === void 0 ? void 0 : _item$$options4.name;
  233. if (tagname == 'tm-upload') {
  234. bdData[item.$props.name] = item.getFile();
  235. } else if (tagname == 'tm-input') {
  236. bdData[item.$props.name] = item.$props.value;
  237. } else if (tagname == 'tm-groupradio' || tagname == 'tm-groupcheckbox') {
  238. bdData[item.$props.name] = item.getVal();
  239. } else if (tagname == 'tm-slider' || tagname == 'tm-stepper' || tagname == 'tm-rate' || tagname == 'tm-switch') {
  240. bdData[item.$props.name] = item.$props.value;
  241. }
  242. }
  243. su(bdData);
  244. });
  245. });
  246. } } };exports.default = _default2;
  247. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  248. /***/ })
  249. }]);
  250. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/tm-vuetify/components/tm-form/tm-form.js.map
  251. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  252. 'tm-vuetify/components/tm-form/tm-form-create-component',
  253. {
  254. 'tm-vuetify/components/tm-form/tm-form-create-component':(function(module, exports, __webpack_require__){
  255. __webpack_require__('1')['createComponent'](__webpack_require__(558))
  256. })
  257. },
  258. [['tm-vuetify/components/tm-form/tm-form-create-component']]
  259. ]);