This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usando exprecoes regulares para validacoa de text | |
import re | |
""" | |
Resolucao dos Exercicios da Pagina 06 | |
Cadeias de Caractres - Strings | |
""" | |
# EXPRESSOES REGULARES COMPILADAS COMPILADAS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style lang="sass" scoped> | |
/** | |
* Vue will generate this class name for us | |
* based on our transition name | |
*/ | |
.fade-enter | |
opacity: 0 | |
/** | |
* this is the transition style that will be applied | |
* when the popup appears and when it disappears |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
export default { | |
data () { | |
return { | |
show: false | |
} | |
}, | |
methods: { | |
remove ( e ) { | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id="main"> | |
<div class="main-c"> | |
<h1>Click the button below to see the popup</h1> | |
<button @click="show = true">Open</button> | |
</div> | |
<!-- let's name our transition to differentiate it from other --> | |
<transition name="fade"> | |
<!-- popup, black area --> | |
<div id="popup" ref="popup" v-show="show" @click="remove($event)"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id="main"> | |
<div class="main-c"> | |
<h1>Click the button below to see the popup</h1> | |
<button @click="show = true">Open</button> | |
</div> | |
<!-- let's name our transition to differentiate it from other --> | |
<transition name="fade"> | |
<!-- popup, black area --> | |
<div id="popup" ref="popup" v-show="show" @click="remove($event)"> |