perf: remove event warning
parent
bb39dc31f5
commit
758937bd7c
|
@ -1 +1 @@
|
|||
Subproject commit 14ab398a9ab7db3507776aa9905afe5b4811be21
|
||||
Subproject commit ea1f79e54d2bcd38bfd8fb60cc9d2954c2c3d467
|
|
@ -2,13 +2,17 @@
|
|||
|
||||
exports[`Popconfirm should show overlay when trigger is clicked 1`] = `
|
||||
<div class="ant-popover-content">
|
||||
<div class="ant-popover-arrow"></div>
|
||||
<div role="tooltip" class="ant-popover-inner">
|
||||
<div class="ant-popover-arrow">
|
||||
<!---->
|
||||
</div>
|
||||
<div class="ant-popover-inner" role="tooltip">
|
||||
<div class="ant-popover-inner-content">
|
||||
<div class="ant-popover-message"><span role="img" aria-label="exclamation-circle" class="anticon anticon-exclamation-circle"><svg viewBox="64 64 896 896" focusable="false" data-icon="exclamation-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" class=""><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"></path></svg></span>
|
||||
<div class="ant-popover-message"><span role="img" aria-label="exclamation-circle" class="anticon anticon-exclamation-circle"><svg class="" data-icon="exclamation-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"></path></svg></span>
|
||||
<div class="ant-popover-message-title">code</div>
|
||||
</div>
|
||||
<div class="ant-popover-buttons"><button type="button" class="ant-btn ant-btn-sm"><span>Cancel</span></button><button type="button" class="ant-btn ant-btn-primary ant-btn-sm"><span>OK</span></button></div>
|
||||
<div class="ant-popover-buttons"><button class="ant-btn ant-btn-sm" type="button">
|
||||
<!----><span>Cancel</span></button><button class="ant-btn ant-btn-primary ant-btn-sm" type="button">
|
||||
<!----><span>OK</span></button></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -33,7 +33,7 @@ describe('Popconfirm', () => {
|
|||
);
|
||||
let triggerNode = null;
|
||||
await asyncExpect(() => {
|
||||
triggerNode = wrapper.findAll('span').at(0);
|
||||
triggerNode = wrapper.findAll('span')[0];
|
||||
triggerNode.trigger('click');
|
||||
});
|
||||
await asyncExpect(() => {
|
||||
|
|
|
@ -33,6 +33,7 @@ const Popconfirm = {
|
|||
onConfirm: PropTypes.func,
|
||||
onCancel: PropTypes.func,
|
||||
onVisibleChange: PropTypes.func,
|
||||
'onUpdate:visible': PropTypes.func,
|
||||
},
|
||||
mixins: [BaseMixin],
|
||||
watch: {
|
||||
|
@ -123,7 +124,13 @@ const Popconfirm = {
|
|||
const getPrefixCls = this.configProvider.getPrefixCls;
|
||||
const prefixCls = getPrefixCls('popover', customizePrefixCls);
|
||||
|
||||
const otherProps = omit(props, ['title', 'content', 'cancelText', 'okText']);
|
||||
const otherProps = omit(props, [
|
||||
'title',
|
||||
'content',
|
||||
'cancelText',
|
||||
'okText',
|
||||
'onUpdate:visible',
|
||||
]);
|
||||
const overlay = (
|
||||
<LocaleReceiver
|
||||
componentName="Popconfirm"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import demo from '../antdv-demo/docs/page-header/demo/index';
|
||||
import demo from '../antdv-demo/docs/popconfirm/demo/index';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
Loading…
Reference in New Issue