feat:update popconfirm icon

This commit is contained in:
cydiacen 2020-04-02 12:01:54 +08:00
parent c5e71f3c63
commit 108447e801

View File

@ -5,7 +5,7 @@ import PropTypes from '../_util/vue-types';
import { getOptionProps, hasProp, getComponentFromProp, mergeProps } from '../_util/props-util';
import BaseMixin from '../_util/BaseMixin';
import buttonTypes from '../button/buttonTypes';
import Icon from '../icon';
import ExclamationCircleFilled from '@ant-design/icons-vue/ExclamationCircleFilled';
import Button from '../button';
import LocaleReceiver from '../locale-provider/LocaleReceiver';
import defaultLocale from '../locale-provider/default';
@ -86,7 +86,7 @@ const Popconfirm = {
renderOverlay(prefixCls, popconfirmLocale) {
const { okType, okButtonProps, cancelButtonProps } = this;
const icon = getComponentFromProp(this, 'icon') || (
<Icon type="exclamation-circle" theme="filled" />
<ExclamationCircleFilled/>
);
const cancelBtnProps = mergeProps(
{