@jetlinks-web/components 2.6.14 → 2.6.16
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/AutoComplete/AutoComplete.js +13 -8
- package/es/EditTable/components/Search/sort.js +1 -1
- package/es/FullPage/FullPage.js +1 -1
- package/es/Search/Advanced/SaveHistory.js +1 -1
- package/es/Search/Item.js +1 -1
- package/lib/AutoComplete/AutoComplete.js +13 -8
- package/lib/EditTable/components/Search/sort.js +1 -1
- 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 +1 -1
|
@@ -20,9 +20,10 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
20
20
|
"autoCompleteProps": "setup-maybe-ref",
|
|
21
21
|
"ref": "setup-const",
|
|
22
22
|
"defineOptions": "setup-const",
|
|
23
|
+
"watch": "setup-const",
|
|
23
24
|
"props": "setup-reactive-const",
|
|
24
25
|
"emit": "setup-const",
|
|
25
|
-
"
|
|
26
|
+
"_options": "setup-ref",
|
|
26
27
|
"onSearch": "setup-const",
|
|
27
28
|
"dropdownVisibleChange": "setup-const"
|
|
28
29
|
} */
|
|
@@ -30,7 +31,7 @@ import { defineComponent as _defineComponent } from 'vue';
|
|
|
30
31
|
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, unref as _unref, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
31
32
|
import { AutoComplete } from 'ant-design-vue';
|
|
32
33
|
import { autoCompleteProps } from 'ant-design-vue/lib/auto-complete';
|
|
33
|
-
import { ref, } from 'vue';
|
|
34
|
+
import { ref, watch } from 'vue';
|
|
34
35
|
const __sfc_main__ = _defineComponent({
|
|
35
36
|
...{
|
|
36
37
|
name: 'JAutoComplete'
|
|
@@ -46,29 +47,33 @@ const __sfc_main__ = _defineComponent({
|
|
|
46
47
|
setup(__props, { emit: __emit }) {
|
|
47
48
|
const props = __props;
|
|
48
49
|
const emit = __emit;
|
|
49
|
-
const
|
|
50
|
+
const _options = ref([]);
|
|
50
51
|
/**
|
|
51
52
|
* 根据关键词提示
|
|
52
53
|
* @param searchText 关键词
|
|
53
54
|
*/
|
|
54
55
|
const onSearch = (searchText) => {
|
|
55
|
-
|
|
56
|
-
if (!
|
|
57
|
-
|
|
56
|
+
_options.value = _optionalChain([props, 'access', _2 => _2.options, 'optionalAccess', _3 => _3.filter, 'call', _4 => _4((item) => !!_optionalChain([item, 'access', _5 => _5[props.searchKey], 'optionalAccess', _6 => _6.includes, 'call', _7 => _7(searchText)]))]) || [];
|
|
57
|
+
if (!_options.value.length) {
|
|
58
|
+
_options.value.unshift({ label: searchText, value: searchText });
|
|
58
59
|
}
|
|
59
60
|
};
|
|
60
61
|
const dropdownVisibleChange = (open) => {
|
|
61
62
|
if (!open) {
|
|
62
63
|
// 关闭还原下拉options
|
|
63
64
|
setTimeout(() => {
|
|
64
|
-
|
|
65
|
+
_options.value = props.options || [];
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
68
|
};
|
|
69
|
+
watch(() => JSON.stringify(props.options), // 处理options变化
|
|
70
|
+
() => {
|
|
71
|
+
_options.value = props.options || [];
|
|
72
|
+
}, { immediate: true });
|
|
68
73
|
return (_ctx, _cache) => {
|
|
69
74
|
return (_openBlock(), _createBlock(_unref(AutoComplete), _mergeProps(props, {
|
|
70
75
|
style: { "width": "100%" },
|
|
71
|
-
options:
|
|
76
|
+
options: _options.value,
|
|
72
77
|
onSearch: onSearch,
|
|
73
78
|
onDropdownVisibleChange: dropdownVisibleChange
|
|
74
79
|
}), {
|
|
@@ -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-1747880344630"), 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/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-1747880342767"), 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-1747880344354"), 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-1747880343786"), n = n(), _popScopeId(), n);
|
|
84
84
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
85
85
|
const _hoisted_2 = {
|
|
86
86
|
key: 0,
|
|
@@ -20,9 +20,10 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
20
20
|
"autoCompleteProps": "setup-maybe-ref",
|
|
21
21
|
"ref": "setup-const",
|
|
22
22
|
"defineOptions": "setup-const",
|
|
23
|
+
"watch": "setup-const",
|
|
23
24
|
"props": "setup-reactive-const",
|
|
24
25
|
"emit": "setup-const",
|
|
25
|
-
"
|
|
26
|
+
"_options": "setup-ref",
|
|
26
27
|
"onSearch": "setup-const",
|
|
27
28
|
"dropdownVisibleChange": "setup-const"
|
|
28
29
|
} */
|
|
@@ -30,7 +31,7 @@ import { defineComponent as _defineComponent } from 'vue';
|
|
|
30
31
|
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, unref as _unref, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
31
32
|
import { AutoComplete } from 'ant-design-vue';
|
|
32
33
|
import { autoCompleteProps } from 'ant-design-vue/lib/auto-complete';
|
|
33
|
-
import { ref, } from 'vue';
|
|
34
|
+
import { ref, watch } from 'vue';
|
|
34
35
|
const __sfc_main__ = _defineComponent({
|
|
35
36
|
...{
|
|
36
37
|
name: 'JAutoComplete'
|
|
@@ -46,29 +47,33 @@ const __sfc_main__ = _defineComponent({
|
|
|
46
47
|
setup(__props, { emit: __emit }) {
|
|
47
48
|
const props = __props;
|
|
48
49
|
const emit = __emit;
|
|
49
|
-
const
|
|
50
|
+
const _options = ref([]);
|
|
50
51
|
/**
|
|
51
52
|
* 根据关键词提示
|
|
52
53
|
* @param searchText 关键词
|
|
53
54
|
*/
|
|
54
55
|
const onSearch = (searchText) => {
|
|
55
|
-
|
|
56
|
-
if (!
|
|
57
|
-
|
|
56
|
+
_options.value = _optionalChain([props, 'access', _2 => _2.options, 'optionalAccess', _3 => _3.filter, 'call', _4 => _4((item) => !!_optionalChain([item, 'access', _5 => _5[props.searchKey], 'optionalAccess', _6 => _6.includes, 'call', _7 => _7(searchText)]))]) || [];
|
|
57
|
+
if (!_options.value.length) {
|
|
58
|
+
_options.value.unshift({ label: searchText, value: searchText });
|
|
58
59
|
}
|
|
59
60
|
};
|
|
60
61
|
const dropdownVisibleChange = (open) => {
|
|
61
62
|
if (!open) {
|
|
62
63
|
// 关闭还原下拉options
|
|
63
64
|
setTimeout(() => {
|
|
64
|
-
|
|
65
|
+
_options.value = props.options || [];
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
68
|
};
|
|
69
|
+
watch(() => JSON.stringify(props.options), // 处理options变化
|
|
70
|
+
() => {
|
|
71
|
+
_options.value = props.options || [];
|
|
72
|
+
}, { immediate: true });
|
|
68
73
|
return (_ctx, _cache) => {
|
|
69
74
|
return (_openBlock(), _createBlock(_unref(AutoComplete), _mergeProps(props, {
|
|
70
75
|
style: { "width": "100%" },
|
|
71
|
-
options:
|
|
76
|
+
options: _options.value,
|
|
72
77
|
onSearch: onSearch,
|
|
73
78
|
onDropdownVisibleChange: dropdownVisibleChange
|
|
74
79
|
}), {
|
|
@@ -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-1747880344647"), 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/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-1747880342776"), 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-1747880344365"), 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-1747880343847"), n = n(), _popScopeId(), n);
|
|
84
84
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
85
85
|
const _hoisted_2 = {
|
|
86
86
|
key: 0,
|