mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 10:38:16 +08:00
fix: 事件动作触发Toast移动端样式失效问题 (#11075)
This commit is contained in:
parent
1e5b057988
commit
cf86d4f04e
@ -41,7 +41,7 @@ export class ToastAction implements RendererAction {
|
||||
event.context.env?.notify?.(
|
||||
action.args?.msgType || 'info',
|
||||
String(action.args?.msg),
|
||||
action.args
|
||||
{...action.args, mobileUI: renderer.props.mobileUI}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -162,6 +162,22 @@
|
||||
width: var(--Toast-icon-width);
|
||||
height: var(--Toast-icon-height);
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -54,6 +54,13 @@ export default defineConfig({
|
||||
target: 'esnext'
|
||||
}
|
||||
},
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
silenceDeprecations: ['legacy-js-api']
|
||||
}
|
||||
}
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 8888
|
||||
|
Loading…
Reference in New Issue
Block a user