add wrap label name and form setup (#383)

* fix(form): fix label-wrap impor

* fix(form): add name to label wrap

* fix(form): add from initialisation
This commit is contained in:
Enguerrand des Vaux 2020-10-03 14:17:40 +02:00 committed by GitHub
parent 2f5507a34e
commit c5042f6d4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -88,7 +88,7 @@ export {
ElSelect,
}
const install = (app: App): void => {
const install = (app: App): void => {
ElAlert(app)
ElAvatar(app)
ElBacktop(app)
@ -128,6 +128,7 @@ const install = (app: App): void => {
ElCalendar(app)
ElInfiniteScroll(app)
ElDrawer(app)
ElForm(app)
ElUpload(app)
ElTree(app)
ElSelect(app)

View File

@ -15,6 +15,7 @@ import {
} from './token'
export default defineComponent({
name: 'ElLabelWrap',
props: {
isAutoWidth: Boolean,
updateAll: Boolean,
@ -77,7 +78,7 @@ export default defineComponent({
class: ['el-form-item__label-wrap'],
style,
},
slots.default?.(),
slots.default?.(),
)
} else {
return h('div', { ref: el }, slots.default?.())