You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
902 lines
89 KiB
902 lines
89 KiB
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["uview-ui/components/u-picker/u-picker"],{ |
|
|
|
/***/ 539: |
|
/*!****************************************************************************************!*\ |
|
!*** C:/Users/lenovo/Desktop/new_git/wx_oms/uview-ui/components/u-picker/u-picker.vue ***! |
|
\****************************************************************************************/ |
|
/*! no static exports found */ |
|
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony import */ var _u_picker_vue_vue_type_template_id_70102400_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./u-picker.vue?vue&type=template&id=70102400&scoped=true& */ 540); |
|
/* harmony import */ var _u_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./u-picker.vue?vue&type=script&lang=js& */ 542); |
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _u_picker_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 _u_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); |
|
/* harmony import */ var _u_picker_vue_vue_type_style_index_0_id_70102400_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./u-picker.vue?vue&type=style&index=0&id=70102400&lang=scss&scoped=true& */ 547); |
|
/* harmony import */ var _D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11); |
|
|
|
var renderjs |
|
|
|
|
|
|
|
|
|
|
|
/* normalize component */ |
|
|
|
var component = Object(_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])( |
|
_u_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], |
|
_u_picker_vue_vue_type_template_id_70102400_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"], |
|
_u_picker_vue_vue_type_template_id_70102400_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], |
|
false, |
|
null, |
|
"70102400", |
|
null, |
|
false, |
|
_u_picker_vue_vue_type_template_id_70102400_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"], |
|
renderjs |
|
) |
|
|
|
component.options.__file = "uview-ui/components/u-picker/u-picker.vue" |
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports); |
|
|
|
/***/ }), |
|
|
|
/***/ 540: |
|
/*!***********************************************************************************************************************************!*\ |
|
!*** C:/Users/lenovo/Desktop/new_git/wx_oms/uview-ui/components/u-picker/u-picker.vue?vue&type=template&id=70102400&scoped=true& ***! |
|
\***********************************************************************************************************************************/ |
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */ |
|
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony import */ var _D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_vue_vue_type_template_id_70102400_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./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!./u-picker.vue?vue&type=template&id=70102400&scoped=true& */ 541); |
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_vue_vue_type_template_id_70102400_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; }); |
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_vue_vue_type_template_id_70102400_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); |
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_vue_vue_type_template_id_70102400_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; }); |
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_vue_vue_type_template_id_70102400_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; }); |
|
|
|
|
|
|
|
/***/ }), |
|
|
|
/***/ 541: |
|
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ |
|
!*** ./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/lenovo/Desktop/new_git/wx_oms/uview-ui/components/u-picker/u-picker.vue?vue&type=template&id=70102400&scoped=true& ***! |
|
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ |
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */ |
|
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); |
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; }); |
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; }); |
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; }); |
|
var components |
|
try { |
|
components = { |
|
uPopup: function() { |
|
return __webpack_require__.e(/*! import() | uview-ui/components/u-popup/u-popup */ "uview-ui/components/u-popup/u-popup").then(__webpack_require__.bind(null, /*! @/uview-ui/components/u-popup/u-popup.vue */ 635)) |
|
} |
|
} |
|
} catch (e) { |
|
if ( |
|
e.message.indexOf("Cannot find module") !== -1 && |
|
e.message.indexOf(".vue") !== -1 |
|
) { |
|
console.error(e.message) |
|
console.error("1. 排查组件名称拼写是否正确") |
|
console.error( |
|
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom" |
|
) |
|
console.error( |
|
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件" |
|
) |
|
} else { |
|
throw e |
|
} |
|
} |
|
var render = function() { |
|
var _vm = this |
|
var _h = _vm.$createElement |
|
var _c = _vm._self._c || _h |
|
var l0 = |
|
!(_vm.mode == "region") && |
|
_vm.mode == "time" && |
|
!_vm.reset && |
|
_vm.params.month |
|
? _vm.__map(_vm.months, function(item, index) { |
|
var $orig = _vm.__get_orig(item) |
|
|
|
var m0 = _vm.formatNumber(item) |
|
return { |
|
$orig: $orig, |
|
m0: m0 |
|
} |
|
}) |
|
: null |
|
var l1 = |
|
!(_vm.mode == "region") && |
|
_vm.mode == "time" && |
|
!_vm.reset && |
|
_vm.params.day |
|
? _vm.__map(_vm.days, function(item, index) { |
|
var $orig = _vm.__get_orig(item) |
|
|
|
var m1 = _vm.formatNumber(item) |
|
return { |
|
$orig: $orig, |
|
m1: m1 |
|
} |
|
}) |
|
: null |
|
var l2 = |
|
!(_vm.mode == "region") && |
|
_vm.mode == "time" && |
|
!_vm.reset && |
|
_vm.params.hour |
|
? _vm.__map(_vm.hours, function(item, index) { |
|
var $orig = _vm.__get_orig(item) |
|
|
|
var m2 = _vm.formatNumber(item) |
|
return { |
|
$orig: $orig, |
|
m2: m2 |
|
} |
|
}) |
|
: null |
|
var l3 = |
|
!(_vm.mode == "region") && |
|
_vm.mode == "time" && |
|
!_vm.reset && |
|
_vm.params.minute |
|
? _vm.__map(_vm.minutes, function(item, index) { |
|
var $orig = _vm.__get_orig(item) |
|
|
|
var m3 = _vm.formatNumber(item) |
|
return { |
|
$orig: $orig, |
|
m3: m3 |
|
} |
|
}) |
|
: null |
|
var l4 = |
|
!(_vm.mode == "region") && |
|
_vm.mode == "time" && |
|
!_vm.reset && |
|
_vm.params.second |
|
? _vm.__map(_vm.seconds, function(item, index) { |
|
var $orig = _vm.__get_orig(item) |
|
|
|
var m4 = _vm.formatNumber(item) |
|
return { |
|
$orig: $orig, |
|
m4: m4 |
|
} |
|
}) |
|
: null |
|
var l5 = |
|
!(_vm.mode == "region") && |
|
!(_vm.mode == "time") && |
|
_vm.mode == "selector" && |
|
!_vm.reset |
|
? _vm.__map(_vm.range, function(item, index) { |
|
var $orig = _vm.__get_orig(item) |
|
|
|
var m5 = _vm.getItemValue(item, "selector") |
|
return { |
|
$orig: $orig, |
|
m5: m5 |
|
} |
|
}) |
|
: null |
|
var l7 = |
|
!(_vm.mode == "region") && |
|
!(_vm.mode == "time") && |
|
!(_vm.mode == "selector") && |
|
_vm.mode == "multiSelector" |
|
? _vm.__map(_vm.range, function(item, index) { |
|
var $orig = _vm.__get_orig(item) |
|
|
|
var l6 = !_vm.reset |
|
? _vm.__map(item, function(item1, index1) { |
|
var $orig = _vm.__get_orig(item1) |
|
|
|
var m6 = _vm.getItemValue(item1, "multiSelector") |
|
return { |
|
$orig: $orig, |
|
m6: m6 |
|
} |
|
}) |
|
: null |
|
return { |
|
$orig: $orig, |
|
l6: l6 |
|
} |
|
}) |
|
: null |
|
_vm.$mp.data = Object.assign( |
|
{}, |
|
{ |
|
$root: { |
|
l0: l0, |
|
l1: l1, |
|
l2: l2, |
|
l3: l3, |
|
l4: l4, |
|
l5: l5, |
|
l7: l7 |
|
} |
|
} |
|
) |
|
} |
|
var recyclableRender = false |
|
var staticRenderFns = [] |
|
render._withStripped = true |
|
|
|
|
|
|
|
/***/ }), |
|
|
|
/***/ 542: |
|
/*!*****************************************************************************************************************!*\ |
|
!*** C:/Users/lenovo/Desktop/new_git/wx_oms/uview-ui/components/u-picker/u-picker.vue?vue&type=script&lang=js& ***! |
|
\*****************************************************************************************************************/ |
|
/*! no static exports found */ |
|
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony import */ var _D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./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!./u-picker.vue?vue&type=script&lang=js& */ 543); |
|
/* harmony import */ var _D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_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 _D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); |
|
/* harmony default export */ __webpack_exports__["default"] = (_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); |
|
|
|
/***/ }), |
|
|
|
/***/ 543: |
|
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ |
|
!*** ./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/lenovo/Desktop/new_git/wx_oms/uview-ui/components/u-picker/u-picker.vue?vue&type=script&lang=js& ***! |
|
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ |
|
/*! no static exports found */ |
|
/***/ (function(module, exports, __webpack_require__) { |
|
|
|
"use strict"; |
|
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _province = _interopRequireDefault(__webpack_require__(/*! ../../libs/util/province.js */ 544)); |
|
var _city = _interopRequireDefault(__webpack_require__(/*! ../../libs/util/city.js */ 545)); |
|
var _area = _interopRequireDefault(__webpack_require__(/*! ../../libs/util/area.js */ 546));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}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;} |
|
|
|
/** |
|
* picker picker弹出选择器 |
|
* @description 此选择器有两种弹出模式:一是时间模式,可以配置年,日,月,时,分,秒参数 二是地区模式,可以配置省,市,区参数 |
|
* @tutorial https://www.uviewui.com/components/picker.html |
|
* @property {Object} params 需要显示的参数,见官网说明 |
|
* @property {String} mode 模式选择,region-地区类型,time-时间类型(默认time) |
|
* @property {String Number} start-year 可选的开始年份,mode=time时有效(默认1950) |
|
* @property {String Number} end-year 可选的结束年份,mode=time时有效(默认2050) |
|
* @property {Boolean} safe-area-inset-bottom 是否开启底部安全区适配(默认false) |
|
* @property {Boolean} show-time-tag 时间模式时,是否显示后面的年月日中文提示 |
|
* @property {String} cancel-color 取消按钮的颜色(默认#606266) |
|
* @property {String} confirm-color 确认按钮的颜色(默认#2979ff) |
|
* @property {String} default-time 默认选中的时间,mode=time时有效 |
|
* @property {String} confirm-text 确认按钮的文字 |
|
* @property {String} cancel-text 取消按钮的文字 |
|
* @property {String} default-region 默认选中的地区,中文形式,mode=region时有效 |
|
* @property {String} default-code 默认选中的地区,编号形式,mode=region时有效 |
|
* @property {Boolean} mask-close-able 是否允许通过点击遮罩关闭Picker(默认true) |
|
* @property {String Number} z-index 弹出时的z-index值(默认1075) |
|
* @property {Array} default-selector 数组形式,其中每一项表示选择了range对应项中的第几个 |
|
* @property {Array} range 自定义选择的数据,mode=selector或mode=multiSelector时有效 |
|
* @property {String} range-key 当range参数的元素为对象时,指定Object中的哪个key的值作为选择器显示内容 |
|
* @event {Function} confirm 点击确定按钮,返回当前选择的值 |
|
* @event {Function} cancel 点击取消按钮,返回当前选择的值 |
|
* @example <u-picker v-model="show" mode="time"></u-picker> |
|
*/var _default2 = |
|
{ |
|
name: 'u-picker', |
|
props: { |
|
// picker中需要显示的参数 |
|
params: { |
|
type: Object, |
|
default: function _default() { |
|
return { |
|
year: true, |
|
month: true, |
|
day: true, |
|
hour: false, |
|
minute: false, |
|
second: false, |
|
province: true, |
|
city: true, |
|
area: true, |
|
timestamp: true }; |
|
|
|
} }, |
|
|
|
// 当mode=selector或者mode=multiSelector时,提供的数组 |
|
range: { |
|
type: Array, |
|
default: function _default() { |
|
return []; |
|
} }, |
|
|
|
// 当mode=selector或者mode=multiSelector时,提供的默认选中的下标 |
|
defaultSelector: { |
|
type: Array, |
|
default: function _default() { |
|
return [0]; |
|
} }, |
|
|
|
// 当 range 是一个 Array<Object> 时,通过 range-key 来指定 Object 中 key 的值作为选择器显示内容 |
|
rangeKey: { |
|
type: String, |
|
default: '' }, |
|
|
|
// 模式选择,region-地区类型,time-时间类型,selector-单列模式,multiSelector-多列模式 |
|
mode: { |
|
type: String, |
|
default: 'time' }, |
|
|
|
// 年份开始时间 |
|
startYear: { |
|
type: [String, Number], |
|
default: 1950 }, |
|
|
|
// 年份结束时间 |
|
endYear: { |
|
type: [String, Number], |
|
default: 2050 }, |
|
|
|
// "取消"按钮的颜色 |
|
cancelColor: { |
|
type: String, |
|
default: '#606266' }, |
|
|
|
// "确定"按钮的颜色 |
|
confirmColor: { |
|
type: String, |
|
default: '#2979ff' }, |
|
|
|
// 默认显示的时间,2025-07-02 || 2025-07-02 13:01:00 || 2025/07/02 |
|
defaultTime: { |
|
type: String, |
|
default: '' }, |
|
|
|
// 默认显示的地区,可传类似["河北省", "秦皇岛市", "北戴河区"] |
|
defaultRegion: { |
|
type: Array, |
|
default: function _default() { |
|
return []; |
|
} }, |
|
|
|
// 时间模式时,是否显示后面的年月日中文提示 |
|
showTimeTag: { |
|
type: Boolean, |
|
default: true }, |
|
|
|
// 默认显示地区的编码,defaultRegion和areaCode同时存在,areaCode优先,可传类似["13", "1303", "130304"] |
|
areaCode: { |
|
type: Array, |
|
default: function _default() { |
|
return []; |
|
} }, |
|
|
|
safeAreaInsetBottom: { |
|
type: Boolean, |
|
default: false }, |
|
|
|
// 是否允许通过点击遮罩关闭Picker |
|
maskCloseAble: { |
|
type: Boolean, |
|
default: true }, |
|
|
|
// 通过双向绑定控制组件的弹出与收起 |
|
value: { |
|
type: Boolean, |
|
default: false }, |
|
|
|
// 弹出的z-index值 |
|
zIndex: { |
|
type: [String, Number], |
|
default: 0 }, |
|
|
|
// 顶部标题 |
|
title: { |
|
type: String, |
|
default: '' }, |
|
|
|
// 取消按钮的文字 |
|
cancelText: { |
|
type: String, |
|
default: '取消' }, |
|
|
|
// 确认按钮的文字 |
|
confirmText: { |
|
type: String, |
|
default: '确认' } }, |
|
|
|
|
|
data: function data() { |
|
return { |
|
years: [], |
|
months: [], |
|
days: [], |
|
hours: [], |
|
minutes: [], |
|
seconds: [], |
|
year: 0, |
|
month: 0, |
|
day: 0, |
|
hour: 0, |
|
minute: 0, |
|
second: 0, |
|
reset: false, |
|
startDate: '', |
|
endDate: '', |
|
valueArr: [], |
|
provinces: _province.default, |
|
citys: _city.default[0], |
|
areas: _area.default[0][0], |
|
province: 0, |
|
city: 0, |
|
area: 0, |
|
moving: false // 列是否还在滑动中,微信小程序如果在滑动中就点确定,结果可能不准确 |
|
}; |
|
}, |
|
mounted: function mounted() { |
|
this.init(); |
|
}, |
|
computed: { |
|
propsChange: function propsChange() { |
|
// 引用这几个变量,是为了监听其变化 |
|
return "".concat(this.mode, "-").concat(this.defaultTime, "-").concat(this.startYear, "-").concat(this.endYear, "-").concat(this.defaultRegion, "-").concat(this.areaCode); |
|
}, |
|
regionChange: function regionChange() { |
|
// 引用这几个变量,是为了监听其变化 |
|
return "".concat(this.province, "-").concat(this.city); |
|
}, |
|
yearAndMonth: function yearAndMonth() { |
|
return "".concat(this.year, "-").concat(this.month); |
|
}, |
|
uZIndex: function uZIndex() { |
|
// 如果用户有传递z-index值,优先使用 |
|
return this.zIndex ? this.zIndex : this.$u.zIndex.popup; |
|
} }, |
|
|
|
watch: { |
|
propsChange: function propsChange() {var _this = this; |
|
this.reset = true; |
|
setTimeout(function () {return _this.init();}, 10); |
|
}, |
|
// 如果地区发生变化,为了让picker联动起来,必须重置this.citys和this.areas |
|
regionChange: function regionChange(val) { |
|
this.citys = _city.default[this.province]; |
|
this.areas = _area.default[this.province][this.city]; |
|
}, |
|
// watch监听月份的变化,实时变更日的天数,因为不同月份,天数不一样 |
|
// 一个月可能有30,31天,甚至闰年2月的29天,平年2月28天 |
|
yearAndMonth: function yearAndMonth(val) { |
|
if (this.params.year) this.setDays(); |
|
}, |
|
// 微信和QQ小程序由于一些奇怪的原因(故同时对所有平台均初始化一遍),需要重新初始化才能显示正确的值 |
|
value: function value(n) {var _this2 = this; |
|
if (n) { |
|
this.reset = true; |
|
setTimeout(function () {return _this2.init();}, 10); |
|
} |
|
} }, |
|
|
|
methods: { |
|
// 标识滑动开始,只有微信小程序才有这样的事件 |
|
pickstart: function pickstart() { |
|
|
|
this.moving = true; |
|
|
|
}, |
|
// 标识滑动结束 |
|
pickend: function pickend() { |
|
|
|
this.moving = false; |
|
|
|
}, |
|
// 对单列和多列形式的判断是否有传入变量的情况 |
|
getItemValue: function getItemValue(item, mode) { |
|
// 目前(2020-05-25)uni-app对微信小程序编译有错误,导致v-if为false中的内容也执行,错误导致 |
|
// 单列模式或者多列模式中的getItemValue同时被执行,故在这里再加一层判断 |
|
if (this.mode == mode) { |
|
return typeof item == 'object' ? item[this.rangeKey] : item; |
|
} |
|
}, |
|
// 小于10前面补0,用于月份,日期,时分秒等 |
|
formatNumber: function formatNumber(num) { |
|
return +num < 10 ? '0' + num : String(num); |
|
}, |
|
// 生成递进的数组 |
|
generateArray: function generateArray(start, end) { |
|
// 转为数值格式,否则用户给end-year等传递字符串值时,下面的end+1会导致字符串拼接,而不是相加 |
|
start = Number(start); |
|
end = Number(end); |
|
end = end > start ? end : start; |
|
// 生成数组,获取其中的索引,并剪出来 |
|
return _toConsumableArray(Array(end + 1).keys()).slice(start); |
|
}, |
|
getIndex: function getIndex(arr, val) { |
|
var index = arr.indexOf(val); |
|
// 如果index为-1(即找不到index值),~(-1)=-(-1)-1=0,导致条件不成立 |
|
return ~index ? index : 0; |
|
}, |
|
//日期时间处理 |
|
initTimeValue: function initTimeValue() { |
|
// 格式化时间,在IE浏览器(uni不存在此情况),无法识别日期间的"-"间隔符号 |
|
var fdate = this.defaultTime.replace(/\-/g, '/'); |
|
fdate = fdate && fdate.indexOf('/') == -1 ? "2020/01/01 ".concat(fdate) : fdate; |
|
var time = null; |
|
if (fdate) time = new Date(fdate);else |
|
time = new Date(); |
|
// 获取年日月时分秒 |
|
this.year = time.getFullYear(); |
|
this.month = Number(time.getMonth()) + 1; |
|
this.day = time.getDate(); |
|
this.hour = time.getHours(); |
|
this.minute = time.getMinutes(); |
|
this.second = time.getSeconds(); |
|
}, |
|
init: function init() { |
|
this.valueArr = []; |
|
this.reset = false; |
|
if (this.mode == 'time') { |
|
this.initTimeValue(); |
|
if (this.params.year) { |
|
this.valueArr.push(0); |
|
this.setYears(); |
|
} |
|
if (this.params.month) { |
|
this.valueArr.push(0); |
|
this.setMonths(); |
|
} |
|
if (this.params.day) { |
|
this.valueArr.push(0); |
|
this.setDays(); |
|
} |
|
if (this.params.hour) { |
|
this.valueArr.push(0); |
|
this.setHours(); |
|
} |
|
if (this.params.minute) { |
|
this.valueArr.push(0); |
|
this.setMinutes(); |
|
} |
|
if (this.params.second) { |
|
this.valueArr.push(0); |
|
this.setSeconds(); |
|
} |
|
} else if (this.mode == 'region') { |
|
if (this.params.province) { |
|
this.valueArr.push(0); |
|
this.setProvinces(); |
|
} |
|
if (this.params.city) { |
|
this.valueArr.push(0); |
|
this.setCitys(); |
|
} |
|
if (this.params.area) { |
|
this.valueArr.push(0); |
|
this.setAreas(); |
|
} |
|
} else if (this.mode == 'selector') { |
|
this.valueArr = this.defaultSelector; |
|
} else if (this.mode == 'multiSelector') { |
|
this.valueArr = this.defaultSelector; |
|
this.multiSelectorValue = this.defaultSelector; |
|
} |
|
this.$forceUpdate(); |
|
}, |
|
// 设置picker的某一列值 |
|
setYears: function setYears() { |
|
// 获取年份集合 |
|
this.years = this.generateArray(this.startYear, this.endYear); |
|
// 设置this.valueArr某一项的值,是为了让picker预选中某一个值 |
|
this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.years, this.year)); |
|
}, |
|
setMonths: function setMonths() { |
|
this.months = this.generateArray(1, 12); |
|
this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.months, this.month)); |
|
}, |
|
setDays: function setDays() { |
|
var totalDays = new Date(this.year, this.month, 0).getDate(); |
|
this.days = this.generateArray(1, totalDays); |
|
var index = 0; |
|
// 这里不能使用类似setMonths()中的this.valueArr.splice(this.valueArr.length - 1, xxx)做法 |
|
// 因为this.month和this.year变化时,会触发watch中的this.setDays(),导致this.valueArr.length计算有误 |
|
if (this.params.year && this.params.month) index = 2;else |
|
if (this.params.month) index = 1;else |
|
if (this.params.year) index = 1;else |
|
index = 0; |
|
// 当月份变化时,会导致日期的天数也会变化,如果原来选的天数大于变化后的天数,则重置为变化后的最大值 |
|
// 比如原来选中3月31日,调整为2月后,日期变为最大29,这时如果day值继续为31显然不合理,于是将其置为29(picker-column从1开始) |
|
if (this.day > this.days.length) this.day = this.days.length; |
|
this.valueArr.splice(index, 1, this.getIndex(this.days, this.day)); |
|
}, |
|
setHours: function setHours() { |
|
this.hours = this.generateArray(0, 23); |
|
this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.hours, this.hour)); |
|
}, |
|
setMinutes: function setMinutes() { |
|
this.minutes = this.generateArray(0, 59); |
|
this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.minutes, this.minute)); |
|
}, |
|
setSeconds: function setSeconds() { |
|
this.seconds = this.generateArray(0, 59); |
|
this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.seconds, this.second)); |
|
}, |
|
setProvinces: function setProvinces() { |
|
// 判断是否需要province参数 |
|
if (!this.params.province) return; |
|
var tmp = ''; |
|
var useCode = false; |
|
// 如果同时配置了defaultRegion和areaCode,优先使用areaCode参数 |
|
if (this.areaCode.length) { |
|
tmp = this.areaCode[0]; |
|
useCode = true; |
|
} else if (this.defaultRegion.length) tmp = this.defaultRegion[0];else |
|
tmp = 0; |
|
// 历遍省份数组匹配 |
|
_province.default.map(function (v, k) { |
|
if (useCode ? v.value == tmp : v.label == tmp) { |
|
tmp = k; |
|
} |
|
}); |
|
this.province = tmp; |
|
this.provinces = _province.default; |
|
// 设置默认省份的值 |
|
this.valueArr.splice(0, 1, this.province); |
|
}, |
|
setCitys: function setCitys() { |
|
if (!this.params.city) return; |
|
var tmp = ''; |
|
var useCode = false; |
|
if (this.areaCode.length) { |
|
tmp = this.areaCode[1]; |
|
useCode = true; |
|
} else if (this.defaultRegion.length) tmp = this.defaultRegion[1];else |
|
tmp = 0; |
|
_city.default[this.province].map(function (v, k) { |
|
if (useCode ? v.value == tmp : v.label == tmp) { |
|
tmp = k; |
|
} |
|
}); |
|
this.city = tmp; |
|
this.citys = _city.default[this.province]; |
|
this.valueArr.splice(1, 1, this.city); |
|
}, |
|
setAreas: function setAreas() { |
|
if (!this.params.area) return; |
|
var tmp = ''; |
|
var useCode = false; |
|
if (this.areaCode.length) { |
|
tmp = this.areaCode[2]; |
|
useCode = true; |
|
} else if (this.defaultRegion.length) tmp = this.defaultRegion[2];else |
|
tmp = 0; |
|
_area.default[this.province][this.city].map(function (v, k) { |
|
if (useCode ? v.value == tmp : v.label == tmp) { |
|
tmp = k; |
|
} |
|
}); |
|
this.area = tmp; |
|
this.areas = _area.default[this.province][this.city]; |
|
this.valueArr.splice(2, 1, this.area); |
|
}, |
|
close: function close() { |
|
this.$emit('input', false); |
|
}, |
|
// 用户更改picker的列选项 |
|
change: function change(e) { |
|
this.valueArr = e.detail.value; |
|
var i = 0; |
|
if (this.mode == 'time') { |
|
// 这里使用i++,是因为this.valueArr数组的长度是不确定长度的,它根据this.params的值来配置长度 |
|
// 进入if规则,i会加1,保证了能获取准确的值 |
|
if (this.params.year) this.year = this.years[this.valueArr[i++]]; |
|
if (this.params.month) this.month = this.months[this.valueArr[i++]]; |
|
if (this.params.day) this.day = this.days[this.valueArr[i++]]; |
|
if (this.params.hour) this.hour = this.hours[this.valueArr[i++]]; |
|
if (this.params.minute) this.minute = this.minutes[this.valueArr[i++]]; |
|
if (this.params.second) this.second = this.seconds[this.valueArr[i++]]; |
|
} else if (this.mode == 'region') { |
|
if (this.params.province) this.province = this.valueArr[i++]; |
|
if (this.params.city) this.city = this.valueArr[i++]; |
|
if (this.params.area) this.area = this.valueArr[i++]; |
|
} else if (this.mode == 'multiSelector') { |
|
var index = null; |
|
// 对比前后两个数组,寻找变更的是哪一列,如果某一个元素不同,即可判定该列发生了变化 |
|
this.defaultSelector.map(function (val, idx) { |
|
if (val != e.detail.value[idx]) index = idx; |
|
}); |
|
// 为了让用户对多列变化时,对动态设置其他列的变更 |
|
if (index != null) { |
|
this.$emit('columnchange', { |
|
column: index, |
|
index: e.detail.value[index] }); |
|
|
|
} |
|
} |
|
}, |
|
// 用户点击确定按钮 |
|
getResult: function getResult() {var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; |
|
|
|
if (this.moving) return; |
|
|
|
var result = {}; |
|
// 只返回用户在this.params中配置了为true的字段 |
|
if (this.mode == 'time') { |
|
if (this.params.year) result.year = this.formatNumber(this.year || 0); |
|
if (this.params.month) result.month = this.formatNumber(this.month || 0); |
|
if (this.params.day) result.day = this.formatNumber(this.day || 0); |
|
if (this.params.hour) result.hour = this.formatNumber(this.hour || 0); |
|
if (this.params.minute) result.minute = this.formatNumber(this.minute || 0); |
|
if (this.params.second) result.second = this.formatNumber(this.second || 0); |
|
if (this.params.timestamp) result.timestamp = this.getTimestamp(); |
|
} else if (this.mode == 'region') { |
|
if (this.params.province) result.province = _province.default[this.province]; |
|
if (this.params.city) result.city = _city.default[this.province][this.city]; |
|
if (this.params.area) result.area = _area.default[this.province][this.city][this.area]; |
|
} else if (this.mode == 'selector') { |
|
result = this.valueArr; |
|
} else if (this.mode == 'multiSelector') { |
|
result = this.valueArr; |
|
} |
|
if (event) this.$emit(event, result); |
|
this.close(); |
|
}, |
|
// 获取时间戳 |
|
getTimestamp: function getTimestamp() { |
|
// yyyy-mm-dd为安卓写法,不支持iOS,需要使用"/"分隔,才能二者兼容 |
|
var time = this.year + '/' + this.month + '/' + this.day + ' ' + this.hour + ':' + this.minute + ':' + this.second; |
|
return new Date(time).getTime() / 1000; |
|
} } };exports.default = _default2; |
|
|
|
/***/ }), |
|
|
|
/***/ 547: |
|
/*!**************************************************************************************************************************************************!*\ |
|
!*** C:/Users/lenovo/Desktop/new_git/wx_oms/uview-ui/components/u-picker/u-picker.vue?vue&type=style&index=0&id=70102400&lang=scss&scoped=true& ***! |
|
\**************************************************************************************************************************************************/ |
|
/*! no static exports found */ |
|
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony import */ var _D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_vue_vue_type_style_index_0_id_70102400_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-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--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-picker.vue?vue&type=style&index=0&id=70102400&lang=scss&scoped=true& */ 548); |
|
/* harmony import */ var _D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_vue_vue_type_style_index_0_id_70102400_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_vue_vue_type_style_index_0_id_70102400_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_vue_vue_type_style_index_0_id_70102400_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_vue_vue_type_style_index_0_id_70102400_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); |
|
/* harmony default export */ __webpack_exports__["default"] = (_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_hbuliderx_HBuilderX_3_3_11_20220209_full_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_picker_vue_vue_type_style_index_0_id_70102400_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); |
|
|
|
/***/ }), |
|
|
|
/***/ 548: |
|
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ |
|
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-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--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./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/lenovo/Desktop/new_git/wx_oms/uview-ui/components/u-picker/u-picker.vue?vue&type=style&index=0&id=70102400&lang=scss&scoped=true& ***! |
|
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ |
|
/*! no static exports found */ |
|
/***/ (function(module, exports, __webpack_require__) { |
|
|
|
// extracted by mini-css-extract-plugin |
|
if(false) { var cssReload; } |
|
|
|
|
|
/***/ }) |
|
|
|
}]); |
|
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/uview-ui/components/u-picker/u-picker.js.map |
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ |
|
'uview-ui/components/u-picker/u-picker-create-component', |
|
{ |
|
'uview-ui/components/u-picker/u-picker-create-component':(function(module, exports, __webpack_require__){ |
|
__webpack_require__('1')['createComponent'](__webpack_require__(539)) |
|
}) |
|
}, |
|
[['uview-ui/components/u-picker/u-picker-create-component']] |
|
]);
|
|
|