naive-ui/demo/documentation/components/modal/zhCN/dark2Debug.demo.md
07akioni 487001d697 build: add changelog to site, refactor loader based on suffix
.demo.md for component demo
.demo-entry.md for demo entry
.md for common docs
2020-08-19 23:30:04 +08:00

5.3 KiB

Dark Debug 2

<n-button @click="modalActive = !modalActive">Toggle</n-button>
<n-modal
  title="Dark Modal Debug"
  preset="card"
  v-model="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
    }
  },
}