assui 3.1.81 → 3.1.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-unused-expressions */
2
2
  /* eslint-disable no-restricted-syntax */
3
- import React, { useRef, useLayoutEffect } from 'react';
3
+ import React, { useRef, useEffect } from 'react';
4
4
  import useMount from "ahooks/es/useMount";
5
5
  import useUpdateEffect from "ahooks/es/useUpdateEffect";
6
6
  import classNames from 'classnames';
@@ -74,9 +74,10 @@ var ReactEchartCore = function ReactEchartCore(props) {
74
74
  chartRef.current.resize();
75
75
  }
76
76
  };
77
- useLayoutEffect(function () {
77
+ useEffect(function () {
78
78
  var resizeObserver = new ResizeObserver(function () {
79
79
  resizeChart();
80
+ console.log('ddd');
80
81
  });
81
82
  if (chartDomRef.current) {
82
83
  resizeObserver.observe(chartDomRef.current);
@@ -67,7 +67,9 @@ var defaultInit = {
67
67
  // images_upload_handler() {},
68
68
  plugins: defaultPlugins,
69
69
  toolbar: defaultToolbar,
70
- content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
70
+ content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }',
71
+ font_size_input_default_unit: 'px',
72
+ font_size_formats: '10px 12px 14px 16px 18px 20px 22px 24px 26px 28px 30px 32px 34px 36px'
71
73
  };
72
74
  var RichTextEditor = function RichTextEditor(props) {
73
75
  var init = props.init,
@@ -117,9 +117,10 @@ var ReactEchartCore = function ReactEchartCore(props) {
117
117
  chartRef.current.resize();
118
118
  }
119
119
  };
120
- (0, react_1.useLayoutEffect)(function () {
120
+ (0, react_1.useEffect)(function () {
121
121
  var resizeObserver = new resize_observer_polyfill_1["default"](function () {
122
122
  resizeChart();
123
+ console.log('ddd');
123
124
  });
124
125
  if (chartDomRef.current) {
125
126
  resizeObserver.observe(chartDomRef.current);
@@ -80,7 +80,9 @@ var defaultInit = {
80
80
  // images_upload_handler() {},
81
81
  plugins: defaultPlugins,
82
82
  toolbar: defaultToolbar,
83
- content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
83
+ content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }',
84
+ font_size_input_default_unit: 'px',
85
+ font_size_formats: '10px 12px 14px 16px 18px 20px 22px 24px 26px 28px 30px 32px 34px 36px'
84
86
  };
85
87
  var RichTextEditor = function RichTextEditor(props) {
86
88
  var init = props.init,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "3.1.81",
3
+ "version": "3.1.82",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -35,7 +35,7 @@
35
35
  "@types/react-beautiful-dnd": "^13.1.2",
36
36
  "@types/react-color": "^3.0.6",
37
37
  "@types/react-resizable": "^3.0.0",
38
- "a-icons": "^1.1.68",
38
+ "a-icons": "^1.1.69",
39
39
  "aa-utils": "^2.1.26",
40
40
  "ahooks": "^3.0.8",
41
41
  "bignumber.js": "^9.0.1",
@@ -81,5 +81,5 @@
81
81
  "node": ">=10.0.0"
82
82
  },
83
83
  "license": "MIT",
84
- "gitHead": "7cb07888f633efe2b62287c72d7b12028f8ed22c"
84
+ "gitHead": "d2f6d2764f0bc0d7c821a48a79c577a837b9c26e"
85
85
  }