We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.2.6
Windows 24h2 26100.2605, Chrome 131.0.6778.140, Vue 3.5.13
https://github.com/luzilong2005/antd-vue-input-bug.git
安装 tailwindcss postcss autoprefixer模块并初始化后
tailwindcss postcss autoprefixer
在项目的src文件夹下的App.vue文件里面添加如下代码:
src
App.vue
<template> <div> <Form style="width: 340px;"> <FormItem> <Input placeholder="输入" allow-clear> <template #prefix> Hello </template> </Input> </FormItem> </Form> </div> </template> <script setup lang="ts"> import { Form, FormItem, Input } from "ant-design-vue"; </script>
如果使用了自定义的clearIcon插槽,结果显示正确
<template> <div> <Form style="width: 340px"> <FormItem> <Input placeholder="输入" allow-clear> <template #prefix> Hello </template> <template #clearIcon> Hi </template> </Input> </FormItem> </Form> </div> </template> <script setup lang="ts"> import { Form, FormItem, Input } from "ant-design-vue"; </script>
Input 的 clearIcon应该保持在水平线上
Input 的 clearIcon 向下偏移了一段距离
该项目使用 pnpm create vite 的 Customize with create-vue。根据antd文档提示使用了局部组件,并在main.ts文件里正确引入了 import "ant-design-vue/dist/reset.css"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
4.2.6
Environment
Windows 24h2 26100.2605, Chrome 131.0.6778.140, Vue 3.5.13
Reproduction link
https://github.com/luzilong2005/antd-vue-input-bug.git
Steps to reproduce
安装
tailwindcss postcss autoprefixer
模块并初始化后在项目的
src
文件夹下的App.vue
文件里面添加如下代码:如果使用了自定义的clearIcon插槽,结果显示正确
What is expected?
Input 的 clearIcon应该保持在水平线上
What is actually happening?
Input 的 clearIcon 向下偏移了一段距离
该项目使用 pnpm create vite 的 Customize with create-vue。根据antd文档提示使用了局部组件,并在main.ts文件里正确引入了 import "ant-design-vue/dist/reset.css"
The text was updated successfully, but these errors were encountered: