@orca-fe/pocket
Version:
UI components by orca-team
30 lines (29 loc) • 844 B
JavaScript
var _window$publicPath;
/**
* title: Default usage
* desc:
*
* title.zh-CN: 基础用法
* desc.zh-CN:
*/
import React from 'react';
import { Img } from "../..";
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
var imgSrc = `${(_window$publicPath = window['publicPath']) !== null && _window$publicPath !== void 0 ? _window$publicPath : '/'}tmp.jpg`;
var Demo = () => /*#__PURE__*/_jsxs("div", {
children: [/*#__PURE__*/_jsx("div", {
children: "\u8BBE\u7F6E\u5BBD\u5EA6\u4E3A50\uFF1A"
}), /*#__PURE__*/_jsx(Img, {
src: imgSrc,
style: {
width: 50
}
}), /*#__PURE__*/_jsx("div", {
children: "\u4E0D\u8BBE\u7F6E\u5BBD\u5EA6\uFF0C\u9ED8\u8BA4\u5927\u5C0F\uFF1A"
}), /*#__PURE__*/_jsx(Img, {
src: imgSrc,
stretch: false
})]
});
export default Demo;