wszhyWx/unpackage/dist/build/mp-weixin/node-modules/uview-ui/components/u-field/u-field.js

11 lines
4.1 KiB
JavaScript
Raw Normal View History

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["node-modules/uview-ui/components/u-field/u-field"],{1812:function(t,e,n){},"6b93":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"u-field",props:{icon:String,rightIcon:String,required:Boolean,label:String,password:Boolean,clearable:{type:Boolean,default:!0},labelWidth:{type:[Number,String],default:130},labelAlign:{type:String,default:"left"},inputAlign:{type:String,default:"left"},iconColor:{type:String,default:"#606266"},autoHeight:{type:Boolean,default:!0},errorMessage:{type:[String,Boolean],default:""},placeholder:String,placeholderStyle:String,focus:Boolean,fixed:Boolean,value:[Number,String],type:{type:String,default:"text"},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},labelPosition:{type:String,default:"left"},fieldStyle:{type:Object,default:function(){return{}}},clearSize:{type:[Number,String],default:30},iconStyle:{type:Object,default:function(){return{}}},borderTop:{type:Boolean,default:!1},borderBottom:{type:Boolean,default:!0},trim:{type:Boolean,default:!0}},data:function(){return{focused:!1,itemIndex:0}},computed:{inputWrapStyle:function(){var t={};return t.textAlign=this.inputAlign,"left"==this.labelPosition?t.margin="0 8rpx":t.marginRight="8rpx",t},rightIconStyle:function(){var t={};return"top"==this.arrowDirection&&(t.transform="roate(-90deg)"),"bottom"==this.arrowDirection?t.transform="roate(90deg)":t.transform="roate(0deg)",t},labelStyle:function(){var t={};return"left"==this.labelAlign&&(t.justifyContent="flext-start"),"center"==this.labelAlign&&(t.justifyContent="center"),"right"==this.labelAlign&&(t.justifyContent="flext-end"),t},justifyContent:function(){return"left"==this.labelAlign?"flex-start":"center"==this.labelAlign?"center":"right"==this.labelAlign?"flex-end":void 0},inputMaxlength:function(){return Number(this.maxlength)},fieldInnerStyle:function(){var t={};return"left"==this.labelPosition?t.flexDirection="row":t.flexDirection="column",t}},methods:{onInput:function(t){var e=t.detail.value;this.trim&&(e=this.$u.trim(e)),this.$emit("input",e)},onFocus:function(t){this.focused=!0,this.$emit("focus",t)},onBlur:function(t){var e=this;setTimeout((function(){e.focused=!1}),100),this.$emit("blur",t)},onConfirm:function(t){this.$emit("confirm",t.detail.value)},onClear:function(t){this.$emit("input","")},rightIconClick:function(){this.$emit("right-icon-click"),this.$emit("click")},fieldClick:function(){this.$emit("click")}}};e.default=i},8554:function(t,e,n){"use strict";var i=n("1812"),l=n.n(i);l.a},"989f":function(t,e,n){"use strict";n.r(e);var i=n("d8aa"),l=n("cf8e");for(var o in l)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return l[t]}))}(o);n("8554");var r=n("f0c5"),u=Object(r["a"])(l["default"],i["b"],i["c"],!1,null,"65ef7094",null,!1,i["a"],void 0);e["default"]=u.exports},cf8e:function(t,e,n){"use strict";n.r(e);var i=n("6b93"),l=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=l.a},d8aa:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uIcon:function(){return n.e("node-modules/uview-ui/components/u-icon/u-icon").then(n.bind(null,"584e"))}},l=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__get_style([t.inputWrapStyle])),i="textarea"==t.type?t.__get_style([t.fieldStyle]):null,l="textarea"!=t.type?t.__get_style([t.fieldStyle]):null,o=t.rightIcon?t.__get_style([t.rightIconStyle]):null;t.$mp.data=Object.assign({},{$root:{s0:n,s1:i,s2:l,s3:o}})},o=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'node-modules/uview-ui/components/u-field/u-field-create-component',
{
'node-modules/uview-ui/components/u-field/u-field-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("989f"))
})
},
[['node-modules/uview-ui/components/u-field/u-field-create-component']]
]);