@uiw/react-empty
Advanced tools
Comparing version 4.21.19 to 4.21.20
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -9,25 +8,19 @@ value: true | ||
exports["default"] = void 0; | ||
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2")); | ||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _jsxRuntime = require("react/jsx-runtime"); | ||
var _excluded = ["prefixCls", "className", "icon", "iconProps", "size", "description", "children"]; | ||
var Empty = function Empty(props) { | ||
var _props$prefixCls = props.prefixCls, | ||
prefixCls = _props$prefixCls === void 0 ? 'w-empty' : _props$prefixCls, | ||
className = props.className, | ||
icon = props.icon, | ||
iconProps = props.iconProps, | ||
_props$size = props.size, | ||
size = _props$size === void 0 ? 64 : _props$size, | ||
_props$description = props.description, | ||
description = _props$description === void 0 ? '暂无数据' : _props$description, | ||
children = props.children, | ||
other = (0, _objectWithoutProperties2["default"])(props, _excluded); | ||
prefixCls = _props$prefixCls === void 0 ? 'w-empty' : _props$prefixCls, | ||
className = props.className, | ||
icon = props.icon, | ||
iconProps = props.iconProps, | ||
_props$size = props.size, | ||
size = _props$size === void 0 ? 64 : _props$size, | ||
_props$description = props.description, | ||
description = _props$description === void 0 ? '暂无数据' : _props$description, | ||
children = props.children, | ||
other = (0, _objectWithoutProperties2["default"])(props, _excluded); | ||
var cls = [prefixCls, className].filter(Boolean).join(' ').trim(); | ||
@@ -70,3 +63,2 @@ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _objectSpread2["default"])((0, _objectSpread2["default"])({ | ||
}; | ||
var _default = Empty; | ||
@@ -73,0 +65,0 @@ exports["default"] = _default; |
@@ -8,15 +8,13 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
import { jsxs as _jsxs } from "react/jsx-runtime"; | ||
var Empty = props => { | ||
var { | ||
prefixCls = 'w-empty', | ||
className, | ||
icon, | ||
iconProps, | ||
size = 64, | ||
description = '暂无数据', | ||
children | ||
} = props, | ||
other = _objectWithoutPropertiesLoose(props, _excluded); | ||
prefixCls = 'w-empty', | ||
className, | ||
icon, | ||
iconProps, | ||
size = 64, | ||
description = '暂无数据', | ||
children | ||
} = props, | ||
other = _objectWithoutPropertiesLoose(props, _excluded); | ||
var cls = [prefixCls, className].filter(Boolean).join(' ').trim(); | ||
@@ -59,4 +57,3 @@ return /*#__PURE__*/_jsxs("div", _extends({ | ||
}; | ||
export default Empty; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@uiw/react-empty", | ||
"version": "4.21.19", | ||
"version": "4.21.20", | ||
"description": "Empty component", | ||
@@ -5,0 +5,0 @@ "author": "Kenny Wong <wowohoo@qq.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20880