linkmore-design 1.1.15 → 1.1.16
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/Form/FormWrapper.d.ts +3 -0
- package/dist/Form/WrapperItem.d.ts +4 -0
- package/dist/Form/index.d.ts +2 -0
- package/dist/Form/interface.d.ts +10 -0
- package/dist/LmTable/demos/summuy.d.ts +2 -0
- package/dist/TreeSelect/demos/treedata.d.ts +3 -0
- package/dist/index.umd.js +927 -852
- package/dist/index.umd.min.js +5 -5
- package/dist/variables.css +59 -48
- package/es/Cascader/style/index.css +1 -0
- package/es/Cascader/style/variables.css +1 -0
- package/es/Form/Form.js +13 -4
- package/es/Form/FormItem/ItemHolder.js +1 -10
- package/es/Form/FormWrapper.d.ts +3 -0
- package/es/Form/FormWrapper.js +23 -0
- package/es/Form/WrapperItem.d.ts +4 -0
- package/es/Form/WrapperItem.js +149 -0
- package/es/Form/container.js +1 -13
- package/es/Form/images/icon_collapse.svg +1 -0
- package/es/Form/index.d.ts +2 -0
- package/es/Form/index.js +2 -0
- package/es/Form/interface.d.ts +10 -0
- package/es/Form/style/index.css +13 -48
- package/es/Form/style/variables.css +13 -48
- package/es/InputNumber/style/index.css +4 -0
- package/es/InputNumber/style/variables.css +4 -0
- package/es/LmEditTable/EditTable.js +3 -2
- package/es/LmFilter/components/CheckboxFilter.js +9 -4
- package/es/LmFilter/components/DropdownFIlter.js +10 -4
- package/es/LmFilter/components/SelectFilter.js +4 -3
- package/es/LmSelect/style/index.css +1 -0
- package/es/LmSelect/style/variables.css +1 -0
- package/es/LmTable/style/index.css +39 -0
- package/es/LmTable/style/variables.css +39 -0
- package/es/Select/style/index.css +1 -0
- package/es/Select/style/variables.css +1 -0
- package/es/styles/variables.css +59 -48
- package/lib/Cascader/style/index.css +1 -0
- package/lib/Cascader/style/variables.css +1 -0
- package/lib/Form/Form.js +13 -4
- package/lib/Form/FormItem/ItemHolder.js +1 -10
- package/lib/Form/FormWrapper.d.ts +3 -0
- package/lib/Form/FormWrapper.js +35 -0
- package/lib/Form/WrapperItem.d.ts +4 -0
- package/lib/Form/WrapperItem.js +168 -0
- package/lib/Form/container.js +1 -13
- package/lib/Form/images/icon_collapse.svg +1 -0
- package/lib/Form/index.d.ts +2 -0
- package/lib/Form/index.js +3 -0
- package/lib/Form/interface.d.ts +10 -0
- package/lib/Form/style/index.css +13 -48
- package/lib/Form/style/variables.css +13 -48
- package/lib/InputNumber/style/index.css +4 -0
- package/lib/InputNumber/style/variables.css +4 -0
- package/lib/LmEditTable/EditTable.js +3 -2
- package/lib/LmFilter/components/CheckboxFilter.js +9 -4
- package/lib/LmFilter/components/DropdownFIlter.js +10 -4
- package/lib/LmFilter/components/SelectFilter.js +4 -3
- package/lib/LmSelect/style/index.css +1 -0
- package/lib/LmSelect/style/variables.css +1 -0
- package/lib/LmTable/style/index.css +39 -0
- package/lib/LmTable/style/variables.css +39 -0
- package/lib/Select/style/index.css +1 -0
- package/lib/Select/style/variables.css +1 -0
- package/lib/styles/variables.css +59 -48
- package/package.json +4 -2
|
@@ -1150,9 +1150,10 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1150
1150
|
|
|
1151
1151
|
var dataIndex = col.dataIndex,
|
|
1152
1152
|
editable = col.editable,
|
|
1153
|
-
relevanceCols = col.relevanceCols
|
|
1153
|
+
relevanceCols = col.relevanceCols,
|
|
1154
|
+
componentProps = col.componentProps;
|
|
1154
1155
|
|
|
1155
|
-
if ((col === null || col === void 0 ? void 0 : col.fixed) || hasDisableOptions && hasDisableOptions.includes(dataIndex) || ((_a = col.componentProps) === null || _a === void 0 ? void 0 : _a.options) || editable === 'render' || !!relevanceCols || !!shouldUpdate || !!record.children) {
|
|
1156
|
+
if ((col === null || col === void 0 ? void 0 : col.fixed) || hasDisableOptions && hasDisableOptions.includes(dataIndex) || ((_a = col.componentProps) === null || _a === void 0 ? void 0 : _a.options) || editable === 'render' || !!relevanceCols || !!shouldUpdate || !!record.children || componentProps && isFunction(componentProps)) {
|
|
1156
1157
|
return true;
|
|
1157
1158
|
}
|
|
1158
1159
|
|
|
@@ -43,7 +43,9 @@ var CheckboxFilter = function CheckboxFilter(_ref) {
|
|
|
43
43
|
visible = instance.visible,
|
|
44
44
|
setVisible = instance.setVisible;
|
|
45
45
|
var _itemProps$data = itemProps.data,
|
|
46
|
-
filters = _itemProps$data === void 0 ? [] : _itemProps$data
|
|
46
|
+
filters = _itemProps$data === void 0 ? [] : _itemProps$data,
|
|
47
|
+
showSearch = itemProps.showSearch,
|
|
48
|
+
showAllChecked = itemProps.showAllChecked;
|
|
47
49
|
var inputRef = (0, _react.useRef)(); // 选中的数据项: [key, key, ...];
|
|
48
50
|
|
|
49
51
|
var _useState = (0, _react.useState)(filterValue),
|
|
@@ -62,8 +64,11 @@ var CheckboxFilter = function CheckboxFilter(_ref) {
|
|
|
62
64
|
var delayedFn = (0, _hooks.useDelayedFn)(); // 是否存在搜索, 当数据大于8时存在搜索
|
|
63
65
|
|
|
64
66
|
var isSearch = (0, _react.useMemo)(function () {
|
|
65
|
-
return filters.length > 8;
|
|
66
|
-
}, [filters.length]);
|
|
67
|
+
return filters.length > 8 && !!(showSearch !== null && showSearch !== void 0 ? showSearch : true);
|
|
68
|
+
}, [filters.length, showSearch]);
|
|
69
|
+
var isAllCheck = (0, _react.useMemo)(function () {
|
|
70
|
+
return !!(showAllChecked !== null && showAllChecked !== void 0 ? showAllChecked : true);
|
|
71
|
+
}, [showAllChecked]); // 是否全选: 选中的数据大于等于筛选后的数据 && 筛选后的数据全部存在于选中的数据中
|
|
67
72
|
|
|
68
73
|
var checkAll = (0, _react.useMemo)(function () {
|
|
69
74
|
var isAll = checkedValues.length >= options.length;
|
|
@@ -145,7 +150,7 @@ var CheckboxFilter = function CheckboxFilter(_ref) {
|
|
|
145
150
|
ref: inputRef,
|
|
146
151
|
onSearch: handleFilter,
|
|
147
152
|
onChange: handleFilter
|
|
148
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
153
|
+
}), isAllCheck && /*#__PURE__*/_react.default.createElement("div", {
|
|
149
154
|
className: "filter_header_operate"
|
|
150
155
|
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
|
|
151
156
|
indeterminate: indeterminate,
|
|
@@ -208,14 +208,20 @@ var DropdownFilter = /*#__PURE__*/_react.default.memo(function (_ref2) {
|
|
|
208
208
|
|
|
209
209
|
var filterValue = instance.filterValue,
|
|
210
210
|
size = instance.size;
|
|
211
|
-
var popupClassName = item.popupClassName
|
|
211
|
+
var popupClassName = item.popupClassName,
|
|
212
|
+
colon = item.colon,
|
|
213
|
+
className = item.className; // 触发查询时关闭下拉框
|
|
212
214
|
|
|
213
215
|
var setFilterValue = function setFilterValue(obj) {
|
|
214
216
|
instance.setFilterValue(obj);
|
|
215
217
|
setVisible(false);
|
|
216
|
-
}; //
|
|
218
|
+
}; // 冒号
|
|
217
219
|
|
|
218
220
|
|
|
221
|
+
var showColon = (0, _react.useMemo)(function () {
|
|
222
|
+
return (colon !== null && colon !== void 0 ? colon : ':') ? ':' : null;
|
|
223
|
+
}, [colon]); // 重组Instance 加入下拉关闭控制
|
|
224
|
+
|
|
219
225
|
var resetInstance = (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
220
226
|
visible: visible,
|
|
221
227
|
setVisible: setVisible
|
|
@@ -249,13 +255,13 @@ var DropdownFilter = /*#__PURE__*/_react.default.memo(function (_ref2) {
|
|
|
249
255
|
,
|
|
250
256
|
destroyPopupOnHide: true
|
|
251
257
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
252
|
-
className: (0, _classnames.default)('lm_filter_basic_item', size, {
|
|
258
|
+
className: (0, _classnames.default)('lm_filter_basic_item', className, size, {
|
|
253
259
|
expand: visible,
|
|
254
260
|
active: active
|
|
255
261
|
})
|
|
256
262
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
257
263
|
className: "filter_item_label"
|
|
258
|
-
}, item === null || item === void 0 ? void 0 : item.title,
|
|
264
|
+
}, item === null || item === void 0 ? void 0 : item.title, showColon), /*#__PURE__*/_react.default.createElement("div", {
|
|
259
265
|
className: "filter_item_value"
|
|
260
266
|
}, getLabel(resetInstance, item)), /*#__PURE__*/_react.default.createElement("div", {
|
|
261
267
|
className: "filter_item_icon addon_after"
|
|
@@ -39,7 +39,8 @@ var SelectFilter = function SelectFilter(_ref) {
|
|
|
39
39
|
setFilterValue = instance.setFilterValue,
|
|
40
40
|
visible = instance.visible;
|
|
41
41
|
var _itemProps$data = itemProps.data,
|
|
42
|
-
filters = _itemProps$data === void 0 ? [] : _itemProps$data
|
|
42
|
+
filters = _itemProps$data === void 0 ? [] : _itemProps$data,
|
|
43
|
+
showSearch = itemProps.showSearch;
|
|
43
44
|
var delayedFn = (0, _hooks.useDelayedFn)();
|
|
44
45
|
var inputRef = (0, _react.useRef)(null); // 搜索后的筛选项
|
|
45
46
|
|
|
@@ -50,8 +51,8 @@ var SelectFilter = function SelectFilter(_ref) {
|
|
|
50
51
|
|
|
51
52
|
|
|
52
53
|
var isSearch = (0, _react.useMemo)(function () {
|
|
53
|
-
return filters.length > 8;
|
|
54
|
-
}, [filters.length]); // 自定义节点字段
|
|
54
|
+
return filters.length > 8 && !!(showSearch !== null && showSearch !== void 0 ? showSearch : true);
|
|
55
|
+
}, [filters.length, showSearch]); // 自定义节点字段
|
|
55
56
|
|
|
56
57
|
var fieldNames = (0, _react.useMemo)(function () {
|
|
57
58
|
return (0, _objectSpread2.default)({
|
|
@@ -1226,6 +1226,45 @@ p {
|
|
|
1226
1226
|
#lm_protable_warp .lm_protable .ant-table-empty table .ant-table-cell {
|
|
1227
1227
|
border-bottom: 0;
|
|
1228
1228
|
}
|
|
1229
|
+
#lm_protable_warp .lm_protable .ant-table-summary {
|
|
1230
|
+
height: 48px;
|
|
1231
|
+
}
|
|
1232
|
+
#lm_protable_warp .lm_protable .ant-table-summary > table {
|
|
1233
|
+
height: 100%;
|
|
1234
|
+
}
|
|
1235
|
+
#lm_protable_warp .lm_protable .ant-table-summary td {
|
|
1236
|
+
padding: 0 8px;
|
|
1237
|
+
text-align: right;
|
|
1238
|
+
background-color: var(--table-background-color);
|
|
1239
|
+
}
|
|
1240
|
+
#lm_protable_warp .lm_protable .ant-table-summary td:first-of-type {
|
|
1241
|
+
padding: 0 0 0 8px;
|
|
1242
|
+
text-align: left;
|
|
1243
|
+
}
|
|
1244
|
+
#lm_protable_warp .lm_protable .ant-table-summary td.number {
|
|
1245
|
+
border-right: 1px solid #eee;
|
|
1246
|
+
border-left: 1px solid #eee;
|
|
1247
|
+
}
|
|
1248
|
+
#lm_protable_warp .lm_protable .ant-table-summary td.money {
|
|
1249
|
+
color: var(--error-color);
|
|
1250
|
+
border-right: 1px solid #eee;
|
|
1251
|
+
border-left: 1px solid #eee;
|
|
1252
|
+
}
|
|
1253
|
+
#lm_protable_warp .lm_protable .ant-table-summary td.money-color {
|
|
1254
|
+
color: var(--error-color);
|
|
1255
|
+
}
|
|
1256
|
+
#lm_protable_warp .lm_protable .ant-table-summary td > div {
|
|
1257
|
+
overflow: hidden;
|
|
1258
|
+
white-space: nowrap;
|
|
1259
|
+
text-overflow: ellipsis;
|
|
1260
|
+
}
|
|
1261
|
+
#lm_protable_warp .lm_protable .ant-table-summary td > div:last-of-type {
|
|
1262
|
+
font-weight: bold;
|
|
1263
|
+
}
|
|
1264
|
+
#lm_protable_warp .lm_protable .ant-table-summary .total_title {
|
|
1265
|
+
position: relative;
|
|
1266
|
+
white-space: nowrap;
|
|
1267
|
+
}
|
|
1229
1268
|
#lm_protable_warp .ant-table-expand-icon-col {
|
|
1230
1269
|
width: 32px;
|
|
1231
1270
|
}
|
|
@@ -714,6 +714,45 @@
|
|
|
714
714
|
#lm_protable_warp .lm_protable .ant-table-empty table .ant-table-cell {
|
|
715
715
|
border-bottom: 0;
|
|
716
716
|
}
|
|
717
|
+
#lm_protable_warp .lm_protable .ant-table-summary {
|
|
718
|
+
height: 48px;
|
|
719
|
+
}
|
|
720
|
+
#lm_protable_warp .lm_protable .ant-table-summary > table {
|
|
721
|
+
height: 100%;
|
|
722
|
+
}
|
|
723
|
+
#lm_protable_warp .lm_protable .ant-table-summary td {
|
|
724
|
+
padding: 0 8px;
|
|
725
|
+
text-align: right;
|
|
726
|
+
background-color: var(--table-background-color);
|
|
727
|
+
}
|
|
728
|
+
#lm_protable_warp .lm_protable .ant-table-summary td:first-of-type {
|
|
729
|
+
padding: 0 0 0 8px;
|
|
730
|
+
text-align: left;
|
|
731
|
+
}
|
|
732
|
+
#lm_protable_warp .lm_protable .ant-table-summary td.number {
|
|
733
|
+
border-right: 1px solid #eee;
|
|
734
|
+
border-left: 1px solid #eee;
|
|
735
|
+
}
|
|
736
|
+
#lm_protable_warp .lm_protable .ant-table-summary td.money {
|
|
737
|
+
color: var(--error-color);
|
|
738
|
+
border-right: 1px solid #eee;
|
|
739
|
+
border-left: 1px solid #eee;
|
|
740
|
+
}
|
|
741
|
+
#lm_protable_warp .lm_protable .ant-table-summary td.money-color {
|
|
742
|
+
color: var(--error-color);
|
|
743
|
+
}
|
|
744
|
+
#lm_protable_warp .lm_protable .ant-table-summary td > div {
|
|
745
|
+
overflow: hidden;
|
|
746
|
+
white-space: nowrap;
|
|
747
|
+
text-overflow: ellipsis;
|
|
748
|
+
}
|
|
749
|
+
#lm_protable_warp .lm_protable .ant-table-summary td > div:last-of-type {
|
|
750
|
+
font-weight: bold;
|
|
751
|
+
}
|
|
752
|
+
#lm_protable_warp .lm_protable .ant-table-summary .total_title {
|
|
753
|
+
position: relative;
|
|
754
|
+
white-space: nowrap;
|
|
755
|
+
}
|
|
717
756
|
#lm_protable_warp .ant-table-expand-icon-col {
|
|
718
757
|
width: 32px;
|
|
719
758
|
}
|
package/es/styles/variables.css
CHANGED
|
@@ -1407,6 +1407,7 @@ p {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
.lm_cascader.ant-select.ant-select {
|
|
1409
1409
|
font-size: 12px;
|
|
1410
|
+
width: 100%;
|
|
1410
1411
|
}
|
|
1411
1412
|
.lm_cascader_dropdown.ant-select-dropdown {
|
|
1412
1413
|
font-size: 12px;
|
|
@@ -8951,57 +8952,22 @@ p {
|
|
|
8951
8952
|
.lm_form.ant-form.ant-form-inline .ant-form-item-label {
|
|
8952
8953
|
text-align: left;
|
|
8953
8954
|
}
|
|
8954
|
-
.
|
|
8955
|
-
|
|
8956
|
-
}
|
|
8957
|
-
.lm_container_wrapper .lm_container.responsive {
|
|
8958
|
-
min-width: 990px;
|
|
8959
|
-
}
|
|
8960
|
-
.lm_container_wrapper .lm_container.responsive .lm_form.ant-form {
|
|
8961
|
-
display: flex;
|
|
8962
|
-
flex-direction: row;
|
|
8963
|
-
flex-wrap: wrap;
|
|
8964
|
-
}
|
|
8965
|
-
.lm_container_wrapper .lm_container.responsive .lm_form.ant-form .ant-form-item-responsive {
|
|
8966
|
-
margin-right: 24px;
|
|
8967
|
-
}
|
|
8968
|
-
.lm_container_wrapper .lm_container.responsive .lm_form.ant-form .ant-form-item-responsive .ant-form-item-control {
|
|
8969
|
-
width: 100%;
|
|
8970
|
-
}
|
|
8971
|
-
.lm_container_wrapper .lm_container.responsive.lm_col_3 .ant-form-item {
|
|
8972
|
-
width: 100%;
|
|
8973
|
-
margin-right: 0;
|
|
8974
|
-
}
|
|
8975
|
-
.lm_container_wrapper .lm_container.responsive.lm_col_3 .ant-form-item-responsive {
|
|
8976
|
-
width: calc(33.3333% - 16px);
|
|
8977
|
-
margin-right: 24px;
|
|
8978
|
-
}
|
|
8979
|
-
.lm_container_wrapper .lm_container.responsive.lm_col_3 .ant-form-item-responsive.nth-three {
|
|
8980
|
-
margin-right: 0;
|
|
8981
|
-
}
|
|
8982
|
-
.lm_container_wrapper .lm_container.responsive.lm_col_4 .ant-form-item {
|
|
8983
|
-
width: 100%;
|
|
8984
|
-
margin-right: 0;
|
|
8985
|
-
}
|
|
8986
|
-
.lm_container_wrapper .lm_container.responsive.lm_col_4 .ant-form-item-responsive {
|
|
8987
|
-
width: calc(25% - 18px);
|
|
8988
|
-
margin-right: 24px;
|
|
8989
|
-
}
|
|
8990
|
-
.lm_container_wrapper .lm_container.responsive.lm_col_4 .ant-form-item-responsive.nth-four {
|
|
8991
|
-
margin-right: 0;
|
|
8992
|
-
}
|
|
8993
|
-
.lm_container_wrapper .lm_container.responsive.lm_col_5 .ant-form-item {
|
|
8994
|
-
width: 100%;
|
|
8995
|
-
margin-right: 0;
|
|
8955
|
+
.lm_form_responsive_box .lm_form {
|
|
8956
|
+
background: #f0f0f0;
|
|
8996
8957
|
}
|
|
8997
|
-
.
|
|
8998
|
-
|
|
8999
|
-
|
|
8958
|
+
.lm_form_responsive_box .lm_form > .lm_container_wrapper {
|
|
8959
|
+
padding: 16px;
|
|
8960
|
+
background: #f0f0f0;
|
|
8961
|
+
margin-bottom: 0;
|
|
8962
|
+
border-radius: 0;
|
|
9000
8963
|
}
|
|
9001
|
-
.lm_container_wrapper
|
|
9002
|
-
|
|
8964
|
+
.lm_container_wrapper {
|
|
8965
|
+
overflow: auto;
|
|
8966
|
+
background: #fff;
|
|
8967
|
+
margin-bottom: 16px;
|
|
8968
|
+
border-radius: 2px;
|
|
9003
8969
|
}
|
|
9004
|
-
.lm_container_wrapper .
|
|
8970
|
+
.lm_container_wrapper .ant-cascader {
|
|
9005
8971
|
width: 100%;
|
|
9006
8972
|
}
|
|
9007
8973
|
.lm_form-item-tip-error .ant-form-item-explain {
|
|
@@ -9510,8 +9476,12 @@ p {
|
|
|
9510
9476
|
.ant-input-search-with-button .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {
|
|
9511
9477
|
z-index: 2 !important;
|
|
9512
9478
|
}
|
|
9479
|
+
.lm_input-number {
|
|
9480
|
+
width: 100%;
|
|
9481
|
+
}
|
|
9513
9482
|
.lm_input-number.ant-input-number {
|
|
9514
9483
|
border: 1px solid var(--color-15);
|
|
9484
|
+
width: 100%;
|
|
9515
9485
|
}
|
|
9516
9486
|
.lm_input-number .ant-input-number-handler-wrap {
|
|
9517
9487
|
width: 28px;
|
|
@@ -10368,6 +10338,7 @@ p {
|
|
|
10368
10338
|
}
|
|
10369
10339
|
.lm_select.ant-select {
|
|
10370
10340
|
font-size: 12px;
|
|
10341
|
+
width: 100%;
|
|
10371
10342
|
}
|
|
10372
10343
|
.lm_select .ant-select-selection-overflow-item-rest .ant-select-selection-item {
|
|
10373
10344
|
color: var(--primary-color);
|
|
@@ -11285,6 +11256,45 @@ p {
|
|
|
11285
11256
|
#lm_protable_warp .lm_protable .ant-table-empty table .ant-table-cell {
|
|
11286
11257
|
border-bottom: 0;
|
|
11287
11258
|
}
|
|
11259
|
+
#lm_protable_warp .lm_protable .ant-table-summary {
|
|
11260
|
+
height: 48px;
|
|
11261
|
+
}
|
|
11262
|
+
#lm_protable_warp .lm_protable .ant-table-summary > table {
|
|
11263
|
+
height: 100%;
|
|
11264
|
+
}
|
|
11265
|
+
#lm_protable_warp .lm_protable .ant-table-summary td {
|
|
11266
|
+
padding: 0 8px;
|
|
11267
|
+
text-align: right;
|
|
11268
|
+
background-color: var(--table-background-color);
|
|
11269
|
+
}
|
|
11270
|
+
#lm_protable_warp .lm_protable .ant-table-summary td:first-of-type {
|
|
11271
|
+
padding: 0 0 0 8px;
|
|
11272
|
+
text-align: left;
|
|
11273
|
+
}
|
|
11274
|
+
#lm_protable_warp .lm_protable .ant-table-summary td.number {
|
|
11275
|
+
border-right: 1px solid #eee;
|
|
11276
|
+
border-left: 1px solid #eee;
|
|
11277
|
+
}
|
|
11278
|
+
#lm_protable_warp .lm_protable .ant-table-summary td.money {
|
|
11279
|
+
color: var(--error-color);
|
|
11280
|
+
border-right: 1px solid #eee;
|
|
11281
|
+
border-left: 1px solid #eee;
|
|
11282
|
+
}
|
|
11283
|
+
#lm_protable_warp .lm_protable .ant-table-summary td.money-color {
|
|
11284
|
+
color: var(--error-color);
|
|
11285
|
+
}
|
|
11286
|
+
#lm_protable_warp .lm_protable .ant-table-summary td > div {
|
|
11287
|
+
overflow: hidden;
|
|
11288
|
+
white-space: nowrap;
|
|
11289
|
+
text-overflow: ellipsis;
|
|
11290
|
+
}
|
|
11291
|
+
#lm_protable_warp .lm_protable .ant-table-summary td > div:last-of-type {
|
|
11292
|
+
font-weight: bold;
|
|
11293
|
+
}
|
|
11294
|
+
#lm_protable_warp .lm_protable .ant-table-summary .total_title {
|
|
11295
|
+
position: relative;
|
|
11296
|
+
white-space: nowrap;
|
|
11297
|
+
}
|
|
11288
11298
|
#lm_protable_warp .ant-table-expand-icon-col {
|
|
11289
11299
|
width: 32px;
|
|
11290
11300
|
}
|
|
@@ -12330,6 +12340,7 @@ button.ant-table-row-expand-icon::after {
|
|
|
12330
12340
|
}
|
|
12331
12341
|
.lm_select.ant-select {
|
|
12332
12342
|
font-size: 12px;
|
|
12343
|
+
width: 100%;
|
|
12333
12344
|
}
|
|
12334
12345
|
.lm_select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
12335
12346
|
box-shadow: none;
|
package/lib/Form/Form.js
CHANGED
|
@@ -49,7 +49,7 @@ var _context = require("./context");
|
|
|
49
49
|
|
|
50
50
|
var _useForm3 = _interopRequireDefault(require("./hooks/useForm"));
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _WrapperItem = _interopRequireDefault(require("./WrapperItem"));
|
|
53
53
|
|
|
54
54
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
55
55
|
var t = {};
|
|
@@ -96,8 +96,10 @@ var InternalForm = function InternalForm(props, ref) {
|
|
|
96
96
|
onFinishFailed = props.onFinishFailed,
|
|
97
97
|
name = props.name,
|
|
98
98
|
responsive = props.responsive,
|
|
99
|
-
|
|
99
|
+
customizeChildren = props.children,
|
|
100
|
+
restFormProps = __rest(props, ["prefixCls", "className", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "responsive", "children"]);
|
|
100
101
|
|
|
102
|
+
var children = customizeChildren;
|
|
101
103
|
var mergedRequiredMark = (0, React.useMemo)(function () {
|
|
102
104
|
if (requiredMark !== undefined) {
|
|
103
105
|
return requiredMark;
|
|
@@ -156,6 +158,12 @@ var InternalForm = function InternalForm(props, ref) {
|
|
|
156
158
|
}
|
|
157
159
|
};
|
|
158
160
|
|
|
161
|
+
if (responsive) {
|
|
162
|
+
children = /*#__PURE__*/React.createElement(_WrapperItem.default, {
|
|
163
|
+
children: children
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
|
|
159
167
|
var formNode = /*#__PURE__*/React.createElement(_DisabledContext.DisabledContextProvider, {
|
|
160
168
|
disabled: disabled
|
|
161
169
|
}, /*#__PURE__*/React.createElement(_SizeContext.SizeContextProvider, {
|
|
@@ -165,6 +173,7 @@ var InternalForm = function InternalForm(props, ref) {
|
|
|
165
173
|
}, /*#__PURE__*/React.createElement(_rcFieldForm.default, Object.assign({
|
|
166
174
|
id: name
|
|
167
175
|
}, restFormProps, {
|
|
176
|
+
children: children,
|
|
168
177
|
name: name,
|
|
169
178
|
onFinishFailed: onInternalFinishFailed,
|
|
170
179
|
form: wrapForm,
|
|
@@ -172,8 +181,8 @@ var InternalForm = function InternalForm(props, ref) {
|
|
|
172
181
|
})))));
|
|
173
182
|
|
|
174
183
|
if (responsive) {
|
|
175
|
-
return /*#__PURE__*/React.createElement(
|
|
176
|
-
|
|
184
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
185
|
+
className: "lm_form_responsive_box"
|
|
177
186
|
}, formNode);
|
|
178
187
|
}
|
|
179
188
|
|
|
@@ -145,17 +145,8 @@ function ItemHolder(props) {
|
|
|
145
145
|
}, [mergedValidateStatus, hasFeedback]); // ======================== Render ========================
|
|
146
146
|
|
|
147
147
|
var itemClassName = (_itemClassName = {}, (0, _defineProperty2.default)(_itemClassName, itemPrefixCls, true), (0, _defineProperty2.default)(_itemClassName, "".concat(itemPrefixCls, "-with-help"), hasHelp || debounceErrors.length || debounceWarnings.length), (0, _defineProperty2.default)(_itemClassName, "".concat(className), !!className), (0, _defineProperty2.default)(_itemClassName, "".concat(itemPrefixCls, "-has-feedback"), mergedValidateStatus && hasFeedback), (0, _defineProperty2.default)(_itemClassName, "".concat(itemPrefixCls, "-has-success"), mergedValidateStatus === 'success'), (0, _defineProperty2.default)(_itemClassName, "".concat(itemPrefixCls, "-has-warning"), mergedValidateStatus === 'warning'), (0, _defineProperty2.default)(_itemClassName, "".concat(itemPrefixCls, "-has-error"), mergedValidateStatus === 'error'), (0, _defineProperty2.default)(_itemClassName, "".concat(itemPrefixCls, "-is-validating"), mergedValidateStatus === 'validating'), (0, _defineProperty2.default)(_itemClassName, "".concat(itemPrefixCls, "-hidden"), hidden), (0, _defineProperty2.default)(_itemClassName, 'lm_form-item-tip-error lm_form-item-tip-error-top', errorPlacement === 'top'), (0, _defineProperty2.default)(_itemClassName, 'lm_form-item-tip-error lm_form-item-tip-error-left', errorPlacement === 'left'), (0, _defineProperty2.default)(_itemClassName, 'lm_form-item-tip-error lm_form-item-tip-error-right', errorPlacement === 'right'), (0, _defineProperty2.default)(_itemClassName, 'lm_form-item-tip-error lm_form-item-tip-error-bottom', errorPlacement === 'bottom'), (0, _defineProperty2.default)(_itemClassName, 'ant-form-item-responsive', responsive), _itemClassName);
|
|
148
|
-
var nthCls = '';
|
|
149
|
-
|
|
150
|
-
if (itemRef.current && itemRef.current.classList) {
|
|
151
|
-
var list = itemRef.current.classList;
|
|
152
|
-
if (list.contains('nth-three')) nthCls = 'nth-three';
|
|
153
|
-
if (list.contains('nth-four')) nthCls = 'nth-four';
|
|
154
|
-
if (list.contains('nth-five')) nthCls = 'nth-five';
|
|
155
|
-
}
|
|
156
|
-
|
|
157
148
|
return /*#__PURE__*/React.createElement("div", {
|
|
158
|
-
className: (0, _classnames.default)(itemClassName
|
|
149
|
+
className: (0, _classnames.default)(itemClassName),
|
|
159
150
|
style: style,
|
|
160
151
|
ref: itemRef
|
|
161
152
|
}, /*#__PURE__*/React.createElement(_Grid.Row, Object.assign({
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _WrapperItem = _interopRequireDefault(require("./WrapperItem"));
|
|
13
|
+
|
|
14
|
+
function withComponent(WrappedComponent) {
|
|
15
|
+
var WithComponent = function WithComponent(props) {
|
|
16
|
+
return /*#__PURE__*/_react.default.createElement(WrappedComponent, Object.assign({}, props, {
|
|
17
|
+
with: true
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
22
|
+
WithComponent.displayName = "withComponent(".concat(wrappedComponentName, ")");
|
|
23
|
+
return WithComponent;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var FormWrapper = function FormWrapper(props) {
|
|
27
|
+
var children = props.children;
|
|
28
|
+
return /*#__PURE__*/_react.default.createElement(_WrapperItem.default, {
|
|
29
|
+
children: children
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
var _default = withComponent(FormWrapper);
|
|
34
|
+
|
|
35
|
+
exports.default = _default;
|