wt-enjoy-link-antd-repack 4.2.19 → 4.2.21

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.
@@ -2,6 +2,6 @@ import React from 'react';
2
2
  export { Form as BiuAForm } from 'antd';
3
3
  export declare const BiuAFormItem: React.MemoExoticComponent<(<Values = any>(props: import("antd").FormItemProps<Values>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
4
4
  useStatus: () => {
5
- status?: "" | "warning" | "error" | "success" | "validating" | undefined;
5
+ status?: "" | "success" | "warning" | "error" | "validating" | undefined;
6
6
  };
7
7
  }>;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { CustomerGoodsTableProps } from '../type';
3
+ import './index.less';
3
4
  /**
4
5
  * 库内模块可编辑表格
5
6
  * @param props
@@ -25,6 +25,7 @@ import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo
25
25
  import { BiuCue, BiuField, BiuResizeTable } from "../..";
26
26
  import { DATE_FORMTYPE } from "../../../constant";
27
27
  import { formatMoment, momentFormat } from "../../../utils";
28
+ import "./index.less";
28
29
  import { Fragment as _Fragment } from "react/jsx-runtime";
29
30
  import { jsx as _jsx } from "react/jsx-runtime";
30
31
  var requiredCols = {};
@@ -254,6 +255,7 @@ export var EditTable = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function
254
255
  return /*#__PURE__*/_jsx(Card, _objectSpread(_objectSpread({
255
256
  bordered: false
256
257
  }, cardProps), {}, {
258
+ className: "edit-table-card-wrapper",
257
259
  children: /*#__PURE__*/_jsx(BiuResizeTable, _objectSpread({
258
260
  rowKey: function rowKey(record, index) {
259
261
  return index;
@@ -0,0 +1,5 @@
1
+ .ant-card.edit-table-card-wrapper {
2
+ .ant-card-body {
3
+ padding: 12px 0px;
4
+ }
5
+ }
@@ -17,7 +17,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
17
17
  var StyledDrawer = styled(Drawer).withConfig({
18
18
  displayName: "StyledDrawer",
19
19
  componentId: "wt-enjoy-link-antd-repack__sc-1mx7aeu-0"
20
- })([".ant-drawer-header{padding:12px 4px !important;font-size:14px !important;font-weight:bold !important;}.ant-drawer-body{padding:0px 8px !important;}"]);
20
+ })([".ant-drawer-header{padding:12px 16px !important;font-size:14px !important;font-weight:bold !important;}.ant-drawer-body{padding:16px;}"]);
21
21
  export var BiuDetailDrawer = /*#__PURE__*/React.memo(function (props) {
22
22
  var footer = props.footer,
23
23
  onClose = props.onClose,
@@ -120,7 +120,7 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
120
120
  onSearch: onSearch,
121
121
  value: defaultValue,
122
122
  onChange: function onChange(values, option) {
123
- setDefaultValue(values);
123
+ // setDefaultValue(values)
124
124
  if (_onChange) {
125
125
  _onChange(values, option);
126
126
  }
@@ -9,7 +9,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
9
9
  /**
10
10
  * 0:入库 1:出库 2:移库 3:冻结 4:调整 5:属性变更
11
11
  */
12
- orderType: 0 | 3 | 1 | 4 | 2 | 5;
12
+ orderType: 0 | 2 | 1 | 3 | 4 | 5;
13
13
  isFirstLoad: boolean;
14
14
  onFetchData?: ((res: any) => any) | undefined;
15
15
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
@@ -20,7 +20,12 @@ export var BiuFileInput = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(funct
20
20
  children: [/*#__PURE__*/_jsxs(Button, {
21
21
  loading: loading,
22
22
  disabled: disabled,
23
- children: [loading ? null : /*#__PURE__*/_jsx(UploadOutlined, {}), text]
23
+ children: [loading ? null : /*#__PURE__*/_jsx(UploadOutlined, {
24
+ style: {
25
+ position: 'relative',
26
+ top: '-3px'
27
+ }
28
+ }), text]
24
29
  }), /*#__PURE__*/_jsx("input", {
25
30
  ref: ref,
26
31
  type: "file",
@@ -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
- var _excluded = ["formItemType", "id", "rules", "required", "requiredmessage", "layout", "span", "labelLetter", "label", "style", "options", "width", "colon"],
3
- _excluded2 = ["cardProps", "formItemOptions", "initialModel", "initialValues", "layout", "labelAlign", "gutter"],
2
+ var _excluded = ["formItemType", "id", "rules", "required", "requiredmessage", "layout", "span", "labelLetter", "label", "style", "options", "width", "labelWidth", "colon"],
3
+ _excluded2 = ["cardProps", "formItemOptions", "initialModel", "initialValues", "layout", "labelAlign", "labelWidth", "gutter"],
4
4
  _excluded3 = ["visible"],
5
5
  _excluded4 = ["title"],
6
6
  _excluded5 = ["title"],
@@ -147,8 +147,9 @@ export var BiuCustomerFormItem = /*#__PURE__*/React.memo(function (props) {
147
147
  label = props.label,
148
148
  style = props.style,
149
149
  options = props.options,
150
- _props$width = props.width,
151
- width = _props$width === void 0 ? 100 : _props$width,
150
+ width = props.width,
151
+ _props$labelWidth = props.labelWidth,
152
+ labelWidth = _props$labelWidth === void 0 ? 100 : _props$labelWidth,
152
153
  _props$colon = props.colon,
153
154
  colon = _props$colon === void 0 ? true : _props$colon,
154
155
  restProps = _objectWithoutProperties(props, _excluded);
@@ -171,6 +172,10 @@ export var BiuCustomerFormItem = /*#__PURE__*/React.memo(function (props) {
171
172
  }
172
173
  return _toConsumableArray(rules || []);
173
174
  }, [formItemType, required, requiredmessage, rules]);
175
+ var relaLabelWidth = useMemo(function () {
176
+ if (width !== null && width !== undefined) return width;
177
+ if (labelWidth !== null && labelWidth !== undefined) return labelWidth;
178
+ }, [width, labelWidth]);
174
179
  return /*#__PURE__*/_jsxs(Col, _objectSpread(_objectSpread({}, span ? {
175
180
  span: span
176
181
  } : BiuOperFormLayout[layout || 'default']), {}, {
@@ -182,7 +187,7 @@ export var BiuCustomerFormItem = /*#__PURE__*/React.memo(function (props) {
182
187
  label: label ? /*#__PURE__*/_jsx(FormLabelRender, {
183
188
  required: required,
184
189
  title: label,
185
- labelWidth: width,
190
+ labelWidth: relaLabelWidth,
186
191
  colon: colon
187
192
  }) : undefined,
188
193
  children: /*#__PURE__*/_jsx(BiuField, _objectSpread({
@@ -196,7 +201,7 @@ export var BiuCustomerFormItem = /*#__PURE__*/React.memo(function (props) {
196
201
  label: label ? /*#__PURE__*/_jsx(FormLabelRender, {
197
202
  required: required,
198
203
  title: label,
199
- labelWidth: width,
204
+ labelWidth: relaLabelWidth,
200
205
  colon: colon
201
206
  }) : undefined,
202
207
  children: /*#__PURE__*/_jsx(BiuField, _objectSpread({
@@ -222,6 +227,7 @@ export var BiuOperForm = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(functi
222
227
  layout = props.layout,
223
228
  _props$labelAlign = props.labelAlign,
224
229
  labelAlign = _props$labelAlign === void 0 ? 'right' : _props$labelAlign,
230
+ labelWidth = props.labelWidth,
225
231
  _props$gutter = props.gutter,
226
232
  gutter = _props$gutter === void 0 ? 20 : _props$gutter,
227
233
  restProps = _objectWithoutProperties(props, _excluded2);
@@ -304,7 +310,8 @@ export var BiuOperForm = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(functi
304
310
  var visible = _ref2.visible,
305
311
  formItemRestProps = _objectWithoutProperties(_ref2, _excluded3);
306
312
  return /*#__PURE__*/_jsx(BiuCustomerFormItem, _objectSpread({
307
- defaultLabel: initialModel ? initialModel[formItemRestProps.defaultLableId || "".concat(formItemRestProps.id, "Name")] : undefined
313
+ defaultLabel: initialModel ? initialModel[formItemRestProps.defaultLableId || "".concat(formItemRestProps.id, "Name")] : undefined,
314
+ labelWidth: labelWidth
308
315
  }, formItemRestProps), formItemRestProps.id);
309
316
  })
310
317
  })
@@ -19,5 +19,6 @@ export type BiuOperFormItemPropsType = {
19
19
  labelLetter?: number;
20
20
  span?: number;
21
21
  width?: number;
22
+ labelWidth?: number;
22
23
  [x: string]: any;
23
24
  };
@@ -27,8 +27,8 @@ export declare const TableInstance: React.MemoExoticComponent<React.ForwardRefEx
27
27
  defaultProps?: any;
28
28
  }) | undefined;
29
29
  columnsConfig?: {
30
- columnsIndex: boolean;
31
- showRowSelection: boolean;
30
+ columnsIndex?: boolean | undefined;
31
+ showRowSelection?: boolean | undefined;
32
32
  } | undefined;
33
33
  } & Omit<import("antd").TableProps<any>, "columns"> & React.RefAttributes<BiuTableActionType>>>;
34
34
  export declare const BiuTable: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
@@ -58,8 +58,8 @@ export declare const BiuTable: React.MemoExoticComponent<React.ForwardRefExoticC
58
58
  defaultProps?: any;
59
59
  }) | undefined;
60
60
  columnsConfig?: {
61
- columnsIndex: boolean;
62
- showRowSelection: boolean;
61
+ columnsIndex?: boolean | undefined;
62
+ showRowSelection?: boolean | undefined;
63
63
  } | undefined;
64
64
  } & Omit<import("antd").TableProps<any>, "columns"> & React.RefAttributes<BiuTableActionType>>>;
65
65
  export * from './component';
@@ -92,8 +92,8 @@ export type BiuTableInstancePropsType = {
92
92
  defaultProps?: any;
93
93
  };
94
94
  columnsConfig?: {
95
- columnsIndex: boolean;
96
- showRowSelection: boolean;
95
+ columnsIndex?: boolean;
96
+ showRowSelection?: boolean;
97
97
  };
98
98
  } & Omit<TableProps<any>, 'columns'>;
99
99
  /**
@@ -8,5 +8,5 @@ import type { BiuColumnType, BiuTableColumnOpearType } from './type';
8
8
  * @returns 表格最终展现的列
9
9
  */
10
10
  export declare const stretchRestructureColumns: (columns?: BiuColumnType[], tablePostfixOptions?: BiuTableColumnOpearType[], options?: {
11
- index: boolean;
11
+ index?: boolean;
12
12
  }) => BiuColumnType[];
@@ -50,4 +50,4 @@ export declare const BiuTableSelect: React.MemoExoticComponent<React.ForwardRefE
50
50
  * 是否多选
51
51
  */
52
52
  mode?: string | undefined;
53
- } & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "showSearch" | "allowClear"> & Pick<TableProps<any>, "dataSource" | "onRow"> & React.RefAttributes<unknown>>>;
53
+ } & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "showSearch" | "allowClear"> & Pick<TableProps<any>, "onRow" | "dataSource"> & React.RefAttributes<unknown>>>;
@@ -11,7 +11,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
11
11
  var StyledTabs = styled(Tabs).withConfig({
12
12
  displayName: "StyledTabs",
13
13
  componentId: "wt-enjoy-link-antd-repack__sc-tg7wb4-0"
14
- })(["height:100% !important;.ant-tabs-nav{margin:0 !important;padding:0 8px !important;}.ant-tabs-content{height:100% !important;}.ant-tabs-tabpane{height:100% !important;}"]);
14
+ })(["height:100% !important;.ant-tabs-nav{margin:0 !important;}.ant-tabs-content{height:100% !important;}.ant-tabs-tabpane{height:100% !important;}"]);
15
15
  export var BiuTabPane = Tabs.TabPane;
16
16
  export var BiuTabs = /*#__PURE__*/React.memo(function (props) {
17
17
  return /*#__PURE__*/_jsx(StyledTabs, _objectSpread({}, props));
@@ -3,6 +3,6 @@ import { UpdateVersionData } from '..';
3
3
  * 判断是否为子系统
4
4
  */
5
5
  export declare const IsSubSYS: boolean;
6
- export declare const compareVersions: (version1: string, version2: string | undefined | null) => 0 | 1 | -1;
6
+ export declare const compareVersions: (version1: string, version2: string | undefined | null) => 1 | 0 | -1;
7
7
  export declare const getSystemByUrl: (route: string) => "wms" | "mdm" | "sso" | undefined;
8
8
  export declare const updateVersionHandle: (data: UpdateVersionData) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wt-enjoy-link-antd-repack",
3
- "version": "4.2.19",
3
+ "version": "4.2.21",
4
4
  "description": "万通业务组件",
5
5
  "sideEffects": false,
6
6
  "main": "dist/esm/index.js",