@@ -21,11 +21,8 @@ Lookup-Patterns - Certain Category.
21
21
v-model:value =" value"
22
22
class =" certain-category-search"
23
23
dropdown-class-name =" certain-category-search-dropdown"
24
- :dropdown-match-select-width =" false"
25
- :dropdown-style =" { width: '300px' }"
26
- size =" large"
27
- style =" width : 100% "
28
- option-label-prop =" value"
24
+ :dropdown-match-select-width =" 500"
25
+ style =" width : 250px "
29
26
:options =" dataSource"
30
27
>
31
28
<template #option =" item " >
@@ -52,30 +49,33 @@ Lookup-Patterns - Certain Category.
52
49
</a >
53
50
</template >
54
51
<template v-else >
55
- {{ item.title }}
56
- <span class =" certain-search-item-count" >{{ item.count }} people</span >
52
+ <div style =" display : flex ; justify-content : space-between " >
53
+ {{ item.value }}
54
+ <span >
55
+ <UserOutlined />
56
+ {{ item.count }}
57
+ </span >
58
+ </div >
57
59
</template >
58
60
</template >
59
- <a-input placeholder =" input here" >
60
- <template #suffix ><search-outlined class =" certain-category-icon" /></template >
61
- </a-input >
61
+ <a-input-search placeholder =" input here" size =" large" ></a-input-search >
62
62
</a-auto-complete >
63
63
</div >
64
64
</template >
65
65
66
66
<script lang="ts">
67
- import { SearchOutlined } from ' @ant-design/icons-vue' ;
68
67
import { defineComponent , ref } from ' vue' ;
68
+ import { UserOutlined } from ' @ant-design/icons-vue' ;
69
69
const dataSource = [
70
70
{
71
71
value: ' Libraries' ,
72
72
options: [
73
73
{
74
- value: ' AntDesign ' ,
74
+ value: ' AntDesignVue ' ,
75
75
count: 10000 ,
76
76
},
77
77
{
78
- value: ' AntDesign UI' ,
78
+ value: ' AntDesignVue UI' ,
79
79
count: 10600 ,
80
80
},
81
81
],
@@ -84,11 +84,11 @@ const dataSource = [
84
84
value: ' Solutions' ,
85
85
options: [
86
86
{
87
- value: ' AntDesign UI FAQ' ,
87
+ value: ' AntDesignVue UI FAQ' ,
88
88
count: 60100 ,
89
89
},
90
90
{
91
- value: ' AntDesign FAQ' ,
91
+ value: ' AntDesignVue FAQ' ,
92
92
count: 30010 ,
93
93
},
94
94
],
@@ -97,7 +97,7 @@ const dataSource = [
97
97
value: ' Articles' ,
98
98
options: [
99
99
{
100
- value: ' AntDesign design language' ,
100
+ value: ' AntDesignVue design language' ,
101
101
count: 100000 ,
102
102
},
103
103
],
@@ -108,7 +108,7 @@ const dataSource = [
108
108
];
109
109
export default defineComponent ({
110
110
components: {
111
- SearchOutlined ,
111
+ UserOutlined ,
112
112
},
113
113
setup() {
114
114
return {
@@ -142,27 +142,3 @@ export default defineComponent({
142
142
max-height : 300px ;
143
143
}
144
144
</style >
145
-
146
- <style scoped>
147
- .certain-category-search-wrapper
148
- :deep(.certain-category-search.ant-select-auto-complete )
149
- .ant-input-affix-wrapper
150
- .ant-input-suffix {
151
- right : 12px ;
152
- }
153
- .certain-category-search-wrapper :deep(.certain-search-item-count ) {
154
- position : absolute ;
155
- color : #999 ;
156
- right : 16px ;
157
- }
158
- .certain-category-search-wrapper
159
- :deep(.certain-category-search.ant-select-focused )
160
- .certain-category-icon {
161
- color : #108ee9 ;
162
- }
163
- .certain-category-search-wrapper :deep(.certain-category-icon ) {
164
- color : #6e6e6e ;
165
- transition : all 0.3s cubic-bezier (0.645 , 0.045 , 0.355 , 1 );
166
- font-size : 16px ;
167
- }
168
- </style >
0 commit comments