File tree Expand file tree Collapse file tree 4 files changed +27
-2
lines changed Expand file tree Collapse file tree 4 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 97
97
}
98
98
}
99
99
100
+ // tiny新增
101
+ & &__input-btn .@{css-prefix} icon-close {
102
+ margin-right : var (--ti-search-input-btn-close-margin-right );
103
+
104
+ & a ::after {
105
+ content : ' ' ;
106
+ display : var (--ti-search-input-btn-close-display );
107
+ position : absolute ;
108
+ top : 50% ;
109
+ right : 7px ;
110
+ transform : translateY (-50% );
111
+ width : 1px ;
112
+ height : 16px ;
113
+ background-color : #000000 ;
114
+ opacity : 8% ;
115
+ }
116
+ }
117
+
100
118
& &__input-btn {
101
119
text-align : center ;
102
120
Original file line number Diff line number Diff line change @@ -5,5 +5,8 @@ export const tinySearchSmbTheme = {
5
5
'ti-search-selector-box-shadow' : 'var(--ti-common-shadow-3-up)' ,
6
6
'ti-search-input-btn-icon-size' : 'var(--ti-common-font-size-2)' ,
7
7
'ti-search-input-placeholder-text-color' : 'var(--ti-common-color-placeholder)' ,
8
- 'ti-search-input-left-svg-margin-right' : 'calc(0px - var(--ti-common-space-2x))'
8
+ 'ti-search-input-left-svg-margin-right' : 'calc(0px - var(--ti-common-space-2x))' ,
9
+ 'ti-search-input-btn-width' : 'var(--ti-common-size-7x)' ,
10
+ 'ti-search-input-btn-close-display' : 'inline-block' ,
11
+ 'ti-search-input-btn-close-margin-right' : '-3px'
9
12
}
Original file line number Diff line number Diff line change 40
40
--ti-search-input-btn-icon-size : var (--ti-common-font-size-1 , 14px );
41
41
// 搜索按钮宽度(hide)
42
42
--ti-search-input-btn-width : var (--ti-common-size-6x , 24px );
43
+ // 搜索关闭按钮右边距(hide)
44
+ --ti-search-input-btn-close-margin-right : var (--ti-common-space-0 , 0px );
45
+ // 搜索关闭按钮显示方式(hide)
46
+ --ti-search-input-btn-close-display : none ;
43
47
// 搜索框按钮行高(hide)
44
48
--ti-search-input-btn-line-height : var (--ti-search-input-height );
45
49
// 搜索图标边框色(hide)
Original file line number Diff line number Diff line change 60
60
:tabindex =" tabindex"
61
61
/>
62
62
<transition name =" tiny-transition-icon-scale-in" >
63
- <div class =" tiny-search__input-btn" v-if =" state.showClear && !state.collapse" >
63
+ <div class =" tiny-search__input-btn tiny-icon-close " v-if =" state.showClear && !state.collapse" >
64
64
<a @click =" clear($event)" >
65
65
<icon-close @mousedown.prevent class =" tiny-svg-size" />
66
66
</a >
You can’t perform that action at this time.
0 commit comments