@pisell/materials 1.0.239 → 1.0.241
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 +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/components/list/index.js +2 -1
- package/es/components/table/Table/fields/image/Edit/index.js +8 -3
- package/es/components/table/Table/fields/number/Edit/index.js +8 -3
- package/lib/components/list/index.js +2 -1
- package/lib/components/table/Table/fields/image/Edit/index.js +2 -1
- package/lib/components/table/Table/fields/number/Edit/index.js +2 -1
- package/package.json +1 -1
|
@@ -76,6 +76,7 @@ var List = function List(props) {
|
|
|
76
76
|
overflow: "auto"
|
|
77
77
|
}
|
|
78
78
|
}, isShowUpArrow && upArrow, /*#__PURE__*/React.createElement(InfiniteScroll, {
|
|
79
|
+
key: "".concat(document.getElementById(scrollListId)),
|
|
79
80
|
dataLength: props.dataSource.length,
|
|
80
81
|
next: loadMoreData,
|
|
81
82
|
hasMore: props.dataSource.length < ((pagination === null || pagination === void 0 ? void 0 : pagination.total) || 999999),
|
|
@@ -97,7 +98,7 @@ var List = function List(props) {
|
|
|
97
98
|
return /*#__PURE__*/React.createElement(AntList, _extends({}, props, {
|
|
98
99
|
className: classNames(className, _defineProperty({}, "".concat(prefix, "list-one-line-wrap"), props === null || props === void 0 ? void 0 : (_props$grid2 = props.grid) === null || _props$grid2 === void 0 ? void 0 : _props$grid2.oneLine))
|
|
99
100
|
}));
|
|
100
|
-
}, [props, _footer, isShowDownArrow, isShowUpArrow]);
|
|
101
|
+
}, [props, _footer, isShowDownArrow, isShowUpArrow, scrollListId]);
|
|
101
102
|
return list;
|
|
102
103
|
};
|
|
103
104
|
List.Item = AntList.Item;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
var _excluded = ["value", "onChange", "onPressEnter", "onBlur", "style", "bordered"];
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
1
5
|
import React, { forwardRef } from "react";
|
|
2
6
|
import Input from "../../../../../input";
|
|
3
7
|
var Edit = function Edit(props, ref) {
|
|
@@ -6,8 +10,9 @@ var Edit = function Edit(props, ref) {
|
|
|
6
10
|
onPressEnter = props.onPressEnter,
|
|
7
11
|
onBlur = props.onBlur,
|
|
8
12
|
style = props.style,
|
|
9
|
-
bordered = props.bordered
|
|
10
|
-
|
|
13
|
+
bordered = props.bordered,
|
|
14
|
+
others = _objectWithoutProperties(props, _excluded);
|
|
15
|
+
return /*#__PURE__*/React.createElement(Input, _extends({}, others, {
|
|
11
16
|
bordered: bordered,
|
|
12
17
|
ref: ref,
|
|
13
18
|
value: value,
|
|
@@ -18,6 +23,6 @@ var Edit = function Edit(props, ref) {
|
|
|
18
23
|
onClick: function onClick(e) {
|
|
19
24
|
return e.stopPropagation();
|
|
20
25
|
}
|
|
21
|
-
});
|
|
26
|
+
}));
|
|
22
27
|
};
|
|
23
28
|
export default /*#__PURE__*/forwardRef(Edit);
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
var _excluded = ["value", "onChange", "onPressEnter", "onBlur", "style", "bordered"];
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
1
5
|
import React from "react";
|
|
2
6
|
import { forwardRef } from "react";
|
|
3
7
|
import { InputNumber } from "antd";
|
|
@@ -7,8 +11,9 @@ var Edit = function Edit(props, ref) {
|
|
|
7
11
|
onPressEnter = props.onPressEnter,
|
|
8
12
|
onBlur = props.onBlur,
|
|
9
13
|
style = props.style,
|
|
10
|
-
bordered = props.bordered
|
|
11
|
-
|
|
14
|
+
bordered = props.bordered,
|
|
15
|
+
others = _objectWithoutProperties(props, _excluded);
|
|
16
|
+
return /*#__PURE__*/React.createElement(InputNumber, _extends({}, others, {
|
|
12
17
|
controls: false,
|
|
13
18
|
ref: ref,
|
|
14
19
|
value: value,
|
|
@@ -20,6 +25,6 @@ var Edit = function Edit(props, ref) {
|
|
|
20
25
|
onClick: function onClick(e) {
|
|
21
26
|
return e.stopPropagation();
|
|
22
27
|
}
|
|
23
|
-
});
|
|
28
|
+
}));
|
|
24
29
|
};
|
|
25
30
|
export default /*#__PURE__*/forwardRef(Edit);
|
|
@@ -91,6 +91,7 @@ var List = (props) => {
|
|
|
91
91
|
/* @__PURE__ */ import_react.default.createElement(
|
|
92
92
|
import_react_infinite_scroll_component.default,
|
|
93
93
|
{
|
|
94
|
+
key: `${document.getElementById(scrollListId)}`,
|
|
94
95
|
dataLength: props.dataSource.length,
|
|
95
96
|
next: loadMoreData,
|
|
96
97
|
hasMore: props.dataSource.length < ((pagination == null ? void 0 : pagination.total) || 999999),
|
|
@@ -127,7 +128,7 @@ var List = (props) => {
|
|
|
127
128
|
})
|
|
128
129
|
}
|
|
129
130
|
);
|
|
130
|
-
}, [props, _footer, isShowDownArrow, isShowUpArrow]);
|
|
131
|
+
}, [props, _footer, isShowDownArrow, isShowUpArrow, scrollListId]);
|
|
131
132
|
return list;
|
|
132
133
|
};
|
|
133
134
|
List.Item = import_antd.List.Item;
|
|
@@ -35,10 +35,11 @@ module.exports = __toCommonJS(Edit_exports);
|
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_input = __toESM(require("../../../../../input"));
|
|
37
37
|
var Edit = (props, ref) => {
|
|
38
|
-
const { value, onChange, onPressEnter, onBlur, style, bordered } = props;
|
|
38
|
+
const { value, onChange, onPressEnter, onBlur, style, bordered, ...others } = props;
|
|
39
39
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
40
40
|
import_input.default,
|
|
41
41
|
{
|
|
42
|
+
...others,
|
|
42
43
|
bordered,
|
|
43
44
|
ref,
|
|
44
45
|
value,
|
|
@@ -36,10 +36,11 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_react2 = require("react");
|
|
37
37
|
var import_antd = require("antd");
|
|
38
38
|
var Edit = (props, ref) => {
|
|
39
|
-
const { value, onChange, onPressEnter, onBlur, style, bordered } = props;
|
|
39
|
+
const { value, onChange, onPressEnter, onBlur, style, bordered, ...others } = props;
|
|
40
40
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
41
41
|
import_antd.InputNumber,
|
|
42
42
|
{
|
|
43
|
+
...others,
|
|
43
44
|
controls: false,
|
|
44
45
|
ref,
|
|
45
46
|
value,
|