UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

14 lines (13 loc) • 403 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hasPrefixSuffix = hasPrefixSuffix; var _is = require("../_util/is"); function hasPrefixSuffix(props) { const { allowClear } = props; const clearEnabled = (0, _is.isPlainObject)(allowClear) ? !allowClear.disabled : allowClear; return !!(props.prefix || props.suffix || clearEnabled || props.showCount); }