@xysfe/actui
Version:
A fantastic mobile ui lib implement by Vue
1 lines • 26.5 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/utils/helpers.js"),require("@xysfe/actui/es/assets/mixins/visible.js"),require("@xysfe/actui/es/assets/mixins/popup.js"),require("@xysfe/actui/es/assets/common/scroll.js"),require("@xysfe/actui/es/assets/common/goldlayer.js"),require("@xysfe/actui/es/assets/mixins/picker.js"),require("@xysfe/actui/es/assets/mixins/basic-picker.js"),require("@xysfe/actui/es/assets/img/icon-search.png"),require("@xysfe/actui/es/assets/img/icon-close2.png"),require("@xysfe/actui/es/assets/img/tip_sq1.png")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js","@xysfe/actui/es/assets/utils/helpers.js","@xysfe/actui/es/assets/mixins/visible.js","@xysfe/actui/es/assets/mixins/popup.js","@xysfe/actui/es/assets/common/scroll.js","@xysfe/actui/es/assets/common/goldlayer.js","@xysfe/actui/es/assets/mixins/picker.js","@xysfe/actui/es/assets/mixins/basic-picker.js","@xysfe/actui/es/assets/img/icon-search.png","@xysfe/actui/es/assets/img/icon-close2.png","@xysfe/actui/es/assets/img/tip_sq1.png"],t):"object"==typeof exports?exports.GoldCareerLayer=t(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/utils/helpers.js"),require("@xysfe/actui/es/assets/mixins/visible.js"),require("@xysfe/actui/es/assets/mixins/popup.js"),require("@xysfe/actui/es/assets/common/scroll.js"),require("@xysfe/actui/es/assets/common/goldlayer.js"),require("@xysfe/actui/es/assets/mixins/picker.js"),require("@xysfe/actui/es/assets/mixins/basic-picker.js"),require("@xysfe/actui/es/assets/img/icon-search.png"),require("@xysfe/actui/es/assets/img/icon-close2.png"),require("@xysfe/actui/es/assets/img/tip_sq1.png")):e.GoldCareerLayer=t(e["@xysfe/actui/es/assets/utils/create/index.js"],e["@xysfe/actui/es/assets/utils/helpers.js"],e["@xysfe/actui/es/assets/mixins/visible.js"],e["@xysfe/actui/es/assets/mixins/popup.js"],e["@xysfe/actui/es/assets/common/scroll.js"],e["@xysfe/actui/es/assets/common/goldlayer.js"],e["@xysfe/actui/es/assets/mixins/picker.js"],e["@xysfe/actui/es/assets/mixins/basic-picker.js"],e["@xysfe/actui/es/assets/img/icon-search.png"],e["@xysfe/actui/es/assets/img/icon-close2.png"],e["@xysfe/actui/es/assets/img/tip_sq1.png"])}("undefined"!=typeof self?self:this,function(e,t,s,n,i,r,a,c,o,l,u){return function(e){function t(n){if(s[n])return s[n].exports;var i=s[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var s={};return t.m=e,t.c=s,t.d=function(e,s,n){t.o(e,s)||Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var s=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(s,"a",s),s},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="../es",t(t.s=2040)}({0:function(e,t){var s=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=s)},10:function(e,t,s){var n=s(4),i=s(41),r=s(38),a=Object.defineProperty;t.f=s(3)?Object.defineProperty:function(e,t,s){if(n(e),t=r(t,!0),n(s),i)try{return a(e,t,s)}catch(e){}if("get"in s||"set"in s)throw TypeError("Accessors not supported!");return"value"in s&&(e[t]=s.value),e}},109:function(e,t){e.exports=n},12:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},1226:function(e,t,s){"use strict";var n=s(146),i=s.n(n),r=s(159),a=s.n(r),c=s(2043),o=s(2046),l=s(109),u=s.n(l),f=s(639),p=s.n(f),h=s(631),d=s.n(h),y=s(40),v=s.n(y),x=s(129),m=s.n(x),g=s(39),_=(s.n(g),{applicant:"投保人职业",insured:"被保险人职业"}),S={1:"一",2:"二",3:"三",4:"四",5:"五",6:"六",7:"七",8:"八",9:"九"},C={CAN_BUY:"CAN_BUY",CANNOT_BUY:"CANNOT_BUY",HIDE:"HIDE"};t.a={name:"ActGoldCareerLayer",mixins:[u.a,v.a,p.a,d.a],data:function(){return{cascadeData:this.careerData[this.activeKey]||[],pickerSelectedIndex:this.selectedIndex.slice()||[],selectedFrequency:!1,pendingSearchList:[],searchVal:"",searchMatchedList:null,onSearching:!1,docmHeight:document.documentElement.clientHeight,pickerContentHeight:0,searchHeight:"",scroller:null,contentHeight:0,itemTitles:["职业大类","职业中类","职业小类","职业小小类","职业小小小类","职业小小小小类"],tabBox:[],activeKey:"",realTitle:""}},props:{allowSearch:{type:Boolean,default:!0},searchPlaceholder:{type:String,default:"请输入搜索"},searchEmptyResultTips:{type:String,default:"找不到相关职业"},searchEmptyResultDesc:{type:String,default:"您可以更换一下职业名称搜索哦"},selectedColor:{type:String,default:"#8c7fee"},autoClose:{type:Boolean,default:!0},aloneAutoSelect:{type:Boolean,default:!0},showHeight:{type:Number,default:100},careerData:{type:Object,default:function(){return{}}},brandColor:{type:String,default:"#A69DFF"},btnColor:{type:String,default:"#ff5a6e"},title:{type:String,default:"职业列表"}},components:{ActGoldLayer:a.a,RowPicker:c.a,scroll:m.a,SearchList:o.a},created:function(){var e=this;this.initOption();var t=navigator.userAgent;(t.indexOf("Android")>-1||t.indexOf("Adr")>-1)&&window.addEventListener("resize",function(){if(0!==e.pickerContentHeight){var t=document.body.clientHeight;e.docmHeight>t?(e.$refs.pickerContent.style.height=e.docmHeight-t+"px",e.searchHeight=e.pickerContentHeight+t-e.docmHeight+"px"):(e.$refs.pickerContent.style.height=e.pickerContentHeight+"px",e.searchHeight="100%")}}),this.$nextTick(function(){e.setData(e.careerData,e.selectedIndex)})},watch:{isVisible:function(e){var t=this;!this.pickerContentHeight&&e&&this.$nextTick(function(){t.pickerContentHeight=Object(g.outerHeight)(t.$refs.pickerContent),t.refreshScroll()})}},methods:{initOption:function(){var e=this;if(Object(g.isObject)(this.careerData)&&i()(this.careerData).length){var t=i()(this.careerData)||[];t.length>1?this.activeKey="insured":1===t.length&&(this.activeKey=t[0],this.realTitle=_[t[0]]+"列表"),t.length&&t.forEach(function(t){_[t]&&e.tabBox.push({key:t,text:_[t]})})}this.careerData[this.activeKey]&&this.careerData[this.activeKey].length&&(this.cascadeData=this.careerData[this.activeKey]),this.scrollInit=!0},setData:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.cascadeData=e[this.activeKey],this.pickerSelectedIndex=t.slice(),this.pendingSearchList=[],this.searchMatchedList=null,this.resetSearch(),this._filterSearchList(this.cascadeData,this.pendingSearchList,[],[],[],0),this.$refs.rowPicker.setData(this.cascadeData,this.pickerSelectedIndex)},_filterSearchList:function(e,t,s,n,i,r){for(var a=void 0,c=[].concat(s),o=[].concat(n),l=[].concat(i),u=0,f=e.length;u<f;u++)a={},s=[].concat(c,[u]),n=[].concat(o,[e[u].code]),i=[].concat(l,[e[u].name]),e[u].subList?this._filterSearchList(e[u].subList,t,s,n,i,r+1):(a._index=s,a._text=i,a.value=n,e[u].category=this._getCategoryByCode({class:e[u].class,code:e[u].code}),e[u].displayStatus=this._getDisplayStatus({canBuy:e[u].canBuy,code:e[u].code}),a.category=e[u].category,a.displayStatus=e[u].displayStatus,a.text=i.join("/"),t.push(a))},_toSearchResult:function(){var e=this,t=this.searchVal,s=this.pendingSearchList,n=[];if(t){var i=this.escapeRegExpString(t);s.map(function(t){var s=t.text,r=new RegExp(i,"i").test(s);s&&r&&(s=s.replace(new RegExp(i,"ig"),'<span style="color:'+(e.selectedColor||"#8c7fee")+'">$&</span>'),n.push({text:s,value:t.value,category:t.category,displayStatus:t.displayStatus,_index:t._index,_text:t._text}))}),this.searchMatchedList=n}},onClear:function(){this.resetSearch()},select:function(e){this.autoClose&&this.$emit("select",e)},resetSearch:function(){this.searchVal="",this.searchMatchedList=null},scrollSuc:function(e){this.scroller=e},refreshScroll:function(){var e=this;this.scroller&&this.$nextTick(function(){e.scroller.refresh()})},search:function(){var e=this;this.searchVal||(this.searchMatchedList=[]),Object(g.throttle)(function(){e._toSearchResult()},500)()},escapeRegExpString:function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},maskClick:function(){this.maskClosable&&this.close()},back:function(){this.searchVal=""},close:function(){this.hide(),this.$emit("cancel")},handleTabChange:function(e){this.activeKey!==e&&(this.activeKey=e,this.setData(this.careerData,this.selectedIndex))},_getCategoryByCode:function(e){var t=e.class,s=e.code;if(~~t)return S[t]?S[t]+"类":"";if(!s||-1===s.indexOf("-"))return"";var n=s.split("-"),i=n[n.length-2];return/^\d+$/.test(i)?S[i]?S[i]+"类":"":i},_getDisplayStatus:function(e){if(e.hasOwnProperty("canBuy")&&void 0!==e.canBuy&&""!==e.canBuy){var t=~~e.canBuy;if(1===t)return C.CAN_BUY;if(0===t)return C.CANNOT_BUY}var s=e.code;if(s&&s.indexOf("-")>-1){var n=s.split("-"),i=~~n[n.length-1];if(1===i)return C.CAN_BUY;if(0===i)return C.CANNOT_BUY}return C.HIDE}}}},1227:function(e,t,s){"use strict";var n=s(40),i=s.n(n);t.a={name:"RowPicker",mixins:[i.a],props:{data:{type:Array,default:function(){return[]}},allowSearch:{type:Boolean,default:!1},selectedIndex:{type:Array,default:function(){return[]}},itemTitles:{type:Array,default:function(){return[]}},selectedColor:{type:String,default:""},aloneAutoSelect:{type:Boolean,default:!0}},data:function(){return{realData:null,realSelectedIndex:null,selectData:[],scrollsObj:{}}},methods:{setData:function(e,t){this.realData=e,this.realSelectedIndex=t.slice(),this._reset()},isSelected:function(e,t){return e.code===t.code},getColor:function(e,t){return this.isSelected(e,t)?this.selectedColor:""},getBgColor:function(e,t){return this.isSelected(e,t)?"#8c7fee"===this.selectedColor?"rgba(140,127,238,0.1)":"rgba(240,90,75,0.1)":""},_reset:function(){this.selectData=[],this._generateData(this.realData,this.realSelectedIndex,this.selectData,0),this.$emit("refreshScroll")},_generateData:function(e,t,s,n){if(t&&void 0!==t[n]){var i=t[n],r={code:e[i].code,name:e[i].name,items:e,open:!1};s.push(r),e[i].subList&&e[i].subList.length?this._generateData(e[i].subList,t,s,n+1):r.open=!0}else{var a={code:"",name:"",items:e,open:!0};1===e.length&&this.aloneAutoSelect?(a.code=e[0].code,a.name=e[0].name,a.open=!1,t.push.call(this.realSelectedIndex,0),s.push(a),e[0].subList&&e[0].subList.length?this._generateData(e[0].subList,t,s,n+1):a.open=!0):s.push(a)}},_toggleOpen:function(e,t){for(var s=0;s<this.selectData.length;s++){var n=this.selectData[s];s===t?(n.open=!n.open,this.$emit("refreshScroll")):n.open=!1}},isOpen:function(e,t){return t===this.selectData.length-1||e.open},select:function(e,t,s,n){e.name!==s.name&&(this.realSelectedIndex[t]=n,this.realSelectedIndex=this.realSelectedIndex.slice(0,t+1),this._reset(),this.$emit("select",e))},confirm:function(e){for(var t=[],s=[],n=0;n<this.selectData.length;n++){var i=this.selectData[n];if(""===i.code)return;t[n]=i.code,s[n]=i.name}this.$emit("select",t,this.realSelectedIndex,s)}}}},1228:function(e,t,s){"use strict";var n=s(2048);t.a={name:"SearchList",components:{ScrollList:n.a},props:{matchedList:{type:Array,default:null},searchVal:{type:String,default:null},selectedColor:{type:String,default:""},searchEmptyResultTips:{type:String,default:"找不到相关职业"},searchEmptyResultDesc:{type:String,default:"您可以更换一下职业名称搜索哦"}},methods:{select:function(e,t,s){this.$emit("select",e,t,s)},blur:function(){this.$emit("blur")}}}},1229:function(e,t,s){"use strict";t.a={name:"ScrollList",data:function(){return{}},props:{scrollList:{type:Array,default:function(){return[]}},selectedIndex:{type:Array,default:function(){return[]}},selectedColor:{type:String,default:""}},watch:{scrollList:function(e,t){var s=this;e&&this.$refs.scroller&&this.selectedIndex&&this.selectedIndex.length&&this.$nextTick(function(){var t=e.findIndex(function(e){return s.isSelected(e)});s.$refs.scroller.refresh();var n=s.$refs["scroll-item"+t]&&s.$refs["scroll-item"+t][0];n&&s.$refs.scroller.scrollToElement(n,0,0,!0)})}},methods:{isSelected:function(e){return e._index.join("#")===(this.selectedIndex||[]).join("#")},handleClick:function(e){this.$emit("select",e.value,e._index,e._text)},scrollStart:function(){this.$emit("blur")}}}},129:function(e,t){e.exports=i},13:function(e,t,s){var n=s(34),i=s(15);e.exports=function(e){return n(i(e))}},14:function(e,t){var s={}.toString;e.exports=function(e){return s.call(e).slice(8,-1)}},146:function(e,t,s){e.exports={default:s(175),__esModule:!0}},15:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},159:function(e,t){e.exports=r},16:function(e,t){var s=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:s)(e)}},17:function(e,t,s){var n=s(19);e.exports=function(e,t,s){if(n(e),void 0===t)return e;switch(s){case 1:return function(s){return e.call(t,s)};case 2:return function(s,n){return e.call(t,s,n)};case 3:return function(s,n,i){return e.call(t,s,n,i)}}return function(){return e.apply(t,arguments)}}},174:function(e,t,s){var n=s(9),i=s(2),r=s(12);e.exports=function(e,t){var s=(i.Object||{})[e]||Object[e],a={};a[e]=t(s),n(n.S+n.F*r(function(){s(1)}),"Object",a)}},175:function(e,t,s){s(176),e.exports=s(2).Object.keys},176:function(e,t,s){var n=s(33),i=s(28);s(174)("keys",function(){return function(e){return i(n(e))}})},18:function(e,t){e.exports=!0},19:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},2:function(e,t){var s=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=s)},20:function(e,t,s){var n=s(31)("keys"),i=s(24);e.exports=function(e){return n[e]||(n[e]=i(e))}},2040:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(26),i=s.n(n),r=s(2041);r.a.install=function(e){e.component(r.a.name,r.a),e.prototype.$createGoldCareerLayer=i()(r.a,e)},t.default=r.a},2041:function(e,t,s){"use strict";function n(e){c||s(2042)}var i=s(1226),r=s(2052),a=s(7),c=!1,o=n,l=Object(a.a)(i.a,r.a,r.b,!1,o,"data-v-0a8c7c5e",null);l.options.__file="src\\components\\GoldCareerLayer\\src\\index.vue",t.a=l.exports},2042:function(e,t){},2043:function(e,t,s){"use strict";function n(e){c||s(2044)}var i=s(1227),r=s(2045),a=s(7),c=!1,o=n,l=Object(a.a)(i.a,r.a,r.b,!1,o,"data-v-7fe9e587",null);l.options.__file="src\\components\\GoldCareerLayer\\src\\rowPicker.vue",t.a=l.exports},2044:function(e,t){},2045:function(e,t,s){"use strict";s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i});var n=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{ref:"picker",staticClass:"act-picker-row-wheel-bd",class:{"act-picker-row-wheel-bd-full":!e.allowSearch}},e._l(e.selectData,function(t,n){return s("div",{key:n,staticClass:"act-picker-row-wheel-item",class:{open:t.open}},[s("div",{staticClass:"act-picker-row-wheel-parent",class:{"bottom-line":!e.isOpen(t,n)},on:{click:function(s){return s.stopPropagation(),e._toggleOpen(t,n)}}},[s("div",{staticClass:"act-picker-row-wheel-title"},[e._v("\n "+e._s(e.itemTitles[n]||"")+"\n ")]),e._v(" "),s("div",{staticClass:"act-picker-row-wheel-text"},[s("span",{class:{"act-picker-row-wheel-placeholder":!t.name}},[e._v("\n "+e._s(t.name||"请选择")+"\n ")])]),e._v(" "),s("i",{staticClass:"act-picker-row-wheel-arrow"})]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"item.open"}],staticClass:"act-picker-row-wheel-scroll"},[s("ul",{staticClass:"act-picker-row-wheel-subset"},[e._l(t.items,function(i,r){return[s("li",{key:r,class:{checked:e.isSelected(t,i)},style:{color:e.getColor(t,i),background:e.getBgColor(t,i)},on:{click:function(s){return s.stopPropagation(),e.select(t,n,i,r)}}},[e.$scopedSlots.item?e._t("item",function(){return[e._v("\n "+e._s(i)+"\n ")]},{index:r,data:i,isSelected:e.isSelected}):[e._v("\n "+e._s(i.name)+"\n "),i.subList?e._e():s("div",{staticStyle:{display:"flex"}},[s("div",{staticClass:"text-item-right"},[s("span",{staticClass:"category"},[e._v(e._s(i.category))]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:"HIDE"!==i.displayStatus,expression:"subItem.displayStatus !== 'HIDE'"}],staticClass:"status",style:["CAN_BUY"===i.displayStatus?{background:e.selectedColor}:{},{opacity:1}]},[e._v("\n "+e._s("CAN_BUY"===i.displayStatus?"可投保":"不可投保")+"\n ")])])])]],2)]})],2)])])}),0)},i=[];n._withStripped=!0},2046:function(e,t,s){"use strict";function n(e){c||s(2047)}var i=s(1228),r=s(2051),a=s(7),c=!1,o=n,l=Object(a.a)(i.a,r.a,r.b,!1,o,"data-v-c8e32212",null);l.options.__file="src\\components\\GoldCareerLayer\\src\\searchList.vue",t.a=l.exports},2047:function(e,t){},2048:function(e,t,s){"use strict";function n(e){c||s(2049)}var i=s(1229),r=s(2050),a=s(7),c=!1,o=n,l=Object(a.a)(i.a,r.a,r.b,!1,o,"data-v-6a4cfb1c",null);l.options.__file="src\\components\\GoldCareerLayer\\src\\scrollList.vue",t.a=l.exports},2049:function(e,t){},2050:function(e,t,s){"use strict";s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i});var n=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("section",{staticClass:"scroll-list"},[s("ul",e._l(e.scrollList,function(t,n){return s("li",{key:n,ref:e.isSelected(t)?"scroll-item"+n:"",refInFor:!0,class:{checked:e.isSelected(t)},staticStyle:{display:"flex","justify-content":"space-between"},style:{color:e.isSelected(t)?e.selectedColor:""},on:{click:function(s){return e.handleClick(t)}}},[s("span",{domProps:{innerHTML:e._s(t.text)}}),e._v(" "),t.subList?e._e():s("div",{key:n,staticStyle:{display:"flex"}},[s("div",{staticClass:"text-item-right"},[s("span",{staticClass:"category"},[e._v(e._s(t.category))]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:"HIDE"!==t.displayStatus,expression:"item.displayStatus !== 'HIDE'"}],staticClass:"status",style:["CAN_BUY"===t.displayStatus?{background:e.selectedColor}:{},{opacity:1}]},[e._v("\n "+e._s("CAN_BUY"===t.displayStatus?"可投保":"不可投保")+"\n ")])])])])}),0)])},i=[];n._withStripped=!0},2051:function(e,t,s){"use strict";s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i});var n=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("section",{staticClass:"search"},[null!=e.matchedList&&e.matchedList.length>0?s("scroll-list",{attrs:{scrollList:e.matchedList,selectedColor:e.selectedColor},on:{select:e.select,blur:e.blur}}):e._e(),e._v(" "),s("section",{directives:[{name:"show",rawName:"v-show",value:e.searchVal&&null!=e.matchedList&&0===e.matchedList.length,expression:"searchVal && matchedList != null && matchedList.length === 0"}],staticClass:"search-empty"},["#8c7fee"===e.selectedColor?s("img",{attrs:{src:"https://sslstatic.xiaoyusan.com/ot/act/icon-nodata.c0ccbc9f2e3fc547.png"}}):s("img",{attrs:{src:"https://sslstatic.cxisc.com/ot/act/icon-nodata-cps.790a1e4ce7043d7f.png"}}),e._v(" "),s("h4",{staticClass:"tip"},[e._v(e._s(e.searchEmptyResultTips))]),e._v(" "),s("p",{staticClass:"desc"},[e._v(e._s(e.searchEmptyResultDesc))])])],1)},i=[];n._withStripped=!0},2052:function(e,t,s){"use strict";s.d(t,"a",function(){return n}),s.d(t,"b",function(){return i});var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"layer-wrap"},[n("act-gold-layer",{attrs:{visible:e.isVisible,title:e.realTitle||e.title,center:!1,mask:!0,zIndex:e.zIndex},on:{close:e.maskClick}},[n("div",{staticClass:"tip"},[n("img",{attrs:{src:s(844),alt:""}}),e._v(" "),n("span",[e._v("职业可能存在特殊投保规则,以投保结果为准")])]),e._v(" "),e.tabBox.length>1?n("div",{staticClass:"tab-line"},e._l(e.tabBox,function(t,s){return n("div",{key:t.key+s,staticClass:"tabBox",class:{selected:e.activeKey===t.key},on:{click:function(s){return e.handleTabChange(t.key)}}},[n("span",{staticClass:"text"},[e._v("\n "+e._s(t.text)+"\n ")]),e._v(" "),e.activeKey===t.key&&e.tabBox.length>1?n("div",{staticClass:"bottom",style:{background:e.brandColor}}):e._e()])}),0):e._e(),e._v(" "),n("div",{ref:"pickerContent",staticClass:"act-picker-content"},[n("div",{staticClass:"act-picker-line"}),e._v(" "),n("div",{staticClass:"act-picker-main"},[n("scroll",{attrs:{listenScrollInit:!0},on:{scrollSuc:e.scrollSuc}},[n("div",{ref:"scrollContent",staticClass:"scroll-content-warp"},[e.allowSearch?n("div",{staticClass:"act-picker-search"},[n("img",{staticClass:"search-icon",attrs:{src:s(640),alt:""}}),e._v(" "),n("div",{staticClass:"search-content"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.searchVal,expression:"searchVal"}],ref:"searchRef",staticClass:"search-text-content",attrs:{type:"text",placeholder:e.searchPlaceholder},domProps:{value:e.searchVal},on:{input:[function(t){t.target.composing||(e.searchVal=t.target.value)},e.search]}}),e._v(" "),n("img",{directives:[{name:"show",rawName:"v-show",value:e.searchVal,expression:"searchVal"}],staticClass:"close-icon",attrs:{src:s(785),alt:""},on:{click:e.onClear}})])]):e._e(),e._v(" "),n("row-picker",{directives:[{name:"show",rawName:"v-show",value:!e.searchVal,expression:"!searchVal"}],ref:"rowPicker",attrs:{allowSearch:e.allowSearch,itemTitles:e.itemTitles,selectedColor:e.selectedColor,aloneAutoSelect:e.aloneAutoSelect},on:{select:e.select,refreshScroll:e.refreshScroll},scopedSlots:e._u([e.$scopedSlots.pickerItem?{key:"item",fn:function(t){return[e._t("pickerItem",null,{index:t.index,data:t.data,isSelected:t.isSelected})]}}:null],null,!0)}),e._v(" "),n("search-list",{directives:[{name:"show",rawName:"v-show",value:e.searchVal,expression:"searchVal"}],attrs:{searchVal:e.searchVal,matchedList:e.searchMatchedList,selectedColor:e.selectedColor,searchEmptyResultTips:e.searchEmptyResultTips},on:{select:e.select}})],1)])],1),e._v(" "),n("div",{staticClass:"iphonex_padding"})])])],1)},i=[];n._withStripped=!0},22:function(e,t,s){var n=s(6),i=s(0).document,r=n(i)&&n(i.createElement);e.exports=function(e){return r?i.createElement(e):{}}},23:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},24:function(e,t){var s=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++s+n).toString(36))}},26:function(t,s){t.exports=e},28:function(e,t,s){var n=s(42),i=s(32);e.exports=Object.keys||function(e){return n(e,i)}},3:function(e,t,s){e.exports=!s(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},31:function(e,t,s){var n=s(2),i=s(0),r=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:s(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},32:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},33:function(e,t,s){var n=s(15);e.exports=function(e){return Object(n(e))}},34:function(e,t,s){var n=s(14);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},35:function(e,t,s){var n=s(16),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},38:function(e,t,s){var n=s(6);e.exports=function(e,t){if(!n(e))return e;var s,i;if(t&&"function"==typeof(s=e.toString)&&!n(i=s.call(e)))return i;if("function"==typeof(s=e.valueOf)&&!n(i=s.call(e)))return i;if(!t&&"function"==typeof(s=e.toString)&&!n(i=s.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},39:function(e,s){e.exports=t},4:function(e,t,s){var n=s(6);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},40:function(e,t){e.exports=s},41:function(e,t,s){e.exports=!s(3)&&!s(12)(function(){return 7!=Object.defineProperty(s(22)("div"),"a",{get:function(){return 7}}).a})},42:function(e,t,s){var n=s(8),i=s(13),r=s(46)(!1),a=s(20)("IE_PROTO");e.exports=function(e,t){var s,c=i(e),o=0,l=[];for(s in c)s!=a&&n(c,s)&&l.push(s);for(;t.length>o;)n(c,s=t[o++])&&(~r(l,s)||l.push(s));return l}},46:function(e,t,s){var n=s(13),i=s(35),r=s(47);e.exports=function(e){return function(t,s,a){var c,o=n(t),l=i(o.length),u=r(a,l);if(e&&s!=s){for(;l>u;)if((c=o[u++])!=c)return!0}else for(;l>u;u++)if((e||u in o)&&o[u]===s)return e||u||0;return!e&&-1}}},47:function(e,t,s){var n=s(16),i=Math.max,r=Math.min;e.exports=function(e,t){return e=n(e),e<0?i(e+t,0):r(e,t)}},5:function(e,t,s){var n=s(10),i=s(23);e.exports=s(3)?function(e,t,s){return n.f(e,t,i(1,s))}:function(e,t,s){return e[t]=s,e}},6:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},631:function(e,t){e.exports=a},639:function(e,t){e.exports=c},640:function(e,t){e.exports=o},7:function(e,t,s){"use strict";function n(e,t,s,n,i,r,a,c){e=e||{};var o=typeof e.default;"object"!==o&&"function"!==o||(e=e.default);var l="function"==typeof e?e.options:e;t&&(l.render=t,l.staticRenderFns=s,l._compiled=!0),n&&(l.functional=!0),r&&(l._scopeId=r);var u;if(a?(u=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)},l._ssrRegister=u):i&&(u=c?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var f=l.render;l.render=function(e,t){return u.call(t),f(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,u):[u]}return{exports:e,options:l}}t.a=n},785:function(e,t){e.exports=l},8:function(e,t){var s={}.hasOwnProperty;e.exports=function(e,t){return s.call(e,t)}},844:function(e,t){e.exports=u},9:function(e,t,s){var n=s(0),i=s(2),r=s(17),a=s(5),c=s(8),o=function(e,t,s){var l,u,f,p=e&o.F,h=e&o.G,d=e&o.S,y=e&o.P,v=e&o.B,x=e&o.W,m=h?i:i[t]||(i[t]={}),g=m.prototype,_=h?n:d?n[t]:(n[t]||{}).prototype;h&&(s=t);for(l in s)(u=!p&&_&&void 0!==_[l])&&c(m,l)||(f=u?_[l]:s[l],m[l]=h&&"function"!=typeof _[l]?s[l]:v&&u?r(f,n):x&&_[l]==f?function(e){var t=function(t,s,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,s)}return new e(t,s,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):y&&"function"==typeof f?r(Function.call,f):f,y&&((m.virtual||(m.virtual={}))[l]=f,e&o.R&&g&&!g[l]&&a(g,l,f)))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,o.U=64,o.R=128,e.exports=o}})});