Alvaro 2 лет назад
Родитель
Сommit
d9f994e87a
2 измененных файлов с 6 добавлено и 2 удалено
  1. 4 0
      docs/.vitepress/theme/config.css
  2. 2 2
      docs/api/composables.md

+ 4 - 0
docs/.vitepress/theme/config.css

@@ -39,6 +39,10 @@
   --vp-button-sponsor-active-bg: transparent;
   --vp-button-sponsor-active-bg: transparent;
 }
 }
 
 
+.VPSidebar .link.active span {
+  font-weight: bold;
+}
+
 .vp-doc a {
 .vp-doc a {
   text-decoration: dashed;
   text-decoration: dashed;
   font-weight: bold;
   font-weight: bold;

+ 2 - 2
docs/api/composables.md

@@ -170,12 +170,12 @@ Then you can use the new component in your template. Notice that the new compone
 </template>
 </template>
 ```
 ```
 
 
-# useThree <Badge type="warning" text="experimental" />
+# useTres <Badge type="warning" text="experimental" />
 
 
 This composable aims to provide access to the state model which contains the default renderer, camera, scene, and other useful properties. It is still experimental and it is not recommended to use it in production because is highly like subject to change.
 This composable aims to provide access to the state model which contains the default renderer, camera, scene, and other useful properties. It is still experimental and it is not recommended to use it in production because is highly like subject to change.
 
 
 ```ts
 ```ts
-const { state } = useThree()
+const { state } = useTres()
 
 
 console.log(state.camera) // THREE.PerspectiveCamera
 console.log(state.camera) // THREE.PerspectiveCamera
 console.log(state.renderer) // THREE.WebGLRenderer
 console.log(state.renderer) // THREE.WebGLRenderer