@jetlinks-web/components 2.6.8 → 2.6.9
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/EditTable/EditTable.js +7 -1
- package/es/EditTable/Header.js +1 -2
- package/es/EditTable/components/Search/search.js +21 -13
- package/es/EditTable/components/Search/sort.js +1 -1
- package/es/EditTable/props.js +0 -4
- package/es/FullPage/FullPage.js +1 -1
- package/es/Search/Advanced/SaveHistory.js +1 -1
- package/es/Search/Item.js +1 -1
- package/lib/EditTable/EditTable.js +7 -1
- package/lib/EditTable/Header.js +1 -2
- package/lib/EditTable/components/Search/search.js +21 -13
- package/lib/EditTable/components/Search/sort.js +1 -1
- package/lib/EditTable/props.js +0 -4
- package/lib/FullPage/FullPage.js +1 -1
- package/lib/Search/Advanced/SaveHistory.js +1 -1
- package/lib/Search/Item.js +1 -1
- package/package.json +3 -3
|
@@ -15,6 +15,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
15
15
|
}
|
|
16
16
|
} return value; }
|
|
17
17
|
/* Analyzed bindings: {
|
|
18
|
+
"searchColumns": "props",
|
|
18
19
|
"serial": "props",
|
|
19
20
|
"validateRowKey": "props",
|
|
20
21
|
"readonly": "props",
|
|
@@ -117,6 +118,10 @@ const __sfc_main__ = Object.assign({
|
|
|
117
118
|
props: {
|
|
118
119
|
...tableProps(),
|
|
119
120
|
...bodyProps(),
|
|
121
|
+
searchColumns: {
|
|
122
|
+
type: Array,
|
|
123
|
+
default: undefined
|
|
124
|
+
},
|
|
120
125
|
serial: {
|
|
121
126
|
type: [Object, Boolean],
|
|
122
127
|
default: () => ({
|
|
@@ -435,8 +440,9 @@ const __sfc_main__ = Object.assign({
|
|
|
435
440
|
}, [
|
|
436
441
|
_createVNode(Header, {
|
|
437
442
|
columns: myColumns.value,
|
|
443
|
+
searchColumns: __props.searchColumns,
|
|
438
444
|
style: _normalizeStyle({ width: tableStyle.width })
|
|
439
|
-
}, null, 8 /* PROPS */, ["columns", "style"])
|
|
445
|
+
}, null, 8 /* PROPS */, ["columns", "searchColumns", "style"])
|
|
440
446
|
], 4 /* STYLE */),
|
|
441
447
|
_createElementVNode("div", {
|
|
442
448
|
class: "jetlinks-edit-table-body",
|
package/es/EditTable/Header.js
CHANGED
|
@@ -128,10 +128,9 @@ const __sfc_main__ = Object.assign({
|
|
|
128
128
|
? (_openBlock(), _createBlock(_unref(SearchModal), {
|
|
129
129
|
key: 0,
|
|
130
130
|
searchKey: searchData.key,
|
|
131
|
-
rowKey: _ctx.rowKey,
|
|
132
131
|
columns: __props.searchColumns,
|
|
133
132
|
onClose: _cache[0] || (_cache[0] = $event => (searchData.visible = false))
|
|
134
|
-
}, null, 8 /* PROPS */, ["searchKey", "
|
|
133
|
+
}, null, 8 /* PROPS */, ["searchKey", "columns"]))
|
|
135
134
|
: _createCommentVNode("v-if", true)
|
|
136
135
|
], 4 /* STYLE */));
|
|
137
136
|
};
|
|
@@ -23,7 +23,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
23
23
|
"useTableTool": "setup-maybe-ref",
|
|
24
24
|
"useGroupOptions": "setup-maybe-ref",
|
|
25
25
|
"ref": "setup-const",
|
|
26
|
-
"
|
|
26
|
+
"computed": "setup-const",
|
|
27
27
|
"defineOptions": "setup-const",
|
|
28
28
|
"Ellipsis": "setup-const",
|
|
29
29
|
"DragModal": "setup-const",
|
|
@@ -47,7 +47,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
47
47
|
"tableHeight": "setup-ref",
|
|
48
48
|
"selectedRowKeys": "setup-ref",
|
|
49
49
|
"tableRef": "setup-ref",
|
|
50
|
-
"myColumns": "setup-
|
|
50
|
+
"myColumns": "setup-ref",
|
|
51
51
|
"selectedTableRow": "setup-const",
|
|
52
52
|
"handleFilterArray": "setup-const",
|
|
53
53
|
"search": "setup-const",
|
|
@@ -68,7 +68,7 @@ const _hoisted_6 = { key: 1 };
|
|
|
68
68
|
const _hoisted_7 = { class: "jetlinks-table-search-result-total" };
|
|
69
69
|
import Table from '../../EditTable.js';
|
|
70
70
|
import { useTableDataSource, useTableOpenGroup, useTableTool, useGroupOptions } from "../../context";
|
|
71
|
-
import { ref,
|
|
71
|
+
import { ref, computed, } from "vue";
|
|
72
72
|
import Ellipsis from '../../../Ellipsis/Ellipsis.js';
|
|
73
73
|
import DragModal from '../../../DragModal/DragModal.js';
|
|
74
74
|
import { useLocaleReceiver } from "../../../LocaleReciver/index";
|
|
@@ -103,16 +103,24 @@ const __sfc_main__ = Object.assign({
|
|
|
103
103
|
const tableHeight = ref(230);
|
|
104
104
|
const selectedRowKeys = ref([]);
|
|
105
105
|
const tableRef = ref();
|
|
106
|
-
const myColumns =
|
|
107
|
-
{
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
title: contextLocale.value.columns.name,
|
|
113
|
-
dataIndex: 'name',
|
|
106
|
+
const myColumns = computed(() => {
|
|
107
|
+
if (props.columns) {
|
|
108
|
+
return props.columns.map(item => ({
|
|
109
|
+
title: item.title,
|
|
110
|
+
dataIndex: item.dataIndex
|
|
111
|
+
}));
|
|
114
112
|
}
|
|
115
|
-
|
|
113
|
+
return [
|
|
114
|
+
{
|
|
115
|
+
title: contextLocale.value.columns.sign,
|
|
116
|
+
dataIndex: 'id',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
title: contextLocale.value.columns.name,
|
|
120
|
+
dataIndex: 'name',
|
|
121
|
+
}
|
|
122
|
+
];
|
|
123
|
+
});
|
|
116
124
|
const selectedTableRow = (record) => {
|
|
117
125
|
tableTool.scrollTo({
|
|
118
126
|
...record,
|
|
@@ -272,7 +280,7 @@ const __sfc_main__ = Object.assign({
|
|
|
272
280
|
ref_key: "tableRef",
|
|
273
281
|
ref: tableRef,
|
|
274
282
|
"data-source": filterArray.value,
|
|
275
|
-
columns:
|
|
283
|
+
columns: myColumns.value,
|
|
276
284
|
height: tableHeight.value,
|
|
277
285
|
disableMenu: false,
|
|
278
286
|
cellHeight: 36,
|
|
@@ -42,7 +42,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
42
42
|
"onDesc": "setup-const"
|
|
43
43
|
} */
|
|
44
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-
|
|
45
|
+
const _withScopeId = n => (_pushScopeId("data-v-1744361871270"), n = n(), _popScopeId(), n);
|
|
46
46
|
const _hoisted_1 = { class: "jetlinks-table-sort-content" };
|
|
47
47
|
const _hoisted_2 = { class: "jetlinks-table-sort-title" };
|
|
48
48
|
const _hoisted_3 = { class: "table-sort-body" };
|
package/es/EditTable/props.js
CHANGED
package/es/FullPage/FullPage.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
} */
|
|
10
10
|
import { defineComponent as _defineComponent } from 'vue';
|
|
11
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-
|
|
12
|
+
const _withScopeId = n => (_pushScopeId("data-v-1744361869037"), n = n(), _popScopeId(), n);
|
|
13
13
|
const _hoisted_1 = { class: "full-page-warp-content" };
|
|
14
14
|
import { ref, inject } from 'vue';
|
|
15
15
|
import { useElementBounding } from '@vueuse/core';
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
} */
|
|
24
24
|
import { defineComponent as _defineComponent } from 'vue';
|
|
25
25
|
import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
26
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
26
|
+
const _withScopeId = n => (_pushScopeId("data-v-1744361871107"), n = n(), _popScopeId(), n);
|
|
27
27
|
const _hoisted_1 = {
|
|
28
28
|
key: 0,
|
|
29
29
|
style: { "width": "240px" }
|
package/es/Search/Item.js
CHANGED
|
@@ -80,7 +80,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
80
80
|
} */
|
|
81
81
|
import { defineComponent as _defineComponent } from 'vue';
|
|
82
82
|
import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
83
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
83
|
+
const _withScopeId = n => (_pushScopeId("data-v-1744361870452"), n = n(), _popScopeId(), n);
|
|
84
84
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
85
85
|
const _hoisted_2 = {
|
|
86
86
|
key: 0,
|
|
@@ -15,6 +15,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
15
15
|
}
|
|
16
16
|
} return value; }
|
|
17
17
|
/* Analyzed bindings: {
|
|
18
|
+
"searchColumns": "props",
|
|
18
19
|
"serial": "props",
|
|
19
20
|
"validateRowKey": "props",
|
|
20
21
|
"readonly": "props",
|
|
@@ -117,6 +118,10 @@ const __sfc_main__ = Object.assign({
|
|
|
117
118
|
props: {
|
|
118
119
|
...tableProps(),
|
|
119
120
|
...bodyProps(),
|
|
121
|
+
searchColumns: {
|
|
122
|
+
type: Array,
|
|
123
|
+
default: undefined
|
|
124
|
+
},
|
|
120
125
|
serial: {
|
|
121
126
|
type: [Object, Boolean],
|
|
122
127
|
default: () => ({
|
|
@@ -435,8 +440,9 @@ const __sfc_main__ = Object.assign({
|
|
|
435
440
|
}, [
|
|
436
441
|
_createVNode(Header, {
|
|
437
442
|
columns: myColumns.value,
|
|
443
|
+
searchColumns: __props.searchColumns,
|
|
438
444
|
style: _normalizeStyle({ width: tableStyle.width })
|
|
439
|
-
}, null, 8 /* PROPS */, ["columns", "style"])
|
|
445
|
+
}, null, 8 /* PROPS */, ["columns", "searchColumns", "style"])
|
|
440
446
|
], 4 /* STYLE */),
|
|
441
447
|
_createElementVNode("div", {
|
|
442
448
|
class: "jetlinks-edit-table-body",
|
package/lib/EditTable/Header.js
CHANGED
|
@@ -128,10 +128,9 @@ const __sfc_main__ = Object.assign({
|
|
|
128
128
|
? (_openBlock(), _createBlock(_unref(SearchModal), {
|
|
129
129
|
key: 0,
|
|
130
130
|
searchKey: searchData.key,
|
|
131
|
-
rowKey: _ctx.rowKey,
|
|
132
131
|
columns: __props.searchColumns,
|
|
133
132
|
onClose: _cache[0] || (_cache[0] = $event => (searchData.visible = false))
|
|
134
|
-
}, null, 8 /* PROPS */, ["searchKey", "
|
|
133
|
+
}, null, 8 /* PROPS */, ["searchKey", "columns"]))
|
|
135
134
|
: _createCommentVNode("v-if", true)
|
|
136
135
|
], 4 /* STYLE */));
|
|
137
136
|
};
|
|
@@ -23,7 +23,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
23
23
|
"useTableTool": "setup-maybe-ref",
|
|
24
24
|
"useGroupOptions": "setup-maybe-ref",
|
|
25
25
|
"ref": "setup-const",
|
|
26
|
-
"
|
|
26
|
+
"computed": "setup-const",
|
|
27
27
|
"defineOptions": "setup-const",
|
|
28
28
|
"Ellipsis": "setup-const",
|
|
29
29
|
"DragModal": "setup-const",
|
|
@@ -47,7 +47,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
47
47
|
"tableHeight": "setup-ref",
|
|
48
48
|
"selectedRowKeys": "setup-ref",
|
|
49
49
|
"tableRef": "setup-ref",
|
|
50
|
-
"myColumns": "setup-
|
|
50
|
+
"myColumns": "setup-ref",
|
|
51
51
|
"selectedTableRow": "setup-const",
|
|
52
52
|
"handleFilterArray": "setup-const",
|
|
53
53
|
"search": "setup-const",
|
|
@@ -68,7 +68,7 @@ const _hoisted_6 = { key: 1 };
|
|
|
68
68
|
const _hoisted_7 = { class: "jetlinks-table-search-result-total" };
|
|
69
69
|
import Table from '../../EditTable.js';
|
|
70
70
|
import { useTableDataSource, useTableOpenGroup, useTableTool, useGroupOptions } from "../../context";
|
|
71
|
-
import { ref,
|
|
71
|
+
import { ref, computed, } from "vue";
|
|
72
72
|
import Ellipsis from '../../../Ellipsis/Ellipsis.js';
|
|
73
73
|
import DragModal from '../../../DragModal/DragModal.js';
|
|
74
74
|
import { useLocaleReceiver } from "../../../LocaleReciver/index";
|
|
@@ -103,16 +103,24 @@ const __sfc_main__ = Object.assign({
|
|
|
103
103
|
const tableHeight = ref(230);
|
|
104
104
|
const selectedRowKeys = ref([]);
|
|
105
105
|
const tableRef = ref();
|
|
106
|
-
const myColumns =
|
|
107
|
-
{
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
title: contextLocale.value.columns.name,
|
|
113
|
-
dataIndex: 'name',
|
|
106
|
+
const myColumns = computed(() => {
|
|
107
|
+
if (props.columns) {
|
|
108
|
+
return props.columns.map(item => ({
|
|
109
|
+
title: item.title,
|
|
110
|
+
dataIndex: item.dataIndex
|
|
111
|
+
}));
|
|
114
112
|
}
|
|
115
|
-
|
|
113
|
+
return [
|
|
114
|
+
{
|
|
115
|
+
title: contextLocale.value.columns.sign,
|
|
116
|
+
dataIndex: 'id',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
title: contextLocale.value.columns.name,
|
|
120
|
+
dataIndex: 'name',
|
|
121
|
+
}
|
|
122
|
+
];
|
|
123
|
+
});
|
|
116
124
|
const selectedTableRow = (record) => {
|
|
117
125
|
tableTool.scrollTo({
|
|
118
126
|
...record,
|
|
@@ -272,7 +280,7 @@ const __sfc_main__ = Object.assign({
|
|
|
272
280
|
ref_key: "tableRef",
|
|
273
281
|
ref: tableRef,
|
|
274
282
|
"data-source": filterArray.value,
|
|
275
|
-
columns:
|
|
283
|
+
columns: myColumns.value,
|
|
276
284
|
height: tableHeight.value,
|
|
277
285
|
disableMenu: false,
|
|
278
286
|
cellHeight: 36,
|
|
@@ -42,7 +42,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
42
42
|
"onDesc": "setup-const"
|
|
43
43
|
} */
|
|
44
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-
|
|
45
|
+
const _withScopeId = n => (_pushScopeId("data-v-1744361871288"), n = n(), _popScopeId(), n);
|
|
46
46
|
const _hoisted_1 = { class: "jetlinks-table-sort-content" };
|
|
47
47
|
const _hoisted_2 = { class: "jetlinks-table-sort-title" };
|
|
48
48
|
const _hoisted_3 = { class: "table-sort-body" };
|
package/lib/EditTable/props.js
CHANGED
package/lib/FullPage/FullPage.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
} */
|
|
10
10
|
import { defineComponent as _defineComponent } from 'vue';
|
|
11
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-
|
|
12
|
+
const _withScopeId = n => (_pushScopeId("data-v-1744361869027"), n = n(), _popScopeId(), n);
|
|
13
13
|
const _hoisted_1 = { class: "full-page-warp-content" };
|
|
14
14
|
import { ref, inject } from 'vue';
|
|
15
15
|
import { useElementBounding } from '@vueuse/core';
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
} */
|
|
24
24
|
import { defineComponent as _defineComponent } from 'vue';
|
|
25
25
|
import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
26
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
26
|
+
const _withScopeId = n => (_pushScopeId("data-v-1744361871121"), n = n(), _popScopeId(), n);
|
|
27
27
|
const _hoisted_1 = {
|
|
28
28
|
key: 0,
|
|
29
29
|
style: { "width": "240px" }
|
package/lib/Search/Item.js
CHANGED
|
@@ -80,7 +80,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
80
80
|
} */
|
|
81
81
|
import { defineComponent as _defineComponent } from 'vue';
|
|
82
82
|
import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
83
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
83
|
+
const _withScopeId = n => (_pushScopeId("data-v-1744361870525"), n = n(), _popScopeId(), n);
|
|
84
84
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
85
85
|
const _hoisted_2 = {
|
|
86
86
|
key: 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetlinks-web/components",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -158,9 +158,9 @@
|
|
|
158
158
|
"webpack-dev-server": "^4.0.0",
|
|
159
159
|
"webpack-merge": "^5.0.0",
|
|
160
160
|
"webpackbar": "^5.0.2",
|
|
161
|
-
"@jetlinks-web/
|
|
161
|
+
"@jetlinks-web/constants": "^1.0.9",
|
|
162
162
|
"@jetlinks-web/hooks": "^1.0.25",
|
|
163
|
-
"@jetlinks-web/
|
|
163
|
+
"@jetlinks-web/utils": "^1.2.8"
|
|
164
164
|
},
|
|
165
165
|
"publishConfig": {
|
|
166
166
|
"registry": "https://registry.npmjs.org/",
|