2 lines
1.6 KiB
JavaScript
2 lines
1.6 KiB
JavaScript
/*! For license information please see e4015d998cf50ca1ca7b34bced9738a8.js.LICENSE.txt */
|
|
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["sub-common/e4015d998cf50ca1ca7b34bced9738a8"],{"./src/components/searchInput/index.tsx":function(e,n,o){var t=o("./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),c=o("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),s=o("./node_modules/react/cjs/react.production.min.js"),i=o("./src/components/searchInput/index.module.scss"),a=o("./node_modules/react/cjs/react-jsx-runtime.production.min.js"),d=function SearchInput(e){var n=e.showTitle,o=void 0===n||n,d=e.title,l=void 0===d?"标题":d,r=e.showIcon,u=void 0!==r&&r,p=e.disabled,m=void 0!==p&&p,h=e.placeholder,f=void 0===h?"请输入":h,j=e.showBorder,v=void 0===j||j,w=e.changeOnInput,x=e.clickOnInput,b=e.height,I=void 0===b?"80rpx":b,_=e.titleStyle,g=void 0===_?{}:_,k=e.hasCopy,y=void 0!==k&&k,N=(0,s.useMemo)((function(){return v?{}:{borderBottom:0}}),[v]);return(0,a.jsxs)(c.View,{className:y?i.default.searchActive:i.default.searchInput_main,style:(0,t.default)({height:I},N),children:[o&&(0,a.jsx)(c.View,{className:i.default.searchInput_title,style:g,children:l}),(0,a.jsx)(c.View,{className:i.default.searchInput_con,children:!e.children&&(0,a.jsx)(c.Input,{alwaysEmbed:!0,cursorSpacing:150,disabled:m,placeholder:f,onClick:function onClick(){return null==x?void 0:x()},onInput:function onInput(e){return null==w?void 0:w(e.detail.value)}})||(0,a.jsx)(a.Fragment,{children:e.children})}),u&&(0,a.jsx)(c.View,{className:"iconfont icon-jiantou ".concat(i.default.icon_more_self)})]})};n.default=(0,s.memo)(d)}}]); |