fix: 事件动作触发Toast移动端样式失效问题 (#11075)

This commit is contained in:
Allen 2024-10-18 16:01:46 +08:00 committed by GitHub
parent 1e5b057988
commit cf86d4f04e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 24 additions and 1 deletions

View File

@ -41,7 +41,7 @@ export class ToastAction implements RendererAction {
event.context.env?.notify?.( event.context.env?.notify?.(
action.args?.msgType || 'info', action.args?.msgType || 'info',
String(action.args?.msg), String(action.args?.msg),
action.args {...action.args, mobileUI: renderer.props.mobileUI}
); );
} }
} }

View File

@ -162,6 +162,22 @@
width: var(--Toast-icon-width); width: var(--Toast-icon-width);
height: var(--Toast-icon-height); height: var(--Toast-icon-height);
color: inherit; color: inherit;
&.icon-warning {
color: var(--Status-warning-color);
}
&.icon-fail {
color: var(--Status-fail-color);
}
&.icon-success {
color: var(--Status-success-color);
}
&.icon-schedule {
color: var(--Status-schedule-color);
}
} }
} }

View File

@ -54,6 +54,13 @@ export default defineConfig({
target: 'esnext' target: 'esnext'
} }
}, },
css: {
preprocessorOptions: {
scss: {
silenceDeprecations: ['legacy-js-api']
}
}
},
server: { server: {
host: '0.0.0.0', host: '0.0.0.0',
port: 8888 port: 8888