@pisell/materials 2.2.60 → 2.2.61

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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
3
4
  style?: any;
@@ -14,5 +14,5 @@ interface SelectResourceProps {
14
14
  isParallelResource?: boolean;
15
15
  [key: string]: any;
16
16
  }
17
- declare const SelectResource: ({ lists, value, onChange, resourceMode, allowClear, onClearResource, isErrorResource, resourceErrorText, ...props }: SelectResourceProps) => JSX.Element;
17
+ declare const SelectResource: ({ lists, value, onChange, resourceMode, allowClear, onClearResource, maxLength, isErrorResource, resourceErrorText, ...props }: SelectResourceProps) => JSX.Element;
18
18
  export default SelectResource;
@@ -1,4 +1,4 @@
1
- var _excluded = ["lists", "value", "onChange", "resourceMode", "allowClear", "onClearResource", "isErrorResource", "resourceErrorText"];
1
+ var _excluded = ["lists", "value", "onChange", "resourceMode", "allowClear", "onClearResource", "maxLength", "isErrorResource", "resourceErrorText"];
2
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
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -22,6 +22,7 @@ var SelectResource = function SelectResource(_ref) {
22
22
  _ref$allowClear = _ref.allowClear,
23
23
  allowClear = _ref$allowClear === void 0 ? false : _ref$allowClear,
24
24
  onClearResource = _ref.onClearResource,
25
+ maxLength = _ref.maxLength,
25
26
  isErrorResource = _ref.isErrorResource,
26
27
  resourceErrorText = _ref.resourceErrorText,
27
28
  props = _objectWithoutProperties(_ref, _excluded);
@@ -94,6 +95,7 @@ var SelectResource = function SelectResource(_ref) {
94
95
  return /*#__PURE__*/React.createElement("div", {
95
96
  className: "pisell-lowcode-product-card-select-resource ".concat(isError ? 'pisell-lowcode-product-card-select-resource-error' : '')
96
97
  }, /*#__PURE__*/React.createElement(Select, {
98
+ mode: resourceMode,
97
99
  size: "large",
98
100
  showSearch: true,
99
101
  allowClear: allowClear,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
3
4
  style?: any;
@@ -14,5 +14,5 @@ interface SelectResourceProps {
14
14
  isParallelResource?: boolean;
15
15
  [key: string]: any;
16
16
  }
17
- declare const SelectResource: ({ lists, value, onChange, resourceMode, allowClear, onClearResource, isErrorResource, resourceErrorText, ...props }: SelectResourceProps) => JSX.Element;
17
+ declare const SelectResource: ({ lists, value, onChange, resourceMode, allowClear, onClearResource, maxLength, isErrorResource, resourceErrorText, ...props }: SelectResourceProps) => JSX.Element;
18
18
  export default SelectResource;
@@ -45,6 +45,7 @@ var SelectResource = ({
45
45
  resourceMode,
46
46
  allowClear = false,
47
47
  onClearResource,
48
+ maxLength,
48
49
  // 是否显示资源错误
49
50
  isErrorResource,
50
51
  // 资源错误文案
@@ -96,6 +97,7 @@ var SelectResource = ({
96
97
  /* @__PURE__ */ import_react.default.createElement(
97
98
  import_antd.Select,
98
99
  {
100
+ mode: resourceMode,
99
101
  size: "large",
100
102
  showSearch: true,
101
103
  allowClear,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "2.2.60",
3
+ "version": "2.2.61",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -72,8 +72,8 @@
72
72
  "react-barcode": "^1.5.3",
73
73
  "vod-js-sdk-v6": "^1.4.11",
74
74
  "@pisell/icon": "0.0.11",
75
- "@pisell/date-picker": "1.0.101",
76
- "@pisell/utils": "2.0.1"
75
+ "@pisell/utils": "2.0.1",
76
+ "@pisell/date-picker": "1.0.101"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "react": "^18.0.0",