|
3 년 전 | |
---|---|---|
examples | 3 년 전 | |
packages | 3 년 전 | |
public | 3 년 전 | |
.browserslistrc | 3 년 전 | |
.editorconfig | 3 년 전 | |
.eslintignore | 3 년 전 | |
.eslintrc.js | 3 년 전 | |
.gitignore | 3 년 전 | |
README.md | 3 년 전 | |
babel.config.js | 3 년 전 | |
jsconfig.json | 3 년 전 | |
package.json | 3 년 전 | |
vue.config.js | 3 년 전 | |
yarn.lock | 3 년 전 |
剑鱼Iframe支撑组件,提供vue组件加载 iframe,umd iframe通信内部扩展
yarn add @jianyu/easy-inject-iframe
# examples/App.vue
<jy-iframe-page-layout class="iframe-test" src="https://jybx-webtest.jydev.jianyu360.com/big/page/index" debug>
<template v-slot:loading>加载中... 自定义加载动画</template>
</jy-iframe-page-layout>
import JianyuIframe from '@jianyu/easy-inject-iframe'
Vue.use(JianyuIframe)
import { JyIframePageLayout } from '@jianyu/easy-inject-iframe'
<script src='/JianyuIframe.umd.min.js'></script>
<script>
new JianyuIframe.easyInjectIframePage({
debug: true
})
</script>
yarn install
yarn serve
yarn build
yarn lint