File tree Expand file tree Collapse file tree 4 files changed +40
-31
lines changed
Expand file tree Collapse file tree 4 files changed +40
-31
lines changed Original file line number Diff line number Diff line change 11<template >
22 <el-button v-if =" type == 'icon'" link @click =" copyText(content)" icon =" DocumentCopy" class =" ml-1.5" ></el-button >
3- <el-button type = " primary " @click =" copyText(content)" v-else >{{ $t('commons.button.copy') }}</el-button >
3+ <el-button @click =" copyText(content)" v-else >{{ $t('commons.button.copy') }}</el-button >
44</template >
55
66<script lang="ts" setup>
Original file line number Diff line number Diff line change 8080 :rules =" Rules.paramComplexity"
8181 prop =" password"
8282 >
83- <el-input type =" password" show-password clearable v-model =" form.password" >
84- <template #suffix >
85- <CopyButton type =" icon" :content =" form.password" class =" w-30" />
86- </template >
87- <template #append >
88- <el-button @click =" random" >
89- {{ $t('commons.button.random') }}
90- </el-button >
91- </template >
92- </el-input >
83+ <el-input
84+ style =" width : calc (100% - 147px )"
85+ type =" password"
86+ show-password
87+ clearable
88+ v-model =" form.password"
89+ />
90+ <el-button-group >
91+ <CopyButton :content =" form.password" />
92+ <el-button @click =" random" >
93+ {{ $t('commons.button.random') }}
94+ </el-button >
95+ </el-button-group >
9396 </el-form-item >
9497 </div >
9598
Original file line number Diff line number Diff line change 8181 :rules =" Rules.paramComplexity"
8282 prop =" password"
8383 >
84- <el-input type =" password" show-password clearable v-model =" form.password" >
85- <template #suffix >
86- <CopyButton type =" icon" :content =" form.password" class =" w-30" />
87- </template >
88- <template #append >
89- <el-button @click =" random" >
90- {{ $t('commons.button.random') }}
91- </el-button >
92- </template >
93- </el-input >
84+ <el-input
85+ style =" width : calc (100% - 147px )"
86+ type =" password"
87+ show-password
88+ clearable
89+ v-model =" form.password"
90+ />
91+ <el-button-group >
92+ <CopyButton :content =" form.password" />
93+ <el-button @click =" random" >
94+ {{ $t('commons.button.random') }}
95+ </el-button >
96+ </el-button-group >
9497 </el-form-item >
9598 </div >
9699 <div v-if =" form.from !== 'local'" >
Original file line number Diff line number Diff line change 6767
6868 <el-divider border-style =" dashed" />
6969 <el-form-item :label =" $t('commons.login.password')" v-if =" form.from === 'local'" prop =" password" >
70- <el-input type =" password" show-password clearable v-model =" form.password" >
71- <template #suffix >
72- <CopyButton type =" icon" :content =" form.password" class =" w-30" />
73- </template >
74- <template #append >
75- <el-button @click =" random" >
76- {{ $t('commons.button.random') }}
77- </el-button >
78- </template >
79- </el-input >
70+ <el-input
71+ style =" width : calc (100% - 147px )"
72+ type =" password"
73+ show-password
74+ clearable
75+ v-model =" form.password"
76+ />
77+ <el-button-group >
78+ <CopyButton :content =" form.password" />
79+ <el-button @click =" random" >
80+ {{ $t('commons.button.random') }}
81+ </el-button >
82+ </el-button-group >
8083 </el-form-item >
8184
8285 <div v-if =" form.from !== 'local'" >
You can’t perform that action at this time.
0 commit comments