develoop
于鹏飞 5 months ago
parent 3812ab0328
commit 5a1e2b52d3
  1. 27
      src/views/MyCourseStudy/ContainerKno.vue

@ -26,19 +26,7 @@
</div>
</div>
</div>
<div class="Knowledge_point">
<ul>
<li v-for="(item, index) in 6" :key="index">
知识点知识点知识点{{ item }}
<span class="btn">×</span>
&nbsp;
</li>
</ul>
</div>
</div>
</div>
</div>
</el-tab-pane>
</el-tab-pane>
</template>
<script setup>
import {ref,reactive} from 'vue'
@ -51,13 +39,18 @@ this.classList.toggle('noUpd')
}
const arr = reactive([])
const a =[
{
id:1,
name:"操作系统",
num:1,
zjname:'操作系统引论',
zsd:[
"sadas",
"asdadsad",
"asdasdas",
]
},
{
id:2,
@ -78,12 +71,14 @@ const a =[
arr.length=0
arr.push(...a)
const ShowDel = ref(false)
function XsDel(id){
const item = arr.find(o=>o.a.id==id)
item.ShowDel = !item.ShowDel
}
</script>
<style lang="scss" scoped>
.btn{
@ -132,7 +127,7 @@ function XsDel(id){
justify-content: space-around;
}
.KnoBtn > img {
.KnoBtn>img {
padding-top: 20px;
cursor: pointer;
}
@ -160,7 +155,7 @@ function XsDel(id){
flex-direction: column;
}
.Knowledge_point > ul > li {
.Knowledge_point>ul>li {
display: inline-block;
margin-top: 3px;
margin-bottom: 3px;

Loading…
Cancel
Save