<block wx:if="{{visible}}">
  <wd-form-item
    id="{{id}}"
    className="{{cls}}"
    style="{{style}}"
    label="{{label}}"
    labelVisible="{{labelVisible}}"
    labelTips="{{labelTips}}"
    labelWidth="{{labelWidth}}"
    labelAlign="{{labelAlign}}"
    labelWrap="{{labelWrap}}"
    layout="{{actualLayout}}"
    extra="{{extra}}"
    required="{{required}}"
    requiredFlag="{{requiredFlag}}"
    validateState="{{validateState}}"
    validateErrorMsg="{{validateErrorMsg}}"
    classRoot="{{classRoot}}"
    size="{{size}}"
    borderedH5="{{borderedH5}}"
    readOnly="{{readOnly}}"
    readValue="{{readValue}}"
  >
    <wd-input-group before="{{before}}" after="{{after}}" block="{{true}}" size="{{_size}}" classRoot="{{classRoot}}">
      <wd-input-wrap block="{{block}}" classRoot="{{classRoot}}" before="{{before}}" after="{{after}}" disabled="{{disabled}}" prefixType="{{prefixType}}" prefixIcon="{{prefixIcon}}" prefixSrc="{{prefixSrc}}" suffixType="{{suffixType}}" suffixIcon="{{suffixIcon}}" suffixSrc="{{suffixSrc}}" hasClearIcon="{{hasClearIcon}}" bind:onClear="handleClear">
        <old-location
          id="{{id}}"
          name="{{name}}"
          labelVisible="{{false}}"
          value="{{value}}"
          customLocation="{{customLocation}}"
          customRange="{{customRange}}"
          dataSource="{{dataSource}}"
          defauleShowLocation="{{defauleShowLocation}}"
          drag="{{drag}}"
          locationType="{{locationType}}"
          locationRange="{{locationRange}}"
          showLngLat="{{showLngLat}}"
          showMap="{{showMap}}"
          zoom="{{zoom}}"
          readOnly="{{readOnly}}"
          disabled="{{disabled || readOnly}}"
          bind:change="handleChange"
          bind:error="handleError"
        />
      </wd-input-wrap>
    </wd-input-group>
  </wd-form-item>
</block>
