8000 Update card-img-lazy.js · bootstrap-vue/bootstrap-vue@cef708c · GitHub
[go: up one dir, main page]

Skip to content

Commit cef708c

Browse files
committed
Update card-img-lazy.js
1 parent ca454ce commit cef708c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/card/card-img-lazy.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import { Vue, mergeData } from '../../vue'
22
import { NAME_CARD_IMG_LAZY } from '../../constants/components'
3-
import { omit, sortKeys } from '../../utils/object'
3+
import { keys, omit, sortKeys } from '../../utils/object'
44
import { makePropsConfigurable } from '../../utils/props'
5+
import { props as BImgProps } from '../image/img'
56
import { BImgLazy, props as BImgLazyProps } from '../image/img-lazy'
67
import { props as BCardImgProps } from './card-img'
78

89
// --- Props ---
910

1011
export const props = makePropsConfigurable(
1112
sortKeys({
12-
...omit(BImgLazyProps, ['center', 'block', 'rounded', 'thumbnail', 'fluid', 'fluidGrow']),
13+
...omit(BImgLazyProps, keys(BImgProps)),
1314
...omit(BCardImgProps, ['src', 'alt', 'width', 'height'])
1415
}),
1516
NAME_CARD_IMG_LAZY

0 commit comments

Comments
 (0)
0