Commit 381751c5d3bce7e7a628ff74a663aff4ab46b0fd
Committed by
GitHub
Merge pull request #85 from jingsam/fix-modal
fixed modal
Showing
4 changed files
with
7 additions
and
5 deletions
Show diff stats
build/webpack.dist.dev.config.js
build/webpack.dist.prod.config.js
test/routers/more.vue
test/routers/tag.vue
... | ... | @@ -42,7 +42,7 @@ |
42 | 42 | </Modal> |
43 | 43 | </template> |
44 | 44 | <script> |
45 | - import { Tag, Modal, iButton } from 'iview'; | |
45 | + import { Tag, Modal, iButton } from '../../dist/iview.js'; | |
46 | 46 | export default { |
47 | 47 | components: { Tag, Modal, iButton }, |
48 | 48 | data () { |
... | ... | @@ -53,7 +53,9 @@ |
53 | 53 | }, |
54 | 54 | methods: { |
55 | 55 | ok () { |
56 | - | |
56 | + setTimeout(() => { | |
57 | + this.modal1 = false; | |
58 | + }, 2000); | |
57 | 59 | } |
58 | 60 | } |
59 | 61 | } | ... | ... |