feat: 前置符号与星号与文字等高

pull/218/head
刘释隆 2 years ago
parent 3b772d2ad8
commit f30d1960e5

@ -103,4 +103,7 @@ const getThemeOverrides = computed(() => {
width: 14px !important; width: 14px !important;
height: 14px !important; height: 14px !important;
} }
.v-binder-follower-content {
left: -60px;
}
</style> </style>

@ -200,8 +200,7 @@ function favoriteHandler(event: MouseEvent, item: any) {
data.value.forEach((v, index) => { data.value.forEach((v, index) => {
if (v.id == id) if (v.id == id)
sort(v.id, 0) sort(v.id, 0)
else else sort(v.id, index + 1)
sort(v.id, index + 1)
}) })
inputHandler(ruleForm.keyword) inputHandler(ruleForm.keyword)
@ -216,8 +215,7 @@ const rules = {
validator(_rule, value) { validator(_rule, value) {
if (value.length >= 2) if (value.length >= 2)
return true return true
else else return new Error('搜索关键字最少为两个')
return new Error('搜索关键字最少为两个')
}, },
}, },
], ],
@ -332,7 +330,7 @@ defineExpose({
> >
<SvgIcon <SvgIcon
name="drag" name="drag"
size="18" size="13"
color="#333333" color="#333333"
style="margin-right: 3px" style="margin-right: 3px"
/> />
@ -340,20 +338,21 @@ defineExpose({
v-if="item.favorite && !item.isDefaultFilter" v-if="item.favorite && !item.isDefaultFilter"
name="favorite-fill" name="favorite-fill"
color="#fd9b0a" color="#fd9b0a"
width="13" size="18"
height="12"
style="margin-right: 3px" style="margin-right: 3px"
@click="unFavoriteHandler($event, item)" @click="unFavoriteHandler($event, item)"
/> />
<SvgIcon <SvgIcon
v-else-if="!item.favorite && !item.isDefaultFilter" v-else-if="!item.favorite && !item.isDefaultFilter"
name="favorite-unfill" name="favorite-unfill"
width="13" size="18"
height="12"
style="margin-right: 3px" style="margin-right: 3px"
@click="favoriteHandler($event, item)" @click="favoriteHandler($event, item)"
/> />
<div style="color: #333333" v-html="item.name" /> <div
style="color: #333333; white-space: nowrap; overflow: hidden"
v-html="item.name"
/>
</li> </li>
<!-- filter=".draggable-li[draggable='false']" --> <!-- filter=".draggable-li[draggable='false']" -->
<VueDraggable <VueDraggable
@ -371,13 +370,12 @@ defineExpose({
:draggable="true" :draggable="true"
@click="selectHandler(item)" @click="selectHandler(item)"
> >
<SvgIcon name="drag" size="10" style="margin-right: 3px" /> <SvgIcon name="drag" size="13" style="margin-right: 3px" />
<SvgIcon <SvgIcon
v-if="item.favorite && !item.isDefaultFilter" v-if="item.favorite && !item.isDefaultFilter"
name="favorite-fill" name="favorite-fill"
color="#fd9b0a" color="#fd9b0a"
width="13" size="18"
height="12"
fill="#666666" fill="#666666"
style="cursor: pointer !important; margin-right: 3px" style="cursor: pointer !important; margin-right: 3px"
@click="unFavoriteHandler($event, item)" @click="unFavoriteHandler($event, item)"
@ -385,13 +383,15 @@ defineExpose({
<SvgIcon <SvgIcon
v-else-if="!item.favorite && !item.isDefaultFilter" v-else-if="!item.favorite && !item.isDefaultFilter"
name="favorite-unfill" name="favorite-unfill"
width="13" size="18"
height="12"
fill="#666666" fill="#666666"
style="cursor: pointer !important; margin-right: 3px" style="cursor: pointer !important; margin-right: 3px"
@click="favoriteHandler($event, item)" @click="favoriteHandler($event, item)"
/> />
<div style="color: #333333" v-html="item.name" /> <div
style="color: #333333; white-space: nowrap; overflow: hidden"
v-html="item.name"
/>
</li> </li>
</VueDraggable> </VueDraggable>
</ul> </ul>

Loading…
Cancel
Save