Skip to content

Commit b1f3f68

Browse files
authored
fix(number-animation): 为数值动画组件添加版本信息,修复SaaS主题下加载报错问题 (#3390)
1 parent aae01e8 commit b1f3f68

File tree

6 files changed

+28
-10
lines changed

6 files changed

+28
-10
lines changed

examples/sites/demos/pc/menus.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,14 @@ export const cmpMenus = [
250250
},
251251
{ 'nameCn': '用户头像', 'name': 'UserHead', 'key': 'user-head' },
252252
{ 'nameCn': '流程图', 'name': 'Wizard', 'key': 'wizard' },
253-
{ 'nameCn': '数值动画', 'name': 'NumberAnimation', key: 'number-animation' }
253+
{
254+
'nameCn': '数值动画',
255+
'name': 'NumberAnimation',
256+
'key': 'number-animation',
257+
'meta': {
258+
'stable': '3.23.0'
259+
}
260+
}
254261
]
255262
},
256263
{

packages/theme-saas/src/index.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
@import './month-table/index.less';
107107
@import './nav-menu/index.less';
108108
@import './notify/index.less';
109+
@import './number-animation/index.less';
109110
@import './numeric/index.less';
110111
@import './option/index.less';
111112
@import './option-group/index.less';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@import '../custom.less';
2+
3+
@number-animation-item-prefix-cls: ~'@{css-prefix}number-animation';
4+
5+
.@{number-animation-item-prefix-cls} {
6+
@apply text-2xl;
7+
@apply font-normal;
8+
@apply mb-5;
9+
}

packages/theme/src/index.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
@import './month-table/index.less';
8989
@import './nav-menu/index.less';
9090
@import './notify/index.less';
91+
@import './number-animation/index.less';
9192
@import './numeric/index.less';
9293
@import './option/index.less';
9394
@import './option-group/index.less';
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.inject-NumberAnimation-vars() {
2-
// 数字内容下间距
3-
--tv-NumberAnimation-margin-bottom: 20px;
4-
// 数字内容字体粗细
5-
--tv-NumberAnimation-font-weight: var(--tv-font-weight-regular);
6-
// 数字内容字体
7-
--tv-NumberAnimation-font-size: var(--tv-font-size-heading-lg);
8-
}
2+
// 数字内容下间距
3+
--tv-NumberAnimation-margin-bottom: 20px;
4+
// 数字内容字体粗细
5+
--tv-NumberAnimation-font-weight: var(--tv-font-weight-regular, 400);
6+
// 数字内容字体
7+
--tv-NumberAnimation-font-size: var(--tv-font-size-heading-lg, 24px);
8+
}

packages/theme/src/table/vars.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
// 表格单元格字体大小
2929
--tv-Table-td-font-size: var(--tv-font-size-default, 14px);
3030
// 表格边框颜色
31-
--tv-Table-border-color: var(--tv-color-border-divider);
31+
--tv-Table-border-color: var(--tv-color-border-divider, #f0f0f0);
3232
// 表格复选框边框颜色
33-
--tv-Table-icon-border-color: var(--tv-color-border);
33+
--tv-Table-icon-border-color: var(--tv-color-border, #c2c2c2);
3434
// 表头背景颜色
3535
--tv-Table-thead-bg-color: var(--tv-color-bg-header, #f5f5f5);
3636
// 表格图标字体大小

0 commit comments

Comments
 (0)