@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.
- package/es/AMap/Map.js +2 -1
- package/es/AutoComplete/AutoComplete.js +1 -0
- package/es/BadgeStatus/Badge.js +2 -1
- package/es/CardSelect/CardSelect.js +7 -1
- package/es/CardSelect/style/index.less +26 -26
- package/es/CheckButton/CheckButton.js +2 -1
- package/es/DragModal/DragModal.js +1 -0
- package/es/Echarts/Echarts.js +2 -1
- package/es/EditTable/EditTable.js +6 -4
- package/es/EditTable/FormItem.js +4 -9
- package/es/EditTable/Header.js +3 -5
- package/es/EditTable/components/ContextMenu/Menu.js +2 -1
- package/es/EditTable/components/Search/search.js +2 -1
- package/es/EditTable/components/Search/sort.js +3 -1
- package/es/EditTable/group.js +12 -11
- package/es/EditTable/hooks/useValidate.js +1 -1
- package/es/EditTable/style/form.less +33 -33
- package/es/EditTable/style/group.less +32 -32
- package/es/EditTable/style/header.less +77 -77
- package/es/EditTable/style/menu.less +25 -25
- package/es/EditTable/utils.js +30 -3
- package/es/Ellipsis/style/index.less +20 -20
- package/es/FlameGraph/FlameGraph.js +4 -5
- package/es/FullPage/FullPage.js +2 -1
- package/es/LocaleProvider/index.js +2 -1
- package/es/PermissionButton/index.js +7 -6
- package/es/ProLayout/Basic/BasicLayout.js +39 -34
- package/es/ProLayout/Basic/Header.js +7 -3
- package/es/ProLayout/PageContainer/index.js +12 -8
- package/es/ProLayout/SiderMenu/BaseMenu.js +39 -16
- package/es/ProLayout/SiderMenu/SiderMenu.js +34 -14
- package/es/ProLayout/SiderMenu/index.less +231 -231
- package/es/ProLayout/TopHeader/index.js +9 -1
- package/es/ProLayout/util.js +5 -5
- package/es/ProTable/Content.js +2 -2
- package/es/ProTable/hooks/index.js +2 -0
- package/es/RadioButton/RadioButton.js +1 -0
- package/es/Search/Advanced/SaveHistory.js +2 -1
- package/es/Search/Item.js +2 -1
- package/es/Title/title.js +1 -0
- package/es/style/index.css +1 -1
- package/lib/AMap/Map.js +2 -1
- package/lib/AutoComplete/AutoComplete.js +1 -0
- package/lib/BadgeStatus/Badge.js +2 -1
- package/lib/CardSelect/CardSelect.js +7 -1
- package/lib/CardSelect/style/index.less +26 -26
- package/lib/CheckButton/CheckButton.js +2 -1
- package/lib/DragModal/DragModal.js +1 -0
- package/lib/Echarts/Echarts.js +2 -1
- package/lib/EditTable/EditTable.js +6 -4
- package/lib/EditTable/FormItem.js +4 -9
- package/lib/EditTable/Header.js +3 -5
- package/lib/EditTable/components/ContextMenu/Menu.js +2 -1
- package/lib/EditTable/components/Search/search.js +2 -1
- package/lib/EditTable/components/Search/sort.js +3 -1
- package/lib/EditTable/group.js +12 -11
- package/lib/EditTable/hooks/useValidate.js +1 -1
- package/lib/EditTable/style/form.less +33 -33
- package/lib/EditTable/style/group.less +32 -32
- package/lib/EditTable/style/header.less +77 -77
- package/lib/EditTable/style/menu.less +25 -25
- package/lib/EditTable/utils.js +31 -3
- package/lib/Ellipsis/style/index.less +20 -20
- package/lib/FlameGraph/FlameGraph.js +4 -5
- package/lib/FullPage/FullPage.js +2 -1
- package/lib/Icon/icon.js +2 -1
- package/lib/LocaleProvider/index.js +2 -1
- package/lib/PermissionButton/index.js +7 -6
- package/lib/ProLayout/Basic/BasicLayout.js +40 -34
- package/lib/ProLayout/Basic/Header.js +6 -2
- package/lib/ProLayout/PageContainer/index.js +11 -7
- package/lib/ProLayout/SiderMenu/BaseMenu.js +39 -17
- package/lib/ProLayout/SiderMenu/SiderMenu.js +35 -14
- package/lib/ProLayout/SiderMenu/index.less +231 -231
- package/lib/ProLayout/TopHeader/index.js +9 -2
- package/lib/ProLayout/util.js +5 -5
- package/lib/ProTable/Content.js +2 -2
- package/lib/ProTable/hooks/index.js +27 -0
- package/lib/RadioButton/RadioButton.js +1 -0
- package/lib/Search/Advanced/SaveHistory.js +2 -1
- package/lib/Search/Item.js +2 -1
- package/lib/Title/title.js +1 -0
- package/lib/components.js +2 -1
- package/lib/index.js +2 -1
- package/lib/style/index.css +1 -1
- package/package.json +3 -3
|
@@ -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/lib/';
|
|
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",
|
package/lib/Echarts/Echarts.js
CHANGED
|
@@ -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
|
-
],
|
|
527
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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);
|
package/lib/EditTable/Header.js
CHANGED
|
@@ -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-1755080512733"), 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" };
|
package/lib/EditTable/group.js
CHANGED
|
@@ -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
|
|
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,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
|
-
|
|
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",
|
|
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",
|
|
292
|
+
_createElementVNode("span", _hoisted_6, _toDisplayString(_unref(contextLocale).Group.validate), 1 /* TEXT */)
|
|
291
293
|
]),
|
|
292
294
|
default: _withCtx(() => [
|
|
293
|
-
|
|
295
|
+
_hoisted_7
|
|
294
296
|
]),
|
|
295
|
-
_: 1 /* STABLE
|
|
296
|
-
__: [3]
|
|
297
|
+
_: 1 /* STABLE */
|
|
297
298
|
}))
|
|
298
299
|
: _createCommentVNode("v-if", true)
|
|
299
300
|
]))
|
|
@@ -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
|
|
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,
|
|
@@ -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
|
+
}
|
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
.jetlinks-edit-table-header-container {
|
|
2
|
-
height: 100%;
|
|
3
|
-
position: relative;
|
|
4
|
-
|
|
5
|
-
.jetlinks-edit-table-header-cell {
|
|
6
|
-
height: 100%;
|
|
7
|
-
display: inline-flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
float: left;
|
|
10
|
-
overflow: visible;
|
|
11
|
-
position: absolute;
|
|
12
|
-
top: 0;
|
|
13
|
-
|
|
14
|
-
.jetlinks-edit-table-header-cell-box {
|
|
15
|
-
padding: 0 12px;
|
|
16
|
-
width: 100%;
|
|
17
|
-
|
|
18
|
-
&.header-cell-box-tool {
|
|
19
|
-
display: flex;
|
|
20
|
-
justify-content: space-between;
|
|
21
|
-
align-items: center;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.table-header-cell-title {
|
|
25
|
-
flex: 1;
|
|
26
|
-
display: flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
font-weight: 600;
|
|
29
|
-
gap: 4px;
|
|
30
|
-
|
|
31
|
-
.cell-title-box {
|
|
32
|
-
flex: 1 1 auto;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.header-cell-required {
|
|
37
|
-
color: @error-color;
|
|
38
|
-
padding-left: 8px;
|
|
39
|
-
transform: translateY(3px);
|
|
40
|
-
font-weight: 500;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&::before {
|
|
44
|
-
position: absolute;
|
|
45
|
-
top: 50%;
|
|
46
|
-
right: 1px;
|
|
47
|
-
width: 1px;
|
|
48
|
-
height: 1.6em;
|
|
49
|
-
pointer-events: none;
|
|
50
|
-
background-color: rgba(0,0,0,.06);
|
|
51
|
-
transform: translateY(-50%);
|
|
52
|
-
transition: background-color .3s;
|
|
53
|
-
content: "";
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&:not(:last-child) {
|
|
57
|
-
&::before {
|
|
58
|
-
background-color: transparent;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.jetlinks-table-search {
|
|
66
|
-
.jetlinks-table-search-header {
|
|
67
|
-
display: flex;
|
|
68
|
-
justify-content: space-between;
|
|
69
|
-
.jetlinks-drag-modal-footer {
|
|
70
|
-
display: none;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.jetlinks-table-search-result-total {
|
|
74
|
-
color: @primary-color;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
1
|
+
.jetlinks-edit-table-header-container {
|
|
2
|
+
height: 100%;
|
|
3
|
+
position: relative;
|
|
4
|
+
|
|
5
|
+
.jetlinks-edit-table-header-cell {
|
|
6
|
+
height: 100%;
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
float: left;
|
|
10
|
+
overflow: visible;
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 0;
|
|
13
|
+
|
|
14
|
+
.jetlinks-edit-table-header-cell-box {
|
|
15
|
+
padding: 0 12px;
|
|
16
|
+
width: 100%;
|
|
17
|
+
|
|
18
|
+
&.header-cell-box-tool {
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
align-items: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.table-header-cell-title {
|
|
25
|
+
flex: 1;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
gap: 4px;
|
|
30
|
+
|
|
31
|
+
.cell-title-box {
|
|
32
|
+
flex: 1 1 auto;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.header-cell-required {
|
|
37
|
+
color: @error-color;
|
|
38
|
+
padding-left: 8px;
|
|
39
|
+
transform: translateY(3px);
|
|
40
|
+
font-weight: 500;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&::before {
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 50%;
|
|
46
|
+
right: 1px;
|
|
47
|
+
width: 1px;
|
|
48
|
+
height: 1.6em;
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
background-color: rgba(0,0,0,.06);
|
|
51
|
+
transform: translateY(-50%);
|
|
52
|
+
transition: background-color .3s;
|
|
53
|
+
content: "";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:not(:last-child) {
|
|
57
|
+
&::before {
|
|
58
|
+
background-color: transparent;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.jetlinks-table-search {
|
|
66
|
+
.jetlinks-table-search-header {
|
|
67
|
+
display: flex;
|
|
68
|
+
justify-content: space-between;
|
|
69
|
+
.jetlinks-drag-modal-footer {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.jetlinks-table-search-result-total {
|
|
74
|
+
color: @primary-color;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|