mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 05:29:01 +08:00
feat:update popconfirm icon
This commit is contained in:
parent
c5e71f3c63
commit
108447e801
@ -5,7 +5,7 @@ import PropTypes from '../_util/vue-types';
|
|||||||
import { getOptionProps, hasProp, getComponentFromProp, mergeProps } from '../_util/props-util';
|
import { getOptionProps, hasProp, getComponentFromProp, mergeProps } from '../_util/props-util';
|
||||||
import BaseMixin from '../_util/BaseMixin';
|
import BaseMixin from '../_util/BaseMixin';
|
||||||
import buttonTypes from '../button/buttonTypes';
|
import buttonTypes from '../button/buttonTypes';
|
||||||
import Icon from '../icon';
|
import ExclamationCircleFilled from '@ant-design/icons-vue/ExclamationCircleFilled';
|
||||||
import Button from '../button';
|
import Button from '../button';
|
||||||
import LocaleReceiver from '../locale-provider/LocaleReceiver';
|
import LocaleReceiver from '../locale-provider/LocaleReceiver';
|
||||||
import defaultLocale from '../locale-provider/default';
|
import defaultLocale from '../locale-provider/default';
|
||||||
@ -86,7 +86,7 @@ const Popconfirm = {
|
|||||||
renderOverlay(prefixCls, popconfirmLocale) {
|
renderOverlay(prefixCls, popconfirmLocale) {
|
||||||
const { okType, okButtonProps, cancelButtonProps } = this;
|
const { okType, okButtonProps, cancelButtonProps } = this;
|
||||||
const icon = getComponentFromProp(this, 'icon') || (
|
const icon = getComponentFromProp(this, 'icon') || (
|
||||||
<Icon type="exclamation-circle" theme="filled" />
|
<ExclamationCircleFilled/>
|
||||||
);
|
);
|
||||||
const cancelBtnProps = mergeProps(
|
const cancelBtnProps = mergeProps(
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user