types: export all props type (#9717)

This commit is contained in:
neverland
2021-10-25 20:36:23 +08:00
committed by GitHub
parent 74a136f90e
commit ca1aa1a7b1
243 changed files with 1575 additions and 904 deletions
+3 -3
View File
@@ -51,7 +51,7 @@ function genAlphabet() {
const [name, bem] = createNamespace('index-bar');
const props = {
const indexBarProps = {
sticky: truthProp,
zIndex: numericProp,
teleport: [String, Object] as PropType<TeleportProps['to']>,
@@ -63,14 +63,14 @@ const props = {
},
};
export type IndexBarProps = ExtractPropTypes<typeof props>;
export type IndexBarProps = ExtractPropTypes<typeof indexBarProps>;
export const INDEX_BAR_KEY: InjectionKey<IndexBarProvide> = Symbol(name);
export default defineComponent({
name,
props,
props: indexBarProps,
emits: ['select', 'change'],