1234567891011 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uview-ui/components/u-input/u-input"],{553:function(n,e,t){"use strict";t.r(e);var i=t(554),r=t(556);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);t(558);var o,a=t(36),c=Object(a["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"113bc24f",null,!1,i["components"],o);c.options.__file="uni_modules/uview-ui/components/u-input/u-input.vue",e["default"]=c.exports},554:function(n,e,t){"use strict";t.r(e);var i=t(555);t.d(e,"render",(function(){return i["render"]})),t.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(e,"components",(function(){return i["components"]}))},555:function(n,e,t){"use strict";var i;t.r(e),t.d(e,"render",(function(){return r})),t.d(e,"staticRenderFns",(function(){return o})),t.d(e,"recyclableRender",(function(){return u})),t.d(e,"components",(function(){return i}));try{i={uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(t.bind(null,283))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var n=this,e=n.$createElement,t=(n._self._c,n.__get_style([n.wrapperStyle])),i=n.__get_style([n.inputStyle]);n.$mp.data=Object.assign({},{$root:{s0:t,s1:i}})},u=!1,o=[];r._withStripped=!0},556:function(n,e,t){"use strict";t.r(e);var i=t(557),r=t.n(i);for(var u in i)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(u);e["default"]=r.a},557:function(n,e,t){"use strict";(function(n){var i=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(t(420)),u={name:"u-input",mixins:[n.$u.mpMixin,n.$u.mixin,r.default],data:function(){return{innerValue:"",focused:!1,firstChange:!0,changeFromInner:!1,innerFormatter:function(n){return n}}},watch:{value:{immediate:!0,handler:function(n,e){this.innerValue=n,this.firstChange=!1,this.changeFromInner=!1}}},computed:{isShowClear:function(){var n=this.clearable,e=this.readonly,t=this.focused,i=this.innerValue;return!!n&&!e&&!!t&&""!==i},inputClass:function(){var n=[],e=this.border,t=(this.disabled,this.shape);return"surround"===e&&(n=n.concat(["u-border","u-input--radius"])),n.push("u-input--".concat(t)),"bottom"===e&&(n=n.concat(["u-border-bottom","u-input--no-radius"])),n.join(" ")},wrapperStyle:function(){var e={};return this.disabled&&(e.backgroundColor=this.disabledColor),"none"===this.border?e.padding="0":(e.paddingTop="6px",e.paddingBottom="6px",e.paddingLeft="9px",e.paddingRight="9px"),n.$u.deepMerge(e,n.$u.addStyle(this.customStyle))},inputStyle:function(){var e={color:this.color,fontSize:n.$u.addUnit(this.fontSize),textAlign:this.inputAlign};return e}},methods:{setFormatter:function(n){this.innerFormatter=n},onInput:function(n){var e=this,t=n.detail||{},i=t.value,r=void 0===i?"":i,u=this.formatter||this.innerFormatter,o=u(r);this.innerValue=r,this.$nextTick((function(){e.innerValue=o,e.valueChange()}))},onBlur:function(e){var t=this;this.$emit("blur",e.detail.value),n.$u.sleep(50).then((function(){t.focused=!1})),n.$u.formValidate(this,"blur")},onFocus:function(n){this.focused=!0,this.$emit("focus")},onConfirm:function(n){this.$emit("confirm",this.innerValue)},onkeyboardheightchange:function(){this.$emit("keyboardheightchange")},valueChange:function(){var e=this,t=this.innerValue;this.$nextTick((function(){e.$emit("input",t),e.changeFromInner=!0,e.$emit("change",t),n.$u.formValidate(e,"change")}))},onClear:function(){var n=this;this.innerValue="",this.$nextTick((function(){n.valueChange(),n.$emit("clear")}))},clickHandler:function(){}}};e.default=u}).call(this,t(2)["default"])},558:function(n,e,t){"use strict";t.r(e);var i=t(559),r=t.n(i);for(var u in i)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(u);e["default"]=r.a},559:function(n,e,t){}}]);
- //# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uview-ui/components/u-input/u-input.js.map
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'uni_modules/uview-ui/components/u-input/u-input-create-component',
- {
- 'uni_modules/uview-ui/components/u-input/u-input-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('2')['createComponent'](__webpack_require__(553))
- })
- },
- [['uni_modules/uview-ui/components/u-input/u-input-create-component']]
- ]);
|