Procházet zdrojové kódy

refactor(runtime-vapor): export function

三咲智子 Kevin Deng před 2 roky
rodič
revize
bdc43226a0
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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) {