mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-29 17:58:08 +08:00
chore(components): [input] remove repeated export of InputInstance (#17907)
* chore: remove repeated export of InputInstance * chore: recover settings.json * fix: lint error * fix: test --------- Co-authored-by: WL01-10045094 <weilei@weileideMacBook-Pro.local>
This commit is contained in:
parent
b4c969ca29
commit
1d81c3982d
@ -27,11 +27,12 @@
|
||||
<script lang="ts" setup>
|
||||
import { nextTick, ref } from 'vue'
|
||||
import { ElInput } from 'element-plus'
|
||||
import type { InputInstance } from 'element-plus'
|
||||
|
||||
const inputValue = ref('')
|
||||
const dynamicTags = ref(['Tag 1', 'Tag 2', 'Tag 3'])
|
||||
const inputVisible = ref(false)
|
||||
const InputRef = ref<InstanceType<typeof ElInput>>()
|
||||
const InputRef = ref<InputInstance>()
|
||||
|
||||
const handleClose = (tag: string) => {
|
||||
dynamicTags.value.splice(dynamicTags.value.indexOf(tag), 1)
|
||||
|
@ -5,7 +5,8 @@ import defineGetter from '@element-plus/test-utils/define-getter'
|
||||
import { ElFormItem as FormItem } from '@element-plus/components/form'
|
||||
import Input from '../src/input.vue'
|
||||
import type { CSSProperties } from 'vue'
|
||||
import type { InputAutoSize, InputInstance, InputProps } from '../src/input'
|
||||
import type { InputAutoSize, InputProps } from '../src/input'
|
||||
import type { InputInstance } from '../src/instance'
|
||||
|
||||
describe('Input.vue', () => {
|
||||
afterEach(() => {
|
||||
|
@ -7,7 +7,6 @@ import {
|
||||
} from '@element-plus/utils'
|
||||
import { UPDATE_MODEL_EVENT } from '@element-plus/constants'
|
||||
import { useAriaProps, useSizeProp } from '@element-plus/hooks'
|
||||
import type Input from './input.vue'
|
||||
import type { ExtractPropTypes, StyleValue } from 'vue'
|
||||
|
||||
export type InputAutoSize = { minRows?: number; maxRows?: number } | boolean
|
||||
@ -188,5 +187,3 @@ export const inputEmits = {
|
||||
compositionend: (evt: CompositionEvent) => evt instanceof CompositionEvent,
|
||||
}
|
||||
export type InputEmits = typeof inputEmits
|
||||
|
||||
export type InputInstance = InstanceType<typeof Input>
|
||||
|
Loading…
Reference in New Issue
Block a user