-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Description
表单中,使用插槽显示标签时,页面展示的标签名后面会有两个冒号,这个能解决吗?
[我主要是想实现标签中加两个空的占位符,直接在label中使用 貌似不可以,所以使用了slot,具体代码如下:
<a-form :form="form" layout="inline"> <a-row :gutter="48"> <a-col :md="12" :sm="24"> <a-form-item label="职员姓名"> <a-input v-model="data.staffName" placeholder=""/> </a-form-item> </a-col> <a-col :md="12" :sm="24"> <a-form-item> <label slot="label">账  号</label> <a-input v-model="data.username" placeholder=""/> </a-form-item> </a-col> </a-row> </a-form>