mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-17 11:49:41 +08:00
fix(types): non-null assertion component name (#16804)
This commit is contained in:
parent
75b935a977
commit
e35f403515
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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<
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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 }
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user