Bläddra i källkod

[doc]Change for sveltekit

dufu1991 1 år sedan
förälder
incheckning
b4e3407594

+ 4 - 5
docs/site/src/lib/cmdk/CmdK.svelte

@@ -174,7 +174,6 @@
 	$effect(() => {
 		if ($isCmdKStore) {
 			const latelyListStr = localStorage.getItem('latelyList');
-			console.log(8978, latelyListStr);
 
 			latelyList = latelyListStr ? JSON.parse(latelyListStr) : [];
 			isCmdKStore.set(true);
@@ -227,7 +226,7 @@
 					<input
 						bind:this={cmdKInput}
 						bind:value={cmdKValue}
-						class="focus:ring-b w-full caret-primary placeholder:text-black/20 focus:outline-none dark:bg-black dark:caret-dark dark:placeholder:text-white/10"
+						class="focus:ring-b caret-primary dark:caret-dark w-full placeholder:text-black/20 focus:outline-none dark:bg-black dark:placeholder:text-white/10"
 						type="text"
 						placeholder={isZh ? '请输入组件关键字' : 'Please enter the component keyword'}
 					/>
@@ -263,7 +262,7 @@
 						<div class="border-l border-black/10 pl-3 dark:border-white/10">
 							<button
 								class="my-2 flex w-full cursor-pointer justify-between rounded border py-2 pl-4 {index === currentIndex && currentTab === 0
-									? 'border-primary bg-primary text-white dark:border-dark dark:bg-dark dark:text-black'
+									? 'border-primary bg-primary dark:border-dark dark:bg-dark text-white dark:text-black'
 									: 'text-balck border-primary-50 dark:border-dark-950 dark:text-white'}"
 								class:animate-shake={isDemoShake && index === 0}
 								onclick={() => clickCmdKFun(item, 0)}
@@ -284,7 +283,7 @@
 							</button>
 							<button
 								class="my-2 flex w-full cursor-pointer justify-between rounded border py-2 pl-4 {index === currentIndex && currentTab === 1
-									? 'border-primary bg-primary text-white dark:border-dark dark:bg-dark dark:text-black'
+									? 'border-primary bg-primary dark:border-dark dark:bg-dark text-white dark:text-black'
 									: 'text-balck border-primary-50 dark:border-dark-950 dark:text-white'}"
 								onclick={() => clickCmdKFun(item, 1)}
 							>
@@ -304,7 +303,7 @@
 							</button>
 							<button
 								class="my-2 flex w-full cursor-pointer justify-between rounded border py-2 pl-4 {index === currentIndex && currentTab === 2
-									? 'border-primary bg-primary text-white dark:border-dark dark:bg-dark dark:text-black'
+									? 'border-primary bg-primary dark:border-dark dark:bg-dark text-white dark:text-black'
 									: 'text-balck border-primary-50 dark:border-dark-950 dark:text-white'}"
 								class:animate-shake={isGuideShake && index === cmdKList.length - 1}
 								onclick={() => clickCmdKFun(item, 2)}

+ 0 - 1
docs/site/src/routes/guide/generator/Calendar.svelte

@@ -126,7 +126,6 @@
 			}))
 		};
 	});
-	console.log(444, allMonthData);
 
 	// 如果 infoDates 不为空,循环 allMonthData,循环 data,循环 infoDates,如果 infoDates 中的日期和 data 中的日期相同,将 infoDates 中的 info 赋值给 data 中的 info
 	// If infoDates is not empty, loop allMonthData, loop data, loop infoDates, if the date in infoDates is the same as the date in data, assign the info in infoDates to the info in data