linkmore-design 1.1.5 → 1.1.7
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/LmEditTable/util.d.ts +6 -0
- package/dist/LmFilter/filterFns/index.d.ts +1 -0
- package/dist/LmUpload/fns/index.d.ts +1 -1
- package/dist/index.umd.css +93 -93
- package/dist/index.umd.js +351 -170
- package/dist/index.umd.min.css +1 -1
- package/dist/index.umd.min.js +7 -7
- package/dist/variables.css +22 -8
- package/es/Button/index.js +4 -1
- package/es/Button/style/index.css +0 -4
- package/es/Button/style/variables.css +0 -4
- package/es/CardTable/style/index.css +19 -4
- package/es/CardTable/style/variables.css +19 -4
- package/es/CustomTableOption/index.js +0 -10
- package/es/Input/index.js +3 -3
- package/es/LmEditTable/EditTable.js +189 -116
- package/es/LmEditTable/style/index.css +3 -0
- package/es/LmEditTable/style/variables.css +3 -0
- package/es/LmEditTable/util.d.ts +6 -0
- package/es/LmEditTable/util.js +29 -1
- package/es/LmFilter/clearFilter/index.js +3 -1
- package/es/LmFilter/components/EmptyFilter.js +2 -2
- package/es/LmFilter/filterFns/index.d.ts +1 -0
- package/es/LmFilter/filterFns/index.js +6 -1
- package/es/LmFilter/wrapper/FilterRoot.js +1 -1
- package/es/LmTable/Table.js +1 -1
- package/es/LmUpload/LmUpload.js +1 -0
- package/es/LmUpload/fns/index.d.ts +1 -1
- package/es/LmUpload/fns/index.js +105 -33
- package/es/message/index.js +4 -1
- package/es/styles/variables.css +22 -8
- package/lib/Button/index.js +6 -1
- package/lib/Button/style/index.css +0 -4
- package/lib/Button/style/variables.css +0 -4
- package/lib/CardTable/style/index.css +19 -4
- package/lib/CardTable/style/variables.css +19 -4
- package/lib/CustomTableOption/index.js +0 -9
- package/lib/Input/index.js +3 -3
- package/lib/LmEditTable/EditTable.js +188 -115
- package/lib/LmEditTable/style/index.css +3 -0
- package/lib/LmEditTable/style/variables.css +3 -0
- package/lib/LmEditTable/util.d.ts +6 -0
- package/lib/LmEditTable/util.js +40 -1
- package/lib/LmFilter/clearFilter/index.js +3 -1
- package/lib/LmFilter/components/EmptyFilter.js +2 -2
- package/lib/LmFilter/filterFns/index.d.ts +1 -0
- package/lib/LmFilter/filterFns/index.js +6 -1
- package/lib/LmFilter/wrapper/FilterRoot.js +1 -1
- package/lib/LmTable/Table.js +1 -1
- package/lib/LmUpload/LmUpload.js +1 -0
- package/lib/LmUpload/fns/index.d.ts +1 -1
- package/lib/LmUpload/fns/index.js +105 -31
- package/lib/message/index.js +6 -1
- package/lib/styles/variables.css +22 -8
- package/package.json +1 -1
- package/es/CustomTableOption/assets/option1.png +0 -0
- package/es/CustomTableOption/assets/option2.png +0 -0
- package/es/CustomTableOption/assets/option3.png +0 -0
- package/lib/CustomTableOption/assets/option1.png +0 -0
- package/lib/CustomTableOption/assets/option2.png +0 -0
- package/lib/CustomTableOption/assets/option3.png +0 -0
package/es/LmUpload/fns/index.js
CHANGED
|
@@ -34,8 +34,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
import { useCallback } from 'react';
|
|
37
|
-
import { message } from 'linkmore-design';
|
|
38
|
-
|
|
37
|
+
import { message } from 'linkmore-design';
|
|
39
38
|
import OSS from 'ali-oss';
|
|
40
39
|
|
|
41
40
|
var useCoreOptions = function useCoreOptions(_ref) {
|
|
@@ -46,6 +45,8 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
46
45
|
onChange = props.onChange,
|
|
47
46
|
type = props.type,
|
|
48
47
|
fileSize = props.fileSize,
|
|
48
|
+
fileSizeType = props.fileSizeType,
|
|
49
|
+
fileAreaSize = props.fileAreaSize,
|
|
49
50
|
enabledOss = props.enabledOss,
|
|
50
51
|
enableCrop = props.enableCrop,
|
|
51
52
|
ossConfig = props.ossConfig; // 获取当前的文件列表
|
|
@@ -229,12 +230,12 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
229
230
|
value: getFileList(),
|
|
230
231
|
onChange: uploadSuccess
|
|
231
232
|
});
|
|
232
|
-
}, [props.fileUpload, getFileList, uploadSuccess]); //
|
|
233
|
+
}, [props.fileUpload, getFileList, uploadSuccess]); // 调用上传方法: 执行 uploadOss && customUpload事件
|
|
233
234
|
|
|
234
235
|
var uploadFile = useCallback(function (file) {
|
|
235
236
|
enabledOss && uploadOss(file);
|
|
236
237
|
customUpload(file);
|
|
237
|
-
}, [enabledOss, uploadOss, customUpload]); //
|
|
238
|
+
}, [enabledOss, uploadOss, customUpload]); // 检测完成, 执行外部 `beforeUpload` 事件
|
|
238
239
|
|
|
239
240
|
var checkOver = useCallback(function (file) {
|
|
240
241
|
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
@@ -296,51 +297,122 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
296
297
|
}
|
|
297
298
|
}, _callee2, null, [[5, 12]]);
|
|
298
299
|
}));
|
|
299
|
-
}, [props.beforeUpload, getFileList, uploadFile]); //
|
|
300
|
+
}, [props.beforeUpload, getFileList, uploadFile]); // 单个文件异步校验
|
|
300
301
|
|
|
301
|
-
var
|
|
302
|
-
|
|
302
|
+
var fileCheckAsync = useCallback(function (file) {
|
|
303
|
+
return new Promise(function (resolve, reject) {
|
|
304
|
+
// 文件类型校验是否通过 | 存在通配符或符合规定类型
|
|
305
|
+
var isCheckType = type.includes('*') || type.includes(file.name.replace(/.*\./, '').toLowerCase()); // 大小校验是否通过
|
|
303
306
|
|
|
304
|
-
|
|
305
|
-
var item = files[i];
|
|
307
|
+
var isCheckSize = file.size / 1024 / (fileSizeType.toLowerCase().includes('m') ? 1024 : 1) <= fileSize;
|
|
306
308
|
|
|
307
|
-
if (!
|
|
309
|
+
if (!isCheckType) {
|
|
308
310
|
var content = type.join('、');
|
|
309
|
-
|
|
311
|
+
reject(new Error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF01\u4EC5\u652F\u6301".concat(content, "\u7684\u6587\u4EF6\u7C7B\u578B\uFF01")));
|
|
310
312
|
}
|
|
311
313
|
|
|
312
|
-
if (
|
|
313
|
-
|
|
314
|
-
} //
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
if (
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
314
|
+
if (!isCheckSize) {
|
|
315
|
+
reject(new Error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF01\u9644\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7".concat(fileSize).concat(fileSizeType, "\uFF01")));
|
|
316
|
+
} // 是否需要校验图片宽高
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
if (fileAreaSize) {
|
|
320
|
+
var reader = new FileReader();
|
|
321
|
+
reader.readAsDataURL(file);
|
|
322
|
+
|
|
323
|
+
reader.onload = function (evt) {
|
|
324
|
+
var res = evt.target.result;
|
|
325
|
+
var imageObj = new Image();
|
|
326
|
+
imageObj.src = res;
|
|
327
|
+
|
|
328
|
+
imageObj.onload = function () {
|
|
329
|
+
var maxWidth = fileAreaSize.maxWidth,
|
|
330
|
+
maxHeight = fileAreaSize.maxHeight;
|
|
331
|
+
var isCheckAreaSizeMaxWidth = !maxWidth || imageObj.width <= maxWidth;
|
|
332
|
+
var isCheckAreaSizeMaxHeight = !maxHeight || imageObj.height <= maxHeight;
|
|
333
|
+
|
|
334
|
+
if (!isCheckAreaSizeMaxWidth || !isCheckAreaSizeMaxHeight) {
|
|
335
|
+
reject(new Error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF01\u56FE\u7247\u5C3A\u5BF8\u4E0D\u7B26\u5408"));
|
|
336
|
+
} else {
|
|
337
|
+
resolve(file);
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
};
|
|
322
341
|
} else {
|
|
323
|
-
|
|
324
|
-
checkOver(item);
|
|
342
|
+
resolve(file);
|
|
325
343
|
}
|
|
326
|
-
}
|
|
344
|
+
});
|
|
345
|
+
}, [type, fileSize, fileSizeType, fileAreaSize]); // 文件循环校验,返回校验后的文件数组
|
|
346
|
+
|
|
347
|
+
var filesLoopCheck = useCallback(function (files) {
|
|
348
|
+
return Promise.all(files.map(fileCheckAsync));
|
|
349
|
+
}, []);
|
|
350
|
+
/*
|
|
351
|
+
* 上传前: 先校验 => 全部校验通过后开始上传
|
|
352
|
+
* 事件执行顺序:
|
|
353
|
+
* beforeUpload => filesLoopCheck => checkOver
|
|
354
|
+
* => uploadFile => uploadOss && customUpload
|
|
355
|
+
* => uploadProgress => uploadSuccess || uploadError
|
|
356
|
+
* => Props.onChange && (Props.onSuccess || Props.onError)
|
|
357
|
+
*/
|
|
358
|
+
|
|
359
|
+
var beforeUpload = useCallback(function (e) {
|
|
360
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
361
|
+
var files, res;
|
|
362
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
363
|
+
while (1) {
|
|
364
|
+
switch (_context3.prev = _context3.next) {
|
|
365
|
+
case 0:
|
|
366
|
+
files = Array.from(e.target.files);
|
|
367
|
+
_context3.prev = 1;
|
|
368
|
+
_context3.next = 4;
|
|
369
|
+
return filesLoopCheck(files);
|
|
327
370
|
|
|
328
|
-
|
|
329
|
-
|
|
371
|
+
case 4:
|
|
372
|
+
res = _context3.sent;
|
|
373
|
+
|
|
374
|
+
// 仅单文件上传时可剪裁
|
|
375
|
+
if (enableCrop) {
|
|
376
|
+
dispatch({
|
|
377
|
+
type: 'changeCropFile',
|
|
378
|
+
cropFile: res[0]
|
|
379
|
+
});
|
|
380
|
+
} else {
|
|
381
|
+
// 校验完成开始执行上传
|
|
382
|
+
res.forEach(checkOver);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
_context3.next = 12;
|
|
386
|
+
break;
|
|
387
|
+
|
|
388
|
+
case 8:
|
|
389
|
+
_context3.prev = 8;
|
|
390
|
+
_context3.t0 = _context3["catch"](1);
|
|
391
|
+
console.log('文件校验未通过!', _context3.t0.message);
|
|
392
|
+
message.warning(_context3.t0.message, 1.5);
|
|
393
|
+
|
|
394
|
+
case 12:
|
|
395
|
+
case "end":
|
|
396
|
+
return _context3.stop();
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}, _callee3, null, [[1, 8]]);
|
|
400
|
+
}));
|
|
401
|
+
}, [filesLoopCheck, enableCrop, checkOver]); // 删除事件
|
|
330
402
|
|
|
331
403
|
var remove = useCallback(function (file) {
|
|
332
|
-
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
404
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
333
405
|
var _a, _b, res, fileList;
|
|
334
406
|
|
|
335
|
-
return _regeneratorRuntime().wrap(function
|
|
407
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
336
408
|
while (1) {
|
|
337
|
-
switch (
|
|
409
|
+
switch (_context4.prev = _context4.next) {
|
|
338
410
|
case 0:
|
|
339
|
-
|
|
411
|
+
_context4.next = 2;
|
|
340
412
|
return (_a = props.onRemove) === null || _a === void 0 ? void 0 : _a.call(props, file);
|
|
341
413
|
|
|
342
414
|
case 2:
|
|
343
|
-
res =
|
|
415
|
+
res = _context4.sent;
|
|
344
416
|
|
|
345
417
|
if (res) {
|
|
346
418
|
fileList = (_b = getFileList()) === null || _b === void 0 ? void 0 : _b.filter(function (v) {
|
|
@@ -358,10 +430,10 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
358
430
|
|
|
359
431
|
case 4:
|
|
360
432
|
case "end":
|
|
361
|
-
return
|
|
433
|
+
return _context4.stop();
|
|
362
434
|
}
|
|
363
435
|
}
|
|
364
|
-
},
|
|
436
|
+
}, _callee4);
|
|
365
437
|
}));
|
|
366
438
|
}, [props.onRemove, getFileList, onChange, dispatch, uid]); // 点击文件链接或预览图标时的回调
|
|
367
439
|
|
package/es/message/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "antd/es/message/style";
|
|
2
|
+
import _message from "antd/es/message";
|
|
1
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
4
|
import { CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined } from '@ant-design/icons';
|
|
3
5
|
import classNames from 'classnames';
|
|
@@ -205,7 +207,8 @@ var api = {
|
|
|
205
207
|
messageInstance = null;
|
|
206
208
|
}
|
|
207
209
|
}
|
|
208
|
-
}
|
|
210
|
+
},
|
|
211
|
+
antdMessage: _message
|
|
209
212
|
};
|
|
210
213
|
export function attachTypeApi(originalApi, type) {
|
|
211
214
|
originalApi[type] = function (content, duration, onClose) {
|
package/es/styles/variables.css
CHANGED
|
@@ -761,7 +761,6 @@ p {
|
|
|
761
761
|
margin-left: 4px;
|
|
762
762
|
overflow: hidden;
|
|
763
763
|
white-space: nowrap;
|
|
764
|
-
max-width: 96px;
|
|
765
764
|
}
|
|
766
765
|
.ant-btn.lm-button > span:not(.anticon) {
|
|
767
766
|
display: inline-block;
|
|
@@ -779,12 +778,10 @@ p {
|
|
|
779
778
|
.ant-btn.lm-button > span:not(.anticon) {
|
|
780
779
|
font-size: 12px;
|
|
781
780
|
line-height: 20px;
|
|
782
|
-
max-width: 96px;
|
|
783
781
|
}
|
|
784
782
|
.ant-btn.lm-button-small {
|
|
785
783
|
height: 24px;
|
|
786
784
|
padding: 2px 8px;
|
|
787
|
-
max-width: 112px;
|
|
788
785
|
font-size: 12px;
|
|
789
786
|
}
|
|
790
787
|
.ant-btn.lm-button-small.lm-button-icon-only .anticon {
|
|
@@ -793,7 +790,6 @@ p {
|
|
|
793
790
|
.ant-btn.lm-button-middle {
|
|
794
791
|
height: 32px;
|
|
795
792
|
padding: 6px 12px;
|
|
796
|
-
max-width: 142px;
|
|
797
793
|
}
|
|
798
794
|
.ant-btn.lm-button-middle .anticon {
|
|
799
795
|
font-size: 16px;
|
|
@@ -1157,6 +1153,7 @@ p {
|
|
|
1157
1153
|
overflow: hidden;
|
|
1158
1154
|
}
|
|
1159
1155
|
.card_PTR .card_PTR_container .card_PTR_body .card_PTR_left {
|
|
1156
|
+
flex: 0 0 auto;
|
|
1160
1157
|
width: 35%;
|
|
1161
1158
|
min-width: 126px;
|
|
1162
1159
|
border-radius: 2px;
|
|
@@ -1176,6 +1173,7 @@ p {
|
|
|
1176
1173
|
flex: 1;
|
|
1177
1174
|
display: flex;
|
|
1178
1175
|
flex-flow: column;
|
|
1176
|
+
overflow: hidden;
|
|
1179
1177
|
}
|
|
1180
1178
|
.card_PTR .card_PTR_container .card_PTR_body .card_PTR_right .card_title {
|
|
1181
1179
|
overflow: hidden;
|
|
@@ -1204,8 +1202,8 @@ p {
|
|
|
1204
1202
|
}
|
|
1205
1203
|
.card_PTR .card_PTR_container .card_PTR_body .card_PTR_right .PTR_column .PTR_column_box {
|
|
1206
1204
|
font-size: 12px;
|
|
1207
|
-
display:
|
|
1208
|
-
|
|
1205
|
+
display: flex;
|
|
1206
|
+
flex-flow: wrap;
|
|
1209
1207
|
column-gap: 8px;
|
|
1210
1208
|
color: var(--color-65);
|
|
1211
1209
|
margin-top: 8px;
|
|
@@ -1214,6 +1212,7 @@ p {
|
|
|
1214
1212
|
display: inline-flex;
|
|
1215
1213
|
align-items: center;
|
|
1216
1214
|
min-height: 20px;
|
|
1215
|
+
width: calc(50% - 4px);
|
|
1217
1216
|
}
|
|
1218
1217
|
.card_PTR .card_PTR_container .card_PTR_body .card_PTR_right .PTR_column .PTR_column_box .ellipsis {
|
|
1219
1218
|
flex: 1 1 0;
|
|
@@ -1284,6 +1283,7 @@ p {
|
|
|
1284
1283
|
overflow: hidden;
|
|
1285
1284
|
}
|
|
1286
1285
|
.card_PTRO .card_PTRO_container .card_PTRO_body .card_PTRO_left {
|
|
1286
|
+
flex: 0 0 auto;
|
|
1287
1287
|
width: 40%;
|
|
1288
1288
|
min-width: 126px;
|
|
1289
1289
|
border-radius: 2px;
|
|
@@ -1303,8 +1303,10 @@ p {
|
|
|
1303
1303
|
flex: 1;
|
|
1304
1304
|
display: flex;
|
|
1305
1305
|
flex-flow: column;
|
|
1306
|
+
overflow: hidden;
|
|
1306
1307
|
}
|
|
1307
1308
|
.card_PTRO .card_PTRO_container .card_PTRO_body .card_PTRO_right .card_title {
|
|
1309
|
+
flex: 0 0 auto;
|
|
1308
1310
|
overflow: hidden;
|
|
1309
1311
|
text-overflow: ellipsis;
|
|
1310
1312
|
white-space: nowrap;
|
|
@@ -1325,10 +1327,19 @@ p {
|
|
|
1325
1327
|
color: var(--success-color);
|
|
1326
1328
|
}
|
|
1327
1329
|
.card_PTRO .card_PTRO_container .card_PTRO_body .card_PTRO_right .PTRO_column {
|
|
1328
|
-
display:
|
|
1329
|
-
|
|
1330
|
+
display: flex;
|
|
1331
|
+
flex-flow: wrap;
|
|
1332
|
+
column-gap: 8px;
|
|
1330
1333
|
font-size: 12px;
|
|
1331
1334
|
color: var(--color-65);
|
|
1335
|
+
margin-top: 8px;
|
|
1336
|
+
}
|
|
1337
|
+
.card_PTRO .card_PTRO_container .card_PTRO_body .card_PTRO_right .PTRO_column > span {
|
|
1338
|
+
min-height: 20px;
|
|
1339
|
+
width: calc(50% - 4px);
|
|
1340
|
+
text-overflow: ellipsis;
|
|
1341
|
+
white-space: nowrap;
|
|
1342
|
+
overflow: hidden;
|
|
1332
1343
|
}
|
|
1333
1344
|
.card_PTRO .card_PTRO_container .card_PTRO_body .card_PTRO_right .PTRO_extend {
|
|
1334
1345
|
font-size: 12px;
|
|
@@ -9733,6 +9744,9 @@ p {
|
|
|
9733
9744
|
flex: 1;
|
|
9734
9745
|
max-width: 100%;
|
|
9735
9746
|
}
|
|
9747
|
+
.lm_editTable_warpper .lm_custom_cell_td .ant-table-row-expand-icon {
|
|
9748
|
+
margin-top: 6px;
|
|
9749
|
+
}
|
|
9736
9750
|
.lm_editTable_warpper .lm_editTable_cell_edit {
|
|
9737
9751
|
height: 40px;
|
|
9738
9752
|
padding: 8px 8px !important;
|
package/lib/Button/index.js
CHANGED
|
@@ -42,7 +42,12 @@ var LMButton = function LMButton(props) {
|
|
|
42
42
|
hover = _props$hover === void 0 ? false : _props$hover,
|
|
43
43
|
restProps = __rest(props, ["children", "className", "size", "type", "hover"]);
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var globalSize = customizeSize || _react.default.useContext(_SizeContext.default) || 'middle';
|
|
46
|
+
|
|
47
|
+
var size = _react.default.useMemo(function () {
|
|
48
|
+
return globalSize === 'default' ? 'middle' : globalSize;
|
|
49
|
+
}, [globalSize]); // const { getPrefixCls, autoInsertSpaceInButton, direction } = React.useContext(ConfigContext);
|
|
50
|
+
|
|
46
51
|
|
|
47
52
|
var classs = (0, _classnames.default)('lm-button', className, {
|
|
48
53
|
'lm-button-icon-only': !children
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
margin-left: 4px;
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
white-space: nowrap;
|
|
18
|
-
max-width: 96px;
|
|
19
18
|
}
|
|
20
19
|
.ant-btn.lm-button > span:not(.anticon) {
|
|
21
20
|
display: inline-block;
|
|
@@ -33,12 +32,10 @@
|
|
|
33
32
|
.ant-btn.lm-button > span:not(.anticon) {
|
|
34
33
|
font-size: 12px;
|
|
35
34
|
line-height: 20px;
|
|
36
|
-
max-width: 96px;
|
|
37
35
|
}
|
|
38
36
|
.ant-btn.lm-button-small {
|
|
39
37
|
height: 24px;
|
|
40
38
|
padding: 2px 8px;
|
|
41
|
-
max-width: 112px;
|
|
42
39
|
font-size: 12px;
|
|
43
40
|
}
|
|
44
41
|
.ant-btn.lm-button-small.lm-button-icon-only .anticon {
|
|
@@ -47,7 +44,6 @@
|
|
|
47
44
|
.ant-btn.lm-button-middle {
|
|
48
45
|
height: 32px;
|
|
49
46
|
padding: 6px 12px;
|
|
50
|
-
max-width: 142px;
|
|
51
47
|
}
|
|
52
48
|
.ant-btn.lm-button-middle .anticon {
|
|
53
49
|
font-size: 16px;
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
margin-left: 4px;
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
white-space: nowrap;
|
|
18
|
-
max-width: 96px;
|
|
19
18
|
}
|
|
20
19
|
.ant-btn.lm-button > span:not(.anticon) {
|
|
21
20
|
display: inline-block;
|
|
@@ -33,12 +32,10 @@
|
|
|
33
32
|
.ant-btn.lm-button > span:not(.anticon) {
|
|
34
33
|
font-size: 12px;
|
|
35
34
|
line-height: 20px;
|
|
36
|
-
max-width: 96px;
|
|
37
35
|
}
|
|
38
36
|
.ant-btn.lm-button-small {
|
|
39
37
|
height: 24px;
|
|
40
38
|
padding: 2px 8px;
|
|
41
|
-
max-width: 112px;
|
|
42
39
|
font-size: 12px;
|
|
43
40
|
}
|
|
44
41
|
.ant-btn.lm-button-small.lm-button-icon-only .anticon {
|
|
@@ -47,7 +44,6 @@
|
|
|
47
44
|
.ant-btn.lm-button-middle {
|
|
48
45
|
height: 32px;
|
|
49
46
|
padding: 6px 12px;
|
|
50
|
-
max-width: 142px;
|
|
51
47
|
}
|
|
52
48
|
.ant-btn.lm-button-middle .anticon {
|
|
53
49
|
font-size: 16px;
|
|
@@ -216,6 +216,7 @@
|
|
|
216
216
|
overflow: hidden;
|
|
217
217
|
}
|
|
218
218
|
.card_PTR .card_PTR_container .card_PTR_body .card_PTR_left {
|
|
219
|
+
flex: 0 0 auto;
|
|
219
220
|
width: 35%;
|
|
220
221
|
min-width: 126px;
|
|
221
222
|
border-radius: 2px;
|
|
@@ -235,6 +236,7 @@
|
|
|
235
236
|
flex: 1;
|
|
236
237
|
display: flex;
|
|
237
238
|
flex-flow: column;
|
|
239
|
+
overflow: hidden;
|
|
238
240
|
}
|
|
239
241
|
.card_PTR .card_PTR_container .card_PTR_body .card_PTR_right .card_title {
|
|
240
242
|
overflow: hidden;
|
|
@@ -263,8 +265,8 @@
|
|
|
263
265
|
}
|
|
264
266
|
.card_PTR .card_PTR_container .card_PTR_body .card_PTR_right .PTR_column .PTR_column_box {
|
|
265
267
|
font-size: 12px;
|
|
266
|
-
display:
|
|
267
|
-
|
|
268
|
+
display: flex;
|
|
269
|
+
flex-flow: wrap;
|
|
268
270
|
column-gap: 8px;
|
|
269
271
|
color: var(--color-65);
|
|
270
272
|
margin-top: 8px;
|
|
@@ -273,6 +275,7 @@
|
|
|
273
275
|
display: inline-flex;
|
|
274
276
|
align-items: center;
|
|
275
277
|
min-height: 20px;
|
|
278
|
+
width: calc(50% - 4px);
|
|
276
279
|
}
|
|
277
280
|
.card_PTR .card_PTR_container .card_PTR_body .card_PTR_right .PTR_column .PTR_column_box .ellipsis {
|
|
278
281
|
flex: 1 1 0;
|
|
@@ -343,6 +346,7 @@
|
|
|
343
346
|
overflow: hidden;
|
|
344
347
|
}
|
|
345
348
|
.card_PTRO .card_PTRO_container .card_PTRO_body .card_PTRO_left {
|
|
349
|
+
flex: 0 0 auto;
|
|
346
350
|
width: 40%;
|
|
347
351
|
min-width: 126px;
|
|
348
352
|
border-radius: 2px;
|
|
@@ -362,8 +366,10 @@
|
|
|
362
366
|
flex: 1;
|
|
363
367
|
display: flex;
|
|
364
368
|
flex-flow: column;
|
|
369
|
+
overflow: hidden;
|
|
365
370
|
}
|
|
366
371
|
.card_PTRO .card_PTRO_container .card_PTRO_body .card_PTRO_right .card_title {
|
|
372
|
+
flex: 0 0 auto;
|
|
367
373
|
overflow: hidden;
|
|
368
374
|
text-overflow: ellipsis;
|
|
369
375
|
white-space: nowrap;
|
|
@@ -384,10 +390,19 @@
|
|
|
384
390
|
color: var(--success-color);
|
|
385
391
|
}
|
|
386
392
|
.card_PTRO .card_PTRO_container .card_PTRO_body .card_PTRO_right .PTRO_column {
|
|
387
|
-
display:
|
|
388
|
-
|
|
393
|
+
display: flex;
|
|
394
|
+
flex-flow: wrap;
|
|
395
|
+
column-gap: 8px;
|
|
389
396
|
font-size: 12px;
|
|
390
397
|
color: var(--color-65);
|
|
398
|
+
margin-top: 8px;
|
|
399
|
+
}
|
|
400
|
+
.card_PTRO .card_PTRO_container .card_PTRO_body .card_PTRO_right .PTRO_column > span {
|
|
401
|
+
min-height: 20px;
|
|
402
|
+
width: calc(50% - 4px);
|
|
403
|
+
text-overflow: ellipsis;
|
|
404
|
+
white-space: nowrap;
|
|
405
|
+
overflow: hidden;
|
|
391
406
|
}
|
|
392
407
|
.card_PTRO .card_PTRO_container .card_PTRO_body .card_PTRO_right .PTRO_extend {
|
|
393
408
|
font-size: 12px;
|
|
@@ -216,6 +216,7 @@
|
|
|
216
216
|
overflow: hidden;
|
|
217
217
|
}
|
|
218
218
|
.card_PTR .card_PTR_container .card_PTR_body .card_PTR_left {
|
|
219
|
+
flex: 0 0 auto;
|
|
219
220
|
width: 35%;
|
|
220
221
|
min-width: 126px;
|
|
221
222
|
border-radius: 2px;
|
|
@@ -235,6 +236,7 @@
|
|
|
235
236
|
flex: 1;
|
|
236
237
|
display: flex;
|
|
237
238
|
flex-flow: column;
|
|
239
|
+
overflow: hidden;
|
|
238
240
|
}
|
|
239
241
|
.card_PTR .card_PTR_container .card_PTR_body .card_PTR_right .card_title {
|
|
240
242
|
overflow: hidden;
|
|
@@ -263,8 +265,8 @@
|
|
|
263
265
|
}
|
|
264
266
|
.card_PTR .card_PTR_container .card_PTR_body .card_PTR_right .PTR_column .PTR_column_box {
|
|
265
267
|
font-size: 12px;
|
|
266
|
-
display:
|
|
267
|
-
|
|
268
|
+
display: flex;
|
|
269
|
+
flex-flow: wrap;
|
|
268
270
|
column-gap: 8px;
|
|
269
271
|
color: var(--color-65);
|
|
270
272
|
margin-top: 8px;
|
|
@@ -273,6 +275,7 @@
|
|
|
273
275
|
display: inline-flex;
|
|
274
276
|
align-items: center;
|
|
275
277
|
min-height: 20px;
|
|
278
|
+
width: calc(50% - 4px);
|
|
276
279
|
}
|
|
277
280
|
.card_PTR .card_PTR_container .card_PTR_body .card_PTR_right .PTR_column .PTR_column_box .ellipsis {
|
|
278
281
|
flex: 1 1 0;
|
|
@@ -343,6 +346,7 @@
|
|
|
343
346
|
overflow: hidden;
|
|
344
347
|
}
|
|
345
348
|
.card_PTRO .card_PTRO_container .card_PTRO_body .card_PTRO_left {
|
|
349
|
+
flex: 0 0 auto;
|
|
346
350
|
width: 40%;
|
|
347
351
|
min-width: 126px;
|
|
348
352
|
border-radius: 2px;
|
|
@@ -362,8 +366,10 @@
|
|
|
362
366
|
flex: 1;
|
|
363
367
|
display: flex;
|
|
364
368
|
flex-flow: column;
|
|
369
|
+
overflow: hidden;
|
|
365
370
|
}
|
|
366
371
|
.card_PTRO .card_PTRO_container .card_PTRO_body .card_PTRO_right .card_title {
|
|
372
|
+
flex: 0 0 auto;
|
|
367
373
|
overflow: hidden;
|
|
368
374
|
text-overflow: ellipsis;
|
|
369
375
|
white-space: nowrap;
|
|
@@ -384,10 +390,19 @@
|
|
|
384
390
|
color: var(--success-color);
|
|
385
391
|
}
|
|
386
392
|
.card_PTRO .card_PTRO_container .card_PTRO_body .card_PTRO_right .PTRO_column {
|
|
387
|
-
display:
|
|
388
|
-
|
|
393
|
+
display: flex;
|
|
394
|
+
flex-flow: wrap;
|
|
395
|
+
column-gap: 8px;
|
|
389
396
|
font-size: 12px;
|
|
390
397
|
color: var(--color-65);
|
|
398
|
+
margin-top: 8px;
|
|
399
|
+
}
|
|
400
|
+
.card_PTRO .card_PTRO_container .card_PTRO_body .card_PTRO_right .PTRO_column > span {
|
|
401
|
+
min-height: 20px;
|
|
402
|
+
width: calc(50% - 4px);
|
|
403
|
+
text-overflow: ellipsis;
|
|
404
|
+
white-space: nowrap;
|
|
405
|
+
overflow: hidden;
|
|
391
406
|
}
|
|
392
407
|
.card_PTRO .card_PTRO_container .card_PTRO_body .card_PTRO_right .PTRO_extend {
|
|
393
408
|
font-size: 12px;
|
|
@@ -27,27 +27,18 @@ var _filterSort = _interopRequireDefault(require("./filterSort"));
|
|
|
27
27
|
|
|
28
28
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
29
29
|
|
|
30
|
-
var SmallImg = require('./assets/option1.png');
|
|
31
|
-
|
|
32
|
-
var DefaultImg = require('./assets/option2.png');
|
|
33
|
-
|
|
34
|
-
var MiddleImg = require('./assets/option3.png');
|
|
35
|
-
|
|
36
30
|
var TabPane = _linkmoreDesign.Tabs.TabPane;
|
|
37
31
|
var optionsWithDisabled = [{
|
|
38
32
|
label: '默认',
|
|
39
33
|
value: 'default',
|
|
40
|
-
imgUrl: DefaultImg,
|
|
41
34
|
icon: 'lmweb-icon_default'
|
|
42
35
|
}, {
|
|
43
36
|
label: '紧凑',
|
|
44
37
|
value: 'small',
|
|
45
|
-
imgUrl: SmallImg,
|
|
46
38
|
icon: 'lmweb-icon_compact'
|
|
47
39
|
}, {
|
|
48
40
|
label: '宽松',
|
|
49
41
|
value: 'middle',
|
|
50
|
-
imgUrl: MiddleImg,
|
|
51
42
|
icon: 'lmweb-icon_large'
|
|
52
43
|
}];
|
|
53
44
|
var prefixCls = 'lm_custom-table-option';
|
package/lib/Input/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var LmInput = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
44
44
|
className: "lm_input",
|
|
45
45
|
size: size
|
|
46
46
|
}, rest, {
|
|
47
|
-
allowClear:
|
|
47
|
+
allowClear: allowClear
|
|
48
48
|
}));
|
|
49
49
|
});
|
|
50
50
|
LmInput.Group = _input.default.Group;
|
|
@@ -59,7 +59,7 @@ LmInput.Search = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
59
59
|
})
|
|
60
60
|
}, rest, {
|
|
61
61
|
ref: ref,
|
|
62
|
-
allowClear:
|
|
62
|
+
allowClear: allowClear,
|
|
63
63
|
className: "lm_input_search"
|
|
64
64
|
}));
|
|
65
65
|
});
|
|
@@ -80,7 +80,7 @@ LmInput.Password = function (props) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
}, rest, {
|
|
83
|
-
allowClear:
|
|
83
|
+
allowClear: allowClear
|
|
84
84
|
}));
|
|
85
85
|
};
|
|
86
86
|
|