-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat: update pageheader #2365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: update pageheader #2365
Conversation
import PropTypes from '../_util/vue-types'; | ||
import { getComponentFromProp, getOptionProps } from '../_util/props-util'; | ||
import { getComponent, getOptionProps } from '../_util/props-util'; | ||
import { ConfigConsumerProps } from '../config-provider'; | ||
import ArrowLeftOutlined from '@ant-design/icons-vue/ArrowLeftOutlined'; | ||
import Breadcrumb from '../breadcrumb'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不知道为啥报一个 breadcrumb 相关的错
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./components/breadcrumb/Breadcrumb.jsx
Cannot read property 'includes' of undefined
一直报这个错 @tangjinzhou
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
因为有 <Xxx.Xxx /> 的使用方式 @Amour1688 插件不支持
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
插件 bug,本周发版修复
components/page-header/index.jsx
Outdated
}, | ||
render(h) { | ||
const { getPrefixCls, pageHeader } = this.configProvider; | ||
const props = getOptionProps(this); | ||
const { prefixCls: customizePrefixCls, breadcrumb } = props; | ||
const footer = getComponentFromProp(this, 'footer'); | ||
const footer = getComponent(this, 'footer'); | ||
const children = this.$slots.default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.$slots.default && this.$slots.default()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry forget
getComponentFromProp(instance, 'backIcon') !== undefined ? ( | ||
getComponentFromProp(instance, 'backIcon') | ||
getComponent(instance, 'backIcon') !== undefined ? ( | ||
getComponent(instance, 'backIcon') | ||
) : ( | ||
<ArrowLeftOutlined /> | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const onBack = instance.$listeners.back;
to
const onBack = instance.$attrs.onBack;
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
First of all, thank you for your contribution! 😄
New feature please send pull request to feature branch, and rest to master branch. Pull request will be merged after one of collaborators approve. Please makes sure that these form are filled before submitting your pull request, thank you!
[中文版模板 / Chinese template]
This is a ...
What's the background?
API Realization (Optional if not new feature)
What's the effect? (Optional if not new feature)
Changelog description (Optional if not new feature)
Self Check before Merge
Additional Plan? (Optional if not new feature)