@jetlinks-web/components 2.0.37 → 2.0.38

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.
Files changed (74) hide show
  1. package/es/CardSelect/style/index.js +1 -0
  2. package/es/CheckButton/style/index.js +1 -0
  3. package/es/DragModal/DragModal.js +307 -0
  4. package/es/DragModal/index.js +5 -0
  5. package/es/DragModal/style/index.css +81 -0
  6. package/es/DragModal/style/index.js +1 -0
  7. package/es/DragModal/style/index.less +96 -0
  8. package/es/EditTable/Body.js +365 -0
  9. package/es/EditTable/EditTable.js +401 -0
  10. package/es/EditTable/Header.js +242 -0
  11. package/es/EditTable/components/ContextMenu/Menu.js +154 -0
  12. package/es/EditTable/components/ContextMenu/index.js +81 -0
  13. package/es/EditTable/components/Search/Search.js +290 -0
  14. package/es/EditTable/components/Search/index.js +1 -0
  15. package/es/EditTable/consts.js +7 -0
  16. package/es/EditTable/hooks/index.js +40 -0
  17. package/es/EditTable/hooks/useResizeObserver.js +31 -0
  18. package/es/EditTable/hooks/useValidate.js +87 -0
  19. package/es/EditTable/index.js +9 -0
  20. package/es/EditTable/props.js +50 -0
  21. package/es/EditTable/style/body.less +76 -0
  22. package/es/EditTable/style/header.less +77 -0
  23. package/es/EditTable/style/index.css +219 -0
  24. package/es/EditTable/style/index.js +1 -0
  25. package/es/EditTable/style/index.less +42 -0
  26. package/es/EditTable/style/table.less +42 -0
  27. package/es/EditTable/utils.js +98 -0
  28. package/es/Ellipsis/style/index.js +1 -0
  29. package/es/FullPage/FullPage.js +1 -1
  30. package/es/Search/Advanced/SaveHistory.js +1 -1
  31. package/es/Search/Item.js +1 -1
  32. package/es/Search/Search.js +1 -1
  33. package/es/components.js +3 -1
  34. package/es/style/index.css +292 -0
  35. package/es/style/index.less +9 -7
  36. package/es/style.js +3 -1
  37. package/lib/CardSelect/style/index.js +3 -0
  38. package/lib/CheckButton/style/index.js +3 -0
  39. package/lib/DragModal/DragModal.js +307 -0
  40. package/lib/DragModal/index.js +12 -0
  41. package/lib/DragModal/style/index.css +81 -0
  42. package/lib/DragModal/style/index.js +3 -0
  43. package/lib/DragModal/style/index.less +96 -0
  44. package/lib/EditTable/Body.js +365 -0
  45. package/lib/EditTable/EditTable.js +401 -0
  46. package/lib/EditTable/Header.js +242 -0
  47. package/lib/EditTable/components/ContextMenu/Menu.js +154 -0
  48. package/lib/EditTable/components/ContextMenu/index.js +88 -0
  49. package/lib/EditTable/components/Search/Search.js +290 -0
  50. package/lib/EditTable/components/Search/index.js +13 -0
  51. package/lib/EditTable/consts.js +13 -0
  52. package/lib/EditTable/hooks/index.js +79 -0
  53. package/lib/EditTable/hooks/useResizeObserver.js +38 -0
  54. package/lib/EditTable/hooks/useValidate.js +94 -0
  55. package/lib/EditTable/index.js +16 -0
  56. package/lib/EditTable/props.js +56 -0
  57. package/lib/EditTable/style/body.less +76 -0
  58. package/lib/EditTable/style/header.less +77 -0
  59. package/lib/EditTable/style/index.css +219 -0
  60. package/lib/EditTable/style/index.js +3 -0
  61. package/lib/EditTable/style/index.less +42 -0
  62. package/lib/EditTable/style/table.less +42 -0
  63. package/lib/EditTable/utils.js +105 -0
  64. package/lib/Ellipsis/style/index.js +3 -0
  65. package/lib/FullPage/FullPage.js +1 -1
  66. package/lib/Search/Advanced/SaveHistory.js +1 -1
  67. package/lib/Search/Item.js +1 -1
  68. package/lib/Search/Search.js +1 -1
  69. package/lib/components.js +14 -0
  70. package/lib/style/components.less +2 -0
  71. package/lib/style/index.css +292 -0
  72. package/lib/style/index.less +9 -7
  73. package/lib/style.js +3 -1
  74. package/package.json +3 -1
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.handlePureRecord = exports.handleColumnsWidth = exports.handleColumnFixed = exports.collectValidateRules = void 0;
8
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
+ var _lodashEs = require("lodash");
10
+ /**
11
+ * 规则收集器,收集columns中的rules和watch
12
+ * @param columns
13
+ */
14
+ var collectValidateRules = exports.collectValidateRules = function collectValidateRules(columns) {
15
+ var rules = {};
16
+ columns.forEach(function (item) {
17
+ if (item.form) {
18
+ if (item.form.rules) {
19
+ rules[item.dataIndex] = item.form.rules;
20
+ }
21
+ }
22
+ });
23
+ return rules;
24
+ };
25
+ /**
26
+ * 清除内部属性
27
+ * @param record
28
+ */
29
+ var handlePureRecord = exports.handlePureRecord = function handlePureRecord(record) {
30
+ if (!record) return {};
31
+ return (0, _lodashEs.omit)(record, ['__serial', '__index', '__top', '__selected', '__key', '__dataIndex', '__oldSerial']);
32
+ };
33
+ /**
34
+ * 计算每个column的宽度和位置
35
+ * @param columns
36
+ * @param warpWidth
37
+ * @param scrollX
38
+ */
39
+ var handleColumnsWidth = exports.handleColumnsWidth = function handleColumnsWidth(columns, warpWidth, scrollX) {
40
+ var newColumns = (0, _toConsumableArray2.default)(columns);
41
+ var noWidthLen = 0; // 没有width属性的长度
42
+ var hasWidthCount = 0; // 有width属性的合计
43
+ var average = 0; // 每个column宽度
44
+ var parseAverage = 0; // 取整宽度
45
+ var decimalCount = 0; // 收集每个取整后的小数
46
+ var lastNoWidthIndex = undefined; // 最后一个没有width属性的位置
47
+ newColumns.forEach(function (item, index) {
48
+ if (item.width) {
49
+ // 是否有设置width属性
50
+ hasWidthCount += item.width;
51
+ } else {
52
+ noWidthLen += 1;
53
+ lastNoWidthIndex = index;
54
+ }
55
+ });
56
+ if (noWidthLen) {
57
+ average = ((scrollX !== null && scrollX !== void 0 ? scrollX : warpWidth) - hasWidthCount) / noWidthLen; // 剩余平分分配宽度
58
+ parseAverage = scrollX ? 150 : Math.trunc(average);
59
+ decimalCount = (average - parseAverage) * noWidthLen;
60
+ }
61
+ return newColumns.map(function (item, index) {
62
+ var _width = item.width;
63
+ if (!item.width) {
64
+ _width = parseAverage;
65
+ }
66
+ if (index === lastNoWidthIndex) {
67
+ _width = decimalCount < 0 ? parseAverage : Math.trunc(decimalCount) + parseAverage;
68
+ }
69
+ item._width = _width;
70
+ // item.left = left
71
+ return item;
72
+ }, []);
73
+ };
74
+ var handleColumnFixed = exports.handleColumnFixed = function handleColumnFixed(columns) {
75
+ var left = {
76
+ keys: [],
77
+ width: 0
78
+ };
79
+ var center = {
80
+ keys: [],
81
+ width: 0
82
+ };
83
+ var right = {
84
+ keys: [],
85
+ width: 0
86
+ };
87
+ console.log('columns', columns);
88
+ columns.forEach(function (item) {
89
+ if (item.fixed === 'left') {
90
+ left.keys.push(item);
91
+ left.width += item._width;
92
+ } else if (item.fixed === 'right') {
93
+ right.keys.push(item);
94
+ right.width += item._width;
95
+ } else {
96
+ center.keys.push(item);
97
+ center.width += item._width;
98
+ }
99
+ });
100
+ return {
101
+ left: left,
102
+ center: center,
103
+ right: right
104
+ };
105
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("./index.less");
@@ -6,7 +6,7 @@
6
6
  } */
7
7
  import { defineComponent as _defineComponent } from 'vue';
8
8
  import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
9
- const _withScopeId = n => (_pushScopeId("data-v-1720601917237"), n = n(), _popScopeId(), n);
9
+ const _withScopeId = n => (_pushScopeId("data-v-1722910928600"), n = n(), _popScopeId(), n);
10
10
  const _hoisted_1 = { class: "full-page-warp-content" };
11
11
  import { ref } from 'vue';
12
12
  import { useElementBounding } from '@vueuse/core';
@@ -21,7 +21,7 @@
21
21
  } */
22
22
  import { defineComponent as _defineComponent } from 'vue';
23
23
  import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
24
- const _withScopeId = n => (_pushScopeId("data-v-1720601920293"), n = n(), _popScopeId(), n);
24
+ const _withScopeId = n => (_pushScopeId("data-v-1722910930530"), n = n(), _popScopeId(), n);
25
25
  const _hoisted_1 = {
26
26
  key: 0,
27
27
  style: { "width": "240px" }
@@ -78,7 +78,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
78
78
  } */
79
79
  import { defineComponent as _defineComponent } from 'vue';
80
80
  import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
81
- const _withScopeId = n => (_pushScopeId("data-v-1720601919613"), n = n(), _popScopeId(), n);
81
+ const _withScopeId = n => (_pushScopeId("data-v-1722910929513"), n = n(), _popScopeId(), n);
82
82
  const _hoisted_1 = { class: "JSearch-item" };
83
83
  const _hoisted_2 = {
84
84
  key: 0,
@@ -36,7 +36,7 @@
36
36
  } */
37
37
  import { defineComponent as _defineComponent } from 'vue';
38
38
  import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
39
- const _withScopeId = n => (_pushScopeId("data-v-1720601919781"), n = n(), _popScopeId(), n);
39
+ const _withScopeId = n => (_pushScopeId("data-v-1722910929773"), n = n(), _popScopeId(), n);
40
40
  const _hoisted_1 = { class: "JSearch-content simple" };
41
41
  const _hoisted_2 = { class: "JSearch-items" };
42
42
  import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
package/lib/components.js CHANGED
@@ -41,12 +41,24 @@ Object.defineProperty(exports, "ConfigProvider", {
41
41
  return _ConfigProvider.default;
42
42
  }
43
43
  });
44
+ Object.defineProperty(exports, "DragModal", {
45
+ enumerable: true,
46
+ get: function get() {
47
+ return _DragModal.default;
48
+ }
49
+ });
44
50
  Object.defineProperty(exports, "Echarts", {
45
51
  enumerable: true,
46
52
  get: function get() {
47
53
  return _Echarts.default;
48
54
  }
49
55
  });
56
+ Object.defineProperty(exports, "EditTable", {
57
+ enumerable: true,
58
+ get: function get() {
59
+ return _EditTable.default;
60
+ }
61
+ });
50
62
  Object.defineProperty(exports, "Ellipsis", {
51
63
  enumerable: true,
52
64
  get: function get() {
@@ -137,5 +149,7 @@ var _Scrollbar = _interopRequireDefault(require("./Scrollbar"));
137
149
  var _Search = _interopRequireWildcard(require("./Search"));
138
150
  var _ValueItem = _interopRequireDefault(require("./ValueItem"));
139
151
  var _TimeFormat = _interopRequireDefault(require("./TimeFormat"));
152
+ var _DragModal = _interopRequireDefault(require("./DragModal"));
153
+ var _EditTable = _interopRequireDefault(require("./EditTable"));
140
154
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
141
155
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -1,3 +1,5 @@
1
1
  @import "../CardSelect/style/index-pure.less";
2
2
  @import "../CheckButton/style/index-pure.less";
3
+ @import "../DragModal/style/index-pure.less";
4
+ @import "../EditTable/style/index-pure.less";
3
5
  @import "../Ellipsis/style/index-pure.less";
@@ -1319,3 +1319,295 @@ textarea.ant-pagination-options-quick-jumper input {
1319
1319
  .j-card-select .j-card-select-item .j-card-select-describe {
1320
1320
  color: #263237;
1321
1321
  }
1322
+ .dialog-enter-active,
1323
+ .dialog-leave-active {
1324
+ transition: opacity 0.5s;
1325
+ }
1326
+ .dialog-enter,
1327
+ .dialog-leave-to {
1328
+ opacity: 0;
1329
+ }
1330
+ .jetlinks-drag-modal {
1331
+ position: fixed;
1332
+ z-index: 1000;
1333
+ }
1334
+ .jetlinks-drag-modal .jetlinks-drag-modal-sprite {
1335
+ position: absolute;
1336
+ width: 100%;
1337
+ height: 100%;
1338
+ display: flex;
1339
+ flex-direction: column;
1340
+ overflow: hidden;
1341
+ z-index: 23456765435;
1342
+ background-color: #ffffff;
1343
+ border-radius: 4px;
1344
+ border: 1px solid #91CAFF;
1345
+ box-shadow: 0 3px 8px 0 rgba(22, 119, 255, 0.24);
1346
+ }
1347
+ .jetlinks-drag-modal .jetlinks-drag-modal-sprite .header {
1348
+ padding: 5px 15px;
1349
+ font-size: 18px;
1350
+ font-weight: 700;
1351
+ color: #333;
1352
+ display: flex;
1353
+ justify-content: space-between;
1354
+ align-items: center;
1355
+ border-bottom: 1px solid #f0f0f0;
1356
+ cursor: move;
1357
+ }
1358
+ .jetlinks-drag-modal .jetlinks-drag-modal-sprite .jetlinks-drag-modal-body {
1359
+ flex: 1;
1360
+ min-height: 0;
1361
+ overflow-y: auto;
1362
+ padding: 24px 20px;
1363
+ }
1364
+ .jetlinks-drag-modal .jetlinks-drag-modal-sprite .jetlinks-drag-modal-footer {
1365
+ border-top: 1px solid #f0f0f0;
1366
+ padding: 5px 15px;
1367
+ }
1368
+ .jetlinks-drag-modal .jetlinks-drag-modal-range {
1369
+ position: absolute;
1370
+ width: 16px;
1371
+ height: 16px;
1372
+ border-radius: 100%;
1373
+ z-index: 23456765436;
1374
+ }
1375
+ .jetlinks-drag-modal .jetlinks-drag-modal-range .drag-bottom-right:hover,
1376
+ .jetlinks-drag-modal .jetlinks-drag-modal-range .drag-top-left:hover {
1377
+ cursor: nwse-resize;
1378
+ }
1379
+ .jetlinks-drag-modal .jetlinks-drag-modal-range .drag-bottom-left:hover,
1380
+ .jetlinks-drag-modal .jetlinks-drag-modal-range .drag-top-right:hover {
1381
+ cursor: nesw-resize;
1382
+ }
1383
+ .jetlinks-drag-modal .jetlinks-drag-modal-range .drag-top-right {
1384
+ top: -6px;
1385
+ right: -6px;
1386
+ }
1387
+ .jetlinks-drag-modal .jetlinks-drag-modal-range .drag-top-left {
1388
+ top: -6px;
1389
+ left: -6px;
1390
+ }
1391
+ .jetlinks-drag-modal .jetlinks-drag-modal-range .drag-bottom-right {
1392
+ bottom: -6px;
1393
+ right: -6px;
1394
+ }
1395
+ .jetlinks-drag-modal .jetlinks-drag-modal-range .drag-bottom-left {
1396
+ bottom: -6px;
1397
+ left: -6px;
1398
+ }
1399
+ .jetlinks-edit-table-wrapper {
1400
+ background: #fff;
1401
+ height: 100%;
1402
+ position: relative;
1403
+ }
1404
+ .jetlinks-edit-table-wrapper.table-full-screen {
1405
+ padding: 24px;
1406
+ }
1407
+ .jetlinks-edit-table-wrapper .jetlinks-edit-table {
1408
+ display: flex;
1409
+ flex-direction: column;
1410
+ flex-grow: 0;
1411
+ flex-shrink: 0;
1412
+ }
1413
+ .jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-edit-table-header {
1414
+ overflow: hidden;
1415
+ width: 100%;
1416
+ position: relative;
1417
+ }
1418
+ .jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-edit-table-header .jetlinks-edit-table-header-scroll-hidden {
1419
+ position: absolute;
1420
+ top: 0;
1421
+ right: 0;
1422
+ bottom: 0;
1423
+ z-index: 5;
1424
+ background: #fafafa;
1425
+ }
1426
+ .jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-edit-table-body {
1427
+ background-color: #fff;
1428
+ overflow-y: hidden;
1429
+ position: relative;
1430
+ height: 100%;
1431
+ width: 100%;
1432
+ flex: 1 1 auto;
1433
+ flex-direction: row;
1434
+ }
1435
+ .jetlinks-edit-table-body-viewport {
1436
+ max-height: 100%;
1437
+ width: 100%;
1438
+ overflow: hidden auto;
1439
+ position: relative;
1440
+ }
1441
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-scrollbar {
1442
+ position: absolute;
1443
+ left: 0;
1444
+ top: 0;
1445
+ right: 0;
1446
+ z-index: -1;
1447
+ }
1448
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-body-container {
1449
+ display: flex;
1450
+ }
1451
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center,
1452
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-left,
1453
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-right {
1454
+ position: relative;
1455
+ min-width: 0;
1456
+ height: 100%;
1457
+ z-index: 5;
1458
+ flex-shrink: 0;
1459
+ flex-grow: 0;
1460
+ }
1461
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row,
1462
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-left .jetlinks-edit-table-row,
1463
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-right .jetlinks-edit-table-row {
1464
+ width: 100%;
1465
+ display: flex;
1466
+ align-items: center;
1467
+ transition: top 0.2s, height 0.2s, background-color 0.1s;
1468
+ border-bottom: 1px solid #ebebeb;
1469
+ background-color: #fff;
1470
+ }
1471
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row.jetlinks-edit-table-row-hover,
1472
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-left .jetlinks-edit-table-row.jetlinks-edit-table-row-hover,
1473
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-right .jetlinks-edit-table-row.jetlinks-edit-table-row-hover {
1474
+ background-color: #f8f8f8;
1475
+ }
1476
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row.jetlinks-edit-table-row-selected,
1477
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-left .jetlinks-edit-table-row.jetlinks-edit-table-row-selected,
1478
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-right .jetlinks-edit-table-row.jetlinks-edit-table-row-selected {
1479
+ background-color: var(--ant-primary-1);
1480
+ }
1481
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row .jetlinks-edit-table-cell,
1482
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-left .jetlinks-edit-table-row .jetlinks-edit-table-cell,
1483
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-right .jetlinks-edit-table-row .jetlinks-edit-table-cell {
1484
+ min-width: 0;
1485
+ }
1486
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row .body-cell-box,
1487
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-left .jetlinks-edit-table-row .body-cell-box,
1488
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-right .jetlinks-edit-table-row .body-cell-box {
1489
+ padding: 0 12px;
1490
+ position: relative;
1491
+ }
1492
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-left {
1493
+ position: sticky;
1494
+ left: 0;
1495
+ }
1496
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-right {
1497
+ position: sticky;
1498
+ right: 0;
1499
+ }
1500
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center {
1501
+ z-index: 1;
1502
+ }
1503
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center > div {
1504
+ position: relative;
1505
+ }
1506
+ .jetlinks-edit-table-body-empty {
1507
+ display: flex;
1508
+ width: 100%;
1509
+ justify-content: center;
1510
+ padding-top: 24px;
1511
+ }
1512
+ .jetlinks-edit-table-header-container {
1513
+ height: 100%;
1514
+ position: relative;
1515
+ display: flex;
1516
+ width: 100%;
1517
+ }
1518
+ .jetlinks-edit-table-header-container .jetlinks-header-left,
1519
+ .jetlinks-edit-table-header-container .jetlinks-header-center,
1520
+ .jetlinks-edit-table-header-container .jetlinks-header-right {
1521
+ position: relative;
1522
+ z-index: 5;
1523
+ min-width: 0;
1524
+ height: 100%;
1525
+ width: 100%;
1526
+ background: #fafafa;
1527
+ }
1528
+ .jetlinks-edit-table-header-container .jetlinks-header-center {
1529
+ z-index: 2;
1530
+ }
1531
+ .jetlinks-edit-table-header-container .jetlinks-header-center > div {
1532
+ position: relative;
1533
+ height: 100%;
1534
+ }
1535
+ .jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell {
1536
+ height: 100%;
1537
+ display: inline-flex;
1538
+ align-items: center;
1539
+ float: left;
1540
+ overflow: visible;
1541
+ background: #fafafa;
1542
+ }
1543
+ .jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box {
1544
+ padding: 0 12px;
1545
+ width: 100%;
1546
+ position: relative;
1547
+ }
1548
+ .jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box.header-cell-box-tool {
1549
+ display: flex;
1550
+ justify-content: space-between;
1551
+ align-items: center;
1552
+ }
1553
+ .jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box .table-header-cell-title {
1554
+ flex: 1;
1555
+ display: flex;
1556
+ align-items: center;
1557
+ font-weight: 600;
1558
+ }
1559
+ .jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box .header-cell-required {
1560
+ color: #ff4d4f;
1561
+ padding-left: 8px;
1562
+ transform: translateY(3px);
1563
+ font-weight: 500;
1564
+ }
1565
+ .jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box::before {
1566
+ position: absolute;
1567
+ top: 50%;
1568
+ right: 1px;
1569
+ width: 1px;
1570
+ height: 1.6em;
1571
+ pointer-events: none;
1572
+ background-color: rgba(0, 0, 0, 0.06);
1573
+ transform: translateY(-50%);
1574
+ transition: background-color 0.3s;
1575
+ content: "";
1576
+ }
1577
+ .jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box:not(:last-child)::before {
1578
+ background-color: transparent;
1579
+ }
1580
+ .edit-table-search-header {
1581
+ display: flex;
1582
+ justify-content: space-between;
1583
+ }
1584
+ .edit-table-search-result-total {
1585
+ color: #1890ff;
1586
+ }
1587
+ .jetlinks-edit-table-horizontal-scroll {
1588
+ height: 17px;
1589
+ min-height: 17px;
1590
+ max-height: 17px;
1591
+ width: 100%;
1592
+ display: flex;
1593
+ position: relative;
1594
+ z-index: 4;
1595
+ }
1596
+ .jetlinks-edit-table-horizontal-scroll .jetlinks-edit-table-horizontal-scroll-viewport {
1597
+ overflow-y: hidden;
1598
+ overflow-x: scroll;
1599
+ position: relative;
1600
+ flex: 1 1 0;
1601
+ height: 17px;
1602
+ min-height: 17px;
1603
+ max-height: 17px;
1604
+ width: 100%;
1605
+ }
1606
+ .jetlinks-edit-table-horizontal-scroll .jetlinks-edit-table-horizontal-scroll-viewport > div {
1607
+ height: 17px;
1608
+ }
1609
+ .jetlinks-edit-table-horizontal-scroll .jetlinks-edit-table-horizontal-scroll-hidden {
1610
+ width: 17px;
1611
+ height: 100%;
1612
+ overflow-x: hidden;
1613
+ }
@@ -1,7 +1,9 @@
1
- @import '../Ellipsis/style/index.less';
2
- @import '../CheckButton/style/index.less';
3
- @import '../ProLayout/style/style.less';
4
- @import '../ProTable/style/ProTable.less';
5
- @import '../Search/style/Search.less';
6
- @import '../Search/style/Item.less';
7
- @import '../CardSelect/style/index.less';
1
+ @import '../Ellipsis/style/index.less';
2
+ @import '../CheckButton/style/index.less';
3
+ @import '../ProLayout/style/style.less';
4
+ @import '../ProTable/style/ProTable.less';
5
+ @import '../Search/style/Search.less';
6
+ @import '../Search/style/Item.less';
7
+ @import '../CardSelect/style/index.less';
8
+ @import '../DragModal/style/index.less';
9
+ @import "../EditTable/style/index.less";
package/lib/style.js CHANGED
@@ -5,4 +5,6 @@ require("./CheckButton/style");
5
5
  require("./ProLayout/style");
6
6
  require("./ProTable/style");
7
7
  require("./Search/style");
8
- require("./CardSelect/style");
8
+ require("./CardSelect/style");
9
+ require("./DragModal/style");
10
+ require("./EditTable/style");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "2.0.37",
3
+ "version": "2.0.38",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -17,8 +17,10 @@
17
17
  "@vuemap/vue-amap": "^2.0.17",
18
18
  "@vueuse/core": "^10.2.1",
19
19
  "@vueuse/router": "^10.9.0",
20
+ "async-validator": "^4.2.5",
20
21
  "echarts": "^5.4.3",
21
22
  "monaco-editor": "^0.40.0",
23
+ "resize-observer-polyfill": "^1.5.1",
22
24
  "sortablejs": "^1.15.2"
23
25
  },
24
26
  "devDependencies": {