UNPKG

@alifd/meet-react

Version:

Fusion Mobile React UI System Component

18 lines 1 kB
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } import { __rest } from "tslib"; import classNames from 'classnames'; import React, { createElement, forwardRef } from "react"; import View from '../view'; var List = function List(props, ref) { var children = props.children, _props$prefix = props.prefix, prefix = _props$prefix === void 0 ? 'mt-' : _props$prefix, className = props.className, others = __rest(props, ["children", "prefix", "className"]); return /*#__PURE__*/React.createElement(View, _extends({}, others, { ref: ref, className: classNames("".concat(prefix, "list"), className) }), children); }; List.displayName = 'List'; export default /*#__PURE__*/forwardRef(List);