We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9115f40 commit a794f36Copy full SHA for a794f36
lib/index.js
@@ -1,5 +1,5 @@
1
/*!
2
- * light-vue-tree v0.1.1
+ * light-vue-tree v1.0.1
3
* open source under the MIT license
4
*/
5
@@ -1214,15 +1214,17 @@
1214
name: 'virtual-list-slot',
1215
mixins: [Wrapper],
1216
props: SlotProps,
1217
- render: function render(h) {
+ render: function render() {
1218
+ var h = arguments[0];
1219
var tag = this.tag,
1220
uniqueKey = this.uniqueKey;
- return h(tag, {
1221
- key: uniqueKey,
1222
- attrs: {
1223
- role: uniqueKey
+ var Wrapper = tag || 'div';
+ return h(Wrapper, {
+ "key": uniqueKey,
1224
+ "attrs": {
1225
+ "role": uniqueKey
1226
}
- }, this.$slots.default);
1227
+ }, [this.$slots.default]);
1228
1229
};
1230
0 commit comments