From fc0d4346c27174acc3aa237a96b9ec5db69aa100 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 07 四月 2025 13:37:38 +0800 Subject: [PATCH] 1 --- src/components/verificationCode.vue | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/components/verificationCode.vue b/src/components/verificationCode.vue index 52238b5..cea6606 100644 --- a/src/components/verificationCode.vue +++ b/src/components/verificationCode.vue @@ -1,5 +1,13 @@ +<!-- + * @Author: 鐜嬫棴 1377869194@qq.com + * @Date: 2023-05-08 13:52:20 + * @LastEditors: 鐜嬫棴 1377869194@qq.com + * @LastEditTime: 2023-05-08 15:17:22 + * @FilePath: \LFWEB_NEW\src\components\verificationCode.vue + * @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE +--> <template> - <div class="ValidCode disabled-select" :style="`width:${width}; height:${height}`" @click="refreshCode"> + <div class="ValidCode disabled-select" :style="``" @click="refreshCode"> <span v-for="(item, index) in codeList" :key="index" :style="getStyle(item)">{{item.code}}</span> </div> </template> @@ -57,6 +65,7 @@ // this.$emit('update:value', codeList.map(item => item.code).join('')) this.$emit('sendData', codeList.map(item => item.code).join('')); //this.$emit('鏆撮湶缁欑埗缁勪欢鐨勬柟娉曞悕',鎼哄甫鐨勫弬鏁�); //璁颁綇浣犲懡鍚嶇殑杩欎釜鏂规硶 + }, // 姣忎釜鍏冪礌鐢熸垚鍔ㄦ�佺殑鏍峰紡 getStyle (data) { @@ -68,9 +77,13 @@ <style scoped lang="less"> .ValidCode{ + width: 100px; + height: 48px; display: flex; justify-content: center; align-items: center; + + margin-left: 16px; cursor: pointer; span{ display: inline-block; -- Gitblit v1.9.3