@yilianjituan/yilian_dgerm 1.0.5-alpha.4 → 1.0.5-alpha.6
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.
|
@@ -56,7 +56,11 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
56
56
|
exportApi = props.exportApi,
|
|
57
57
|
_props$isScroll = props.isScroll,
|
|
58
58
|
isScroll = _props$isScroll === void 0 ? true : _props$isScroll,
|
|
59
|
-
buttonTheme = props.buttonTheme
|
|
59
|
+
buttonTheme = props.buttonTheme,
|
|
60
|
+
_props$initialValues = props.initialValues,
|
|
61
|
+
initialValues = _props$initialValues === void 0 ? {} : _props$initialValues,
|
|
62
|
+
_props$formProps = props.formProps,
|
|
63
|
+
formProps = _props$formProps === void 0 ? {} : _props$formProps;
|
|
60
64
|
var _useState = useState([]),
|
|
61
65
|
_useState2 = _slicedToArray(_useState, 2),
|
|
62
66
|
dataSource = _useState2[0],
|
|
@@ -165,7 +169,7 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
165
169
|
_columns = _columns.map(function (item) {
|
|
166
170
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
167
171
|
minWidth: item.minWidth || item.title.length * 20 + 20,
|
|
168
|
-
ellipsis: item.ellipsis
|
|
172
|
+
ellipsis: typeof item.ellipsis === 'boolean' ? item.ellipsis : true,
|
|
169
173
|
align: item.align || 'center',
|
|
170
174
|
fixed: item.fixed || (['action', 'operation', 'handle', 'handle_box'].includes(item.dataIndex) ? 'right' : ['rowIndex'].includes(item.key) ? 'left' : undefined)
|
|
171
175
|
});
|
|
@@ -383,12 +387,13 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
383
387
|
return 'actions';
|
|
384
388
|
}
|
|
385
389
|
};
|
|
386
|
-
return /*#__PURE__*/React.createElement(Form, {
|
|
390
|
+
return /*#__PURE__*/React.createElement(Form, _extends({
|
|
387
391
|
layout: "inline",
|
|
388
392
|
form: form,
|
|
389
393
|
onFinish: beforeSearch,
|
|
390
|
-
autoComplete: "off"
|
|
391
|
-
|
|
394
|
+
autoComplete: "off",
|
|
395
|
+
initialValues: initialValues
|
|
396
|
+
}, formProps), /*#__PURE__*/React.createElement("div", {
|
|
392
397
|
className: "filter-container"
|
|
393
398
|
}, /*#__PURE__*/React.createElement("div", {
|
|
394
399
|
className: "filter-box filter-box-base"
|
|
@@ -189,7 +189,7 @@ var CustomTable = function CustomTable(props) {
|
|
|
189
189
|
_columns = _columns.map(function (item) {
|
|
190
190
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
191
191
|
minWidth: item.minWidth || item.title.length * 20 + 20,
|
|
192
|
-
ellipsis: item.ellipsis
|
|
192
|
+
ellipsis: typeof item.ellipsis === 'boolean' ? item.ellipsis : true,
|
|
193
193
|
align: item.align || 'center',
|
|
194
194
|
fixed: item.fixed || (['action', 'operation', 'handle', 'handle_box'].includes(item.dataIndex) ? 'right' : ['rowIndex'].includes(item.key) ? 'left' : undefined)
|
|
195
195
|
});
|