<template>
  <div class="doc">
    <h2>Switch</h2>
    <p class="component-name-tip">In non-string templates，it is necessary to use <code>h-switch</code>, generally use <code>hSwitch</code>. </p>
    <h3>Basic</h3>
    <example demo="form/switch2"></example>

    <h3>self defined true and false value</h3>
    <example demo="form/switch1"></example>

    <h3>Disabled</h3>
    <example demo="form/switch3"></example>

    <h3>Switch Property</h3>
    <table class="table">
      <tr>
        <th>Property</th>
        <th>Description</th>
        <th>Type</th>
        <th>Optional</th>
        <th>Default</th>
      </tr>
      <tr>
        <td>small</td>
        <td>Smaller size</td>
        <td>Boolean</td>
        <td>-</td>
        <td>false</td>
      </tr>
      <tr>
        <td>disabled</td>
        <td></td>
        <td>Boolean</td>
        <td>-</td>
        <td>false</td>
      </tr>
      <tr>
        <td>trueValue</td>
        <td></td>
        <td>-</td>
        <td>-</td>
        <td>true</td>
      </tr>
      <tr>
        <td>falseValue</td>
        <td></td>
        <td>-</td>
        <td>-</td>
        <td>false</td>
      </tr>
    </table>
  </div>
</template>