Skip to content

Commit fbcdeea

Browse files
MattTheCuberjourdain
authored andcommitted
fix: add default slot to components
1 parent f9a0383 commit fbcdeea

11 files changed

Lines changed: 11 additions & 0 deletions

vue2-app/src/components/ClientStateChange.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ export default {
3232
emit('change', props.value);
3333
}
3434
},
35+
template: `<slot />`,
3536
};

vue2-app/src/components/ClientTriggers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ export default {
1919
emit('created');
2020
return { emit: emitTopic };
2121
},
22+
template: `<slot />`,
2223
};

vue2-app/src/components/LifeCycleMonitor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ export default {
5656
});
5757
}
5858
},
59+
template: `<slot />`,
5960
};

vue2-app/src/components/TrameExec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ export default {
1010
}
1111
},
1212
},
13+
template: `<slot />`,
1314
};

vue2-app/src/components/TrameScript.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@ export default {
5151
}
5252
},
5353
},
54+
template: `<slot />`,
5455
};

vue3-app/src/components/TrameClientStateChange.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ export default {
3232
emit("change", props.value);
3333
}
3434
},
35+
template: `<slot />`,
3536
};

vue3-app/src/components/TrameClientTriggers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ export default {
2020
emit("created");
2121
return { emit: emitTopic };
2222
},
23+
template: `<slot />`,
2324
};

vue3-app/src/components/TrameExec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ export default {
1313
}
1414
return { exec };
1515
},
16+
template: `<slot />`,
1617
};

vue3-app/src/components/TrameLifeCycleMonitor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,5 @@ export default {
6262
});
6363
}
6464
},
65+
template: `<slot />`,
6566
};

vue3-app/src/components/TrameScript.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@ export default {
5151
}
5252
},
5353
},
54+
template: `<slot />`,
5455
};

0 commit comments

Comments
 (0)