mirror of
https://github.com/tenrok/vue-tribute.git
synced 2026-06-24 07:10:35 +03:00
Merge pull request #26 from tzolkincz/master
fix undefined default slot when rendering complex components
This commit is contained in:
+2
-3
@@ -5,7 +5,6 @@ cache:
|
|||||||
yarn: true
|
yarn: true
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
before_script:
|
services:
|
||||||
- export DISPLAY=:99.0
|
- xvfb
|
||||||
- sh -e /etc/init.d/xvfb start
|
|
||||||
sudo: false
|
sudo: false
|
||||||
Vendored
+10
-6
@@ -19,16 +19,20 @@ var VueTribute = {
|
|||||||
handler: function handler() {
|
handler: function handler() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
var $el = this.$slots.default[0].elm;
|
|
||||||
|
|
||||||
if (this.tribute) {
|
if (this.tribute) {
|
||||||
this.tribute.detach($el);
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
_this.tribute = new Tribute(_this.options);
|
var $el = _this.$slots.default[0].elm;
|
||||||
|
|
||||||
_this.tribute.attach($el);
|
_this.tribute.detach($el);
|
||||||
|
|
||||||
$el.tributeInstance = _this.tribute;
|
setTimeout(function () {
|
||||||
|
var $el = _this.$slots.default[0].elm;
|
||||||
|
_this.tribute = new Tribute(_this.options);
|
||||||
|
|
||||||
|
_this.tribute.attach($el);
|
||||||
|
|
||||||
|
$el.tributeInstance = _this.tribute;
|
||||||
|
}, 0);
|
||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+10
-6
@@ -15,16 +15,20 @@ var VueTribute = {
|
|||||||
handler: function handler() {
|
handler: function handler() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
var $el = this.$slots.default[0].elm;
|
|
||||||
|
|
||||||
if (this.tribute) {
|
if (this.tribute) {
|
||||||
this.tribute.detach($el);
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
_this.tribute = new Tribute(_this.options);
|
var $el = _this.$slots.default[0].elm;
|
||||||
|
|
||||||
_this.tribute.attach($el);
|
_this.tribute.detach($el);
|
||||||
|
|
||||||
$el.tributeInstance = _this.tribute;
|
setTimeout(function () {
|
||||||
|
var $el = _this.$slots.default[0].elm;
|
||||||
|
_this.tribute = new Tribute(_this.options);
|
||||||
|
|
||||||
|
_this.tribute.attach($el);
|
||||||
|
|
||||||
|
$el.tributeInstance = _this.tribute;
|
||||||
|
}, 0);
|
||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+10
-6
@@ -1810,16 +1810,20 @@
|
|||||||
handler: function handler() {
|
handler: function handler() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
var $el = this.$slots.default[0].elm;
|
|
||||||
|
|
||||||
if (this.tribute) {
|
if (this.tribute) {
|
||||||
this.tribute.detach($el);
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
_this.tribute = new Tribute(_this.options);
|
var $el = _this.$slots.default[0].elm;
|
||||||
|
|
||||||
_this.tribute.attach($el);
|
_this.tribute.detach($el);
|
||||||
|
|
||||||
$el.tributeInstance = _this.tribute;
|
setTimeout(function () {
|
||||||
|
var $el = _this.$slots.default[0].elm;
|
||||||
|
_this.tribute = new Tribute(_this.options);
|
||||||
|
|
||||||
|
_this.tribute.attach($el);
|
||||||
|
|
||||||
|
$el.tributeInstance = _this.tribute;
|
||||||
|
}, 0);
|
||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+11
-7
@@ -13,14 +13,18 @@ const VueTribute = {
|
|||||||
immediate: false,
|
immediate: false,
|
||||||
deep: true,
|
deep: true,
|
||||||
handler() {
|
handler() {
|
||||||
const $el = this.$slots.default[0].elm
|
|
||||||
if (this.tribute) {
|
if (this.tribute) {
|
||||||
this.tribute.detach($el)
|
setTimeout( () => {
|
||||||
setTimeout(() => {
|
var $el = this.$slots.default[0].elm;
|
||||||
this.tribute = new Tribute(this.options)
|
this.tribute.detach($el);
|
||||||
this.tribute.attach($el)
|
|
||||||
$el.tributeInstance = this.tribute
|
setTimeout( () => {
|
||||||
}, 0)
|
$el = this.$slots.default[0].elm;
|
||||||
|
this.tribute = new Tribute(this.options);
|
||||||
|
this.tribute.attach($el);
|
||||||
|
$el.tributeInstance = this.tribute;
|
||||||
|
}, 0);
|
||||||
|
}, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user