You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
使用vue2的antdv封装组件
`
<a-form-model v-bind="$attrs"
:label-align="getlabelalign"
layout="inline"
`调用该组件时label-align属性生效了,但layout属性不生效,不能把这个layout属性写死在组件内部吗?
<QForm formName="Form" labelAlign="left" :label-col="{ span: 4 }" :wrapper-col="{ span: 18 }"> <QFormItem label="文本1" > <a-input v-model="aInput1" placeholder="请输入文本1" allow-clear > </a-input> </QFormItem> <QFormItem label="文本2" prop="aInput2" > <a-input v-model="aInput2" placeholder="请输入文本2" allow-clear> </a-input> </QFormItem> </QForm>
Beta Was this translation helpful? Give feedback.
All reactions