feat(数据集): 计算字段更换图标

This commit is contained in:
dataeaseShu 2024-08-26 16:46:21 +08:00
parent 90a779396e
commit 174c7b6409
11 changed files with 76 additions and 3 deletions

View File

@ -0,0 +1,7 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7 2.5C7 2.22386 6.77614 2 6.5 2H5.5C5.22386 2 5 2.22386 5 2.5V3H2C1.44772 3 1 3.44772 1 4V21C1 21.5523 1.44772 22 2 22H10.7546C10.2724 21.3984 9.87526 20.7257 9.58152 20H3V5H5V5.5C5 5.77614 5.22386 6 5.5 6H6.5C6.77614 6 7 5.77614 7 5.5V5H15V5.5C15 5.77614 15.2239 6 15.5 6H16.5C16.7761 6 17 5.77614 17 5.5V5H19V9.25204C19.7095 9.43466 20.381 9.71218 21 10.0703V4C21 3.44772 20.5523 3 20 3H17V2.5C17 2.22386 16.7761 2 16.5 2H15.5C15.2239 2 15 2.22386 15 2.5V3H7V2.5Z" fill="#3370FF"/>
<path d="M12.5 10.3847V10C12.5 9.72386 12.2761 9.5 12 9.5H10C9.72386 9.5 9.5 9.72386 9.5 10V12C9.5 12.2761 9.72386 12.5 10 12.5H10.3847C10.9508 11.6693 11.6693 10.9508 12.5 10.3847Z" fill="#3370FF"/>
<path d="M7.5 9.5C7.77614 9.5 8 9.72386 8 10V12C8 12.2761 7.77614 12.5 7.5 12.5H5.5C5.22386 12.5 5 12.2761 5 12V10C5 9.72386 5.22386 9.5 5.5 9.5H7.5Z" fill="#3370FF"/>
<path d="M7.5 14C7.77614 14 8 14.2239 8 14.5V16.5C8 16.7761 7.77614 17 7.5 17H5.5C5.22386 17 5 16.7761 5 16.5V14.5C5 14.2239 5.22386 14 5.5 14H7.5Z" fill="#3370FF"/>
<path d="M11 17C11 13.6863 13.6863 11 17 11C20.3138 11 23 13.6863 23 17C23 20.3138 20.3138 23 17 23C16.6389 23 16.2853 22.9681 15.9417 22.907C15.9517 22.8915 15.9595 22.8744 15.9649 22.856L16.1362 22.267L17.2177 17.3297H20.2439C20.2958 17.3297 20.3456 17.3091 20.3823 17.2724C20.419 17.2357 20.4396 17.1859 20.4396 17.134V16.2066C20.4396 16.1547 20.419 16.105 20.3823 16.0683C20.3456 16.0316 20.2958 16.011 20.2439 16.011H17.5065L17.734 14.9725C17.9231 14.3222 18.5395 13.8726 19.2418 13.8726H20.1867C20.2386 13.8726 20.2883 13.852 20.325 13.8153C20.3617 13.7786 20.3824 13.7288 20.3824 13.6769V12.7781C20.3824 12.7262 20.3617 12.6764 20.325 12.6397C20.2883 12.603 20.2386 12.5824 20.1867 12.5824H19.2418C17.9375 12.5824 16.7928 13.4175 16.4416 14.6251L16.1319 16.011H13.4924C13.4405 16.011 13.3908 16.0316 13.3541 16.0683C13.3174 16.105 13.2967 16.1547 13.2967 16.2066V17.134C13.2967 17.1859 13.3174 17.2357 13.3541 17.2724C13.3908 17.3091 13.4405 17.3297 13.4924 17.3297H15.8372L14.7726 22.0932L14.6468 22.521C12.5028 21.6059 11 19.4784 11 17Z" fill="#3370FF"/>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -0,0 +1,7 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7 2.5C7 2.22386 6.77614 2 6.5 2H5.5C5.22386 2 5 2.22386 5 2.5V3H2C1.44772 3 1 3.44772 1 4V21C1 21.5523 1.44772 22 2 22H10.7546C10.2724 21.3984 9.87526 20.7257 9.58152 20H3V5H5V5.5C5 5.77614 5.22386 6 5.5 6H6.5C6.77614 6 7 5.77614 7 5.5V5H15V5.5C15 5.77614 15.2239 6 15.5 6H16.5C16.7761 6 17 5.77614 17 5.5V5H19V9.25204C19.7095 9.43466 20.381 9.71218 21 10.0703V4C21 3.44772 20.5523 3 20 3H17V2.5C17 2.22386 16.7761 2 16.5 2H15.5C15.2239 2 15 2.22386 15 2.5V3H7V2.5Z" fill="#04B49C"/>
<path d="M12.5 10.3847V10C12.5 9.72386 12.2761 9.5 12 9.5H10C9.72386 9.5 9.5 9.72386 9.5 10V12C9.5 12.2761 9.72386 12.5 10 12.5H10.3847C10.9508 11.6693 11.6693 10.9508 12.5 10.3847Z" fill="#04B49C"/>
<path d="M7.5 9.5C7.77614 9.5 8 9.72386 8 10V12C8 12.2761 7.77614 12.5 7.5 12.5H5.5C5.22386 12.5 5 12.2761 5 12V10C5 9.72386 5.22386 9.5 5.5 9.5H7.5Z" fill="#04B49C"/>
<path d="M7.5 14C7.77614 14 8 14.2239 8 14.5V16.5C8 16.7761 7.77614 17 7.5 17H5.5C5.22386 17 5 16.7761 5 16.5V14.5C5 14.2239 5.22386 14 5.5 14H7.5Z" fill="#04B49C"/>
<path d="M11 17C11 13.6863 13.6863 11 17 11C20.3138 11 23 13.6863 23 17C23 20.3138 20.3138 23 17 23C16.6389 23 16.2853 22.9681 15.9417 22.907C15.9517 22.8915 15.9595 22.8744 15.9649 22.856L16.1362 22.267L17.2177 17.3297H20.2439C20.2958 17.3297 20.3456 17.3091 20.3823 17.2724C20.419 17.2357 20.4396 17.1859 20.4396 17.134V16.2066C20.4396 16.1547 20.419 16.105 20.3823 16.0683C20.3456 16.0316 20.2958 16.011 20.2439 16.011H17.5065L17.734 14.9725C17.9231 14.3222 18.5395 13.8726 19.2418 13.8726H20.1867C20.2386 13.8726 20.2883 13.852 20.325 13.8153C20.3617 13.7786 20.3824 13.7288 20.3824 13.6769V12.7781C20.3824 12.7262 20.3617 12.6764 20.325 12.6397C20.2883 12.603 20.2386 12.5824 20.1867 12.5824H19.2418C17.9375 12.5824 16.7928 13.4175 16.4416 14.6251L16.1319 16.011H13.4924C13.4405 16.011 13.3908 16.0316 13.3541 16.0683C13.3174 16.105 13.2967 16.1547 13.2967 16.2066V17.134C13.2967 17.1859 13.3174 17.2357 13.3541 17.2724C13.3908 17.3091 13.4405 17.3297 13.4924 17.3297H15.8372L14.7726 22.0932L14.6468 22.521C12.5028 21.6059 11 19.4784 11 17Z" fill="#04B49C"/>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -0,0 +1,5 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9.62093 20.0956C5.14276 16.7118 3 13.4907 3 10.5C3 6.08172 6.58172 2.5 11 2.5C14.985 2.5 18.2894 5.41364 18.8992 9.22681C19.6425 9.40777 20.345 9.69254 20.9907 10.0649C20.7629 4.74391 16.3771 0.5 11 0.5C5.47715 0.5 1 4.97715 1 10.5C1 14.7007 4.14794 18.9115 10.4438 23.1324C10.7804 23.3581 11.2198 23.3583 11.5566 23.133C11.6141 23.0945 11.6714 23.0561 11.7284 23.0176C10.821 22.2221 10.0952 21.2247 9.62093 20.0956Z" fill="#3370FF"/>
<path d="M9.50021 14.2093C8.03418 13.616 7 12.1788 7 10.5C7 8.29086 8.79086 6.5 11 6.5C12.7916 6.5 14.308 7.67783 14.8173 9.30139C14.1594 9.48754 13.536 9.75574 12.9588 10.0942C12.7713 9.18422 11.9655 8.5 11 8.5C9.89543 8.5 9 9.39543 9 10.5C9 11.41 9.60781 12.1781 10.4396 12.4204C10.0552 12.9702 9.73804 13.5704 9.50021 14.2093Z" fill="#3370FF"/>
<path d="M11 17C11 13.6863 13.6863 11 17 11C20.3138 11 23 13.6863 23 17C23 20.3138 20.3138 23 17 23C16.6389 23 16.2853 22.9681 15.9417 22.907C15.9517 22.8915 15.9595 22.8744 15.9649 22.856L16.1362 22.267L17.2177 17.3297H20.2439C20.2958 17.3297 20.3456 17.3091 20.3823 17.2724C20.419 17.2357 20.4396 17.1859 20.4396 17.134V16.2066C20.4396 16.1547 20.419 16.105 20.3823 16.0683C20.3456 16.0316 20.2958 16.011 20.2439 16.011H17.5065L17.734 14.9725C17.9231 14.3222 18.5395 13.8726 19.2418 13.8726H20.1867C20.2386 13.8726 20.2883 13.852 20.325 13.8153C20.3617 13.7786 20.3824 13.7288 20.3824 13.6769V12.7781C20.3824 12.7262 20.3617 12.6764 20.325 12.6397C20.2883 12.603 20.2386 12.5824 20.1867 12.5824H19.2418C17.9375 12.5824 16.7928 13.4175 16.4416 14.6251L16.1319 16.011H13.4924C13.4405 16.011 13.3908 16.0316 13.3541 16.0683C13.3174 16.105 13.2967 16.1547 13.2967 16.2066V17.134C13.2967 17.1859 13.3174 17.2357 13.3541 17.2724C13.3908 17.3091 13.4405 17.3297 13.4924 17.3297H15.8372L14.7726 22.0932L14.6468 22.521C12.5028 21.6059 11 19.4784 11 17Z" fill="#3370FF"/>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -0,0 +1,5 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9.62093 20.0956C5.14276 16.7118 3 13.4907 3 10.5C3 6.08172 6.58172 2.5 11 2.5C14.985 2.5 18.2894 5.41364 18.8992 9.22681C19.6425 9.40777 20.345 9.69254 20.9907 10.0649C20.7629 4.74391 16.3771 0.5 11 0.5C5.47715 0.5 1 4.97715 1 10.5C1 14.7007 4.14794 18.9115 10.4438 23.1324C10.7804 23.3581 11.2198 23.3583 11.5566 23.133C11.6141 23.0945 11.6714 23.0561 11.7284 23.0176C10.821 22.2221 10.0952 21.2247 9.62093 20.0956Z" fill="#04B49C"/>
<path d="M9.50021 14.2093C8.03418 13.616 7 12.1788 7 10.5C7 8.29086 8.79086 6.5 11 6.5C12.7916 6.5 14.308 7.67783 14.8173 9.30139C14.1594 9.48754 13.536 9.75574 12.9588 10.0942C12.7713 9.18422 11.9655 8.5 11 8.5C9.89543 8.5 9 9.39543 9 10.5C9 11.41 9.60781 12.1781 10.4396 12.4204C10.0552 12.9702 9.73804 13.5704 9.50021 14.2093Z" fill="#04B49C"/>
<path d="M11 17C11 13.6863 13.6863 11 17 11C20.3138 11 23 13.6863 23 17C23 20.3138 20.3138 23 17 23C16.6389 23 16.2853 22.9681 15.9417 22.907C15.9517 22.8915 15.9595 22.8744 15.9649 22.856L16.1362 22.267L17.2177 17.3297H20.2439C20.2958 17.3297 20.3456 17.3091 20.3823 17.2724C20.419 17.2357 20.4396 17.1859 20.4396 17.134V16.2066C20.4396 16.1547 20.419 16.105 20.3823 16.0683C20.3456 16.0316 20.2958 16.011 20.2439 16.011H17.5065L17.734 14.9725C17.9231 14.3222 18.5395 13.8726 19.2418 13.8726H20.1867C20.2386 13.8726 20.2883 13.852 20.325 13.8153C20.3617 13.7786 20.3824 13.7288 20.3824 13.6769V12.7781C20.3824 12.7262 20.3617 12.6764 20.325 12.6397C20.2883 12.603 20.2386 12.5824 20.1867 12.5824H19.2418C17.9375 12.5824 16.7928 13.4175 16.4416 14.6251L16.1319 16.011H13.4924C13.4405 16.011 13.3908 16.0316 13.3541 16.0683C13.3174 16.105 13.2967 16.1547 13.2967 16.2066V17.134C13.2967 17.1859 13.3174 17.2357 13.3541 17.2724C13.3908 17.3091 13.4405 17.3297 13.4924 17.3297H15.8372L14.7726 22.0932L14.6468 22.521C12.5028 21.6059 11 19.4784 11 17Z" fill="#04B49C"/>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -0,0 +1,4 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9.09999 2.45287C9.13197 2.21307 8.94542 2 8.7035 2H7.4483C7.24782 2 7.07831 2.14841 7.05181 2.34714L6.61336 5.63553H2.52826C2.30734 5.63553 2.12826 5.81461 2.12826 6.03553V7.29781C2.12826 7.51872 2.30734 7.69781 2.52826 7.69781H6.33839L5.36891 14.9689H1.19492C0.974008 14.9689 0.794922 15.1479 0.794922 15.3689V16.6311C0.794922 16.8521 0.974009 17.0311 1.19492 17.0311H5.09394L4.49181 21.5471C4.45984 21.7869 4.64639 22 4.8883 22H6.1435C6.34398 22 6.5135 21.8516 6.53999 21.6529L7.15622 17.0311H9.00006C9.00002 17.0208 9 17.0104 9 17C9 16.2982 9.09037 15.6175 9.26012 14.9689H7.43119L8.40067 7.69781H15.6707L15.4778 9.14463C15.9706 9.04971 16.4795 9 17 9C17.1872 9 17.3729 9.00643 17.5568 9.01908L17.733 7.69781H21.7283C21.9492 7.69781 22.1283 7.51872 22.1283 7.29781V6.03553C22.1283 5.81461 21.9492 5.63553 21.7283 5.63553H18.008L18.4323 2.45287C18.4643 2.21307 18.2778 2 18.0359 2H16.7807C16.5802 2 16.4107 2.14841 16.3842 2.34714L15.9457 5.63553H8.67564L9.09999 2.45287Z" fill="#3370FF"/>
<path d="M11 17C11 13.6863 13.6863 11 17 11C20.3138 11 23 13.6863 23 17C23 20.3138 20.3138 23 17 23C16.6389 23 16.2853 22.9681 15.9417 22.907C15.9517 22.8915 15.9595 22.8744 15.9649 22.856L16.1362 22.267L17.2177 17.3297H20.2439C20.2958 17.3297 20.3456 17.3091 20.3823 17.2724C20.419 17.2357 20.4396 17.1859 20.4396 17.134V16.2066C20.4396 16.1547 20.419 16.105 20.3823 16.0683C20.3456 16.0316 20.2958 16.011 20.2439 16.011H17.5065L17.734 14.9725C17.9231 14.3222 18.5395 13.8726 19.2418 13.8726H20.1867C20.2386 13.8726 20.2883 13.852 20.325 13.8153C20.3617 13.7786 20.3824 13.7288 20.3824 13.6769V12.7781C20.3824 12.7262 20.3617 12.6764 20.325 12.6397C20.2883 12.603 20.2386 12.5824 20.1867 12.5824H19.2418C17.9375 12.5824 16.7928 13.4175 16.4416 14.6251L16.1319 16.011H13.4924C13.4405 16.011 13.3908 16.0316 13.3541 16.0683C13.3174 16.105 13.2967 16.1547 13.2967 16.2066V17.134C13.2967 17.1859 13.3174 17.2357 13.3541 17.2724C13.3908 17.3091 13.4405 17.3297 13.4924 17.3297H15.8372L14.7726 22.0932L14.6468 22.521C12.5028 21.6059 11 19.4784 11 17Z" fill="#3370FF"/>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -0,0 +1,4 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9.09999 2.45287C9.13197 2.21307 8.94542 2 8.7035 2H7.4483C7.24782 2 7.07831 2.14841 7.05181 2.34714L6.61336 5.63553H2.52826C2.30734 5.63553 2.12826 5.81461 2.12826 6.03553V7.29781C2.12826 7.51872 2.30734 7.69781 2.52826 7.69781H6.33839L5.36891 14.9689H1.19492C0.974008 14.9689 0.794922 15.1479 0.794922 15.3689V16.6311C0.794922 16.8521 0.974009 17.0311 1.19492 17.0311H5.09394L4.49181 21.5471C4.45984 21.7869 4.64639 22 4.8883 22H6.1435C6.34398 22 6.5135 21.8516 6.53999 21.6529L7.15622 17.0311H9.00006C9.00002 17.0208 9 17.0104 9 17C9 16.2982 9.09037 15.6175 9.26012 14.9689H7.43119L8.40067 7.69781H15.6707L15.4778 9.14463C15.9706 9.04971 16.4795 9 17 9C17.1872 9 17.3729 9.00643 17.5568 9.01908L17.733 7.69781H21.7283C21.9492 7.69781 22.1283 7.51872 22.1283 7.29781V6.03553C22.1283 5.81461 21.9492 5.63553 21.7283 5.63553H18.008L18.4323 2.45287C18.4643 2.21307 18.2778 2 18.0359 2H16.7807C16.5802 2 16.4107 2.14841 16.3842 2.34714L15.9457 5.63553H8.67564L9.09999 2.45287Z" fill="#04B49C"/>
<path d="M11 17C11 13.6863 13.6863 11 17 11C20.3138 11 23 13.6863 23 17C23 20.3138 20.3138 23 17 23C16.6389 23 16.2853 22.9681 15.9417 22.907C15.9517 22.8915 15.9595 22.8744 15.9649 22.856L16.1362 22.267L17.2177 17.3297H20.2439C20.2958 17.3297 20.3456 17.3091 20.3823 17.2724C20.419 17.2357 20.4396 17.1859 20.4396 17.134V16.2066C20.4396 16.1547 20.419 16.105 20.3823 16.0683C20.3456 16.0316 20.2958 16.011 20.2439 16.011H17.5065L17.734 14.9725C17.9231 14.3222 18.5395 13.8726 19.2418 13.8726H20.1867C20.2386 13.8726 20.2883 13.852 20.325 13.8153C20.3617 13.7786 20.3824 13.7288 20.3824 13.6769V12.7781C20.3824 12.7262 20.3617 12.6764 20.325 12.6397C20.2883 12.603 20.2386 12.5824 20.1867 12.5824H19.2418C17.9375 12.5824 16.7928 13.4175 16.4416 14.6251L16.1319 16.011H13.4924C13.4405 16.011 13.3908 16.0316 13.3541 16.0683C13.3174 16.105 13.2967 16.1547 13.2967 16.2066V17.134C13.2967 17.1859 13.3174 17.2357 13.3541 17.2724C13.3908 17.3091 13.4405 17.3297 13.4924 17.3297H15.8372L14.7726 22.0932L14.6468 22.521C12.5028 21.6059 11 19.4784 11 17Z" fill="#04B49C"/>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -0,0 +1,4 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 10.7546V5H19.5C19.6326 5 19.7598 4.94732 19.8536 4.85355C19.9473 4.75979 20 4.63261 20 4.5V3.5C20 3.43434 19.9871 3.36932 19.9619 3.30866C19.9368 3.248 19.9 3.19288 19.8536 3.14645C19.8071 3.10002 19.752 3.06319 19.6913 3.03806C19.6307 3.01293 19.5657 3 19.5 3H2.5C2.43434 3 2.36932 3.01293 2.30866 3.03806C2.248 3.06319 2.19288 3.10002 2.14645 3.14645C2.10002 3.19288 2.06319 3.248 2.03806 3.30866C2.01293 3.36932 2 3.43434 2 3.5V4.5C2 4.56566 2.01293 4.63068 2.03806 4.69134C2.06319 4.752 2.10002 4.80712 2.14645 4.85355C2.19288 4.89998 2.248 4.93681 2.30866 4.96194C2.36932 4.98707 2.43434 5 2.5 5H10V13.124C10.5075 12.2094 11.1891 11.4047 12 10.7546Z" fill="#3370FF"/>
<path d="M11 17C11 13.6863 13.6863 11 17 11C20.3138 11 23 13.6863 23 17C23 20.3138 20.3138 23 17 23C16.6389 23 16.2853 22.9681 15.9417 22.907C15.9517 22.8915 15.9595 22.8744 15.9649 22.856L16.1362 22.267L17.2177 17.3297H20.2439C20.2958 17.3297 20.3456 17.3091 20.3823 17.2724C20.419 17.2357 20.4396 17.1859 20.4396 17.134V16.2066C20.4396 16.1547 20.419 16.105 20.3823 16.0683C20.3456 16.0316 20.2958 16.011 20.2439 16.011H17.5065L17.734 14.9725C17.9231 14.3222 18.5395 13.8726 19.2418 13.8726H20.1867C20.2386 13.8726 20.2883 13.852 20.325 13.8153C20.3617 13.7786 20.3824 13.7288 20.3824 13.6769V12.7781C20.3824 12.7262 20.3617 12.6764 20.325 12.6397C20.2883 12.603 20.2386 12.5824 20.1867 12.5824H19.2418C17.9375 12.5824 16.7928 13.4175 16.4416 14.6251L16.1319 16.011H13.4924C13.4405 16.011 13.3908 16.0316 13.3541 16.0683C13.3174 16.105 13.2967 16.1547 13.2967 16.2066V17.134C13.2967 17.1859 13.3174 17.2357 13.3541 17.2724C13.3908 17.3091 13.4405 17.3297 13.4924 17.3297H15.8372L14.7726 22.0932L14.6468 22.521C12.5028 21.6059 11 19.4784 11 17Z" fill="#3370FF"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,4 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 10.7546V5H19.5C19.6326 5 19.7598 4.94732 19.8536 4.85355C19.9473 4.75979 20 4.63261 20 4.5V3.5C20 3.43434 19.9871 3.36932 19.9619 3.30866C19.9368 3.248 19.9 3.19288 19.8536 3.14645C19.8071 3.10002 19.752 3.06319 19.6913 3.03806C19.6307 3.01293 19.5657 3 19.5 3H2.5C2.43434 3 2.36932 3.01293 2.30866 3.03806C2.248 3.06319 2.19288 3.10002 2.14645 3.14645C2.10002 3.19288 2.06319 3.248 2.03806 3.30866C2.01293 3.36932 2 3.43434 2 3.5V4.5C2 4.56566 2.01293 4.63068 2.03806 4.69134C2.06319 4.752 2.10002 4.80712 2.14645 4.85355C2.19288 4.89998 2.248 4.93681 2.30866 4.96194C2.36932 4.98707 2.43434 5 2.5 5H10V13.124C10.5075 12.2094 11.1891 11.4047 12 10.7546Z" fill="#04B49C"/>
<path d="M11 17C11 13.6863 13.6863 11 17 11C20.3138 11 23 13.6863 23 17C23 20.3138 20.3138 23 17 23C16.6389 23 16.2853 22.9681 15.9417 22.907C15.9517 22.8915 15.9595 22.8744 15.9649 22.856L16.1362 22.267L17.2177 17.3297H20.2439C20.2958 17.3297 20.3456 17.3091 20.3823 17.2724C20.419 17.2357 20.4396 17.1859 20.4396 17.134V16.2066C20.4396 16.1547 20.419 16.105 20.3823 16.0683C20.3456 16.0316 20.2958 16.011 20.2439 16.011H17.5065L17.734 14.9725C17.9231 14.3222 18.5395 13.8726 19.2418 13.8726H20.1867C20.2386 13.8726 20.2883 13.852 20.325 13.8153C20.3617 13.7786 20.3824 13.7288 20.3824 13.6769V12.7781C20.3824 12.7262 20.3617 12.6764 20.325 12.6397C20.2883 12.603 20.2386 12.5824 20.1867 12.5824H19.2418C17.9375 12.5824 16.7928 13.4175 16.4416 14.6251L16.1319 16.011H13.4924C13.4405 16.011 13.3908 16.0316 13.3541 16.0683C13.3174 16.105 13.2967 16.1547 13.2967 16.2066V17.134C13.2967 17.1859 13.3174 17.2357 13.3541 17.2724C13.3908 17.3091 13.4405 17.3297 13.4924 17.3297H15.8372L14.7726 22.0932L14.6468 22.521C12.5028 21.6059 11 19.4784 11 17Z" fill="#04B49C"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -3,6 +3,14 @@ import { computed } from 'vue'
import { propTypes } from '@/utils/propTypes'
import _401 from '@/assets/svg/401.svg'
import icon_text_calculated_outlined from '@/assets/svg/icon_text-calculated_outlined.svg'
import icon_text_calculated_outlined_1 from '@/assets/svg/icon_text-calculated_outlined-1.svg'
import icon_number_calculated_outlined from '@/assets/svg/icon_number-calculated_outlined.svg'
import icon_number_calculated_outlined_1 from '@/assets/svg/icon_number-calculated_outlined_1.svg'
import icon_local_calculated_outlined from '@/assets/svg/icon_local-calculated_outlined.svg'
import icon_local_calculated_outlined_1 from '@/assets/svg/icon_local-calculated_outlined_1.svg'
import icon_calendar_calculated_outlined from '@/assets/svg/icon_calendar-calculated_outlined.svg'
import icon_calendar_calculated_outlined_1 from '@/assets/svg/icon_calendar-calculated_outlined_1.svg'
import icon_adjustment_outlined from '@/assets/svg/icon_adjustment_outlined.svg'
import icon_file_font_colorful from '@/assets/svg/icon_file-font_colorful.svg'
import relation_arrow_icon from '@/assets/svg/relation_arrow_icon.svg'
@ -685,6 +693,14 @@ import tHeatmapDark from '@/assets/svg/t-heatmap-dark.svg'
import tHeatmapOrigin from '@/assets/svg/t-heatmap-origin.svg'
const iconMap = {
'401': _401,
icon_text_calculated_outlined,
icon_text_calculated_outlined_1,
icon_number_calculated_outlined,
icon_number_calculated_outlined_1,
icon_local_calculated_outlined,
icon_local_calculated_outlined_1,
icon_calendar_calculated_outlined,
icon_calendar_calculated_outlined_1,
icon_adjustment_outlined,
icon_file_font_colorful,
relation_arrow_icon,

View File

@ -100,6 +100,16 @@ export const selectKey = ['textAlign', 'borderStyle', 'verticalAlign']
export const horizontalPosition = ['headHorizontalPosition']
export const fieldType = ['text', 'time', 'value', 'value', 'value', 'location', 'binary', 'url']
export const fieldTypeCalculated = [
'icon_text_calculated_outlined',
'icon_calendar_calculated_outlined',
'icon_number_calculated_outlined',
'icon_number_calculated_outlined',
'icon_number_calculated_outlined',
'icon_local_calculated_outlined',
'binary',
'url'
]
export const fieldTypeText = [
'文本',
'时间',

View File

@ -23,7 +23,7 @@ import { useEmitt } from '@/hooks/web/useEmitt'
import { ElMessage, ElTreeSelect } from 'element-plus-secondary'
import draggable from 'vuedraggable'
import DimensionItem from './drag-item/DimensionItem.vue'
import { fieldType } from '@/utils/attr'
import { fieldType, fieldTypeCalculated } from '@/utils/attr'
import QuotaItem from '@/views/chart/components/editor/drag-item/QuotaItem.vue'
import DragPlaceholder from '@/views/chart/components/editor/drag-item/DragPlaceholder.vue'
import FilterTree from './filter/FilterTree.vue'
@ -1454,6 +1454,13 @@ const confirmEditCalc = () => {
})
}
const getIconName = (deType, extField, dimension = false) => {
if (extField === 2) {
return `${fieldTypeCalculated[deType]}${dimension ? '' : '_1'}`
}
return `field_${fieldType[deType]}`
}
const chartFieldEdit = param => {
state.currEditField = JSON.parse(JSON.stringify(param.item))
switch (param.type) {
@ -3069,7 +3076,7 @@ const deleteChartFieldItem = id => {
:class-name="`field-icon-${
fieldType[[2, 3].includes(element.deType) ? 2 : 0]
}`"
:name="`field_${fieldType[element.deType]}`"
:name="getIconName(element.deType, element.extField)"
/>
</el-icon>
<span
@ -3221,7 +3228,7 @@ const deleteChartFieldItem = id => {
<el-icon>
<Icon
:class-name="`field-icon-${fieldType[element.deType]}`"
:name="`field_${fieldType[element.deType]}`"
:name="getIconName(element.deType, element.extField, true)"
></Icon>
</el-icon>
<span