@jetlinks-web/components 2.7.1 → 2.7.3

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 +172 -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
@@ -1,13 +1,13 @@
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";
10
- @import "../MonacoEditor/style/index.less";
11
- @import '../Scrollbar/style/index.less';
12
- @import '../Title/style/index.less';
13
- @import '../RadioButton/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";
10
+ @import "../MonacoEditor/style/index.less";
11
+ @import '../Scrollbar/style/index.less';
12
+ @import '../Title/style/index.less';
13
+ @import '../RadioButton/style/index.less';
@@ -0,0 +1,4 @@
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 */
@@ -0,0 +1,4 @@
1
+ @import 'ant-design-vue/es/style/themes/index.less';
2
+
3
+ @text-color-title: #000;
4
+ @text-color-subtitle: #263237;
package/lib/AMap/Map.js CHANGED
@@ -10,6 +10,7 @@
10
10
  "ref": "setup-const",
11
11
  "computed": "setup-const",
12
12
  "inject": "setup-const",
13
+ "defineOptions": "setup-const",
13
14
  "initAMapApiLoader": "setup-maybe-ref",
14
15
  "ElAmap": "setup-maybe-ref",
15
16
  "getAMapUiPromise": "setup-maybe-ref",
@@ -31,7 +32,7 @@
31
32
  } */
32
33
  import { defineComponent as _defineComponent } from 'vue';
33
34
  import { renderSlot as _renderSlot, unref as _unref, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from "vue";
34
- import { ref, computed, inject } from 'vue';
35
+ import { ref, computed, inject, } from 'vue';
35
36
  import { initAMapApiLoader, ElAmap } from '@vuemap/vue-amap';
36
37
  import { getAMapUiPromise } from '@jetlinks-web/utils';
37
38
  import { MapProps } from './util';
@@ -19,6 +19,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
19
19
  "AutoComplete": "setup-maybe-ref",
20
20
  "autoCompleteProps": "setup-maybe-ref",
21
21
  "ref": "setup-const",
22
+ "defineOptions": "setup-const",
22
23
  "watch": "setup-const",
23
24
  "props": "setup-reactive-const",
24
25
  "emit": "setup-const",
@@ -3,6 +3,7 @@
3
3
  "status": "props",
4
4
  "statusNames": "props",
5
5
  "computed": "setup-const",
6
+ "defineOptions": "setup-const",
6
7
  "getHexColor": "setup-maybe-ref",
7
8
  "Badge": "setup-maybe-ref",
8
9
  "props": "setup-reactive-const",
@@ -10,7 +11,7 @@
10
11
  } */
11
12
  import { defineComponent as _defineComponent } from 'vue';
12
13
  import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock } from "vue";
13
- import { computed } from 'vue';
14
+ import { computed, } from 'vue';
14
15
  import { getHexColor } from './color';
15
16
  import { Badge } from 'ant-design-vue/lib/';
16
17
  const __sfc_main__ = _defineComponent({
@@ -10,6 +10,7 @@
10
10
  "computed": "setup-const",
11
11
  "ref": "setup-const",
12
12
  "watch": "setup-const",
13
+ "defineOptions": "setup-const",
13
14
  "Form": "setup-maybe-ref",
14
15
  "props": "setup-reactive-const",
15
16
  "emit": "setup-const",
@@ -25,7 +26,7 @@ const _hoisted_2 = { class: "j-card-select-item-content" };
25
26
  const _hoisted_3 = { class: "j-card-select-title" };
26
27
  const _hoisted_4 = { class: "j-card-select-describe" };
27
28
  import { has } from 'lodash-es';
28
- import { computed, ref, watch } from 'vue';
29
+ import { computed, ref, watch, } from 'vue';
29
30
  import { Form } from 'ant-design-vue/lib/';
30
31
  const __sfc_main__ = Object.assign({
31
32
  name: 'JCardSelect'
@@ -0,0 +1,24 @@
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
+ .j-card-select {
6
+ display: grid;
7
+ gap: 12px;
8
+ }
9
+ .j-card-select .j-card-select-item {
10
+ padding: 12px;
11
+ border: 1px solid #e6e6e6;
12
+ border-radius: 2px;
13
+ cursor: pointer;
14
+ }
15
+ .j-card-select .j-card-select-item.active {
16
+ border-color: #1890ff;
17
+ }
18
+ .j-card-select .j-card-select-item.disabled {
19
+ cursor: not-allowed;
20
+ opacity: 0.75;
21
+ }
22
+ .j-card-select .j-card-select-item .j-card-select-describe {
23
+ color: #263237;
24
+ }
@@ -0,0 +1,26 @@
1
+ @import '../../style/variable.less';
2
+
3
+ .j-card-select {
4
+ display: grid;
5
+ gap: 12px;
6
+
7
+ .j-card-select-item {
8
+ padding: 12px;
9
+ border: 1px solid #e6e6e6;
10
+ border-radius: @border-radius-base;
11
+ cursor: pointer;
12
+
13
+ &.active {
14
+ border-color: @primary-color;
15
+ }
16
+
17
+ &.disabled {
18
+ cursor: not-allowed;
19
+ opacity: 0.75;
20
+ }
21
+
22
+ .j-card-select-describe {
23
+ color: @text-color-subtitle;
24
+ }
25
+ }
26
+ }
@@ -8,6 +8,7 @@
8
8
  "computed": "setup-const",
9
9
  "ref": "setup-const",
10
10
  "watch": "setup-const",
11
+ "defineOptions": "setup-const",
11
12
  "isArray": "setup-maybe-ref",
12
13
  "props": "setup-reactive-const",
13
14
  "emit": "setup-const",
@@ -19,7 +20,7 @@
19
20
  import { defineComponent as _defineComponent } from 'vue';
20
21
  import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from "vue";
21
22
  const _hoisted_1 = ["onClick"];
22
- import { computed, ref, watch } from 'vue';
23
+ import { computed, ref, watch, } from 'vue';
23
24
  import { isArray } from '@jetlinks-web/utils';
24
25
  const __sfc_main__ = _defineComponent({
25
26
  ...{
@@ -0,0 +1,37 @@
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
+ .j-check-button {
6
+ display: flex;
7
+ gap: 16px;
8
+ width: 100%;
9
+ }
10
+ .j-check-button .j-check-button-item {
11
+ flex: 1;
12
+ min-width: 0;
13
+ padding: 8px;
14
+ border-radius: 2px;
15
+ background-color: #f2f3f5;
16
+ transition: all 0.3s;
17
+ color: #333;
18
+ text-align: center;
19
+ cursor: pointer;
20
+ }
21
+ .j-check-button .j-check-button-item:hover {
22
+ background-color: #1890ff;
23
+ opacity: 0.85;
24
+ color: #fff;
25
+ }
26
+ .j-check-button .j-check-button-item.selected {
27
+ background-color: #1890ff;
28
+ color: #fff;
29
+ }
30
+ .j-check-button .j-check-button-item.disabled {
31
+ cursor: not-allowed;
32
+ color: #00000060;
33
+ }
34
+ .j-check-button .j-check-button-item.disabled:hover {
35
+ background-color: #f2f3f5;
36
+ color: #00000060;
37
+ }
@@ -0,0 +1,40 @@
1
+ @import 'ant-design-vue/lib/style/themes/index.less';
2
+
3
+ .j-check-button {
4
+ display: flex;
5
+ gap: 16px;
6
+ width: 100%;
7
+
8
+ .j-check-button-item {
9
+ flex: 1;
10
+ min-width: 0;
11
+ padding: 8px;
12
+ border-radius: @border-radius-base;
13
+ background-color: #f2f3f5;
14
+ transition: all 0.3s;
15
+ color: #333;
16
+ text-align: center;
17
+ cursor: pointer;
18
+
19
+ &:hover {
20
+ background-color: @primary-color;
21
+ opacity: 0.85;
22
+ color: #fff;
23
+ }
24
+
25
+ &.selected {
26
+ background-color: @primary-color;
27
+ color: #fff;
28
+ }
29
+
30
+ &.disabled {
31
+ cursor: not-allowed;
32
+ color: #00000060;
33
+
34
+ &:hover {
35
+ background-color: #f2f3f5;
36
+ color: #00000060;
37
+ }
38
+ }
39
+ }
40
+ }
@@ -23,6 +23,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
23
23
  "footer": "props",
24
24
  "ref": "setup-const",
25
25
  "useSlots": "setup-const",
26
+ "defineOptions": "setup-const",
26
27
  "computed": "setup-const",
27
28
  "onMounted": "setup-const",
28
29
  "watch": "setup-const",
@@ -0,0 +1,82 @@
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
+ .dialog-enter-active,
6
+ .dialog-leave-active {
7
+ transition: opacity 0.5s;
8
+ }
9
+ .dialog-enter,
10
+ .dialog-leave-to {
11
+ opacity: 0;
12
+ }
13
+ .jetlinks-drag-modal {
14
+ position: fixed;
15
+ z-index: 1000;
16
+ }
17
+ .jetlinks-drag-modal .jetlinks-drag-modal-sprite {
18
+ position: absolute;
19
+ width: 100%;
20
+ height: 100%;
21
+ display: flex;
22
+ flex-direction: column;
23
+ overflow: hidden;
24
+ z-index: 23456765435;
25
+ background-color: #ffffff;
26
+ border-radius: 4px;
27
+ border: 1px solid #91CAFF;
28
+ box-shadow: 0 3px 8px 0 rgba(22, 119, 255, 0.24);
29
+ }
30
+ .jetlinks-drag-modal .jetlinks-drag-modal-sprite .header {
31
+ padding: 5px 15px;
32
+ font-size: 18px;
33
+ font-weight: 700;
34
+ color: #333;
35
+ display: flex;
36
+ justify-content: space-between;
37
+ align-items: center;
38
+ border-bottom: 1px solid #f0f0f0;
39
+ cursor: move;
40
+ }
41
+ .jetlinks-drag-modal .jetlinks-drag-modal-sprite .jetlinks-drag-modal-body {
42
+ flex: 1;
43
+ min-height: 0;
44
+ overflow-y: auto;
45
+ padding: 24px 20px;
46
+ }
47
+ .jetlinks-drag-modal .jetlinks-drag-modal-sprite .jetlinks-drag-modal-footer {
48
+ border-top: 1px solid #f0f0f0;
49
+ padding: 5px 15px;
50
+ text-align: right;
51
+ }
52
+ .jetlinks-drag-modal .jetlinks-drag-modal-range {
53
+ position: absolute;
54
+ width: 16px;
55
+ height: 16px;
56
+ border-radius: 100%;
57
+ z-index: 23456765436;
58
+ }
59
+ .jetlinks-drag-modal .jetlinks-drag-modal-range .drag-bottom-right:hover,
60
+ .jetlinks-drag-modal .jetlinks-drag-modal-range .drag-top-left:hover {
61
+ cursor: nwse-resize;
62
+ }
63
+ .jetlinks-drag-modal .jetlinks-drag-modal-range .drag-bottom-left:hover,
64
+ .jetlinks-drag-modal .jetlinks-drag-modal-range .drag-top-right:hover {
65
+ cursor: nesw-resize;
66
+ }
67
+ .jetlinks-drag-modal .jetlinks-drag-modal-range .drag-top-right {
68
+ top: -6px;
69
+ right: -6px;
70
+ }
71
+ .jetlinks-drag-modal .jetlinks-drag-modal-range .drag-top-left {
72
+ top: -6px;
73
+ left: -6px;
74
+ }
75
+ .jetlinks-drag-modal .jetlinks-drag-modal-range .drag-bottom-right {
76
+ bottom: -6px;
77
+ right: -6px;
78
+ }
79
+ .jetlinks-drag-modal .jetlinks-drag-modal-range .drag-bottom-left {
80
+ bottom: -6px;
81
+ left: -6px;
82
+ }
@@ -0,0 +1,97 @@
1
+ @import "ant-design-vue/lib/style/themes/index.less";
2
+ @boxColor: rgb(@primary-color);
3
+
4
+ // 弹窗动画
5
+ .dialog-enter-active,
6
+ .dialog-leave-active {
7
+ transition: opacity .5s;
8
+ }
9
+
10
+ .dialog-enter,
11
+ .dialog-leave-to {
12
+ opacity: 0;
13
+ }
14
+
15
+ .jetlinks-drag-modal {
16
+ position: fixed;
17
+ z-index: 1000;
18
+
19
+ .jetlinks-drag-modal-sprite {
20
+ position: absolute;
21
+ width: 100%;
22
+ height: 100%;
23
+ display: flex;
24
+ flex-direction: column;
25
+ overflow: hidden;
26
+ z-index: 23456765435;
27
+ background-color: #ffffff;
28
+ border-radius: 4px;
29
+ border: 1px solid #91CAFF;
30
+ box-shadow: 0 3px 8px 0 rgba(#1677FF, 0.24);
31
+
32
+ .header {
33
+ padding: 5px 15px;
34
+ font-size: 18px;
35
+ font-weight: 700;
36
+ color: #333;
37
+ display: flex;
38
+ justify-content: space-between;
39
+ align-items: center;
40
+ border-bottom: 1px solid #f0f0f0;
41
+ cursor: move;
42
+ }
43
+
44
+ .jetlinks-drag-modal-body {
45
+ flex: 1;
46
+ min-height: 0;
47
+ overflow-y: auto;
48
+ padding: 24px 20px;
49
+ }
50
+
51
+ .jetlinks-drag-modal-footer {
52
+ border-top: 1px solid #f0f0f0;
53
+ padding: 5px 15px;
54
+ text-align: right;
55
+ }
56
+ }
57
+
58
+ .jetlinks-drag-modal-range {
59
+ position: absolute;
60
+ width: 16px;
61
+ height: 16px;
62
+ border-radius: 100%;
63
+ z-index: 23456765436;
64
+
65
+ .drag-bottom-right, .drag-top-left {
66
+ &:hover {
67
+ cursor: nwse-resize
68
+ }
69
+ }
70
+
71
+ .drag-bottom-left, .drag-top-right {
72
+ &:hover {
73
+ cursor: nesw-resize
74
+ }
75
+ }
76
+
77
+ .drag-top-right {
78
+ top: -6px;
79
+ right: -6px;
80
+ }
81
+
82
+ .drag-top-left {
83
+ top: -6px;
84
+ left: -6px;
85
+ }
86
+
87
+ .drag-bottom-right {
88
+ bottom: -6px;
89
+ right: -6px;
90
+ }
91
+
92
+ .drag-bottom-left {
93
+ bottom: -6px;
94
+ left: -6px;
95
+ }
96
+ }
97
+ }
@@ -4,6 +4,7 @@
4
4
  "nextTick": "setup-const",
5
5
  "ref": "setup-const",
6
6
  "watch": "setup-const",
7
+ "defineOptions": "setup-const",
7
8
  "useECharts": "setup-maybe-ref",
8
9
  "props": "setup-reactive-const",
9
10
  "echartsDom": "setup-ref",
@@ -11,7 +12,7 @@
11
12
  } */
12
13
  import { defineComponent as _defineComponent } from 'vue';
13
14
  import { normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
14
- import { nextTick, ref, watch } from 'vue';
15
+ import { nextTick, ref, watch, } from 'vue';
15
16
  import { useECharts } from '@jetlinks-web/hooks';
16
17
  const __sfc_main__ = _defineComponent({
17
18
  ...{
@@ -41,6 +41,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
41
41
  "useSlots": "setup-const",
42
42
  "ref": "setup-const",
43
43
  "reactive": "setup-const",
44
+ "defineOptions": "setup-const",
44
45
  "computed": "setup-const",
45
46
  "watch": "setup-const",
46
47
  "bodyProps": "setup-maybe-ref",
@@ -108,6 +109,7 @@ const _hoisted_3 = {
108
109
  key: 0,
109
110
  class: "jetlinks-table-horizontal-scroll"
110
111
  };
112
+ const _hoisted_4 = /*#__PURE__*/ _createElementVNode("div", { style: { "width": "15px", "height": "100%", "overflow-x": "hidden" } }, null, -1 /* HOISTED */);
111
113
  import { FULL_SCREEN, RIGHT_MENU, TABLE_DATA_SOURCE, TABLE_ERROR, TABLE_GROUP_ACTIVE, TABLE_GROUP_ERROR, TABLE_GROUP_OPTIONS, TABLE_H_SCROLL, TABLE_OPEN_GROUP, TABLE_TOOL, TABLE_WRAPPER } from './consts';
112
114
  import { handleColumnsWidth } from './utils';
113
115
  import { useGroup, useResizeObserver, useValidate } from './hooks';
@@ -513,18 +515,18 @@ const __sfc_main__ = Object.assign({
513
515
  class: "jetlinks-table-horizontal-scroll-bar",
514
516
  ref_key: "scrollBarRef",
515
517
  ref: scrollBarRef,
516
- style: {
518
+ style: _normalizeStyle({
517
519
  width: 'calc(100% - 15px)',
518
520
  height: '100%',
519
521
  overflowX: 'scroll'
520
- },
522
+ }),
521
523
  onScroll: onHorizontalScroll
522
524
  }, [
523
525
  _createElementVNode("div", {
524
526
  style: _normalizeStyle({ minWidth: horizontalScrollWidth.value + 'px', maxWidth: horizontalScrollWidth.value + 'px', height: '100%' })
525
527
  }, null, 4 /* STYLE */)
526
- ], 544 /* NEED_HYDRATION, NEED_PATCH */),
527
- _cache[1] || (_cache[1] = _createElementVNode("div", { style: { "width": "15px", "height": "100%", "overflow-x": "hidden" } }, null, -1 /* CACHED */))
528
+ ], 36 /* STYLE, NEED_HYDRATION */),
529
+ _hoisted_4
528
530
  ]))
529
531
  : _createCommentVNode("v-if", true),
530
532
  (_ctx.dataSource.length && _ctx.openGroup)
@@ -21,6 +21,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
21
21
  "computed": "setup-const",
22
22
  "reactive": "setup-const",
23
23
  "watch": "setup-const",
24
+ "defineOptions": "setup-const",
24
25
  "provide": "setup-const",
25
26
  "get": "setup-maybe-ref",
26
27
  "isArray": "setup-maybe-ref",
@@ -22,6 +22,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
22
22
  "SearchModal": "setup-maybe-ref",
23
23
  "Sort": "setup-maybe-ref",
24
24
  "reactive": "setup-const",
25
+ "defineOptions": "setup-const",
25
26
  "useHScroll": "setup-maybe-ref",
26
27
  "useTableTool": "setup-maybe-ref",
27
28
  "HeaderItemRender": "setup-const",
@@ -46,7 +47,7 @@ const _hoisted_6 = {
46
47
  class: "table-header-cell-trigger"
47
48
  };
48
49
  import { SearchModal, Sort } from './components/Search';
49
- import { reactive } from 'vue';
50
+ import { reactive, } from 'vue';
50
51
  import { useHScroll, useTableTool } from "./hooks";
51
52
  import HeaderItemRender from './HeaderRender.js';
52
53
  const __sfc_main__ = Object.assign({
@@ -125,10 +126,7 @@ const __sfc_main__ = Object.assign({
125
126
  }, null, 8 /* PROPS */, ["onClick"]))
126
127
  : _createCommentVNode("v-if", true),
127
128
  (item.sort)
128
- ? (_openBlock(), _createBlock(_unref(Sort), _mergeProps({
129
- key: 1,
130
- ref_for: true
131
- }, item.sort, {
129
+ ? (_openBlock(), _createBlock(_unref(Sort), _mergeProps({ key: 1 }, item.sort, {
132
130
  key: item.dataIndex,
133
131
  active: _unref(tableTool).sortData.dataIndex === item.dataIndex,
134
132
  selectedRowKeys: _unref(tableTool).sortData.dataIndex === item.dataIndex ? _unref(tableTool).sortData.orderKeys : [],
@@ -23,6 +23,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
23
23
  "onMounted": "setup-const",
24
24
  "ref": "setup-const",
25
25
  "nextTick": "setup-const",
26
+ "defineOptions": "setup-const",
26
27
  "AIcon": "setup-maybe-ref",
27
28
  "Menu": "setup-maybe-ref",
28
29
  "useLocaleReceiver": "setup-maybe-ref",
@@ -37,7 +38,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
37
38
  "close": "setup-const"
38
39
  } */
39
40
  import { unref as _unref, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
40
- import { onMounted, ref, nextTick } from "vue";
41
+ import { onMounted, ref, nextTick, } from "vue";
41
42
  import { AIcon } from '../../../components';
42
43
  import { Menu } from 'ant-design-vue/lib/';
43
44
  import { useLocaleReceiver } from "../../../LocaleReciver";
@@ -24,6 +24,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
24
24
  "useGroupOptions": "setup-maybe-ref",
25
25
  "ref": "setup-const",
26
26
  "computed": "setup-const",
27
+ "defineOptions": "setup-const",
27
28
  "Ellipsis": "setup-const",
28
29
  "DragModal": "setup-const",
29
30
  "useLocaleReceiver": "setup-maybe-ref",
@@ -67,7 +68,7 @@ const _hoisted_6 = { key: 1 };
67
68
  const _hoisted_7 = { class: "jetlinks-table-search-result-total" };
68
69
  import Table from '../../EditTable.js';
69
70
  import { useTableDataSource, useTableOpenGroup, useTableTool, useGroupOptions } from "../../context";
70
- import { ref, computed } from "vue";
71
+ import { ref, computed, } from "vue";
71
72
  import Ellipsis from '../../../Ellipsis/Ellipsis.js';
72
73
  import DragModal from '../../../DragModal/DragModal.js';
73
74
  import { useLocaleReceiver } from "../../../LocaleReciver/index";
@@ -22,6 +22,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
22
22
  "active": "props",
23
23
  "useTableTool": "setup-maybe-ref",
24
24
  "useTableWrapper": "setup-maybe-ref",
25
+ "defineOptions": "setup-const",
25
26
  "ref": "setup-const",
26
27
  "reactive": "setup-const",
27
28
  "useLocaleReceiver": "setup-maybe-ref",
@@ -40,7 +41,8 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
40
41
  "onAsc": "setup-const",
41
42
  "onDesc": "setup-const"
42
43
  } */
43
- import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass } from "vue";
44
+ import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
45
+ const _withScopeId = n => (_pushScopeId("data-v-1775015259060"), n = n(), _popScopeId(), n);
44
46
  const _hoisted_1 = { class: "jetlinks-table-sort-content" };
45
47
  const _hoisted_2 = { class: "jetlinks-table-sort-title" };
46
48
  const _hoisted_3 = { class: "table-sort-body" };
@@ -24,6 +24,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
24
24
  "useTableGroupError": "setup-maybe-ref",
25
25
  "useTableWrapper": "setup-maybe-ref",
26
26
  "ref": "setup-const",
27
+ "defineOptions": "setup-const",
27
28
  "useLocaleReceiver": "setup-maybe-ref",
28
29
  "props": "setup-reactive-const",
29
30
  "emit": "setup-const",
@@ -49,16 +50,18 @@ import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlo
49
50
  const _hoisted_1 = { class: "jetlinks-table-group-warp" };
50
51
  const _hoisted_2 = { class: "jetlinks-table-group-error-warp" };
51
52
  const _hoisted_3 = { style: { "color": "#1d2129" } };
52
- const _hoisted_4 = {
53
+ const _hoisted_4 = /*#__PURE__*/ _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* HOISTED */);
54
+ const _hoisted_5 = {
53
55
  key: 1,
54
56
  class: "jetlinks-table-group-error-warp"
55
57
  };
56
- const _hoisted_5 = { style: { "color": "#1d2129" } };
58
+ const _hoisted_6 = { style: { "color": "#1d2129" } };
59
+ const _hoisted_7 = /*#__PURE__*/ _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* HOISTED */);
57
60
  import { Modal } from "ant-design-vue/lib/";
58
61
  import { randomNumber } from "@jetlinks-web/utils";
59
62
  import { isFullScreen } from "./utils";
60
63
  import { useTableGroupError, useTableWrapper } from './context';
61
- import { ref } from 'vue';
64
+ import { ref, } from 'vue';
62
65
  import { useLocaleReceiver } from "../LocaleReciver";
63
66
  const __sfc_main__ = Object.assign({
64
67
  name: 'JEditTableGroup'
@@ -267,7 +270,7 @@ const __sfc_main__ = Object.assign({
267
270
  _createElementVNode("span", _hoisted_3, _toDisplayString(_unref(contextLocale).Group.validate), 1 /* TEXT */)
268
271
  ]),
269
272
  default: _withCtx(() => [
270
- _cache[2] || (_cache[2] = _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* CACHED */))
273
+ _hoisted_4
271
274
  ]),
272
275
  _: 1 /* STABLE */
273
276
  }))
@@ -276,7 +279,7 @@ const __sfc_main__ = Object.assign({
276
279
  ]),
277
280
  _: 2 /* DYNAMIC */
278
281
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["getPopupContainer", "disabled"]))
279
- : (_openBlock(), _createElementBlock("div", _hoisted_4, [
282
+ : (_openBlock(), _createElementBlock("div", _hoisted_5, [
280
283
  _createTextVNode(_toDisplayString(item.label) + " (" + _toDisplayString(item.effective) + ") ", 1 /* TEXT */),
281
284
  (_unref(errorMap)[item.value])
282
285
  ? (_openBlock(), _createBlock(_component_a_tooltip, {
@@ -286,10 +289,10 @@ const __sfc_main__ = Object.assign({
286
289
  getContainer: popContainer
287
290
  }, {
288
291
  title: _withCtx(() => [
289
- _createElementVNode("span", _hoisted_5, _toDisplayString(_unref(contextLocale).Group.validate), 1 /* TEXT */)
292
+ _createElementVNode("span", _hoisted_6, _toDisplayString(_unref(contextLocale).Group.validate), 1 /* TEXT */)
290
293
  ]),
291
294
  default: _withCtx(() => [
292
- _cache[3] || (_cache[3] = _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* CACHED */))
295
+ _hoisted_7
293
296
  ]),
294
297
  _: 1 /* STABLE */
295
298
  }))
@@ -25,7 +25,7 @@ var useValidate = exports.useValidate = function useValidate(dataSource, columns
25
25
  firstFields: true,
26
26
  index: index
27
27
  }, function (err) {
28
- if (err !== null && err !== void 0 && err.length) {
28
+ if (err === null || err === void 0 ? void 0 : err.length) {
29
29
  reject(err.map(function (item) {
30
30
  return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
31
31
  __serial: data.__serial,