react-overlay 还依赖的老版本 dom-helpers 所以不能升级

This commit is contained in:
2betop 2019-12-31 11:38:46 +08:00
parent 07dc57ccf7
commit 71de4463ea
4 changed files with 9 additions and 8 deletions

View File

@ -32,7 +32,7 @@
"autobind-decorator": "2.4.0", "autobind-decorator": "2.4.0",
"blueimp-canvastoblob": "2.1.0", "blueimp-canvastoblob": "2.1.0",
"classnames": "2.2.5", "classnames": "2.2.5",
"dom-helpers": "5.1.3", "dom-helpers": "3.3.1",
"downshift": "3.1.4", "downshift": "3.1.4",
"echarts": "^4.1.0", "echarts": "^4.1.0",
"flv.js": "1.5.0", "flv.js": "1.5.0",
@ -78,6 +78,7 @@
"devDependencies": { "devDependencies": {
"@types/async": "^2.0.45", "@types/async": "^2.0.45",
"@types/classnames": "^2.2.3", "@types/classnames": "^2.2.3",
"@types/dom-helpers": "^3.4.1",
"@types/history": "^4.6.0", "@types/history": "^4.6.0",
"@types/hoist-non-react-statics": "^3.0.1", "@types/hoist-non-react-statics": "^3.0.1",
"@types/jest": "^24.0.11", "@types/jest": "^24.0.11",

View File

@ -5,7 +5,7 @@
*/ */
import React from 'react'; import React from 'react';
import css from 'dom-helpers/css'; import css = require('dom-helpers/style/index');
import {ClassNamesFn, themeable} from '../theme'; import {ClassNamesFn, themeable} from '../theme';
import Transition, { import Transition, {
EXITED, EXITED,

View File

@ -14,7 +14,7 @@ import hoistNonReactStatic = require('hoist-non-react-statics');
import onClickOutside from 'react-onclickoutside'; import onClickOutside from 'react-onclickoutside';
import {Action} from '../types'; import {Action} from '../types';
import keycode from 'keycode'; import keycode from 'keycode';
import matches from 'dom-helpers/matches'; import matches = require('dom-helpers/query/matches');
import Overlay from '../components/Overlay'; import Overlay from '../components/Overlay';
import PopOver from '../components/PopOver'; import PopOver from '../components/PopOver';

View File

@ -1,11 +1,11 @@
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import hoistNonReactStatic = require('hoist-non-react-statics'); import hoistNonReactStatic = require('hoist-non-react-statics');
import domOwnerDocument from 'dom-helpers/ownerDocument'; import domOwnerDocument = require('dom-helpers/ownerDocument');
import css from 'dom-helpers/css'; import css = require('dom-helpers/style/index');
import getOffset from 'dom-helpers/offset'; import getOffset = require('dom-helpers/query/offset');
import getPosition from 'dom-helpers/position'; import getPosition = require('dom-helpers/query/position');
import getScrollTop from 'dom-helpers/scrollTop'; import getScrollTop = require('dom-helpers/query/scrollTop');
const bsMapping: { const bsMapping: {
[propName: string]: string; [propName: string]: string;