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

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

BIN
cPager/Common.left.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 777 B

1
cPager/Common.left.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1582598922240" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5489" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64"><defs><style type="text/css"></style></defs><path d="M348.8 512L742.4 118.4c12.8-12.8 12.8-32 0-44.8s-32-12.8-44.8 0l-416 416c-12.8 12.8-12.8 32 0 44.8l416 416c6.4 6.4 16 9.6 22.4 9.6s16-3.2 22.4-9.6c12.8-12.8 12.8-32 0-44.8L348.8 512z" p-id="5490" fill="#1881EE"></path></svg>

After

Width:  |  Height:  |  Size: 599 B

BIN
cPager/Common.leftMost.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 985 B

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1582598840797" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5117" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64"><defs><style type="text/css"></style></defs><path d="M320 896c19.2 0 32-12.8 32-32v-307.2l329.6 329.6c12.8 12.8 32 12.8 44.8 0s12.8-32 0-44.8L396.8 512 726.4 182.4c12.8-12.8 12.8-32 0-44.8-6.4-6.4-12.8-9.6-22.4-9.6s-16 3.2-22.4 9.6L352 467.2V160c0-19.2-12.8-32-32-32s-32 12.8-32 32v704c0 19.2 12.8 32 32 32z" p-id="5118" fill="#1881EE"></path></svg>

After

Width:  |  Height:  |  Size: 671 B

BIN
cPager/Common.next.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 649 B

1
cPager/Common.next.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1582336139634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5189" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64"><defs><style type="text/css"></style></defs><path d="M364.8 106.666667L298.666667 172.8 637.866667 512 298.666667 851.2l66.133333 66.133333L768 512z" fill="#2196F3" p-id="5190"></path></svg>

After

Width:  |  Height:  |  Size: 512 B

BIN
cPager/Common.previous.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 702 B

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1582336133875" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5051" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64"><defs><style type="text/css"></style></defs><path d="M659.2 917.333333l66.133333-66.133333L386.133333 512 725.333333 172.8 659.2 106.666667 256 512z" fill="#2196F3" p-id="5052"></path></svg>

After

Width:  |  Height:  |  Size: 512 B

BIN
cPager/Common.right.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 780 B

1
cPager/Common.right.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1582598889722" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5303" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64"><defs><style type="text/css"></style></defs><path d="M742.4 489.6l-416-416c-12.8-12.8-32-12.8-44.8 0s-12.8 32 0 44.8L675.2 512 281.6 905.6c-12.8 12.8-12.8 32 0 44.8 6.4 6.4 12.8 9.6 22.4 9.6s16-3.2 22.4-9.6l416-416c12.8-12.8 12.8-32 0-44.8z" p-id="5304" fill="#1881EE"></path></svg>

After

Width:  |  Height:  |  Size: 604 B

BIN
cPager/Common.rightMost.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 994 B

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1582598822551" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4931" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64"><defs><style type="text/css"></style></defs><path d="M704 128c-19.2 0-32 12.8-32 32v307.2L342.4 137.6c-12.8-12.8-32-12.8-44.8 0s-12.8 32 0 44.8L627.2 512 297.6 841.6c-12.8 12.8-12.8 32 0 44.8 6.4 6.4 12.8 9.6 22.4 9.6s16-3.2 22.4-9.6L672 556.8V864c0 19.2 12.8 32 32 32s32-12.8 32-32V160c0-19.2-12.8-32-32-32z" p-id="4932" fill="#1881EE"></path></svg>

After

Width:  |  Height:  |  Size: 672 B

View File

@ -238,15 +238,15 @@
background: no-repeat center center / contain;
}
.sLeftMostButton{
background-image: url(/static/Common.leftMost.png)
background-image: url(./static/Common.leftMost.png)
}
.sPrevButton{
background-image: url(/static/Common.previous.png)
background-image: url(./static/Common.previous.png)
}
.sNextButton{
background-image: url(/static/Common.next.png)
background-image: url(./static/Common.next.png)
}
.sRightMostButton{
background-image: url(/static/Common.rightMost.png)
background-image: url(./static/Common.rightMost.png)
}
</style>

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;
}