UNPKG

24.6 kBJavaScriptView Raw
1module.exports=function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=283)}({0:function(e,t){e.exports=function(e,t,n,i,o,a){var s,r=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(s=e,r=e.default);var u="function"==typeof r?r.options:r;t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o);var p;if(a?(p=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=p):i&&(p=i),p){var c=u.functional,h=c?u.render:u.beforeCreate;c?(u._injectStyles=p,u.render=function(e,t){return p.call(t),h(e,t)}):u.beforeCreate=h?[].concat(h,p):[p]}return{esModule:s,exports:r,options:u}}},1:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"d",function(){return a}),n.d(t,"b",function(){return s});var i={props:{disabled:{type:Boolean},type:{type:String,default:"default"},size:{type:String,default:"default"},nativeType:{type:String,default:"button"},plain:{type:Boolean},loadingColor:{type:Object,default:function(){return{default:"#d6d6d6",danger:"#e04b00",warning:"#ff9900"}}},loading:{type:Boolean},ripple:{type:Boolean}}},o={inject:{vxFormItem:{default:"vxFormItem"}},props:{disabled:{type:Boolean},clearable:{type:Boolean,default:!0},nativeType:{type:String,default:"text"},readonly:{type:Boolean},value:{type:[String,Number]},placeholder:{type:String},autocomplete:{type:String},autofocus:{type:String},maxlength:{type:Number},name:{type:String,default:function(){return Math.random().toString(36).substr(2)}},checked:{type:Boolean},validateEvent:{type:Boolean,default:!0},arrow:{type:Boolean,default:!1},arrowProps:{type:Object},border:{type:Boolean,default:!0},autoIntoView:{type:Boolean,default:!0},size:{type:String,default:"default"}},data:function(){return{isFocus:!1}},methods:{handleFocusIn:function(e){this.isFocus=!0;var t=e.target;this.autoIntoView&&void 0!==t.ontouchstart&&window.addEventListener("resize",function(){t.scrollIntoView&&t.scrollIntoView()},{once:!0})},handleFocusOut:function(e){this.isFocus=!1,this.eDispatch("ElFormItem","el.form.blur",[e.target.value])},handleChange:function(e){this.$emit("change",e.target.value)},handleInput:function(e){var t=e.target?e.target.value:e;this.$emit("input",t),this.eDispatch("ElFormItem","el.form.change",[t])},eDispatch:function(){this.validateEvent&&this.dispatch&&this.dispatch.apply(this,arguments)}}},a={methods:{change:function(e){this.active!==e&&this.$emit("update:active",e).$emit("change",e)}},props:{active:{type:[Number,String,Object],required:!0},layout:{type:String,default:"default"}}},s={props:{history:{type:Boolean,default:!0}},methods:{getPushURL:function(){var e=window.location.hash;this.pushString="popup="+Math.random().toString(36).substr(2);var t=[window.location.href.split("#")[0],e];return t.push(e?-1===e.indexOf("?")&&-1===e.indexOf("=")?"?":"&":"#"),t.push(this.pushString),t.join("")},pushState:function(){var e=this;this.history&&(this.pushString&&this.isCurrentPopup()&&window.history.back(),setTimeout(function(){window.history.pushState({},"",e.getPushURL()),window.addEventListener("popstate",e.handlePopstate)},16))},handlePopstate:function(){-1===window.location.href.indexOf(this.pushString)&&(this.$emit("update:open",!1).$emit("close"),this.popStateBack&&this.popStateBack(),window.removeEventListener("popstate",this.handlePopstate))},goBack:function(){this.history&&this.isCurrentPopup()&&(window.removeEventListener("popstate",this.handlePopstate),history.back())},isCurrentPopup:function(){return window.location.href.indexOf(this.pushString)===window.location.href.length-this.pushString.length}}}},10:function(e,t,n){"use strict";var i=n(1),o=n(11),a=n(4);t.a={name:"Popup",componentName:"Popup",components:{Overlay:o.a,Arrow:a.a},mixins:[i.b],props:{open:{type:Boolean,default:!1},full:{type:Boolean,default:!1},direction:{type:String,default:"bottom"},fastClose:{type:Boolean,default:!0},showClose:{type:Boolean,default:!1},title:{type:String},overlayOpacity:{type:Number}},data:function(){return{afterOpen:!1}},computed:{innerClasses:function(){return["vx-popup--inner","vx-popup--"+this.direction,{"is-full":this.full}]}},mounted:function(){var e=this;this.open&&requestAnimationFrame(function(){e.pushState(),e.$el.style.display="block",e.handleEnter()})},watch:{open:function(e){var t=this;e&&requestAnimationFrame(function(){t.pushState(),t.$el.style.display="block"})}},methods:{handleEnter:function(){this.afterOpen=!0,this.$emit("open")},close:function(){this.$emit("update:open",!1).$emit("close")},handleClose:function(){this.fastClose&&this.close()},handleClose2:function(e){this.fastClose&&e.target===this.$el.querySelector(".vx-popup--inner")&&this.close()},handleLeave:function(){this.goBack(),this.$el.style.display="none",this.afterOpen=!1,this.$emit("after-close")}}}},11:function(e,t,n){"use strict";var i=n(8),o=n(17),a=n(0),s=a(i.a,o.a,!0,null,null,null);t.a=s.exports},12:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),o=n(19),a=n(0),s=a(i.a,o.a,!1,null,null,null);t.default=s.exports},13:function(e,t,n){"use strict";var i=n(6),o=n(14),a=n(0),s=a(i.a,o.a,!1,null,null,null);t.a=s.exports},138:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(139),o=n(145);n.d(t,"Select",function(){return i.a}),n.d(t,"Option",function(){return o.a})},139:function(e,t,n){"use strict";var i=n(78),o=n(144),a=n(0),s=a(i.a,o.a,!1,null,null,null);t.a=s.exports},14:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.tag,{tag:"component",class:e.classes},[e._t("default")],2)},o=[],a={render:i,staticRenderFns:o};t.a=a},140:function(e,t,n){"use strict";var i=n(79),o=n(143),a=n(0),s=a(i.a,o.a,!1,null,null,null);t.a=s.exports},141:function(e,t,n){"use strict";var i=n(80),o=n(142),a=n(0),s=a(i.a,o.a,!0,null,null,null);t.a=s.exports},142:function(e,t,n){"use strict";var i=function(e,t){var n=t._c;return n("label",{class:["vx-checkbox",{"is-checked":t.$options.methods.isActive(t.props),"is-disabled":t.$options.methods.isDisabled(t.props),"is-inline":t.props.inline}]},[n("input",{attrs:{type:t.props.type,name:t.props.name},domProps:{value:t.props.value,checked:t.$options.methods.isActive(t.props)},on:{change:function(e){t.$options.methods.handleChange(e,t.props.value,t.props.exclusive)}}}),n("i",{class:["vx-checkbox--icon",t.props.iconStyle?"is-"+t.props.iconStyle:""]}),n("span",{staticClass:"vx-checkbox--text"},[t._t("default")],2)])},o=[],a={render:i,staticRenderFns:o};t.a=a},143:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("popup",{attrs:{open:e.open,history:e.history,direction:e.direction},on:{close:e.handleClose,open:e.handleOpen}},[1!=e.max?n("div",{class:["vx-flexbox","vx-option-picker--header"],attrs:{slot:"header"},slot:"header"},[n("button",{staticClass:"vx-option-picker--cancel",attrs:{type:"button"},on:{click:e.handleClose}},[e._v(e._s(e.cancelText))]),n("button",{class:["vx-flexbox--item","vx-option-picker--placeholder"],attrs:{type:"button"}},[e._v(e._s(e.myTitle))]),n("button",{class:["vx-option-picker--confirm",{"is-disabled":!e.myValue.length}],attrs:{type:"button"},on:{click:e.handleConfirm}},[e._v(e._s(e.confirmText))])]):e._e(),n("div",{staticClass:"vx-option-picker"},[n("checkbox-group",{ref:"checkboxGroup",attrs:{"validate-event":!1,max:e.max,value:e.myValue},on:{change:e.handleChange}},e._l(e.myOptions,function(t,i){return n("checkbox",{key:i,attrs:{value:t.value,disabled:t.disabled,parentValue:e.myValue,exclusive:t.exclusive,max:e.max}},[n("div",{domProps:{innerHTML:e._s(t.html||t.label)}})])}),1)],1)])},o=[],a={render:i,staticRenderFns:o};t.a=a},144:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["vx-select","vx-select--size-"+e.size,{"is-disabled":e.disabled}],on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.handleFocusIn(t)}}},[n("flexbox",{staticClass:"vx-select--inner",attrs:{gutter:0,align:"center"}},[e._t("prepend"),n("flexbox-item",[n("button",{attrs:{type:"button","data-placeholder":e.placeholder}},[e._v(e._s(e.myLabel))])]),e.$slots.append?e._t("append"):[this.clearable&&e.value+""?n("transition",{attrs:{name:"input-clearable-fade"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:!!e.value&&e.clearable&&!e.disabled,expression:"!!value && clearable && !disabled"}],staticClass:"vx-input--clearable-button",attrs:{tabindex:"-2",type:"button"},on:{click:function(t){return t.stopPropagation(),e.handleClear(t)}}},[n("i",{staticClass:"vx-input--clearable-icon"})])]):e.arrow?n("arrow",e._b({attrs:{direction:"down"}},"arrow",e.arrowProps,!1)):e._e()]],2),n("datalist",[e._t("default")],2)],1)},o=[],a={render:i,staticRenderFns:o};t.a=a},145:function(e,t,n){"use strict";var i=n(81),o=n(146),a=n(0),s=a(i.a,o.a,!0,null,null,null);t.a=s.exports},146:function(e,t,n){"use strict";var i=function(e,t){return(0,t._c)("option",t._b({},"option",t.props,!1),[t._t("default")],2)},o=[],a={render:i,staticRenderFns:o};t.a=a},15:function(e,t,n){"use strict";var i=n(7),o=n(16),a=n(0),s=a(i.a,o.a,!1,null,null,null);t.a=s.exports},16:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.tag,{tag:"component",staticClass:"vx-flexbox--item",style:e.styles},[e._t("default")],2)},o=[],a={render:i,staticRenderFns:o};t.a=a},17:function(e,t,n){"use strict";var i=function(e,t){var n=t._c;return n("transition",{attrs:{name:"popup-fade"}},[n("div",t._g(t._b({directives:[{name:"show",rawName:"v-show",value:t.props.open,expression:"props.open"}],class:["vx-overlay",t.data.staticClass,t.data.class],style:Object.assign({opacity:""+t.props.opacity},t.data.style)},"div",t.data.attrs,!1),t.listeners),[t._t("default")],2)])},o=[],a={render:i,staticRenderFns:o};t.a=a},18:function(e,t){e.exports=require("babel-runtime/core-js/object/assign")},19:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vx-popup"},[e.full?e._e():n("overlay",{attrs:{opacity:e.overlayOpacity,open:e.open},on:{click:e.handleClose}}),e.$slots.inner?n("transition",{attrs:{name:"popup-fade"},on:{"after-enter":e.handleEnter,"after-leave":e.handleLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}]},[e._t("inner")],2)]):n("transition",{attrs:{name:e.full?"popup-full-slide-"+e.direction:"popup-slide-"+e.direction},on:{"after-enter":e.handleEnter,"after-leave":e.handleLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}],class:e.innerClasses,on:{click:e.handleClose2}},[e.title&&!e.showClose?n("div",{staticClass:"vx-popup--nav"},[n("button",{attrs:{type:"button"},on:{click:e.close}},[n("arrow",{attrs:{direction:"left",color:"#666",size:"0.24rem"}})],1),n("div",{staticClass:"vx-popup--nav-title"},[e._v(e._s(e.title))])]):e.showClose&&e.full?n("div",{staticClass:"vx-popup--nav"},[n("div",{staticClass:"vx-popup--nav-title"},[e._v(e._s(e.title))]),n("i",{staticClass:"vx-popup--close",on:{click:e.close}})]):e._t("header"),"center"===e.direction?n("div",{staticClass:"vx-popup--body"},[e.showClose?n("i",{staticClass:"vx-popup--close",on:{click:e.close}}):e._e(),e._t("default",null,{open:e.afterOpen})],2):n("div",{staticClass:"vx-popup--body is-flex"},[e._t("default",null,{open:e.afterOpen})],2),e._t("footer")],2)])],1)},o=[],a={render:i,staticRenderFns:o};t.a=a},2:function(e,t){e.exports=require("babel-runtime/helpers/extends")},22:function(e,t){e.exports=require("vue")},283:function(e,t,n){e.exports=n(138)},3:function(e,t,n){"use strict";t.a={name:"Arrow",componentName:"Arrow",functional:!0,props:{direction:{type:String,default:"right"},size:{type:String,default:"0.18rem"},color:{type:String,default:"rgba(153, 153, 153, 0.6)"},tag:{type:String,default:"i"}}}},4:function(e,t,n){"use strict";var i=n(3),o=n(9),a=n(0),s=a(i.a,o.a,!0,null,null,null);t.a=s.exports},5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),o=n(15);n.d(t,"Flexbox",function(){return i.a}),n.d(t,"FlexboxItem",function(){return o.a})},51:function(e,t,n){"use strict";var i=n(52),o=n(73),a=n(0),s=a(i.a,o.a,!1,null,null,null);t.a=s.exports},52:function(e,t,n){"use strict";var i=n(2),o=n.n(i),a=n(1);t.a={name:"Checkbox",componentName:"Checkbox",mixins:[a.c],props:o()({},a.c.props,{iconPosition:{type:String,default:"left"},type:{type:String,default:"checkbox"},iconStyle:{type:String},onValue:{type:String},offValue:{type:String},inline:{type:Boolean},exclusive:{type:Boolean}}),computed:{classes:function(){return["vx-checkbox",{"is-checked":this.myChecked,"is-disabled":this.myDisabled,"is-inline":this.myInline,"is-icon-position-right":"right"===this.iconPosition||"right"===this.$parent.iconPosition}]},getIconStyle:function(){return this.iconStyle||this.$parent.iconStyle},myChecked:function(){return this.$parent&&this.$parent.$options&&"CheckboxGroup"===this.$parent.$options.componentName?this.$parent.value instanceof Array?this.$parent.value.indexOf(this.value)>-1:this.$parent.value===this.value:this.checked},myType:function(){return this.$parent&&this.$parent.$options&&"CheckboxGroup"===this.$parent.$options.componentName?1===this.$parent.max?"radio":"checkbox":this.type},myDisabled:function(){var e=this.disabled;return this.$parent&&this.$parent.$options&&"CheckboxGroup"===this.$parent.$options.componentName&&this.$parent.max>1&&this.$parent.value.length>=this.$parent.max?-1===this.$parent.value.indexOf(this.value):e},myInline:function(){return this.$parent&&this.$parent.$options&&"CheckboxGroup"===this.$parent.$options.componentName?this.inline||this.$parent.inline:this.inline}},methods:{handleChange:function(e,t){this.$parent&&this.$parent.$options&&"CheckboxGroup"===this.$parent.$options.componentName?this.$parent.handleChange(t,e,this.exclusive):(this.$emit("update:checked",t.target.checked).$emit("change",t),void 0!==this.offValue&&void 0!==this.onValue&&this.$emit("input",t.target.checked?this.onValue:this.offValue))}}}},53:function(e,t,n){"use strict";var i=n(18),o=n.n(i),a=n(2),s=n.n(a),r=n(1),l=n(51);t.a={name:"CheckboxGroup",componentName:"CheckboxGroup",mixins:[r.c],components:{Checkbox:l.a},props:s()({},r.c.props,{value:{type:[String,Number,Array]},divider:{type:Boolean,default:!0},iconPosition:{type:String,default:"left"},max:{type:Number,default:0},iconStyle:{type:String},inline:{type:Boolean}}),methods:{handleChange:function(e,t,n){if(1===this.max){var i=this.value instanceof Array?[t]:t;this.$emit("input",i).$emit("change",i),this.eDispatch("ElFormItem","el.form.blur",[i]),this.eDispatch("ElFormItem","el.form.change",[i])}else if(e.target.checked&&0!==this.max&&this.value.length===this.max)e.target.checked=!1;else{var a=o()([],this.value);if(e.target.checked)if(n)a=[t];else{-1===a.indexOf(t)&&a.push(t);var s=[];this.$children&&this.$children.forEach&&(this.$children.forEach(function(e){e.$props.exclusive&&s.push(e.value)}),s.length>0&&(a=a.filter(function(e){return-1===s.indexOf(e)})))}else a&&a.indexOf&&a.splice(a.indexOf(t),1);this.$emit("input",a).$emit("change",a),this.eDispatch("ElFormItem","el.form.blur",[a]),this.eDispatch("ElFormItem","el.form.change",[a])}}}}},6:function(e,t,n){"use strict";var i={direction:{column:"flexbox--column"},wrap:{wrap:"flexbox--wrap"},justify:{center:"flexbox--content-center"},align:{center:"flexbox--align-center"}};t.a={name:"Flexbox",componentName:"Flexbox",props:{direction:{type:String,default:"normal"},wrap:{type:String,default:"normal"},justify:{type:String,default:"normal"},align:{type:String,default:"normal"},gutter:{type:Number,default:8},tag:{type:String,default:"div"}},computed:{classes:function(){var e=["vx-flexbox"];for(var t in i)this[t]&&i[t][this[t]]&&e.push("vx-"+i[t][this[t]]);return e}}}},62:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=n(74);n.d(t,"Checkbox",function(){return i.a}),n.d(t,"CheckboxGroup",function(){return o.a})},7:function(e,t,n){"use strict";t.a={name:"FlexboxItem",componentName:"FlexboxItem",props:{flex:{type:[String,Number],default:1},order:{type:Number},tag:{type:String,default:"div"}},computed:{styles:function(){var e="number"==typeof this.$parent.gutter?this.$parent.gutter+"px":this.$parent.gutter;return"\n margin-left: "+e+";\n margin-right: "+e+";\n -ms-flex: "+this.flex+";\n -webkit-box-flex: "+this.flex+";\n -moz-box-flex: "+this.flex+";\n -webkit-flex: "+this.flex+";\n -moz-flex: "+this.flex+";\n flex: "+this.flex+";\n min-width: 0;\n order:"+this.order+"\n "}}}},73:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{class:e.classes},[n("input",{attrs:{type:e.myType,name:e.name},domProps:{value:e.value,checked:e.myChecked},on:{change:function(t){e.handleChange(e.value,t)}}}),e.$slots.default?[n("i",{class:["vx-checkbox--icon",e.getIconStyle?"is-"+e.getIconStyle:""]}),n("span",{staticClass:"vx-checkbox--text"},[e._t("default")],2)]:e._t("default",null,null,{checked:e.myChecked,disabled:e.myDisabled})],2)},o=[],a={render:i,staticRenderFns:o};t.a=a},74:function(e,t,n){"use strict";var i=n(53),o=n(75),a=n(0),s=a(i.a,o.a,!1,null,null,null);t.a=s.exports},75:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:["vx-checkbox-group",{"is-divider":e.divider&&!e.inline,"is-disabled":e.disabled}]},[e._t("default")],2)},o=[],a={render:i,staticRenderFns:o};t.a=a},78:function(e,t,n){"use strict";var i=n(2),o=n.n(i),a=n(22),s=n.n(a),r=n(140),l=n(1),u=n(5),p=n(4);t.a={name:"XSelect",componentName:"XSelect",components:{Arrow:p.a,Flexbox:u.Flexbox,FlexboxItem:u.FlexboxItem},mixins:[l.c],props:o()({},l.c.props,{value:{type:[String,Array]},getPopupMounted:{type:Function},max:{type:Number,default:1},placeholder:{type:String,default:"请选择"},popupProps:{type:Object},arrow:{type:Boolean,default:!0},separator:{type:String,default:","},clearable:{type:Boolean,default:!1}}),watch:{value:function(e){this.updateLabel(e)}},data:function(){return{myLabel:1===this.max?"":[]}},mounted:function(){var e=this;this.$nextTick(function(){e.$$myOptions=e.getOptions(),e.value&&e.updateLabel(e.value)})},updated:function(){var e=this;this.$nextTick(function(){e.$$myOptions=e.getOptions(),e.updateLabel(e.value)})},beforeDestroy:function(){this.$root&&this.$root.__popup&&this.__popup===this.$root.__popup&&(this.$root.__popup&&this.$root.__popup.$destroy(),this.__popup=this.$root.__popup=null)},methods:{getOptions:function(){for(var e=[],t=this.$el.querySelector("datalist").children,n=t.length,i=0;i<n;i++){var o=t[i],a=o.innerHTML.trim();e.push({value:o.value,disabled:o.disabled,exclusive:!!o.getAttribute("exclusive")||void 0,label:o.getAttribute("label")||a,html:a})}return e},handleFocusIn:function(e){if(!this.disabled){var t=this,n=document.createElement("div");this.getPopupMounted?this.getPopupMounted(e).appendChild(n):document.body.appendChild(n),this.$root&&this.$root.__popup&&this.$root.__popup&&this.$root.__popup.$destroy(),this.$$myOptions.length&&(this.$root.__popup=this.__popup=new s.a({el:n,render:function(e){return e(r.a,{props:o()({open:this.open,value:1===t.max?[t.value]:t.value,options:t.$$myOptions,title:t.title,max:t.max},t.popupProps),class:["vx-select--picker"],on:{close:this.handleClose,"close-after":this.handleCloseAfter,change:this.handleChange}})},data:{open:!1},mounted:function(){var e=this;requestAnimationFrame(function(){e.open=!0,t.isFocus=!0})},beforeDestroy:function(){this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},methods:{handleClose:function(){t.isFocus=!1,this.open=!1},handleCloseAfter:function(){var e=this;this.$nextTick(function(){e.$destroy()})},handleChange:function(e){t.value!==e&&(this.value=e,t.$emit("input",e).$emit("change",e),t.eDispatch("ElFormItem","el.form.blur",[e]),t.eDispatch("ElFormItem","el.form.change",[e]),t.updateLabel(e)),this.handleClose()}}}))}},updateLabel:function(e){var t=this.getLabel(e);t!==this.$$label&&(this.$$label=t,this.myLabel=t,this.$emit("update:label",t))},getLabel:function(e){var t="";if(this.$$myOptions&&this.$$myOptions.length)if(1===this.max)this.$$myOptions&&this.$$myOptions.forEach(function(n){n.value===e&&(t=n.label)});else{var n=[];this.$$myOptions&&this.$$myOptions.forEach(function(t){e&&e.indexOf(t.value)>-1&&n.push(t.label)}),t=n.join(this.separator)}return t},handleClear:function(){var e=1===this.max?"":[];this.$emit("input",e).$emit("change",e)}}}},79:function(e,t,n){"use strict";var i=n(2),o=n.n(i),a=n(12),s=n(62),r=n(141);t.a={componentName:"OptionGroupPicker",components:{Popup:a.default,Checkbox:r.a,CheckboxGroup:s.CheckboxGroup},props:o()({},s.CheckboxGroup.props,{open:{type:Boolean,default:!1},history:{type:Boolean,default:!0},options:{type:Array},title:{type:String,default:"请选择"},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确定"},direction:{type:String,default:"bottom"}}),computed:{myTitle:function(){var e=this.title;return this.myValue.length>=this.max&&this.max>1&&(e="选项不能超过"+this.max+"个"),e},exclusiveValue:function(){var e=[];return this.myOptions.forEach(function(t){t.exclusive&&e.push(t.value)}),e}},watch:{options:function(e){this.myOptions=e},value:function(e){this.myValue=e}},data:function(){var e=this.options;return this.options.length>30&&(e=this.options.slice(0,30)),{myOptions:e,myValue:this.value}},beforeDestroy:function(){window.$$$$picker=null},methods:{handleClose:function(){this.$emit("close")},handleConfirm:function(){this.open&&this.$emit("input",this.myValue).$emit("change",this.myValue)},handleChange:function(e){var t=this;1===this.max?this.open&&this.$emit("input",e[0]).$emit("change",e[0]):this.exclusiveValue.length&&e.length>1?this.myValue=e.filter(function(e){return-1===t.exclusiveValue.indexOf(e)}):this.myValue=e},handleOpen:function(){var e=this;window.$$$$picker=this,requestAnimationFrame(function(){e.myOptions=e.options})}}}},8:function(e,t,n){"use strict";t.a={name:"Overlay",componentName:"Overlay",props:{opacity:{type:Number},open:{type:Boolean}}}},80:function(e,t,n){"use strict";var i=n(2),o=n.n(i),a=n(1);t.a={componentName:"Checkbox",props:o()({},a.c.props,{direction:{type:String,default:"normal"},type:{type:String,default:"checkbox"},iconStyle:{type:String},onValue:{type:String},offValue:{type:String},inline:{type:Boolean},parentValue:{type:[Array,String,Number]},max:{type:Number},exclusive:{type:Boolean}}),methods:{handleChange:function(e,t,n){window.$$$$picker.$refs.checkboxGroup.handleChange(e,t,n)},isDisabled:function(e){return e.parentValue instanceof Array&&e.max>1&&e.parentValue.length>=e.max?-1===e.parentValue.indexOf(e.value):e.disabled},isActive:function(e){return e.parentValue===e.value||e.parentValue instanceof Array?e.parentValue.indexOf(e.value)>-1:e.checked}}}},81:function(e,t,n){"use strict";t.a={componentName:"XOption",props:{value:{type:String},disabled:{type:Boolean,default:!1},label:{type:String},exclusive:{type:Boolean}}}},9:function(e,t,n){"use strict";var i=function(e,t){return(0,t._c)(t.props.tag,t._g(t._b({tag:"component",class:["vx-arrow",t.data.staticClass,t.data.class],style:[Object.assign({display:"inline-block",borderWidth:"1px",borderStyle:"solid",verticalAlign:"middle",boxSizing:"border-box",transform:"rotate(45deg)",height:t.props.size,width:t.props.size,borderColor:{up:t.props.color+" transparent transparent "+t.props.color,right:t.props.color+" "+t.props.color+" transparent transparent",down:"transparent "+t.props.color+" "+t.props.color+" transparent",left:"transparent transparent "+t.props.color+" "+t.props.color}[t.props.direction]},t.data.style)]},"component",t.data.attrs,!1),t.listeners))},o=[],a={render:i,staticRenderFns:o};t.a=a}});
\No newline at end of file