File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2525</template >
2626<script setup lang="ts">
2727import { ref , watch } from ' vue' ;
28- import { random } from ' ph-utils' ;
28+ import { random , isBlank } from ' ph-utils' ;
2929
3030const el = ref <HTMLInputElement >();
3131
@@ -69,9 +69,7 @@ function handleInputBlur() {
6969}
7070
7171watch (modelValue , (v ) => {
72- if (v != null ) {
73- hasValue .value = true ;
74- }
72+ hasValue .value = isBlank (v ) ? false : true ;
7573});
7674
7775defineExpose ({
Original file line number Diff line number Diff line change 99.nt-md-input__inner {
1010 width : 100% ;
1111 height : 100% ;
12+ border : 0 ;
13+ background : transparent;
1214 border-style : solid;
1315 border-color : # c0c0c0 ;
1416 border-bottom-width : 1px ;
3840.nt-md-input .nt-focused .nt-md-input__label {
3941 transform : translateY (-150% );
4042 font-size : 12px ;
41- background-color : # fff ;
4243}
4344.nt-md-input .nt-focused .nt-md-input__label {
4445 color : var (--nt-primary-color , # 52c41a );
6061.nt-md-input-outline .nt-has-value .nt-md-input__label {
6162 padding-left : 4px ;
6263 padding-right : 4px ;
64+ background-color : # ffffff ;
6365}
You can’t perform that action at this time.
0 commit comments