Skip to content

Commit

Permalink
perf: component.name局部引用无需shallowRef包裹
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Oct 26, 2023
1 parent 648fe0e commit 96c56d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fast-crud/src/d/crud.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Ref, ShallowRef } from "vue";
import { Component, Ref, ShallowRef } from "vue";
import { ComputeContext } from "./compute";
import { CrudExpose, DoRemoveContext } from "../d/expose";

Expand Down Expand Up @@ -368,7 +368,7 @@ export type ComponentProps = {
/**
* 组件的名称
*/
name?: string | ShallowRef;
name?: string | Component;
/**
* vmodel绑定的目标属性名
*/
Expand Down

0 comments on commit 96c56d8

Please sign in to comment.