/*! For license information please see a2a218972144fe33898d9e262408c2c0.js.LICENSE.txt */ "use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["sub-common/a2a218972144fe33898d9e262408c2c0"],{"./src/components/FromList/index.tsx":function(e,l,o){var i=o("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),n=o("./node_modules/react/cjs/react.production.min.js"),s=o("./node_modules/react/cjs/react-jsx-runtime.production.min.js"),t=function FromList(e){var l,o=e.type,n=void 0===o?"input":o,t=e.value,c=void 0===t?"":t,r=e.style,a=void 0===r?{}:r,d=e.labelStyle,u=void 0===d?{}:d,p=e.contentStyle,m=void 0===p?{}:p,h=e.required,x=void 0!==h&&h;return(0,s.jsxs)(i.View,{style:a,className:"form-list",children:[(0,s.jsx)(i.View,{style:u,className:"form-list-label ".concat(x&&"form-list-label-required"),children:e.label}),(0,s.jsx)(i.View,{onClick:null==e?void 0:e.onClick,className:"form-list-right",children:null!==(l=e.children)&&void 0!==l?l:(0,s.jsx)(i.View,{style:m,onClick:null==e?void 0:e.onClick,className:"form-list-right-meet",children:"input"==n?(0,s.jsxs)(i.View,{className:"form-list-input",children:[(0,s.jsx)(i.Input,{alwaysEmbed:!0,cursorSpacing:150,value:c,"placeholder-class":"phcolor",type:e.primordialType||"text",onInput:null==e?void 0:e.onInput,placeholder:e.placeholder}),c&&(0,s.jsx)(i.View,{children:(0,s.jsx)(i.Text,{onClick:function onClick(){return e.onInput&&e.onInput({detail:{value:""}})},className:"iconfont icon-qingkong"})})]}):"textarea"==n?(0,s.jsx)(i.Textarea,{value:c,"placeholder-class":"phcolor",onInput:null==e?void 0:e.onInput,placeholder:e.placeholder}):(0,s.jsxs)(s.Fragment,{children:[e.value?(0,s.jsx)(i.View,{children:c}):(0,s.jsx)(i.View,{className:"form-list-right-placeholder",children:e.placeholder}),(0,s.jsx)(i.View,{className:"form-list-right-enter",children:(0,s.jsx)(i.Text,{className:"iconfont icon-a-moreback"})})]})})})]})};l.default=(0,n.memo)(t)}}]);