oadp-material
Version:
oadp-material
24 lines • 827 B
JavaScript
import _Box from "@alifd/next/es/box";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["name", "src", "page", "style"];
import * as React from 'react';
import "./index.scss";
var OadpIframe = function OadpIframe(_ref) {
var name = _ref.name,
src = _ref.src,
page = _ref.page,
style = _ref.style,
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
if (page) {
src = 'http://localhost:5556/preview.html?pageId=' + page + '&scenarioName=11eda2938d9ef330b49bf7f609a49999';
}
return /*#__PURE__*/React.createElement(_Box, otherProps, /*#__PURE__*/React.createElement("iframe", {
name: name || '',
style: style || {
width: '100%',
height: '500px'
},
src: src || ''
}));
};
export default OadpIframe;