@pisell/private-materials 6.3.61 → 6.3.62
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/plus/skuOptionsSelection/utils/transformOptionGroup.js +4 -1
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +8 -2
- package/package.json +3 -3
|
@@ -55,7 +55,10 @@ export var transformOptionGroup = function transformOptionGroup(optionGroup) {
|
|
|
55
55
|
min: (item === null || item === void 0 ? void 0 : item.min_quantity) || undefined,
|
|
56
56
|
max: (item === null || item === void 0 ? void 0 : item.max_quantity) || undefined,
|
|
57
57
|
autoValidate: true,
|
|
58
|
-
|
|
58
|
+
// 单规格必选判定分成两种:
|
|
59
|
+
// 1. 未开启多选时以:item?.required === 1 为准
|
|
60
|
+
// 2. 开启多选时以:item?.min_quantity > 0 为准
|
|
61
|
+
required: (item === null || item === void 0 ? void 0 : item.is_multiple) == 1 ? Number((item === null || item === void 0 ? void 0 : item.min_quantity) || 0) > 0 : (item === null || item === void 0 ? void 0 : item.required) === 1
|
|
59
62
|
},
|
|
60
63
|
headerProps: {
|
|
61
64
|
renderExtra: function renderExtra(props) {
|
|
@@ -45,7 +45,10 @@ var transformOptionGroup = (optionGroup) => {
|
|
|
45
45
|
const { canSell, hasStock } = (0, import_checkSkuStatus.checkSkuStockCanSell)(optionItem);
|
|
46
46
|
const disabled = (0, import_checkSkuStatus.checkSkuDisabled)(optionItem, canSell);
|
|
47
47
|
return {
|
|
48
|
-
_original: {
|
|
48
|
+
_original: {
|
|
49
|
+
...optionItem || {},
|
|
50
|
+
product_option_item_id: optionItem == null ? void 0 : optionItem.id
|
|
51
|
+
},
|
|
49
52
|
id: optionItem == null ? void 0 : optionItem.id,
|
|
50
53
|
title: optionItem == null ? void 0 : optionItem.name,
|
|
51
54
|
value: optionItem == null ? void 0 : optionItem.id,
|
|
@@ -74,7 +77,10 @@ var transformOptionGroup = (optionGroup) => {
|
|
|
74
77
|
min: (item == null ? void 0 : item.min_quantity) || void 0,
|
|
75
78
|
max: (item == null ? void 0 : item.max_quantity) || void 0,
|
|
76
79
|
autoValidate: true,
|
|
77
|
-
|
|
80
|
+
// 单规格必选判定分成两种:
|
|
81
|
+
// 1. 未开启多选时以:item?.required === 1 为准
|
|
82
|
+
// 2. 开启多选时以:item?.min_quantity > 0 为准
|
|
83
|
+
required: (item == null ? void 0 : item.is_multiple) == 1 ? Number((item == null ? void 0 : item.min_quantity) || 0) > 0 : (item == null ? void 0 : item.required) === 1
|
|
78
84
|
},
|
|
79
85
|
headerProps: {
|
|
80
86
|
renderExtra: (props) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.62",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
"react-infinite-scroll-component": "^6.1.0",
|
|
77
77
|
"react-resizable": "^3.0.5",
|
|
78
78
|
"styled-components": "^6.0.0-rc.3",
|
|
79
|
+
"@pisell/date-picker": "3.0.7",
|
|
79
80
|
"@pisell/icon": "0.0.11",
|
|
80
|
-
"@pisell/utils": "3.0.4",
|
|
81
81
|
"@pisell/materials": "6.3.21",
|
|
82
|
-
"@pisell/
|
|
82
|
+
"@pisell/utils": "3.0.4"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": "^18.0.0",
|