Skip to content

Commit 54434b0

Browse files
authored
docs(Select): remove qs dependencie (#7541)
1 parent e01f26c commit 54434b0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

components/select/demo/search-box.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ Search with remote data.
3434
<script lang="ts" setup>
3535
import { ref } from 'vue';
3636
import jsonp from 'fetch-jsonp';
37-
import qs from 'qs';
3837
3938
let timeout: any;
4039
let currentValue = '';
@@ -47,11 +46,11 @@ function fetch(value: string, callback: any) {
4746
currentValue = value;
4847
4948
function fake() {
50-
const str = qs.stringify({
49+
const params = new URLSearchParams({
5150
code: 'utf-8',
5251
q: value,
5352
});
54-
jsonp(`https://suggest.taobao.com/sug?${str}`)
53+
jsonp(`https://suggest.taobao.com/sug?${params}`)
5554
.then(response => response.json())
5655
.then(d => {
5756
if (currentValue === value) {

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@
222222
"pretty-quick": "^3.0.0",
223223
"prismjs": "^1.23.0",
224224
"progress": "^2.0.3",
225-
"qs": "^6.10.3",
226225
"raw-loader": "^4.0.2",
227226
"remark-frontmatter": "^2.0.0",
228227
"remark-parse": "^8.0.0",

0 commit comments

Comments
 (0)