Skip to content

Commit 37d2ff6

Browse files
committed
chore: update package
1 parent c55b844 commit 37d2ff6

File tree

8 files changed

+168
-179
lines changed

8 files changed

+168
-179
lines changed

β€Žpackage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@ant-design-vue/pro-layout": "^1.0.8",
1515
"@antv/data-set": "^0.10.2",
1616
"ant-design-vue": "^1.7.6",
17-
"axios": "^0.19.0",
17+
"axios": ">=0.21.1",
1818
"core-js": "^3.1.2",
1919
"enquire.js": "^2.1.6",
2020
"lodash.clonedeep": "^4.5.0",
@@ -31,7 +31,7 @@
3131
"vue-cropper": "0.4.9",
3232
"vue-i18n": "^8.17.4",
3333
"vue-quill-editor": "^3.0.6",
34-
"vue-router": "^3.1.2",
34+
"vue-router": "^3.5.2",
3535
"vue-svg-component-runtime": "^1.0.1",
3636
"vuex": "^3.1.1",
3737
"wangeditor": "^3.1.1"

β€Žpublic/logo.png

-10.8 KB
Loading

β€Žsrc/assets/logo.png

-19.8 KB
Binary file not shown.

β€Žsrc/components/AvatarList/Item.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { getSlotOptions } from 'ant-design-vue/lib/_util/props-util'
44
import { warning } from 'ant-design-vue/lib/vc-util/warning'
55

66
export const AvatarListItemProps = {
7-
tips: PropTypes.string.def(null),
7+
tips: PropTypes.string,
88
src: PropTypes.string.def('')
99
}
1010

@@ -16,8 +16,9 @@ const Item = {
1616
warning(getSlotOptions(this.$parent).__ANT_AVATAR_LIST, 'AvatarListItem must be a subcomponent of AvatarList')
1717
},
1818
render () {
19-
const AvatarDom = <Avatar size={this.$parent.size === 'mini' ? 'small' : this.$parent.size} src={this.src} />
20-
return this.tips && <Tooltip title={this.tips}>{AvatarDom}</Tooltip> || <AvatarDom />
19+
const size = this.$parent.size === 'mini' ? 'small' : this.$parent.size
20+
const AvatarDom = <Avatar size={size || 'small'} src={this.src} />
21+
return (this.tips && <Tooltip title={this.tips}>{AvatarDom}</Tooltip>) || <AvatarDom />
2122
}
2223
}
2324

0 commit comments

Comments
Β (0)