Skip to content

Commit

Permalink
build: support dynamic import
Browse files Browse the repository at this point in the history
  • Loading branch information
brickspert committed Apr 5, 2020
1 parent e813646 commit 223874f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions .umirc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default {
]],
mode: 'site',
title: 'Umi Hooks',
dynamicImport: {},
manifest: {},
links: [{ rel: "manifest", href: "/asset-manifest.json" }],
hash: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"babel-plugin-transform-async-to-promises": "^0.8.15",
"create-test-server": "^3.0.1",
"del": "^5.1.0",
"dumi": "^1.0.8",
"dumi": "^1.0.13",
"enzyme": "^3.10.0",
"father": "^2.13.3",
"lerna": "^2.11.0",
Expand Down
3 changes: 0 additions & 3 deletions packages/hooks/src/useTextSelection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ function getRectFromSelection(selection: Selection | null): IRect {

/**
* 获取用户选取的文本或当前光标插入的位置
* TODO:
* 1. 指定监听元素
* 2. 选区位置、大小
* */
function useTextSelection<T extends TDom = TDom>(): [IState, MutableRefObject<T>];
function useTextSelection<T extends TDom = TDom>(arg: Arg): [IState];
Expand Down

0 comments on commit 223874f

Please sign in to comment.