@jetlinks-web/components 2.7.0 → 3.0.0
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 +2 -3
- package/es/BadgeStatus/Badge.js +2 -3
- package/es/CardSelect/CardSelect.js +23 -18
- package/es/CardSelect/style/index.js +25 -1
- package/es/CheckButton/CheckButton.js +12 -4
- package/es/CheckButton/style/index.js +41 -1
- package/es/ConfigProvider/index.js +1 -1
- package/es/DragModal/DragModal.js +15 -9
- package/es/DragModal/style/index.js +64 -1
- package/es/EditTable/Body.js +10 -3
- package/es/EditTable/EditTable.js +14 -8
- package/es/EditTable/FormItem.js +15 -10
- package/es/EditTable/Header.js +16 -6
- package/es/EditTable/components/ContextMenu/Menu.js +12 -6
- package/es/EditTable/components/Search/search.js +1 -2
- package/es/EditTable/components/Search/sort.js +1 -3
- package/es/EditTable/group.js +24 -19
- package/es/EditTable/hooks/useValidate.js +1 -1
- package/es/EditTable/style/body.js +53 -0
- package/es/EditTable/style/form.js +24 -0
- package/es/EditTable/style/group.js +25 -0
- package/es/EditTable/style/header.js +58 -0
- package/es/EditTable/style/index.js +42 -1
- package/es/EditTable/style/menu.js +27 -0
- package/es/EditTable/style/table.js +46 -0
- package/es/EditTable/utils.js +1 -1
- package/es/Ellipsis/Ellipsis.js +11 -3
- package/es/Ellipsis/style/index.js +24 -1
- package/es/Empty/Empty.js +1 -1
- package/es/FullPage/FullPage.js +1 -2
- package/es/LocaleProvider/index.js +1 -2
- package/es/PermissionButton/index.js +4 -5
- package/es/ProLayout/Basic/BasicLayout.js +46 -42
- package/es/ProLayout/Basic/BasicLayoutStyle.js +39 -0
- package/es/ProLayout/Basic/Header.js +4 -8
- package/es/ProLayout/Basic/HeaderStyle.js +10 -0
- package/es/ProLayout/PageContainer/index.js +20 -16
- package/es/ProLayout/PageContainer/style.js +46 -0
- package/es/ProLayout/SiderMenu/BaseMenu.js +14 -37
- package/es/ProLayout/SiderMenu/SiderMenu.js +25 -36
- package/es/ProLayout/SiderMenu/style.js +166 -0
- package/es/ProLayout/TopHeader/index.js +12 -11
- package/es/ProLayout/TopHeader/style.js +126 -0
- package/es/ProLayout/style/index.js +7 -1
- package/es/ProLayout/util.js +5 -5
- package/es/ProTable/Alert.js +13 -5
- package/es/ProTable/Content.js +22 -14
- package/es/ProTable/Header.js +22 -12
- package/es/ProTable/Pagination.js +13 -5
- package/es/ProTable/ProTable.js +43 -27
- package/es/ProTable/setting.js +1 -1
- package/es/ProTable/style/index.js +109 -1
- package/es/RadioButton/RadioButton.js +10 -4
- package/es/RadioButton/style/index.js +23 -1
- package/es/Scrollbar/Scrollbar.js +10 -3
- package/es/Scrollbar/Thumb.js +36 -25
- package/es/Scrollbar/style/index.js +63 -1
- package/es/Search/Advanced/History.js +24 -17
- package/es/Search/Advanced/SaveHistory.js +2 -3
- package/es/Search/Advanced/index.js +213 -293
- package/es/Search/Item.js +175 -415
- package/es/Search/Search.js +78 -172
- package/es/Search/hooks/index.js +108 -1
- package/es/Search/hooks/useRouteQuery.js +57 -0
- package/es/Search/setting.js +132 -14
- package/es/Search/style/index.js +4 -2
- package/es/Search/style/item.js +28 -0
- package/es/Search/style/search.js +133 -0
- package/es/Search/util.js +116 -124
- package/es/Skeleton/components/DashBoardCard.js +64 -0
- package/es/Skeleton/components/DashBoardChart.js +96 -0
- package/es/Skeleton/components/Detail.js +110 -0
- package/es/Skeleton/components/Drawer.js +91 -0
- package/es/Skeleton/components/Item.js +68 -0
- package/es/Skeleton/components/List.js +45 -0
- package/es/Skeleton/components/ListCard.js +63 -0
- package/es/Skeleton/components/ListCardItem.js +86 -0
- package/es/Skeleton/components/ListTable.js +76 -0
- package/es/Skeleton/components/Page.js +62 -0
- package/es/Skeleton/components/Search.js +54 -0
- package/es/Skeleton/components/Tree.js +72 -0
- package/es/Skeleton/index.js +15 -0
- package/es/Skeleton/skeleton.js +58 -0
- package/es/Skeleton/style/index.js +132 -0
- package/es/Title/style/index.js +29 -1
- package/es/Title/title.js +13 -5
- package/es/ValueItem/ValueItem.js +29 -72
- package/es/components.js +0 -3
- package/es/locale/en-US.js +0 -7
- package/es/locale/zh-CN.js +0 -7
- package/es/style/index.js +0 -3
- package/es/style/styleRegister.js +21 -0
- package/es/style/variable.js +4 -0
- package/es/style.js +0 -12
- package/lib/AutoComplete/AutoComplete.js +1 -2
- package/lib/BadgeStatus/Badge.js +2 -3
- package/lib/CardSelect/CardSelect.js +23 -18
- package/lib/CardSelect/style/index.js +30 -1
- package/lib/CheckButton/CheckButton.js +12 -4
- package/lib/CheckButton/style/index.js +46 -1
- package/lib/ConfigProvider/context.js +1 -1
- package/lib/ConfigProvider/index.js +3 -3
- package/lib/DragModal/DragModal.js +15 -9
- package/lib/DragModal/style/index.js +69 -1
- package/lib/EditTable/Body.js +10 -3
- package/lib/EditTable/EditTable.js +13 -7
- package/lib/EditTable/FormItem.js +16 -11
- package/lib/EditTable/Header.js +16 -6
- package/lib/EditTable/components/ContextMenu/Menu.js +12 -6
- package/lib/EditTable/components/Search/search.js +1 -2
- package/lib/EditTable/components/Search/sort.js +1 -3
- package/lib/EditTable/group.js +24 -19
- package/lib/EditTable/hooks/useValidate.js +1 -1
- package/lib/EditTable/style/body.js +60 -0
- package/lib/EditTable/style/form.js +31 -0
- package/lib/EditTable/style/group.js +32 -0
- package/lib/EditTable/style/header.js +65 -0
- package/lib/EditTable/style/index.js +47 -1
- package/lib/EditTable/style/menu.js +33 -0
- package/lib/EditTable/style/table.js +52 -0
- package/lib/EditTable/utils.js +1 -1
- package/lib/Ellipsis/Ellipsis.js +11 -3
- package/lib/Ellipsis/style/index.js +29 -1
- package/lib/Empty/Empty.js +1 -1
- package/lib/FullPage/FullPage.js +1 -2
- package/lib/LocaleProvider/index.js +1 -2
- package/lib/PermissionButton/index.js +9 -10
- package/lib/ProLayout/Basic/BasicLayout.js +55 -51
- package/lib/ProLayout/Basic/BasicLayoutStyle.js +46 -0
- package/lib/ProLayout/Basic/Header.js +6 -10
- package/lib/ProLayout/Basic/HeaderStyle.js +17 -0
- package/lib/ProLayout/PageContainer/index.js +24 -20
- package/lib/ProLayout/PageContainer/style.js +53 -0
- package/lib/ProLayout/SiderMenu/BaseMenu.js +18 -40
- package/lib/ProLayout/SiderMenu/SiderMenu.js +28 -39
- package/lib/ProLayout/SiderMenu/style.js +173 -0
- package/lib/ProLayout/TopHeader/index.js +12 -10
- package/lib/ProLayout/TopHeader/style.js +133 -0
- package/lib/ProLayout/defaultSettings.js +1 -1
- package/lib/ProLayout/style/index.js +12 -1
- package/lib/ProLayout/util.js +5 -5
- package/lib/ProTable/Alert.js +13 -5
- package/lib/ProTable/Content.js +22 -14
- package/lib/ProTable/Header.js +22 -12
- package/lib/ProTable/Pagination.js +13 -5
- package/lib/ProTable/ProTable.js +43 -27
- package/lib/ProTable/setting.js +3 -3
- package/lib/ProTable/style/index.js +114 -1
- package/lib/RadioButton/RadioButton.js +10 -4
- package/lib/RadioButton/style/index.js +28 -1
- package/lib/Scrollbar/Scrollbar.js +10 -3
- package/lib/Scrollbar/Thumb.js +36 -25
- package/lib/Scrollbar/style/index.js +68 -1
- package/lib/Search/Advanced/History.js +24 -17
- package/lib/Search/Advanced/SaveHistory.js +2 -3
- package/lib/Search/Advanced/index.js +213 -293
- package/lib/Search/Item.js +175 -415
- package/lib/Search/Search.js +78 -172
- package/lib/Search/hooks/index.js +130 -1
- package/lib/Search/hooks/useRouteQuery.js +64 -0
- package/lib/Search/setting.js +133 -15
- package/lib/Search/style/index.js +9 -2
- package/lib/Search/style/item.js +35 -0
- package/lib/Search/style/search.js +140 -0
- package/lib/Search/util.js +116 -124
- package/lib/Skeleton/components/DashBoardCard.js +64 -0
- package/lib/Skeleton/components/DashBoardChart.js +96 -0
- package/lib/Skeleton/components/Detail.js +110 -0
- package/lib/Skeleton/components/Drawer.js +91 -0
- package/lib/Skeleton/components/Item.js +68 -0
- package/lib/Skeleton/components/List.js +45 -0
- package/lib/Skeleton/components/ListCard.js +63 -0
- package/lib/Skeleton/components/ListCardItem.js +86 -0
- package/lib/Skeleton/components/ListTable.js +76 -0
- package/lib/Skeleton/components/Page.js +62 -0
- package/lib/Skeleton/components/Search.js +54 -0
- package/lib/Skeleton/components/Tree.js +72 -0
- package/lib/Skeleton/index.js +75 -0
- package/lib/Skeleton/skeleton.js +58 -0
- package/lib/Skeleton/style/index.js +139 -0
- package/lib/Title/style/index.js +34 -1
- package/lib/Title/title.js +13 -5
- package/lib/ValueItem/ValueItem.js +29 -72
- package/lib/components.js +0 -21
- package/lib/locale/en-US.js +0 -7
- package/lib/locale/zh-CN.js +0 -7
- package/lib/style/components.less +0 -1
- package/lib/style/index.js +1 -4
- package/lib/style/styleRegister.js +28 -0
- package/lib/style/variable.js +10 -0
- package/lib/style.js +1 -14
- package/package.json +13 -14
- package/es/AMap/Map.js +0 -133
- package/es/AMap/index.js +0 -5
- package/es/AMap/util.js +0 -56
- package/es/CardSelect/style/index.css +0 -24
- package/es/CardSelect/style/index.less +0 -26
- package/es/CheckButton/style/index.css +0 -37
- package/es/CheckButton/style/index.less +0 -40
- package/es/DragModal/style/index.css +0 -82
- package/es/DragModal/style/index.less +0 -97
- package/es/Echarts/Echarts.js +0 -48
- package/es/Echarts/index.js +0 -5
- package/es/EditTable/style/body.less +0 -66
- package/es/EditTable/style/form.less +0 -33
- package/es/EditTable/style/group.less +0 -32
- package/es/EditTable/style/header.less +0 -77
- package/es/EditTable/style/index.css +0 -267
- package/es/EditTable/style/index.less +0 -41
- package/es/EditTable/style/menu.less +0 -25
- package/es/EditTable/style/table.less +0 -47
- package/es/Ellipsis/style/index.css +0 -17
- package/es/Ellipsis/style/index.less +0 -20
- package/es/MonacoEditor/Monaco.js +0 -242
- package/es/MonacoEditor/index.js +0 -5
- package/es/MonacoEditor/style/index.css +0 -4
- package/es/MonacoEditor/style/index.js +0 -1
- package/es/MonacoEditor/style/index.less +0 -4
- package/es/ProLayout/Basic/BasicLayout.less +0 -66
- package/es/ProLayout/Basic/Header.less +0 -8
- package/es/ProLayout/PageContainer/index.less +0 -103
- package/es/ProLayout/SiderMenu/index.less +0 -231
- package/es/ProLayout/TopHeader/index.less +0 -174
- package/es/ProLayout/style/default.less +0 -4
- package/es/ProLayout/style/style.less +0 -7
- package/es/ProTable/style/ProTable.less +0 -141
- package/es/RadioButton/style/index.css +0 -20
- package/es/RadioButton/style/index.less +0 -19
- package/es/Scrollbar/style/index.css +0 -65
- package/es/Scrollbar/style/index.less +0 -83
- package/es/Search/style/Item.less +0 -33
- package/es/Search/style/Search.less +0 -179
- package/es/Title/style/index.css +0 -23
- package/es/Title/style/index.less +0 -25
- package/es/style/index.css +0 -5197
- package/es/style/index.less +0 -13
- package/es/style/variable.css +0 -4
- package/es/style/variable.less +0 -4
- package/lib/AMap/Map.js +0 -133
- package/lib/AMap/index.js +0 -12
- package/lib/AMap/util.js +0 -62
- package/lib/CardSelect/style/index.css +0 -24
- package/lib/CardSelect/style/index.less +0 -26
- package/lib/CheckButton/style/index.css +0 -37
- package/lib/CheckButton/style/index.less +0 -40
- package/lib/DragModal/style/index.css +0 -82
- package/lib/DragModal/style/index.less +0 -97
- package/lib/Echarts/Echarts.js +0 -48
- package/lib/Echarts/index.js +0 -12
- package/lib/EditTable/style/body.less +0 -66
- package/lib/EditTable/style/form.less +0 -33
- package/lib/EditTable/style/group.less +0 -32
- package/lib/EditTable/style/header.less +0 -77
- package/lib/EditTable/style/index.css +0 -267
- package/lib/EditTable/style/index.less +0 -41
- package/lib/EditTable/style/menu.less +0 -25
- package/lib/EditTable/style/table.less +0 -47
- package/lib/Ellipsis/style/index.css +0 -17
- package/lib/Ellipsis/style/index.less +0 -20
- package/lib/MonacoEditor/Monaco.js +0 -242
- package/lib/MonacoEditor/index.js +0 -12
- package/lib/MonacoEditor/style/index.css +0 -4
- package/lib/MonacoEditor/style/index.js +0 -3
- package/lib/MonacoEditor/style/index.less +0 -4
- package/lib/ProLayout/Basic/BasicLayout.less +0 -66
- package/lib/ProLayout/Basic/Header.less +0 -8
- package/lib/ProLayout/PageContainer/index.less +0 -103
- package/lib/ProLayout/SiderMenu/index.less +0 -231
- package/lib/ProLayout/TopHeader/index.less +0 -174
- package/lib/ProLayout/style/default.less +0 -4
- package/lib/ProLayout/style/style.less +0 -7
- package/lib/ProTable/style/ProTable.less +0 -141
- package/lib/RadioButton/style/index.css +0 -20
- package/lib/RadioButton/style/index.less +0 -19
- package/lib/Scrollbar/style/index.css +0 -65
- package/lib/Scrollbar/style/index.less +0 -83
- package/lib/Search/style/Item.less +0 -33
- package/lib/Search/style/Search.less +0 -179
- package/lib/Title/style/index.css +0 -23
- package/lib/Title/style/index.less +0 -25
- package/lib/style/index.css +0 -5197
- package/lib/style/index.less +0 -13
- package/lib/style/variable.css +0 -4
- package/lib/style/variable.less +0 -4
|
@@ -1,87 +1,70 @@
|
|
|
1
|
-
function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) {
|
|
2
|
-
const op = ops[i];
|
|
3
|
-
const fn = ops[i + 1];
|
|
4
|
-
i += 2;
|
|
5
|
-
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
|
|
6
|
-
return undefined;
|
|
7
|
-
}
|
|
8
|
-
if (op === 'access' || op === 'optionalAccess') {
|
|
9
|
-
lastAccessLHS = value;
|
|
10
|
-
value = fn(value);
|
|
11
|
-
}
|
|
12
|
-
else if (op === 'call' || op === 'optionalCall') {
|
|
13
|
-
value = fn((...args) => value.call(lastAccessLHS, ...args));
|
|
14
|
-
lastAccessLHS = undefined;
|
|
15
|
-
}
|
|
16
|
-
} return value; }
|
|
17
1
|
/* Analyzed bindings: {
|
|
18
2
|
"columns": "props",
|
|
19
3
|
"type": "props",
|
|
20
4
|
"target": "setup-maybe-ref",
|
|
21
|
-
"class": "props",
|
|
22
5
|
"request": "props",
|
|
23
6
|
"historyRequest": "props",
|
|
24
7
|
"deleteRequest": "props",
|
|
25
8
|
"deleteKey": "props",
|
|
26
|
-
"routerMode": "props",
|
|
27
|
-
"style": "props",
|
|
28
9
|
"defaultValues": "props",
|
|
29
10
|
"SearchItem": "setup-const",
|
|
30
|
-
"optionsMapKey": "setup-maybe-ref",
|
|
31
11
|
"typeOptions": "setup-maybe-ref",
|
|
32
|
-
"
|
|
12
|
+
"useHandleColumns": "setup-maybe-ref",
|
|
13
|
+
"useOptionMapContent": "setup-maybe-ref",
|
|
33
14
|
"useRouteQuery": "setup-maybe-ref",
|
|
34
15
|
"PropType": "setup-const",
|
|
35
16
|
"ref": "setup-const",
|
|
36
17
|
"reactive": "setup-const",
|
|
37
18
|
"watch": "setup-const",
|
|
38
|
-
"
|
|
19
|
+
"useAttrs": "setup-const",
|
|
20
|
+
"inject": "setup-const",
|
|
21
|
+
"computed": "setup-const",
|
|
39
22
|
"SaveHistory": "setup-const",
|
|
40
23
|
"History": "setup-const",
|
|
41
24
|
"compatibleOldTerms": "setup-maybe-ref",
|
|
42
|
-
"
|
|
43
|
-
"handleQData": "setup-maybe-ref",
|
|
25
|
+
"getItemDefaultValue": "setup-maybe-ref",
|
|
44
26
|
"hasExpand": "setup-maybe-ref",
|
|
45
27
|
"termsParamsFormat": "setup-maybe-ref",
|
|
46
|
-
"termsToValue": "setup-maybe-ref",
|
|
47
28
|
"Select": "setup-maybe-ref",
|
|
48
29
|
"Button": "setup-maybe-ref",
|
|
49
30
|
"Form": "setup-maybe-ref",
|
|
50
31
|
"FormItemRest": "setup-maybe-ref",
|
|
51
32
|
"AIcon": "setup-maybe-ref",
|
|
52
|
-
"cloneDeep": "setup-maybe-ref",
|
|
53
33
|
"useLocaleReceiver": "setup-maybe-ref",
|
|
54
|
-
"
|
|
34
|
+
"SearchConfig": "setup-maybe-ref",
|
|
35
|
+
"isObject": "setup-maybe-ref",
|
|
36
|
+
"useSearchStyle": "setup-maybe-ref",
|
|
55
37
|
"props": "setup-reactive-const",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"q": "setup-maybe-ref",
|
|
60
|
-
"hasOnceSearch": "setup-ref",
|
|
38
|
+
"emit": "setup-const",
|
|
39
|
+
"columnsOptionMap": "setup-ref",
|
|
40
|
+
"terms": "setup-reactive-const",
|
|
61
41
|
"expand": "setup-ref",
|
|
62
42
|
"layout": "setup-ref",
|
|
63
43
|
"compatible": "setup-ref",
|
|
64
44
|
"screenSize": "setup-ref",
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
45
|
+
"context": "setup-maybe-ref",
|
|
46
|
+
"prefixCls": "setup-ref",
|
|
47
|
+
"wrapSSR": "setup-maybe-ref",
|
|
48
|
+
"hashId": "setup-maybe-ref",
|
|
49
|
+
"contextLocale": "setup-maybe-ref",
|
|
50
|
+
"attrs": "setup-maybe-ref",
|
|
51
|
+
"q": "setup-maybe-ref",
|
|
52
|
+
"initValues": "setup-maybe-ref",
|
|
53
|
+
"columnsMap": "setup-maybe-ref",
|
|
54
|
+
"defaultCacheValues": "setup-maybe-ref",
|
|
71
55
|
"expandChange": "setup-const",
|
|
72
|
-
"itemValueChange": "setup-const",
|
|
73
56
|
"addUrlParams": "setup-const",
|
|
74
57
|
"submitData": "setup-const",
|
|
75
58
|
"searchSubmit": "setup-const",
|
|
76
59
|
"reset": "setup-const",
|
|
77
60
|
"historyItemClick": "setup-const",
|
|
78
61
|
"handleUrlParams": "setup-const",
|
|
62
|
+
"completeTerms": "setup-const",
|
|
79
63
|
"handleDefaultValues": "setup-const",
|
|
80
|
-
"handleItems": "setup-const",
|
|
81
64
|
"clearValue": "setup-const"
|
|
82
65
|
} */
|
|
83
66
|
import { defineComponent as _defineComponent } from 'vue';
|
|
84
|
-
import {
|
|
67
|
+
import { unref as _unref, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createElementVNode as _createElementVNode, createVNode as _createVNode, normalizeClass as _normalizeClass, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, normalizeStyle as _normalizeStyle } from "vue";
|
|
85
68
|
const _hoisted_1 = { class: "left" };
|
|
86
69
|
const _hoisted_2 = { class: "left-items" };
|
|
87
70
|
const _hoisted_3 = {
|
|
@@ -101,20 +84,22 @@ const _hoisted_10 = { class: "left" };
|
|
|
101
84
|
const _hoisted_11 = { class: "JSearch-footer" };
|
|
102
85
|
const _hoisted_12 = { class: "JSearch-footer--btns" };
|
|
103
86
|
import SearchItem from '../Item.js';
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import { ref, reactive, watch, provide } from 'vue';
|
|
87
|
+
import { typeOptions } from '../setting';
|
|
88
|
+
import { useHandleColumns, useOptionMapContent, useRouteQuery } from '../hooks';
|
|
89
|
+
import { ref, reactive, watch, useAttrs, inject, computed } from 'vue';
|
|
108
90
|
import SaveHistory from './SaveHistory.js';
|
|
109
91
|
import History from './History.js';
|
|
110
|
-
import { compatibleOldTerms,
|
|
111
|
-
import { Select, Button, Form, FormItemRest } from 'ant-design-vue
|
|
92
|
+
import { compatibleOldTerms, getItemDefaultValue, termsParamsFormat, } from '../util';
|
|
93
|
+
import { Select, Button, Form, FormItemRest } from 'ant-design-vue';
|
|
112
94
|
import { AIcon } from '../../../';
|
|
113
|
-
import { cloneDeep } from 'lodash-es';
|
|
114
95
|
import { useLocaleReceiver } from "../../LocaleReciver/index";
|
|
96
|
+
import { SearchConfig } from "../../utils/constants";
|
|
97
|
+
import { isObject } from "lodash-es";
|
|
98
|
+
import useSearchStyle from '../style';
|
|
115
99
|
const __sfc_main__ = _defineComponent({
|
|
116
100
|
...{
|
|
117
101
|
name: 'JAdvancedSearch',
|
|
102
|
+
inheritAttrs: false
|
|
118
103
|
},
|
|
119
104
|
props: {
|
|
120
105
|
columns: {
|
|
@@ -131,10 +116,6 @@ const __sfc_main__ = _defineComponent({
|
|
|
131
116
|
default: '',
|
|
132
117
|
required: true,
|
|
133
118
|
},
|
|
134
|
-
class: {
|
|
135
|
-
type: String,
|
|
136
|
-
default: '',
|
|
137
|
-
},
|
|
138
119
|
request: {
|
|
139
120
|
type: Function,
|
|
140
121
|
default: undefined,
|
|
@@ -151,77 +132,56 @@ const __sfc_main__ = _defineComponent({
|
|
|
151
132
|
type: String,
|
|
152
133
|
default: 'key',
|
|
153
134
|
},
|
|
154
|
-
routerMode: {
|
|
155
|
-
type: String,
|
|
156
|
-
default: 'hash',
|
|
157
|
-
},
|
|
158
|
-
style: {
|
|
159
|
-
type: [String, Object],
|
|
160
|
-
default: undefined,
|
|
161
|
-
},
|
|
162
135
|
defaultValues: {
|
|
163
136
|
type: Object,
|
|
164
137
|
default: undefined,
|
|
165
138
|
}
|
|
166
139
|
},
|
|
167
|
-
emits: [
|
|
140
|
+
emits: ['search'],
|
|
168
141
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
169
|
-
const [contextLocale] = useLocaleReceiver('Search');
|
|
170
142
|
const props = __props;
|
|
171
|
-
const
|
|
172
|
-
const
|
|
173
|
-
const {
|
|
174
|
-
const q = useRouteQuery('q');
|
|
175
|
-
const target = useRouteQuery('target');
|
|
176
|
-
const hasOnceSearch = ref(false);
|
|
177
|
-
// 是否展开更多筛选
|
|
143
|
+
const emit = __emit;
|
|
144
|
+
const columnsOptionMap = ref({}); // 存储每个columnItem的option
|
|
145
|
+
const terms = reactive({ terms: [] }); // 当前查询条件
|
|
178
146
|
const expand = ref(false);
|
|
179
|
-
// 组件方向
|
|
180
147
|
const layout = ref('horizontal');
|
|
181
148
|
const compatible = ref(false);
|
|
182
|
-
// 当前组件宽度 true 大于1000
|
|
183
149
|
const screenSize = ref(true);
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
const
|
|
187
|
-
const
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
const columnOptionMap = ref(new Map());
|
|
194
|
-
provide(optionsMapKey, columnOptionMap);
|
|
195
|
-
const emit = __emit;
|
|
150
|
+
const context = inject(SearchConfig);
|
|
151
|
+
const prefixCls = computed(() => 'JSearch');
|
|
152
|
+
const [wrapSSR, hashId] = useSearchStyle(prefixCls);
|
|
153
|
+
const [contextLocale] = useLocaleReceiver('Search');
|
|
154
|
+
const attrs = useAttrs();
|
|
155
|
+
const q = useRouteQuery('q');
|
|
156
|
+
const target = useRouteQuery('target');
|
|
157
|
+
const { initValues, columnsMap, defaultCacheValues } = useHandleColumns({ ...props, mode: 'advanced' }, terms);
|
|
158
|
+
useOptionMapContent(columnsOptionMap);
|
|
196
159
|
const expandChange = () => {
|
|
197
160
|
expand.value = !expand.value;
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
// 第二组数据
|
|
214
|
-
termsData.terms[1].terms[index - 4] = value;
|
|
161
|
+
terms.terms.length = 1;
|
|
162
|
+
if (expand.value) { // 展开
|
|
163
|
+
let arr = Object.values(columnsMap.value);
|
|
164
|
+
const mergeArr = [];
|
|
165
|
+
for (let i = 1; i < 6; i++) {
|
|
166
|
+
const indexIn = i % arr.length;
|
|
167
|
+
const obj = getItemDefaultValue(arr[indexIn], defaultCacheValues.value);
|
|
168
|
+
if (i === 3) {
|
|
169
|
+
obj.type = 'and';
|
|
170
|
+
}
|
|
171
|
+
mergeArr.push(obj);
|
|
172
|
+
}
|
|
173
|
+
terms.terms = [...terms.terms, ...mergeArr];
|
|
215
174
|
}
|
|
216
175
|
};
|
|
217
176
|
const addUrlParams = () => {
|
|
218
177
|
if (props.target) {
|
|
219
|
-
q.value = encodeURI(JSON.stringify(
|
|
178
|
+
q.value = encodeURI(JSON.stringify(terms));
|
|
220
179
|
target.value = props.target;
|
|
221
180
|
}
|
|
222
181
|
};
|
|
223
182
|
const submitData = () => {
|
|
224
|
-
|
|
183
|
+
const data = termsParamsFormat(terms, columnsMap.value);
|
|
184
|
+
emit('search', data);
|
|
225
185
|
};
|
|
226
186
|
/**
|
|
227
187
|
* 提交
|
|
@@ -236,163 +196,121 @@ const __sfc_main__ = _defineComponent({
|
|
|
236
196
|
* 重置查询
|
|
237
197
|
*/
|
|
238
198
|
const reset = () => {
|
|
239
|
-
termsData.terms = [
|
|
240
|
-
{ terms: [null, null, null] },
|
|
241
|
-
{ terms: [null, null, null], type: 'and' },
|
|
242
|
-
];
|
|
243
199
|
expand.value = false;
|
|
200
|
+
initValues();
|
|
244
201
|
if (props.type === 'advanced') {
|
|
245
202
|
q.value = null;
|
|
246
203
|
target.value = null;
|
|
247
204
|
}
|
|
248
|
-
resetNumber.value += 1;
|
|
249
205
|
emit('search', { terms: [] });
|
|
250
206
|
};
|
|
207
|
+
/**
|
|
208
|
+
* 历史下拉单选
|
|
209
|
+
* @param content {string}
|
|
210
|
+
*/
|
|
251
211
|
const historyItemClick = (content) => {
|
|
252
212
|
try {
|
|
253
|
-
|
|
254
|
-
|
|
213
|
+
const object = compatibleOldTerms(content, columnsMap.value, defaultCacheValues.value);
|
|
214
|
+
terms.terms = object.terms || [];
|
|
215
|
+
expand.value = object.expand;
|
|
255
216
|
searchSubmit();
|
|
256
217
|
}
|
|
257
218
|
catch (e) {
|
|
258
|
-
console.warn(`Search组件中
|
|
219
|
+
console.warn(`Search组件中han.dleUrlParams处理JSON时异常:【${e}】`);
|
|
259
220
|
}
|
|
260
221
|
};
|
|
261
222
|
/**
|
|
262
223
|
* 处理URL中的查询参数
|
|
263
|
-
* @param _params
|
|
264
224
|
*/
|
|
265
|
-
const handleUrlParams = (
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
termsData.terms = _optionalChain([handleQData, 'call', _4 => _4(compatibleOldTerms(qStr)), 'optionalAccess', _5 => _5.terms]) || [];
|
|
270
|
-
expand.value = hasExpand(termsData.terms);
|
|
271
|
-
emit('search', termsParamsFormat(termsData, columnOptionMap.value));
|
|
225
|
+
const handleUrlParams = () => {
|
|
226
|
+
if (props.target && props.target === target.value) {
|
|
227
|
+
const params = decodeURI(q.value);
|
|
228
|
+
historyItemClick(params);
|
|
272
229
|
}
|
|
273
230
|
};
|
|
274
231
|
/**
|
|
275
|
-
*
|
|
232
|
+
* 递归补全 terms 数组
|
|
233
|
+
* @param data 原始 terms 对象
|
|
234
|
+
* @param callback 补全函数,返回一个 term 对象
|
|
276
235
|
*/
|
|
277
|
-
|
|
278
|
-
const
|
|
279
|
-
|
|
280
|
-
|
|
236
|
+
function completeTerms(data, callback) {
|
|
237
|
+
const fillTerms = (terms) => {
|
|
238
|
+
const completed = terms.map(term => {
|
|
239
|
+
if (Array.isArray(term.terms)) {
|
|
240
|
+
// 递归补全子 terms
|
|
241
|
+
term.terms = fillTerms(term.terms);
|
|
242
|
+
}
|
|
243
|
+
return term;
|
|
281
244
|
});
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
245
|
+
// 补足到长度为 3
|
|
246
|
+
while (completed.length < 3) {
|
|
247
|
+
completed.push(callback());
|
|
248
|
+
}
|
|
249
|
+
return completed;
|
|
250
|
+
};
|
|
251
|
+
return {
|
|
252
|
+
terms: fillTerms(data.terms),
|
|
253
|
+
};
|
|
254
|
+
}
|
|
288
255
|
/**
|
|
289
|
-
*
|
|
256
|
+
* 处理传入的默认值
|
|
290
257
|
*/
|
|
291
|
-
const
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
type: 'and',
|
|
308
|
-
value: _value,
|
|
309
|
-
termType: search.defaultTermType || getTermTypeFn(search.type),
|
|
310
|
-
column: _item.dataIndex,
|
|
311
|
-
};
|
|
312
|
-
}
|
|
313
|
-
if (search.defaultValue !== undefined ||
|
|
314
|
-
search.defaultOnceValue !== undefined) {
|
|
315
|
-
hasOnceSearch.value = true;
|
|
316
|
-
}
|
|
317
|
-
searchItems.value.push({
|
|
318
|
-
..._item.search,
|
|
319
|
-
sortIndex: _item.search.first ? 0 : index + 1,
|
|
320
|
-
title: _item.title,
|
|
321
|
-
// column: _item.search?.rename || _item.dataIndex,
|
|
322
|
-
column: _item.dataIndex,
|
|
323
|
-
});
|
|
324
|
-
if (defaultTerms) {
|
|
325
|
-
itemValueChange(defaultTerms, search.first ? 1 : index + 1);
|
|
258
|
+
const handleDefaultValues = (value) => {
|
|
259
|
+
if (!isObject(value))
|
|
260
|
+
return;
|
|
261
|
+
const _value = JSON.parse(JSON.stringify(value));
|
|
262
|
+
if (!(_value.terms.length === 1 && _value.terms[0].terms.length === 1)) {
|
|
263
|
+
let arr = Object.values(columnsMap.value);
|
|
264
|
+
for (let i = 1; i < 6; i++) {
|
|
265
|
+
const aIndex = i < 3 ? 0 : 1;
|
|
266
|
+
const bIndex = i % 3;
|
|
267
|
+
const item = _value.terms[aIndex].terms[bIndex];
|
|
268
|
+
if (!item) {
|
|
269
|
+
const fillItem = getItemDefaultValue(arr[aIndex * 3 + bIndex], defaultCacheValues.value);
|
|
270
|
+
if (i === 3) {
|
|
271
|
+
fillItem.type = 'and';
|
|
272
|
+
}
|
|
273
|
+
_value.terms[aIndex].terms[bIndex] = fillItem;
|
|
326
274
|
}
|
|
327
275
|
}
|
|
328
|
-
});
|
|
329
|
-
submitData();
|
|
330
|
-
if (props.defaultValues && !isFirstHandleDefaultValues) {
|
|
331
|
-
handleDefaultValues();
|
|
332
|
-
isFirstHandleDefaultValues = true;
|
|
333
|
-
}
|
|
334
|
-
else {
|
|
335
|
-
handleUrlParams({ q: q.value, target: target.value });
|
|
336
276
|
}
|
|
277
|
+
historyItemClick(JSON.stringify(_value));
|
|
337
278
|
};
|
|
279
|
+
/**
|
|
280
|
+
* 清除值
|
|
281
|
+
*/
|
|
338
282
|
const clearValue = () => {
|
|
339
283
|
if (props.type === 'advanced' && props.target !== target.value) {
|
|
340
284
|
q.value = null;
|
|
341
285
|
target.value = null;
|
|
342
286
|
}
|
|
343
287
|
};
|
|
344
|
-
|
|
345
|
-
termsData.terms = [
|
|
346
|
-
{ terms: [null, null, null] },
|
|
347
|
-
{ terms: [null, null, null], type: 'and' },
|
|
348
|
-
];
|
|
349
|
-
expand.value = false;
|
|
350
|
-
handleItems();
|
|
351
|
-
clearValue();
|
|
352
|
-
}, {
|
|
353
|
-
deep: true,
|
|
354
|
-
});
|
|
288
|
+
handleUrlParams();
|
|
355
289
|
watch(() => props.target, () => {
|
|
356
290
|
clearValue();
|
|
357
291
|
}, {
|
|
358
|
-
deep: true,
|
|
359
292
|
immediate: true
|
|
360
293
|
});
|
|
361
|
-
watch(width, (value) => {
|
|
362
|
-
if (value < 1000) {
|
|
363
|
-
layout.value = 'vertical';
|
|
364
|
-
screenSize.value = false;
|
|
365
|
-
compatible.value = value < 760;
|
|
366
|
-
}
|
|
367
|
-
else {
|
|
368
|
-
layout.value = 'horizontal';
|
|
369
|
-
screenSize.value = true;
|
|
370
|
-
compatible.value = false;
|
|
371
|
-
}
|
|
372
|
-
}, { immediate: true });
|
|
373
|
-
handleItems();
|
|
374
294
|
__expose({
|
|
375
295
|
setValues: handleDefaultValues,
|
|
376
296
|
reset
|
|
377
297
|
});
|
|
378
298
|
return (_ctx, _cache) => {
|
|
379
299
|
return (_openBlock(), _createBlock(_unref(Form), {
|
|
380
|
-
model:
|
|
300
|
+
model: terms,
|
|
381
301
|
onFinish: searchSubmit
|
|
382
302
|
}, {
|
|
383
303
|
default: _withCtx(() => [
|
|
384
304
|
_createElementVNode("div", {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
style: _normalizeStyle(__props.style)
|
|
305
|
+
ref: "searchRef",
|
|
306
|
+
class: _normalizeClass(["JSearch-warp senior", [_unref(attrs).class, _unref(hashId)]]),
|
|
307
|
+
style: _normalizeStyle(_unref(attrs).style)
|
|
389
308
|
}, [
|
|
390
309
|
_createCommentVNode(" 高级模式 "),
|
|
391
310
|
(props.type === 'advanced')
|
|
392
311
|
? (_openBlock(), _createElementBlock("div", {
|
|
393
312
|
key: 0,
|
|
394
|
-
|
|
395
|
-
ref: searchRefContentRef,
|
|
313
|
+
ref: "searchRefContentRef",
|
|
396
314
|
class: _normalizeClass([
|
|
397
315
|
'JSearch-content',
|
|
398
316
|
expand.value || compatible.value ? 'senior-expand' : 'pack-up',
|
|
@@ -408,43 +326,28 @@ const __sfc_main__ = _defineComponent({
|
|
|
408
326
|
}, [
|
|
409
327
|
_createElementVNode("div", _hoisted_1, [
|
|
410
328
|
_createElementVNode("div", _hoisted_2, [
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
index: 1,
|
|
414
|
-
columns: searchItems.value,
|
|
415
|
-
"terms-item": termsData.terms[0].terms[0],
|
|
416
|
-
reset: resetNumber.value,
|
|
417
|
-
onChange: _cache[0] || (_cache[0] = (v) => itemValueChange(v, 1))
|
|
418
|
-
}, null, 8 /* PROPS */, ["expand", "columns", "terms-item", "reset"]),
|
|
419
|
-
(expand.value)
|
|
420
|
-
? (_openBlock(), _createBlock(SearchItem, {
|
|
421
|
-
key: 0,
|
|
422
|
-
expand: expand.value,
|
|
423
|
-
index: 2,
|
|
424
|
-
columns: searchItems.value,
|
|
425
|
-
"terms-item": termsData.terms[0].terms[1],
|
|
426
|
-
reset: resetNumber.value,
|
|
427
|
-
onChange: _cache[1] || (_cache[1] = (v) => itemValueChange(v, 2))
|
|
428
|
-
}, null, 8 /* PROPS */, ["expand", "columns", "terms-item", "reset"]))
|
|
429
|
-
: _createCommentVNode("v-if", true),
|
|
430
|
-
(expand.value)
|
|
431
|
-
? (_openBlock(), _createBlock(SearchItem, {
|
|
432
|
-
key: 1,
|
|
329
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(terms.terms.slice(0, 3), (item, index) => {
|
|
330
|
+
return (_openBlock(), _createBlock(SearchItem, {
|
|
433
331
|
expand: expand.value,
|
|
434
|
-
index:
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
332
|
+
index: index + 1,
|
|
333
|
+
onlyValue: false,
|
|
334
|
+
value: item.value,
|
|
335
|
+
"onUpdate:value": ($event) => ((item.value) = $event),
|
|
336
|
+
termType: item.termType,
|
|
337
|
+
"onUpdate:termType": ($event) => ((item.termType) = $event),
|
|
338
|
+
column: item.column,
|
|
339
|
+
"onUpdate:column": ($event) => ((item.column) = $event),
|
|
340
|
+
type: item.type,
|
|
341
|
+
"onUpdate:type": ($event) => ((item.type) = $event)
|
|
342
|
+
}, null, 8 /* PROPS */, ["expand", "index", "value", "onUpdate:value", "termType", "onUpdate:termType", "column", "onUpdate:column", "type", "onUpdate:type"]));
|
|
343
|
+
}), 256 /* UNKEYED_FRAGMENT */))
|
|
441
344
|
])
|
|
442
345
|
]),
|
|
443
346
|
(expand.value)
|
|
444
347
|
? (_openBlock(), _createElementBlock("div", _hoisted_3, [
|
|
445
348
|
_createVNode(_unref(Select), {
|
|
446
|
-
value:
|
|
447
|
-
"onUpdate:value": _cache[
|
|
349
|
+
value: terms.terms[3].type,
|
|
350
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => ((terms.terms[3].type) = $event)),
|
|
448
351
|
class: "center-select",
|
|
449
352
|
style: { "width": "100px" },
|
|
450
353
|
options: _unref(typeOptions)(_unref(contextLocale))
|
|
@@ -454,17 +357,26 @@ const __sfc_main__ = _defineComponent({
|
|
|
454
357
|
(expand.value)
|
|
455
358
|
? (_openBlock(), _createElementBlock("div", _hoisted_4, [
|
|
456
359
|
_createElementVNode("div", _hoisted_5, [
|
|
457
|
-
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(
|
|
458
|
-
return
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
360
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(terms.terms.slice(3, 6), (item, index) => {
|
|
361
|
+
return (_openBlock(), _createElementBlock(_Fragment, null, [
|
|
362
|
+
(expand.value && index !== 4)
|
|
363
|
+
? (_openBlock(), _createBlock(SearchItem, {
|
|
364
|
+
key: 0,
|
|
365
|
+
expand: expand.value,
|
|
366
|
+
index: index + 4,
|
|
367
|
+
onlyValue: false,
|
|
368
|
+
value: item.value,
|
|
369
|
+
"onUpdate:value": ($event) => ((item.value) = $event),
|
|
370
|
+
termType: item.termType,
|
|
371
|
+
"onUpdate:termType": ($event) => ((item.termType) = $event),
|
|
372
|
+
column: item.column,
|
|
373
|
+
"onUpdate:column": ($event) => ((item.column) = $event),
|
|
374
|
+
type: item.type,
|
|
375
|
+
"onUpdate:type": ($event) => ((item.type) = $event)
|
|
376
|
+
}, null, 8 /* PROPS */, ["expand", "index", "value", "onUpdate:value", "termType", "onUpdate:termType", "column", "onUpdate:column", "type", "onUpdate:type"]))
|
|
377
|
+
: _createCommentVNode("v-if", true)
|
|
378
|
+
], 64 /* STABLE_FRAGMENT */));
|
|
379
|
+
}), 256 /* UNKEYED_FRAGMENT */))
|
|
468
380
|
])
|
|
469
381
|
]))
|
|
470
382
|
: _createCommentVNode("v-if", true)
|
|
@@ -475,47 +387,53 @@ const __sfc_main__ = _defineComponent({
|
|
|
475
387
|
expand.value || compatible.value ? 'expand' : '',
|
|
476
388
|
])
|
|
477
389
|
}, [
|
|
478
|
-
|
|
390
|
+
_renderSlot(_ctx.$slots, "footerRender", {
|
|
391
|
+
reset: reset,
|
|
392
|
+
submit: searchSubmit,
|
|
393
|
+
expandChange: expandChange
|
|
394
|
+
}, () => [
|
|
395
|
+
_createElementVNode("div", _hoisted_6, [
|
|
396
|
+
_createVNode(_unref(Button), {
|
|
397
|
+
type: "stroke",
|
|
398
|
+
onClick: reset
|
|
399
|
+
}, {
|
|
400
|
+
default: _withCtx(() => [
|
|
401
|
+
_createTextVNode(_toDisplayString(_unref(contextLocale).advanced.reset), 1 /* TEXT */)
|
|
402
|
+
]),
|
|
403
|
+
_: 1 /* STABLE */
|
|
404
|
+
}),
|
|
405
|
+
_createVNode(SaveHistory, {
|
|
406
|
+
terms: terms,
|
|
407
|
+
target: _unref(target),
|
|
408
|
+
request: __props.request || _unref(context).saveRequest
|
|
409
|
+
}, null, 8 /* PROPS */, ["terms", "target", "request"]),
|
|
410
|
+
_createVNode(History, {
|
|
411
|
+
target: _unref(target),
|
|
412
|
+
request: __props.historyRequest || _unref(context).historyRequest,
|
|
413
|
+
"delete-request": __props.deleteRequest || _unref(context).deleteRequest,
|
|
414
|
+
"delete-key": __props.deleteKey || _unref(context).deleteKey,
|
|
415
|
+
onClick: searchSubmit,
|
|
416
|
+
onItemClick: historyItemClick
|
|
417
|
+
}, null, 8 /* PROPS */, ["target", "request", "delete-request", "delete-key"])
|
|
418
|
+
]),
|
|
479
419
|
_createVNode(_unref(Button), {
|
|
480
|
-
type: "
|
|
481
|
-
|
|
420
|
+
type: "link",
|
|
421
|
+
class: "more-btn",
|
|
422
|
+
onClick: expandChange
|
|
482
423
|
}, {
|
|
483
424
|
default: _withCtx(() => [
|
|
484
|
-
|
|
425
|
+
_createElementVNode("span", _hoisted_7, _toDisplayString(_unref(contextLocale).advanced.more), 1 /* TEXT */),
|
|
426
|
+
_createVNode(_unref(AIcon), {
|
|
427
|
+
type: "DoubleRightOutlined",
|
|
428
|
+
class: _normalizeClass([
|
|
429
|
+
'more-icon',
|
|
430
|
+
expand.value ? 'more-up' : 'more-down',
|
|
431
|
+
])
|
|
432
|
+
}, null, 8 /* PROPS */, ["class"])
|
|
485
433
|
]),
|
|
486
434
|
_: 1 /* STABLE */
|
|
487
|
-
})
|
|
488
|
-
|
|
489
|
-
terms: termsData,
|
|
490
|
-
target: _unref(target),
|
|
491
|
-
request: __props.request
|
|
492
|
-
}, null, 8 /* PROPS */, ["terms", "target", "request"]),
|
|
493
|
-
_createVNode(History, {
|
|
494
|
-
target: _unref(target),
|
|
495
|
-
request: __props.historyRequest,
|
|
496
|
-
"delete-request": __props.deleteRequest,
|
|
497
|
-
"delete-key": __props.deleteKey,
|
|
498
|
-
onClick: searchSubmit,
|
|
499
|
-
onItemClick: historyItemClick
|
|
500
|
-
}, null, 8 /* PROPS */, ["target", "request", "delete-request", "delete-key"])
|
|
501
|
-
]),
|
|
502
|
-
_createVNode(_unref(Button), {
|
|
503
|
-
type: "link",
|
|
504
|
-
class: "more-btn",
|
|
505
|
-
onClick: expandChange
|
|
506
|
-
}, {
|
|
507
|
-
default: _withCtx(() => [
|
|
508
|
-
_createElementVNode("span", _hoisted_7, _toDisplayString(_unref(contextLocale).advanced.more), 1 /* TEXT */),
|
|
509
|
-
_createVNode(_unref(AIcon), {
|
|
510
|
-
type: "DoubleRightOutlined",
|
|
511
|
-
class: _normalizeClass([
|
|
512
|
-
'more-icon',
|
|
513
|
-
expand.value ? 'more-up' : 'more-down',
|
|
514
|
-
])
|
|
515
|
-
}, null, 8 /* PROPS */, ["class"])
|
|
516
|
-
]),
|
|
517
|
-
_: 1 /* STABLE */
|
|
518
|
-
})
|
|
435
|
+
})
|
|
436
|
+
])
|
|
519
437
|
], 2 /* CLASS */)
|
|
520
438
|
], 2 /* CLASS */))
|
|
521
439
|
: (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
|
|
@@ -526,21 +444,23 @@ const __sfc_main__ = _defineComponent({
|
|
|
526
444
|
_createVNode(SearchItem, {
|
|
527
445
|
expand: false,
|
|
528
446
|
index: 1,
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
447
|
+
onlyValue: false,
|
|
448
|
+
value: terms.terms[0].value,
|
|
449
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => ((terms.terms[0].value) = $event)),
|
|
450
|
+
termType: terms.terms[0].termType,
|
|
451
|
+
"onUpdate:termType": _cache[2] || (_cache[2] = ($event) => ((terms.terms[0].termType) = $event)),
|
|
452
|
+
column: terms.terms[0].column,
|
|
453
|
+
"onUpdate:column": _cache[3] || (_cache[3] = ($event) => ((terms.terms[0].column) = $event)),
|
|
454
|
+
type: terms.terms[0].type,
|
|
455
|
+
"onUpdate:type": _cache[4] || (_cache[4] = ($event) => ((terms.terms[0].type) = $event))
|
|
456
|
+
}, null, 8 /* PROPS */, ["value", "termType", "column", "type"])
|
|
534
457
|
])
|
|
535
458
|
]),
|
|
536
459
|
_createElementVNode("div", _hoisted_11, [
|
|
537
460
|
_createElementVNode("div", _hoisted_12, [
|
|
538
461
|
_createVNode(_unref(FormItemRest), null, {
|
|
539
462
|
default: _withCtx(() => [
|
|
540
|
-
_createVNode(_unref(Button), {
|
|
541
|
-
type: "stroke",
|
|
542
|
-
onClick: reset
|
|
543
|
-
}, {
|
|
463
|
+
_createVNode(_unref(Button), { onClick: reset }, {
|
|
544
464
|
default: _withCtx(() => [
|
|
545
465
|
_createTextVNode(_toDisplayString(_unref(contextLocale).advanced.reset), 1 /* TEXT */)
|
|
546
466
|
]),
|
|
@@ -564,7 +484,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
564
484
|
], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */))
|
|
565
485
|
], 6 /* CLASS, STYLE */)
|
|
566
486
|
]),
|
|
567
|
-
_:
|
|
487
|
+
_: 3 /* FORWARDED */
|
|
568
488
|
}, 8 /* PROPS */, ["model"]));
|
|
569
489
|
};
|
|
570
490
|
}
|