Skip to content

Commit a794f36

Browse files
committed
feat: update lib
1 parent 9115f40 commit a794f36

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

lib/index.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* light-vue-tree v0.1.1
2+
* light-vue-tree v1.0.1
33
* open source under the MIT license
44
*/
55

@@ -1214,15 +1214,17 @@
12141214
name: 'virtual-list-slot',
12151215
mixins: [Wrapper],
12161216
props: SlotProps,
1217-
render: function render(h) {
1217+
render: function render() {
1218+
var h = arguments[0];
12181219
var tag = this.tag,
12191220
uniqueKey = this.uniqueKey;
1220-
return h(tag, {
1221-
key: uniqueKey,
1222-
attrs: {
1223-
role: uniqueKey
1221+
var Wrapper = tag || 'div';
1222+
return h(Wrapper, {
1223+
"key": uniqueKey,
1224+
"attrs": {
1225+
"role": uniqueKey
12241226
}
1225-
}, this.$slots.default);
1227+
}, [this.$slots.default]);
12261228
}
12271229
};
12281230

0 commit comments

Comments
 (0)