<wrapper>
  <view class="search-bar">
    <view class="search">
      <am-icon type="search" />
      <input
        value="{{value}}"
        type="text"
        placeholder="搜索景点、美食、商家等"
        placeholder-class="input-placeholder"
        confirm-type="search"
        onInput="onInput"
        onConfirm="onConfirm"
      />
      <view a:if="{{value}}" onTap="onClear" class="clear">
        <am-icon type="delete_" />
      </view>
    </view>
  </view>
</wrapper>
