wt-enjoy-link-antd-repack 4.1.75 → 4.1.77

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.
@@ -6,5 +6,6 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
6
6
  warehouseFilter?: any;
7
7
  employeeType?: any;
8
8
  isEnable?: number | undefined;
9
+ valueField?: any;
9
10
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
10
11
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"userSelect.d.ts","sourceRoot":"","sources":["userSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAA;AACvC,OAAO,KAAgE,MAAM,OAAO,CAAA;;;;;;;;AA8CpF,wBA2HC"}
1
+ {"version":3,"file":"userSelect.d.ts","sourceRoot":"","sources":["userSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAA;AACvC,OAAO,KAAgE,MAAM,OAAO,CAAA;;;;;;;;;AA+CpF,wBA6HC"}
@@ -1,5 +1,5 @@
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
- var _excluded = ["isModel", "onChange", "onChangeData", "value", "warehouseFilter", "employeeType", "isEnable"];
2
+ var _excluded = ["isModel", "onChange", "onChangeData", "value", "warehouseFilter", "employeeType", "isEnable", "valueField"];
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -64,6 +64,8 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
64
64
  employeeType = props.employeeType,
65
65
  _props$isEnable = props.isEnable,
66
66
  isEnable = _props$isEnable === void 0 ? 0 : _props$isEnable,
67
+ _props$valueField = props.valueField,
68
+ valueField = _props$valueField === void 0 ? 'id' : _props$valueField,
67
69
  restProps = _objectWithoutProperties(props, _excluded);
68
70
  var linkUserInfo = JSON.parse((_localStorage$getItem = localStorage.getItem(BUBU100_CACHE_USERINFO_KEY)) !== null && _localStorage$getItem !== void 0 ? _localStorage$getItem : '{}');
69
71
  var _useState = useState([]),
@@ -156,7 +158,7 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
156
158
  setControlValue(changeValue);
157
159
  if (onChangeData) {
158
160
  onChangeData(changeValue, userList.filter(function (item) {
159
- return "".concat(item.id) === "".concat(changeValue);
161
+ return "".concat(item[valueField]) === "".concat(changeValue);
160
162
  })[0]);
161
163
  }
162
164
  },
@@ -164,7 +166,7 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
164
166
  return /*#__PURE__*/_jsx(BiuASelectOption, {
165
167
  value: d.id,
166
168
  children: d.employeename || ' '
167
- }, d.id);
169
+ }, d[valueField]);
168
170
  })
169
171
  }), "userSelect");
170
172
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"tableActionBarRender.d.ts","sourceRoot":"","sources":["tableActionBarRender.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,cAAmB;AAIxE,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,CAAC,EAAE,oBAAoB,EAAE,CAAA;IACzC,OAAO,EAAE,SAAS,CAAC,eAAe,CAAC,GAAG,IAAI,CAAA;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAA;CACnC;AAED,eAAO,MAAM,oBAAoB,oCAAsB,qBAAqB,6CA6K1E,CAAA"}
1
+ {"version":3,"file":"tableActionBarRender.d.ts","sourceRoot":"","sources":["tableActionBarRender.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,cAAmB;AAIxE,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,CAAC,EAAE,oBAAoB,EAAE,CAAA;IACzC,OAAO,EAAE,SAAS,CAAC,eAAe,CAAC,GAAG,IAAI,CAAA;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAA;CACnC;AAED,eAAO,MAAM,oBAAoB,oCAAsB,qBAAqB,6CA2K1E,CAAA"}
@@ -54,7 +54,6 @@ export var TableActionBarRender = /*#__PURE__*/React.memo(function (props) {
54
54
  dropItems = _ref.dropItems,
55
55
  auth = _ref.auth,
56
56
  restProps = _objectWithoutProperties(_ref, _excluded);
57
- console.log('title', title);
58
57
  if (!hasAuth(auth)) return null;
59
58
  if (render) {
60
59
  return /*#__PURE__*/_jsx(Space, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wt-enjoy-link-antd-repack",
3
- "version": "4.1.75",
3
+ "version": "4.1.77",
4
4
  "description": "万通业务组件",
5
5
  "sideEffects": false,
6
6
  "main": "dist/esm/index.js",