ztxkui 4.2.23-600 → 4.2.23-602
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.
|
@@ -359,6 +359,7 @@ function getNewColumns(basicConfig, editableConfig, dynamicConfig, otherConfig)
|
|
|
359
359
|
_columns.forEach(function (column) {
|
|
360
360
|
var dataIndex = column.dataIndex || column.key;
|
|
361
361
|
if (typeof dataIndex === 'string' &&
|
|
362
|
+
!column.disablePrecisionControl &&
|
|
362
363
|
(isCustomDecimalField === null || isCustomDecimalField === void 0 ? void 0 : isCustomDecimalField(dataIndex, column))) {
|
|
363
364
|
autoDecimalFieldsRef.current[dataIndex] = {
|
|
364
365
|
autoDecimal: true,
|
|
@@ -379,7 +380,10 @@ function getNewColumns(basicConfig, editableConfig, dynamicConfig, otherConfig)
|
|
|
379
380
|
// 当前字段是否需要控制小数位(前提是必须要有物料描述字段并且传入了部门参数)
|
|
380
381
|
var isDecimal = false;
|
|
381
382
|
var dataIndex = col.dataIndex || col.key;
|
|
382
|
-
if (materialDescField &&
|
|
383
|
+
if (materialDescField &&
|
|
384
|
+
isDecimalField &&
|
|
385
|
+
typeof dataIndex === 'string' &&
|
|
386
|
+
!col.disablePrecisionControl) {
|
|
383
387
|
isDecimal = isDecimalField(dataIndex, col);
|
|
384
388
|
}
|
|
385
389
|
// 自定义设置小数位数
|
|
@@ -777,7 +781,8 @@ function getNewColumns(basicConfig, editableConfig, dynamicConfig, otherConfig)
|
|
|
777
781
|
// 如果命中了自定义显示字段,并且命中了是数字
|
|
778
782
|
var dataIndex = _column.dataIndex || _column.key;
|
|
779
783
|
var title = columnTitle !== null && columnTitle !== void 0 ? columnTitle : _column.title;
|
|
780
|
-
if (
|
|
784
|
+
if (!_column.disablePrecisionControl &&
|
|
785
|
+
(isCustomDecimalField === null || isCustomDecimalField === void 0 ? void 0 : isCustomDecimalField(dataIndex, __assign(__assign({}, _column), { title: title })))) {
|
|
781
786
|
// 去掉千分符 还是数字的话
|
|
782
787
|
var newValue = typeof selfResult === 'string'
|
|
783
788
|
? selfResult.replace(/,/g, '')
|
|
@@ -883,7 +888,8 @@ function getNewColumns(basicConfig, editableConfig, dynamicConfig, otherConfig)
|
|
|
883
888
|
// 如果命中了自定义显示字段,并且命中了是数字
|
|
884
889
|
var dataIndex = _column.dataIndex || _column.key;
|
|
885
890
|
var title = columnTitle !== null && columnTitle !== void 0 ? columnTitle : _column.title;
|
|
886
|
-
if (
|
|
891
|
+
if (!_column.disablePrecisionControl &&
|
|
892
|
+
(isCustomDecimalField === null || isCustomDecimalField === void 0 ? void 0 : isCustomDecimalField(dataIndex, __assign(__assign({}, _column), { title: title })))) {
|
|
887
893
|
// 去掉千分符 还是数字的话
|
|
888
894
|
var newValue_1 = typeof value === 'string' ? (_a = value === null || value === void 0 ? void 0 : value.replace) === null || _a === void 0 ? void 0 : _a.call(value, /,/g, '') : value;
|
|
889
895
|
if (isNumber(newValue_1) && isNumber(text)) {
|
|
@@ -55,6 +55,8 @@ export interface IColumnType<RecordType> extends Omit<ColumnType<RecordType>, 'r
|
|
|
55
55
|
dateFormat?: string;
|
|
56
56
|
/**精度 */
|
|
57
57
|
precision?: number;
|
|
58
|
+
/**是否禁用精度控制(包括isDecimalField、precisionHandle、isCustomDecimalField等动态精度处理)*/
|
|
59
|
+
disablePrecisionControl?: boolean;
|
|
58
60
|
/**是否加上千分符 */
|
|
59
61
|
thousand?: boolean;
|
|
60
62
|
/**表头别名 */
|
|
@@ -15,8 +15,8 @@ var TableAddDelColumn = function (_a) {
|
|
|
15
15
|
? hideDelIcon(record, index)
|
|
16
16
|
: hideDelIcon;
|
|
17
17
|
return (React.createElement(React.Fragment, null,
|
|
18
|
-
hiddenAddIcon ? null : (React.createElement("div", { title: i18next.t('新增一行'), className: "zt-column__add-icon" },
|
|
19
|
-
React.createElement(PlusOutlined,
|
|
18
|
+
hiddenAddIcon ? null : (React.createElement("div", { title: i18next.t('新增一行'), className: "zt-column__add-icon", onClick: debounce(onAddfn, 500) },
|
|
19
|
+
React.createElement(PlusOutlined, null))),
|
|
20
20
|
hiddenDelIcon ? null : (React.createElement(Popconfirm, { title: typeof delIconText === 'function'
|
|
21
21
|
? delIconText(record, index)
|
|
22
22
|
: delIconText, onConfirm: function () {
|
|
@@ -281,8 +281,20 @@ var ForgetPassword = function (_a) {
|
|
|
281
281
|
},
|
|
282
282
|
] },
|
|
283
283
|
React.createElement(Input.Password, { autoComplete: "off", placeholder: i18next.t('请输入新密码') })),
|
|
284
|
-
React.createElement("div",
|
|
285
|
-
React.createElement("p", { style: {
|
|
284
|
+
React.createElement("div", { style: { width: '55%', position: 'relative' } },
|
|
285
|
+
React.createElement("p", { style: {
|
|
286
|
+
color: '#ff6666',
|
|
287
|
+
width: '300px',
|
|
288
|
+
lineHeight: '16px',
|
|
289
|
+
position: 'absolute',
|
|
290
|
+
border: '1px solid #ff8888',
|
|
291
|
+
borderRadius: '4px',
|
|
292
|
+
padding: '5px',
|
|
293
|
+
zIndex: 100,
|
|
294
|
+
display: 'block',
|
|
295
|
+
background: 'rgba(255, 136, 136, .2)',
|
|
296
|
+
fontVariant: 'jis04',
|
|
297
|
+
} }, commonMessage.passwordMessage))),
|
|
286
298
|
React.createElement(Item, { name: "newPassword1", label: i18next.t('确认新密码'), rules: [
|
|
287
299
|
{ required: true, message: i18next.t('请确认密码') },
|
|
288
300
|
function (_a) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ztxkui",
|
|
3
|
-
"version": "4.2.23-
|
|
3
|
+
"version": "4.2.23-602",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "React components library",
|
|
6
6
|
"author": "zt-front-end",
|
|
@@ -111,4 +111,4 @@
|
|
|
111
111
|
"react-dom": ">=16.9.0",
|
|
112
112
|
"ztxkutils": ">=2.1.1"
|
|
113
113
|
}
|
|
114
|
-
}
|
|
114
|
+
}
|