Skip to content

功能

用于解决 element-plus 2.5.x 版本之后对于 select 宽度的破坏性更新

因此为 select 和 input 增加内联块级两种显示方式

功能示例

展示区
参数:内联/块级
内联
结果

最小示例

vue
<template>
    <Wrapper>
        <HInput v-model="result" />
    </Wrapper>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

import Wrapper from '@/components/simple-wrapper.vue'
import HInput from '../index.vue'

const result = ref('')
</script>

API