| 12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/plugin/selectList"],{"0f97":function(t,n,e){"use strict";e.r(n);var r=e("617c"),a=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);n["default"]=a.a},1401:function(t,n,e){"use strict";var r=e("e8b7"),a=e.n(r);a.a},"617c":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e("ca00");function a(t,n){var e="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=i(t))||n&&t&&"number"===typeof t.length){e&&(t=e);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return c=t.done,t},e:function(t){u=!0,o=t},f:function(){try{c||null==e.return||e.return()}finally{if(u)throw o}}}}function i(t,n){if(t){if("string"===typeof t)return o(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var c={RADIO:"radio",MULTIPLE:"multiple"},u={props:{list:{type:Array,default:function(){return[]}},type:{type:String,default:c.RADIO}},data:function(){return{curValue:"",curIndex:-1,showList:!1,dataList:[]}},onLoad:function(){},created:function(){this.initList()},computed:{curItemName:function(){var t=this,n=[];this.dataList&&this.dataList[this.curIndex]&&(n=this.dataList[this.curIndex].data);var e=n.find((function(n){return n.value==t.curValue}));return!!e&&e.name}},methods:{initList:function(){var t=this;this.dataList=[];var n,e=a(this.list);try{var i=function(){var e=n.value,a=(0,r.copyObject)(e);a.data.forEach((function(t){t.value==a.default?t.checked=!0:t.checked=!1})),t.dataList.push(a)};for(e.s();!(n=e.n()).done;)i()}catch(o){e.e(o)}finally{e.f()}},getListCheckName:function(t){var n,e=t.title,r=a(t.data);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.checked){e=i.name;break}}}catch(o){r.e(o)}finally{r.f()}return e},touchContent:function(){},touchMarkEvent:function(){this.showList=!1,this.curIndex=-1},selectItemEvent:function(t){var n=this;if(c.RADIO==this.type){var e=this.dataList[this.curIndex].data;e.forEach((function(t){t.checked=!1})),console.log(444444,e)}this.curValue=t.value,t.checked=!0,this.$nextTick((function(){n.searchEvent()}))},showListEvent:function(t){this.curIndex=t,this.showList=!0},searchEvent:function(){this.showList=!1;var t=this.getParams();this.$emit("search",t)},getParams:function(){var t,n={},e=a(this.dataList);try{for(e.s();!(t=e.n()).done;){var r,i=t.value,o=a(i.data);try{for(o.s();!(r=o.n()).done;){var c=r.value;if(n[i.key]="",c.checked){n[i.key]=c.value;break}}}catch(u){o.e(u)}finally{o.f()}}}catch(u){e.e(u)}finally{e.f()}return n}},watch:{list:function(t,n){t&&t instanceof Array&&this.initList()}}};n.default=u},"836e":function(t,n,e){"use strict";var r;e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return r}));var a=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__map(t.dataList,(function(n,e){var r=t.__get_orig(n),a=t.getListCheckName(n);return{$orig:r,m0:a}})));t._isMounted||(t.e0=function(n){return n.stopPropagation(),t.touchContent(n)}),t.$mp.data=Object.assign({},{$root:{l0:e}})},i=[]},e8a7:function(t,n,e){"use strict";e.r(n);var r=e("836e"),a=e("0f97");for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);e("1401");var o,c=e("7702"),u=Object(c["a"])(a["default"],r["b"],r["c"],!1,null,"65dd36c1",null,!1,r["a"],o);n["default"]=u.exports},e8b7:function(t,n,e){}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'components/plugin/selectList-create-component',
- {
- 'components/plugin/selectList-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('255a')['createComponent'](__webpack_require__("e8a7"))
- })
- },
- [['components/plugin/selectList-create-component']]
- ]);
|