@kmkf-fe-packages/basic-components 2.10.13 → 2.10.14
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.js
CHANGED
|
@@ -21038,17 +21038,18 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
21038
21038
|
};
|
|
21039
21039
|
|
|
21040
21040
|
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
21041
|
+
var content = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ['是', '否'];
|
|
21041
21042
|
switch (val) {
|
|
21042
21043
|
case true:
|
|
21043
21044
|
case '1':
|
|
21044
21045
|
case 1:
|
|
21045
|
-
return
|
|
21046
|
+
return content[0];
|
|
21046
21047
|
case false:
|
|
21047
21048
|
case '0':
|
|
21048
21049
|
case 0:
|
|
21049
21050
|
return '否';
|
|
21050
21051
|
default:
|
|
21051
|
-
return
|
|
21052
|
+
return content[1];
|
|
21052
21053
|
}
|
|
21053
21054
|
};
|
|
21054
21055
|
|
|
@@ -21247,7 +21248,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21247
21248
|
label: '非赠品',
|
|
21248
21249
|
value: 0
|
|
21249
21250
|
}]
|
|
21250
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21251
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val, ['赠品', '非赠品']));
|
|
21251
21252
|
}
|
|
21252
21253
|
}, {
|
|
21253
21254
|
dataIndex: 'isPackage',
|
|
@@ -21479,7 +21480,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21479
21480
|
label: '非赠品',
|
|
21480
21481
|
value: 0
|
|
21481
21482
|
}]
|
|
21482
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21483
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val, ['赠品', '非赠品']));
|
|
21483
21484
|
}
|
|
21484
21485
|
}, {
|
|
21485
21486
|
dataIndex: 'isPackage',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getYesOrNo: (val: boolean | string | number) =>
|
|
1
|
+
export declare const getYesOrNo: (val: boolean | string | number, content?: string[]) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.14",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/kmkf-utils": "2.10.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.10.14",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"ali-react-table": "2.6.1",
|
|
26
26
|
"bignumber.js": "^9.1.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "f39208196a64c8def6860f31bf3895b1f96ee765"
|
|
70
70
|
}
|