-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
70 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
<template> | ||
<div class="cell-base"> | ||
<div> | ||
<t-cell-group title="分组标题" summary="列表外常驻文字,常常用于辅助信息说明,列表外常驻文字,常常用于辅助信息说明"> | ||
<t-cell title="单行标题" /> | ||
<t-cell title="单行标题" arrow /> | ||
</t-cell-group> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
export default defineComponent({}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,35 @@ | ||
<template> | ||
<div class="cell-base"> | ||
<t-cell title="单行标题" description="一段很长很长的内容文字"></t-cell> | ||
<t-cell title="单行标题" description="一段很长很长的内容文字" arrow></t-cell> | ||
<t-cell title="单行标题" description="一段很长很长的内容文字"> | ||
<t-button theme="primary" variant="outline" size="small">小按钮</t-button> | ||
</t-cell> | ||
<t-cell | ||
title="单行标题" | ||
description="一段很长很长的内容文字,一段很长很长的内容文字,一段很长很长的内容文字" | ||
></t-cell> | ||
|
||
<t-cell title="单行标题" description="一段很长很长的内容文字"> | ||
<template #leftIcon> | ||
<img | ||
src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" | ||
style="width: 50px; height: 50px; margin-right: 8px; float: left" | ||
/> | ||
</template> | ||
</t-cell> | ||
<t-cell | ||
title="双行标题,长文本自动换行,该选项的描述是一段很长的内容" | ||
description="一段很长很长的内容文字" | ||
></t-cell> | ||
<div> | ||
<t-cell-group> | ||
<t-cell title="多行标题" description="一段很长很长的内容文字"></t-cell> | ||
<t-cell title="多行带图标" description="一段很长很长的内容文字" arrow> | ||
<template #leftIcon> | ||
<AppIcon /> | ||
</template> | ||
</t-cell> | ||
<t-cell title="多行带头像" description="一段很长很长的内容文字" :right-icon="chevronRightIcon"> | ||
<template #leftIcon> | ||
<t-avatar shape="circle" :image="avatarUrl" /> | ||
</template> | ||
</t-cell> | ||
<t-cell title="多行带图片" description="一段很长很长的内容文字" :image="imgUrl" /> | ||
<t-cell | ||
title="多行标题" | ||
description="一段很长很长的内容文字,长文本自动换行,该选项的描述是一段很长的内容" | ||
></t-cell> | ||
<t-cell | ||
title="多行高度不定,长文本自动换行,该选项的描述是一段很长的内容" | ||
description="一段很长很长的内容文字,长文本自动换行,该选项的描述是一段很长的内容" | ||
></t-cell> | ||
</t-cell-group> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
<script lang="ts" setup> | ||
import { h } from 'vue'; | ||
import { ChevronRightIcon, AppIcon } from 'tdesign-icons-vue-next'; | ||
export default defineComponent({}); | ||
const chevronRightIcon = () => h(ChevronRightIcon); | ||
const avatarUrl = 'https://tdesign.gtimg.com/mobile/demos/avatar_1.png'; | ||
const imgUrl = 'https://tdesign.gtimg.com/mobile/%E5%9B%BE%E7%89%87.png'; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,36 @@ | ||
<template> | ||
<div class="cell-base"> | ||
<t-cell title="单行标题" /> | ||
<t-cell title="单行标题"> | ||
<t-icon-chevron-right /> | ||
</t-cell> | ||
<t-cell title="单行标题" note="辅助信息" arrow></t-cell> | ||
<t-cell> | ||
<template #leftIcon> | ||
<t-icon-user-filled /> | ||
</template> | ||
<template #title> | ||
<span>单行标题</span> | ||
</template> | ||
</t-cell> | ||
<div> | ||
<t-cell-group bordered> | ||
<t-cell title="单行标题" @click="onClick" /> | ||
<t-cell title="单行标题" required /> | ||
<t-cell title="单行标题" note="辅助信息"></t-cell> | ||
<t-cell title="单行标题" arrow></t-cell> | ||
<t-cell title="单行标题" note="辅助信息" :right-icon="chevronRightIcon"></t-cell> | ||
<t-cell title="单行标题" arrow> | ||
<template #note> | ||
<t-badge :count="2"></t-badge> | ||
</template> | ||
</t-cell> | ||
<t-cell title="单行标题"> | ||
<template #note> | ||
<t-switch :default-value="true"></t-switch> | ||
</template> | ||
</t-cell> | ||
<t-cell title="单行标题" :left-icon="appIcon" /> | ||
</t-cell-group> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
import { ChevronRightIcon as TIconChevronRight, UserIcon as TIconUserFilled } from 'tdesign-icons-vue-next'; | ||
<script lang="ts" setup> | ||
import { h } from 'vue'; | ||
import { ChevronRightIcon, AppIcon } from 'tdesign-icons-vue-next'; | ||
import TSwitch from '../../switch'; | ||
import TBadge from '../../badge'; | ||
import Message from '../../message'; | ||
export default defineComponent({ | ||
components: { TIconChevronRight, TIconUserFilled }, | ||
}); | ||
const onClick = () => { | ||
Message.info('cell click'); | ||
}; | ||
const chevronRightIcon = () => h(ChevronRightIcon); | ||
const appIcon = () => h(AppIcon); | ||
</script> |