diff --git a/src/components/Search/Index.vue b/src/components/Search/Index.vue index c8a69a4..7f1b730 100644 --- a/src/components/Search/Index.vue +++ b/src/components/Search/Index.vue @@ -52,11 +52,23 @@ function handleCancelClick() { position: relative; :deep(.van-search) { padding: 0; - //margin: 0 10px; border-radius: 0; background-color: #fff; } + :deep(.van-search__content) { + background-color: #fff; + } + + border-radius: 18px; + border: solid 1.5px var(--primary-color); + background-color: #fff; + + display: grid; + grid-template-columns: 1fr 60px; + padding: 0 10px; + overflow: hidden; + .search { margin: 0 10px; cursor: pointer; @@ -77,20 +89,5 @@ function handleCancelClick() { pointer-events: none; // 确保不影响点击事件 } } - - :deep(.van-search__content) { - background-color: #fff; - } - - border-radius: 18px; - border: solid 1px var(--primary-color); - background-color: #fff; - - //width: 100vw; - display: grid; - grid-template-columns: 1fr 60px; - padding: 0 10px; - // margin: 0 10px; - overflow: hidden; } diff --git a/vite.config.ts b/vite.config.ts index 4eb6cbd..0b4fed0 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -68,7 +68,7 @@ export default defineConfig(({ mode }) => { }, cacheDir: '.tmp', plugins: [ - vueDevTools(), + // vueDevTools(), vue({ template: { compilerOptions: {