Skip to content

Commit 30829e8

Browse files
committed
fix components name
1 parent f100f0d commit 30829e8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+317
-209
lines changed

components/affix/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const AffixProps = {
5757
}
5858

5959
export default {
60-
name: 'Affix',
60+
name: 'AAffix',
6161
props: AffixProps,
6262
mixins: [BaseMixin],
6363
data () {

components/alert/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const AlertProps = {
3333
export default {
3434
props: AlertProps,
3535
mixins: [BaseMixin],
36-
name: 'Alert',
36+
name: 'AAlert',
3737
data () {
3838
return {
3939
closing: true,

components/auto-complete/index.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const AutoCompleteProps = {
3232
}
3333

3434
export default {
35+
name: 'AAutoComplete',
3536
props: {
3637
...AutoCompleteProps,
3738
prefixCls: PropTypes.string.def('ant-select'),
@@ -45,8 +46,8 @@ export default {
4546
]).def(false),
4647
defaultActiveFirstOption: PropTypes.bool.def(true),
4748
},
48-
Option,
49-
OptGroup,
49+
Option: { ...Option, name: 'AAutoCompleteOption' },
50+
OptGroup: { ...OptGroup, name: 'AAutoCompleteOptGroup' },
5051
model: {
5152
prop: 'value',
5253
event: 'change',

components/avatar/Avatar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import Icon from '../icon'
33

44
export default {
5-
name: 'Avatar',
5+
name: 'AAvatar',
66
props: {
77
prefixCls: {
88
type: String,

components/back-top/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const BackTopProps = {
3030
}
3131

3232
export default {
33-
name: 'BackTop',
33+
name: 'ABackTop',
3434
mixins: [BaseMixin],
3535
props: {
3636
...BackTopProps,

components/badge/Badge.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const BadgeProps = {
2222
}
2323

2424
export default {
25+
name: 'ABadge',
2526
props: initDefaultProps(BadgeProps, {
2627
prefixCls: 'ant-badge',
2728
scrollNumberPrefixCls: 'ant-scroll-number',

components/breadcrumb/Breadcrumb.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ function getBreadcrumbName (route, params) {
3131
}
3232

3333
export default {
34+
name: 'ABreadcrumb',
3435
props: BreadcrumbProps,
3536
methods: {
3637
defaultItemRender ({ route, params, routes, paths }) {

components/breadcrumb/BreadcrumbItem.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PropTypes from '../_util/vue-types'
33
import { hasProp, getComponentFromProp } from '../_util/props-util'
44

55
export default {
6-
name: 'BreadcrumbItem',
6+
name: 'ABreadcrumbItem',
77
__ANT_BREADCRUMB_ITEM: true,
88
props: {
99
prefixCls: PropTypes.string.def('ant-breadcrumb'),

components/button/button-group.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const ButtonGroupProps = {
1313
}
1414
export { ButtonGroupProps }
1515
export default {
16-
name: 'ButtonGroup',
16+
name: 'AButtonGroup',
1717
props: ButtonGroupProps,
1818
data () {
1919
return {

components/button/button.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar)
55
import buttonTypes from './buttonTypes'
66
const props = buttonTypes()
77
export default {
8-
name: 'Button',
8+
name: 'AButton',
99
__ANT_BUTTON: true,
1010
props: {
1111
...props,

0 commit comments

Comments
 (0)