添加 cl-svg 组件,支持 base64、本地文件、<svg 标签
This commit is contained in:
1
static/demo/svg/category.svg
Normal file
1
static/demo/svg/category.svg
Normal 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="1756115471186" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7124" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64"><path d="M337.4 927.3H235.7c-76 0-137.7-61.8-137.7-137.7V688c0-76 61.8-137.7 137.7-137.7h101.6c76 0 137.7 61.8 137.7 137.7v101.6c0.1 75.9-61.7 137.7-137.6 137.7z m-101.7-287c-26.2 0-47.6 21.4-47.6 47.6v101.6c0 26.2 21.4 47.6 47.6 47.6h101.6c26.2 0 47.6-21.4 47.6-47.6V688c0-26.2-21.4-47.6-47.6-47.6H235.7zM769.9 927.3H668.3c-76 0-137.7-61.8-137.7-137.7V688c0-76 61.8-137.7 137.7-137.7h101.6c76 0 137.7 61.8 137.7 137.7v101.6c0 75.9-61.7 137.7-137.7 137.7z m-101.6-287c-26.2 0-47.6 21.4-47.6 47.6v101.6c0 26.2 21.4 47.6 47.6 47.6h101.6c26.2 0 47.6-21.4 47.6-47.6V688c0-26.2-21.4-47.6-47.6-47.6H668.3zM342.4 499.8H235.7C159.8 499.8 98 438 98 362.1V255.4c0-76 61.8-137.7 137.7-137.7h106.7c76 0 137.7 61.8 137.7 137.7v106.7c0 75.9-61.7 137.7-137.7 137.7z m-106.7-292c-26.2 0-47.6 21.4-47.6 47.6v106.7c0 26.2 21.4 47.6 47.6 47.6h106.7c26.2 0 47.6-21.4 47.6-47.6V255.4c0-26.2-21.4-47.6-47.6-47.6H235.7zM718.7 516c-35.3 0-70.5-13.4-97.4-40.3L549.6 404c-53.7-53.7-53.7-141.1 0-194.8l71.7-71.7c53.7-53.7 141.1-53.7 194.8 0l71.7 71.6c53.7 53.7 53.7 141.1 0 194.8l-71.7 71.7c-26.9 26.9-62.2 40.4-97.4 40.4z m0-328.6c-12.2 0-24.4 4.6-33.7 13.9L613.4 273c-9 9-13.9 20.9-13.9 33.7 0 12.7 5 24.7 13.9 33.7L685 412c18.6 18.6 48.8 18.6 67.3 0l71.7-71.7c9-9 13.9-20.9 13.9-33.7 0-12.7-5-24.7-13.9-33.7l-71.7-71.6c-9.2-9.3-21.4-13.9-33.6-13.9z" fill="#333333" p-id="7125"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
1
static/demo/svg/points.svg
Normal file
1
static/demo/svg/points.svg
Normal 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="1756115494148" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7451" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64"><path d="M297 518.5c-3.3 0-6.6-0.4-9.9-1.1-132.8-30.1-218.6-110-218.6-203.6 0-120.9 144-215.5 327.9-215.5 135.9 0 255.4 52.6 304.5 134.1 12.7 21 5.9 48.3-15.1 61-21.1 12.7-48.3 5.9-61-15.1-32.3-53.6-126.3-91.1-228.4-91.1-140.9 0-239 66.8-239 126.7 0 48.9 61.4 97 149.3 116.9 23.9 5.4 38.9 29.2 33.5 53.2-4.5 20.5-22.9 34.5-43.2 34.5z" fill="#333333" p-id="7452"></path><path d="M297.1 719.3c-3.3 0-6.6-0.4-9.9-1.1-132.8-30.1-218.6-110-218.6-203.6V313.8c0-24.5 19.9-44.4 44.4-44.4s44.4 19.9 44.4 44.4v200.8c0 48.9 61.4 97 149.3 116.9 23.9 5.4 38.9 29.2 33.5 53.2-4.5 20.6-22.9 34.6-43.1 34.6z" fill="#333333" p-id="7453"></path><path d="M326.4 925.6c-2.2 0-4.5-0.2-6.8-0.5-147.8-22.7-251-109-251-209.7V514.6c0-24.5 19.9-44.4 44.4-44.4s44.4 19.9 44.4 44.4v200.8c0 54.1 75.5 106.5 175.6 121.9 24.3 3.7 40.9 26.4 37.2 50.7-3.3 21.9-22.2 37.6-43.8 37.6zM667.4 749.4c-162.6 0-290-87.5-290-199.1 0-111.7 127.4-199.1 290-199.1s290 87.5 290 199.1-127.4 199.1-290 199.1z m0-309.4c-118.5 0-201.1 58.1-201.1 110.3 0 52.1 82.6 110.2 201.1 110.2s201.1-58.1 201.1-110.2c0-52.2-82.6-110.3-201.1-110.3z" fill="#333333" p-id="7454"></path><path d="M667.4 930.9c-162.6 0-290-87.5-290-199.1V550.3c0-24.5 19.9-44.4 44.4-44.4s44.4 19.9 44.4 44.4v181.5c0 52.1 82.6 110.2 201.1 110.2s201.1-58.1 201.1-110.2V550.3c0-24.5 19.9-44.4 44.4-44.4s44.4 19.9 44.4 44.4v181.5c0.2 111.6-127.2 199.1-289.8 199.1z" fill="#333333" p-id="7455"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
1
static/demo/svg/shopping-cart.svg
Normal file
1
static/demo/svg/shopping-cart.svg
Normal 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="1756115483803" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7288" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64"><path d="M772.2 654.3H425.6c-58.6 0-109.8-39.2-124.4-95.2l-90.5-346c-4.4-16.9-20.1-28.7-38.2-28.7h-65c-24.6 0-44.6-20-44.6-44.6s20-44.6 44.6-44.6h65c58.6 0 109.8 39.2 124.4 95.3l90.5 346c4.4 16.9 20.1 28.6 38.2 28.6h346.5c18.5 0 34.3-12.1 38.4-29.5l53.6-226.1c3.6-15-2.9-26.1-7-31.3-7.5-9.5-19-15-31.4-15H406.1c-24.6 0-44.6-20-44.6-44.6s20-44.6 44.6-44.6h419.7c39.8 0 76.7 17.8 101.3 48.8 24.1 30.5 32.8 69.5 23.9 107.2l-53.6 226.1c-13.8 57.9-65.3 98.2-125.2 98.2zM378.5 929.2c-69.4 0-125.8-56.5-125.8-125.9s56.4-125.9 125.8-125.9 125.9 56.5 125.9 125.9c-0.1 69.5-56.5 125.9-125.9 125.9z m0-162.6c-20.2 0-36.7 16.5-36.7 36.7 0 20.3 16.5 36.7 36.7 36.7 20.3 0 36.7-16.5 36.7-36.7 0-20.2-16.5-36.7-36.7-36.7zM769.8 929.2c-69.4 0-125.8-56.5-125.8-125.9s56.4-125.9 125.8-125.9 125.9 56.5 125.9 125.9c0 69.5-56.5 125.9-125.9 125.9z m0-162.6c-20.2 0-36.7 16.5-36.7 36.7 0 20.3 16.5 36.7 36.7 36.7 20.3 0 36.7-16.5 36.7-36.7 0.1-20.2-16.4-36.7-36.7-36.7z" fill="#333333" p-id="7289"></path><path d="M682.2 455.2H506c-24.6 0-44.6-20-44.6-44.6s20-44.6 44.6-44.6h176.2c24.6 0 44.6 20 44.6 44.6-0.1 24.7-20 44.6-44.6 44.6z" fill="#333333" p-id="7290"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
Reference in New Issue
Block a user