mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-17 11:49:41 +08:00
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:
parent
2f5507a34e
commit
c5042f6d4c
@ -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)
|
||||
|
@ -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?.())
|
||||
|
Loading…
Reference in New Issue
Block a user