Fix the label slot of the & cannot display

This commit is contained in:
songwanli2025@163.com 2020-05-14 10:57:40 +08:00
parent 7d4fc42e02
commit 51c5c45721
4 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,8 @@
# CHANGELOG
## 1.0.13 (2020-05-14)
### Fixes
- Fix the label slot of the `n-form-item-col` & `n-form-item-row` cannot display.
## 1.0.12 (2020-04-30)
### Fixes
- Fix the problem that some CSS length props are badly formated.

View File

@ -1,4 +1,8 @@
# CHANGELOG
## 1.0.13 (2020-05-14)
### Fixes
- 修正 `n-form-item-col` & `n-form-item-row`的 label slot 不能显示的问题.
## 1.0.12 (2020-04-30)
### Fixes
- 修正了一些 CSS 长度属性格式化错误的问题

View File

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

View File

@ -12,12 +12,12 @@
}"
>
<label
v-if="label || $slots.label"
v-if="label || $scopedSlots.label"
:class="`n-form-item-label`"
:style="syntheticLabelStyle"
>
<template
v-if="$slots.label"
v-if="$scopedSlots.label"
><slot
name="label"
/></template>