naive-ui/demo/documentation/components/modal/zhCN/dark-2-debug.demo.md

232 lines
5.6 KiB
Markdown
Raw Normal View History

# Dark Debug 2
2020-12-12 14:44:44 +08:00
```html
<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>
2020-12-12 14:44:44 +08:00
<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">
2020-12-12 14:44:44 +08:00
Biu<br />
Biu<br />
Biu<br />
</n-thing>
</n-list-item>
<n-list-item>
<n-thing title="Thing" title-extra="extra" description="description">
2020-12-12 14:44:44 +08:00
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>
2020-12-12 14:44:44 +08:00
<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">
2020-12-12 14:44:44 +08:00
Biu<br />
Biu<br />
Biu<br />
</n-thing>
</n-list-item>
<n-list-item>
<n-thing title="Thing" title-extra="extra" description="description">
2020-12-12 14:44:44 +08:00
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>
2020-12-12 14:44:44 +08:00
<template v-slot:label> Breakfast </template>
Apple
</n-descriptions-item>
2020-12-12 14:44:44 +08:00
<n-descriptions-item label="Lunch"> Apple </n-descriptions-item>
<n-descriptions-item label="Supper"> Apple </n-descriptions-item>
<n-descriptions-item label="Why Long">
2020-12-12 14:44:44 +08:00
Why <br />
Long <br />
Long <br />
Long <br />
Long <br />
Long
</n-descriptions-item>
<n-descriptions-item label="Why Long">
2020-12-12 14:44:44 +08:00
Why <br />
Long <br />
Long <br />
Long <br />
Long <br />
Long
</n-descriptions-item>
<n-descriptions-item label="Why Long">
2020-12-12 14:44:44 +08:00
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>
2020-12-12 14:44:44 +08:00
<template v-slot:label> Breakfast </template>
Apple
</n-descriptions-item>
2020-12-12 14:44:44 +08:00
<n-descriptions-item label="Lunch"> Apple </n-descriptions-item>
<n-descriptions-item label="Supper"> Apple </n-descriptions-item>
<n-descriptions-item label="Why Long">
2020-12-12 14:44:44 +08:00
Why <br />
Long <br />
Long <br />
Long <br />
Long <br />
Long
</n-descriptions-item>
<n-descriptions-item label="Why Long">
2020-12-12 14:44:44 +08:00
Why <br />
Long <br />
Long <br />
Long <br />
Long <br />
Long
</n-descriptions-item>
<n-descriptions-item label="Why Long">
2020-12-12 14:44:44 +08:00
Why <br />
Long <br />
Long <br />
Long <br />
Long <br />
Long
</n-descriptions-item>
</n-descriptions>
<n-descriptions>
<n-descriptions-item>
2020-12-12 14:44:44 +08:00
<template v-slot:label> Breakfast </template>
Apple
</n-descriptions-item>
2020-12-12 14:44:44 +08:00
<n-descriptions-item label="Lunch"> Apple </n-descriptions-item>
<n-descriptions-item label="Supper"> Apple </n-descriptions-item>
<n-descriptions-item label="Why Long">
2020-12-12 14:44:44 +08:00
Why <br />
Long <br />
Long <br />
Long <br />
Long <br />
Long
</n-descriptions-item>
<n-descriptions-item label="Why Long">
2020-12-12 14:44:44 +08:00
Why <br />
Long <br />
Long <br />
Long <br />
Long <br />
Long
</n-descriptions-item>
<n-descriptions-item label="Why Long">
2020-12-12 14:44:44 +08:00
Why <br />
Long <br />
Long <br />
Long <br />
Long <br />
Long
</n-descriptions-item>
</n-descriptions>
<n-descriptions label-placement="left">
<n-descriptions-item>
2020-12-12 14:44:44 +08:00
<template v-slot:label> Breakfast </template>
Apple
</n-descriptions-item>
2020-12-12 14:44:44 +08:00
<n-descriptions-item label="Lunch"> Apple </n-descriptions-item>
<n-descriptions-item label="Supper"> Apple </n-descriptions-item>
<n-descriptions-item label="Why Long">
2020-12-12 14:44:44 +08:00
Why <br />
Long <br />
Long <br />
Long <br />
Long <br />
Long
</n-descriptions-item>
<n-descriptions-item label="Why Long">
2020-12-12 14:44:44 +08:00
Why <br />
Long <br />
Long <br />
Long <br />
Long <br />
Long
</n-descriptions-item>
<n-descriptions-item label="Why Long">
2020-12-12 14:44:44 +08:00
Why <br />
Long <br />
Long <br />
Long <br />
Long <br />
Long
</n-descriptions-item>
</n-descriptions>
</n-modal>
```
```js
export default {
2020-12-12 14:44:44 +08:00
data() {
return {
modalActive: false
}
2020-12-12 14:44:44 +08:00
}
}
2020-12-12 14:44:44 +08:00
```