@titaui/pc 1.9.130 → 1.9.131
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.
|
@@ -57,7 +57,12 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
57
57
|
}, /*#__PURE__*/_react["default"].createElement(_rcQueueAnim["default"], {
|
|
58
58
|
type: "bottom",
|
|
59
59
|
delay: 0,
|
|
60
|
-
duration: 500
|
|
60
|
+
duration: 500,
|
|
61
|
+
animConfig: [{
|
|
62
|
+
opacity: [1, 0]
|
|
63
|
+
}, {
|
|
64
|
+
display: "none"
|
|
65
|
+
}]
|
|
61
66
|
}, data.map(function (item) {
|
|
62
67
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
68
|
className: "".concat(prefix, "__item-wrapper")
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var CustomTooltip = function CustomTooltip(_ref) {
|
|
13
|
+
var data = _ref.data;
|
|
14
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
15
|
+
style: {
|
|
16
|
+
padding: "10px",
|
|
17
|
+
display: "flex",
|
|
18
|
+
alignItems: "center"
|
|
19
|
+
}
|
|
20
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
21
|
+
style: {
|
|
22
|
+
width: "10px",
|
|
23
|
+
height: "10px",
|
|
24
|
+
background: data[0].color,
|
|
25
|
+
borderRadius: "50%",
|
|
26
|
+
marginRight: "4px"
|
|
27
|
+
}
|
|
28
|
+
}), data[0].name);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var _default = CustomTooltip;
|
|
32
|
+
exports["default"] = _default;
|
|
@@ -71,17 +71,10 @@ var defaultWordsCouldDate = new Array(10).fill([{
|
|
|
71
71
|
});
|
|
72
72
|
|
|
73
73
|
function TitaWordsCloud(props) {
|
|
74
|
-
var
|
|
75
|
-
styles = _props$styles === void 0 ? {
|
|
76
|
-
width: "100%",
|
|
77
|
-
height: "100%",
|
|
78
|
-
minHeight: "200px",
|
|
79
|
-
minWidth: "300px"
|
|
80
|
-
} : _props$styles,
|
|
74
|
+
var styles = props.styles,
|
|
81
75
|
wordsData = props.wordsData,
|
|
82
76
|
ImageMask = props.ImageMask,
|
|
83
|
-
|
|
84
|
-
fontSize = _props$fontSize === void 0 ? [8, 64] : _props$fontSize;
|
|
77
|
+
fontSize = props.fontSize;
|
|
85
78
|
var config = {
|
|
86
79
|
data: wordsData.length ? wordsData : defaultWordsCouldDate,
|
|
87
80
|
wordField: "text",
|
|
@@ -107,6 +100,9 @@ function TitaWordsCloud(props) {
|
|
|
107
100
|
// },
|
|
108
101
|
// },
|
|
109
102
|
// },
|
|
103
|
+
tooltip: {
|
|
104
|
+
fields: ["text"]
|
|
105
|
+
},
|
|
110
106
|
interactions: [{
|
|
111
107
|
type: "tooltip",
|
|
112
108
|
enable: wordsData.length !== 0
|
|
@@ -120,5 +116,15 @@ function TitaWordsCloud(props) {
|
|
|
120
116
|
}, /*#__PURE__*/_react["default"].createElement(_wordscloud["default"], config));
|
|
121
117
|
}
|
|
122
118
|
|
|
119
|
+
TitaWordsCloud.defaultProps = {
|
|
120
|
+
styles: {
|
|
121
|
+
width: "100%",
|
|
122
|
+
height: "100%",
|
|
123
|
+
minHeight: "200px",
|
|
124
|
+
minWidth: "300px"
|
|
125
|
+
},
|
|
126
|
+
ImageMask: "",
|
|
127
|
+
fontSize: [8, 64]
|
|
128
|
+
};
|
|
123
129
|
var _default = TitaWordsCloud;
|
|
124
130
|
exports["default"] = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@titaui/pc",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.131",
|
|
4
4
|
"nameCN": "",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"typescript": "^4.5.4"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@antv/g2plot": "^2.
|
|
72
|
+
"@antv/g2plot": "^2.4.8",
|
|
73
73
|
"@juggle/resize-observer": "^3.3.1",
|
|
74
74
|
"@titaui/dagre": "^0.8.8-pre",
|
|
75
75
|
"@titaui/rc-tree2": "^4.1.23",
|