-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs(Card): update api (#3021) * docs(Card): update api * chore: update _common * fix(loading): fix functional repeated call error (#3025) * docs: update unplugin usage desc with webpack (#3030) * feat(form): change form methods type-definition to required (#3034) change form methods type-definition to required * feat(descriptions): add descriptions (#3035) * feat(descriptions): add descriptions * feat(descriptions): example test * feat(descriptions): utils ts * feat(descriptions): descriptions body * test(descriptions): update snap * fix(descriptions): tDescriptionsBody * chore(descriptions): remove * fix(table): 移除非必要的分页监听 (#3046) * fix(table): pagination * fix: lint error * fix: fix the bug of textarea with maxlength can't input before limit (#3044) * fix(tag-input): pass size api to collapse item (#3055) * feat(Slider): support change end API (#3056) * feat(Slider): support change end API * feat(Slider): support change end API * fix(Select): fix clear trigger onchange callback twice (#3054) * fix(Select): fix clear trigger onchange callback twice * chore: fix lint * fix(textarea): value绑定值时,autosize时无法输入中文问题 (#3057) * fix(Form): fix form string length test (#3058) * chore: release 1.9.0 (#3059) * chore: release 1.9.0 * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: liweijie0812 <674416404@qq.com> Co-authored-by: Zz-ZzzZ <48228016+Zz-ZzzZ@users.noreply.github.com> Co-authored-by: iiimix <hu@iiimix.cn> Co-authored-by: zhangpaopao <zhangpaopao0609@gmail.com> Co-authored-by: sheepluo <yaoyanhuoyi@qq.com> Co-authored-by: 梓晨 <anzixuan168@163.com> Co-authored-by: LoopZhou <13745660+LoopZhou@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
15b0113
commit 462988c
Showing
57 changed files
with
1,747 additions
and
100 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
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
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,7 +1,6 @@ | ||
:: BASE_DOC :: | ||
|
||
## API | ||
|
||
### Card Props | ||
|
||
name | type | default | description | required | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<template> | ||
<t-descriptions title="Shipping address"> | ||
<t-descriptions-item label="Name">TDesign</t-descriptions-item> | ||
<t-descriptions-item label="Telephone Number">139****0609</t-descriptions-item> | ||
<t-descriptions-item label="Area">China Tencent Headquarters</t-descriptions-item> | ||
<t-descriptions-item label="Address" | ||
>Shenzhen Penguin Island D1 4A Mail Center<template #content>asds</template></t-descriptions-item | ||
> | ||
</t-descriptions> | ||
</template> |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<template> | ||
<t-descriptions title="Shipping address" bordered :column="3"> | ||
<t-descriptions-item label="Name">TDesign</t-descriptions-item> | ||
<t-descriptions-item label="Telephone Number">139****0609</t-descriptions-item> | ||
<t-descriptions-item label="Area">China Tencent Headquarters</t-descriptions-item> | ||
<t-descriptions-item label="Address">Shenzhen Penguin Island D1 4A Mail Center</t-descriptions-item> | ||
</t-descriptions> | ||
</template> |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<template> | ||
<t-space direction="vertical"> | ||
<t-checkbox v-model="checked">colon</t-checkbox> | ||
<t-descriptions title="Shipping address" bordered :colon="checked" :column="3"> | ||
<t-descriptions-item label="Name">TDesign</t-descriptions-item> | ||
<t-descriptions-item label="Telephone Number">139****0609</t-descriptions-item> | ||
<t-descriptions-item label="Area">China Tencent Headquarters</t-descriptions-item> | ||
<t-descriptions-item label="Address">Shenzhen Penguin Island D1 4A Mail Center</t-descriptions-item> | ||
</t-descriptions> | ||
</t-space> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
checked: false, | ||
}; | ||
}, | ||
}; | ||
</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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<template> | ||
<t-space direction="vertical"> | ||
<t-radio-group v-model="column" :options="columnOptions"></t-radio-group> | ||
<t-descriptions bordered :column="column"> | ||
<t-descriptions-item label="Name">TDesign</t-descriptions-item> | ||
<t-descriptions-item label="Telephone Number">139****0609</t-descriptions-item> | ||
<t-descriptions-item label="Area">China Tencent Headquarters</t-descriptions-item> | ||
<t-descriptions-item label="Address">Shenzhen Penguin Island D1 4A Mail Center</t-descriptions-item> | ||
</t-descriptions> | ||
</t-space> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
columnOptions: [2, 3, 4], | ||
column: 2, | ||
}; | ||
}, | ||
}; | ||
</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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<template> | ||
<t-descriptions | ||
title="Shipping address" | ||
bordered | ||
:label-style="{ width: '100px', textAlign: 'left' }" | ||
:content-style="{ textAlign: 'right' }" | ||
:column="3" | ||
> | ||
<t-descriptions-item label="Name">TDesign</t-descriptions-item> | ||
<t-descriptions-item label="Telephone Number">139****0609</t-descriptions-item> | ||
<t-descriptions-item label="Area">China Tencent Headquarters</t-descriptions-item> | ||
<t-descriptions-item label="Address">Shenzhen Penguin Island D1 4A Mail Center</t-descriptions-item> | ||
</t-descriptions> | ||
</template> |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<t-descriptions title="Shipping address" :items="items" :column="3" /> | ||
</template> | ||
|
||
<script lang="jsx"> | ||
import Base from './base.vue'; | ||
const items = [ | ||
{ label: 'Name', content: 'TDesign' }, | ||
{ label: Base, content: '139****0609' }, | ||
]; | ||
export default { | ||
data() { | ||
return { | ||
items, | ||
}; | ||
}, | ||
}; | ||
</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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template> | ||
<t-space direction="vertical"> | ||
<t-row> | ||
<span>layout:</span> | ||
<t-radio-group v-model="layout" :options="layoutOptions"></t-radio-group> | ||
</t-row> | ||
|
||
<t-row> | ||
<span>itemLayout:</span> | ||
<t-radio-group v-model="itemLayout" :options="itemLayoutOptions"></t-radio-group> | ||
</t-row> | ||
|
||
<t-descriptions title="Shipping address" bordered :layout="layout" :item-layout="itemLayout" :column="3"> | ||
<t-descriptions-item label="Name">TDesign</t-descriptions-item> | ||
<t-descriptions-item label="Telephone Number">139****0609</t-descriptions-item> | ||
<t-descriptions-item label="Area">China Tencent Headquarters</t-descriptions-item> | ||
<t-descriptions-item label="Address">Shenzhen Penguin Island D1 4A Mail Center</t-descriptions-item> | ||
</t-descriptions> | ||
</t-space> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
layout: 'horizontal', | ||
itemLayout: 'horizontal', | ||
layoutOptions: ['horizontal', 'vertical'], | ||
itemLayoutOptions: ['horizontal', 'vertical'], | ||
}; | ||
}, | ||
}; | ||
</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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<template> | ||
<t-space direction="vertical"> | ||
<t-radio-group v-model="size" :options="sizeOptions"></t-radio-group> | ||
<t-descriptions bordered :size="size" :column="3"> | ||
<t-descriptions-item label="Name">TDesign</t-descriptions-item> | ||
<t-descriptions-item label="Telephone Number">139****0609</t-descriptions-item> | ||
<t-descriptions-item label="Area">China Tencent Headquarters</t-descriptions-item> | ||
<t-descriptions-item label="Address">Shenzhen Penguin Island D1 4A Mail Center</t-descriptions-item> | ||
</t-descriptions> | ||
</t-space> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
size: 'medium', | ||
sizeOptions: ['large', 'medium', 'small'], | ||
}; | ||
}, | ||
}; | ||
</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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!-- 该脚本为自动生成,如有需要请在 /script/generate-usage.js 中调整 --> | ||
<template> | ||
<base-usage :code="usageCode" :config-list="configList" :panel-list="panelList" @PanelChange="onPanelChange"> | ||
<template #descriptions="{ configProps }"> | ||
<t-descriptions title="Shipping address" v-bind="configProps"> | ||
<t-descriptions-item label="Name">TDesign</t-descriptions-item> | ||
<t-descriptions-item label="Telephone Number">139****0609</t-descriptions-item> | ||
<t-descriptions-item label="Area">China Tencent Headquarters</t-descriptions-item> | ||
<t-descriptions-item label="Address">Shenzhen Penguin Island D1 4A Mail Center</t-descriptions-item> | ||
</t-descriptions> | ||
</template> | ||
</base-usage> | ||
</template> | ||
|
||
<script setup lang="jsx"> | ||
/* eslint-disable */ | ||
import { ref, onMounted } from 'vue'; | ||
import configJson from './props.json'; | ||
const configList = ref(configJson); | ||
const panelList = [{ label: 'descriptions', value: 'descriptions' }]; | ||
const usageCodeMap = { | ||
descriptions: | ||
'\n <t-descriptions title="Shipping address" v-bind="configProps">\n <t-descriptions-item label="Name">TDesign</t-descriptions-item>\n <t-descriptions-item label="Telephone Number">139****0609</t-descriptions-item>\n <t-descriptions-item label="Area">China Tencent Headquarters</t-descriptions-item>\n <t-descriptions-item label="Address">Shenzhen Penguin Island D1 4A Mail Center</t-descriptions-item>\n </t-descriptions>\n ', | ||
}; | ||
const usageCode = ref(`<template>${usageCodeMap[panelList[0].value].trim()}</template>`); | ||
function onPanelChange(panel) { | ||
usageCode.value = `<template>${usageCodeMap[panel].trim()}</template>`; | ||
} | ||
</script> |
Oops, something went wrong.