wargerm 0.2.24 → 0.2.25
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/components/Table/index.d.ts +1 -5
- package/dist/index.esm.js +19 -3
- package/dist/index.js +19 -3
- package/package.json +1 -1
@@ -87,11 +87,7 @@ declare type Props = {
|
|
87
87
|
request?: (params?: {
|
88
88
|
pageSize?: number;
|
89
89
|
current?: number;
|
90
|
-
}, sort?: any, filter?: any) =>
|
91
|
-
data: Record<string, any>[];
|
92
|
-
success: boolean;
|
93
|
-
total: number;
|
94
|
-
};
|
90
|
+
}, sort?: any, filter?: any) => Promise<any>;
|
95
91
|
onLoad?: (dataSource: Record<string, any>[]) => void;
|
96
92
|
onSubmit?: (params: Record<string, any>) => void;
|
97
93
|
onReset?: () => void;
|
package/dist/index.esm.js
CHANGED
@@ -7134,11 +7134,18 @@ function Table(_ref) {
|
|
7134
7134
|
flex: c.width ? '0 1 auto' : '1',
|
7135
7135
|
overflow: 'hidden'
|
7136
7136
|
}
|
7137
|
+
}, /*#__PURE__*/React.createElement("div", {
|
7138
|
+
style: {
|
7139
|
+
width: '100%',
|
7140
|
+
whiteSpace: 'nowrap',
|
7141
|
+
overflow: 'hidden',
|
7142
|
+
textOverflow: 'ellipsis'
|
7143
|
+
}
|
7137
7144
|
}, c.render ? c.render(record[c.dataIndex], record, index) : columnsFields[c.dataIndex] ? (_columnsFields$c$data = columnsFields[c.dataIndex].find(function (item) {
|
7138
7145
|
return item.value == record[c.dataIndex];
|
7139
|
-
})) === null || _columnsFields$c$data === void 0 ? void 0 : _columnsFields$c$data.label : record[c.dataIndex]));
|
7146
|
+
})) === null || _columnsFields$c$data === void 0 ? void 0 : _columnsFields$c$data.label : record[c.dataIndex])));
|
7140
7147
|
} else {
|
7141
|
-
var _columnsFields$c$data2;
|
7148
|
+
var _columnsFields$c$data2, _columnsFields$c$data3;
|
7142
7149
|
|
7143
7150
|
return /*#__PURE__*/React.createElement("div", {
|
7144
7151
|
key: c.dataIndex,
|
@@ -7149,9 +7156,18 @@ function Table(_ref) {
|
|
7149
7156
|
overflow: 'hidden'
|
7150
7157
|
},
|
7151
7158
|
title: record[c.dataIndex]
|
7159
|
+
}, c.ellipsis ? /*#__PURE__*/React.createElement("div", {
|
7160
|
+
style: {
|
7161
|
+
width: '100%',
|
7162
|
+
whiteSpace: 'nowrap',
|
7163
|
+
overflow: 'hidden',
|
7164
|
+
textOverflow: 'ellipsis'
|
7165
|
+
}
|
7152
7166
|
}, c.render ? c.render(record[c.dataIndex], record, index) : columnsFields[c.dataIndex] ? (_columnsFields$c$data2 = columnsFields[c.dataIndex].find(function (item) {
|
7153
7167
|
return item.value == record[c.dataIndex];
|
7154
|
-
})) === null || _columnsFields$c$data2 === void 0 ? void 0 : _columnsFields$c$data2.label : record[c.dataIndex])
|
7168
|
+
})) === null || _columnsFields$c$data2 === void 0 ? void 0 : _columnsFields$c$data2.label : record[c.dataIndex]) : c.render ? c.render(record[c.dataIndex], record, index) : columnsFields[c.dataIndex] ? (_columnsFields$c$data3 = columnsFields[c.dataIndex].find(function (item) {
|
7169
|
+
return item.value == record[c.dataIndex];
|
7170
|
+
})) === null || _columnsFields$c$data3 === void 0 ? void 0 : _columnsFields$c$data3.label : record[c.dataIndex]);
|
7155
7171
|
}
|
7156
7172
|
}
|
7157
7173
|
});
|
package/dist/index.js
CHANGED
@@ -7168,11 +7168,18 @@ function Table(_ref) {
|
|
7168
7168
|
flex: c.width ? '0 1 auto' : '1',
|
7169
7169
|
overflow: 'hidden'
|
7170
7170
|
}
|
7171
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
7172
|
+
style: {
|
7173
|
+
width: '100%',
|
7174
|
+
whiteSpace: 'nowrap',
|
7175
|
+
overflow: 'hidden',
|
7176
|
+
textOverflow: 'ellipsis'
|
7177
|
+
}
|
7171
7178
|
}, c.render ? c.render(record[c.dataIndex], record, index) : columnsFields[c.dataIndex] ? (_columnsFields$c$data = columnsFields[c.dataIndex].find(function (item) {
|
7172
7179
|
return item.value == record[c.dataIndex];
|
7173
|
-
})) === null || _columnsFields$c$data === void 0 ? void 0 : _columnsFields$c$data.label : record[c.dataIndex]));
|
7180
|
+
})) === null || _columnsFields$c$data === void 0 ? void 0 : _columnsFields$c$data.label : record[c.dataIndex])));
|
7174
7181
|
} else {
|
7175
|
-
var _columnsFields$c$data2;
|
7182
|
+
var _columnsFields$c$data2, _columnsFields$c$data3;
|
7176
7183
|
|
7177
7184
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
7178
7185
|
key: c.dataIndex,
|
@@ -7183,9 +7190,18 @@ function Table(_ref) {
|
|
7183
7190
|
overflow: 'hidden'
|
7184
7191
|
},
|
7185
7192
|
title: record[c.dataIndex]
|
7193
|
+
}, c.ellipsis ? /*#__PURE__*/React__default['default'].createElement("div", {
|
7194
|
+
style: {
|
7195
|
+
width: '100%',
|
7196
|
+
whiteSpace: 'nowrap',
|
7197
|
+
overflow: 'hidden',
|
7198
|
+
textOverflow: 'ellipsis'
|
7199
|
+
}
|
7186
7200
|
}, c.render ? c.render(record[c.dataIndex], record, index) : columnsFields[c.dataIndex] ? (_columnsFields$c$data2 = columnsFields[c.dataIndex].find(function (item) {
|
7187
7201
|
return item.value == record[c.dataIndex];
|
7188
|
-
})) === null || _columnsFields$c$data2 === void 0 ? void 0 : _columnsFields$c$data2.label : record[c.dataIndex])
|
7202
|
+
})) === null || _columnsFields$c$data2 === void 0 ? void 0 : _columnsFields$c$data2.label : record[c.dataIndex]) : c.render ? c.render(record[c.dataIndex], record, index) : columnsFields[c.dataIndex] ? (_columnsFields$c$data3 = columnsFields[c.dataIndex].find(function (item) {
|
7203
|
+
return item.value == record[c.dataIndex];
|
7204
|
+
})) === null || _columnsFields$c$data3 === void 0 ? void 0 : _columnsFields$c$data3.label : record[c.dataIndex]);
|
7189
7205
|
}
|
7190
7206
|
}
|
7191
7207
|
});
|