Skip to content

在表单中使用插槽展示标签名 #1484

@Jsping68

Description

@Jsping68

表单中,使用插槽显示标签时,页面展示的标签名后面会有两个冒号,这个能解决吗?
[我主要是想实现标签中加两个空的占位符,直接在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">账&#12288;&#12288;号</label> <a-input v-model="data.username" placeholder=""/> </a-form-item> </a-col> </a-row> </a-form>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions