fix: 修复saas主题打包报错问题 (#3250)

This commit is contained in:
chenxi-20 2025-04-07 11:42:22 +08:00 committed by GitHub
parent 87c5286cb5
commit 1babf3ab2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 8 deletions

View File

@ -127,7 +127,6 @@ function loadLayout(designToken) {
const space = Layout.space
const boxShadow = Layout.boxShadow
const opacity = Layout.opacity
const backgroundSize = Layout.backgroundSize
layoutToken.fontSize = getToken('fontSize', fontSize)
layoutToken.lineHeight = getToken('lineHeight', lineHeight)
@ -136,7 +135,6 @@ function loadLayout(designToken) {
layoutToken.spacing = getToken('spacing', space)
layoutToken.boxShadow = getToken('boxShadow', boxShadow)
layoutToken.opacity = getToken('opacity', opacity)
layoutToken.backgroundSize = getToken('backgroundSize', {})
return layoutToken
}

View File

@ -12,7 +12,7 @@
@apply from-color-border-separator;
@apply via-color-bg-2;
@apply to-color-border-separator;
@apply bg-200-100;
@apply bg-w200h100;
@apply animate-skeleton-loading-1500ms;
}
}

View File

@ -21,8 +21,10 @@ module.exports = {
borderRadius: layoutToken.borderRadius,
borderWidth: layoutToken.borderWidth,
opacity: layoutToken.opacity,
backgroundSize: layoutToken.backgroundSize,
extend: {
backgroundSize: {
'w200h100': '200% 100%'
},
animation: {
'skeleton-loading-1500ms': '1.5s skeleton-loading-1500ms ease-in-out infinite'
},

View File

@ -119,8 +119,5 @@ module.exports = {
sm: '0.125rem',
DEFAULT: '0.25rem',
none: '0px'
},
backgroundSize: {
'200-100': '200% 100%'
}
}

View File

@ -9,7 +9,7 @@
gcls(`shape-${variant}`),
variant !== 'square' ? gcls(`${variant}-${size}`) : '',
state.isActive &&
'bg-200-100 bg-gradient-to-r from-color-border-separator via-color-bg-2 to-color-border-separator animate-skeleton-loading-1500ms'
'bg-w200h100 bg-gradient-to-r from-color-border-separator via-color-bg-2 to-color-border-separator animate-skeleton-loading-1500ms'
)
"
>