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.

11 lines
11 KiB

3 years ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-picker/u-picker"],{"1ceb":function(t,e,i){"use strict";i.r(e);var r=i("8c73"),s=i.n(r);for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);e["default"]=s.a},"31d5":function(t,e,i){},"482e":function(t,e,i){"use strict";i.r(e);var r=i("feb1"),s=i("1ceb");for(var a in s)"default"!==a&&function(t){i.d(e,t,(function(){return s[t]}))}(a);i("efbc");var n,o=i("f0c5"),u=Object(o["a"])(s["default"],r["b"],r["c"],!1,null,"37f97434",null,!1,r["a"],n);e["default"]=u.exports},"8c73":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("7ffe")),s=n(i("b77b")),a=n(i("9ae8"));function n(t){return t&&t.__esModule?t:{default:t}}function o(t){return c(t)||l(t)||h(t)||u()}function u(){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 h(t,e){if(t){if("string"===typeof t)return m(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?m(t,e):void 0}}function l(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function c(t){if(Array.isArray(t))return m(t)}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=new Array(e);i<e;i++)r[i]=t[i];return r}var d={name:"u-picker",props:{params:{type:Object,default:function(){return{year:!0,month:!0,day:!0,hour:!1,minute:!1,second:!1,province:!0,city:!0,area:!0,timestamp:!0}}},range:{type:Array,default:function(){return[]}},defaultSelector:{type:Array,default:function(){return[0]}},rangeKey:{type:String,default:""},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"},defaultTime:{type:String,default:""},defaultRegion:{type:Array,default:function(){return[]}},showTimeTag:{type:Boolean,default:!0},areaCode:{type:Array,default:function(){return[]}},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseAble:{type:Boolean,default:!0},value:{type:Boolean,default:!1},zIndex:{type:[String,Number],default:0},title:{type:String,default:""},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确认"}},data:function(){return{years:[],months:[],days:[],hours:[],minutes:[],seconds:[],year:0,month:0,day:0,hour:0,minute:0,second:0,reset:!1,startDate:"",endDate:"",valueArr:[],provinces:r.default,citys:s.default[0],areas:a.default[0][0],province:0,city:0,area:0,moving:!1}},mounted:function(){this.init()},computed:{propsChange:function(){return"".concat(this.mode,"-").concat(this.defaultTime,"-").concat(this.startYear,"-").concat(this.endYear,"-").concat(this.defaultRegion,"-").concat(this.areaCode)},regionChange:function(){return"".concat(this.province,"-").concat(this.city)},yearAndMonth:function(){return"".concat(this.year,"-").concat(this.month)},uZIndex:function(){return this.zIndex?this.zIndex:this.$u.zIndex.popup}},watch:{propsChange:function(){var t=this;this.reset=!0,setTimeout((function(){return t.init()}),10)},regionChange:function(t){this.citys=s.default[this.province],this.areas=a.default[this.province][this.city]},yearAndMonth:function(t){this.params.year&&this.setDays()},value:function(t){var e=this;t&&(this.reset=!0,setTimeout((function(){return e.init()}),10))}},methods:{pickstart:function(){this.moving=!0},pickend:function(){this.moving=!1},getItemValue:function(t,e){if(this.mode==e)return"object"==typeof t?t[this.rangeKey]:t},formatNumber:function(t){return+t<10?"0"+t:String(t)},generateArray:function(t,e){return t=Number(t),e=Number(e),e=e>t?e:t,o(Array(e+1).keys()).slice(t)},getIndex:function(t,e){var i=t.indexOf(e);return~i?i:0},initTimeValue:function(){var t=this.defaultTime.replace(/\-/g,"/");t=t&&-1==t.indexOf("/")?"2020/01/01 ".concat(t):
3 years ago
;(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__){
3 years ago
__webpack_require__('543d')['createComponent'](__webpack_require__("482e"))
3 years ago
})
},
[['uview-ui/components/u-picker/u-picker-create-component']]
]);