Merge pull request #25 from tobiaslins/support-react
first needed modifications to support react
This commit is contained in:
commit
3a52a56171
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ node_modules
|
|||||||
|
|
||||||
# misc
|
# misc
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
yarn.lock
|
||||||
|
|||||||
1
dist/frappe-charts.min.css
vendored
Normal file
1
dist/frappe-charts.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -28,6 +28,7 @@ export default [
|
|||||||
plugins: [
|
plugins: [
|
||||||
postcss({
|
postcss({
|
||||||
extensions: [ '.less' ],
|
extensions: [ '.less' ],
|
||||||
|
extract: 'dist/frappe-charts.min.css',
|
||||||
plugins: [
|
plugins: [
|
||||||
nested(),
|
nested(),
|
||||||
cssnext({ warnForDuplicates: false }),
|
cssnext({ warnForDuplicates: false }),
|
||||||
|
|||||||
@ -22,7 +22,7 @@ export default class BaseChart {
|
|||||||
}) {
|
}) {
|
||||||
this.raw_chart_args = arguments[0];
|
this.raw_chart_args = arguments[0];
|
||||||
|
|
||||||
this.parent = document.querySelector(parent);
|
this.parent = typeof parent === 'String' ? document.querySelector(parent) : parent;
|
||||||
this.title = title;
|
this.title = title;
|
||||||
this.subtitle = subtitle;
|
this.subtitle = subtitle;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user