-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
78 changed files
with
795 additions
and
85,808 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
import type { Ref } from "vue"; | ||
export type NameType = string | number; | ||
export type CollapseItemName = string | number; | ||
|
||
export interface CollapseProps { | ||
modelValue: NameType[]; | ||
modelValue: CollapseItemName[]; | ||
accordion?: boolean; | ||
} | ||
|
||
export interface CollapseItemProps { | ||
name: NameType; | ||
name: CollapseItemName; | ||
title?: string; | ||
disabled?: boolean; | ||
} | ||
|
||
export interface CollapseContext { | ||
activeNames: Ref<NameType[]>; | ||
handleItemClick(name: NameType): void; | ||
activeNames: Ref<CollapseItemName[]>; | ||
handleItemClick(name: CollapseItemName): void; | ||
} | ||
|
||
export interface CollapseEmits { | ||
(e: "update:modelValue", value: NameType[]): void; | ||
(e: "change", value: NameType[]): void; | ||
(e: "update:modelValue", value: CollapseItemName[]): void; | ||
(e: "change", value: CollapseItemName[]): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
import type { VNode } from "vue"; | ||
import type { TooltipProps } from "../Tooltip/types"; | ||
|
||
export interface MenuOption { | ||
label: string | VNode; | ||
name: string | number; | ||
export interface DropdownItemProps { | ||
command?: string | number; | ||
label?: string | VNode; | ||
disabled?: boolean; | ||
divided?: boolean; | ||
} | ||
|
||
export interface DropdownProps extends TooltipProps { | ||
menuOptions?: MenuOption[]; | ||
hideAfterClick?: boolean; | ||
items?: DropdownItemProps[]; | ||
hideOnClick?: boolean; | ||
} | ||
|
||
export interface DropdownEmits { | ||
(e: "visible-change", value: boolean): void; | ||
(e: "select", value: MenuOption): void; | ||
(e: "command", value: DropdownItemProps["command"]): void; | ||
} | ||
|
||
export interface DropdownInstance { | ||
show(): void; | ||
hide(): void; | ||
handleOpen(): void; | ||
handleClose(): void; | ||
} | ||
|
||
export interface DropdownContext { | ||
handleItemClick(item: MenuOption): void; | ||
handleItemClick(item: DropdownItemProps): void; | ||
} |
Oops, something went wrong.