浏览代码

拖动长按优化

jwyu 1 年之前
父节点
当前提交
67a92481ac
共有 1 个文件被更改,包括 9 次插入5 次删除
  1. 9 5
      src/views/myETA/Index.vue

+ 9 - 5
src/views/myETA/Index.vue

@@ -231,15 +231,19 @@ async function goSearch(){
             >
                 <template #item="{element}">
                     <li 
-                        class="item"
+                        class="select-text-disabled item"
                         @click="handleSwitchClassify(element)"
                     >
                         <div :class="['van-ellipsis name',element.MyChartClassifyId===listState.cid&&'active-name']">{{element.MyChartClassifyName}}</div>
                         <div class="icon-drag-box" v-if="classifyState.classifyTypeAct==1">
-                            <img src="@/assets/imgs/icon_drag.png" alt="">
+                            <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none">
+                                <path d="M40.4087 23.8334L33.7785 18.3083V22.7283H24.9384V13.8882H29.3585L23.8334 7.25806L18.3083 13.8882H22.7283V22.7283H13.8882V18.3083L7.25806 23.8334L13.8882 29.3585V24.9384H22.7283V33.7785H18.3083L23.8334 40.4087L29.3585 33.7785H24.9384V24.9384H33.7785V29.3585L40.4087 23.8334Z" fill="#666666"/>
+                            </svg>
                         </div>
                         <div class="icon-menu-box" @click.stop="handleShowOpt(element)">
-                            <img src="@/assets/imgs/myETA/icon_opt.png" alt="">
+                            <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none">
+                                <path d="M24 33C25.65 33 27 34.35 27 36C27 37.65 25.65 39 24 39C22.35 39 21 37.65 21 36C21 34.35 22.35 33 24 33ZM21 24C21 25.65 22.35 27 24 27C25.65 27 27 25.65 27 24C27 22.35 25.65 21 24 21C22.35 21 21 22.35 21 24ZM21 12C21 13.65 22.35 15 24 15C25.65 15 27 13.65 27 12C27 10.35 25.65 9 24 9C22.35 9 21 10.35 21 12Z" fill="#666666"/>
+                            </svg>
                         </div>
                     </li>
                 </template>
@@ -420,7 +424,7 @@ async function goSearch(){
             .icon-drag-box{
                 width: 48px;
                 height: 48px;
-                img{
+                svg{
                     width: 100%;
                     height: 100%;
                 }
@@ -429,7 +433,7 @@ async function goSearch(){
                 margin-left: 20px;
                 width: 48px;
                 height: 48px;
-                img{
+                svg{
                     width: 100%;
                     height: 100%;
                 }