UNPKG

mobile-more

Version:

基于 antd-mobile v5 扩展移动端 UI 组件

26 lines 1.11 kB
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; 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", _objectSpread(_objectSpread({ className: classNames(prefixCls, _defineProperty({}, "".concat(prefixCls, "-centered"), centered), className) }, restProps), {}, { ref: ref }), children); }); BizTipText.displayName = 'BizTipText'; /** * @deprecated 即将废弃,请使用 `BizTipText` 替代。 */ export var TipText = BizTipText; export default BizTipText;