@pisell/materials 1.0.425 → 1.0.427
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/pisellAdjustPrice/index.js +4 -1
- package/lib/components/pisellAdjustPrice/index.js +4 -1
- package/package.json +2 -2
|
@@ -84,10 +84,13 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
|
|
|
84
84
|
setNewValue(val === 'priceOverride' ? value || 0 : '');
|
|
85
85
|
};
|
|
86
86
|
var inputFormat = function inputFormat(v) {
|
|
87
|
+
if (updateMode === 'priceOverride') {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
87
90
|
if (discountMode === 'amount') {
|
|
88
91
|
return null;
|
|
89
92
|
} else {
|
|
90
|
-
return v;
|
|
93
|
+
return "".concat(v, "%");
|
|
91
94
|
}
|
|
92
95
|
};
|
|
93
96
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -83,10 +83,13 @@ var PisellAdjustPrice = (props) => {
|
|
|
83
83
|
setNewValue(val === "priceOverride" ? value || 0 : "");
|
|
84
84
|
};
|
|
85
85
|
const inputFormat = (v) => {
|
|
86
|
+
if (updateMode === "priceOverride") {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
86
89
|
if (discountMode === "amount") {
|
|
87
90
|
return null;
|
|
88
91
|
} else {
|
|
89
|
-
return v
|
|
92
|
+
return `${v}%`;
|
|
90
93
|
}
|
|
91
94
|
};
|
|
92
95
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-adjust-price-wrap" }, /* @__PURE__ */ import_react.default.createElement(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.427",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
65
65
|
"crypto-js": "^4.2.0",
|
|
66
66
|
"@zxing/library": "0.21.2",
|
|
67
|
-
"@pisell/date-picker": "1.0.111",
|
|
68
67
|
"@pisell/utils": "1.0.42",
|
|
68
|
+
"@pisell/date-picker": "1.0.111",
|
|
69
69
|
"@pisell/icon": "0.0.10"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|