uiw 5.0.0-bate-3 → 5.0.0-bate-4
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/dist/uiw.js +61 -52
- package/dist/uiw.min.js +1 -1
- package/package.json +60 -60
package/dist/uiw.js
CHANGED
|
@@ -1091,7 +1091,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1091
1091
|
"DateTimeStylePanelUl": () => (/* reexport */ DateTimeStylePanelUl),
|
|
1092
1092
|
"DayRect": () => (/* reexport */ DayRect),
|
|
1093
1093
|
"Descriptions": () => (/* reexport */ react_descriptions_esm),
|
|
1094
|
-
"DescriptionsStyleItem": () => (/* reexport */
|
|
1094
|
+
"DescriptionsStyleItem": () => (/* reexport */ DescriptionsStyleItem),
|
|
1095
1095
|
"DescriptionsStyleTable": () => (/* reexport */ DescriptionsStyleTable),
|
|
1096
1096
|
"DescriptionsStyleTableCaption": () => (/* reexport */ DescriptionsStyleTableCaption),
|
|
1097
1097
|
"DescriptionsStyleTableRow": () => (/* reexport */ DescriptionsStyleTableRow),
|
|
@@ -3541,7 +3541,7 @@ var style_templateObject, style_templateObject2, style_templateObject3, style_te
|
|
|
3541
3541
|
|
|
3542
3542
|
|
|
3543
3543
|
var loadingCircle = Ue(style_templateObject || (style_templateObject = _taggedTemplateLiteralLoose(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
|
|
3544
|
-
var IconStyleBase = styled_components_browser_esm.span(style_templateObject2 || (style_templateObject2 = _taggedTemplateLiteralLoose(["\n height: 1em;\n width: 1em;\n & svg {\n height: 1em;\n width: 1em;\n }\n display: inline-flex;\n align-self: center;\n position: relative;\n transition: color 0.3s;\n box-sizing: inherit;\n ", "\n ", "\n"])), props => {
|
|
3544
|
+
var IconStyleBase = styled_components_browser_esm.span(style_templateObject2 || (style_templateObject2 = _taggedTemplateLiteralLoose(["\n height: 1em;\n width: 1em;\n fill: 'currentColor';\n & svg {\n height: 1em;\n width: 1em;\n fill: 'currentColor';\n }\n display: inline-flex;\n align-self: center;\n position: relative;\n transition: color 0.3s;\n box-sizing: inherit;\n ", "\n ", "\n"])), props => {
|
|
3545
3545
|
var _props$params;
|
|
3546
3546
|
|
|
3547
3547
|
return (props.verticalAlign === 'baseline' || ((_props$params = props.params) == null ? void 0 : _props$params.verticalAlign) === 'baseline') && Ce(style_templateObject3 || (style_templateObject3 = _taggedTemplateLiteralLoose(["\n top: 0.125em;\n "])));
|
|
@@ -7796,7 +7796,8 @@ var Menu_excluded = ["prefixCls", "className", "children", "bordered", "theme",
|
|
|
7796
7796
|
|
|
7797
7797
|
|
|
7798
7798
|
|
|
7799
|
-
|
|
7799
|
+
|
|
7800
|
+
var Menu = (props, ref) => {
|
|
7800
7801
|
var {
|
|
7801
7802
|
prefixCls = 'w-menu',
|
|
7802
7803
|
className,
|
|
@@ -7837,12 +7838,14 @@ var Menu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_r
|
|
|
7837
7838
|
})
|
|
7838
7839
|
}))
|
|
7839
7840
|
});
|
|
7840
|
-
}
|
|
7841
|
+
};
|
|
7842
|
+
|
|
7841
7843
|
Menu.displayName = 'uiw.Menu';
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7844
|
+
var ContextMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(Menu);
|
|
7845
|
+
ContextMenu.Item = MenuItem;
|
|
7846
|
+
ContextMenu.SubMenu = SubMenu;
|
|
7847
|
+
ContextMenu.Divider = MenuDivider;
|
|
7848
|
+
/* harmony default export */ const esm_Menu = (ContextMenu);
|
|
7846
7849
|
|
|
7847
7850
|
;// CONCATENATED MODULE: ../react-menu/esm/index.js
|
|
7848
7851
|
|
|
@@ -8761,6 +8764,7 @@ function InternalCollapse(props, ref) {
|
|
|
8761
8764
|
}
|
|
8762
8765
|
|
|
8763
8766
|
var Collapse = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(InternalCollapse);
|
|
8767
|
+
Collapse.displayName = 'Collapse';
|
|
8764
8768
|
Collapse.Panel = Panel;
|
|
8765
8769
|
/* harmony default export */ const esm_Collapse = (Collapse);
|
|
8766
8770
|
|
|
@@ -9051,14 +9055,14 @@ function DateInput(props) {
|
|
|
9051
9055
|
}
|
|
9052
9056
|
|
|
9053
9057
|
;// CONCATENATED MODULE: ../react-descriptions/esm/DescriptionsItem.js
|
|
9054
|
-
var
|
|
9058
|
+
var DescriptionsItem = _ref => {
|
|
9055
9059
|
var {
|
|
9056
9060
|
children
|
|
9057
9061
|
} = _ref;
|
|
9058
9062
|
return children;
|
|
9059
9063
|
};
|
|
9060
9064
|
|
|
9061
|
-
/* harmony default export */ const
|
|
9065
|
+
/* harmony default export */ const esm_DescriptionsItem = (DescriptionsItem);
|
|
9062
9066
|
|
|
9063
9067
|
;// CONCATENATED MODULE: ../react-descriptions/esm/style/index.js
|
|
9064
9068
|
|
|
@@ -9089,11 +9093,11 @@ var react_descriptions_esm_style_propsTheme = {
|
|
|
9089
9093
|
defaultTheme: extends_extends({}, DescriptionsStyleTheme)
|
|
9090
9094
|
};
|
|
9091
9095
|
var DescriptionsStyleWarp = styled_components_browser_esm.div(react_descriptions_esm_style_templateObject || (react_descriptions_esm_style_templateObject = _taggedTemplateLiteralLoose(["\n background: ", ";\n ", "\n"])), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'backgroundColorBase'), props => props.bordered && Ce(react_descriptions_esm_style_templateObject2 || (react_descriptions_esm_style_templateObject2 = _taggedTemplateLiteralLoose(["\n & {\n overflow: hidden;\n border-radius: 3px;\n border: 1px solid ", ";\n }\n "])), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'borderColorDescriptions')));
|
|
9092
|
-
var
|
|
9096
|
+
var DescriptionsStyleItem = styled_components_browser_esm.th(react_descriptions_esm_style_templateObject3 || (react_descriptions_esm_style_templateObject3 = _taggedTemplateLiteralLoose(["\n ", "\n\n ", "\n ", "\n ", "\n"])), props => props.isLabel && Ce(react_descriptions_esm_style_templateObject4 || (react_descriptions_esm_style_templateObject4 = _taggedTemplateLiteralLoose(["\n & {\n font-size: 14px;\n font-weight: normal;\n &::after {\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n content: ' ';\n }\n }\n "]))), props => props.isColon && Ce(react_descriptions_esm_style_templateObject5 || (react_descriptions_esm_style_templateObject5 = _taggedTemplateLiteralLoose(["\n &::after {\n content: ':';\n }\n & {\n color: ", ";\n }\n "])), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'colorDescriptionsColon')), props => props.isContent && Ce(react_descriptions_esm_style_templateObject6 || (react_descriptions_esm_style_templateObject6 = _taggedTemplateLiteralLoose(["\n & {\n font-size: ", ";\n color: ", ";\n }\n "])), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'fontSizeDefault'), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'colorDescriptionsConent')), props => props.bordered && (props.isContent || props.isLabel) && Ce(react_descriptions_esm_style_templateObject7 || (react_descriptions_esm_style_templateObject7 = _taggedTemplateLiteralLoose(["\n &&:last-child {\n border-right: none;\n }\n "]))));
|
|
9093
9097
|
var DescriptionsStyleTable = styled_components_browser_esm.table(react_descriptions_esm_style_templateObject8 || (react_descriptions_esm_style_templateObject8 = _taggedTemplateLiteralLoose(["\n display: table !important;\n margin-bottom: 0 !important;\n margin: 0;\n border-spacing: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n"])));
|
|
9094
9098
|
var DescriptionsStyleTableCaption = styled_components_browser_esm.caption(react_descriptions_esm_style_templateObject9 || (react_descriptions_esm_style_templateObject9 = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n text-align: left;\n margin-bottom: 8px;\n color: ", ";\n font-size: ", ";\n line-height: 1.5;\n ", "\n"])), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'colorDescriptionsHead'), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'fontSizeLarge'), props => props.bordered && Ce(react_descriptions_esm_style_templateObject10 || (react_descriptions_esm_style_templateObject10 = _taggedTemplateLiteralLoose(["\n & {\n margin-bottom: 0;\n padding: 7px 12px;\n }\n "]))));
|
|
9095
9099
|
var DescriptionsStyleTableRow = styled_components_browser_esm.tr(react_descriptions_esm_style_templateObject11 || (react_descriptions_esm_style_templateObject11 = _taggedTemplateLiteralLoose(["\n &&:nth-child(2n) {\n background-color: transparent;\n }\n ", "\n ", "\n"])), props => props.bordered && Ce(react_descriptions_esm_style_templateObject12 || (react_descriptions_esm_style_templateObject12 = _taggedTemplateLiteralLoose(["\n & td {\n padding: 8px 12px;\n }\n "]))), props => !props.bordered && Ce(react_descriptions_esm_style_templateObject13 || (react_descriptions_esm_style_templateObject13 = _taggedTemplateLiteralLoose(["\n & td {\n padding-bottom: 8px;\n }\n "]))));
|
|
9096
|
-
var DescriptionsStyleTableTbody = styled_components_browser_esm.tbody(react_descriptions_esm_style_templateObject14 || (react_descriptions_esm_style_templateObject14 = _taggedTemplateLiteralLoose(["\n word-wrap: break-word;\n ", "\n ", "\n ", "\n"])), props => props.bordered && Ce(react_descriptions_esm_style_templateObject15 || (react_descriptions_esm_style_templateObject15 = _taggedTemplateLiteralLoose(["\n & {\n tr th {\n padding: 8px 12px;\n background-color: ", ";\n font-weight: normal;\n }\n tr th,\n tr td {\n border-top: 1px solid\n ", ";\n border-right: 1px solid\n ", ";\n }\n &:first-child tr:first-child th,\n &:first-child tr:first-child td {\n border-top: 0;\n }\n }\n "])), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'borderColorDescriptionsTh'), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'borderColorDescriptions'), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'borderColorDescriptions')), props => props.size === 'small' && props.bordered && Ce(react_descriptions_esm_style_templateObject16 || (react_descriptions_esm_style_templateObject16 = _taggedTemplateLiteralLoose(["\n & ", " td,\n & ", " th {\n padding: 4px 8px;\n }\n "])), DescriptionsStyleTableRow, DescriptionsStyleTableRow), props => props.size === 'large' && props.bordered && Ce(style_templateObject17 || (style_templateObject17 = _taggedTemplateLiteralLoose(["\n & ", " ", " {\n padding: 14px 16px;\n }\n "])), DescriptionsStyleTableRow,
|
|
9100
|
+
var DescriptionsStyleTableTbody = styled_components_browser_esm.tbody(react_descriptions_esm_style_templateObject14 || (react_descriptions_esm_style_templateObject14 = _taggedTemplateLiteralLoose(["\n word-wrap: break-word;\n ", "\n ", "\n ", "\n"])), props => props.bordered && Ce(react_descriptions_esm_style_templateObject15 || (react_descriptions_esm_style_templateObject15 = _taggedTemplateLiteralLoose(["\n & {\n tr th {\n padding: 8px 12px;\n background-color: ", ";\n font-weight: normal;\n }\n tr th,\n tr td {\n border-top: 1px solid\n ", ";\n border-right: 1px solid\n ", ";\n }\n &:first-child tr:first-child th,\n &:first-child tr:first-child td {\n border-top: 0;\n }\n }\n "])), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'borderColorDescriptionsTh'), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'borderColorDescriptions'), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'borderColorDescriptions')), props => props.size === 'small' && props.bordered && Ce(react_descriptions_esm_style_templateObject16 || (react_descriptions_esm_style_templateObject16 = _taggedTemplateLiteralLoose(["\n & ", " td,\n & ", " th {\n padding: 4px 8px;\n }\n "])), DescriptionsStyleTableRow, DescriptionsStyleTableRow), props => props.size === 'large' && props.bordered && Ce(style_templateObject17 || (style_templateObject17 = _taggedTemplateLiteralLoose(["\n & ", " ", " {\n padding: 14px 16px;\n }\n "])), DescriptionsStyleTableRow, DescriptionsStyleItem));
|
|
9097
9101
|
|
|
9098
9102
|
;// CONCATENATED MODULE: ../react-descriptions/esm/Cell.js
|
|
9099
9103
|
|
|
@@ -9128,17 +9132,17 @@ function Cell(props) {
|
|
|
9128
9132
|
|
|
9129
9133
|
if (layout === 'horizontal') {
|
|
9130
9134
|
if (!bordered) {
|
|
9131
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)(
|
|
9135
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)(DescriptionsStyleItem, extends_extends({
|
|
9132
9136
|
as: TagName
|
|
9133
9137
|
}, other, {
|
|
9134
9138
|
colSpan: span,
|
|
9135
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
9139
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionsStyleItem, extends_extends({
|
|
9136
9140
|
as: "span"
|
|
9137
9141
|
}, labelProps, {
|
|
9138
9142
|
isColon: colon,
|
|
9139
9143
|
isLabel: !!label,
|
|
9140
9144
|
children: label
|
|
9141
|
-
})), /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
9145
|
+
})), /*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionsStyleItem, {
|
|
9142
9146
|
as: "span",
|
|
9143
9147
|
isContent: !!prefixCls,
|
|
9144
9148
|
className: prefixCls ? prefixCls + "-item-content" : '',
|
|
@@ -9148,14 +9152,14 @@ function Cell(props) {
|
|
|
9148
9152
|
}
|
|
9149
9153
|
|
|
9150
9154
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(external_root_React_commonjs2_react_commonjs_react_amd_react_.Fragment, {
|
|
9151
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
9155
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionsStyleItem, extends_extends({
|
|
9152
9156
|
as: "th"
|
|
9153
9157
|
}, labelProps, {
|
|
9154
9158
|
bordered: bordered,
|
|
9155
9159
|
isColon: colon,
|
|
9156
9160
|
isLabel: !!label,
|
|
9157
9161
|
children: label
|
|
9158
|
-
})), /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
9162
|
+
})), /*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionsStyleItem, extends_extends({}, other, {
|
|
9159
9163
|
as: TagName,
|
|
9160
9164
|
isContent: !!prefixCls,
|
|
9161
9165
|
bordered: bordered,
|
|
@@ -9166,7 +9170,7 @@ function Cell(props) {
|
|
|
9166
9170
|
});
|
|
9167
9171
|
}
|
|
9168
9172
|
|
|
9169
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
9173
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionsStyleItem, {
|
|
9170
9174
|
bordered: bordered,
|
|
9171
9175
|
isLabel: TagName === 'th',
|
|
9172
9176
|
isContent: TagName === 'td',
|
|
@@ -9317,10 +9321,15 @@ function InternalDescriptions(props, ref) {
|
|
|
9317
9321
|
})]
|
|
9318
9322
|
}))
|
|
9319
9323
|
});
|
|
9320
|
-
}
|
|
9324
|
+
} // const Descriptions = React.forwardRef<HTMLDivElement, DescriptionsProps>(InternalDescriptions);
|
|
9325
|
+
// type Descriptions = typeof Descriptions & {
|
|
9326
|
+
// Item: typeof DescriptionsItem;
|
|
9327
|
+
// };
|
|
9328
|
+
// (Descriptions as Descriptions).Item = DescriptionsItem;
|
|
9329
|
+
|
|
9321
9330
|
|
|
9322
9331
|
var Descriptions = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(InternalDescriptions);
|
|
9323
|
-
Descriptions.Item =
|
|
9332
|
+
Descriptions.Item = esm_DescriptionsItem;
|
|
9324
9333
|
/* harmony default export */ const react_descriptions_esm = (Descriptions);
|
|
9325
9334
|
|
|
9326
9335
|
;// CONCATENATED MODULE: ../react-divider/esm/style/index.js
|
|
@@ -13239,7 +13248,8 @@ var react_select_esm_excluded = ["prefixCls", "className", "size"];
|
|
|
13239
13248
|
|
|
13240
13249
|
|
|
13241
13250
|
|
|
13242
|
-
|
|
13251
|
+
|
|
13252
|
+
var InternalSelect = (props, ref) => {
|
|
13243
13253
|
var {
|
|
13244
13254
|
prefixCls = 'w-select',
|
|
13245
13255
|
className,
|
|
@@ -13255,7 +13265,9 @@ var Select = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd
|
|
|
13255
13265
|
size
|
|
13256
13266
|
}
|
|
13257
13267
|
}));
|
|
13258
|
-
}
|
|
13268
|
+
};
|
|
13269
|
+
|
|
13270
|
+
var Select = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(InternalSelect);
|
|
13259
13271
|
Select.Option = Option;
|
|
13260
13272
|
Select.Group = Group;
|
|
13261
13273
|
/* harmony default export */ const react_select_esm = (Select);
|
|
@@ -13480,6 +13492,7 @@ var Form_excluded = ["prefixCls", "className", "fields", "children", "resetOnSub
|
|
|
13480
13492
|
|
|
13481
13493
|
|
|
13482
13494
|
|
|
13495
|
+
|
|
13483
13496
|
function newFormState(fields, cb) {
|
|
13484
13497
|
var state = {
|
|
13485
13498
|
initial: {},
|
|
@@ -13510,8 +13523,7 @@ function newInitialValue(value) {
|
|
|
13510
13523
|
|
|
13511
13524
|
var isPromise = promise => promise && typeof promise.then === 'function';
|
|
13512
13525
|
|
|
13513
|
-
function Form(
|
|
13514
|
-
) {
|
|
13526
|
+
function Form(props, ref) {
|
|
13515
13527
|
var {
|
|
13516
13528
|
prefixCls = 'w-form',
|
|
13517
13529
|
className,
|
|
@@ -13522,13 +13534,13 @@ function Form(_ref, ref //| React.RefObject<FormRefType>,
|
|
|
13522
13534
|
onChange,
|
|
13523
13535
|
onSubmit,
|
|
13524
13536
|
afterSubmit
|
|
13525
|
-
} =
|
|
13526
|
-
others = _objectWithoutPropertiesLoose(
|
|
13537
|
+
} = props,
|
|
13538
|
+
others = _objectWithoutPropertiesLoose(props, Form_excluded);
|
|
13527
13539
|
|
|
13528
|
-
var initData = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => newFormState(fields,
|
|
13540
|
+
var initData = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => newFormState(fields, _ref => {
|
|
13529
13541
|
var {
|
|
13530
13542
|
initialValue
|
|
13531
|
-
} =
|
|
13543
|
+
} = _ref;
|
|
13532
13544
|
initialValue = newInitialValue(initialValue);
|
|
13533
13545
|
return {
|
|
13534
13546
|
initialValue,
|
|
@@ -13547,28 +13559,27 @@ function Form(_ref, ref //| React.RefObject<FormRefType>,
|
|
|
13547
13559
|
var formUnits = {};
|
|
13548
13560
|
|
|
13549
13561
|
for (var name in fields) {
|
|
13550
|
-
var
|
|
13551
|
-
if (!
|
|
13562
|
+
var itemProps = fields[name];
|
|
13563
|
+
if (!itemProps) continue;
|
|
13552
13564
|
var error = data.errors[name];
|
|
13553
13565
|
|
|
13554
|
-
if (typeof
|
|
13555
|
-
|
|
13566
|
+
if (typeof itemProps.initialValue === 'boolean') {
|
|
13567
|
+
itemProps.checked = itemProps.initialValue;
|
|
13556
13568
|
}
|
|
13557
13569
|
|
|
13558
|
-
var childField = controlField(extends_extends({},
|
|
13570
|
+
var childField = controlField(extends_extends({}, itemProps, {
|
|
13559
13571
|
name
|
|
13560
13572
|
}));
|
|
13561
|
-
var help = error ||
|
|
13562
|
-
var labelFor =
|
|
13563
|
-
formUnits[name] = /*#__PURE__*/(0,
|
|
13573
|
+
var help = error || itemProps.help;
|
|
13574
|
+
var labelFor = itemProps.labelFor;
|
|
13575
|
+
formUnits[name] = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createElement)(FormItem, extends_extends({}, itemProps, {
|
|
13564
13576
|
key: name,
|
|
13565
13577
|
children: childField,
|
|
13566
|
-
help,
|
|
13567
|
-
labelFor,
|
|
13568
|
-
|
|
13569
|
-
name,
|
|
13578
|
+
help: help,
|
|
13579
|
+
labelFor: labelFor,
|
|
13580
|
+
name: name,
|
|
13570
13581
|
hasError: !!error
|
|
13571
|
-
}))
|
|
13582
|
+
}));
|
|
13572
13583
|
}
|
|
13573
13584
|
|
|
13574
13585
|
function setFields(fields) {
|
|
@@ -13705,8 +13716,8 @@ function Form(_ref, ref //| React.RefObject<FormRefType>,
|
|
|
13705
13716
|
|
|
13706
13717
|
var initials = extends_extends({}, initial);
|
|
13707
13718
|
|
|
13708
|
-
Object.entries(initials).map(
|
|
13709
|
-
var [key, value] =
|
|
13719
|
+
Object.entries(initials).map(_ref2 => {
|
|
13720
|
+
var [key, value] = _ref2;
|
|
13710
13721
|
|
|
13711
13722
|
if (Array.isArray(value)) {
|
|
13712
13723
|
initials[key] = [...value];
|
|
@@ -13719,13 +13730,13 @@ function Form(_ref, ref //| React.RefObject<FormRefType>,
|
|
|
13719
13730
|
}));
|
|
13720
13731
|
}
|
|
13721
13732
|
|
|
13722
|
-
function controlField(
|
|
13733
|
+
function controlField(_ref3) {
|
|
13723
13734
|
var {
|
|
13724
13735
|
children,
|
|
13725
13736
|
validator,
|
|
13726
13737
|
name
|
|
13727
|
-
} =
|
|
13728
|
-
other = _objectWithoutPropertiesLoose(
|
|
13738
|
+
} = _ref3,
|
|
13739
|
+
other = _objectWithoutPropertiesLoose(_ref3, Form_excluded2);
|
|
13729
13740
|
|
|
13730
13741
|
var element = typeof children !== 'function' ? children : children({
|
|
13731
13742
|
onChange: handleChange(name, validator),
|
|
@@ -13753,10 +13764,9 @@ function Form(_ref, ref //| React.RefObject<FormRefType>,
|
|
|
13753
13764
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(element, props);
|
|
13754
13765
|
}
|
|
13755
13766
|
|
|
13756
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(FormStyleWarp, extends_extends({},
|
|
13767
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(FormStyleWarp, extends_extends({}, others, {
|
|
13757
13768
|
className: [prefixCls, className].filter(Boolean).join(' ').trim(),
|
|
13758
|
-
onSubmit: handleSubmit
|
|
13759
|
-
}), {
|
|
13769
|
+
onSubmit: handleSubmit,
|
|
13760
13770
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(FormStyleFieldset, {
|
|
13761
13771
|
disabled: data.submitting,
|
|
13762
13772
|
children: typeof children === 'function' ? children({
|
|
@@ -13867,7 +13877,6 @@ var react_list_esm_excluded = ["prefixCls", "bordered", "striped", "noHover", "a
|
|
|
13867
13877
|
|
|
13868
13878
|
|
|
13869
13879
|
|
|
13870
|
-
|
|
13871
13880
|
function InternalList(props, ref) {
|
|
13872
13881
|
var {
|
|
13873
13882
|
prefixCls = 'w-list',
|
|
@@ -13876,7 +13885,7 @@ function InternalList(props, ref) {
|
|
|
13876
13885
|
noHover = false,
|
|
13877
13886
|
active = false,
|
|
13878
13887
|
size = 'default',
|
|
13879
|
-
renderItem
|
|
13888
|
+
renderItem,
|
|
13880
13889
|
className,
|
|
13881
13890
|
children,
|
|
13882
13891
|
header,
|
|
@@ -13888,7 +13897,7 @@ function InternalList(props, ref) {
|
|
|
13888
13897
|
var items;
|
|
13889
13898
|
|
|
13890
13899
|
if (dataSource && dataSource.length > 0) {
|
|
13891
|
-
items = dataSource.map((item, index) => renderItem(item, index));
|
|
13900
|
+
items = dataSource.map((item, index) => renderItem && renderItem(item, index));
|
|
13892
13901
|
} else {
|
|
13893
13902
|
items = children;
|
|
13894
13903
|
}
|