diff --git a/registry/lib/components/style/hide/trending-search/index.ts b/registry/lib/components/style/hide/trending-search/index.ts index bf5ef751d..b6bbf495f 100644 --- a/registry/lib/components/style/hide/trending-search/index.ts +++ b/registry/lib/components/style/hide/trending-search/index.ts @@ -14,7 +14,11 @@ export const component = defineComponentMetadata({ entry: async () => { allMutations(records => { records.forEach(record => { - if (record.target instanceof HTMLInputElement && record.target.placeholder !== '搜索') { + if ( + record.target instanceof HTMLInputElement && + record.target.classList.contains('nav-search-input') && + record.target.placeholder !== '搜索' + ) { record.target.placeholder = '搜索' } })