@aloudata/aloudata-design 0.4.0-beta.6 → 0.4.0-beta.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/es/Icon/icons.js +135 -58
- package/es/Input/components/Password/index.d.ts +1 -1
- package/es/Input/components/TextArea/index.d.ts +1 -1
- package/es/Table/interface.d.ts +1 -0
- package/es/Table/utils.js +15 -8
- package/es/style/themes/default/scrollBar.less +10 -7
- package/lib/Icon/icons.js +135 -58
- package/lib/Input/components/Password/index.d.ts +1 -1
- package/lib/Input/components/TextArea/index.d.ts +1 -1
- package/lib/Table/interface.d.ts +1 -0
- package/lib/Table/utils.js +15 -8
- package/lib/style/themes/default/scrollBar.less +10 -7
- package/package.json +2 -2
- package/es/Table/hooks/useTableColumn.d.ts +0 -28
- package/es/Table/hooks/useTableColumn.js +0 -53
- package/lib/Table/hooks/useTableColumn.d.ts +0 -28
- package/lib/Table/hooks/useTableColumn.js +0 -66
package/es/Icon/icons.js
CHANGED
|
@@ -1141,373 +1141,450 @@ export default [{
|
|
|
1141
1141
|
author: '阿广'
|
|
1142
1142
|
}, {
|
|
1143
1143
|
id: 163,
|
|
1144
|
-
title: '函数-双色',
|
|
1145
|
-
name: 'fx-duotone',
|
|
1146
|
-
category: 'Duotone',
|
|
1147
|
-
categoryCN: '双色',
|
|
1148
|
-
author: '阿广'
|
|
1149
|
-
}, {
|
|
1150
|
-
id: 164,
|
|
1151
1144
|
title: '增加小数',
|
|
1152
1145
|
name: 'increase-the-scale-duotone',
|
|
1153
1146
|
category: 'Duotone',
|
|
1154
1147
|
categoryCN: '双色',
|
|
1155
1148
|
author: '阿广'
|
|
1156
1149
|
}, {
|
|
1157
|
-
id:
|
|
1150
|
+
id: 164,
|
|
1158
1151
|
title: '减少小数位-双色',
|
|
1159
1152
|
name: 'reduce-decimal-places-duotone',
|
|
1160
1153
|
category: 'Duotone',
|
|
1161
1154
|
categoryCN: '双色',
|
|
1162
1155
|
author: '阿广'
|
|
1163
1156
|
}, {
|
|
1164
|
-
id:
|
|
1157
|
+
id: 165,
|
|
1165
1158
|
title: '日期-转换-双色',
|
|
1166
1159
|
name: 'date-convert-duotone',
|
|
1167
1160
|
category: 'Duotone',
|
|
1168
1161
|
categoryCN: '双色',
|
|
1169
1162
|
author: '阿广'
|
|
1170
1163
|
}, {
|
|
1171
|
-
id:
|
|
1164
|
+
id: 166,
|
|
1172
1165
|
title: '日期-裁剪-双色',
|
|
1173
1166
|
name: 'data-crop-duotone',
|
|
1174
1167
|
category: 'Duotone',
|
|
1175
1168
|
categoryCN: '双色',
|
|
1176
1169
|
author: '阿广'
|
|
1177
1170
|
}, {
|
|
1178
|
-
id:
|
|
1171
|
+
id: 167,
|
|
1179
1172
|
title: '警告-圆形-双色',
|
|
1180
1173
|
name: 'alert-circle-duotone',
|
|
1181
1174
|
category: 'Duotone',
|
|
1182
1175
|
categoryCN: '双色',
|
|
1183
1176
|
author: '阿广'
|
|
1184
1177
|
}, {
|
|
1185
|
-
id:
|
|
1178
|
+
id: 168,
|
|
1186
1179
|
title: '排序-升序',
|
|
1187
1180
|
name: 'sort-amount-up-duotone',
|
|
1188
1181
|
category: 'Duotone',
|
|
1189
1182
|
categoryCN: '双色',
|
|
1190
1183
|
author: '阿广'
|
|
1191
1184
|
}, {
|
|
1192
|
-
id:
|
|
1185
|
+
id: 169,
|
|
1193
1186
|
title: '排序-降序',
|
|
1194
1187
|
name: 'sort-amount-down-duotone',
|
|
1195
1188
|
category: 'Duotone',
|
|
1196
1189
|
categoryCN: '双色',
|
|
1197
1190
|
author: '阿广'
|
|
1198
1191
|
}, {
|
|
1199
|
-
id:
|
|
1192
|
+
id: 170,
|
|
1200
1193
|
title: '已过滤',
|
|
1201
1194
|
name: 'filtered-duotone',
|
|
1202
1195
|
category: 'Duotone',
|
|
1203
1196
|
categoryCN: '双色',
|
|
1204
1197
|
author: '阿广'
|
|
1205
1198
|
}, {
|
|
1206
|
-
id:
|
|
1199
|
+
id: 171,
|
|
1207
1200
|
title: '分组-展开',
|
|
1208
1201
|
name: 'group-expand-duotone',
|
|
1209
1202
|
category: 'Duotone',
|
|
1210
1203
|
categoryCN: '双色',
|
|
1211
1204
|
author: '阿广'
|
|
1212
1205
|
}, {
|
|
1213
|
-
id:
|
|
1206
|
+
id: 172,
|
|
1214
1207
|
title: '分组-折叠',
|
|
1215
1208
|
name: 'group-fold-duotone',
|
|
1216
1209
|
category: 'Duotone',
|
|
1217
1210
|
categoryCN: '双色',
|
|
1218
1211
|
author: '阿广'
|
|
1219
1212
|
}, {
|
|
1220
|
-
id:
|
|
1213
|
+
id: 173,
|
|
1221
1214
|
title: '添加-圆形',
|
|
1222
1215
|
name: 'add-circle-duotone',
|
|
1223
1216
|
category: 'Duotone',
|
|
1224
1217
|
categoryCN: '双色',
|
|
1225
1218
|
author: '阿广'
|
|
1226
1219
|
}, {
|
|
1227
|
-
id:
|
|
1220
|
+
id: 174,
|
|
1228
1221
|
title: '取消-圆形',
|
|
1229
1222
|
name: 'cancel-circle-duotone',
|
|
1230
1223
|
category: 'Duotone',
|
|
1231
1224
|
categoryCN: '双色',
|
|
1232
1225
|
author: '阿广'
|
|
1233
1226
|
}, {
|
|
1234
|
-
id:
|
|
1227
|
+
id: 175,
|
|
1235
1228
|
title: 'hive',
|
|
1236
1229
|
name: 'hive-source',
|
|
1237
1230
|
category: 'DataSource',
|
|
1238
1231
|
categoryCN: '数据源平台',
|
|
1239
1232
|
author: '阿广'
|
|
1240
1233
|
}, {
|
|
1241
|
-
id:
|
|
1234
|
+
id: 176,
|
|
1242
1235
|
title: 'mysql',
|
|
1243
1236
|
name: 'mysql-source',
|
|
1244
1237
|
category: 'DataSource',
|
|
1245
1238
|
categoryCN: '数据源平台',
|
|
1246
1239
|
author: '阿广'
|
|
1247
1240
|
}, {
|
|
1248
|
-
id:
|
|
1241
|
+
id: 177,
|
|
1249
1242
|
title: 'PostgreSQL',
|
|
1250
1243
|
name: 'postgresql-source',
|
|
1251
1244
|
category: 'DataSource',
|
|
1252
1245
|
categoryCN: '数据源平台',
|
|
1253
1246
|
author: '阿广'
|
|
1254
1247
|
}, {
|
|
1255
|
-
id:
|
|
1248
|
+
id: 178,
|
|
1256
1249
|
title: '分组条形图',
|
|
1257
1250
|
name: 'grouped-bar-horizontal-chart',
|
|
1258
1251
|
category: 'Chart',
|
|
1259
1252
|
categoryCN: '图表',
|
|
1260
1253
|
author: '阿广'
|
|
1261
1254
|
}, {
|
|
1262
|
-
id:
|
|
1255
|
+
id: 179,
|
|
1263
1256
|
title: '百分比柱状体',
|
|
1264
1257
|
name: 'percentage-bar-vertical-chart',
|
|
1265
1258
|
category: 'Chart',
|
|
1266
1259
|
categoryCN: '图表',
|
|
1267
1260
|
author: '阿广'
|
|
1268
1261
|
}, {
|
|
1269
|
-
id:
|
|
1262
|
+
id: 180,
|
|
1270
1263
|
title: '堆叠条形图',
|
|
1271
1264
|
name: 'stacked-bar-horizontal-chart',
|
|
1272
1265
|
category: 'Chart',
|
|
1273
1266
|
categoryCN: '图表',
|
|
1274
1267
|
author: '阿广'
|
|
1275
1268
|
}, {
|
|
1276
|
-
id:
|
|
1269
|
+
id: 181,
|
|
1277
1270
|
title: '折线图',
|
|
1278
1271
|
name: 'line-chart',
|
|
1279
1272
|
category: 'Chart',
|
|
1280
1273
|
categoryCN: '图表',
|
|
1281
1274
|
author: '阿广'
|
|
1282
1275
|
}, {
|
|
1283
|
-
id:
|
|
1276
|
+
id: 182,
|
|
1284
1277
|
title: '环形图',
|
|
1285
1278
|
name: 'donut-chart',
|
|
1286
1279
|
category: 'Chart',
|
|
1287
1280
|
categoryCN: '图表',
|
|
1288
1281
|
author: '阿广'
|
|
1289
1282
|
}, {
|
|
1290
|
-
id:
|
|
1283
|
+
id: 183,
|
|
1291
1284
|
title: '饼图',
|
|
1292
1285
|
name: 'pie-chart',
|
|
1293
1286
|
category: 'Chart',
|
|
1294
1287
|
categoryCN: '图表',
|
|
1295
1288
|
author: '阿广'
|
|
1296
1289
|
}, {
|
|
1297
|
-
id:
|
|
1290
|
+
id: 184,
|
|
1298
1291
|
title: '透视图',
|
|
1299
1292
|
name: 'pivot-table-chart',
|
|
1300
1293
|
category: 'Chart',
|
|
1301
1294
|
categoryCN: '图表',
|
|
1302
1295
|
author: '阿广'
|
|
1303
1296
|
}, {
|
|
1304
|
-
id:
|
|
1297
|
+
id: 185,
|
|
1305
1298
|
title: '堆叠柱形图',
|
|
1306
1299
|
name: 'stacked-bar-vertical-chart',
|
|
1307
1300
|
category: 'Chart',
|
|
1308
1301
|
categoryCN: '图表',
|
|
1309
1302
|
author: '阿广'
|
|
1310
1303
|
}, {
|
|
1311
|
-
id:
|
|
1304
|
+
id: 186,
|
|
1312
1305
|
title: '组合图',
|
|
1313
1306
|
name: 'combo-chart',
|
|
1314
1307
|
category: 'Chart',
|
|
1315
1308
|
categoryCN: '图表',
|
|
1316
1309
|
author: '阿广'
|
|
1317
1310
|
}, {
|
|
1318
|
-
id:
|
|
1311
|
+
id: 187,
|
|
1319
1312
|
title: '表格',
|
|
1320
1313
|
name: 'table-chart',
|
|
1321
1314
|
category: 'Chart',
|
|
1322
1315
|
categoryCN: '图表',
|
|
1323
1316
|
author: '阿广'
|
|
1324
1317
|
}, {
|
|
1325
|
-
id:
|
|
1318
|
+
id: 188,
|
|
1326
1319
|
title: '指标卡',
|
|
1327
1320
|
name: 'statistic-card-chart',
|
|
1328
1321
|
category: 'Chart',
|
|
1329
1322
|
categoryCN: '图表',
|
|
1330
1323
|
author: '阿广'
|
|
1331
1324
|
}, {
|
|
1332
|
-
id:
|
|
1325
|
+
id: 189,
|
|
1333
1326
|
title: '百分比条形图',
|
|
1334
1327
|
name: 'percentage-bar-horizontal-chart',
|
|
1335
1328
|
category: 'Chart',
|
|
1336
1329
|
categoryCN: '图表',
|
|
1337
1330
|
author: '阿广'
|
|
1338
1331
|
}, {
|
|
1339
|
-
id:
|
|
1332
|
+
id: 190,
|
|
1340
1333
|
title: '分组柱状图',
|
|
1341
1334
|
name: 'grouped-bar-vertical-chart',
|
|
1342
1335
|
category: 'Chart',
|
|
1343
1336
|
categoryCN: '图表',
|
|
1344
1337
|
author: '阿广'
|
|
1345
1338
|
}, {
|
|
1346
|
-
id:
|
|
1339
|
+
id: 191,
|
|
1347
1340
|
title: '添加-图标',
|
|
1348
1341
|
name: 'add-chart',
|
|
1349
1342
|
category: 'Chart',
|
|
1350
1343
|
categoryCN: '填充',
|
|
1351
1344
|
author: '阿广'
|
|
1352
1345
|
}, {
|
|
1353
|
-
id:
|
|
1346
|
+
id: 192,
|
|
1354
1347
|
title: '空态',
|
|
1355
1348
|
name: 'empty-empty',
|
|
1356
1349
|
category: 'Empty',
|
|
1357
1350
|
categoryCN: '空态',
|
|
1358
1351
|
author: '阿广'
|
|
1359
1352
|
}, {
|
|
1360
|
-
id:
|
|
1353
|
+
id: 193,
|
|
1361
1354
|
title: '环形图为空',
|
|
1362
1355
|
name: 'donut-chart-empty',
|
|
1363
1356
|
category: 'Empty',
|
|
1364
1357
|
categoryCN: '空态',
|
|
1365
1358
|
author: '阿广'
|
|
1366
1359
|
}, {
|
|
1367
|
-
id:
|
|
1360
|
+
id: 194,
|
|
1368
1361
|
title: '组合为空',
|
|
1369
1362
|
name: 'combo-chart-empty',
|
|
1370
1363
|
category: 'Empty',
|
|
1371
1364
|
categoryCN: '空态',
|
|
1372
1365
|
author: '阿广'
|
|
1373
1366
|
}, {
|
|
1374
|
-
id:
|
|
1367
|
+
id: 195,
|
|
1375
1368
|
title: '百分比柱状图为空',
|
|
1376
1369
|
name: 'percentage-bar-vertical-chart-empty',
|
|
1377
1370
|
category: 'Empty',
|
|
1378
1371
|
categoryCN: '空态',
|
|
1379
1372
|
author: '阿广'
|
|
1380
1373
|
}, {
|
|
1381
|
-
id:
|
|
1374
|
+
id: 196,
|
|
1382
1375
|
title: '堆叠柱状图为空',
|
|
1383
1376
|
name: 'stacked-bar-vertical-chart-empty',
|
|
1384
1377
|
category: 'Empty',
|
|
1385
1378
|
categoryCN: '空态',
|
|
1386
1379
|
author: '阿广'
|
|
1387
1380
|
}, {
|
|
1388
|
-
id:
|
|
1381
|
+
id: 197,
|
|
1389
1382
|
title: '饼状图为空',
|
|
1390
1383
|
name: 'pie-chart-empty',
|
|
1391
1384
|
category: 'Empty',
|
|
1392
1385
|
categoryCN: '空态',
|
|
1393
1386
|
author: '阿广'
|
|
1394
1387
|
}, {
|
|
1395
|
-
id:
|
|
1388
|
+
id: 198,
|
|
1396
1389
|
title: '百分比条形图为空',
|
|
1397
1390
|
name: 'percentage-bar-horizontal-chart-empty',
|
|
1398
1391
|
category: 'Empty',
|
|
1399
1392
|
categoryCN: '空态',
|
|
1400
1393
|
author: '阿广'
|
|
1401
1394
|
}, {
|
|
1402
|
-
id:
|
|
1395
|
+
id: 199,
|
|
1403
1396
|
title: '表格为空',
|
|
1404
1397
|
name: 'table-empty',
|
|
1405
1398
|
category: 'Empty',
|
|
1406
1399
|
categoryCN: '空态',
|
|
1407
1400
|
author: '阿广'
|
|
1408
1401
|
}, {
|
|
1409
|
-
id:
|
|
1402
|
+
id: 200,
|
|
1410
1403
|
title: '分组柱状图为空',
|
|
1411
1404
|
name: 'grouped-bar-vertical-chart-empty',
|
|
1412
1405
|
category: 'Empty',
|
|
1413
1406
|
categoryCN: '空态',
|
|
1414
1407
|
author: '阿广'
|
|
1415
1408
|
}, {
|
|
1416
|
-
id:
|
|
1409
|
+
id: 201,
|
|
1417
1410
|
title: '堆叠条形图为空',
|
|
1418
1411
|
name: 'stacked-bar-horizontal-chart-empty',
|
|
1419
1412
|
category: 'Empty',
|
|
1420
1413
|
categoryCN: '空态',
|
|
1421
1414
|
author: '阿广'
|
|
1422
1415
|
}, {
|
|
1423
|
-
id:
|
|
1416
|
+
id: 202,
|
|
1424
1417
|
title: '分组条形图为空',
|
|
1425
1418
|
name: 'grouped-bar-horizontal-chart-empty',
|
|
1426
1419
|
category: 'Empty',
|
|
1427
1420
|
categoryCN: '空态',
|
|
1428
1421
|
author: '阿广'
|
|
1429
1422
|
}, {
|
|
1430
|
-
id:
|
|
1423
|
+
id: 203,
|
|
1431
1424
|
title: '折线图为空',
|
|
1432
1425
|
name: 'line-chart-empty',
|
|
1433
1426
|
category: 'Empty',
|
|
1434
1427
|
categoryCN: '空态',
|
|
1435
1428
|
author: '阿广'
|
|
1436
1429
|
}, {
|
|
1437
|
-
id:
|
|
1430
|
+
id: 204,
|
|
1438
1431
|
title: '指标卡为空',
|
|
1439
1432
|
name: 'statistic-card-empty',
|
|
1440
1433
|
category: 'Empty',
|
|
1441
1434
|
categoryCN: '空态',
|
|
1442
1435
|
author: '阿广'
|
|
1443
1436
|
}, {
|
|
1444
|
-
id:
|
|
1437
|
+
id: 205,
|
|
1445
1438
|
title: '透视图为空',
|
|
1446
1439
|
name: 'pivot-table-empty',
|
|
1447
1440
|
category: 'Empty',
|
|
1448
1441
|
categoryCN: '空态',
|
|
1449
1442
|
author: '阿广'
|
|
1450
1443
|
}, {
|
|
1451
|
-
id:
|
|
1444
|
+
id: 206,
|
|
1452
1445
|
title: '来源数据为空',
|
|
1453
1446
|
name: 'source-data-empty',
|
|
1454
1447
|
category: 'Empty',
|
|
1455
1448
|
categoryCN: '空态',
|
|
1456
1449
|
author: '阿广'
|
|
1457
1450
|
}, {
|
|
1458
|
-
id:
|
|
1451
|
+
id: 207,
|
|
1459
1452
|
title: '来源数据为空',
|
|
1460
1453
|
name: 'source-data-empty-line',
|
|
1461
1454
|
category: 'Line',
|
|
1462
1455
|
categoryCN: '线',
|
|
1463
1456
|
author: '阿广'
|
|
1464
1457
|
}, {
|
|
1465
|
-
id:
|
|
1458
|
+
id: 208,
|
|
1466
1459
|
title: '添加汇总-线性',
|
|
1467
1460
|
name: 'add-formula-line',
|
|
1468
1461
|
category: 'Line',
|
|
1469
1462
|
categoryCN: '线',
|
|
1470
1463
|
author: '阿广'
|
|
1471
1464
|
}, {
|
|
1472
|
-
id:
|
|
1465
|
+
id: 209,
|
|
1473
1466
|
title: '空-线性',
|
|
1474
1467
|
name: 'empty-line',
|
|
1475
1468
|
category: 'Line',
|
|
1476
1469
|
categoryCN: '线',
|
|
1477
1470
|
author: '阿广'
|
|
1478
1471
|
}, {
|
|
1479
|
-
id:
|
|
1472
|
+
id: 210,
|
|
1480
1473
|
title: '抽取-线性',
|
|
1481
1474
|
name: 'extraction-line',
|
|
1482
1475
|
category: 'Line',
|
|
1483
1476
|
categoryCN: '线',
|
|
1484
1477
|
author: '阿广'
|
|
1485
1478
|
}, {
|
|
1486
|
-
id:
|
|
1479
|
+
id: 211,
|
|
1487
1480
|
title: '更多-竖线',
|
|
1488
1481
|
name: 'more-vertical-line',
|
|
1489
1482
|
category: 'Line',
|
|
1490
1483
|
categoryCN: '线',
|
|
1491
1484
|
author: '阿广'
|
|
1492
1485
|
}, {
|
|
1493
|
-
id:
|
|
1486
|
+
id: 212,
|
|
1494
1487
|
title: '退出',
|
|
1495
1488
|
name: 'log-out-line',
|
|
1496
1489
|
category: 'Line',
|
|
1497
1490
|
categoryCN: '线',
|
|
1498
1491
|
author: '阿广'
|
|
1499
1492
|
}, {
|
|
1500
|
-
id:
|
|
1493
|
+
id: 213,
|
|
1501
1494
|
title: '移除-圆形',
|
|
1502
1495
|
name: 'remove-circle-line',
|
|
1503
1496
|
category: 'Line',
|
|
1504
1497
|
categoryCN: '线',
|
|
1505
1498
|
author: '阿广'
|
|
1506
1499
|
}, {
|
|
1507
|
-
id:
|
|
1500
|
+
id: 214,
|
|
1508
1501
|
title: '数据源',
|
|
1509
1502
|
name: 'datasource-line',
|
|
1510
1503
|
category: 'Line',
|
|
1511
1504
|
categoryCN: '线',
|
|
1512
1505
|
author: '阿广'
|
|
1506
|
+
}, {
|
|
1507
|
+
id: 215,
|
|
1508
|
+
title: '函数-多色',
|
|
1509
|
+
name: 'fx-duotone-line',
|
|
1510
|
+
category: 'Line',
|
|
1511
|
+
categoryCN: '线',
|
|
1512
|
+
author: '阿广'
|
|
1513
|
+
}, {
|
|
1514
|
+
id: 216,
|
|
1515
|
+
title: 'SQL-线',
|
|
1516
|
+
name: 'sql-line',
|
|
1517
|
+
category: 'line',
|
|
1518
|
+
categoryCN: '线',
|
|
1519
|
+
author: '阿广'
|
|
1520
|
+
}, {
|
|
1521
|
+
id: 217,
|
|
1522
|
+
title: '数值范围',
|
|
1523
|
+
name: 'numerical-range-chart',
|
|
1524
|
+
category: 'Chart',
|
|
1525
|
+
categoryCN: '图标',
|
|
1526
|
+
author: '阿广'
|
|
1527
|
+
}, {
|
|
1528
|
+
id: 218,
|
|
1529
|
+
title: '日期范围',
|
|
1530
|
+
name: 'date-range-chart',
|
|
1531
|
+
category: 'Chart',
|
|
1532
|
+
categoryCN: '图标',
|
|
1533
|
+
author: '阿广'
|
|
1534
|
+
}, {
|
|
1535
|
+
id: 219,
|
|
1536
|
+
title: '输入框',
|
|
1537
|
+
name: 'input-chart',
|
|
1538
|
+
category: 'Chart',
|
|
1539
|
+
categoryCN: '图标',
|
|
1540
|
+
author: '阿广'
|
|
1541
|
+
}, {
|
|
1542
|
+
id: 220,
|
|
1543
|
+
title: '日期',
|
|
1544
|
+
name: 'date-chart',
|
|
1545
|
+
category: 'Chart',
|
|
1546
|
+
categoryCN: '图标',
|
|
1547
|
+
author: '阿广'
|
|
1548
|
+
}, {
|
|
1549
|
+
id: 221,
|
|
1550
|
+
title: '下拉菜单',
|
|
1551
|
+
name: 'dropdown-chart',
|
|
1552
|
+
category: 'Chart',
|
|
1553
|
+
categoryCN: '图标',
|
|
1554
|
+
author: '阿广'
|
|
1555
|
+
}, {
|
|
1556
|
+
id: 222,
|
|
1557
|
+
title: 'Y-左侧',
|
|
1558
|
+
name: 'y-left-duotone',
|
|
1559
|
+
category: 'Duotone',
|
|
1560
|
+
categoryCN: '双色',
|
|
1561
|
+
author: '阿广'
|
|
1562
|
+
}, {
|
|
1563
|
+
id: 223,
|
|
1564
|
+
title: 'Y-右侧',
|
|
1565
|
+
name: 'y-right-duotone',
|
|
1566
|
+
category: 'Duotone',
|
|
1567
|
+
categoryCN: '双色',
|
|
1568
|
+
author: '阿广'
|
|
1569
|
+
}, {
|
|
1570
|
+
id: 224,
|
|
1571
|
+
title: '左箭头-双线',
|
|
1572
|
+
name: 'arrows-left-double-line',
|
|
1573
|
+
category: 'Line',
|
|
1574
|
+
categoryCN: '线',
|
|
1575
|
+
author: '阿广'
|
|
1576
|
+
}, {
|
|
1577
|
+
id: 225,
|
|
1578
|
+
title: '右箭头-双线',
|
|
1579
|
+
name: 'arrows-right-double-line',
|
|
1580
|
+
category: 'Line',
|
|
1581
|
+
categoryCN: '线',
|
|
1582
|
+
author: '阿广'
|
|
1583
|
+
}, {
|
|
1584
|
+
id: 226,
|
|
1585
|
+
title: '布尔-线性',
|
|
1586
|
+
name: 'boolean-line',
|
|
1587
|
+
category: 'Line',
|
|
1588
|
+
categoryCN: '线',
|
|
1589
|
+
author: '阿广'
|
|
1513
1590
|
}];
|
package/es/Table/interface.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export interface IColumn<RecordType> {
|
|
|
11
11
|
render?: (value: any, row: RecordType, index: number) => React.ReactNode;
|
|
12
12
|
width?: number | string;
|
|
13
13
|
minWidth?: number;
|
|
14
|
+
widthFlex?: boolean;
|
|
14
15
|
sorter?: boolean | 'string' | 'number' | 'basic' | 'datetime' | 'alphanumeric';
|
|
15
16
|
sortOrder?: TSortOrder;
|
|
16
17
|
sortDirections?: Array<'ascend' | 'descend'>;
|
package/es/Table/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var ZERO = 0;
|
|
2
2
|
var NOT_SET = -1;
|
|
3
|
-
var COLUMN_MIN_WIDTH =
|
|
3
|
+
var COLUMN_MIN_WIDTH = 80;
|
|
4
4
|
var HUNDRED = 100; // TODO: 添加单侧
|
|
5
5
|
|
|
6
6
|
export function getColumnsWidthMap(columns, clientWidth, lastWidthMap) {
|
|
@@ -9,12 +9,19 @@ export function getColumnsWidthMap(columns, clientWidth, lastWidthMap) {
|
|
|
9
9
|
var widthMap = new Map();
|
|
10
10
|
var totalColumnWidth = ZERO;
|
|
11
11
|
columns.forEach(function (item, index) {
|
|
12
|
-
var _lastWidthMap$get;
|
|
13
|
-
|
|
14
12
|
var key = index.toString();
|
|
15
|
-
var
|
|
13
|
+
var widthFlex = item.widthFlex;
|
|
14
|
+
var width = getWidthByColumnsWidth(clientWidth, item.width, widthFlex); // 首先判断是否是否是容器宽度的变化
|
|
15
|
+
|
|
16
|
+
var isSpecific;
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
if (widthFlex) {
|
|
19
|
+
isSpecific = false;
|
|
20
|
+
} else {
|
|
21
|
+
var _lastWidthMap$get;
|
|
22
|
+
|
|
23
|
+
isSpecific = lastWidthMap ? (_lastWidthMap$get = lastWidthMap.get(key)) === null || _lastWidthMap$get === void 0 ? void 0 : _lastWidthMap$get.isSpecific : isSpecificWidth(item.width);
|
|
24
|
+
}
|
|
18
25
|
|
|
19
26
|
if (lastWidthMap && isSpecific) {
|
|
20
27
|
var _lastWidthMap$get2;
|
|
@@ -40,7 +47,7 @@ export function getColumnsWidthMap(columns, clientWidth, lastWidthMap) {
|
|
|
40
47
|
|
|
41
48
|
return widthMap.set(item, {
|
|
42
49
|
isSpecific: (_widthMap$get = widthMap.get(item)) === null || _widthMap$get === void 0 ? void 0 : _widthMap$get.isSpecific,
|
|
43
|
-
width:
|
|
50
|
+
width: COLUMN_MIN_WIDTH
|
|
44
51
|
});
|
|
45
52
|
});
|
|
46
53
|
} // 设定宽度小于容器宽度时
|
|
@@ -72,8 +79,8 @@ export function getColumnsWidthMap(columns, clientWidth, lastWidthMap) {
|
|
|
72
79
|
};
|
|
73
80
|
}
|
|
74
81
|
|
|
75
|
-
function getWidthByColumnsWidth(clientWidth, width) {
|
|
76
|
-
if (width === undefined) {
|
|
82
|
+
function getWidthByColumnsWidth(clientWidth, width, widthFlex) {
|
|
83
|
+
if (width === undefined || widthFlex) {
|
|
77
84
|
return NOT_SET;
|
|
78
85
|
}
|
|
79
86
|
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
&::-webkit-scrollbar {
|
|
2
|
+
width: 12px !important;
|
|
3
|
+
height: 12px !important;
|
|
4
|
+
opacity: 0.5;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
&::-webkit-scrollbar-thumb {
|
|
8
|
+
background-color: rgba(152, 162, 179, 0.5);
|
|
4
9
|
border: 3px solid transparent;
|
|
5
10
|
border-radius: 6px;
|
|
11
|
+
background-clip: padding-box;
|
|
6
12
|
}
|
|
7
13
|
|
|
8
|
-
|
|
9
|
-
width: 12px;
|
|
10
|
-
height: 12px;
|
|
11
|
-
min-height: 12px;
|
|
14
|
+
&::-webkit-scrollbar-track {
|
|
12
15
|
background-color: transparent;
|
|
13
16
|
}
|