瀏覽代碼

refactor(runtime-vapor): export function

三咲智子 Kevin Deng 2 年之前
父節點
當前提交
bdc43226a0
共有 1 個文件被更改,包括 2 次插入2 次删除
  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) {