vue模态弹出框组件
#vue-model
props:model for vue.
props: {
className: {
type: String,
default: ''
}
},
usage:
install:
npm install smalleast/vue-model --save code:
import Model from '../components/model.vue' export default { data() { return {}; }, props: {}, created(){ }, methods: { _click1(){ this.$refs.model1.open(); } }, components: {Model} };
+template
<template>
<aside class="dev">
<button class="button" v-on:click="_click1()">model middle</button>
<Model ref="model1">
<div slot="header">this is title</div>
<table id="tml" class="table">
<tr>
<td>111111</td>
<td>222222</td>
</tr>
<tr>
<td>111111</td>
<td>222222</td>
</tr>
<tr>
<td>111111</td>
<td>222222</td>
</tr>
</table>
<div slot="footer">this is footer</div>
</Model>
</aside>
</template>
resource:
http://www.cnblogs.com/Kummy/p/4966937.html
https://github.com/steven5538/vue-button
https://yarnpkg.com/en/docs/install
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。