File tree Expand file tree Collapse file tree 4 files changed +19
-13
lines changed Expand file tree Collapse file tree 4 files changed +19
-13
lines changed Load Diff This file was deleted. 
Original file line number Diff line number Diff line change 55
66	let  { initTheme } =  $props (); 
77
8- 	let  BtnList =  $state ([false , true , false ]); 
8+ 	let  BtnList =  $state ([false , false , false ]); 
99	let  currentBtn =  $state (); 
1010
1111	function  setTheme (theme ) { 
2929
3030	//  init theme button 
3131	if  (initTheme ===  ' Light'  
32- 		BtnList[ 0 ]  =   true ; 
32+ 		setCurrentBtn ( 0 ) ; 
3333	} else  if  (initTheme ===  ' Dark'  
34- 		BtnList[ 1 ]  =   true ; 
34+ 		setCurrentBtn ( 1 ) ; 
3535	} else  { 
36- 		BtnList[ 2 ]  =   true ; 
36+ 		setCurrentBtn ( 2 ) ; 
3737	} 
3838	$inspect (initTheme) 
3939script >
Original file line number Diff line number Diff line change 1010
1111	let  c =  $state (' sun'  
1212
13- 	if (data .c  ===  ' moon ' ) { 
13+ 	if   (data .c  ===  ' Dark ' )  { 
1414		c =  ' moon'  
1515	} 
1616
1919	}; 
2020
2121	let  md =  $state (' # hello world'  
22- 	const  plugins  =  [gfmPlugin (),headingIdPlugin]; 
22+ 	const  plugins  =  [gfmPlugin (),  headingIdPlugin]; 
2323script >
2424
25- <H1  h  = {data .h 1}></H1 >
26- <H1  h  = {data .c }></H1 >
27- <ZIcon  option  = {c }></ZIcon >
28- 
25+ <div >
26+ 	<H1  h ={data .h1 }></H1 >
27+ 	<H1  h ={data .c }></H1 >
28+ 	<ZIcon  option ={c }></ZIcon >
29+ </div >
2930<Markdown  md ={data .mdContent } {plugins } />
31+ 
32+ <style >
33+ 	div  :global{ 
34+ 		svg  *{ 
35+ 			fill var (--all-svg-color ); 
36+ 		} 
37+ 	} 
38+ style >
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments