diff --git a/package/component/src/component/dropdownMenuItem/index.vue b/package/component/src/component/dropdownMenuItem/index.vue index a1501dbe..8253a378 100644 --- a/package/component/src/component/dropdownMenuItem/index.vue +++ b/package/component/src/component/dropdownMenuItem/index.vue @@ -8,11 +8,11 @@ export default { import { inject, Ref } from "vue"; import { DropdownContext, dropdownInjectionKey } from "../dropdown/interface"; -export interface LayDropdownMenuItemProps { +export interface DropdownMenuItemProps { disabled?: boolean; } -const props = withDefaults(defineProps(), { +const props = withDefaults(defineProps(), { disabled: false, }); diff --git a/package/component/src/component/dropdownSubMenu/index.vue b/package/component/src/component/dropdownSubMenu/index.vue index 8f2962b1..693743af 100644 --- a/package/component/src/component/dropdownSubMenu/index.vue +++ b/package/component/src/component/dropdownSubMenu/index.vue @@ -14,14 +14,14 @@ import { DropdownPlacement } from "../dropdown/interface"; export type DropdownTrigger = "click" | "hover" | "focus" | "contextMenu"; -export interface LayDropdownSubMenuProps { +export interface DropdownSubMenuProps { trigger?: DropdownTrigger | DropdownTrigger[]; placement?: DropdownPlacement; disabled?: boolean; contentOffset?: number; } -const props = withDefaults(defineProps(), { +const props = withDefaults(defineProps(), { trigger: "hover", disabled: false, placement: "right-start", diff --git a/package/component/src/component/empty/index.vue b/package/component/src/component/empty/index.vue index ad7f6c54..7e1e491c 100644 --- a/package/component/src/component/empty/index.vue +++ b/package/component/src/component/empty/index.vue @@ -8,12 +8,12 @@ export default { import "./index.less"; import { useSlots, withDefaults } from "vue"; -export interface LayEmptyProps { +export interface EmptyProps { description?: string; image?: string; } -const props = withDefaults(defineProps(), { +const props = withDefaults(defineProps(), { description: "暂无数据", }); diff --git a/package/component/src/component/exception/index.vue b/package/component/src/component/exception/index.vue index b73b72c1..afd9024e 100644 --- a/package/component/src/component/exception/index.vue +++ b/package/component/src/component/exception/index.vue @@ -7,7 +7,7 @@ export default { import { useSlots } from "vue"; import "./index.less"; -export interface LayDropdownProps { +export interface DropdownProps { title?: string; status?: "401" | "403" | "404" | "500"; describe?: string; @@ -15,8 +15,8 @@ export interface LayDropdownProps { const slots = useSlots(); -const props = withDefaults(defineProps(), { - title: "Exception", +const props = withDefaults(defineProps(), { + title: "exception", describe: "describe", }); diff --git a/package/component/src/component/field/index.vue b/package/component/src/component/field/index.vue index 4cefc7c4..caf03609 100644 --- a/package/component/src/component/field/index.vue +++ b/package/component/src/component/field/index.vue @@ -8,12 +8,12 @@ export default { import "./index.less"; import { useSlots } from "vue"; -export interface LayFieldProps { +export interface FieldProps { title?: string; } const slot = useSlots(); -const props = defineProps(); +const props = defineProps();