forked from Tencent/tdesign-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squash merge branch 'feat/site/upgrade' into 'develop' * feat: 优化radio input input-number demo * feat: 优化radio input input-number demo * feat: 优化demo * Merge branch 'develop' into feat/site/upgrade * feat: 优化官网 demo * feat: 调整list demo * Merge branch 'feat/site/upgrade' of tdesign-web-vue into feat/site/upgrade * feat: 调整demo 样式 * chore: adjust dropdown demo * feat: 调整 demo 样式 * feat: 优化tree文档 * feat: 调整 tabs demo 展示
- Loading branch information
1 parent
698689e
commit c76aac3
Showing
83 changed files
with
6,606 additions
and
6,874 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,8 @@ | ||
<template> | ||
<div> | ||
<div class="tdesign-demo-block"> | ||
<t-button theme="default" variant="base">填充按钮</t-button> | ||
<t-button theme="default" variant="outline">描边按钮</t-button> | ||
<t-button theme="default" variant="dashed">虚框按钮</t-button> | ||
<t-button theme="default" variant="text">文字按钮</t-button> | ||
<t-button theme="default" variant="base" loading>加载中</t-button> | ||
</div> | ||
<div class="tdesign-demo-block"> | ||
<t-button theme="primary" variant="base">填充按钮</t-button> | ||
<t-button theme="primary" variant="outline">描边按钮</t-button> | ||
<t-button theme="primary" variant="dashed">虚框按钮</t-button> | ||
<t-button theme="primary" variant="text">文字按钮</t-button> | ||
<t-button theme="primary" variant="base" loading>加载中</t-button> | ||
</div> | ||
<div class="tdesign-demo-block"> | ||
<t-button theme="success" variant="base">填充按钮</t-button> | ||
<t-button theme="success" variant="outline">描边按钮</t-button> | ||
<t-button theme="success" variant="dashed">虚框按钮</t-button> | ||
<t-button theme="success" variant="text">文字按钮</t-button> | ||
<t-button theme="success" variant="base" loading>加载中</t-button> | ||
</div> | ||
<div class="tdesign-demo-block"> | ||
<t-button theme="warning" variant="base">填充按钮</t-button> | ||
<t-button theme="warning" variant="outline">描边按钮</t-button> | ||
<t-button theme="warning" variant="dashed">虚框按钮</t-button> | ||
<t-button theme="warning" variant="text">文字按钮</t-button> | ||
<t-button theme="warning" variant="base" loading>加载中</t-button> | ||
</div> | ||
<div class="tdesign-demo-block"> | ||
<t-button theme="danger" variant="base">填充按钮</t-button> | ||
<t-button theme="danger" variant="outline">描边按钮</t-button> | ||
<t-button theme="danger" variant="dashed">虚框按钮</t-button> | ||
<t-button theme="danger" variant="text">文字按钮</t-button> | ||
<t-button theme="danger" variant="base" loading>加载中</t-button> | ||
</div> | ||
<div class="tdesign-demo-block-row"> | ||
<t-button theme="default" variant="base">填充按钮</t-button> | ||
<t-button theme="default" variant="outline">描边按钮</t-button> | ||
<t-button theme="default" variant="dashed">虚框按钮</t-button> | ||
<t-button theme="default" variant="text">文字按钮</t-button> | ||
</div> | ||
</template> | ||
|
||
<style lang="less" scoped> | ||
.tdesign-demo-item__body { | ||
.t-button + .t-button { | ||
margin-left: 32px; | ||
} | ||
.tdesign-demo-block { | ||
margin-top: 16px; | ||
} | ||
} | ||
.tdesign-wrap { | ||
display: inline-block; | ||
background-color: #bbbbbb; | ||
padding: 10px; | ||
margin-right: 10px; | ||
} | ||
</style> |
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,27 +1,10 @@ | ||
<template> | ||
<div class="demo-button-row"> | ||
<div class="demo-button-col"> | ||
<div class="tdesign-demo-block-row" style="justify-content: center;"> | ||
<div class="tdesign-demo-block-column" style="min-width: 320px; max-width: 640px;"> | ||
<t-button block theme="primary" variant="base">填充按钮</t-button> | ||
<t-button block variant="outline">描边按钮</t-button> | ||
<t-button block variant="dashed">虚框按钮</t-button> | ||
<t-button block variant="text">文字按钮</t-button> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.demo-button-row { | ||
display: flex; | ||
width: 100%; | ||
justify-content: center; | ||
} | ||
.demo-button-col { | ||
width: 50%; | ||
} | ||
.demo-button-col + .demo-button-col { | ||
margin-left: 32px; | ||
} | ||
.t-button + .t-button { | ||
margin-top: 16px; | ||
} | ||
</style> |
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,36 +1,30 @@ | ||
<template> | ||
<div> | ||
<div class="tdesign-demo-block" style="margin-bottom: 10px;"> | ||
<div class="tdesign-demo-block-column"> | ||
<div class="tdesign-demo-block-row"> | ||
<t-button variant="outline" ghost>幽灵按钮</t-button> | ||
<t-button variant="dashed" ghost>幽灵按钮</t-button> | ||
<t-button variant="text" ghost>幽灵按钮</t-button> | ||
</div> | ||
<div class="tdesign-demo-block" style="margin-bottom: 10px;"> | ||
<div class="tdesign-demo-block-row"> | ||
<t-button variant="outline" theme="primary" ghost>幽灵按钮</t-button> | ||
<t-button variant="dashed" theme="primary" ghost>幽灵按钮</t-button> | ||
<t-button variant="text" theme="primary" ghost>幽灵按钮</t-button> | ||
</div> | ||
<div class="tdesign-demo-block" style="margin-bottom: 10px;"> | ||
<div class="tdesign-demo-block-row"> | ||
<t-button variant="outline" theme="success" ghost>幽灵按钮</t-button> | ||
<t-button variant="dashed" theme="success" ghost>幽灵按钮</t-button> | ||
<t-button variant="text" theme="success" ghost>幽灵按钮</t-button> | ||
</div> | ||
<div class="tdesign-demo-block" style="margin-bottom: 10px;"> | ||
<div class="tdesign-demo-block-row"> | ||
<t-button variant="outline" theme="warning" ghost>幽灵按钮</t-button> | ||
<t-button variant="dashed" theme="warning" ghost>幽灵按钮</t-button> | ||
<t-button variant="text" theme="warning" ghost>幽灵按钮</t-button> | ||
</div> | ||
<div class="tdesign-demo-block" style="margin-bottom: 10px;"> | ||
<div class="tdesign-demo-block-row"> | ||
<t-button variant="outline" theme="danger" ghost>幽灵按钮</t-button> | ||
<t-button variant="dashed" theme="danger" ghost>幽灵按钮</t-button> | ||
<t-button variant="text" theme="danger" ghost>幽灵按钮</t-button> | ||
</div> | ||
</div> | ||
|
||
</template> | ||
|
||
<style scoped> | ||
.t-button + .t-button { | ||
margin-left: 16px; | ||
} | ||
</style> |
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,35 +1,22 @@ | ||
<template> | ||
<div style="width: 600px;"> | ||
<div class="tdesign-demo-block"> | ||
<div class="tdesign-demo-block-column"> | ||
<div class="tdesign-demo-block-row"> | ||
<div class="item"><t-button theme="primary" size="small" variant="base">填充按钮</t-button></div> | ||
<div class="item"><t-button size="small" variant="outline">描边按钮</t-button></div> | ||
<div class="item"><t-button size="small" variant="dashed">虚框按钮</t-button></div> | ||
<div class="item"><t-button size="small" variant="text">文字按钮</t-button></div> | ||
</div> | ||
<div class="tdesign-demo-block"> | ||
<div class="tdesign-demo-block-row"> | ||
<div class="item"><t-button theme="primary" size="medium" variant="base">填充按钮</t-button></div> | ||
<div class="item"><t-button size="medium" variant="outline">描边按钮</t-button></div> | ||
<div class="item"><t-button size="medium" variant="dashed">虚框按钮</t-button></div> | ||
<div class="item"><t-button size="medium" variant="text">文字按钮</t-button></div> | ||
</div> | ||
<div class="tdesign-demo-block"> | ||
<div class="tdesign-demo-block-row"> | ||
<div class="item"><t-button theme="primary" size="large" variant="base">填充按钮</t-button></div> | ||
<div class="item"><t-button size="large" variant="outline">描边按钮</t-button></div> | ||
<div class="item"><t-button size="large" variant="dashed">虚框按钮</t-button></div> | ||
<div class="item"><t-button size="large" variant="text">文字按钮</t-button></div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style lang="less" scoped> | ||
.t-button + .t-button { | ||
margin-left: 32px; | ||
} | ||
.tdesign-demo-block { | ||
margin-top: 16px; | ||
display: flex; | ||
.item { | ||
width: 150px; | ||
} | ||
} | ||
</style> |
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,6 @@ | ||
<template> | ||
<div class="tdesign-demo-block-row"> | ||
<t-button disabled>填充按钮</t-button> | ||
<t-button loading>加载中</t-button> | ||
</div> | ||
</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 |
---|---|---|
@@ -1,16 +1,34 @@ | ||
<template> | ||
<div> | ||
<div class="tdesign-demo-block"> | ||
<div class="tdesign-demo-block-column"> | ||
<div class="tdesign-demo-block-row"> | ||
<t-button theme="default">填充按钮</t-button> | ||
<t-button variant="outline" theme="default">描边按钮</t-button> | ||
<t-button variant="dashed" theme="default">虚框按钮</t-button> | ||
<t-button variant="text" theme="default">文字按钮</t-button> | ||
</div> | ||
<div class="tdesign-demo-block-row"> | ||
<t-button theme="primary">填充按钮</t-button> | ||
<t-button variant="outline" theme="primary">描边按钮</t-button> | ||
<t-button variant="dashed" theme="primary">虚框按钮</t-button> | ||
<t-button variant="text" theme="primary">文字按钮</t-button> | ||
</div> | ||
<div class="tdesign-demo-block"> | ||
<div class="tdesign-demo-block-row"> | ||
<t-button theme="danger">填充按钮</t-button> | ||
<t-button variant="outline" theme="danger">描边按钮</t-button> | ||
<t-button variant="dashed" theme="danger">虚框按钮</t-button> | ||
<t-button variant="text" theme="danger">文字按钮</t-button> | ||
</div> | ||
<div class="tdesign-demo-block-row"> | ||
<t-button theme="warning">填充按钮</t-button> | ||
<t-button variant="outline" theme="warning">描边按钮</t-button> | ||
<t-button variant="dashed" theme="warning">虚框按钮</t-button> | ||
<t-button variant="text" theme="warning">文字按钮</t-button> | ||
</div> | ||
<div class="tdesign-demo-block-row"> | ||
<t-button theme="success">填充按钮</t-button> | ||
<t-button variant="outline" theme="success">描边按钮</t-button> | ||
<t-button variant="dashed" theme="success">虚框按钮</t-button> | ||
<t-button variant="text" theme="success">文字按钮</t-button> | ||
</div> | ||
</div> | ||
</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
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
Oops, something went wrong.