cione-comp-lib
Version:
`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`
39 lines (38 loc) • 712 B
JavaScript
import { defineComponent, toRefs, h } from "vue";
const _sfc_main = defineComponent({
name: "CoIframeStd",
props: {
src: {
type: String,
required: true
},
width: {
type: String
},
height: {
type: String
}
},
setup(props) {
return {
...toRefs(props)
};
},
render() {
return h("iframe", {
frameborder: "0",
scrolling: "no",
marginheight: "0",
marginwidth: "0",
allowTransparency: "true",
width: this.width || "100%",
height: this.height || "100%",
src: this.src,
class: "co-iframe-std",
style: {
margin: "-2px"
}
});
}
});
export { _sfc_main as default };