easy3wui 1.5.47-beta1 → 1.5.47-beta3
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.
- package/lib/Easy3wGridPage/index.js +32 -20
- package/package.json +1 -1
|
@@ -180,10 +180,26 @@ var Easy3wGridPage = function (_Component) {
|
|
|
180
180
|
if (_comonConfig.dataDesensitizationFlag) {
|
|
181
181
|
renderTextDesensitize = _this2.getcheckDesensitizeData(text, item);
|
|
182
182
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
183
|
+
var dataDesensitizationFlagTrue = item.dataDesensitizationFlagTrue;
|
|
184
|
+
|
|
185
|
+
if (_comonConfig.dataDesensitizationFlag && dataDesensitizationFlagTrue) {
|
|
186
|
+
if (text && text.length * 14 > 160) {
|
|
187
|
+
return _react2['default'].createElement(
|
|
188
|
+
_tooltip2['default'],
|
|
189
|
+
{ placement: 'topLeft', title: _react2['default'].createElement(
|
|
190
|
+
'span',
|
|
191
|
+
null,
|
|
192
|
+
_this2.state[dataIndex + '-' + id + '-' + index + '-dataDesensitizationEyeFlag'] ? text : renderTextDesensitize,
|
|
193
|
+
' ',
|
|
194
|
+
_react2['default'].createElement(
|
|
195
|
+
'a',
|
|
196
|
+
{ onClick: function onClick() {
|
|
197
|
+
return _this2.touchImplicit(dataIndex, id, index);
|
|
198
|
+
} },
|
|
199
|
+
_react2['default'].createElement(_icon2['default'], { type: _this2.state[dataIndex + '-' + id + '-' + index + '-dataDesensitizationEyeFlag'] ? 'eye' : 'eye-invisible' })
|
|
200
|
+
)
|
|
201
|
+
), style: { whiteSpace: 'pre-wrap', wordWrap: 'break-word' } },
|
|
202
|
+
_react2['default'].createElement(
|
|
187
203
|
'span',
|
|
188
204
|
null,
|
|
189
205
|
_this2.state[dataIndex + '-' + id + '-' + index + '-dataDesensitizationEyeFlag'] ? text : renderTextDesensitize,
|
|
@@ -195,8 +211,10 @@ var Easy3wGridPage = function (_Component) {
|
|
|
195
211
|
} },
|
|
196
212
|
_react2['default'].createElement(_icon2['default'], { type: _this2.state[dataIndex + '-' + id + '-' + index + '-dataDesensitizationEyeFlag'] ? 'eye' : 'eye-invisible' })
|
|
197
213
|
)
|
|
198
|
-
)
|
|
199
|
-
|
|
214
|
+
)
|
|
215
|
+
);
|
|
216
|
+
} else {
|
|
217
|
+
return _react2['default'].createElement(
|
|
200
218
|
'span',
|
|
201
219
|
null,
|
|
202
220
|
_this2.state[dataIndex + '-' + id + '-' + index + '-dataDesensitizationEyeFlag'] ? text : renderTextDesensitize,
|
|
@@ -208,22 +226,16 @@ var Easy3wGridPage = function (_Component) {
|
|
|
208
226
|
} },
|
|
209
227
|
_react2['default'].createElement(_icon2['default'], { type: _this2.state[dataIndex + '-' + id + '-' + index + '-dataDesensitizationEyeFlag'] ? 'eye' : 'eye-invisible' })
|
|
210
228
|
)
|
|
211
|
-
)
|
|
212
|
-
|
|
213
|
-
} else {
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
} else if (text && text.length * 14 > 160) {
|
|
214
232
|
return _react2['default'].createElement(
|
|
215
|
-
'
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
' ',
|
|
219
|
-
_react2['default'].createElement(
|
|
220
|
-
'a',
|
|
221
|
-
{ onClick: function onClick() {
|
|
222
|
-
return _this2.touchImplicit(dataIndex, id, index);
|
|
223
|
-
} },
|
|
224
|
-
_react2['default'].createElement(_icon2['default'], { type: _this2.state[dataIndex + '-' + id + '-' + index + '-dataDesensitizationEyeFlag'] ? 'eye' : 'eye-invisible' })
|
|
225
|
-
)
|
|
233
|
+
_tooltip2['default'],
|
|
234
|
+
{ placement: 'topLeft', title: text, style: { whiteSpace: 'pre-wrap', wordWrap: 'break-word' } },
|
|
235
|
+
text
|
|
226
236
|
);
|
|
237
|
+
} else {
|
|
238
|
+
return text;
|
|
227
239
|
}
|
|
228
240
|
};
|
|
229
241
|
if (item.type === 'numeralFormat') {
|