Skip to content

Commit de28487

Browse files
committed
refactor: add missing slots override logic in plugin install API
1 parent 2d12d9a commit de28487

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Object.defineProperty(InfiniteLoading, 'install', {
1212
// override default props
1313
Object.assign(config.props, options && options.props);
1414

15+
// override default slots
16+
Object.assign(config.slots, options && options.slots);
17+
1518
// override default system settings
1619
Object.assign(config.system, options && options.system);
1720

0 commit comments

Comments
 (0)