@zat-design/sisyphus-react 3.6.0-beta.2 → 3.6.0-beta.4
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/es/ProForm/components/combination/ProModalSelect/index.js +1 -1
- package/es/ProForm/components/combination/ProNumberRange/index.js +4 -1
- package/es/ProForm/components/render/Render.js +1 -1
- package/lib/ProForm/components/combination/ProModalSelect/index.js +1 -1
- package/lib/ProForm/components/combination/ProNumberRange/index.js +4 -1
- package/lib/ProForm/components/render/Render.js +1 -1
- package/package.json +1 -1
|
@@ -709,7 +709,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
|
709
709
|
} : queryBean;
|
|
710
710
|
var nextParams = transformParams ? transformParams(params) : params;
|
|
711
711
|
run(nextParams);
|
|
712
|
-
},
|
|
712
|
+
}, 1000),
|
|
713
713
|
style: {
|
|
714
714
|
width: isView || disabled ? '100%' : 'calc(100% - 30px)'
|
|
715
715
|
}
|
|
@@ -129,7 +129,10 @@ var ProNumberRange = function ProNumberRange(props) {
|
|
|
129
129
|
case 'amount':
|
|
130
130
|
valueProps = {
|
|
131
131
|
formatter: function formatter(value) {
|
|
132
|
-
return
|
|
132
|
+
return typeof value === 'number' || value ? Number(value).toLocaleString('zh-CN', {
|
|
133
|
+
minimumFractionDigits: precision !== null && precision !== void 0 ? precision : null,
|
|
134
|
+
maximumFractionDigits: precision !== null && precision !== void 0 ? precision : 9
|
|
135
|
+
}) : value;
|
|
133
136
|
},
|
|
134
137
|
parser: function parser(value) {
|
|
135
138
|
return value.replace(/\$\s?|(,*)/g, '');
|
|
@@ -383,7 +383,7 @@ var Render = function Render(props) {
|
|
|
383
383
|
if (originComponent) {
|
|
384
384
|
delete childProps.otherProps;
|
|
385
385
|
}
|
|
386
|
-
var child = /*#__PURE__*/React.isValidElement(AutoComponent) ? ( /*#__PURE__*/React.cloneElement(AutoComponent, childProps)) : _jsx(AutoComponent, _objectSpread(_objectSpread({}, omit(lastComponentProps, lastComponentPropsFilter)), {}, {
|
|
386
|
+
var child = /*#__PURE__*/React.isValidElement(AutoComponent) ? ( /*#__PURE__*/React.cloneElement(AutoComponent, childProps)) : _jsx(AutoComponent, _objectSpread(_objectSpread({}, omit(lastComponentProps, [].concat(lastComponentPropsFilter, ['debounceWait']))), {}, {
|
|
387
387
|
otherProps: _objectSpread(_objectSpread({}, otherProps), {}, {
|
|
388
388
|
show: show,
|
|
389
389
|
disabled: lastDisabled,
|
|
@@ -706,7 +706,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
|
706
706
|
} : queryBean;
|
|
707
707
|
var nextParams = transformParams ? transformParams(params) : params;
|
|
708
708
|
run(nextParams);
|
|
709
|
-
},
|
|
709
|
+
}, 1000),
|
|
710
710
|
style: {
|
|
711
711
|
width: isView || disabled ? '100%' : 'calc(100% - 30px)'
|
|
712
712
|
}
|
|
@@ -133,7 +133,10 @@ var ProNumberRange = function ProNumberRange(props) {
|
|
|
133
133
|
case 'amount':
|
|
134
134
|
valueProps = {
|
|
135
135
|
formatter: function formatter(value) {
|
|
136
|
-
return
|
|
136
|
+
return typeof value === 'number' || value ? Number(value).toLocaleString('zh-CN', {
|
|
137
|
+
minimumFractionDigits: precision !== null && precision !== void 0 ? precision : null,
|
|
138
|
+
maximumFractionDigits: precision !== null && precision !== void 0 ? precision : 9
|
|
139
|
+
}) : value;
|
|
137
140
|
},
|
|
138
141
|
parser: function parser(value) {
|
|
139
142
|
return value.replace(/\$\s?|(,*)/g, '');
|
|
@@ -381,7 +381,7 @@ var Render = function Render(props) {
|
|
|
381
381
|
if (originComponent) {
|
|
382
382
|
delete childProps.otherProps;
|
|
383
383
|
}
|
|
384
|
-
var child = /*#__PURE__*/_react.default.isValidElement(AutoComponent) ? ( /*#__PURE__*/_react.default.cloneElement(AutoComponent, childProps)) : (0, _jsxRuntime.jsx)(AutoComponent, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _lodash.omit)(lastComponentProps, lastComponentPropsFilter)), {}, {
|
|
384
|
+
var child = /*#__PURE__*/_react.default.isValidElement(AutoComponent) ? ( /*#__PURE__*/_react.default.cloneElement(AutoComponent, childProps)) : (0, _jsxRuntime.jsx)(AutoComponent, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _lodash.omit)(lastComponentProps, [].concat(lastComponentPropsFilter, ['debounceWait']))), {}, {
|
|
385
385
|
otherProps: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, otherProps), {}, {
|
|
386
386
|
show: show,
|
|
387
387
|
disabled: lastDisabled,
|