@proto-labs-inc / rig-vue
在挂载Vue之前等待宿主运行时:
async function start() {
const rig = await protoRig(manifest);
createApp(App).use(rig).mount("#app");
}
void start().catch(showRetry);
组件继续使用 usePreviewState 和 useVariant. 适配器订阅
到独立于框架的托管运行时,并在卸载应用程序时将其处理掉。
初始启动需要与配置的运行时建立工作连接。