@zat-design/sisyphus-react 3.8.2-beta.14 → 3.8.2-beta.16
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/coverage/lcov-report/src/.umi/core/devScripts.ts.html +241 -0
- package/coverage/lcov-report/src/.umi/core/history.ts.html +148 -0
- package/coverage/lcov-report/src/.umi/core/index.html +206 -0
- package/coverage/lcov-report/src/.umi/core/plugin.ts.html +109 -0
- package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +160 -0
- package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +97 -0
- package/coverage/lcov-report/src/.umi/core/routes.ts.html +26050 -0
- package/coverage/lcov-report/src/.umi/core/umiExports.ts.html +112 -0
- package/coverage/lcov-report/src/.umi/dumi/demos/index.html +116 -0
- package/coverage/lcov-report/src/.umi/dumi/demos/index.ts.html +6340 -0
- package/coverage/lcov-report/src/.umi/dumi/index.html +116 -0
- package/coverage/lcov-report/src/.umi/dumi/layout.tsx.html +109 -0
- package/coverage/lcov-report/src/.umi/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-antd/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-antd/runtime.tsx.html +172 -0
- package/coverage/lcov-report/src/.umi/plugin-helmet/exports.ts.html +94 -0
- package/coverage/lcov-report/src/.umi/plugin-helmet/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/Provider.tsx.html +196 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/exports.ts.html +106 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/index.html +146 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/models/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/models/initialState.ts.html +88 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/runtime.tsx.html +124 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/SelectLang.tsx.html +1246 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/index.html +161 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/locale.tsx.html +268 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/localeExports.ts.html +778 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/runtime.tsx.html +115 -0
- package/coverage/lcov-report/src/.umi/plugin-model/Provider.tsx.html +202 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/constant.tsx.html +97 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/dispatcher.tsx.html +142 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/executor.tsx.html +334 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/index.html +146 -0
- package/coverage/lcov-report/src/.umi/plugin-model/index.html +146 -0
- package/coverage/lcov-report/src/.umi/plugin-model/runtime.tsx.html +121 -0
- package/coverage/lcov-report/src/.umi/plugin-model/useModel.tsx.html +298 -0
- package/coverage/lcov-report/src/.umi/plugin-request/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-request/request.ts.html +919 -0
- package/coverage/lcov-report/src/.umi/umi.ts.html +268 -0
- package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +7 -6
- package/es/ProEditTable/components/RenderField/index.js +1 -0
- package/es/ProForm/components/render/ChangedWrapper.js +4 -2
- package/es/ProForm/components/render/Render.js +1 -0
- package/es/ProTable/components/FormatColumn/index.js +20 -10
- package/es/ProTable/components/RenderColumn/index.d.ts +1 -0
- package/es/ProTable/components/RenderColumn/index.js +22 -7
- package/lib/ProEditTable/components/RenderField/ListChangedWrapper.js +10 -9
- package/lib/ProEditTable/components/RenderField/index.js +1 -0
- package/lib/ProForm/components/render/ChangedWrapper.js +4 -2
- package/lib/ProForm/components/render/Render.js +1 -0
- package/lib/ProTable/components/FormatColumn/index.js +20 -10
- package/lib/ProTable/components/RenderColumn/index.d.ts +1 -0
- package/lib/ProTable/components/RenderColumn/index.js +22 -7
- package/package.json +1 -1
- package/.vscode/extensions.json +0 -5
|
@@ -43,7 +43,8 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
43
43
|
_column$originalDiffT = column.originalDiffTip,
|
|
44
44
|
originalDiffTip = _column$originalDiffT === void 0 ? true : _column$originalDiffT,
|
|
45
45
|
_column$toolTipProps = column.toolTipProps,
|
|
46
|
-
toolTipProps = _column$toolTipProps === void 0 ? {} : _column$toolTipProps
|
|
46
|
+
toolTipProps = _column$toolTipProps === void 0 ? {} : _column$toolTipProps,
|
|
47
|
+
minWidth = column.minWidth;
|
|
47
48
|
var _toolTipProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, toolTipProps), wrapToolTipProps);
|
|
48
49
|
var _originalDiffTip = diffToolTip !== null && diffToolTip !== void 0 ? diffToolTip : originalDiffTip;
|
|
49
50
|
// 前缀处理
|
|
@@ -91,7 +92,8 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
91
92
|
node: _value,
|
|
92
93
|
currentValue: _value,
|
|
93
94
|
originalDiffTip: _originalDiffTip,
|
|
94
|
-
toolTipProps: _toolTipProps
|
|
95
|
+
toolTipProps: _toolTipProps,
|
|
96
|
+
minWidth: minWidth
|
|
95
97
|
});
|
|
96
98
|
};
|
|
97
99
|
return;
|
|
@@ -137,7 +139,8 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
137
139
|
value: value,
|
|
138
140
|
currentValue: renderValue,
|
|
139
141
|
originalDiffTip: _originalDiffTip,
|
|
140
|
-
toolTipProps: _toolTipProps
|
|
142
|
+
toolTipProps: _toolTipProps,
|
|
143
|
+
minWidth: minWidth
|
|
141
144
|
});
|
|
142
145
|
};
|
|
143
146
|
// 千分位, 千分位带CNY前缀
|
|
@@ -167,7 +170,8 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
167
170
|
value: value,
|
|
168
171
|
currentValue: renderValue,
|
|
169
172
|
originalDiffTip: _originalDiffTip,
|
|
170
|
-
toolTipProps: _toolTipProps
|
|
173
|
+
toolTipProps: _toolTipProps,
|
|
174
|
+
minWidth: minWidth
|
|
171
175
|
});
|
|
172
176
|
};
|
|
173
177
|
} else if (['datePicker', 'date', 'dateTime', 'dateStartTime', 'dateEndTime', 'dateStartEndTime'].includes(valueType)) {
|
|
@@ -220,7 +224,8 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
220
224
|
value: value,
|
|
221
225
|
currentValue: renderValue,
|
|
222
226
|
originalDiffTip: _originalDiffTip,
|
|
223
|
-
toolTipProps: _toolTipProps
|
|
227
|
+
toolTipProps: _toolTipProps,
|
|
228
|
+
minWidth: minWidth
|
|
224
229
|
});
|
|
225
230
|
};
|
|
226
231
|
} else if (['enumName', 'enumCodeName'].includes(valueType)) {
|
|
@@ -258,7 +263,8 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
258
263
|
value: value,
|
|
259
264
|
currentValue: renderValue,
|
|
260
265
|
originalDiffTip: _originalDiffTip,
|
|
261
|
-
toolTipProps: _toolTipProps
|
|
266
|
+
toolTipProps: _toolTipProps,
|
|
267
|
+
minWidth: minWidth
|
|
262
268
|
});
|
|
263
269
|
};
|
|
264
270
|
} else if (precision || prefix || suffix) {
|
|
@@ -285,7 +291,8 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
285
291
|
value: value,
|
|
286
292
|
currentValue: renderValue,
|
|
287
293
|
originalDiffTip: _originalDiffTip,
|
|
288
|
-
toolTipProps: _toolTipProps
|
|
294
|
+
toolTipProps: _toolTipProps,
|
|
295
|
+
minWidth: minWidth
|
|
289
296
|
});
|
|
290
297
|
};
|
|
291
298
|
} else if (valueType === 'address') {
|
|
@@ -341,7 +348,8 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
341
348
|
node: value,
|
|
342
349
|
value: value,
|
|
343
350
|
currentValue: value,
|
|
344
|
-
toolTipProps: _toolTipProps
|
|
351
|
+
toolTipProps: _toolTipProps,
|
|
352
|
+
minWidth: minWidth
|
|
345
353
|
}), suffixNode(value, record, index)]
|
|
346
354
|
});
|
|
347
355
|
};
|
|
@@ -362,7 +370,8 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
362
370
|
value: value,
|
|
363
371
|
currentValue: value || '-',
|
|
364
372
|
originalDiffTip: _originalDiffTip,
|
|
365
|
-
toolTipProps: _toolTipProps
|
|
373
|
+
toolTipProps: _toolTipProps,
|
|
374
|
+
minWidth: minWidth
|
|
366
375
|
}), suffixNode(value, record, index)]
|
|
367
376
|
});
|
|
368
377
|
};
|
|
@@ -385,7 +394,8 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
385
394
|
value: value,
|
|
386
395
|
currentValue: value || '-',
|
|
387
396
|
originalDiffTip: _originalDiffTip,
|
|
388
|
-
toolTipProps: _toolTipProps
|
|
397
|
+
toolTipProps: _toolTipProps,
|
|
398
|
+
minWidth: minWidth
|
|
389
399
|
});
|
|
390
400
|
};
|
|
391
401
|
}
|
|
@@ -27,7 +27,8 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
27
27
|
originalValue = props.originalValue,
|
|
28
28
|
originalDiffTip = props.originalDiffTip,
|
|
29
29
|
_props$toolTipProps = props.toolTipProps,
|
|
30
|
-
toolTipProps = _props$toolTipProps === void 0 ? {} : _props$toolTipProps
|
|
30
|
+
toolTipProps = _props$toolTipProps === void 0 ? {} : _props$toolTipProps,
|
|
31
|
+
minWidth = props.minWidth;
|
|
31
32
|
var _useSetState = (0, _ahooks.useSetState)({
|
|
32
33
|
tooltip: false
|
|
33
34
|
}),
|
|
@@ -40,7 +41,8 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
40
41
|
if (ellipsis) {
|
|
41
42
|
renderNode = (0, _jsxRuntime.jsx)(Text, {
|
|
42
43
|
style: {
|
|
43
|
-
width: currentValue === '-' ? 32.5 : width
|
|
44
|
+
width: currentValue === '-' ? 32.5 : width,
|
|
45
|
+
minWidth: minWidth
|
|
44
46
|
},
|
|
45
47
|
ellipsis: {
|
|
46
48
|
tooltip: false
|
|
@@ -51,7 +53,8 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
51
53
|
return (0, _jsxRuntime.jsx)(_antd.Tooltip, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
52
54
|
className: "varied-cell",
|
|
53
55
|
style: {
|
|
54
|
-
width: width
|
|
56
|
+
width: width,
|
|
57
|
+
minWidth: minWidth
|
|
55
58
|
},
|
|
56
59
|
title: originalDiffTip ? (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
57
60
|
children: ["\u521D\u59CB\u503C\uFF1A", originalValue, (0, _jsxRuntime.jsx)("br", {}), ellipsis ? "\u5F53\u524D\u503C\uFF1A".concat(currentValue) : undefined]
|
|
@@ -66,7 +69,8 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
66
69
|
return (0, _jsxRuntime.jsx)("span", {
|
|
67
70
|
className: "varied-cell",
|
|
68
71
|
style: {
|
|
69
|
-
width: width
|
|
72
|
+
width: width,
|
|
73
|
+
minWidth: minWidth
|
|
70
74
|
},
|
|
71
75
|
children: renderNode
|
|
72
76
|
});
|
|
@@ -137,7 +141,12 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
137
141
|
}
|
|
138
142
|
}, toolTipProps);
|
|
139
143
|
if (!value) {
|
|
140
|
-
return
|
|
144
|
+
return (0, _jsxRuntime.jsx)("div", {
|
|
145
|
+
style: {
|
|
146
|
+
minWidth: minWidth
|
|
147
|
+
},
|
|
148
|
+
children: "-"
|
|
149
|
+
});
|
|
141
150
|
}
|
|
142
151
|
return (0, _jsxRuntime.jsx)(_antd.Tooltip, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
143
152
|
title: value,
|
|
@@ -150,7 +159,8 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
150
159
|
}, tooltipProps), {}, {
|
|
151
160
|
children: (0, _jsxRuntime.jsx)(Text, {
|
|
152
161
|
style: {
|
|
153
|
-
width: width
|
|
162
|
+
width: width,
|
|
163
|
+
minWidth: minWidth
|
|
154
164
|
},
|
|
155
165
|
ellipsis: true,
|
|
156
166
|
onMouseOver: handleMouseOver,
|
|
@@ -159,6 +169,11 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
159
169
|
})
|
|
160
170
|
}));
|
|
161
171
|
}
|
|
162
|
-
return
|
|
172
|
+
return (0, _jsxRuntime.jsx)("div", {
|
|
173
|
+
style: {
|
|
174
|
+
minWidth: minWidth
|
|
175
|
+
},
|
|
176
|
+
children: value || value === 0 ? node : '-'
|
|
177
|
+
});
|
|
163
178
|
};
|
|
164
179
|
var _default = exports.default = RenderColumn;
|
package/package.json
CHANGED