@jetlinks-web/components 2.0.32 → 2.0.34

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 (38) hide show
  1. package/es/FullPage/FullPage.js +1 -1
  2. package/es/ProTable/Alert.js +73 -0
  3. package/es/ProTable/Content.js +126 -0
  4. package/es/ProTable/Header.js +73 -0
  5. package/es/ProTable/Pagination.js +46 -0
  6. package/es/ProTable/ProTable.js +310 -0
  7. package/es/ProTable/index.js +1 -410
  8. package/es/ProTable/setting.js +119 -0
  9. package/es/ProTable/style/ProTable.less +120 -0
  10. package/es/ProTable/style/index.js +1 -1
  11. package/es/Search/Advanced/SaveHistory.js +1 -1
  12. package/es/Search/Item.js +1 -1
  13. package/es/Search/Search.js +1 -1
  14. package/es/style/index.css +52 -20
  15. package/es/style/index.less +7 -7
  16. package/lib/FullPage/FullPage.js +1 -1
  17. package/lib/ProTable/Alert.js +73 -0
  18. package/lib/ProTable/Content.js +126 -0
  19. package/lib/ProTable/Header.js +73 -0
  20. package/lib/ProTable/Pagination.js +46 -0
  21. package/lib/ProTable/ProTable.js +310 -0
  22. package/lib/ProTable/index.js +4 -412
  23. package/lib/ProTable/setting.js +126 -0
  24. package/lib/ProTable/style/ProTable.less +120 -0
  25. package/lib/ProTable/style/index.js +1 -1
  26. package/lib/Search/Advanced/SaveHistory.js +1 -1
  27. package/lib/Search/Item.js +1 -1
  28. package/lib/Search/Search.js +1 -1
  29. package/lib/style/components.less +0 -1
  30. package/lib/style/index.css +52 -20
  31. package/lib/style/index.less +7 -7
  32. package/package.json +1 -1
  33. package/es/ProTable/proTableTypes.js +0 -11
  34. package/es/ProTable/style/index.css +0 -69
  35. package/es/ProTable/style/index.less +0 -92
  36. package/lib/ProTable/proTableTypes.js +0 -17
  37. package/lib/ProTable/style/index.css +0 -69
  38. package/lib/ProTable/style/index.less +0 -92
@@ -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-1716194139153"), n = n(), _popScopeId(), n);
24
+ const _withScopeId = n => (_pushScopeId("data-v-1716533072100"), 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-1716194138654"), n = n(), _popScopeId(), n);
81
+ const _withScopeId = n => (_pushScopeId("data-v-1716533071207"), 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-1716194138789"), n = n(), _popScopeId(), n);
39
+ const _withScopeId = n => (_pushScopeId("data-v-1716533071302"), 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';
@@ -1,4 +1,3 @@
1
1
  @import "../CardSelect/style/index-pure.less";
2
2
  @import "../CheckButton/style/index-pure.less";
3
3
  @import "../Ellipsis/style/index-pure.less";
4
- @import "../ProTable/style/index-pure.less";
@@ -489,9 +489,8 @@
489
489
  color: unset;
490
490
  }
491
491
  .jtable-body-spin {
492
- min-height: 100%;
492
+ height: 100%;
493
493
  width: 100%;
494
- padding: 16px 24px 24px;
495
494
  background-color: #fff;
496
495
  }
497
496
  .jtable-body-spin .ant-spin-nested-loading {
@@ -507,51 +506,84 @@
507
506
  display: flex;
508
507
  flex-direction: column;
509
508
  }
510
- .jtable-body-spin .jtable-body .jtable-body-header {
509
+ .jtable-body-header {
511
510
  display: flex;
512
511
  justify-content: space-between;
513
512
  align-items: center;
513
+ margin-bottom: 16px;
514
+ width: 100%;
515
+ gap: 8px;
514
516
  }
515
- .jtable-body-spin .jtable-body .jtable-body-header .jtable-body-header-right {
517
+ .jtable-body-header .jtable-body-header-left {
518
+ flex: 1;
519
+ min-width: 0;
520
+ }
521
+ .jtable-body-header .jtable-body-header-right {
516
522
  display: flex;
517
523
  gap: 8px;
518
524
  align-items: center;
519
525
  }
520
- .jtable-body-spin .jtable-body .jtable-body-header .jtable-body-header-right .jtable-body-header-right-button .right-button-icon {
526
+ .jtable-body-header .jtable-body-header-right .jtable-body-header-right-button {
527
+ width: 62px;
528
+ }
529
+ .jtable-body-header .jtable-body-header-right .jtable-body-header-right-button .right-button-icon {
521
530
  font-size: 16px;
522
531
  color: #d9d9d9;
523
532
  }
524
- .jtable-body-spin .jtable-body .jtable-body-header .jtable-body-header-right .jtable-body-header-right-button .ant-radio-button-wrapper {
533
+ .jtable-body-header .jtable-body-header-right .jtable-body-header-right-button .ant-radio-button-wrapper {
525
534
  padding: 0 8px;
526
535
  }
527
- .jtable-body-spin .jtable-body .jtable-body-header .jtable-body-header-right .jtable-body-header-right-button .ant-radio-button-wrapper-checked .right-button-icon {
536
+ .jtable-body-header .jtable-body-header-right .jtable-body-header-right-button :deep(.ant-radio-button-wrapper-checked) {
528
537
  color: #1890ff;
529
538
  }
530
- .jtable-body-spin .jtable-body .jtable-content {
539
+ .jtable-box {
531
540
  flex: 1;
532
- padding: 16px 0;
541
+ min-height: 0;
533
542
  }
534
- .jtable-body-spin .jtable-body .jtable-content .jtable-alert {
535
- margin-bottom: 16px;
543
+ .jtable-box .jtable-card {
544
+ height: 100%;
545
+ overflow-y: auto;
536
546
  }
537
- .jtable-body-spin .jtable-body .jtable-content .jtable-card .jtable-card-items {
547
+ .jtable-box .jtable-card .jtable-card-items {
538
548
  display: grid;
539
549
  grid-gap: 26px;
540
550
  }
541
- .jtable-body-spin .jtable-body .jtable-content .jtable-card .jtable-card-items .jtable-card-item {
551
+ .jtable-box .jtable-card .jtable-card-items .jtable-card-item {
542
552
  display: flex;
543
553
  min-width: 0;
544
554
  }
545
- .jtable-body-spin .jtable-body .jtable-pagination {
546
- width: 100%;
555
+ .jtable-box .ant-table-wrapper {
556
+ height: 100%;
557
+ }
558
+ .jtable-box .ant-table-wrapper .ant-table {
559
+ height: 100%;
560
+ }
561
+ .jtable-box .ant-table-wrapper .ant-table .ant-table-container {
562
+ height: 100%;
563
+ }
564
+ .jtable-box .ant-table-wrapper .ant-table .ant-table-container .ant-table-content {
565
+ height: 100%;
566
+ }
567
+ .jtable-box .j-table-scroll {
568
+ background-color: red;
569
+ }
570
+ .jtable-box .j-table-scroll .ant-table-container {
547
571
  display: flex;
548
- justify-content: flex-end;
572
+ flex-direction: column;
549
573
  }
550
- .jtable-body-spin .jtable-body .j-table-empty {
574
+ .jtable-box .j-table-scroll .ant-table-container .ant-table-body {
575
+ flex: 1;
576
+ min-height: 0;
577
+ overflow-y: auto;
578
+ }
579
+ .jtable-alert {
580
+ margin-bottom: 16px;
581
+ }
582
+ .jtable-pagination {
583
+ width: 100%;
551
584
  display: flex;
552
- justify-content: center;
553
- align-items: center;
554
- margin: 10% 0;
585
+ justify-content: flex-end;
586
+ margin-top: 16px;
555
587
  }
556
588
  .JSearch-warp {
557
589
  padding: 24px;
@@ -1,7 +1,7 @@
1
- @import '../Ellipsis/style/index.less';
2
- @import '../CheckButton/style/index.less';
3
- @import '../ProLayout/style/style.less';
4
- @import '../ProTable/style/index.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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "2.0.32",
3
+ "version": "2.0.34",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -1,11 +0,0 @@
1
- import 'vue';
2
- export var TypeEnum;
3
- (function (TypeEnum) {
4
- TypeEnum["TREE"] = "TREE";
5
- TypeEnum["PAGE"] = "PAGE";
6
- })(TypeEnum || (TypeEnum = {}));
7
- export var ModelEnum;
8
- (function (ModelEnum) {
9
- ModelEnum["TABLE"] = "TABLE";
10
- ModelEnum["CARD"] = "CARD";
11
- })(ModelEnum || (ModelEnum = {}));
@@ -1,69 +0,0 @@
1
- /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2
- /* stylelint-disable no-duplicate-selectors */
3
- /* stylelint-disable */
4
- /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5
- .jtable-body-spin {
6
- min-height: 100%;
7
- width: 100%;
8
- padding: 16px 24px 24px;
9
- background-color: #fff;
10
- }
11
- .jtable-body-spin .ant-spin-nested-loading {
12
- height: 100%;
13
- }
14
- .jtable-body-spin .ant-spin-nested-loading .ant-spin-container {
15
- height: 100%;
16
- }
17
- .jtable-body-spin .jtable-body {
18
- width: 100%;
19
- box-sizing: border-box;
20
- height: 100%;
21
- display: flex;
22
- flex-direction: column;
23
- }
24
- .jtable-body-spin .jtable-body .jtable-body-header {
25
- display: flex;
26
- justify-content: space-between;
27
- align-items: center;
28
- }
29
- .jtable-body-spin .jtable-body .jtable-body-header .jtable-body-header-right {
30
- display: flex;
31
- gap: 8px;
32
- align-items: center;
33
- }
34
- .jtable-body-spin .jtable-body .jtable-body-header .jtable-body-header-right .jtable-body-header-right-button .right-button-icon {
35
- font-size: 16px;
36
- color: #d9d9d9;
37
- }
38
- .jtable-body-spin .jtable-body .jtable-body-header .jtable-body-header-right .jtable-body-header-right-button .ant-radio-button-wrapper {
39
- padding: 0 8px;
40
- }
41
- .jtable-body-spin .jtable-body .jtable-body-header .jtable-body-header-right .jtable-body-header-right-button .ant-radio-button-wrapper-checked .right-button-icon {
42
- color: #1890ff;
43
- }
44
- .jtable-body-spin .jtable-body .jtable-content {
45
- flex: 1;
46
- padding: 16px 0;
47
- }
48
- .jtable-body-spin .jtable-body .jtable-content .jtable-alert {
49
- margin-bottom: 16px;
50
- }
51
- .jtable-body-spin .jtable-body .jtable-content .jtable-card .jtable-card-items {
52
- display: grid;
53
- grid-gap: 26px;
54
- }
55
- .jtable-body-spin .jtable-body .jtable-content .jtable-card .jtable-card-items .jtable-card-item {
56
- display: flex;
57
- min-width: 0;
58
- }
59
- .jtable-body-spin .jtable-body .jtable-pagination {
60
- width: 100%;
61
- display: flex;
62
- justify-content: flex-end;
63
- }
64
- .jtable-body-spin .jtable-body .j-table-empty {
65
- display: flex;
66
- justify-content: center;
67
- align-items: center;
68
- margin: 10% 0;
69
- }
@@ -1,92 +0,0 @@
1
- @import '../../style/variable.less';
2
- //@import 'ant-design-vue/es/style/themes/variable.less';
3
-
4
- .jtable-body-spin {
5
- min-height: 100%;
6
- width: 100%;
7
- padding: 16px 24px 24px;
8
- background-color: #fff;
9
-
10
- .ant-spin-nested-loading {
11
- height: 100%;
12
- .ant-spin-container {
13
- height: 100%;
14
- }
15
- }
16
-
17
- .jtable-body {
18
- width: 100%;
19
- box-sizing: border-box;
20
- height: 100%;
21
- display: flex;
22
- flex-direction: column;
23
-
24
- .jtable-body-header {
25
- display: flex;
26
- justify-content: space-between;
27
- align-items: center;
28
-
29
- .jtable-body-header-right {
30
- display: flex;
31
- gap: 8px;
32
- align-items: center;
33
-
34
- .jtable-body-header-right-button {
35
- .right-button-icon {
36
- font-size: 16px;
37
- color: #d9d9d9;
38
- }
39
-
40
- .ant-radio-button-wrapper {
41
- padding: 0 8px;
42
- }
43
-
44
- .ant-radio-button-wrapper-checked {
45
- .right-button-icon {
46
- color: @primary-color;
47
- }
48
- }
49
- }
50
- }
51
- }
52
-
53
- .jtable-content {
54
- flex: 1;
55
- padding: 16px 0;
56
-
57
- .jtable-alert {
58
- margin-bottom: 16px;
59
- }
60
-
61
- .jtable-card {
62
- .jtable-card-items {
63
- display: grid;
64
- grid-gap: 26px;
65
-
66
- .jtable-card-item {
67
- display: flex;
68
- min-width: 0;
69
- }
70
- }
71
- }
72
- }
73
-
74
- .jtable-pagination {
75
- // position: absolute;
76
- // background-color: white;
77
- // padding: 10px 0;
78
- // right: 0;
79
- // bottom: 0;
80
- width: 100%;
81
- display: flex;
82
- justify-content: flex-end;
83
- }
84
-
85
- .j-table-empty {
86
- display: flex;
87
- justify-content: center;
88
- align-items: center;
89
- margin: 10% 0;
90
- }
91
- }
92
- }
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.TypeEnum = exports.ModelEnum = void 0;
7
- require("vue");
8
- var TypeEnum;
9
- (function (TypeEnum) {
10
- TypeEnum["TREE"] = "TREE";
11
- TypeEnum["PAGE"] = "PAGE";
12
- })(TypeEnum || (exports.TypeEnum = TypeEnum = {}));
13
- var ModelEnum;
14
- (function (ModelEnum) {
15
- ModelEnum["TABLE"] = "TABLE";
16
- ModelEnum["CARD"] = "CARD";
17
- })(ModelEnum || (exports.ModelEnum = ModelEnum = {}));
@@ -1,69 +0,0 @@
1
- /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2
- /* stylelint-disable no-duplicate-selectors */
3
- /* stylelint-disable */
4
- /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5
- .jtable-body-spin {
6
- min-height: 100%;
7
- width: 100%;
8
- padding: 16px 24px 24px;
9
- background-color: #fff;
10
- }
11
- .jtable-body-spin .ant-spin-nested-loading {
12
- height: 100%;
13
- }
14
- .jtable-body-spin .ant-spin-nested-loading .ant-spin-container {
15
- height: 100%;
16
- }
17
- .jtable-body-spin .jtable-body {
18
- width: 100%;
19
- box-sizing: border-box;
20
- height: 100%;
21
- display: flex;
22
- flex-direction: column;
23
- }
24
- .jtable-body-spin .jtable-body .jtable-body-header {
25
- display: flex;
26
- justify-content: space-between;
27
- align-items: center;
28
- }
29
- .jtable-body-spin .jtable-body .jtable-body-header .jtable-body-header-right {
30
- display: flex;
31
- gap: 8px;
32
- align-items: center;
33
- }
34
- .jtable-body-spin .jtable-body .jtable-body-header .jtable-body-header-right .jtable-body-header-right-button .right-button-icon {
35
- font-size: 16px;
36
- color: #d9d9d9;
37
- }
38
- .jtable-body-spin .jtable-body .jtable-body-header .jtable-body-header-right .jtable-body-header-right-button .ant-radio-button-wrapper {
39
- padding: 0 8px;
40
- }
41
- .jtable-body-spin .jtable-body .jtable-body-header .jtable-body-header-right .jtable-body-header-right-button .ant-radio-button-wrapper-checked .right-button-icon {
42
- color: #1890ff;
43
- }
44
- .jtable-body-spin .jtable-body .jtable-content {
45
- flex: 1;
46
- padding: 16px 0;
47
- }
48
- .jtable-body-spin .jtable-body .jtable-content .jtable-alert {
49
- margin-bottom: 16px;
50
- }
51
- .jtable-body-spin .jtable-body .jtable-content .jtable-card .jtable-card-items {
52
- display: grid;
53
- grid-gap: 26px;
54
- }
55
- .jtable-body-spin .jtable-body .jtable-content .jtable-card .jtable-card-items .jtable-card-item {
56
- display: flex;
57
- min-width: 0;
58
- }
59
- .jtable-body-spin .jtable-body .jtable-pagination {
60
- width: 100%;
61
- display: flex;
62
- justify-content: flex-end;
63
- }
64
- .jtable-body-spin .jtable-body .j-table-empty {
65
- display: flex;
66
- justify-content: center;
67
- align-items: center;
68
- margin: 10% 0;
69
- }
@@ -1,92 +0,0 @@
1
- @import '../../style/variable.less';
2
- //@import 'ant-design-vue/es/style/themes/variable.less';
3
-
4
- .jtable-body-spin {
5
- min-height: 100%;
6
- width: 100%;
7
- padding: 16px 24px 24px;
8
- background-color: #fff;
9
-
10
- .ant-spin-nested-loading {
11
- height: 100%;
12
- .ant-spin-container {
13
- height: 100%;
14
- }
15
- }
16
-
17
- .jtable-body {
18
- width: 100%;
19
- box-sizing: border-box;
20
- height: 100%;
21
- display: flex;
22
- flex-direction: column;
23
-
24
- .jtable-body-header {
25
- display: flex;
26
- justify-content: space-between;
27
- align-items: center;
28
-
29
- .jtable-body-header-right {
30
- display: flex;
31
- gap: 8px;
32
- align-items: center;
33
-
34
- .jtable-body-header-right-button {
35
- .right-button-icon {
36
- font-size: 16px;
37
- color: #d9d9d9;
38
- }
39
-
40
- .ant-radio-button-wrapper {
41
- padding: 0 8px;
42
- }
43
-
44
- .ant-radio-button-wrapper-checked {
45
- .right-button-icon {
46
- color: @primary-color;
47
- }
48
- }
49
- }
50
- }
51
- }
52
-
53
- .jtable-content {
54
- flex: 1;
55
- padding: 16px 0;
56
-
57
- .jtable-alert {
58
- margin-bottom: 16px;
59
- }
60
-
61
- .jtable-card {
62
- .jtable-card-items {
63
- display: grid;
64
- grid-gap: 26px;
65
-
66
- .jtable-card-item {
67
- display: flex;
68
- min-width: 0;
69
- }
70
- }
71
- }
72
- }
73
-
74
- .jtable-pagination {
75
- // position: absolute;
76
- // background-color: white;
77
- // padding: 10px 0;
78
- // right: 0;
79
- // bottom: 0;
80
- width: 100%;
81
- display: flex;
82
- justify-content: flex-end;
83
- }
84
-
85
- .j-table-empty {
86
- display: flex;
87
- justify-content: center;
88
- align-items: center;
89
- margin: 10% 0;
90
- }
91
- }
92
- }