fix(input): baseline shifts when input mixed language(修复Input组件的行高问题)close#174 (#183)

* fix: Fixed Input Component line-heitgh issue(修复Input组件的行高问题)

* fix: Fixed Input Component line-height issue(修复Input组件的行高问题)

* style: 优化代码格式

* docs: add changelog for fixed input jitter (变更日志添加解决Input组件抖动问题)

* docs: 将fixes调整到pending中。

* Update CHANGELOG.zh-CN.md

Co-authored-by: 07akioni <07akioni2@gmail.com>
This commit is contained in:
Yiuman Kam 2021-06-18 15:21:52 +08:00 committed by GitHub
parent 107dc136a2
commit faee18c1d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View File

@ -9,6 +9,7 @@
### Fixes
- Fix `n-input` jitter when Chinese and English characters switch input, closes [#174](https://github.com/TuSimple/naive-ui/issues/174).
- Fix `n-icon` use setup script, `$parent` is an empty object by default, and access `$parent.$options` will be `undefined`.
## 2.12.0 (2020-06-16)

View File

@ -9,6 +9,7 @@
### Fixes
- 修复 `n-input` 中英文字符切换输入时抖动的问题,关闭[#174](https://github.com/TuSimple/naive-ui/issues/174)
- 修复 `n-icon` 在使用 setup script 时,`$parent` 默认是一个空对象,访问 `$parent.$options` 会是 `undefined`
## 2.12.0 (2020-06-16)

View File

@ -130,10 +130,11 @@ export default c([
white-space: nowrap;
pointer-events: none;
`),
cE('input-el', {
padding: 0,
height: 'var(--height)'
}, [
cE('input-el', `
padding: 0;
height: var(--height);
line-height: var(--height);
`, [
c('+', [
cE('placeholder', `
display: flex;