mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-01 19:48:38 +08:00
docs(Select): remove qs dependencie (#7541)
This commit is contained in:
parent
e01f26c541
commit
54434b0931
@ -34,7 +34,6 @@ Search with remote data.
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import jsonp from 'fetch-jsonp';
|
||||
import qs from 'qs';
|
||||
|
||||
let timeout: any;
|
||||
let currentValue = '';
|
||||
@ -47,11 +46,11 @@ function fetch(value: string, callback: any) {
|
||||
currentValue = value;
|
||||
|
||||
function fake() {
|
||||
const str = qs.stringify({
|
||||
const params = new URLSearchParams({
|
||||
code: 'utf-8',
|
||||
q: value,
|
||||
});
|
||||
jsonp(`https://suggest.taobao.com/sug?${str}`)
|
||||
jsonp(`https://suggest.taobao.com/sug?${params}`)
|
||||
.then(response => response.json())
|
||||
.then(d => {
|
||||
if (currentValue === value) {
|
||||
|
@ -222,7 +222,6 @@
|
||||
"pretty-quick": "^3.0.0",
|
||||
"prismjs": "^1.23.0",
|
||||
"progress": "^2.0.3",
|
||||
"qs": "^6.10.3",
|
||||
"raw-loader": "^4.0.2",
|
||||
"remark-frontmatter": "^2.0.0",
|
||||
"remark-parse": "^8.0.0",
|
||||
|
Loading…
Reference in New Issue
Block a user