-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from linxunxr/main
书籍详情页面笔记第一个panel
- Loading branch information
Showing
6 changed files
with
115 additions
and
6 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
entry/src/main/ets/componets/bookDetail/note/CircleGeneralButton.ets
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,41 @@ | ||
/** | ||
* Copyright (C), 2024-05-15 | ||
* @author LinXun | ||
* @date 2024/5/15 13:03 | ||
* @version 1.0 | ||
* @description: 圆形通用按钮 | ||
*/ | ||
@Component | ||
export default struct CircleGeneralButton { | ||
private icon: ResourceStr = $r('app.media.ic_public_edit'); | ||
private text: string = '编辑'; | ||
build() { | ||
Column({space: 8}) { | ||
Column() { | ||
Image(this.icon) | ||
.width(24) | ||
.height(24) | ||
.fillColor('#a6000000') | ||
} | ||
.backgroundColor('#FFFFFF') | ||
.padding({ | ||
left: 12, | ||
right: 12, | ||
top: 12, | ||
bottom: 12 | ||
}) | ||
.border({ | ||
width: 0.5, | ||
color: '#26000000' | ||
}) | ||
.borderRadius(200) | ||
Text(this.text) | ||
.fontSize(12) | ||
.fontWeight(400) | ||
.lineHeight(20) | ||
.fontColor('#a6000000') | ||
} | ||
.padding({top: 16, bottom: 12}) | ||
.height(118) | ||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.