-
Notifications
You must be signed in to change notification settings - Fork 306
fix(number-animation): add version information for the number animation component and fix the loading error problem under the SaaS theme #3390
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
Changes from all commits
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@import '../custom.less'; | ||
|
||
@number-animation-item-prefix-cls: ~'@{css-prefix}number-animation'; | ||
|
||
.@{number-animation-item-prefix-cls} { | ||
@apply text-2xl; | ||
@apply font-normal; | ||
@apply mb-5; | ||
} | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
.inject-NumberAnimation-vars() { | ||
// 数字内容下间距 | ||
--tv-NumberAnimation-margin-bottom: 20px; | ||
// 数字内容字体粗细 | ||
--tv-NumberAnimation-font-weight: var(--tv-font-weight-regular); | ||
// 数字内容字体 | ||
--tv-NumberAnimation-font-size: var(--tv-font-size-heading-lg); | ||
} | ||
// 数字内容下间距 | ||
--tv-NumberAnimation-margin-bottom: 20px; | ||
// 数字内容字体粗细 | ||
--tv-NumberAnimation-font-weight: var(--tv-font-weight-regular, 400); | ||
// 数字内容字体 | ||
--tv-NumberAnimation-font-size: var(--tv-font-size-heading-lg, 24px); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,9 +28,9 @@ | |
// 表格单元格字体大小 | ||
--tv-Table-td-font-size: var(--tv-font-size-default, 14px); | ||
// 表格边框颜色 | ||
--tv-Table-border-color: var(--tv-color-border-divider); | ||
--tv-Table-border-color: var(--tv-color-border-divider, #f0f0f0); | ||
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. The change in |
||
// 表格复选框边框颜色 | ||
--tv-Table-icon-border-color: var(--tv-color-border); | ||
--tv-Table-icon-border-color: var(--tv-color-border, #c2c2c2); | ||
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. The change in |
||
// 表头背景颜色 | ||
--tv-Table-thead-bg-color: var(--tv-color-bg-header, #f5f5f5); | ||
// 表格图标字体大小 | ||
|
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.
💡 Verification agent
🧩 Analysis chain
Introduce NumberAnimation styling; add missing license header
The stylesheet correctly sets up the component prefix and applies utility classes (
text-2xl
,font-normal
,mb-5
). However, to maintain consistency with other theme files, please add the standard MIT-style license header at the top. Also verify that@apply
utility classes and the global@{css-prefix}
variable are resolved by the build.You can check for
css-prefix
definition and@apply
support with:🏁 Script executed:
Length of output: 1168
🏁 Script executed:
Length of output: 110507
🏁 Script executed:
Length of output: 3222
Add MIT license header to number-animation/index.less
The
@css-prefix
variable is defined incustom.less
and the PostCSS<code>@apply</code>
plugin is already in use across the theme, so only the license header is missing.• File to update: packages/theme-saas/src/number-animation/index.less
• Copy the standard header from any existing Less file (e.g.,
date-table/index.less
) and prepend it above the imports.Example snippet:
📝 Committable suggestion