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
2.7 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uni-combox/uni-combox"],{"2f9e":function(t,n,e){"use strict";var i=e("4f7e"),o=e.n(i);o.a},"3ee3":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return i}));var i={uniIcons:function(){return Promise.all([e.e("common/vendor"),e.e("components/uni-icons/uni-icons")]).then(e.bind(null,"2694"))}},o=function(){var t=this,n=t.$createElement;t._self._c},u=[]},"41b0":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=function(){Promise.all([e.e("common/vendor"),e.e("components/uni-icons/uni-icons")]).then(function(){return resolve(e("2694"))}.bind(null,e)).catch(e.oe)},o={name:"uniCombox",components:{uniIcons:i},props:{label:{type:String,default:""},labelWidth:{type:String,default:"auto"},placeholder:{type:String,default:""},candidates:{type:Array,default:function(){return[]}},emptyTips:{type:String,default:"无匹配项"},value:{type:String,default:""}},data:function(){return{showSelector:!1,inputVal:""}},computed:{labelStyle:function(){return"auto"===this.labelWidth?{}:{width:this.labelWidth}},filterCandidates:function(){var t=this;return this.candidates.filter((function(n){return n.indexOf(t.inputVal)>-1}))},filterCandidatesLength:function(){return this.filterCandidates.length}},watch:{value:{handler:function(t){this.inputVal=t},immediate:!0}},methods:{toggleSelector:function(){this.showSelector=!this.showSelector},onFocus:function(){this.showSelector=!0},onBlur:function(){var t=this;setTimeout((function(){t.showSelector=!1}),50)},onSelectorClick:function(t){this.inputVal=this.filterCandidates[t],this.showSelector=!1,this.$emit("input",this.inputVal)},onInput:function(){var t=this;setTimeout((function(){t.$emit("input",t.inputVal)}))}}};n.default=o},"4f7e":function(t,n,e){},aa2a:function(t,n,e){"use strict";e.r(n);var i=e("3ee3"),o=e("c9cd");for(var u in o)"default"!==u&&function(t){e.d(n,t,(function(){return o[t]}))}(u);e("2f9e");var c,r=e("f0c5"),a=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"65de03b2",null,!1,i["a"],c);n["default"]=a.exports},c9cd:function(t,n,e){"use strict";e.r(n);var i=e("41b0"),o=e.n(i);for(var u in i)"default"!==u&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=o.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/uni-combox/uni-combox-create-component',
{
'components/uni-combox/uni-combox-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("aa2a"))
})
},
[['components/uni-combox/uni-combox-create-component']]
]);