|
22 | 22 | :form="form" |
23 | 23 | @submit="handleSubmit" |
24 | 24 | layout="vertical"> |
25 | | - <a-form-item :label="$t('label.name')"> |
| 25 | + <a-form-item> |
| 26 | + <span slot="label"> |
| 27 | + {{ $t('label.name') }} |
| 28 | + <a-tooltip :title="createRoleApiParams.name.description"> |
| 29 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 30 | + </a-tooltip> |
| 31 | + </span> |
26 | 32 | <a-input |
27 | 33 | v-decorator="['name', { |
28 | 34 | rules: [{ required: true, message: $t('message.error.required.input') }] |
29 | 35 | }]" |
30 | 36 | :placeholder="createRoleApiParams.name.description" /> |
31 | 37 | </a-form-item> |
32 | 38 |
|
33 | | - <a-form-item :label="$t('label.description')"> |
| 39 | + <a-form-item> |
| 40 | + <span slot="label"> |
| 41 | + {{ $t('label.description') }} |
| 42 | + <a-tooltip :title="createRoleApiParams.description.description"> |
| 43 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 44 | + </a-tooltip> |
| 45 | + </span> |
34 | 46 | <a-input |
35 | 47 | v-decorator="['description']" |
36 | 48 | :placeholder="createRoleApiParams.description.description" /> |
37 | 49 | </a-form-item> |
38 | 50 |
|
39 | | - <a-form-item :label="$t('label.based.on')" v-if="'roleid' in createRoleApiParams"> |
| 51 | + <a-form-item v-if="'roleid' in createRoleApiParams"> |
| 52 | + <span slot="label"> |
| 53 | + {{ $t('label.based.on') }} |
| 54 | + <a-tooltip :title="$t('label.based.on.role.id.or.type')"> |
| 55 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 56 | + </a-tooltip> |
| 57 | + </span> |
40 | 58 | <a-radio-group |
41 | 59 | v-decorator="['using', { |
42 | 60 | initialValue: this.createRoleUsing |
|
52 | 70 | </a-radio-group> |
53 | 71 | </a-form-item> |
54 | 72 |
|
55 | | - <a-form-item :label="$t('label.type')" v-if="this.createRoleUsing === 'type'"> |
| 73 | + <a-form-item v-if="this.createRoleUsing === 'type'"> |
| 74 | + <span slot="label"> |
| 75 | + {{ $t('label.type') }} |
| 76 | + <a-tooltip :title="createRoleApiParams.type.description"> |
| 77 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 78 | + </a-tooltip> |
| 79 | + </span> |
56 | 80 | <a-select |
57 | 81 | v-decorator="['type', { |
58 | 82 | rules: [{ required: true, message: $t('message.error.select') }] |
|
64 | 88 | </a-select> |
65 | 89 | </a-form-item> |
66 | 90 |
|
67 | | - <a-form-item :label="$t('label.role')" v-if="this.createRoleUsing === 'role'"> |
| 91 | + <a-form-item v-if="this.createRoleUsing === 'role'"> |
| 92 | + <span slot="label"> |
| 93 | + {{ $t('label.role') }} |
| 94 | + <a-tooltip :title="createRoleApiParams.roleid.description"> |
| 95 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 96 | + </a-tooltip> |
| 97 | + </span> |
68 | 98 | <a-select |
69 | 99 | v-decorator="['roleid', { |
70 | 100 | rules: [{ required: true, message: $t('message.error.select') }] |
|
0 commit comments