1.配置好iconfont
2.找到对应组件下的js文件,如toast组件下的js文件为:muse-ui-toast.esm.js
3.修改config中的参数
var config = {
position: ‘bottom’,
time: 20000,
closeIcon: ‘:iconfont icon-zhuye’,
close: true,
successIcon: ‘check_circle’,
infoIcon: ‘info’,
warningIcon: ‘priority_high’,
errorIcon: ‘warning’
};
这里我将close的icon改为了自定义的icon