@jetlinks-web/components 2.6.21 → 2.6.23

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 (78) hide show
  1. package/es/AMap/Map.js +1 -2
  2. package/es/AutoComplete/AutoComplete.js +0 -1
  3. package/es/BadgeStatus/Badge.js +1 -2
  4. package/es/CardSelect/CardSelect.js +1 -2
  5. package/es/CheckButton/CheckButton.js +1 -2
  6. package/es/CheckButton/style/index.less +40 -40
  7. package/es/DragModal/DragModal.js +0 -1
  8. package/es/Echarts/Echarts.js +1 -2
  9. package/es/EditTable/EditTable.js +4 -6
  10. package/es/EditTable/FormItem.js +0 -1
  11. package/es/EditTable/Header.js +5 -3
  12. package/es/EditTable/components/ContextMenu/Menu.js +1 -2
  13. package/es/EditTable/components/Search/search.js +1 -2
  14. package/es/EditTable/components/Search/sort.js +1 -3
  15. package/es/EditTable/group.js +11 -12
  16. package/es/EditTable/hooks/useValidate.js +1 -1
  17. package/es/EditTable/style/index.less +41 -41
  18. package/es/FlameGraph/FlameGraph.js +5 -4
  19. package/es/FullPage/FullPage.js +1 -2
  20. package/es/LocaleProvider/index.js +1 -2
  21. package/es/PermissionButton/index.js +6 -7
  22. package/es/ProLayout/Basic/BasicLayout.js +34 -39
  23. package/es/ProLayout/Basic/Header.js +3 -7
  24. package/es/ProLayout/PageContainer/index.js +8 -12
  25. package/es/ProLayout/SiderMenu/BaseMenu.js +16 -39
  26. package/es/ProLayout/SiderMenu/SiderMenu.js +14 -34
  27. package/es/ProLayout/TopHeader/index.js +1 -9
  28. package/es/ProLayout/style/default.less +4 -4
  29. package/es/ProLayout/util.js +5 -5
  30. package/es/ProTable/Content.js +34 -18
  31. package/es/ProTable/style/ProTable.less +138 -138
  32. package/es/RadioButton/RadioButton.js +0 -1
  33. package/es/Search/Advanced/SaveHistory.js +1 -2
  34. package/es/Search/Item.js +1 -2
  35. package/es/Title/title.js +0 -1
  36. package/es/style/index.css +1 -1
  37. package/es/style/variable.less +4 -4
  38. package/lib/AMap/Map.js +1 -2
  39. package/lib/AutoComplete/AutoComplete.js +0 -1
  40. package/lib/BadgeStatus/Badge.js +1 -2
  41. package/lib/CardSelect/CardSelect.js +1 -2
  42. package/lib/CheckButton/CheckButton.js +1 -2
  43. package/lib/CheckButton/style/index.less +40 -40
  44. package/lib/DragModal/DragModal.js +0 -1
  45. package/lib/Echarts/Echarts.js +1 -2
  46. package/lib/EditTable/EditTable.js +4 -6
  47. package/lib/EditTable/FormItem.js +0 -1
  48. package/lib/EditTable/Header.js +5 -3
  49. package/lib/EditTable/components/ContextMenu/Menu.js +1 -2
  50. package/lib/EditTable/components/Search/search.js +1 -2
  51. package/lib/EditTable/components/Search/sort.js +1 -3
  52. package/lib/EditTable/group.js +11 -12
  53. package/lib/EditTable/hooks/useValidate.js +1 -1
  54. package/lib/EditTable/style/index.less +41 -41
  55. package/lib/FlameGraph/FlameGraph.js +5 -4
  56. package/lib/FullPage/FullPage.js +1 -2
  57. package/lib/Icon/icon.js +1 -2
  58. package/lib/LocaleProvider/index.js +1 -2
  59. package/lib/PermissionButton/index.js +6 -7
  60. package/lib/ProLayout/Basic/BasicLayout.js +34 -40
  61. package/lib/ProLayout/Basic/Header.js +2 -6
  62. package/lib/ProLayout/PageContainer/index.js +7 -11
  63. package/lib/ProLayout/SiderMenu/BaseMenu.js +17 -39
  64. package/lib/ProLayout/SiderMenu/SiderMenu.js +14 -35
  65. package/lib/ProLayout/TopHeader/index.js +2 -9
  66. package/lib/ProLayout/style/default.less +4 -4
  67. package/lib/ProLayout/util.js +5 -5
  68. package/lib/ProTable/Content.js +34 -18
  69. package/lib/ProTable/style/ProTable.less +138 -138
  70. package/lib/RadioButton/RadioButton.js +0 -1
  71. package/lib/Search/Advanced/SaveHistory.js +1 -2
  72. package/lib/Search/Item.js +1 -2
  73. package/lib/Title/title.js +0 -1
  74. package/lib/components.js +1 -2
  75. package/lib/index.js +1 -2
  76. package/lib/style/index.css +1 -1
  77. package/lib/style/variable.less +4 -4
  78. package/package.json +4 -4
package/es/AMap/Map.js CHANGED
@@ -10,7 +10,6 @@
10
10
  "ref": "setup-const",
11
11
  "computed": "setup-const",
12
12
  "inject": "setup-const",
13
- "defineOptions": "setup-const",
14
13
  "initAMapApiLoader": "setup-maybe-ref",
15
14
  "ElAmap": "setup-maybe-ref",
16
15
  "getAMapUiPromise": "setup-maybe-ref",
@@ -32,7 +31,7 @@
32
31
  } */
33
32
  import { defineComponent as _defineComponent } from 'vue';
34
33
  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";
35
- import { ref, computed, inject, } from 'vue';
34
+ import { ref, computed, inject } from 'vue';
36
35
  import { initAMapApiLoader, ElAmap } from '@vuemap/vue-amap';
37
36
  import { getAMapUiPromise } from '@jetlinks-web/utils';
38
37
  import { MapProps } from './util';
@@ -19,7 +19,6 @@ 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",
23
22
  "watch": "setup-const",
24
23
  "props": "setup-reactive-const",
25
24
  "emit": "setup-const",
@@ -3,7 +3,6 @@
3
3
  "status": "props",
4
4
  "statusNames": "props",
5
5
  "computed": "setup-const",
6
- "defineOptions": "setup-const",
7
6
  "getHexColor": "setup-maybe-ref",
8
7
  "Badge": "setup-maybe-ref",
9
8
  "props": "setup-reactive-const",
@@ -11,7 +10,7 @@
11
10
  } */
12
11
  import { defineComponent as _defineComponent } from 'vue';
13
12
  import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock } from "vue";
14
- import { computed, } from 'vue';
13
+ import { computed } from 'vue';
15
14
  import { getHexColor } from './color';
16
15
  import { Badge } from 'ant-design-vue/es/';
17
16
  const __sfc_main__ = _defineComponent({
@@ -10,7 +10,6 @@
10
10
  "computed": "setup-const",
11
11
  "ref": "setup-const",
12
12
  "watch": "setup-const",
13
- "defineOptions": "setup-const",
14
13
  "props": "setup-reactive-const",
15
14
  "emit": "setup-const",
16
15
  "selectKeys": "setup-ref",
@@ -24,7 +23,7 @@ const _hoisted_2 = { class: "j-card-select-item-content" };
24
23
  const _hoisted_3 = { class: "j-card-select-title" };
25
24
  const _hoisted_4 = { class: "j-card-select-describe" };
26
25
  import { has } from 'lodash-es';
27
- import { computed, ref, watch, } from 'vue';
26
+ import { computed, ref, watch } from 'vue';
28
27
  const __sfc_main__ = Object.assign({
29
28
  name: 'JCardSelect'
30
29
  }, {
@@ -8,7 +8,6 @@
8
8
  "computed": "setup-const",
9
9
  "ref": "setup-const",
10
10
  "watch": "setup-const",
11
- "defineOptions": "setup-const",
12
11
  "isArray": "setup-maybe-ref",
13
12
  "props": "setup-reactive-const",
14
13
  "emit": "setup-const",
@@ -20,7 +19,7 @@
20
19
  import { defineComponent as _defineComponent } from 'vue';
21
20
  import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from "vue";
22
21
  const _hoisted_1 = ["onClick"];
23
- import { computed, ref, watch, } from 'vue';
22
+ import { computed, ref, watch } from 'vue';
24
23
  import { isArray } from '@jetlinks-web/utils';
25
24
  const __sfc_main__ = _defineComponent({
26
25
  ...{
@@ -1,40 +1,40 @@
1
- @import 'ant-design-vue/es/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
- }
1
+ @import 'ant-design-vue/es/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,7 +23,6 @@ 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",
27
26
  "computed": "setup-const",
28
27
  "onMounted": "setup-const",
29
28
  "watch": "setup-const",
@@ -4,7 +4,6 @@
4
4
  "nextTick": "setup-const",
5
5
  "ref": "setup-const",
6
6
  "watch": "setup-const",
7
- "defineOptions": "setup-const",
8
7
  "useECharts": "setup-maybe-ref",
9
8
  "props": "setup-reactive-const",
10
9
  "echartsDom": "setup-ref",
@@ -12,7 +11,7 @@
12
11
  } */
13
12
  import { defineComponent as _defineComponent } from 'vue';
14
13
  import { normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
15
- import { nextTick, ref, watch, } from 'vue';
14
+ import { nextTick, ref, watch } from 'vue';
16
15
  import { useECharts } from '@jetlinks-web/hooks';
17
16
  const __sfc_main__ = _defineComponent({
18
17
  ...{
@@ -41,7 +41,6 @@ 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",
45
44
  "computed": "setup-const",
46
45
  "watch": "setup-const",
47
46
  "bodyProps": "setup-maybe-ref",
@@ -109,7 +108,6 @@ const _hoisted_3 = {
109
108
  key: 0,
110
109
  class: "jetlinks-table-horizontal-scroll"
111
110
  };
112
- const _hoisted_4 = /*#__PURE__*/ _createElementVNode("div", { style: { "width": "15px", "height": "100%", "overflow-x": "hidden" } }, null, -1 /* HOISTED */);
113
111
  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';
114
112
  import { handleColumnsWidth } from './utils';
115
113
  import { useGroup, useResizeObserver, useValidate } from './hooks';
@@ -515,18 +513,18 @@ const __sfc_main__ = Object.assign({
515
513
  class: "jetlinks-table-horizontal-scroll-bar",
516
514
  ref_key: "scrollBarRef",
517
515
  ref: scrollBarRef,
518
- style: _normalizeStyle({
516
+ style: {
519
517
  width: 'calc(100% - 15px)',
520
518
  height: '100%',
521
519
  overflowX: 'scroll'
522
- }),
520
+ },
523
521
  onScroll: onHorizontalScroll
524
522
  }, [
525
523
  _createElementVNode("div", {
526
524
  style: _normalizeStyle({ minWidth: horizontalScrollWidth.value + 'px', maxWidth: horizontalScrollWidth.value + 'px', height: '100%' })
527
525
  }, null, 4 /* STYLE */)
528
- ], 36 /* STYLE, NEED_HYDRATION */),
529
- _hoisted_4
526
+ ], 544 /* NEED_HYDRATION, NEED_PATCH */),
527
+ _cache[1] || (_cache[1] = _createElementVNode("div", { style: { "width": "15px", "height": "100%", "overflow-x": "hidden" } }, null, -1 /* CACHED */))
530
528
  ]))
531
529
  : _createCommentVNode("v-if", true),
532
530
  (_ctx.dataSource.length && _ctx.openGroup)
@@ -21,7 +21,6 @@ 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",
25
24
  "provide": "setup-const",
26
25
  "get": "setup-maybe-ref",
27
26
  "isArray": "setup-maybe-ref",
@@ -22,7 +22,6 @@ 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",
26
25
  "useHScroll": "setup-maybe-ref",
27
26
  "useTableTool": "setup-maybe-ref",
28
27
  "HeaderItemRender": "setup-const",
@@ -47,7 +46,7 @@ const _hoisted_6 = {
47
46
  class: "table-header-cell-trigger"
48
47
  };
49
48
  import { SearchModal, Sort } from './components/Search';
50
- import { reactive, } from 'vue';
49
+ import { reactive } from 'vue';
51
50
  import { useHScroll, useTableTool } from "./hooks";
52
51
  import HeaderItemRender from './HeaderRender.js';
53
52
  const __sfc_main__ = Object.assign({
@@ -126,7 +125,10 @@ const __sfc_main__ = Object.assign({
126
125
  }, null, 8 /* PROPS */, ["onClick"]))
127
126
  : _createCommentVNode("v-if", true),
128
127
  (item.sort)
129
- ? (_openBlock(), _createBlock(_unref(Sort), _mergeProps({ key: 1 }, item.sort, {
128
+ ? (_openBlock(), _createBlock(_unref(Sort), _mergeProps({
129
+ key: 1,
130
+ ref_for: true
131
+ }, item.sort, {
130
132
  key: item.dataIndex,
131
133
  active: _unref(tableTool).sortData.dataIndex === item.dataIndex,
132
134
  selectedRowKeys: _unref(tableTool).sortData.dataIndex === item.dataIndex ? _unref(tableTool).sortData.orderKeys : [],
@@ -23,7 +23,6 @@ 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",
27
26
  "AIcon": "setup-maybe-ref",
28
27
  "Menu": "setup-maybe-ref",
29
28
  "useLocaleReceiver": "setup-maybe-ref",
@@ -38,7 +37,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
38
37
  "close": "setup-const"
39
38
  } */
40
39
  import { unref as _unref, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
41
- import { onMounted, ref, nextTick, } from "vue";
40
+ import { onMounted, ref, nextTick } from "vue";
42
41
  import { AIcon } from '../../../components';
43
42
  import { Menu } from 'ant-design-vue/es/';
44
43
  import { useLocaleReceiver } from "../../../LocaleReciver";
@@ -24,7 +24,6 @@ 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",
28
27
  "Ellipsis": "setup-const",
29
28
  "DragModal": "setup-const",
30
29
  "useLocaleReceiver": "setup-maybe-ref",
@@ -68,7 +67,7 @@ const _hoisted_6 = { key: 1 };
68
67
  const _hoisted_7 = { class: "jetlinks-table-search-result-total" };
69
68
  import Table from '../../EditTable.js';
70
69
  import { useTableDataSource, useTableOpenGroup, useTableTool, useGroupOptions } from "../../context";
71
- import { ref, computed, } from "vue";
70
+ import { ref, computed } from "vue";
72
71
  import Ellipsis from '../../../Ellipsis/Ellipsis.js';
73
72
  import DragModal from '../../../DragModal/DragModal.js';
74
73
  import { useLocaleReceiver } from "../../../LocaleReciver/index";
@@ -22,7 +22,6 @@ 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",
26
25
  "ref": "setup-const",
27
26
  "reactive": "setup-const",
28
27
  "useLocaleReceiver": "setup-maybe-ref",
@@ -41,8 +40,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
41
40
  "onAsc": "setup-const",
42
41
  "onDesc": "setup-const"
43
42
  } */
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-1749203558665"), n = n(), _popScopeId(), n);
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";
46
44
  const _hoisted_1 = { class: "jetlinks-table-sort-content" };
47
45
  const _hoisted_2 = { class: "jetlinks-table-sort-title" };
48
46
  const _hoisted_3 = { class: "table-sort-body" };
@@ -24,7 +24,6 @@ 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",
28
27
  "useLocaleReceiver": "setup-maybe-ref",
29
28
  "props": "setup-reactive-const",
30
29
  "emit": "setup-const",
@@ -50,18 +49,16 @@ import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlo
50
49
  const _hoisted_1 = { class: "jetlinks-table-group-warp" };
51
50
  const _hoisted_2 = { class: "jetlinks-table-group-error-warp" };
52
51
  const _hoisted_3 = { style: { "color": "#1d2129" } };
53
- const _hoisted_4 = /*#__PURE__*/ _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* HOISTED */);
54
- const _hoisted_5 = {
52
+ const _hoisted_4 = {
55
53
  key: 1,
56
54
  class: "jetlinks-table-group-error-warp"
57
55
  };
58
- const _hoisted_6 = { style: { "color": "#1d2129" } };
59
- const _hoisted_7 = /*#__PURE__*/ _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* HOISTED */);
56
+ const _hoisted_5 = { style: { "color": "#1d2129" } };
60
57
  import { Modal } from "ant-design-vue/es/";
61
58
  import { randomNumber } from "@jetlinks-web/utils";
62
59
  import { isFullScreen } from "./utils";
63
60
  import { useTableGroupError, useTableWrapper } from './context';
64
- import { ref, } from 'vue';
61
+ import { ref } from 'vue';
65
62
  import { useLocaleReceiver } from "../LocaleReciver";
66
63
  const __sfc_main__ = Object.assign({
67
64
  name: 'JEditTableGroup'
@@ -270,16 +267,17 @@ const __sfc_main__ = Object.assign({
270
267
  _createElementVNode("span", _hoisted_3, _toDisplayString(_unref(contextLocale).Group.validate), 1 /* TEXT */)
271
268
  ]),
272
269
  default: _withCtx(() => [
273
- _hoisted_4
270
+ _cache[2] || (_cache[2] = _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* CACHED */))
274
271
  ]),
275
- _: 1 /* STABLE */
272
+ _: 1 /* STABLE */,
273
+ __: [2]
276
274
  }))
277
275
  : _createCommentVNode("v-if", true)
278
276
  ])
279
277
  ]),
280
278
  _: 2 /* DYNAMIC */
281
279
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["getPopupContainer", "disabled"]))
282
- : (_openBlock(), _createElementBlock("div", _hoisted_5, [
280
+ : (_openBlock(), _createElementBlock("div", _hoisted_4, [
283
281
  _createTextVNode(_toDisplayString(item.label) + " (" + _toDisplayString(item.effective) + ") ", 1 /* TEXT */),
284
282
  (_unref(errorMap)[item.value])
285
283
  ? (_openBlock(), _createBlock(_component_a_tooltip, {
@@ -289,12 +287,13 @@ const __sfc_main__ = Object.assign({
289
287
  getContainer: popContainer
290
288
  }, {
291
289
  title: _withCtx(() => [
292
- _createElementVNode("span", _hoisted_6, _toDisplayString(_unref(contextLocale).Group.validate), 1 /* TEXT */)
290
+ _createElementVNode("span", _hoisted_5, _toDisplayString(_unref(contextLocale).Group.validate), 1 /* TEXT */)
293
291
  ]),
294
292
  default: _withCtx(() => [
295
- _hoisted_7
293
+ _cache[3] || (_cache[3] = _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* CACHED */))
296
294
  ]),
297
- _: 1 /* STABLE */
295
+ _: 1 /* STABLE */,
296
+ __: [3]
298
297
  }))
299
298
  : _createCommentVNode("v-if", true)
300
299
  ]))
@@ -18,7 +18,7 @@ export var useValidate = function useValidate(dataSource, columns, rowKey) {
18
18
  firstFields: true,
19
19
  index: index
20
20
  }, function (err) {
21
- if (err === null || err === void 0 ? void 0 : err.length) {
21
+ if (err !== null && err !== void 0 && err.length) {
22
22
  reject(err.map(function (item) {
23
23
  return _objectSpread(_objectSpread({}, item), {}, {
24
24
  __serial: data.__serial,
@@ -1,41 +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
- }
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
+ }
@@ -116,10 +116,11 @@ const __sfc_main__ = Object.assign({
116
116
  onSearch: search
117
117
  }),
118
118
  _createVNode(_component_a_button, { onClick: invert }, {
119
- default: _withCtx(() => [
120
- _createTextVNode("反转")
121
- ]),
122
- _: 1 /* STABLE */
119
+ default: _withCtx(() => _cache[0] || (_cache[0] = [
120
+ _createTextVNode("反转", -1 /* CACHED */)
121
+ ])),
122
+ _: 1 /* STABLE */,
123
+ __: [0]
123
124
  })
124
125
  ]),
125
126
  _: 1 /* STABLE */
@@ -8,8 +8,7 @@
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, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
12
- const _withScopeId = n => (_pushScopeId("data-v-1749203557114"), n = n(), _popScopeId(), n);
11
+ import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
13
12
  const _hoisted_1 = { class: "full-page-warp-content" };
14
13
  import { ref, inject } from 'vue';
15
14
  import { useElementBounding } from '@vueuse/core';
@@ -3,14 +3,13 @@
3
3
  "provide": "setup-const",
4
4
  "reactive": "setup-const",
5
5
  "watch": "setup-const",
6
- "defineOptions": "setup-const",
7
6
  "defaultLocal": "setup-maybe-ref",
8
7
  "props": "setup-reactive-const",
9
8
  "state": "setup-reactive-const"
10
9
  } */
11
10
  import { defineComponent as _defineComponent } from 'vue';
12
11
  import { renderSlot as _renderSlot } from "vue";
13
- import { provide, reactive, watch, } from "vue";
12
+ import { provide, reactive, watch } from "vue";
14
13
  import defaultLocal from '../locale/zh-CN';
15
14
  const __sfc_main__ = _defineComponent({
16
15
  ...{
@@ -1,11 +1,10 @@
1
- import _typeof from "@babel/runtime/helpers/esm/typeof";
2
1
  import _extends from "@babel/runtime/helpers/esm/extends";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
4
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
6
5
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
7
6
  var _excluded = ["popConfirm", "tooltip", "hasPermission", "noPermissionTitle"];
8
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
7
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
9
8
  import { h, defineComponent, computed, inject, getCurrentInstance, toRefs } from "vue";
10
9
  import { Button, Tooltip, Modal } from 'ant-design-vue/es/';
11
10
  import "ant-design-vue/es";
@@ -77,15 +76,15 @@ var PermissionButton = defineComponent({
77
76
  noPermissionTitle = props.noPermissionTitle,
78
77
  buttonProps = _objectWithoutProperties(props, _excluded);
79
78
  if (popConfirm) {
80
- buttonProps.onClick = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
79
+ buttonProps.onClick = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
81
80
  var _props$popConfirmBefo;
82
81
  var _popConfirm;
83
- return _regeneratorRuntime().wrap(function _callee$(_context) {
82
+ return _regeneratorRuntime.wrap(function (_context) {
84
83
  while (1) switch (_context.prev = _context.next) {
85
84
  case 0:
86
- _context.next = 2;
85
+ _context.next = 1;
87
86
  return ((_props$popConfirmBefo = props.popConfirmBefore) === null || _props$popConfirmBefo === void 0 ? void 0 : _props$popConfirmBefo.call(props)) || popConfirm;
88
- case 2:
87
+ case 1:
89
88
  _popConfirm = _context.sent;
90
89
  if (context.components) {
91
90
  confirm(_objectSpread(_objectSpread({}, _popConfirm), {}, {
@@ -105,7 +104,7 @@ var PermissionButton = defineComponent({
105
104
  }
106
105
  });
107
106
  }
108
- case 4:
107
+ case 2:
109
108
  case "end":
110
109
  return _context.stop();
111
110
  }