Skip to content

Commit 596d3d8

Browse files
author
Guillaume Chau
committed
Version bump
1 parent 3596071 commit 596d3d8

File tree

4 files changed

+60
-54
lines changed

4 files changed

+60
-54
lines changed

dist/vue-virtual-scroller.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-virtual-scroller.esm.js

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ var ResizeObserver = { render: function render() {
6969
var object = document.createElement('object');
7070
this._resizeObject = object;
7171
object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;');
72+
object.setAttribute('aria-hidden', 'true');
7273
object.onload = this.addResizeHandlers;
7374
object.type = 'text/html';
7475
if (isIE) {
@@ -94,21 +95,21 @@ function install(Vue) {
9495
/* You shouldn't have to modify the code below */
9596

9697
// Plugin
97-
var plugin$2 = {
98+
var plugin = {
9899
// eslint-disable-next-line no-undef
99-
version: "0.4.2",
100+
version: "0.4.3",
100101
install: install
101102
};
102103

103104
// Auto-install
104-
var GlobalVue$1 = null;
105+
var GlobalVue = null;
105106
if (typeof window !== 'undefined') {
106-
GlobalVue$1 = window.Vue;
107+
GlobalVue = window.Vue;
107108
} else if (typeof global !== 'undefined') {
108-
GlobalVue$1 = global.Vue;
109+
GlobalVue = global.Vue;
109110
}
110-
if (GlobalVue$1) {
111-
GlobalVue$1.use(plugin$2);
111+
if (GlobalVue) {
112+
GlobalVue.use(plugin);
112113
}
113114

114115
function throwValueError(value) {
@@ -163,30 +164,32 @@ function install$1(Vue) {
163164
/* You shouldn't have to modify the code below */
164165

165166
// Plugin
166-
var plugin$4 = {
167+
var plugin$2 = {
167168
// eslint-disable-next-line no-undef
168169
version: "0.3.1",
169170
install: install$1
170171
};
171172

172173
// Auto-install
173-
var GlobalVue$2 = null;
174+
var GlobalVue$1 = null;
174175
if (typeof window !== 'undefined') {
175-
GlobalVue$2 = window.Vue;
176+
GlobalVue$1 = window.Vue;
176177
} else if (typeof global !== 'undefined') {
177-
GlobalVue$2 = global.Vue;
178+
GlobalVue$1 = global.Vue;
178179
}
179-
if (GlobalVue$2) {
180-
GlobalVue$2.use(plugin$4);
180+
if (GlobalVue$1) {
181+
GlobalVue$1.use(plugin$2);
181182
}
182183

183184
var VirtualScroller = { render: function render() {
184-
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c(_vm.mainTag, { directives: [{ name: "observe-visibility", rawName: "v-observe-visibility", value: _vm.handleVisibilityChange, expression: "handleVisibilityChange" }], tag: "component", staticClass: "virtual-scroller", class: _vm.cssClass, on: { "scroll": _vm.handleScroll } }, [_vm._t("before-container", [_c(_vm.containerTag, { ref: "itemContainer", tag: "component", staticClass: "item-container", class: _vm.containerClass, style: _vm.itemContainerStyle }, [_vm._t("before-content", [_c(_vm.contentTag, { ref: "items", tag: "component", staticClass: "items", class: _vm.contentClass, style: _vm.itemsStyle }, [_vm.renderers ? _vm._l(_vm.visibleItems, function (item, index) {
185-
return _c(_vm.renderers[item[_vm.typeField]], { key: _vm.keysEnabled && item[_vm.keyField] || '', tag: "component", staticClass: "item", attrs: { "item": item, "item-index": _vm._startIndex + index } });
185+
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c(_vm.mainTag, { directives: [{ name: "observe-visibility", rawName: "v-observe-visibility", value: _vm.handleVisibilityChange, expression: "handleVisibilityChange" }], tag: "component", staticClass: "virtual-scroller", class: _vm.cssClass, on: { "&scroll": function scroll($event) {
186+
_vm.handleScroll($event);
187+
} } }, [_vm._t("before-container"), _vm._v(" "), _c(_vm.containerTag, { ref: "itemContainer", tag: "component", staticClass: "item-container", class: _vm.containerClass, style: _vm.itemContainerStyle }, [_vm._t("before-content"), _vm._v(" "), _c(_vm.contentTag, { ref: "items", tag: "component", staticClass: "items", class: _vm.contentClass, style: _vm.itemsStyle }, [_vm.renderers ? _vm._l(_vm.visibleItems, function (item, index) {
188+
return _c(_vm.renderers[item[_vm.typeField]], { key: _vm.keysEnabled && item[_vm.keyField] || undefined, tag: "component", staticClass: "item", attrs: { "item": item, "item-index": _vm._startIndex + index } });
186189
}) : [_vm._l(_vm.visibleItems, function (item, index) {
187-
return _vm._t("default", null, { item: item, itemIndex: _vm._startIndex + index, itemKey: _vm.keysEnabled && item[_vm.keyField] || '' });
188-
})]], 2), _vm._v(" "), _vm._t("after-content")])], 2), _vm._v(" "), _vm._t("after-container", [_c('resize-observer', { on: { "notify": _vm.handleResize } })])])], 2);
189-
}, staticRenderFns: [], _scopeId: 'data-v-2b1f2e05',
190+
return _vm._t("default", null, { item: item, itemIndex: _vm._startIndex + index, itemKey: _vm.keysEnabled && item[_vm.keyField] || undefined });
191+
})]], 2), _vm._v(" "), _vm._t("after-content")], 2), _vm._v(" "), _vm._t("after-container"), _vm._v(" "), _c('resize-observer', { on: { "notify": _vm.handleResize } })], 2);
192+
}, staticRenderFns: [], _scopeId: 'data-v-727d6836',
190193
name: 'virtual-scroller',
191194

192195
components: {
@@ -556,9 +559,9 @@ function registerComponents(Vue, prefix) {
556559
Vue.component(prefix + 'virtual-scroller', VirtualScroller);
557560
}
558561

559-
var plugin = {
562+
var plugin$4 = {
560563
// eslint-disable-next-line no-undef
561-
version: "0.10.6",
564+
version: "0.10.8",
562565
install: function install(Vue, options) {
563566
var finalOptions = Object.assign({}, {
564567
installComponents: true,
@@ -572,15 +575,15 @@ var plugin = {
572575
};
573576

574577
// Auto-install
575-
var GlobalVue = null;
578+
var GlobalVue$2 = null;
576579
if (typeof window !== 'undefined') {
577-
GlobalVue = window.Vue;
580+
GlobalVue$2 = window.Vue;
578581
} else if (typeof global !== 'undefined') {
579-
GlobalVue = global.Vue;
582+
GlobalVue$2 = global.Vue;
580583
}
581-
if (GlobalVue) {
582-
GlobalVue.use(plugin);
584+
if (GlobalVue$2) {
585+
GlobalVue$2.use(plugin$4);
583586
}
584587

588+
export default plugin$4;
585589
export { VirtualScroller };
586-
export default plugin;

0 commit comments

Comments
 (0)