wt-enjoy-link-antd-repack 4.1.61 → 4.1.63

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.
Files changed (35) hide show
  1. package/dist/esm/component/BiuAForm/index.d.ts.map +1 -1
  2. package/dist/esm/component/BiuAForm/index.js +1 -1
  3. package/dist/esm/component/BiuAInput/index.d.ts.map +1 -1
  4. package/dist/esm/component/BiuDivider/index.d.ts.map +1 -1
  5. package/dist/esm/component/BiuDivider/index.js +4 -2
  6. package/dist/esm/component/BiuField/component/SNInput.d.ts.map +1 -1
  7. package/dist/esm/component/BiuField/component/SNInput.js +1 -1
  8. package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.d.ts +1 -1
  9. package/dist/esm/component/BiuField/component/TableSelectLocal/base.d.ts +1 -1
  10. package/dist/esm/component/BiuField/component/TableSelectLocal/base.d.ts.map +1 -1
  11. package/dist/esm/component/BiuField/component/TableSelectLocal/base.js +25 -4
  12. package/dist/esm/component/BiuField/component/TableSelectLocal/goodSelect.d.ts +1 -1
  13. package/dist/esm/component/BiuField/component/TableSelectLocal/interface.d.ts +1 -1
  14. package/dist/esm/component/BiuField/component/TableSelectLocal/interface.d.ts.map +1 -1
  15. package/dist/esm/component/BiuField/component/TableSelectLocal/locationSelect.d.ts +1 -1
  16. package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.d.ts +1 -1
  17. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.d.ts +1 -1
  18. package/dist/esm/component/BiuField/component/biuMultipleAInput.d.ts +2 -0
  19. package/dist/esm/component/BiuField/component/biuMultipleAInput.d.ts.map +1 -0
  20. package/dist/esm/component/BiuField/component/biuMultipleAInput.js +115 -0
  21. package/dist/esm/component/BiuField/component/clientInfoTableSelect.d.ts.map +1 -1
  22. package/dist/esm/component/BiuField/component/clientInfoTableSelect.js +35 -17
  23. package/dist/esm/component/BiuField/component/newEditLocationSelect.d.ts.map +1 -1
  24. package/dist/esm/component/BiuField/component/newEditLocationSelect.js +0 -1
  25. package/dist/esm/component/BiuField/index.d.ts +1 -1
  26. package/dist/esm/component/BiuField/index.d.ts.map +1 -1
  27. package/dist/esm/component/BiuField/index.js +108 -99
  28. package/dist/esm/component/BiuOperForm/index.d.ts +6 -1
  29. package/dist/esm/component/BiuOperForm/index.d.ts.map +1 -1
  30. package/dist/esm/component/BiuOperForm/index.js +26 -22
  31. package/dist/esm/component/BiuTable/index.d.ts.map +1 -1
  32. package/dist/esm/component/BiuTable/index.js +1 -1
  33. package/dist/esm/component/BiuTableSelect/index.d.ts.map +1 -1
  34. package/dist/esm/component/BiuTableSelect/index.js +10 -4
  35. package/package.json +1 -1
@@ -1,6 +1,6 @@
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
  var _excluded = ["formItemType", "id", "rules", "required", "requiredmessage", "layout", "span", "labelLetter", "label", "style", "options", "width", "colon"],
3
- _excluded2 = ["cardProps", "formItemOptions", "initialModel", "initialValues", "layout"],
3
+ _excluded2 = ["cardProps", "formItemOptions", "initialModel", "initialValues", "layout", "labelAlign"],
4
4
  _excluded3 = ["visible"],
5
5
  _excluded4 = ["title"],
6
6
  _excluded5 = ["title"],
@@ -99,7 +99,7 @@ var BiuOperFormLayout = {
99
99
  var StyledLabel = styled.div.withConfig({
100
100
  displayName: "StyledLabel",
101
101
  componentId: "wt-enjoy-link-antd-repack__sc-1q42wt-0"
102
- })(["font-size:14px;font-weight:normal;height:38px;line-height:38px;display:flex;flex-direction:row;text-align:right;"]);
102
+ })(["font-size:14px;font-weight:normal;height:38px;line-height:38px;display:flex;flex-direction:row;"]);
103
103
  var FormLabelRender = /*#__PURE__*/React.memo(function (props) {
104
104
  var title = props.title,
105
105
  labelWidth = props.labelWidth,
@@ -111,27 +111,27 @@ var FormLabelRender = /*#__PURE__*/React.memo(function (props) {
111
111
  },
112
112
  placement: "top",
113
113
  title: title,
114
- children: /*#__PURE__*/_jsxs(StyledLabel, {
114
+ children: /*#__PURE__*/_jsx(StyledLabel, {
115
115
  style: {
116
116
  width: labelWidth,
117
117
  maxWidth: labelWidth
118
118
  },
119
- children: [/*#__PURE__*/_jsx("span", {
119
+ children: /*#__PURE__*/_jsxs("span", {
120
120
  style: {
121
121
  flex: '1',
122
122
  overflow: 'hidden',
123
123
  textOverflow: 'ellipsis',
124
124
  color: required ? 'rgb(245,108,108)' : 'black',
125
- whiteSpace: 'nowrap'
125
+ whiteSpace: 'nowrap',
126
+ padding: '0 8px 0 0'
126
127
  },
127
- children: title
128
- }), colon && /*#__PURE__*/_jsx("span", {
129
- style: {
130
- padding: '0 8px 0 0',
131
- color: required ? 'rgb(245,108,108)' : 'black'
132
- },
133
- children: "\xA0:"
134
- })]
128
+ children: [title, colon && /*#__PURE__*/_jsx("span", {
129
+ style: {
130
+ color: required ? 'rgb(245,108,108)' : 'black'
131
+ },
132
+ children: "\xA0:"
133
+ })]
134
+ })
135
135
  })
136
136
  });
137
137
  });
@@ -171,10 +171,10 @@ export var BiuCustomerFormItem = /*#__PURE__*/React.memo(function (props) {
171
171
  }
172
172
  return _toConsumableArray(rules || []);
173
173
  }, [formItemType, required, requiredmessage, rules]);
174
- return /*#__PURE__*/_jsx(Col, _objectSpread(_objectSpread({}, span ? {
174
+ return /*#__PURE__*/_jsxs(Col, _objectSpread(_objectSpread({}, span ? {
175
175
  span: span
176
176
  } : BiuOperFormLayout[layout || 'default']), {}, {
177
- children: formItemType === 'slot' ? /*#__PURE__*/_jsx(BiuAFormItem, _objectSpread(_objectSpread({
177
+ children: [formItemType && formItemType === 'slot' && /*#__PURE__*/_jsx(BiuAFormItem, _objectSpread(_objectSpread({
178
178
  name: id
179
179
  }, options), {}, {
180
180
  colon: false,
@@ -188,7 +188,7 @@ export var BiuCustomerFormItem = /*#__PURE__*/React.memo(function (props) {
188
188
  children: /*#__PURE__*/_jsx(BiuField, _objectSpread({
189
189
  valueType: "customer"
190
190
  }, restProps))
191
- })) : /*#__PURE__*/_jsx(BiuAFormItem, _objectSpread(_objectSpread({
191
+ })), formItemType && formItemType !== 'slot' && /*#__PURE__*/_jsx(BiuAFormItem, _objectSpread(_objectSpread({
192
192
  name: id
193
193
  }, options), {}, {
194
194
  colon: false,
@@ -205,7 +205,7 @@ export var BiuCustomerFormItem = /*#__PURE__*/React.memo(function (props) {
205
205
  },
206
206
  valueType: formItemType !== null && formItemType !== void 0 ? formItemType : 'boxtypeselect'
207
207
  }, restProps))
208
- }))
208
+ }))]
209
209
  }));
210
210
  });
211
211
  var StyledForm = styled(BiuAForm).withConfig({
@@ -220,7 +220,10 @@ export var BiuOperForm = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(functi
220
220
  _props$initialValues = props.initialValues,
221
221
  initialValues = _props$initialValues === void 0 ? {} : _props$initialValues,
222
222
  layout = props.layout,
223
+ _props$labelAlign = props.labelAlign,
224
+ labelAlign = _props$labelAlign === void 0 ? 'right' : _props$labelAlign,
223
225
  restProps = _objectWithoutProperties(props, _excluded2);
226
+ console.log('props', props);
224
227
  var _BiuAForm$useForm = BiuAForm.useForm(),
225
228
  _BiuAForm$useForm2 = _slicedToArray(_BiuAForm$useForm, 1),
226
229
  form = _BiuAForm$useForm2[0];
@@ -286,7 +289,8 @@ export var BiuOperForm = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(functi
286
289
  form: form,
287
290
  layout: layout || 'horizontal',
288
291
  requiredMark: false,
289
- autoComplete: "off"
292
+ autoComplete: "off",
293
+ labelAlign: labelAlign
290
294
  }, restProps), {}, {
291
295
  colon: false,
292
296
  children: /*#__PURE__*/_jsx(Row, {
@@ -303,7 +307,7 @@ export var BiuOperForm = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(functi
303
307
  })
304
308
  })
305
309
  }));
306
- }, [form, formItemOptions, initialModel, initialValues, layout, restProps]);
310
+ }, [form, formItemOptions, initialModel, initialValues, labelAlign, layout, restProps]);
307
311
  if (!Array.isArray(cardProps)) {
308
312
  if (cardProps === undefined || cardProps === null) return SimpleForm;
309
313
  var title = cardProps.title,
@@ -321,17 +325,17 @@ export var BiuOperForm = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(functi
321
325
  }
322
326
  var formOptionsArray = formItemOptions.reduce(function (arr, cur) {
323
327
  if (arr[cur.cardIdx || 0] === undefined) arr[cur.cardIdx || 0] = [];
324
- arr[cur.cardIdx || 0].push(cur);
328
+ arr[cur.cardIdx || 0].push(_objectSpread(_objectSpread({}, restProps), cur));
325
329
  return arr;
326
330
  }, []);
327
331
  return /*#__PURE__*/_jsx(StyledForm, _objectSpread(_objectSpread({
328
332
  initialValues: initialValues,
329
333
  form: form,
330
334
  layout: layout !== null && layout !== void 0 ? layout : 'horizontal',
335
+ labelAlign: labelAlign,
331
336
  autoComplete: "off",
332
337
  requiredMark: false
333
338
  }, restProps), {}, {
334
- colon: false,
335
339
  children: cardProps.map(function (_ref3, index) {
336
340
  var title = _ref3.title,
337
341
  restCardProps = _objectWithoutProperties(_ref3, _excluded5);
@@ -366,7 +370,7 @@ export var BiuOperForm = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(functi
366
370
  restFormProps = _objectWithoutProperties(_ref7, _excluded7);
367
371
  return /*#__PURE__*/_jsx(BiuCustomerFormItem, _objectSpread({
368
372
  defaultLabel: initialModel ? initialModel[restFormProps.defaultLableId || "".concat(restProps.id, "Name")] : undefined
369
- }, restFormProps), restProps.id);
373
+ }, restFormProps), restFormProps.id);
370
374
  })
371
375
  })]
372
376
  }), title);
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAQN,MAAM,OAAO,CAAA;AAMd,OAAO,KAAK,EACV,kBAAkB,EAGlB,aAAa,EACd,WAAmB;AAiJpB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;+FAgTzB,CAAA;AAMD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;+FAwHpB,CAAA;AAGD,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAQN,MAAM,OAAO,CAAA;AAMd,OAAO,KAAK,EACV,kBAAkB,EAGlB,aAAa,EACd,WAAmB;AAqJpB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;+FAgTzB,CAAA;AAMD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;+FAwHpB,CAAA;AAGD,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA"}
@@ -65,7 +65,7 @@ var FooterWrapper = styled.div.withConfig({
65
65
  var StyledResizeTable = styled(BiuResizeTable).withConfig({
66
66
  displayName: "StyledResizeTable",
67
67
  componentId: "wt-enjoy-link-antd-repack__sc-159m0g4-5"
68
- })(["display:block;flex-grow:1;overflow:hidden;height:100% !important;.ant-table-cell{border-right:none !important;}", " .ant-table-tbody > .ant-table-row > td{padding:6px !important;min-height:45px !important;height:45px !important;line-height:14px !important;color:#333333;}.ant-table-tbody > .ant-table-row:hover > td{background:#f5f5f5;}.ant-table-tbody > .ant-table-row-selected > td{background:#f0f7ff !important;}.ant-table-wrapper{height:100% !important;}.ant-table-tbody > tr > td{border-bottom:1px solid #ebebeb;}.ant-spin-nested-loading{height:100% !important;}.ant-spin-container{height:100% !important;}.ant-table{height:100% !important;border-bottom:1px solid #ebebeb !important;}.ant-table-container{height:100% !important;display:flex;flex-direction:column;}.ant-table-body{flex:1;}.ant-table-row{font-size:14px;font-weight:normal;}"], function (props) {
68
+ })(["display:block;flex-grow:1;overflow:hidden;height:100% !important;.ant-table-cell{border-right:none !important;}", " .ant-table-tbody > .ant-table-row > td{padding:6px !important;min-height:45px !important;height:45px !important;line-height:14px !important;color:#333333;}.ant-table-tbody > .ant-table-row:hover > td{background:#f5f5f5;}.ant-table-tbody > .ant-table-row-selected > td{background:#f0f7ff !important;}.ant-table-wrapper{height:100% !important;}.ant-table-tbody > tr > td{border-bottom:1px solid #ebebeb;}.ant-spin-nested-loading{height:100% !important;}.ant-spin-container{height:100% !important;}.ant-table{height:100% !important;border-bottom:1px solid #ebebeb !important;}.ant-table-container{height:100% !important;display:flex;flex-direction:column;}.ant-table-body{flex:1;}.ant-table-row{font-size:14px;font-weight:normal;}.ant-checkbox{top:1px !important;}"], function (props) {
69
69
  return props.$isPage ? "\n & {\n padding: 0\n }\n " : '';
70
70
  });
71
71
  var SummaryWrapper = styled.div.withConfig({
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AACnD,OAAO,KAAsE,MAAM,OAAO,CAAA;AAG1F,OAAO,KAAK,EAAE,aAAa,EAAE,0CAAqC;AAiDlE,eAAO,MAAM,cAAc;IA3CzB;;OAEG;kBACW,GAAG;IACjB;;OAEG;mBACY,MAAM;IACrB;;OAEG;;IAEH;;OAEG;aACM,OAAO,MAAM,EAAE,GAAG,CAAC,EAAE;IAC9B;;OAEG;;;;;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;gCACwB,GAAG,KAAK,OAAO;IAC1C;;OAEG;4BACoB,GAAG,UAAU,GAAG,KAAK,IAAI;IAChD;;OAEG;0BACkB,OAAO,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,MAAM,EAAE,GAAG,CAAC,EAAE;qLA4KnE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AACnD,OAAO,KAAsE,MAAM,OAAO,CAAA;AAG1F,OAAO,KAAK,EAAE,aAAa,EAAE,0CAAqC;AAiDlE,eAAO,MAAM,cAAc;IA3CzB;;OAEG;kBACW,GAAG;IACjB;;OAEG;mBACY,MAAM;IACrB;;OAEG;;IAEH;;OAEG;aACM,OAAO,MAAM,EAAE,GAAG,CAAC,EAAE;IAC9B;;OAEG;;;;;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;gCACwB,GAAG,KAAK,OAAO;IAC1C;;OAEG;4BACoB,GAAG,UAAU,GAAG,KAAK,IAAI;IAChD;;OAEG;0BACkB,OAAO,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,MAAM,EAAE,GAAG,CAAC,EAAE;qLAkLnE,CAAA"}
@@ -152,14 +152,20 @@ export var BiuTableSelect = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(fun
152
152
  return /*#__PURE__*/_jsx(BiuASelect, _objectSpread(_objectSpread({}, selectProps), {}, {
153
153
  ref: ref,
154
154
  loading: loading,
155
- value: state ? "".concat(state) : state,
155
+ value: state,
156
156
  optionLabelProp: 'label',
157
157
  optionFilterProp: 'label',
158
158
  onChange: function onChange(value) {
159
159
  setState(value);
160
- if (onChangeData) onChangeData(value, optionRows === null || optionRows === void 0 ? void 0 : optionRows.filter(function (n) {
161
- return "".concat(n[rowKey]) === "".concat(value);
162
- })[0]);
160
+ if (onChangeData) {
161
+ if (Array.isArray(value)) {
162
+ onChangeData(value, optionRows === null || optionRows === void 0 ? void 0 : optionRows.filter(function (n) {
163
+ return value.includes(n[rowKey]);
164
+ }));
165
+ } else onChangeData(value, optionRows === null || optionRows === void 0 ? void 0 : optionRows.filter(function (n) {
166
+ return "".concat(n[rowKey]) === "".concat(value);
167
+ })[0]);
168
+ }
163
169
  },
164
170
  dropdownRender: function dropdownRender(menu) {
165
171
  return /*#__PURE__*/_jsxs(_Fragment, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wt-enjoy-link-antd-repack",
3
- "version": "4.1.61",
3
+ "version": "4.1.63",
4
4
  "description": "万通业务组件",
5
5
  "sideEffects": false,
6
6
  "main": "dist/esm/index.js",