@fle-ui/plus-choose-goods 0.0.6 → 0.0.7
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/index.d.ts +1 -2
- package/es/index.js +9 -11
- package/lib/index.d.ts +1 -2
- package/lib/index.js +7 -9
- package/package.json +2 -2
package/es/index.d.ts
CHANGED
|
@@ -6,10 +6,9 @@ export interface ChooseGoodsProps {
|
|
|
6
6
|
open: boolean;
|
|
7
7
|
env?: EnvType;
|
|
8
8
|
token?: string;
|
|
9
|
-
loginErrFn?:
|
|
9
|
+
loginErrFn?: () => void;
|
|
10
10
|
multiple?: boolean;
|
|
11
11
|
defaultSelectedGoodsIds?: React.Key[];
|
|
12
|
-
request?: Array<string>;
|
|
13
12
|
columns?: ProColumns[];
|
|
14
13
|
rowKey?: string;
|
|
15
14
|
customParams?: {
|
package/es/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
import "antd/es/modal/style";
|
|
3
3
|
import _Modal from "antd/es/modal";
|
|
4
|
+
import "antd/es/button/style";
|
|
5
|
+
import _Button from "antd/es/button";
|
|
4
6
|
import "antd/es/radio/style";
|
|
5
7
|
import _Radio from "antd/es/radio";
|
|
6
8
|
import "antd/es/select/style";
|
|
@@ -11,8 +13,6 @@ import "antd/es/form/style";
|
|
|
11
13
|
import _Form from "antd/es/form";
|
|
12
14
|
import "antd/es/input/style";
|
|
13
15
|
import _Input from "antd/es/input";
|
|
14
|
-
import "antd/es/button/style";
|
|
15
|
-
import _Button from "antd/es/button";
|
|
16
16
|
import "antd/es/typography/style";
|
|
17
17
|
import _Typography from "antd/es/typography";
|
|
18
18
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
@@ -326,21 +326,19 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
|
|
|
326
326
|
align: 'center',
|
|
327
327
|
fixed: 'right',
|
|
328
328
|
width: 80,
|
|
329
|
-
hideInTable:
|
|
329
|
+
hideInTable: multiple,
|
|
330
330
|
render: function render(text, record) {
|
|
331
331
|
if (defaultSelectedGoodsIds.includes(record[rowKey])) {
|
|
332
|
-
return /*#__PURE__*/React.createElement(
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
332
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
333
|
+
style: {
|
|
334
|
+
color: "#999"
|
|
335
|
+
}
|
|
336
336
|
}, "\u5DF2\u6311\u9009");
|
|
337
337
|
}
|
|
338
|
-
return /*#__PURE__*/React.createElement(
|
|
338
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
339
339
|
onClick: function onClick() {
|
|
340
340
|
return onOk([record[rowKey]], [record]);
|
|
341
|
-
}
|
|
342
|
-
type: "link",
|
|
343
|
-
size: "small"
|
|
341
|
+
}
|
|
344
342
|
}, "\u6311\u9009");
|
|
345
343
|
}
|
|
346
344
|
}];
|
package/lib/index.d.ts
CHANGED
|
@@ -6,10 +6,9 @@ export interface ChooseGoodsProps {
|
|
|
6
6
|
open: boolean;
|
|
7
7
|
env?: EnvType;
|
|
8
8
|
token?: string;
|
|
9
|
-
loginErrFn?:
|
|
9
|
+
loginErrFn?: () => void;
|
|
10
10
|
multiple?: boolean;
|
|
11
11
|
defaultSelectedGoodsIds?: React.Key[];
|
|
12
|
-
request?: Array<string>;
|
|
13
12
|
columns?: ProColumns[];
|
|
14
13
|
rowKey?: string;
|
|
15
14
|
customParams?: {
|
package/lib/index.js
CHANGED
|
@@ -320,21 +320,19 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
|
|
|
320
320
|
align: 'center',
|
|
321
321
|
fixed: 'right',
|
|
322
322
|
width: 80,
|
|
323
|
-
hideInTable:
|
|
323
|
+
hideInTable: multiple,
|
|
324
324
|
render: function render(text, record) {
|
|
325
325
|
if (defaultSelectedGoodsIds.includes(record[rowKey])) {
|
|
326
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
326
|
+
return /*#__PURE__*/_react.default.createElement("span", {
|
|
327
|
+
style: {
|
|
328
|
+
color: "#999"
|
|
329
|
+
}
|
|
330
330
|
}, "\u5DF2\u6311\u9009");
|
|
331
331
|
}
|
|
332
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
332
|
+
return /*#__PURE__*/_react.default.createElement("a", {
|
|
333
333
|
onClick: function onClick() {
|
|
334
334
|
return onOk([record[rowKey]], [record]);
|
|
335
|
-
}
|
|
336
|
-
type: "link",
|
|
337
|
-
size: "small"
|
|
335
|
+
}
|
|
338
336
|
}, "\u6311\u9009");
|
|
339
337
|
}
|
|
340
338
|
}];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fle-ui/plus-choose-goods",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "@fle-ui/plus-choose-goods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fle-ui",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "9904de2c188c1fb3c7def6a5407556e4f49deb09"
|
|
49
49
|
}
|