把所用的图片集成到 *.vue 一起来

This commit is contained in:
Luk Lu
2020-03-23 22:28:04 +08:00
parent 4c12f1c91b
commit 74e563a6dd
19 changed files with 15 additions and 9 deletions

BIN
cToast/Common.fail.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

BIN
cToast/Common.info.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
cToast/Common.loading.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
cToast/Common.success.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

BIN
cToast/Common.warn.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -33,27 +33,27 @@ based on
methods:{
init:function(toast){
if (toast.type == 'success') {
toast.icon = toast.icon || '../static/Common.success.png';
toast.icon = toast.icon || './Common.success.png';
toast.typeClass='mpopup-success';
return toast;
}
if (toast.type == 'warn') {
toast.icon = toast.icon || '../static/Common.warn.png';
toast.icon = toast.icon || './Common.warn.png';
toast.typeClass='mpopup-warn';
return toast;
}
if (toast.type == 'info') {
toast.icon = toast.icon || '../static/Common.info.png';
toast.icon = toast.icon || './Common.info.png';
toast.typeClass='mpopup-info';
return toast;
}
if (toast.type == 'fail') {
toast.icon = toast.icon || '../static/Common.fail.png';
toast.icon = toast.icon || './Common.fail.png';
toast.typeClass='mpopup-fail';
return toast;
}
if (toast.type == 'loading') {
toast.icon = toast.icon || '../../static/xuan-popup/loading.png';
toast.icon = toast.icon || './Common.loading.png';
toast.typeClass='mpopup-loading';
return toast;
}