@zat-design/sisyphus-react 3.4.9-beta.13 → 3.4.9-beta.15
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/dist/index.esm.css +1 -1
- package/dist/less.esm.css +1 -1
- package/es/ProEditTable/propsType.d.ts +2 -2
- package/es/ProForm/components/base/InputNumber/index.js +4 -1
- package/es/ProLayout/style/index.less +1 -1
- package/lib/ProEditTable/propsType.d.ts +2 -2
- package/lib/ProForm/components/base/InputNumber/index.js +4 -1
- package/lib/ProLayout/style/index.less +1 -1
- package/package.json +1 -1
package/dist/index.esm.css
CHANGED
|
@@ -1226,7 +1226,7 @@
|
|
|
1226
1226
|
.pro-layout.pro-layout-light .pro-collapse.pro-collapse-no-title .pro-header-no-describe {
|
|
1227
1227
|
padding: 0 !important;
|
|
1228
1228
|
}
|
|
1229
|
-
.pro-layout.pro-layout-light .pro-collapse .ant-collapse-item-active.pro-collapse-panel .ant-collapse-header {
|
|
1229
|
+
.pro-layout.pro-layout-light .pro-collapse .ant-collapse-item-active.pro-collapse-panel > .ant-collapse-header {
|
|
1230
1230
|
border-radius: var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px) 0 0 !important;
|
|
1231
1231
|
}
|
|
1232
1232
|
.pro-layout.pro-layout-light .pro-collapse .pro-collapse-content {
|
package/dist/less.esm.css
CHANGED
|
@@ -1226,7 +1226,7 @@
|
|
|
1226
1226
|
.pro-layout.pro-layout-light .pro-collapse.pro-collapse-no-title .pro-header-no-describe {
|
|
1227
1227
|
padding: 0 !important;
|
|
1228
1228
|
}
|
|
1229
|
-
.pro-layout.pro-layout-light .pro-collapse .ant-collapse-item-active.pro-collapse-panel .ant-collapse-header {
|
|
1229
|
+
.pro-layout.pro-layout-light .pro-collapse .ant-collapse-item-active.pro-collapse-panel > .ant-collapse-header {
|
|
1230
1230
|
border-radius: var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px) 0 0 !important;
|
|
1231
1231
|
}
|
|
1232
1232
|
.pro-layout.pro-layout-light .pro-collapse .pro-collapse-content {
|
|
@@ -66,12 +66,12 @@ export interface BaseActionProps<T = any> {
|
|
|
66
66
|
* @description 按钮前置校验事件
|
|
67
67
|
* @default -
|
|
68
68
|
*/
|
|
69
|
-
onClick?:
|
|
69
|
+
onClick?: (record?: any, index?: number) => any;
|
|
70
70
|
/**
|
|
71
71
|
* @description 按钮前置校验事件
|
|
72
72
|
* @default -
|
|
73
73
|
*/
|
|
74
|
-
onHandle?:
|
|
74
|
+
onHandle?: (record?: any, index?: number) => any;
|
|
75
75
|
/**
|
|
76
76
|
* @description 支持antd的Button属性
|
|
77
77
|
* @default -
|
|
@@ -227,6 +227,10 @@ var InputNumber = function InputNumber(props) {
|
|
|
227
227
|
min: Number(_min),
|
|
228
228
|
max: Number(_max)
|
|
229
229
|
};
|
|
230
|
+
// 截取数字指定精度
|
|
231
|
+
if (props.precision !== undefined) {
|
|
232
|
+
value = Number(value.toFixed(props.precision));
|
|
233
|
+
}
|
|
230
234
|
switch (valueType || viewType) {
|
|
231
235
|
// 百分比
|
|
232
236
|
case 'percent':
|
|
@@ -241,7 +245,6 @@ var InputNumber = function InputNumber(props) {
|
|
|
241
245
|
value = limitNumber(value, limit);
|
|
242
246
|
break;
|
|
243
247
|
}
|
|
244
|
-
// 第一个类型转换值,第二个原始值
|
|
245
248
|
onBlur(value, Number(e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value));
|
|
246
249
|
};
|
|
247
250
|
return _jsx(_InputNumber, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
@@ -66,12 +66,12 @@ export interface BaseActionProps<T = any> {
|
|
|
66
66
|
* @description 按钮前置校验事件
|
|
67
67
|
* @default -
|
|
68
68
|
*/
|
|
69
|
-
onClick?:
|
|
69
|
+
onClick?: (record?: any, index?: number) => any;
|
|
70
70
|
/**
|
|
71
71
|
* @description 按钮前置校验事件
|
|
72
72
|
* @default -
|
|
73
73
|
*/
|
|
74
|
-
onHandle?:
|
|
74
|
+
onHandle?: (record?: any, index?: number) => any;
|
|
75
75
|
/**
|
|
76
76
|
* @description 支持antd的Button属性
|
|
77
77
|
* @default -
|
|
@@ -231,6 +231,10 @@ var InputNumber = function InputNumber(props) {
|
|
|
231
231
|
min: Number(_min),
|
|
232
232
|
max: Number(_max)
|
|
233
233
|
};
|
|
234
|
+
// 截取数字指定精度
|
|
235
|
+
if (props.precision !== undefined) {
|
|
236
|
+
value = Number(value.toFixed(props.precision));
|
|
237
|
+
}
|
|
234
238
|
switch (valueType || viewType) {
|
|
235
239
|
// 百分比
|
|
236
240
|
case 'percent':
|
|
@@ -245,7 +249,6 @@ var InputNumber = function InputNumber(props) {
|
|
|
245
249
|
value = limitNumber(value, limit);
|
|
246
250
|
break;
|
|
247
251
|
}
|
|
248
|
-
// 第一个类型转换值,第二个原始值
|
|
249
252
|
onBlur(value, Number(e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value));
|
|
250
253
|
};
|
|
251
254
|
return (0, _jsxRuntime.jsx)(_antd.InputNumber, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
|