mobile-more
Version:
基于 antd-mobile v5 扩展移动端 UI 组件
32 lines (29 loc) • 1.16 kB
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
var _excluded = ["className", "centered", "children"];
import React from 'react';
import classNames from 'classnames';
import { prefixClass } from "../../config";
import "./index.css";
var prefixCls = "".concat(prefixClass, "-tiptext");
var BizTipText = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
var className = _ref.className,
centered = _ref.centered,
children = _ref.children,
restProps = _objectWithoutProperties(_ref, _excluded);
return /*#__PURE__*/React.createElement("div", _extends({
className: classNames(prefixCls, _defineProperty({}, "".concat(prefixCls, "-centered"), centered), className)
}, restProps, {
ref: ref
}), children);
});
BizTipText.displayName = 'BizTipText';
/**
* @deprecated 即将废弃,请使用 `BizTipText` 替代。
*/
export var TipText = BizTipText;
/**
* @deprecated 即将废弃,请使用 `BizTipTextProps` 替代。
*/
export default BizTipText;