浏览代码

Simplifies vscode component registration

main
Eric Amodio 2 年前
父节点
当前提交
47c302691f
共有 2 个文件被更改,包括 2 次插入12 次删除
  1. +1
    -5
      src/webviews/apps/home/home.ts
  2. +1
    -7
      src/webviews/apps/plus/timeline/timeline.ts

+ 1
- 5
src/webviews/apps/home/home.ts 查看文件

@ -17,11 +17,7 @@ export class HomeApp extends App {
}
protected override onInitialize() {
provideVSCodeDesignSystem().register({
register: function (container: any, context: any) {
vsCodeButton().register(container, context);
},
});
provideVSCodeDesignSystem().register(vsCodeButton());
this.$slots = [
document.getElementById('slot1') as HTMLDivElement,

+ 1
- 7
src/webviews/apps/plus/timeline/timeline.ts 查看文件

@ -22,13 +22,7 @@ export class TimelineApp extends App {
}
protected override onInitialize() {
provideVSCodeDesignSystem().register({
register: function (container: any, context: any) {
vsCodeButton().register(container, context);
vsCodeDropdown().register(container, context);
vsCodeOption().register(container, context);
},
});
provideVSCodeDesignSystem().register(vsCodeButton(), vsCodeDropdown(), vsCodeOption());
this.updateState();
}

正在加载...
取消
保存