1.0.10 • Published 5 years ago

vue-lm-iframe v1.0.10

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

vue-lm-iframe


拖拽iframe

组件特点 :iframe弹窗,支持拖拽操作

安装与基本用法

$ npm install  --save  vue-lm-iframe

全局注册方式

import Vue from 'vue'
import VueLmIframe from 'vue-lm-iframe'
Vue.component('vue-lm-iframe', VueLmIframe)

你现在就可以使用该组件了(示例代码)

<template>
  <div id="app">
    <Vue-Lm-Iframe
      v-if="iframeVisible"
      @closeIframeData="iframeVisible = false"
      :iframeUrl="newUrl"
      @listenChildEvent="setFormData"
    ></Vue-Lm-Iframe>
  </div>
</template>

<script>
import VueLmIframe from 'vue-lm-iframe'
export default {
  name: 'app',
  components:{
    VueLmIframe
  },
  data () {
    return {
      iframeVisible: false,
      newUrl:''
    }
  },
  methods:{
	setFormData(Data) {
	     //组件传回来的数据 
    }
 }
}
</script>

props 说明:

iframeUrl : 产品url

方法说明:

@listenChildEvent : 组件回传的参数

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago