Skip to content

Commit 1babf3a

Browse files
authored
fix: 修复saas主题打包报错问题 (#3250)
1 parent 87c5286 commit 1babf3a

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

packages/theme-saas/plugins/loadTheme.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ function loadLayout(designToken) {
127127
const space = Layout.space
128128
const boxShadow = Layout.boxShadow
129129
const opacity = Layout.opacity
130-
const backgroundSize = Layout.backgroundSize
131130

132131
layoutToken.fontSize = getToken('fontSize', fontSize)
133132
layoutToken.lineHeight = getToken('lineHeight', lineHeight)
@@ -136,7 +135,6 @@ function loadLayout(designToken) {
136135
layoutToken.spacing = getToken('spacing', space)
137136
layoutToken.boxShadow = getToken('boxShadow', boxShadow)
138137
layoutToken.opacity = getToken('opacity', opacity)
139-
layoutToken.backgroundSize = getToken('backgroundSize', {})
140138

141139
return layoutToken
142140
}

packages/theme-saas/src/skeleton-item/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@apply from-color-border-separator;
1313
@apply via-color-bg-2;
1414
@apply to-color-border-separator;
15-
@apply bg-200-100;
15+
@apply bg-w200h100;
1616
@apply animate-skeleton-loading-1500ms;
1717
}
1818
}

packages/theme-saas/tailwind.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ module.exports = {
2121
borderRadius: layoutToken.borderRadius,
2222
borderWidth: layoutToken.borderWidth,
2323
opacity: layoutToken.opacity,
24-
backgroundSize: layoutToken.backgroundSize,
2524
extend: {
25+
backgroundSize: {
26+
'w200h100': '200% 100%'
27+
},
2628
animation: {
2729
'skeleton-loading-1500ms': '1.5s skeleton-loading-1500ms ease-in-out infinite'
2830
},

packages/theme-saas/theme/defaultTheme.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,5 @@ module.exports = {
119119
sm: '0.125rem',
120120
DEFAULT: '0.25rem',
121121
none: '0px'
122-
},
123-
backgroundSize: {
124-
'200-100': '200% 100%'
125122
}
126123
}

packages/vue/src/skeleton-item/src/mobile-first.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
gcls(`shape-${variant}`),
1010
variant !== 'square' ? gcls(`${variant}-${size}`) : '',
1111
state.isActive &&
12-
'bg-200-100 bg-gradient-to-r from-color-border-separator via-color-bg-2 to-color-border-separator animate-skeleton-loading-1500ms'
12+
'bg-w200h100 bg-gradient-to-r from-color-border-separator via-color-bg-2 to-color-border-separator animate-skeleton-loading-1500ms'
1313
)
1414
"
1515
>

0 commit comments

Comments
 (0)