Explorar el Código

refactor(runtime-vapor): export function

三咲智子 Kevin Deng hace 2 años
padre
commit
bdc43226a0
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      packages/runtime-vapor/src/componentSlots.ts

+ 2 - 2
packages/runtime-vapor/src/componentSlots.ts

@@ -39,11 +39,11 @@ export interface DynamicSlot {
 
 export type DynamicSlots = () => (DynamicSlot | DynamicSlot[])[]
 
-export const initSlots = (
+export function initSlots(
   instance: ComponentInternalInstance,
   rawSlots: InternalSlots | null = null,
   dynamicSlots: DynamicSlots | null = null,
-) => {
+) {
   let slots: InternalSlots = {}
 
   for (const key in rawSlots) {