mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* Revert "fix(types): packing unexpected types (#19419)"
This reverts commit 13506ffb81.
* Revert "chore: add explicit type annoation (#19352)"
* fix(typescript): borken import paths in declaration files
* chore: emits smaller declaration files
34 lines
818 B
TypeScript
34 lines
818 B
TypeScript
import { buildProps, iconPropType } from '@element-plus/utils'
|
|
import { Back } from '@element-plus/icons-vue'
|
|
import type { ExtractPropTypes } from 'vue'
|
|
import type PageHeader from './page-header.vue'
|
|
|
|
export const pageHeaderProps = buildProps({
|
|
/**
|
|
* @description icon component of page header
|
|
*/
|
|
icon: {
|
|
type: iconPropType,
|
|
default: () => Back,
|
|
},
|
|
/**
|
|
* @description main title of page header
|
|
*/
|
|
title: String,
|
|
/**
|
|
* @description content of page header
|
|
*/
|
|
content: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
} as const)
|
|
export type PageHeaderProps = ExtractPropTypes<typeof pageHeaderProps>
|
|
|
|
export const pageHeaderEmits = {
|
|
back: () => true,
|
|
}
|
|
export type PageHeaderEmits = typeof pageHeaderEmits
|
|
|
|
export type PageHeaderInstance = InstanceType<typeof PageHeader> & unknown
|