Skip to content

Commit

Permalink
feat: type Styles = CSSProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Nov 8, 2023
1 parent 3bc020a commit a27b83b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions packages/products/tdesign-vue-next/src/common.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/** Vue3 特有全局类型 */
import { CSSProperties } from 'vue';
type VNode = import('vue').VNode;
export type ScopedSlot = () => SlotReturnValue;
export type SlotReturnValue = VNode | string | boolean | null | undefined | SlotReturnArray;
Expand Down Expand Up @@ -27,9 +28,7 @@ export type FormResetEvent = Event;
// export type FormSubmitEvent = SubmitEvent; (for higher typescript version)
export type FormSubmitEvent = Event;

export interface Styles {
[css: string]: string | number;
}
export type Styles = CSSProperties;

export interface UploadDisplayDragEvents {
onDrop?: (event: DragEvent) => void;
Expand Down
5 changes: 2 additions & 3 deletions packages/scripts/types/global/vue3.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/** Vue3 特有全局类型 */
import { CSSProperties } from 'vue';
type VNode = import('vue').VNode;
export type ScopedSlot = () => SlotReturnValue;
export type SlotReturnValue = VNode | string | boolean | null | undefined | SlotReturnArray;
Expand Down Expand Up @@ -27,9 +28,7 @@ export type FormResetEvent = Event;
// export type FormSubmitEvent = SubmitEvent; (for higher typescript version)
export type FormSubmitEvent = Event;

export interface Styles {
[css: string]: string | number;
}
export type Styles = CSSProperties;

export interface UploadDisplayDragEvents {
onDrop?: (event: DragEvent) => void;
Expand Down

0 comments on commit a27b83b

Please sign in to comment.