tusen-ai / naive-ui

A Vue 3 Component Library. Fairly Complete. Theme Customizable. Uses TypeScript. Fast.
https://www.naiveui.com
MIT License
15.89k stars 1.67k forks source link

NInput 受 LastPass 影响,placeholder 向上漂移 #6332

Open lparam opened 1 week ago

lparam commented 1 week ago

描述错误

LastPass 图标插入输入框尾部,导致 placeholder 位置向上漂移

复现步骤

没有 LastPass 的情况

2024-09-08_22-28

开启 LastPass 的情况

2024-09-08_22-28_1

代码

<script setup lang="ts">
import { NInput } from 'naive-ui'
</script>

<template>
  <n-input type="text" placeholder="用户名" />
  <n-input type="password" placeholder="密码" />
</template>

最小复现链接

https://www.naiveui.com/zh-CN/light/components/input

系统信息

System:
    OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
    CPU: (24) x64 13th Gen Intel(R) Core(TM) i7-13700K
    Memory: 9.66 GB / 31.08 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 20.15.0 - /usr/local/bin/node
    npm: 10.7.0 - /usr/local/bin/npm
    pnpm: 9.9.0 - ~/.npm-packages/bin/pnpm
  Browsers:
    Chrome: 128.0.6613.119

使用的包管理器

pnpm

验证

Zheng-Changfu commented 1 week ago

描述错误

LastPass 图标插入输入框尾部,导致 placeholder 位置向上漂移

复现步骤

没有 LastPass 的情况

2024-09-08_22-28

开启 LastPass 的情况

2024-09-08_22-28_1

代码

<script setup lang="ts">
import { NInput } from 'naive-ui'
</script>

<template>
  <n-input type="text" placeholder="用户名" />
  <n-input type="password" placeholder="密码" />
</template>

最小复现链接

https://www.naiveui.com/zh-CN/light/components/input

系统信息

System:
    OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
    CPU: (24) x64 13th Gen Intel(R) Core(TM) i7-13700K
    Memory: 9.66 GB / 31.08 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 20.15.0 - /usr/local/bin/node
    npm: 10.7.0 - /usr/local/bin/npm
    pnpm: 9.9.0 - ~/.npm-packages/bin/pnpm
  Browsers:
    Chrome: 128.0.6613.119

使用的包管理器

pnpm

验证

请提供复现链接或代码示例

jahnli commented 1 week ago

提供的复现 最小可复现的示例

lparam commented 1 week ago

@Zheng-Changfu

Vue3 代码

<script setup lang="ts">
import { NInput } from 'naive-ui'
</script>

<template>
  <n-input type="text" placeholder="用户名" />
  <n-input type="password" placeholder="密码" />
</template>
Zheng-Changfu commented 6 days ago

@Zheng-Changfu

Vue3 代码

<script setup lang="ts">
import { NInput } from 'naive-ui'
</script>

<template>
  <n-input type="text" placeholder="用户名" />
  <n-input type="password" placeholder="密码" />
</template>

这也不是复现代码啊

jahnli commented 6 days ago

应该去 LastPass 反馈,为什么影响了原本组件的样式