mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
feat(skin): make runtime plugins locally reorderable
This commit is contained in:
1 parent
1499d60bc0
commit
e20219b010
8 files changed
+35
-13
No files matched your search
@@ -333,7 +333,12 @@ export default defineComponent({
|
||||
for (const plugin of currentPlugins) {
|
||||
const generatedOutput = suppressedSurfaces.value.has(plugin.id) ? null : outputs.value[plugin.id] ?? null;
|
||||
const pluginAssets = outputAssets(plugin);
|
||||
nodes.push(h(SkinPluginOutlet, {
|
||||
nodes.push(h("div", {
|
||||
key: `${props.skinId}:${plugin.id}:layout-root:${props.page}`,
|
||||
class: "ws-runtime-plugin-root",
|
||||
"data-ws-runtime-plugin-root": plugin.id,
|
||||
"data-ws-part": `skin.${props.page}.runtime_plugin_root_${plugin.id}`,
|
||||
}, [h(SkinPluginOutlet, {
|
||||
key: `${props.skinId}:${plugin.id}:${props.page}`,
|
||||
skinId: props.skinId,
|
||||
skinVersion: props.skinVersion,
|
||||
@@ -349,7 +354,7 @@ export default defineComponent({
|
||||
onExtensionEvent: (event: unknown) => dispatch(plugin.id, event),
|
||||
onSurfaceChange: (active: boolean) => surfaceChanged(plugin.id, active),
|
||||
onRestoreSkin: () => emit("restore-skin"),
|
||||
}));
|
||||
})]));
|
||||
}
|
||||
|
||||
const controls: VNodeChild[] = [];
|
||||
|
||||
Reference in new issue
Block a user