(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-fc1d43b8"],{4420:function(t,e,s){"use strict";s.r(e);var i=(s("99af"),s("d3b7"),s("ac1f"),s("5319"),s("2b0e")).a.extend({components:{"app-icon":function(){return Promise.all([s.e("chunk-0a381f90"),s.e("chunk-38af0870")]).then(s.bind(null,"73f7"))}},props:{title:String,dot:{type:Boolean,default:!1},type:{type:String,default:"content"},inputType:{type:String,default:"text"},placeholder:{type:String,default:"请输入..."},titleColor:{type:String,default:"text-text-primary"},classInput:{type:String,default:"text-right"},titleClass:String,contentClass:{type:String,default:"items-center"},required:{type:Boolean,default:!1},errorMsg:String,value:String,label:String,content:String,validator:Function},name:"CCell",data:function(){return{isError:!1,errorMessage:""}},computed:{getClass:function(){return"".concat(this.titleColor||""," ").concat(this.titleClass||"")},inputClass:function(){return this.isError?"".concat(this.classInput," text-text-warning"):"".concat(this.classInput)}},methods:{clickItem:function(){this.$emit("click")},checkIfEmpty:function(t){return void 0!==t&&""!==t.replace(/(^\s*)|(\s*$)/g,"")},handleInput:function(t){var e=t.target.value;this.$emit("input",e)},handleBlur:function(t){var e=this,s=t.target.value;if(this.required&&!this.checkIfEmpty(s))return this.isError=!0,this.errorMessage=this.errorMsg||"值不能为空",void this.$emit("input","");"function"==typeof this.validator&&this.checkIfEmpty(s)&&this.validator(s,(function(t){void 0!==t&&(e.isError=!0,e.errorMessage=t.message)}))},handleFocus:function(){this.isError=!1,this.errorMessage=""}}}),n=s("2877"),r=Object(n.a)(i,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"mb-px bg-white px-4 rounded",on:{click:t.clickItem}},[t.checkIfEmpty(t.label)?i("div",{staticClass:"text-sm text-text-secondary py-2"},[t._v(t._s(t.label))]):t._e(),i("div",{staticClass:"flex py-3 items-center justify-between"},[t._t("prefix"),i("div",{staticClass:"flex justify-between flex-1",class:t.contentClass},[t.required?i("div",{staticClass:"text-color-primary mr-0.5"},[t._v("*")]):t._e(),t.checkIfEmpty(t.title)?i("div",{staticClass:"title flex-shrink-0 mr-4",class:t.getClass},[t._v(t._s(t.title))]):t._e(),"input"===t.type?[i("input",{staticClass:"w-full  text-sm text-text-secondary focus:text-text-primary",class:t.inputClass,attrs:{type:t.inputType,placeholder:t.placeholder},domProps:{value:t.value},on:{input:t.handleInput,blur:t.handleBlur,focus:t.handleFocus}})]:[t._t("content",(function(){return[t.checkIfEmpty(t.content)?i("div",{staticClass:"flex-1 flex-shrink-0 text-text-secondary text-sm text-right"},[t._v(t._s(t.content))]):t._e()]}))]],2),t._t("right"),t.dot?i("app-icon",{attrs:{type:"png",path:s("8562"),"class-name":"h-5 w-1 ml-auto flex-shrink-0 ml-1.5"}}):t._e()],2),t.isError?i("div",{staticClass:"text-text-warning text-sm pb-1.5 text-right"},[t._v(t._s(t.errorMessage))]):t._e()])}),[],!1,null,null,null);e.default=r.exports},8562:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABQBAMAAADiheg+AAAAFVBMVEXT3+ZHcEzU4OfV4efU4ebU4OfU4Of77TwFAAAAB3RSTlP/ANUrj5S9u+Ck7AAAAEtJREFUKM9jEBQ0UWByFhRkEBRlAIJAICMBxGATZAALAIUYDCAMZgYHCIOFQQHCYGLABHApuGK4driBcCsQlsKdAQWDhzEaPkMofACcnCKJPi+oxwAAAABJRU5ErkJggg=="}}]);
//# sourceMappingURL=chunk-fc1d43b8.d4709889.js.map