mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
refactor(components): [tour] improve TourContext type (#21605)
This commit is contained in:
@@ -150,7 +150,7 @@ export interface TourContext {
|
||||
current: Ref<number>
|
||||
total: Ref<number>
|
||||
showClose: Ref<boolean>
|
||||
closeIcon: Ref<string | Component>
|
||||
closeIcon: Ref<string | Component | undefined>
|
||||
mergedType: Ref<'default' | 'primary' | undefined>
|
||||
ns: UseNamespaceReturn
|
||||
slots: SetupContext['slots']
|
||||
|
||||
@@ -129,8 +129,8 @@ provide(tourKey, {
|
||||
current,
|
||||
total,
|
||||
showClose: toRef(props, 'showClose'),
|
||||
closeIcon: toRef(props, 'closeIcon') as any,
|
||||
mergedType: mergedType as any,
|
||||
closeIcon: toRef(props, 'closeIcon'),
|
||||
mergedType,
|
||||
ns,
|
||||
slots,
|
||||
updateModelValue(modelValue) {
|
||||
|
||||
Reference in New Issue
Block a user