-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(card): card组件支持传入loadingProps参数 (#2959)
* feat(card): card组件支持传入loadingProps参数 card组件支持传入loadingProps参数 fix #423 * chore: merge develop * feat(card): card组件支持传入loadingProps参数 card组件支持传入loadingProps参数 fix #423 * refactor(card): props属性用法优化 * chore: update snapshot * chore: update snapshot --------- Co-authored-by: Uyarn <uyarnchen@gmail.com>
- Loading branch information
Showing
8 changed files
with
106 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<t-card bordered :title="title" :loading="isLoading" :style="{ width: '400px' }" :loading-props="customProps"> | ||
{{ infoMessage }} | ||
</t-card> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
title: '自定义loadingProps Card', | ||
isLoading: true, | ||
customProps: { | ||
text: 'TDesign努力加载中...', | ||
}, | ||
infoMessage: '卡片内容,以描述性为主,可以是文字、图片或图文组合的形式。按业务需求进行自定义组合。', | ||
}; | ||
}, | ||
}; | ||
</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
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