Skip to content

Commit

Permalink
Merge ebcb0b8 into cd2f3f9
Browse files Browse the repository at this point in the history
  • Loading branch information
micate committed Sep 12, 2018
2 parents cd2f3f9 + ebcb0b8 commit 7cedc08
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 9 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
History
=======

0.4.9
---

* `CHANGED` support js style export

0.4.8
---

Expand Down
20 changes: 11 additions & 9 deletions src/Tooltip.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import RcTooltip from 'rc-tooltip';

export default class Tooltip extends RcTooltip {
static displayName = 'uxcore-tooltip'
static propTypes = {
...RcTooltip.propTypes,
}
static defaultProps = {
...RcTooltip.defaultProps,
prefixCls: 'kuma-tooltip',
transitionName: 'tip-slide',
}
static displayName = 'uxcore-tooltip';

static propTypes = {
...RcTooltip.propTypes,
};

static defaultProps = {
...RcTooltip.defaultProps,
prefixCls: 'kuma-tooltip',
transitionName: 'tip-slide',
};
}
1 change: 1 addition & 0 deletions style/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '../src/Tooltip.less';
19 changes: 19 additions & 0 deletions webpack.custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const modifyVars = require('kuma-base/jsvars/orange');

/* eslint-disable no-param-reassign */
module.exports = (config) => {
config.module.rules.forEach((rule) => {
if (rule.test.toString() === /\.less$/.toString()) {
rule.use = [
'style-loader',
'css-loader',
{
loader: 'less-loader',
options: {
modifyVars,
},
},
];
}
});
};

0 comments on commit 7cedc08

Please sign in to comment.