fix(types): non-null assertion component name (#16804)

This commit is contained in:
sea / 神秘海 2024-05-15 09:24:42 +08:00 committed by GitHub
parent 75b935a977
commit e35f403515
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,7 @@ import type { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils'
CascaderPanel.install = (app: App): void => {
app.component(CascaderPanel.name, CascaderPanel)
app.component(CascaderPanel.name!, CascaderPanel)
}
const _CascaderPanel = CascaderPanel as SFCWithInstall<typeof CascaderPanel>

View File

@ -3,7 +3,7 @@ import type { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils'
Cascader.install = (app: App): void => {
app.component(Cascader.name, Cascader)
app.component(Cascader.name!, Cascader)
}
const _Cascader = Cascader as SFCWithInstall<typeof Cascader>

View File

@ -3,7 +3,7 @@ import type { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils'
CollapseTransition.install = (app: App): void => {
app.component(CollapseTransition.name, CollapseTransition)
app.component(CollapseTransition.name!, CollapseTransition)
}
const _CollapseTransition = CollapseTransition as SFCWithInstall<

View File

@ -6,7 +6,7 @@ import type { SFCWithInstall } from '@element-plus/utils'
const _DatePicker = DatePicker as SFCWithInstall<typeof DatePicker>
_DatePicker.install = (app: App) => {
app.component(_DatePicker.name, _DatePicker)
app.component(_DatePicker.name!, _DatePicker)
}
export default _DatePicker

View File

@ -4,7 +4,7 @@ import type { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils'
Select.install = (app: App): void => {
app.component(Select.name, Select)
app.component(Select.name!, Select)
}
const _Select = Select as SFCWithInstall<typeof Select>

View File

@ -12,7 +12,7 @@ export * from './src/common/props'
const _TimePicker = TimePicker as SFCWithInstall<typeof TimePicker>
_TimePicker.install = (app: App) => {
app.component(_TimePicker.name, _TimePicker)
app.component(_TimePicker.name!, _TimePicker)
}
export { CommonPicker, TimePickPanel }

View File

@ -4,7 +4,7 @@ import type { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils'
TimeSelect.install = (app: App): void => {
app.component(TimeSelect.name, TimeSelect)
app.component(TimeSelect.name!, TimeSelect)
}
const _TimeSelect = TimeSelect as SFCWithInstall<typeof TimeSelect>

View File

@ -4,7 +4,7 @@ import type { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils'
TreeSelect.install = (app: App): void => {
app.component(TreeSelect.name, TreeSelect)
app.component(TreeSelect.name!, TreeSelect)
}
const _TreeSelect = TreeSelect as SFCWithInstall<typeof TreeSelect>

View File

@ -4,7 +4,7 @@ import type { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils'
Tree.install = (app: App): void => {
app.component(Tree.name, Tree)
app.component(Tree.name!, Tree)
}
const _Tree = Tree as SFCWithInstall<typeof Tree>