Commit 6296753c authored by chenqikuai's avatar chenqikuai

fix

parent 166ebc8f
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
style="font-size: 12px; font-weight: 400; color: #353535" style="font-size: 12px; font-weight: 400; color: #353535"
class="flex items-center" class="flex items-center"
> >
所有模板 <span @click="handleClickResetSearchValue" class="cursor-pointer"
>所有模板</span
>
<div v-show="type === 'sys' && searchOfSys !== ''"> <div v-show="type === 'sys' && searchOfSys !== ''">
<span>></span> <span style="color: #959595">搜索结果</span> <span>></span> <span style="color: #959595">搜索结果</span>
</div> </div>
...@@ -242,6 +244,13 @@ export default defineComponent({ ...@@ -242,6 +244,13 @@ export default defineComponent({
}, },
}, },
methods: { methods: {
handleClickResetSearchValue() {
if (this.type === "sys") {
this.searchOfSys = "";
} else {
this.searchOfPrivate = "";
}
},
formatTime, formatTime,
async getpersonalList(id: number) { async getpersonalList(id: number) {
const res = await $ajax({ const res = await $ajax({
......
<template> <template>
<div class="category-add"> <div class="category-add">
<syScrollBar height="300px" ref="syScrollBarRef"> <syScrollBar max-height="300px" ref="syScrollBarRef">
<div <div
v-for="(category, i) in categoryNames" v-for="(category, i) in categoryNames"
class="mb-3 flex pr-2 items-center" class="mb-3 flex pr-2 items-center"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
}" }"
> >
<div <div
class="flex pr-2 whitespace-nowrap flex-nowrap" class="flex pr-2 whitespace-nowrap flex-nowrap -mt-5"
style="border-bottom: 1px solid #f0f1f5" style="border-bottom: 1px solid #f0f1f5"
> >
<div class="tableHeader flex-grow">分类名称</div> <div class="tableHeader flex-grow">分类名称</div>
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
style="border-bottom: 1px solid #f0f1f5" style="border-bottom: 1px solid #f0f1f5"
> >
<img <img
src="@/assets/img/move.svg" src="@/assets/img/move-dot.png"
class="mr-2 cursor-move" class="mr-2 h-3 cursor-move"
alt="" alt=""
srcset="" srcset=""
/> />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment