-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ✨ 新增Curtain 幕帘属性,支持使用其他图标 #648
base: master
Are you sure you want to change the base?
Changes from all commits
8bab50c
e629d23
704ae69
1e91f8c
e5c9920
c87b6f8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,6 +108,9 @@ function handleClose() { | |
| close-position | 关闭按钮位置 | string | inset / top / bottom / top-left / top-right / bottom-left / bottom-right | inset | - | | ||
| close-on-click-modal | 点击遮罩是否关闭 | boolean | - | false | - | | ||
| hide-when-close | 是否当关闭时将弹出层隐藏(display: none) | boolean | - | true | - | | ||
| close-icon-name | 关闭按钮图标 | string | close-outline / close | close-outline | - | | ||
| close-icon-size | 图标的字体大小 | string | - | inherit | - | | ||
| close-icon-color | 图标的字体颜色 | string | - | inherit | - | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 新属性 这个属性很好地补充了之前的两个新属性,为用户提供了全面的关闭图标自定义选项。描述简洁明了。 但是,这一行也存在格式问题。请修复硬标签(hard tabs)的使用,改用空格来保持一致性。例如: | close-icon-color | 图标的字体颜色 | string | - | inherit | - | 为了更好地展示这些新属性的使用,我建议在文档中添加一个示例。您需要我为您生成一个使用这些新属性的示例代码吗? 🧰 Tools🪛 Markdownlint
|
||
|
||
## Events | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,6 +82,7 @@ | |
@include m(active) { | ||
&:active::before { | ||
opacity: 0.15; | ||
border-radius: 6px; | ||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
新属性
close-icon-size
是个很好的补充这个属性很好地补充了
close-icon-name
,为用户提供了更多的自定义选项。描述简洁明了。但是,这一行存在格式问题。请修复硬标签(hard tabs)的使用,改用空格来保持一致性。例如:
🧰 Tools
🪛 Markdownlint