浏览代码

fix(frontend): @keyframes 从 scoped 移到非 scoped 样式块,修复 vue-cli-plugin-uni 编译错误

Ultraworked with Sisyphus

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Sisyphus 1 月之前
父节点
当前提交
37e24159e1

+ 2 - 0
cfc-frontend/components/BaseLoading.vue

@@ -60,7 +60,9 @@ export default {
   font-size: 24rpx;
   color: var(--muted, #94A3B8);
 }
+</style>
 
+<style>
 @keyframes dot-bounce {
   0%, 80%, 100% {
     transform: scale(0.6);

+ 3 - 0
cfc-frontend/components/ConfettiCelebration.vue

@@ -79,6 +79,9 @@ export default {
   animation-timing-function: ease-out;
   animation-fill-mode: forwards;
 }
+</style>
+
+<style>
 @keyframes fall {
   0% {
     opacity: 1;

+ 3 - 0
cfc-frontend/components/FeedbackToast.vue

@@ -54,6 +54,9 @@ export default {
 .feedback-leave {
   animation: feedbackFadeOut 0.3s ease forwards;
 }
+</style>
+
+<style>
 @keyframes feedbackPopIn {
   0%   { transform: scale(0.3); opacity: 0; }
   100% { transform: scale(1); opacity: 1; }

+ 3 - 0
cfc-frontend/components/MilestoneCelebration.vue

@@ -77,6 +77,9 @@ export default {
   font-size: 32rpx;
   color: rgba(255,255,255,0.9);
 }
+</style>
+
+<style>
 @keyframes particleFall {
   0%   { transform: translateY(-20rpx) rotate(0deg); opacity: 0.9; }
   50%  { opacity: 1; }