Merge pull request #167 from TuSimple/freestyle

Freestyle
This commit is contained in:
07akioni 2020-07-23 20:19:12 +08:00 committed by GitHub Enterprise
commit ed089ac280
7 changed files with 52 additions and 4 deletions

View File

@ -1,4 +1,8 @@
# CHANGELOG # CHANGELOG
## 1.5.3 (2020-07-23)
### Fixes
- Fix the problem that `n-select` display with mistakes when `placeholder` is empty.
## 1.5.2 (2020-07-22) ## 1.5.2 (2020-07-22)
### Fixes ### Fixes
- Fix the problem that `n-radio` can be focused. - Fix the problem that `n-radio` can be focused.

View File

@ -1,4 +1,8 @@
# CHANGELOG # CHANGELOG
## 1.5.3 (2020-07-23)
### Fixes
- 修正了 `n-select``placeholder` 为空的时候显示出错的问题
## 1.5.2 (2020-07-22) ## 1.5.2 (2020-07-22)
### Fixes ### Fixes
- 修正了 `n-radio` 无法聚焦的问题 - 修正了 `n-radio` 无法聚焦的问题

View File

@ -18,6 +18,7 @@ custom-option
action action
fallback-option fallback-option
change-debug change-debug
placeholder-debug
``` ```
## V-model ## V-model
|prop|event| |prop|event|

View File

@ -0,0 +1,40 @@
# Placehoder Debug
```html
<n-select
v-model="value2"
placeholder=""
:options="options"
style="width:200px;"
/>
<n-select
v-model="value3"
multiple
placeholder=""
:options="options"
style="width:200px;"
/>
```
```js
export default {
data () {
return {
options: [
{
value: '1',
label: '1',
}
],
value1: null,
value2: null,
value3: null
}
}
}
```
```css
.n-select {
width: 180px;
margin: 0 12px 8px 0;
}
```

View File

@ -1,6 +1,6 @@
{ {
"name": "naive-ui", "name": "naive-ui",
"version": "1.5.2", "version": "1.5.3",
"description": "A Vue UI Framework. Caring About Styles, Themed, Batteries Included, Not Rather Slow.", "description": "A Vue UI Framework. Caring About Styles, Themed, Batteries Included, Not Rather Slow.",
"main": "lib/index.js", "main": "lib/index.js",
"module": "es/index.js", "module": "es/index.js",

View File

@ -1,7 +1,6 @@
import { cTB, c, cB, cE, cM } from '../../../../_utils/cssr' import { cTB, c, cB, cE, cM } from '../../../../_utils/cssr'
import formatLength from '../../../../_utils/css/formatLength' import formatLength from '../../../../_utils/css/formatLength'
// TODO split form-item styles out
export default c([ export default c([
({ props }) => { ({ props }) => {
const size = props.$instance.size const size = props.$instance.size
@ -17,7 +16,7 @@ export default c([
height, height,
lineHeight: height lineHeight: height
}), }),
cB('base-selection-babel', { cB('base-selection-label', {
height, height,
lineHeight: height lineHeight: height
}), }),

View File

@ -1 +1 @@
export default '1.5.2' export default '1.5.3'