Commit 6f3403801a2bbb0456b1fd391ad6ea492279f150
1 parent
6700f596
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 | } | ... | ... |