Skip to content
New issue

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

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

Open
5 tasks done
lparam opened this issue Sep 8, 2024 · 5 comments
Open
5 tasks done

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

lparam opened this issue Sep 8, 2024 · 5 comments
Labels
untriaged need to sort

Comments

@lparam
Copy link

lparam commented Sep 8, 2024

描述错误

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

验证

@lparam lparam added the untriaged need to sort label Sep 8, 2024
@Zheng-Changfu
Copy link

描述错误

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> ```

最小复现链接

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
Copy link
Collaborator

jahnli commented Sep 9, 2024

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

@lparam
Copy link
Author

lparam commented Sep 9, 2024

@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
Copy link

@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
Copy link
Collaborator

jahnli commented Sep 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged need to sort
Projects
None yet
Development

No branches or pull requests

3 participants