Home > front end >  [VUE elemnt UI], and to ask el - the drawer, drawer open is why?
[VUE elemnt UI], and to ask el - the drawer, drawer open is why?

Time:10-17

Consult, in according to the example I use drawer, originally is one click to open, but is directly open interface,
I see the visible initial value is false,
Mystery,




Source:



<script>
//@ is an alias to/SRC

Export the default {
Name: 'main',
Data () {
Return {
Visible, false,
};
},
Methods: {
HandleClose (done) {
Done ()
}
}
}
</script>
<style>
. El - the header {
color: #333;
Padding: 0! important;
Height: 50 px! important;
Background: antiquewhite;
}

. El - the main {
height: 100%;
Padding: 0! important;
overflow: hidden;
Position: relative;
}
</style>

CodePudding user response:

Style not introduced completely,,, you introduce the element of the CSS file to try again

CodePudding user response:

If no global introduce element - the UI
Code change and normal open so

 

<script>
//@ is an alias to/SRC

Export the default {
Data () {
Return {
Visible, false,
};
},
Methods: {
HandleClose (done) {
Done ()
}
}
}
</script>
  • Related