Commit b75bdec3 authored by liang's avatar liang

..

parent 02bc2e76
......@@ -4,10 +4,10 @@
<h3 class="side_title">通知公告</h3>
<ul class="side-list">
<li
:class="noticeName === name ? 'active' : ''"
:class="currentComponent === name ? 'active' : ''"
v-for="{ isTop, time, name, label } in list"
:key="name"
@click="noticeName = name"
@click="currentComponent = name"
>
<h4>{{ label }}</h4>
<div>
......@@ -38,7 +38,6 @@ export default {
HospitalsList,
},
data() {
console.log(this)
return {
list: [
{
......@@ -54,11 +53,16 @@ export default {
isTop: true,
},
],
currentComponent: this.$props.noticeName,
}
},
methods: {},
mounted() {},
watch: {},
watch: {
noticeName(val) {
this.currentComponent = val
},
},
}
</script>
<style lang="scss" scoped>
......
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