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.

10 lines
11 KiB

6 months ago
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/xfl-select/xfl-select"],{"1e8a":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return l})),i.d(e,"a",(function(){return n}));var o=function(){var t=this,e=t.$createElement;t._self._c},l=[]},"3f19":function(t,e,i){"use strict";var n=i("b309"),o=i.n(n);o.a},"4a0c":function(t,e,i){"use strict";i.r(e);var n=i("1e8a"),o=i("b027");for(var l in o)"default"!==l&&function(t){i.d(e,t,(function(){return o[t]}))}(l);i("3f19");var s,r=i("f0c5"),u=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"ce8b158a",null,!1,n["a"],s);e["default"]=u.exports},"8e63":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(i("66fd"));function o(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),t}function u(t,e){return d(t)||f(t,e)||a(t,e)||c()}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){if(t){if("string"===typeof t)return h(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)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function f(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,o=!1,l=void 0;try{for(var s,r=t[Symbol.iterator]();!(n=(s=r.next()).done);n=!0)if(i.push(s.value),e&&i.length===e)break}catch(u){o=!0,l=u}finally{try{n||null==r["return"]||r["return"]()}finally{if(o)throw l}}return i}}function d(t){if(Array.isArray(t))return t}n.default.__xfl_select=n.default.__xfl_select||new n.default;var p={name:"xfl-select",props:{list:{type:Array,default:function(){return[]}},focusShowList:null,initValue:null,isCanInput:{type:Boolean,default:!1},selectHideType:{type:String,default:"hideAll"},placeholder:{type:String,default:"请选择"},style_Container:{type:String,default:""},input_style:{type:String,default:""},disabled:{type:Boolean,default:!1},showItemNum:{type:Number,default:5},listShow:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0}},data:function(){return{isShowList:!1,selectText:"",activeIndex:-1,isRotate:!1,listTop__:50}},watch:{listShow:function(t,e){this.onDataChange_listShow(t,e)}},computed:{focusShowList__:function(){return null!=this.focusShowList&&this.focusShowList},listBoxHeight__:function(){var t=2;return this.showItemNum*t},showInput:function(){return this.isCanInput&&!this.disabled},innerList:function(){var t=[],e=this.list;return e.forEach((function(e,i){var n="object"===typeof e&&"value"in e?e.value:e,o="object"===typeof e&&1==e.disabled;t.push({isActive:!1,value:n,disabled:o})})),t}},mounted:function(){n.default.__xfl_select.$on("open",this.onOtherXflSelectOpen),this.switchMgr=new g(this.onListShow,this.onListHide),this.onDataChange_listShow(this.listShow,null),this.init()},beforeDestroy:function(){n.default.__xfl_select.$off("open",this.onOtherXflSelectOpen)},methods:{onOtherXflSelectOpen:function(t){"independent"!==this.selectHideType&&"hideOthers"!==this.selectHideType&&t!==this&&this.switchMgr.close(100)},init:function(){this.clearInput(),this.setInput(this.initValue),this.changeActiveIndex(this.initValue),this.getInputBoxHeight()},getInputBoxHeight:function(){var t=this,e=this;v(".show-box",e,(function(e){if(e){var i=6;t.listTop__=e[0].height+i}}))},getIndex:function(t){var e=m(this.innerList,t,"value");return e},itemIsDisabled:function(t){return this.innerList[t].disabled},itemIsActive:function(t){return t===this.activeIndex},
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'components/xfl-select/xfl-select-create-component',
  4. {
  5. 'components/xfl-select/xfl-select-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("4a0c"))
  7. })
  8. },
  9. [['components/xfl-select/xfl-select-create-component']]
  10. ]);