[bugfix] Icon: should support render local image

This commit is contained in:
陈嘉涵
2019-06-03 20:46:16 +08:00
parent 616db0114e
commit 39339fdda7
5 changed files with 19 additions and 22 deletions
@@ -10,6 +10,11 @@ exports[`render icon with builtin icon name 1`] = `
<!----></i>
`;
exports[`render icon with local image 1`] = `
<i class="van-icon van-icon--image"><img src="/assets/icon.jpg">
<!----></i>
`;
exports[`render icon with url name 1`] = `
<i class="van-icon van-icon--image"><img src="https://img.yzcdn.com/icon.jpg">
<!----></i>