File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11// more config: https://d.umijs.org/config
22import { defineConfig } from 'dumi' ;
3+ import path from 'path' ;
34
45const basePath = process . env . GITHUB_ACTIONS ? '/util/' : '/' ;
56const publicPath = process . env . GITHUB_ACTIONS ? '/util/' : '/' ;
@@ -14,4 +15,7 @@ export default defineConfig({
1415 exportStatic : { } ,
1516 base : basePath ,
1617 publicPath,
18+ alias : {
19+ 'rc-util/es' : path . resolve ( __dirname , 'src' ) ,
20+ } ,
1721} ) ;
Original file line number Diff line number Diff line change 11import React , { useRef } from 'react' ;
22import { useLockFocus } from '../../src/Dom/focus' ;
3- import './focus.css' ;
43
54export default function FocusDemo ( ) {
65 const containerRef = useRef < HTMLDivElement > ( null ) ;
Original file line number Diff line number Diff line change 1010 "paths" : {
1111 "@/*" : [" src/*" ],
1212 "@@/*" : [" src/.dumi/*" ],
13- "rc-util" : [" src/index.tsx " ],
13+ "rc-util" : [" src/index.ts " ],
1414 "rc-util/es/*" : [" src/*" ]
1515 }
1616 }
You can’t perform that action at this time.
0 commit comments