@jetlinks-web/components 2.7.1 → 2.7.2

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 (169) hide show
  1. package/es/AMap/Map.js +2 -1
  2. package/es/AutoComplete/AutoComplete.js +1 -0
  3. package/es/BadgeStatus/Badge.js +2 -1
  4. package/es/CardSelect/CardSelect.js +2 -1
  5. package/es/CardSelect/style/index.css +24 -0
  6. package/es/CardSelect/style/index.less +26 -0
  7. package/es/CheckButton/CheckButton.js +2 -1
  8. package/es/CheckButton/style/index.css +37 -0
  9. package/es/CheckButton/style/index.less +40 -0
  10. package/es/DragModal/DragModal.js +1 -0
  11. package/es/DragModal/style/index.css +82 -0
  12. package/es/DragModal/style/index.less +97 -0
  13. package/es/Echarts/Echarts.js +2 -1
  14. package/es/EditTable/EditTable.js +6 -4
  15. package/es/EditTable/FormItem.js +1 -0
  16. package/es/EditTable/Header.js +3 -5
  17. package/es/EditTable/components/ContextMenu/Menu.js +2 -1
  18. package/es/EditTable/components/Search/search.js +2 -1
  19. package/es/EditTable/components/Search/sort.js +3 -1
  20. package/es/EditTable/group.js +10 -7
  21. package/es/EditTable/hooks/useValidate.js +1 -1
  22. package/es/EditTable/style/body.less +66 -0
  23. package/es/EditTable/style/form.less +33 -0
  24. package/es/EditTable/style/group.less +32 -0
  25. package/es/EditTable/style/header.less +77 -0
  26. package/es/EditTable/style/index.css +267 -0
  27. package/es/EditTable/style/index.less +41 -0
  28. package/es/EditTable/style/menu.less +25 -0
  29. package/es/EditTable/style/table.less +47 -0
  30. package/es/EditTable/utils.js +1 -1
  31. package/es/Ellipsis/style/index.css +17 -0
  32. package/es/Ellipsis/style/index.less +20 -0
  33. package/es/FullPage/FullPage.js +2 -1
  34. package/es/LocaleProvider/index.js +2 -1
  35. package/es/MonacoEditor/style/index.css +4 -0
  36. package/es/MonacoEditor/style/index.less +4 -0
  37. package/es/PermissionButton/index.js +7 -6
  38. package/es/ProLayout/Basic/BasicLayout.js +39 -34
  39. package/es/ProLayout/Basic/BasicLayout.less +66 -0
  40. package/es/ProLayout/Basic/Header.js +7 -3
  41. package/es/ProLayout/Basic/Header.less +8 -0
  42. package/es/ProLayout/PageContainer/index.js +12 -8
  43. package/es/ProLayout/PageContainer/index.less +103 -0
  44. package/es/ProLayout/SiderMenu/BaseMenu.js +39 -16
  45. package/es/ProLayout/SiderMenu/SiderMenu.js +34 -14
  46. package/es/ProLayout/SiderMenu/index.less +231 -0
  47. package/es/ProLayout/TopHeader/index.js +9 -1
  48. package/es/ProLayout/TopHeader/index.less +174 -0
  49. package/es/ProLayout/style/default.less +4 -0
  50. package/es/ProLayout/style/style.less +7 -0
  51. package/es/ProLayout/util.js +5 -5
  52. package/es/ProTable/Content.js +2 -2
  53. package/es/ProTable/style/ProTable.less +141 -0
  54. package/es/RadioButton/RadioButton.js +1 -0
  55. package/es/RadioButton/style/index.css +20 -0
  56. package/es/RadioButton/style/index.less +19 -0
  57. package/es/Scrollbar/style/index.css +65 -0
  58. package/es/Scrollbar/style/index.less +83 -0
  59. package/es/Search/Advanced/SaveHistory.js +2 -1
  60. package/es/Search/Item.js +2 -1
  61. package/es/Search/style/Item.less +33 -0
  62. package/es/Search/style/Search.less +179 -0
  63. package/es/Title/style/index.css +23 -0
  64. package/es/Title/style/index.less +25 -0
  65. package/es/Title/title.js +1 -0
  66. package/es/style/index.css +5197 -0
  67. package/es/style/index.less +13 -13
  68. package/es/style/variable.css +4 -0
  69. package/es/style/variable.less +4 -0
  70. package/lib/AMap/Map.js +2 -1
  71. package/lib/AutoComplete/AutoComplete.js +1 -0
  72. package/lib/BadgeStatus/Badge.js +2 -1
  73. package/lib/CardSelect/CardSelect.js +2 -1
  74. package/lib/CardSelect/style/index.css +24 -0
  75. package/lib/CardSelect/style/index.less +26 -0
  76. package/lib/CheckButton/CheckButton.js +2 -1
  77. package/lib/CheckButton/style/index.css +37 -0
  78. package/lib/CheckButton/style/index.less +40 -0
  79. package/lib/DragModal/DragModal.js +1 -0
  80. package/lib/DragModal/style/index.css +82 -0
  81. package/lib/DragModal/style/index.less +97 -0
  82. package/lib/Echarts/Echarts.js +2 -1
  83. package/lib/EditTable/EditTable.js +6 -4
  84. package/lib/EditTable/FormItem.js +1 -0
  85. package/lib/EditTable/Header.js +3 -5
  86. package/lib/EditTable/components/ContextMenu/Menu.js +2 -1
  87. package/lib/EditTable/components/Search/search.js +2 -1
  88. package/lib/EditTable/components/Search/sort.js +3 -1
  89. package/lib/EditTable/group.js +10 -7
  90. package/lib/EditTable/hooks/useValidate.js +1 -1
  91. package/lib/EditTable/style/body.less +66 -0
  92. package/lib/EditTable/style/form.less +33 -0
  93. package/lib/EditTable/style/group.less +32 -0
  94. package/lib/EditTable/style/header.less +77 -0
  95. package/lib/EditTable/style/index.css +267 -0
  96. package/lib/EditTable/style/index.less +41 -0
  97. package/lib/EditTable/style/menu.less +25 -0
  98. package/lib/EditTable/style/table.less +47 -0
  99. package/lib/EditTable/utils.js +1 -1
  100. package/lib/Ellipsis/style/index.css +17 -0
  101. package/lib/Ellipsis/style/index.less +20 -0
  102. package/lib/FullPage/FullPage.js +2 -1
  103. package/lib/Icon/icon.js +2 -1
  104. package/lib/LocaleProvider/index.js +2 -1
  105. package/lib/MonacoEditor/style/index.css +4 -0
  106. package/lib/MonacoEditor/style/index.less +4 -0
  107. package/lib/PermissionButton/index.js +7 -6
  108. package/lib/ProLayout/Basic/BasicLayout.js +40 -34
  109. package/lib/ProLayout/Basic/BasicLayout.less +66 -0
  110. package/lib/ProLayout/Basic/Header.js +6 -2
  111. package/lib/ProLayout/Basic/Header.less +8 -0
  112. package/lib/ProLayout/PageContainer/index.js +11 -7
  113. package/lib/ProLayout/PageContainer/index.less +103 -0
  114. package/lib/ProLayout/SiderMenu/BaseMenu.js +39 -17
  115. package/lib/ProLayout/SiderMenu/SiderMenu.js +35 -14
  116. package/lib/ProLayout/SiderMenu/index.less +231 -0
  117. package/lib/ProLayout/TopHeader/index.js +9 -2
  118. package/lib/ProLayout/TopHeader/index.less +174 -0
  119. package/lib/ProLayout/style/default.less +4 -0
  120. package/lib/ProLayout/style/style.less +7 -0
  121. package/lib/ProLayout/util.js +5 -5
  122. package/lib/ProTable/Content.js +2 -2
  123. package/lib/ProTable/style/ProTable.less +141 -0
  124. package/lib/RadioButton/RadioButton.js +1 -0
  125. package/lib/RadioButton/style/index.css +20 -0
  126. package/lib/RadioButton/style/index.less +19 -0
  127. package/lib/Scrollbar/style/index.css +65 -0
  128. package/lib/Scrollbar/style/index.less +83 -0
  129. package/lib/Search/Advanced/SaveHistory.js +2 -1
  130. package/lib/Search/Item.js +2 -1
  131. package/lib/Search/style/Item.less +33 -0
  132. package/lib/Search/style/Search.less +179 -0
  133. package/lib/Title/style/index.css +23 -0
  134. package/lib/Title/style/index.less +25 -0
  135. package/lib/Title/title.js +1 -0
  136. package/lib/components.js +2 -1
  137. package/lib/index.js +2 -1
  138. package/lib/style/components.less +9 -0
  139. package/lib/style/index.css +5197 -0
  140. package/lib/style/index.less +13 -13
  141. package/lib/style/variable.css +4 -0
  142. package/lib/style/variable.less +4 -0
  143. package/package.json +171 -171
  144. package/es/CardSelect/style/css.js +0 -1
  145. package/es/CheckButton/style/css.js +0 -1
  146. package/es/DragModal/style/css.js +0 -1
  147. package/es/EditTable/style/css.js +0 -1
  148. package/es/Ellipsis/style/css.js +0 -1
  149. package/es/MonacoEditor/style/css.js +0 -1
  150. package/es/ProLayout/style/css.js +0 -1
  151. package/es/ProTable/style/css.js +0 -1
  152. package/es/RadioButton/style/css.js +0 -1
  153. package/es/Scrollbar/style/css.js +0 -1
  154. package/es/Search/style/css.js +0 -2
  155. package/es/Title/style/css.js +0 -1
  156. package/es/style/css.js +0 -3
  157. package/lib/CardSelect/style/css.js +0 -3
  158. package/lib/CheckButton/style/css.js +0 -3
  159. package/lib/DragModal/style/css.js +0 -3
  160. package/lib/EditTable/style/css.js +0 -3
  161. package/lib/Ellipsis/style/css.js +0 -3
  162. package/lib/MonacoEditor/style/css.js +0 -3
  163. package/lib/ProLayout/style/css.js +0 -3
  164. package/lib/ProTable/style/css.js +0 -3
  165. package/lib/RadioButton/style/css.js +0 -3
  166. package/lib/Scrollbar/style/css.js +0 -3
  167. package/lib/Search/style/css.js +0 -4
  168. package/lib/Title/style/css.js +0 -3
  169. package/lib/style/css.js +0 -4
@@ -0,0 +1,66 @@
1
+ .jetlinks-edit-table-body-viewport {
2
+ max-height: 100%;
3
+ width: 100%;
4
+ overflow: hidden auto;
5
+ position: relative;
6
+
7
+ .jetlinks-edit-scrollbar {
8
+ position: absolute;
9
+ left: 0;
10
+ top: 0;
11
+ right: 0;
12
+ z-index: -1;
13
+ }
14
+
15
+ .jetlinks-edit-table-body-container {
16
+ overflow: hidden;
17
+ height: 100%;
18
+ }
19
+
20
+ .jetlinks-edit-table-center {
21
+ position: relative;
22
+ flex: 1 1 auto;
23
+ min-width: 0;
24
+ height: 100%;
25
+
26
+ .jetlinks-edit-table-row {
27
+ width: 100%;
28
+ display: flex;
29
+ align-items: center;
30
+ transition: top .2s, height .2s, background-color .1s;
31
+ border-bottom: 1px solid #ebebeb;
32
+ .jetlinks-edit-table-cell{
33
+ position:absolute;
34
+ min-width: 0;;
35
+ }
36
+
37
+ &:hover {
38
+ background-color: rgb(248, 248, 248);
39
+ }
40
+
41
+ &.jetlinks-edit-table-row-selected {
42
+ background-color: var(--ant-primary-1);
43
+ }
44
+
45
+ .body-cell-box {
46
+ padding: 0 12px;
47
+ position: relative;
48
+ }
49
+ }
50
+
51
+ .readonly-mask {
52
+ position: absolute;
53
+ top: 0;
54
+ left: 0;
55
+ right: 0;
56
+ bottom: 0;
57
+ z-index: 4;
58
+ }
59
+ }
60
+ }
61
+ .jetlinks-edit-table-body-empty {
62
+ display: flex;
63
+ width: 100%;
64
+ justify-content: center;
65
+ padding-top: 24px;
66
+ }
@@ -0,0 +1,33 @@
1
+ .jetlinks-table-form-error-target {
2
+ position: absolute;
3
+ right: 2px;
4
+ top: -9px;
5
+ border: 16px solid transparent;
6
+ border-top-color: @error-color;
7
+ border-right-width: 0;
8
+ border-bottom-width: 0;
9
+ }
10
+
11
+ .jetlinks-edit-table-form-has-error {
12
+
13
+ .select-no-value {
14
+ .ant-select-selector {
15
+ border-color: @error-color !important;
16
+ &:focus {
17
+ box-shadow: 0 0 0 2px var(--ant-error-color-outline) !important;
18
+ }
19
+ }
20
+ }
21
+
22
+ > input {
23
+ border-color: @error-color !important;
24
+
25
+ &:focus {
26
+ box-shadow: 0 0 0 2px var(--ant-error-color-outline) !important;
27
+ }
28
+ }
29
+
30
+ .jetlinks-table-form-required-aicon {
31
+ color: @error-color;
32
+ }
33
+ }
@@ -0,0 +1,32 @@
1
+ .jetlinks-table-group-warp {
2
+ .ant-tabs-nav {
3
+ margin-bottom: 0;
4
+ .ant-tabs-tab {
5
+ overflow: hidden;
6
+ position: relative;
7
+ }
8
+ .ant-tabs-tab-active {
9
+ background-color: #BAE0FF !important;
10
+ border-color: #91CAFF !important;
11
+
12
+ }
13
+
14
+ .ant-tabs-nav-add {
15
+ border: none;
16
+ }
17
+ }
18
+ }
19
+
20
+ .jetlinks-table-group-error-warp {
21
+ color: #1a1a1a !important;
22
+
23
+ .table-group-error-target {
24
+ position: absolute;
25
+ right: 0;
26
+ top: 0;
27
+ border: 16px solid transparent;
28
+ border-top-color: @error-color;
29
+ border-right-width: 0;
30
+ border-bottom-width: 0;
31
+ }
32
+ }
@@ -0,0 +1,77 @@
1
+ .jetlinks-edit-table-header-container {
2
+ height: 100%;
3
+ position: relative;
4
+
5
+ .jetlinks-edit-table-header-cell {
6
+ height: 100%;
7
+ display: inline-flex;
8
+ align-items: center;
9
+ float: left;
10
+ overflow: visible;
11
+ position: absolute;
12
+ top: 0;
13
+
14
+ .jetlinks-edit-table-header-cell-box {
15
+ padding: 0 12px;
16
+ width: 100%;
17
+
18
+ &.header-cell-box-tool {
19
+ display: flex;
20
+ justify-content: space-between;
21
+ align-items: center;
22
+ }
23
+
24
+ .table-header-cell-title {
25
+ flex: 1;
26
+ display: flex;
27
+ align-items: center;
28
+ font-weight: 600;
29
+ gap: 4px;
30
+
31
+ .cell-title-box {
32
+ flex: 1 1 auto;
33
+ }
34
+ }
35
+
36
+ .header-cell-required {
37
+ color: @error-color;
38
+ padding-left: 8px;
39
+ transform: translateY(3px);
40
+ font-weight: 500;
41
+ }
42
+
43
+ &::before {
44
+ position: absolute;
45
+ top: 50%;
46
+ right: 1px;
47
+ width: 1px;
48
+ height: 1.6em;
49
+ pointer-events: none;
50
+ background-color: rgba(0,0,0,.06);
51
+ transform: translateY(-50%);
52
+ transition: background-color .3s;
53
+ content: "";
54
+ }
55
+
56
+ &:not(:last-child) {
57
+ &::before {
58
+ background-color: transparent;
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+
65
+ .jetlinks-table-search {
66
+ .jetlinks-table-search-header {
67
+ display: flex;
68
+ justify-content: space-between;
69
+ .jetlinks-drag-modal-footer {
70
+ display: none;
71
+ }
72
+
73
+ .jetlinks-table-search-result-total {
74
+ color: @primary-color;
75
+ }
76
+ }
77
+ }
@@ -0,0 +1,267 @@
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
+ .jetlinks-edit-table-wrapper {
6
+ background: #fff;
7
+ height: 100%;
8
+ position: relative;
9
+ }
10
+ .jetlinks-edit-table-wrapper.table-full-screen {
11
+ padding: 24px;
12
+ }
13
+ .jetlinks-edit-table-wrapper .jetlinks-edit-table {
14
+ display: flex;
15
+ flex-direction: column;
16
+ flex-grow: 0;
17
+ flex-shrink: 0;
18
+ background: #fafafa;
19
+ transition: background-color 0.3s ease;
20
+ overflow: auto hidden;
21
+ }
22
+ .jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-edit-table-header {
23
+ overflow: hidden;
24
+ width: 100%;
25
+ }
26
+ .jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-edit-table-body {
27
+ background-color: #fff;
28
+ overflow-y: hidden;
29
+ position: relative;
30
+ height: 100%;
31
+ width: 100%;
32
+ flex: 1 1 auto;
33
+ flex-direction: row;
34
+ }
35
+ .jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-table-horizontal-scroll {
36
+ width: 100%;
37
+ height: 15px;
38
+ min-height: 15px;
39
+ max-height: 15px;
40
+ display: flex;
41
+ }
42
+ .jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-table-horizontal-scroll .jetlinks-table-horizontal-scroll-bar {
43
+ height: 100%;
44
+ overflow-x: scroll;
45
+ }
46
+ .jetlinks-edit-table-body-viewport {
47
+ max-height: 100%;
48
+ width: 100%;
49
+ overflow: hidden auto;
50
+ position: relative;
51
+ }
52
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-scrollbar {
53
+ position: absolute;
54
+ left: 0;
55
+ top: 0;
56
+ right: 0;
57
+ z-index: -1;
58
+ }
59
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-body-container {
60
+ overflow: hidden;
61
+ height: 100%;
62
+ }
63
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center {
64
+ position: relative;
65
+ flex: 1 1 auto;
66
+ min-width: 0;
67
+ height: 100%;
68
+ }
69
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row {
70
+ width: 100%;
71
+ display: flex;
72
+ align-items: center;
73
+ transition: top 0.2s, height 0.2s, background-color 0.1s;
74
+ border-bottom: 1px solid #ebebeb;
75
+ }
76
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row .jetlinks-edit-table-cell {
77
+ position: absolute;
78
+ min-width: 0;
79
+ }
80
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row:hover {
81
+ background-color: #f8f8f8;
82
+ }
83
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row.jetlinks-edit-table-row-selected {
84
+ background-color: var(--ant-primary-1);
85
+ }
86
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row .body-cell-box {
87
+ padding: 0 12px;
88
+ position: relative;
89
+ }
90
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .readonly-mask {
91
+ position: absolute;
92
+ top: 0;
93
+ left: 0;
94
+ right: 0;
95
+ bottom: 0;
96
+ z-index: 4;
97
+ }
98
+ .jetlinks-edit-table-body-empty {
99
+ display: flex;
100
+ width: 100%;
101
+ justify-content: center;
102
+ padding-top: 24px;
103
+ }
104
+ .jetlinks-edit-table-header-container {
105
+ height: 100%;
106
+ position: relative;
107
+ }
108
+ .jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell {
109
+ height: 100%;
110
+ display: inline-flex;
111
+ align-items: center;
112
+ float: left;
113
+ overflow: visible;
114
+ position: absolute;
115
+ top: 0;
116
+ }
117
+ .jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box {
118
+ padding: 0 12px;
119
+ width: 100%;
120
+ }
121
+ .jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box.header-cell-box-tool {
122
+ display: flex;
123
+ justify-content: space-between;
124
+ align-items: center;
125
+ }
126
+ .jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box .table-header-cell-title {
127
+ flex: 1;
128
+ display: flex;
129
+ align-items: center;
130
+ font-weight: 600;
131
+ gap: 4px;
132
+ }
133
+ .jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box .table-header-cell-title .cell-title-box {
134
+ flex: 1 1 auto;
135
+ }
136
+ .jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box .header-cell-required {
137
+ color: #ff4d4f;
138
+ padding-left: 8px;
139
+ transform: translateY(3px);
140
+ font-weight: 500;
141
+ }
142
+ .jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box::before {
143
+ position: absolute;
144
+ top: 50%;
145
+ right: 1px;
146
+ width: 1px;
147
+ height: 1.6em;
148
+ pointer-events: none;
149
+ background-color: rgba(0, 0, 0, 0.06);
150
+ transform: translateY(-50%);
151
+ transition: background-color 0.3s;
152
+ content: "";
153
+ }
154
+ .jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box:not(:last-child)::before {
155
+ background-color: transparent;
156
+ }
157
+ .jetlinks-table-search .jetlinks-table-search-header {
158
+ display: flex;
159
+ justify-content: space-between;
160
+ }
161
+ .jetlinks-table-search .jetlinks-table-search-header .jetlinks-drag-modal-footer {
162
+ display: none;
163
+ }
164
+ .jetlinks-table-search .jetlinks-table-search-header .jetlinks-table-search-result-total {
165
+ color: #1890ff;
166
+ }
167
+ .jetlinks-table-group-warp .ant-tabs-nav {
168
+ margin-bottom: 0;
169
+ }
170
+ .jetlinks-table-group-warp .ant-tabs-nav .ant-tabs-tab {
171
+ overflow: hidden;
172
+ position: relative;
173
+ }
174
+ .jetlinks-table-group-warp .ant-tabs-nav .ant-tabs-tab-active {
175
+ background-color: #BAE0FF !important;
176
+ border-color: #91CAFF !important;
177
+ }
178
+ .jetlinks-table-group-warp .ant-tabs-nav .ant-tabs-nav-add {
179
+ border: none;
180
+ }
181
+ .jetlinks-table-group-error-warp {
182
+ color: #1a1a1a !important;
183
+ }
184
+ .jetlinks-table-group-error-warp .table-group-error-target {
185
+ position: absolute;
186
+ right: 0;
187
+ top: 0;
188
+ border: 16px solid transparent;
189
+ border-top-color: #ff4d4f;
190
+ border-right-width: 0;
191
+ border-bottom-width: 0;
192
+ }
193
+ .jetlinks-table-form-error-target {
194
+ position: absolute;
195
+ right: 2px;
196
+ top: -9px;
197
+ border: 16px solid transparent;
198
+ border-top-color: #ff4d4f;
199
+ border-right-width: 0;
200
+ border-bottom-width: 0;
201
+ }
202
+ .jetlinks-edit-table-form-has-error .select-no-value .ant-select-selector {
203
+ border-color: #ff4d4f !important;
204
+ }
205
+ .jetlinks-edit-table-form-has-error .select-no-value .ant-select-selector:focus {
206
+ box-shadow: 0 0 0 2px var(--ant-error-color-outline) !important;
207
+ }
208
+ .jetlinks-edit-table-form-has-error > input {
209
+ border-color: #ff4d4f !important;
210
+ }
211
+ .jetlinks-edit-table-form-has-error > input:focus {
212
+ box-shadow: 0 0 0 2px var(--ant-error-color-outline) !important;
213
+ }
214
+ .jetlinks-edit-table-form-has-error .jetlinks-table-form-required-aicon {
215
+ color: #ff4d4f;
216
+ }
217
+ .jetlinks-edit-table-context-menu {
218
+ position: fixed;
219
+ box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
220
+ border-radius: 4px;
221
+ overflow: hidden;
222
+ width: 192px;
223
+ padding: 4px;
224
+ background-color: #fff;
225
+ }
226
+ .jetlinks-edit-table-context-menu .ant-menu {
227
+ border-right: none;
228
+ }
229
+ .jetlinks-edit-table-context-menu .ant-menu .ant-menu-item {
230
+ margin: 0;
231
+ height: 32px;
232
+ }
233
+ .jetlinks-edit-table-context-menu .ant-menu .ant-menu-item.danger {
234
+ color: #ff4d4f;
235
+ }
236
+ .jetlinks-edit-table-context-menu .ant-menu-item-active {
237
+ background-color: var(--ant-primary-1);
238
+ }
239
+ .edit-table-search-header {
240
+ display: flex;
241
+ justify-content: space-between;
242
+ }
243
+ .edit-table-search-result-total {
244
+ color: #1890ff;
245
+ }
246
+ .jetlinks-edit-table-horizontal-scroll {
247
+ height: 17px;
248
+ width: 100%;
249
+ display: flex;
250
+ position: relative;
251
+ z-index: 4;
252
+ }
253
+ .jetlinks-edit-table-horizontal-scroll .jetlinks-edit-table-horizontal-scroll-viewport {
254
+ overflow-y: hidden;
255
+ overflow-x: scroll;
256
+ position: relative;
257
+ flex: 1 1 0;
258
+ height: 17px;
259
+ width: 100%;
260
+ }
261
+ .jetlinks-edit-table-horizontal-scroll .jetlinks-edit-table-horizontal-scroll-viewport > div {
262
+ height: 17px;
263
+ }
264
+ .jetlinks-edit-table-horizontal-scroll .jetlinks-edit-table-horizontal-scroll-hidden {
265
+ height: 100%;
266
+ overflow-x: hidden;
267
+ }
@@ -0,0 +1,41 @@
1
+ @import "ant-design-vue/es/style/themes/index.less";
2
+ @import "./table.less";
3
+ @import "./body.less";
4
+ @import "./header.less";
5
+ @import "./group.less";
6
+ @import "./form.less";
7
+ @import "./menu.less";
8
+
9
+ .edit-table-search-header {
10
+ display: flex;
11
+ justify-content: space-between;
12
+ }
13
+
14
+ .edit-table-search-result-total {
15
+ color: @primary-color;
16
+ }
17
+
18
+ .jetlinks-edit-table-horizontal-scroll {
19
+ height: 17px;
20
+ width: 100%;
21
+ display: flex;
22
+ position: relative;
23
+ z-index: 4;
24
+
25
+ .jetlinks-edit-table-horizontal-scroll-viewport {
26
+ overflow-y: hidden;
27
+ overflow-x: scroll;
28
+ position: relative;
29
+ flex: 1 1 0;
30
+ height: 17px;
31
+ width: 100%;
32
+
33
+ > div {
34
+ height: 17px;
35
+ }
36
+ }
37
+
38
+ .jetlinks-edit-table-horizontal-scroll-hidden {
39
+ height: 100%; overflow-x: hidden;
40
+ }
41
+ }
@@ -0,0 +1,25 @@
1
+ .jetlinks-edit-table-context-menu{
2
+ position: fixed;
3
+ box-shadow: 0 0 12px rgba(0, 0, 0 ,.2);
4
+ border-radius: 4px;
5
+ overflow: hidden;
6
+ width: 192px;
7
+ padding: 4px;
8
+ background-color: #fff;
9
+ .ant-menu {
10
+ border-right: none;
11
+
12
+ .ant-menu-item {
13
+ margin: 0;
14
+ height: 32px;
15
+
16
+ &.danger {
17
+ color: @error-color;
18
+ }
19
+ }
20
+ }
21
+
22
+ .ant-menu-item-active {
23
+ background-color: var(--ant-primary-1);;
24
+ }
25
+ }
@@ -0,0 +1,47 @@
1
+ .jetlinks-edit-table-wrapper {
2
+ background: #fff;
3
+ height: 100%;
4
+ position: relative;
5
+
6
+ &.table-full-screen {
7
+ padding: 24px;
8
+ }
9
+
10
+ .jetlinks-edit-table {
11
+ display: flex;
12
+ flex-direction: column;
13
+ flex-grow: 0;
14
+ flex-shrink: 0;
15
+ background: #fafafa;
16
+ transition: background-color .3s ease;
17
+ overflow: auto hidden;
18
+
19
+ .jetlinks-edit-table-header {
20
+ overflow: hidden;
21
+ width: 100%;
22
+ }
23
+
24
+ .jetlinks-edit-table-body {
25
+ background-color: #fff;
26
+ overflow-y: hidden;
27
+ position: relative;
28
+ height: 100%;
29
+ width: 100%;
30
+ flex: 1 1 auto;
31
+ flex-direction: row;
32
+ }
33
+
34
+ .jetlinks-table-horizontal-scroll {
35
+ width: 100%;
36
+ height: 15px;
37
+ min-height: 15px;
38
+ max-height: 15px;
39
+ display: flex;
40
+
41
+ .jetlinks-table-horizontal-scroll-bar {
42
+ height: 100%;
43
+ overflow-x: scroll;
44
+ }
45
+ }
46
+ }
47
+ }
@@ -8,7 +8,7 @@ export var collectValidateRules = function collectValidateRules(columns) {
8
8
  var rules = {};
9
9
  columns.forEach(function (item) {
10
10
  var _item$form;
11
- if ((_item$form = item.form) !== null && _item$form !== void 0 && _item$form.rules) {
11
+ if ((_item$form = item.form) === null || _item$form === void 0 ? void 0 : _item$form.rules) {
12
12
  var currentLevel = rules; // 从最顶层开始构建
13
13
  var field = item.form.field || item.dataIndex;
14
14
  var parts = Array.isArray(field) ? field : String(field).split(',');
@@ -0,0 +1,17 @@
1
+ .j-ellipsis {
2
+ overflow: hidden;
3
+ vertical-align: bottom;
4
+ }
5
+ .j-ellipsis-cursor {
6
+ cursor: pointer;
7
+ }
8
+ .j-ellipsis-line-clamp {
9
+ display: -webkit-box;
10
+ -webkit-box-orient: vertical;
11
+ word-break: break-all;
12
+ }
13
+ .j-ellipsis-deep {
14
+ max-height: 380px;
15
+ -webkit-line-clamp: 17;
16
+ text-overflow: ellipsis;
17
+ }
@@ -0,0 +1,20 @@
1
+ .j-ellipsis {
2
+ overflow: hidden;
3
+ vertical-align: bottom;
4
+ }
5
+
6
+ .j-ellipsis-cursor {
7
+ cursor: pointer;
8
+ }
9
+
10
+ .j-ellipsis-line-clamp {
11
+ display: -webkit-box;
12
+ -webkit-box-orient: vertical;
13
+ word-break: break-all;
14
+ }
15
+
16
+ .j-ellipsis-deep {
17
+ max-height: 380px;
18
+ -webkit-line-clamp: 17;
19
+ text-overflow: ellipsis;
20
+ }
@@ -8,7 +8,8 @@
8
8
  "y": "setup-maybe-ref"
9
9
  } */
10
10
  import { defineComponent as _defineComponent } from 'vue';
11
- import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
11
+ 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";
12
+ const _withScopeId = n => (_pushScopeId("data-v-1775015256307"), n = n(), _popScopeId(), n);
12
13
  const _hoisted_1 = { class: "full-page-warp-content" };
13
14
  import { ref, inject } from 'vue';
14
15
  import { useElementBounding } from '@vueuse/core';
@@ -3,13 +3,14 @@
3
3
  "provide": "setup-const",
4
4
  "reactive": "setup-const",
5
5
  "watch": "setup-const",
6
+ "defineOptions": "setup-const",
6
7
  "defaultLocal": "setup-maybe-ref",
7
8
  "props": "setup-reactive-const",
8
9
  "state": "setup-reactive-const"
9
10
  } */
10
11
  import { defineComponent as _defineComponent } from 'vue';
11
12
  import { renderSlot as _renderSlot } from "vue";
12
- import { provide, reactive, watch } from "vue";
13
+ import { provide, reactive, watch, } from "vue";
13
14
  import defaultLocal from '../locale/zh-CN';
14
15
  const __sfc_main__ = _defineComponent({
15
16
  ...{
@@ -0,0 +1,4 @@
1
+ .j-monaco-editor {
2
+ min-height: 50px;
3
+ height: 100%;
4
+ }
@@ -0,0 +1,4 @@
1
+ .j-monaco-editor {
2
+ min-height: 50px;
3
+ height: 100%;
4
+ }