@jetlinks-web/components 2.6.24 → 2.6.27

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 (86) 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 +7 -1
  5. package/es/CardSelect/style/index.less +26 -26
  6. package/es/CheckButton/CheckButton.js +2 -1
  7. package/es/DragModal/DragModal.js +1 -0
  8. package/es/Echarts/Echarts.js +2 -1
  9. package/es/EditTable/EditTable.js +6 -4
  10. package/es/EditTable/FormItem.js +4 -9
  11. package/es/EditTable/Header.js +3 -5
  12. package/es/EditTable/components/ContextMenu/Menu.js +2 -1
  13. package/es/EditTable/components/Search/search.js +2 -1
  14. package/es/EditTable/components/Search/sort.js +3 -1
  15. package/es/EditTable/group.js +12 -11
  16. package/es/EditTable/hooks/useValidate.js +1 -1
  17. package/es/EditTable/style/form.less +33 -33
  18. package/es/EditTable/style/group.less +32 -32
  19. package/es/EditTable/style/header.less +77 -77
  20. package/es/EditTable/style/menu.less +25 -25
  21. package/es/EditTable/utils.js +30 -3
  22. package/es/Ellipsis/style/index.less +20 -20
  23. package/es/FlameGraph/FlameGraph.js +4 -5
  24. package/es/FullPage/FullPage.js +2 -1
  25. package/es/LocaleProvider/index.js +2 -1
  26. package/es/PermissionButton/index.js +7 -6
  27. package/es/ProLayout/Basic/BasicLayout.js +39 -34
  28. package/es/ProLayout/Basic/Header.js +7 -3
  29. package/es/ProLayout/PageContainer/index.js +12 -8
  30. package/es/ProLayout/SiderMenu/BaseMenu.js +39 -16
  31. package/es/ProLayout/SiderMenu/SiderMenu.js +34 -14
  32. package/es/ProLayout/SiderMenu/index.less +231 -231
  33. package/es/ProLayout/TopHeader/index.js +9 -1
  34. package/es/ProLayout/util.js +5 -5
  35. package/es/ProTable/Content.js +2 -2
  36. package/es/ProTable/hooks/index.js +2 -0
  37. package/es/RadioButton/RadioButton.js +1 -0
  38. package/es/Search/Advanced/SaveHistory.js +2 -1
  39. package/es/Search/Item.js +2 -1
  40. package/es/Title/title.js +1 -0
  41. package/es/style/index.css +1 -1
  42. package/lib/AMap/Map.js +2 -1
  43. package/lib/AutoComplete/AutoComplete.js +1 -0
  44. package/lib/BadgeStatus/Badge.js +2 -1
  45. package/lib/CardSelect/CardSelect.js +7 -1
  46. package/lib/CardSelect/style/index.less +26 -26
  47. package/lib/CheckButton/CheckButton.js +2 -1
  48. package/lib/DragModal/DragModal.js +1 -0
  49. package/lib/Echarts/Echarts.js +2 -1
  50. package/lib/EditTable/EditTable.js +6 -4
  51. package/lib/EditTable/FormItem.js +4 -9
  52. package/lib/EditTable/Header.js +3 -5
  53. package/lib/EditTable/components/ContextMenu/Menu.js +2 -1
  54. package/lib/EditTable/components/Search/search.js +2 -1
  55. package/lib/EditTable/components/Search/sort.js +3 -1
  56. package/lib/EditTable/group.js +12 -11
  57. package/lib/EditTable/hooks/useValidate.js +1 -1
  58. package/lib/EditTable/style/form.less +33 -33
  59. package/lib/EditTable/style/group.less +32 -32
  60. package/lib/EditTable/style/header.less +77 -77
  61. package/lib/EditTable/style/menu.less +25 -25
  62. package/lib/EditTable/utils.js +31 -3
  63. package/lib/Ellipsis/style/index.less +20 -20
  64. package/lib/FlameGraph/FlameGraph.js +4 -5
  65. package/lib/FullPage/FullPage.js +2 -1
  66. package/lib/Icon/icon.js +2 -1
  67. package/lib/LocaleProvider/index.js +2 -1
  68. package/lib/PermissionButton/index.js +7 -6
  69. package/lib/ProLayout/Basic/BasicLayout.js +40 -34
  70. package/lib/ProLayout/Basic/Header.js +6 -2
  71. package/lib/ProLayout/PageContainer/index.js +11 -7
  72. package/lib/ProLayout/SiderMenu/BaseMenu.js +39 -17
  73. package/lib/ProLayout/SiderMenu/SiderMenu.js +35 -14
  74. package/lib/ProLayout/SiderMenu/index.less +231 -231
  75. package/lib/ProLayout/TopHeader/index.js +9 -2
  76. package/lib/ProLayout/util.js +5 -5
  77. package/lib/ProTable/Content.js +2 -2
  78. package/lib/ProTable/hooks/index.js +27 -0
  79. package/lib/RadioButton/RadioButton.js +1 -0
  80. package/lib/Search/Advanced/SaveHistory.js +2 -1
  81. package/lib/Search/Item.js +2 -1
  82. package/lib/Title/title.js +1 -0
  83. package/lib/components.js +2 -1
  84. package/lib/index.js +2 -1
  85. package/lib/style/index.css +1 -1
  86. package/package.json +3 -3
package/es/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/es/';
16
17
  const __sfc_main__ = _defineComponent({
@@ -10,9 +10,12 @@
10
10
  "computed": "setup-const",
11
11
  "ref": "setup-const",
12
12
  "watch": "setup-const",
13
+ "defineOptions": "setup-const",
14
+ "Form": "setup-maybe-ref",
13
15
  "props": "setup-reactive-const",
14
16
  "emit": "setup-const",
15
17
  "selectKeys": "setup-ref",
18
+ "formItemContext": "setup-maybe-ref",
16
19
  "CardSelectStyle": "setup-ref",
17
20
  "isMultiple": "setup-ref",
18
21
  "handleSelect": "setup-const"
@@ -23,7 +26,8 @@ const _hoisted_2 = { class: "j-card-select-item-content" };
23
26
  const _hoisted_3 = { class: "j-card-select-title" };
24
27
  const _hoisted_4 = { class: "j-card-select-describe" };
25
28
  import { has } from 'lodash-es';
26
- import { computed, ref, watch } from 'vue';
29
+ import { computed, ref, watch, } from 'vue';
30
+ import { Form } from 'ant-design-vue/es/';
27
31
  const __sfc_main__ = Object.assign({
28
32
  name: 'JCardSelect'
29
33
  }, {
@@ -62,6 +66,7 @@ const __sfc_main__ = Object.assign({
62
66
  const props = __props;
63
67
  const emit = __emit;
64
68
  const selectKeys = ref([]);
69
+ const formItemContext = Form.useInjectFormItemContext();
65
70
  const CardSelectStyle = computed(() => {
66
71
  const _column = props.column > 0 && props.layout === 'horizontal' ? props.column : 1;
67
72
  return {
@@ -96,6 +101,7 @@ const __sfc_main__ = Object.assign({
96
101
  emit('change', key, node);
97
102
  emit('update:value', key);
98
103
  }
104
+ formItemContext.onFieldChange();
99
105
  };
100
106
  watch(() => props.value, () => {
101
107
  selectKeys.value = isMultiple.value ? (props.value || []) : [props.value];
@@ -1,26 +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
- }
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
  ...{
@@ -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",
@@ -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",
@@ -88,18 +89,12 @@ const __sfc_main__ = Object.assign({
88
89
  });
89
90
  const filedId = computed(() => {
90
91
  const names = isArray(props.name) ? props.name : [props.name];
91
- return names.join('_');
92
+ const [index, ...extra] = names;
93
+ return `${index}-${extra.join('.')}`;
92
94
  });
93
95
  const filedName = computed(() => {
94
96
  const names = isArray(props.name) ? props.name : [props.name];
95
- const _rules = context.rules.value;
96
- let tempKey = undefined;
97
- for (const key of names) {
98
- if (key in _rules) {
99
- tempKey = key;
100
- }
101
- }
102
- return tempKey;
97
+ return [...names].pop();
103
98
  });
104
99
  const filedValue = computed(() => {
105
100
  return get(context.dataSource.value, props.name);
@@ -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/es/';
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-1755080512757"), 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/es/";
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,17 +270,16 @@ 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
- _: 1 /* STABLE */,
273
- __: [2]
275
+ _: 1 /* STABLE */
274
276
  }))
275
277
  : _createCommentVNode("v-if", true)
276
278
  ])
277
279
  ]),
278
280
  _: 2 /* DYNAMIC */
279
281
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["getPopupContainer", "disabled"]))
280
- : (_openBlock(), _createElementBlock("div", _hoisted_4, [
282
+ : (_openBlock(), _createElementBlock("div", _hoisted_5, [
281
283
  _createTextVNode(_toDisplayString(item.label) + " (" + _toDisplayString(item.effective) + ") ", 1 /* TEXT */),
282
284
  (_unref(errorMap)[item.value])
283
285
  ? (_openBlock(), _createBlock(_component_a_tooltip, {
@@ -287,13 +289,12 @@ const __sfc_main__ = Object.assign({
287
289
  getContainer: popContainer
288
290
  }, {
289
291
  title: _withCtx(() => [
290
- _createElementVNode("span", _hoisted_5, _toDisplayString(_unref(contextLocale).Group.validate), 1 /* TEXT */)
292
+ _createElementVNode("span", _hoisted_6, _toDisplayString(_unref(contextLocale).Group.validate), 1 /* TEXT */)
291
293
  ]),
292
294
  default: _withCtx(() => [
293
- _cache[3] || (_cache[3] = _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* CACHED */))
295
+ _hoisted_7
294
296
  ]),
295
- _: 1 /* STABLE */,
296
- __: [3]
297
+ _: 1 /* STABLE */
297
298
  }))
298
299
  : _createCommentVNode("v-if", true)
299
300
  ]))
@@ -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 && err.length) {
21
+ if (err === null || err === void 0 ? void 0 : err.length) {
22
22
  reject(err.map(function (item) {
23
23
  return _objectSpread(_objectSpread({}, item), {}, {
24
24
  __serial: data.__serial,
@@ -1,33 +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
- }
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
+ }
@@ -1,32 +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
- }
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
+ }