Merge pull request #85 from jingsam/fix-modal

fixed modal
This commit is contained in:
Aresn 2016-11-16 20:43:46 +08:00 committed by GitHub
commit 381751c5d3
4 changed files with 7 additions and 5 deletions

View file

@ -14,7 +14,7 @@ module.exports = {
umdNamedDefine: true
},
externals: {
'vue': 'Vue'
'vue': 'vue'
},
resolve: {
extensions: ['', '.js', '.vue']

View file

@ -14,7 +14,7 @@ module.exports = {
umdNamedDefine: true
},
externals: {
'vue': 'Vue'
'vue': 'vue'
},
resolve: {
extensions: ['', '.js', '.vue']

View file

@ -37,7 +37,7 @@
</Timeline>
<br><br>
<Affix :offset-top="50" @on-change="affixChange">
<Button>固定的图钉</Button>
<i-button>固定的图钉</i-button>
</Affix>
<Back-top @on-click="backtop">

View file

@ -42,7 +42,7 @@
</Modal>
</template>
<script>
import { Tag, Modal, iButton } from 'iview';
import { Tag, Modal, iButton } from '../../dist/iview.js';
export default {
components: { Tag, Modal, iButton },
data () {
@ -53,7 +53,9 @@
},
methods: {
ok () {
setTimeout(() => {
this.modal1 = false;
}, 2000);
}
}
}