naive-ui/demo/documentation/components/modal/zhCN/dark-2-debug.demo.md
2020-12-12 14:44:44 +08:00

5.6 KiB

Dark Debug 2

<n-button @click="modalActive = !modalActive">Toggle</n-button>
<n-modal
  title="Dark Modal Debug"
  preset="card"
  v-model:show="modalActive"
  :overlay-style="{ marginTop: '24px', marginBottom: '24px' }"
>
  <n-table :bordered="false" :single-line="false">
    <n-thead>
      <n-tr>
        <n-th>Abandon</n-th>
        <n-th>Abormal</n-th>
        <n-th>Abolish</n-th>
        <n-th>...</n-th>
        <n-th>It's hard to learn words</n-th>
      </n-tr>
    </n-thead>
    <n-tbody>
      <n-tr>
        <n-td>放弃</n-td>
        <n-td>反常的</n-td>
        <n-td>彻底废除</n-td>
        <n-td>...</n-td>
        <n-td>Damn it! I can't remember those words.</n-td>
      </n-tr>
      <n-tr>
        <n-td>...</n-td>
        <n-td>...</n-td>
        <n-td>...</n-td>
        <n-td>...</n-td>
        <n-td>...</n-td>
      </n-tr>
    </n-tbody>
  </n-table>
  <n-list>
    <template v-slot:header> hhh </template>
    <template v-slot:footer> fff </template>
    <n-list-item>
      <template v-slot:prefix>
        <n-button>Prefix</n-button>
      </template>
      <template v-slot:suffix>
        <n-button>Suffix</n-button>
      </template>
      <n-thing title="Thing" title-extra="extra" description="description">
        Biu<br />
        Biu<br />
        Biu<br />
      </n-thing>
    </n-list-item>
    <n-list-item>
      <n-thing title="Thing" title-extra="extra" description="description">
        Biu<br />
        Biu<br />
        Biu<br />
      </n-thing>
      <template v-slot:suffix>
        <n-button>Suffix</n-button>
      </template>
    </n-list-item>
  </n-list>
  <n-list bordered>
    <template v-slot:header> hhh </template>
    <template v-slot:footer> fff </template>
    <n-list-item>
      <template v-slot:prefix>
        <n-button>Prefix</n-button>
      </template>
      <template v-slot:suffix>
        <n-button>Suffix</n-button>
      </template>
      <n-thing title="Thing" title-extra="extra" description="description">
        Biu<br />
        Biu<br />
        Biu<br />
      </n-thing>
    </n-list-item>
    <n-list-item>
      <n-thing title="Thing" title-extra="extra" description="description">
        Biu<br />
        Biu<br />
        Biu<br />
      </n-thing>
      <template v-slot:suffix>
        <n-button>Suffix</n-button>
      </template>
    </n-list-item>
  </n-list>
  <n-descriptions bordered>
    <n-descriptions-item>
      <template v-slot:label> Breakfast </template>
      Apple
    </n-descriptions-item>
    <n-descriptions-item label="Lunch"> Apple </n-descriptions-item>
    <n-descriptions-item label="Supper"> Apple </n-descriptions-item>
    <n-descriptions-item label="Why Long">
      Why <br />
      Long <br />
      Long <br />
      Long <br />
      Long <br />
      Long
    </n-descriptions-item>
    <n-descriptions-item label="Why Long">
      Why <br />
      Long <br />
      Long <br />
      Long <br />
      Long <br />
      Long
    </n-descriptions-item>
    <n-descriptions-item label="Why Long">
      Why <br />
      Long <br />
      Long <br />
      Long <br />
      Long <br />
      Long
    </n-descriptions-item>
  </n-descriptions>
  <n-descriptions label-placement="left" bordered>
    <n-descriptions-item>
      <template v-slot:label> Breakfast </template>
      Apple
    </n-descriptions-item>
    <n-descriptions-item label="Lunch"> Apple </n-descriptions-item>
    <n-descriptions-item label="Supper"> Apple </n-descriptions-item>
    <n-descriptions-item label="Why Long">
      Why <br />
      Long <br />
      Long <br />
      Long <br />
      Long <br />
      Long
    </n-descriptions-item>
    <n-descriptions-item label="Why Long">
      Why <br />
      Long <br />
      Long <br />
      Long <br />
      Long <br />
      Long
    </n-descriptions-item>
    <n-descriptions-item label="Why Long">
      Why <br />
      Long <br />
      Long <br />
      Long <br />
      Long <br />
      Long
    </n-descriptions-item>
  </n-descriptions>
  <n-descriptions>
    <n-descriptions-item>
      <template v-slot:label> Breakfast </template>
      Apple
    </n-descriptions-item>
    <n-descriptions-item label="Lunch"> Apple </n-descriptions-item>
    <n-descriptions-item label="Supper"> Apple </n-descriptions-item>
    <n-descriptions-item label="Why Long">
      Why <br />
      Long <br />
      Long <br />
      Long <br />
      Long <br />
      Long
    </n-descriptions-item>
    <n-descriptions-item label="Why Long">
      Why <br />
      Long <br />
      Long <br />
      Long <br />
      Long <br />
      Long
    </n-descriptions-item>
    <n-descriptions-item label="Why Long">
      Why <br />
      Long <br />
      Long <br />
      Long <br />
      Long <br />
      Long
    </n-descriptions-item>
  </n-descriptions>
  <n-descriptions label-placement="left">
    <n-descriptions-item>
      <template v-slot:label> Breakfast </template>
      Apple
    </n-descriptions-item>
    <n-descriptions-item label="Lunch"> Apple </n-descriptions-item>
    <n-descriptions-item label="Supper"> Apple </n-descriptions-item>
    <n-descriptions-item label="Why Long">
      Why <br />
      Long <br />
      Long <br />
      Long <br />
      Long <br />
      Long
    </n-descriptions-item>
    <n-descriptions-item label="Why Long">
      Why <br />
      Long <br />
      Long <br />
      Long <br />
      Long <br />
      Long
    </n-descriptions-item>
    <n-descriptions-item label="Why Long">
      Why <br />
      Long <br />
      Long <br />
      Long <br />
      Long <br />
      Long
    </n-descriptions-item>
  </n-descriptions>
</n-modal>
export default {
  data() {
    return {
      modalActive: false
    }
  }
}