element-plus/packages/tokens/upload.ts
C.Y.Kun 13ffea1114
refactor(components): refactor upload (#6014)
* refactor(components): refactor ElUpload

* refactor(components): refactor upload

* test: use jsx

* refactor: resolve review comments

* fix: ts error

* refactor: re-order imports

* refactor: rename

* fix: infinity watch

* refactor: rename

* refactor: address PR comments

Co-authored-by: Kevin <sxzz@sxzz.moe>
2022-03-05 23:09:31 +08:00

9 lines
210 B
TypeScript

import type { ComputedRef, InjectionKey } from 'vue'
export interface UploadContext {
accept: ComputedRef<string>
}
export const uploadContextKey: InjectionKey<UploadContext> =
Symbol('uploadContextKey')