@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.
Files changed (284) hide show
  1. package/es/AutoComplete/AutoComplete.js +2 -3
  2. package/es/BadgeStatus/Badge.js +2 -3
  3. package/es/CardSelect/CardSelect.js +23 -18
  4. package/es/CardSelect/style/index.js +25 -1
  5. package/es/CheckButton/CheckButton.js +12 -4
  6. package/es/CheckButton/style/index.js +41 -1
  7. package/es/ConfigProvider/index.js +1 -1
  8. package/es/DragModal/DragModal.js +15 -9
  9. package/es/DragModal/style/index.js +64 -1
  10. package/es/EditTable/Body.js +10 -3
  11. package/es/EditTable/EditTable.js +14 -8
  12. package/es/EditTable/FormItem.js +15 -10
  13. package/es/EditTable/Header.js +16 -6
  14. package/es/EditTable/components/ContextMenu/Menu.js +12 -6
  15. package/es/EditTable/components/Search/search.js +1 -2
  16. package/es/EditTable/components/Search/sort.js +1 -3
  17. package/es/EditTable/group.js +24 -19
  18. package/es/EditTable/hooks/useValidate.js +1 -1
  19. package/es/EditTable/style/body.js +53 -0
  20. package/es/EditTable/style/form.js +24 -0
  21. package/es/EditTable/style/group.js +25 -0
  22. package/es/EditTable/style/header.js +58 -0
  23. package/es/EditTable/style/index.js +42 -1
  24. package/es/EditTable/style/menu.js +27 -0
  25. package/es/EditTable/style/table.js +46 -0
  26. package/es/EditTable/utils.js +1 -1
  27. package/es/Ellipsis/Ellipsis.js +11 -3
  28. package/es/Ellipsis/style/index.js +24 -1
  29. package/es/Empty/Empty.js +1 -1
  30. package/es/FullPage/FullPage.js +1 -2
  31. package/es/LocaleProvider/index.js +1 -2
  32. package/es/PermissionButton/index.js +4 -5
  33. package/es/ProLayout/Basic/BasicLayout.js +46 -42
  34. package/es/ProLayout/Basic/BasicLayoutStyle.js +39 -0
  35. package/es/ProLayout/Basic/Header.js +4 -8
  36. package/es/ProLayout/Basic/HeaderStyle.js +10 -0
  37. package/es/ProLayout/PageContainer/index.js +20 -16
  38. package/es/ProLayout/PageContainer/style.js +46 -0
  39. package/es/ProLayout/SiderMenu/BaseMenu.js +14 -37
  40. package/es/ProLayout/SiderMenu/SiderMenu.js +25 -36
  41. package/es/ProLayout/SiderMenu/style.js +166 -0
  42. package/es/ProLayout/TopHeader/index.js +12 -11
  43. package/es/ProLayout/TopHeader/style.js +126 -0
  44. package/es/ProLayout/style/index.js +7 -1
  45. package/es/ProLayout/util.js +5 -5
  46. package/es/ProTable/Alert.js +13 -5
  47. package/es/ProTable/Content.js +22 -14
  48. package/es/ProTable/Header.js +22 -12
  49. package/es/ProTable/Pagination.js +13 -5
  50. package/es/ProTable/ProTable.js +43 -27
  51. package/es/ProTable/setting.js +1 -1
  52. package/es/ProTable/style/index.js +109 -1
  53. package/es/RadioButton/RadioButton.js +10 -4
  54. package/es/RadioButton/style/index.js +23 -1
  55. package/es/Scrollbar/Scrollbar.js +10 -3
  56. package/es/Scrollbar/Thumb.js +36 -25
  57. package/es/Scrollbar/style/index.js +63 -1
  58. package/es/Search/Advanced/History.js +24 -17
  59. package/es/Search/Advanced/SaveHistory.js +2 -3
  60. package/es/Search/Advanced/index.js +213 -293
  61. package/es/Search/Item.js +175 -415
  62. package/es/Search/Search.js +78 -172
  63. package/es/Search/hooks/index.js +108 -1
  64. package/es/Search/hooks/useRouteQuery.js +57 -0
  65. package/es/Search/setting.js +132 -14
  66. package/es/Search/style/index.js +4 -2
  67. package/es/Search/style/item.js +28 -0
  68. package/es/Search/style/search.js +133 -0
  69. package/es/Search/util.js +116 -124
  70. package/es/Skeleton/components/DashBoardCard.js +64 -0
  71. package/es/Skeleton/components/DashBoardChart.js +96 -0
  72. package/es/Skeleton/components/Detail.js +110 -0
  73. package/es/Skeleton/components/Drawer.js +91 -0
  74. package/es/Skeleton/components/Item.js +68 -0
  75. package/es/Skeleton/components/List.js +45 -0
  76. package/es/Skeleton/components/ListCard.js +63 -0
  77. package/es/Skeleton/components/ListCardItem.js +86 -0
  78. package/es/Skeleton/components/ListTable.js +76 -0
  79. package/es/Skeleton/components/Page.js +62 -0
  80. package/es/Skeleton/components/Search.js +54 -0
  81. package/es/Skeleton/components/Tree.js +72 -0
  82. package/es/Skeleton/index.js +15 -0
  83. package/es/Skeleton/skeleton.js +58 -0
  84. package/es/Skeleton/style/index.js +132 -0
  85. package/es/Title/style/index.js +29 -1
  86. package/es/Title/title.js +13 -5
  87. package/es/ValueItem/ValueItem.js +29 -72
  88. package/es/components.js +0 -3
  89. package/es/locale/en-US.js +0 -7
  90. package/es/locale/zh-CN.js +0 -7
  91. package/es/style/index.js +0 -3
  92. package/es/style/styleRegister.js +21 -0
  93. package/es/style/variable.js +4 -0
  94. package/es/style.js +0 -12
  95. package/lib/AutoComplete/AutoComplete.js +1 -2
  96. package/lib/BadgeStatus/Badge.js +2 -3
  97. package/lib/CardSelect/CardSelect.js +23 -18
  98. package/lib/CardSelect/style/index.js +30 -1
  99. package/lib/CheckButton/CheckButton.js +12 -4
  100. package/lib/CheckButton/style/index.js +46 -1
  101. package/lib/ConfigProvider/context.js +1 -1
  102. package/lib/ConfigProvider/index.js +3 -3
  103. package/lib/DragModal/DragModal.js +15 -9
  104. package/lib/DragModal/style/index.js +69 -1
  105. package/lib/EditTable/Body.js +10 -3
  106. package/lib/EditTable/EditTable.js +13 -7
  107. package/lib/EditTable/FormItem.js +16 -11
  108. package/lib/EditTable/Header.js +16 -6
  109. package/lib/EditTable/components/ContextMenu/Menu.js +12 -6
  110. package/lib/EditTable/components/Search/search.js +1 -2
  111. package/lib/EditTable/components/Search/sort.js +1 -3
  112. package/lib/EditTable/group.js +24 -19
  113. package/lib/EditTable/hooks/useValidate.js +1 -1
  114. package/lib/EditTable/style/body.js +60 -0
  115. package/lib/EditTable/style/form.js +31 -0
  116. package/lib/EditTable/style/group.js +32 -0
  117. package/lib/EditTable/style/header.js +65 -0
  118. package/lib/EditTable/style/index.js +47 -1
  119. package/lib/EditTable/style/menu.js +33 -0
  120. package/lib/EditTable/style/table.js +52 -0
  121. package/lib/EditTable/utils.js +1 -1
  122. package/lib/Ellipsis/Ellipsis.js +11 -3
  123. package/lib/Ellipsis/style/index.js +29 -1
  124. package/lib/Empty/Empty.js +1 -1
  125. package/lib/FullPage/FullPage.js +1 -2
  126. package/lib/LocaleProvider/index.js +1 -2
  127. package/lib/PermissionButton/index.js +9 -10
  128. package/lib/ProLayout/Basic/BasicLayout.js +55 -51
  129. package/lib/ProLayout/Basic/BasicLayoutStyle.js +46 -0
  130. package/lib/ProLayout/Basic/Header.js +6 -10
  131. package/lib/ProLayout/Basic/HeaderStyle.js +17 -0
  132. package/lib/ProLayout/PageContainer/index.js +24 -20
  133. package/lib/ProLayout/PageContainer/style.js +53 -0
  134. package/lib/ProLayout/SiderMenu/BaseMenu.js +18 -40
  135. package/lib/ProLayout/SiderMenu/SiderMenu.js +28 -39
  136. package/lib/ProLayout/SiderMenu/style.js +173 -0
  137. package/lib/ProLayout/TopHeader/index.js +12 -10
  138. package/lib/ProLayout/TopHeader/style.js +133 -0
  139. package/lib/ProLayout/defaultSettings.js +1 -1
  140. package/lib/ProLayout/style/index.js +12 -1
  141. package/lib/ProLayout/util.js +5 -5
  142. package/lib/ProTable/Alert.js +13 -5
  143. package/lib/ProTable/Content.js +22 -14
  144. package/lib/ProTable/Header.js +22 -12
  145. package/lib/ProTable/Pagination.js +13 -5
  146. package/lib/ProTable/ProTable.js +43 -27
  147. package/lib/ProTable/setting.js +3 -3
  148. package/lib/ProTable/style/index.js +114 -1
  149. package/lib/RadioButton/RadioButton.js +10 -4
  150. package/lib/RadioButton/style/index.js +28 -1
  151. package/lib/Scrollbar/Scrollbar.js +10 -3
  152. package/lib/Scrollbar/Thumb.js +36 -25
  153. package/lib/Scrollbar/style/index.js +68 -1
  154. package/lib/Search/Advanced/History.js +24 -17
  155. package/lib/Search/Advanced/SaveHistory.js +2 -3
  156. package/lib/Search/Advanced/index.js +213 -293
  157. package/lib/Search/Item.js +175 -415
  158. package/lib/Search/Search.js +78 -172
  159. package/lib/Search/hooks/index.js +130 -1
  160. package/lib/Search/hooks/useRouteQuery.js +64 -0
  161. package/lib/Search/setting.js +133 -15
  162. package/lib/Search/style/index.js +9 -2
  163. package/lib/Search/style/item.js +35 -0
  164. package/lib/Search/style/search.js +140 -0
  165. package/lib/Search/util.js +116 -124
  166. package/lib/Skeleton/components/DashBoardCard.js +64 -0
  167. package/lib/Skeleton/components/DashBoardChart.js +96 -0
  168. package/lib/Skeleton/components/Detail.js +110 -0
  169. package/lib/Skeleton/components/Drawer.js +91 -0
  170. package/lib/Skeleton/components/Item.js +68 -0
  171. package/lib/Skeleton/components/List.js +45 -0
  172. package/lib/Skeleton/components/ListCard.js +63 -0
  173. package/lib/Skeleton/components/ListCardItem.js +86 -0
  174. package/lib/Skeleton/components/ListTable.js +76 -0
  175. package/lib/Skeleton/components/Page.js +62 -0
  176. package/lib/Skeleton/components/Search.js +54 -0
  177. package/lib/Skeleton/components/Tree.js +72 -0
  178. package/lib/Skeleton/index.js +75 -0
  179. package/lib/Skeleton/skeleton.js +58 -0
  180. package/lib/Skeleton/style/index.js +139 -0
  181. package/lib/Title/style/index.js +34 -1
  182. package/lib/Title/title.js +13 -5
  183. package/lib/ValueItem/ValueItem.js +29 -72
  184. package/lib/components.js +0 -21
  185. package/lib/locale/en-US.js +0 -7
  186. package/lib/locale/zh-CN.js +0 -7
  187. package/lib/style/components.less +0 -1
  188. package/lib/style/index.js +1 -4
  189. package/lib/style/styleRegister.js +28 -0
  190. package/lib/style/variable.js +10 -0
  191. package/lib/style.js +1 -14
  192. package/package.json +13 -14
  193. package/es/AMap/Map.js +0 -133
  194. package/es/AMap/index.js +0 -5
  195. package/es/AMap/util.js +0 -56
  196. package/es/CardSelect/style/index.css +0 -24
  197. package/es/CardSelect/style/index.less +0 -26
  198. package/es/CheckButton/style/index.css +0 -37
  199. package/es/CheckButton/style/index.less +0 -40
  200. package/es/DragModal/style/index.css +0 -82
  201. package/es/DragModal/style/index.less +0 -97
  202. package/es/Echarts/Echarts.js +0 -48
  203. package/es/Echarts/index.js +0 -5
  204. package/es/EditTable/style/body.less +0 -66
  205. package/es/EditTable/style/form.less +0 -33
  206. package/es/EditTable/style/group.less +0 -32
  207. package/es/EditTable/style/header.less +0 -77
  208. package/es/EditTable/style/index.css +0 -267
  209. package/es/EditTable/style/index.less +0 -41
  210. package/es/EditTable/style/menu.less +0 -25
  211. package/es/EditTable/style/table.less +0 -47
  212. package/es/Ellipsis/style/index.css +0 -17
  213. package/es/Ellipsis/style/index.less +0 -20
  214. package/es/MonacoEditor/Monaco.js +0 -242
  215. package/es/MonacoEditor/index.js +0 -5
  216. package/es/MonacoEditor/style/index.css +0 -4
  217. package/es/MonacoEditor/style/index.js +0 -1
  218. package/es/MonacoEditor/style/index.less +0 -4
  219. package/es/ProLayout/Basic/BasicLayout.less +0 -66
  220. package/es/ProLayout/Basic/Header.less +0 -8
  221. package/es/ProLayout/PageContainer/index.less +0 -103
  222. package/es/ProLayout/SiderMenu/index.less +0 -231
  223. package/es/ProLayout/TopHeader/index.less +0 -174
  224. package/es/ProLayout/style/default.less +0 -4
  225. package/es/ProLayout/style/style.less +0 -7
  226. package/es/ProTable/style/ProTable.less +0 -141
  227. package/es/RadioButton/style/index.css +0 -20
  228. package/es/RadioButton/style/index.less +0 -19
  229. package/es/Scrollbar/style/index.css +0 -65
  230. package/es/Scrollbar/style/index.less +0 -83
  231. package/es/Search/style/Item.less +0 -33
  232. package/es/Search/style/Search.less +0 -179
  233. package/es/Title/style/index.css +0 -23
  234. package/es/Title/style/index.less +0 -25
  235. package/es/style/index.css +0 -5197
  236. package/es/style/index.less +0 -13
  237. package/es/style/variable.css +0 -4
  238. package/es/style/variable.less +0 -4
  239. package/lib/AMap/Map.js +0 -133
  240. package/lib/AMap/index.js +0 -12
  241. package/lib/AMap/util.js +0 -62
  242. package/lib/CardSelect/style/index.css +0 -24
  243. package/lib/CardSelect/style/index.less +0 -26
  244. package/lib/CheckButton/style/index.css +0 -37
  245. package/lib/CheckButton/style/index.less +0 -40
  246. package/lib/DragModal/style/index.css +0 -82
  247. package/lib/DragModal/style/index.less +0 -97
  248. package/lib/Echarts/Echarts.js +0 -48
  249. package/lib/Echarts/index.js +0 -12
  250. package/lib/EditTable/style/body.less +0 -66
  251. package/lib/EditTable/style/form.less +0 -33
  252. package/lib/EditTable/style/group.less +0 -32
  253. package/lib/EditTable/style/header.less +0 -77
  254. package/lib/EditTable/style/index.css +0 -267
  255. package/lib/EditTable/style/index.less +0 -41
  256. package/lib/EditTable/style/menu.less +0 -25
  257. package/lib/EditTable/style/table.less +0 -47
  258. package/lib/Ellipsis/style/index.css +0 -17
  259. package/lib/Ellipsis/style/index.less +0 -20
  260. package/lib/MonacoEditor/Monaco.js +0 -242
  261. package/lib/MonacoEditor/index.js +0 -12
  262. package/lib/MonacoEditor/style/index.css +0 -4
  263. package/lib/MonacoEditor/style/index.js +0 -3
  264. package/lib/MonacoEditor/style/index.less +0 -4
  265. package/lib/ProLayout/Basic/BasicLayout.less +0 -66
  266. package/lib/ProLayout/Basic/Header.less +0 -8
  267. package/lib/ProLayout/PageContainer/index.less +0 -103
  268. package/lib/ProLayout/SiderMenu/index.less +0 -231
  269. package/lib/ProLayout/TopHeader/index.less +0 -174
  270. package/lib/ProLayout/style/default.less +0 -4
  271. package/lib/ProLayout/style/style.less +0 -7
  272. package/lib/ProTable/style/ProTable.less +0 -141
  273. package/lib/RadioButton/style/index.css +0 -20
  274. package/lib/RadioButton/style/index.less +0 -19
  275. package/lib/Scrollbar/style/index.css +0 -65
  276. package/lib/Scrollbar/style/index.less +0 -83
  277. package/lib/Search/style/Item.less +0 -33
  278. package/lib/Search/style/Search.less +0 -179
  279. package/lib/Title/style/index.css +0 -23
  280. package/lib/Title/style/index.less +0 -25
  281. package/lib/style/index.css +0 -5197
  282. package/lib/style/index.less +0 -13
  283. package/lib/style/variable.css +0 -4
  284. 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
- "useElementSize": "setup-maybe-ref",
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
- "provide": "setup-const",
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
- "getTermTypeFn": "setup-maybe-ref",
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
- "contextLocale": "setup-maybe-ref",
34
+ "SearchConfig": "setup-maybe-ref",
35
+ "isObject": "setup-maybe-ref",
36
+ "useSearchStyle": "setup-maybe-ref",
55
37
  "props": "setup-reactive-const",
56
- "searchRef": "setup-ref",
57
- "searchRefContentRef": "setup-ref",
58
- "width": "setup-maybe-ref",
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
- "resetNumber": "setup-ref",
66
- "isFirstHandleDefaultValues": "setup-let",
67
- "searchItems": "setup-ref",
68
- "termsData": "setup-reactive-const",
69
- "columnOptionMap": "setup-ref",
70
- "emit": "setup-const",
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 { createCommentVNode as _createCommentVNode, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createElementVNode as _createElementVNode, unref as _unref, createElementBlock as _createElementBlock, renderList as _renderList, Fragment as _Fragment, normalizeClass as _normalizeClass, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, normalizeStyle as _normalizeStyle } from "vue";
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 { optionsMapKey, typeOptions } from '../setting';
105
- import { useElementSize } from '@vueuse/core';
106
- import { useRouteQuery } from '@vueuse/router';
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, getTermTypeFn, handleQData, hasExpand, termsParamsFormat, termsToValue, } from '../util';
111
- import { Select, Button, Form, FormItemRest } from 'ant-design-vue/lib/';
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: ["search"],
140
+ emits: ['search'],
168
141
  setup(__props, { expose: __expose, emit: __emit }) {
169
- const [contextLocale] = useLocaleReceiver('Search');
170
142
  const props = __props;
171
- const searchRef = ref(null);
172
- const searchRefContentRef = ref(null);
173
- const { width } = useElementSize(searchRef);
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 resetNumber = ref(1);
185
- let isFirstHandleDefaultValues = false;
186
- const searchItems = ref([]); // 当前查询条件
187
- const termsData = reactive({
188
- terms: [
189
- { terms: [null, null, null] },
190
- { terms: [null, null, null], type: 'and' },
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
- if (!expand.value) {
199
- // 收起
200
- const firstItem = termsData.terms[0].terms[0];
201
- termsData.terms = [
202
- { terms: [firstItem, null, null] },
203
- { type: 'or', terms: [null, null, null] },
204
- ];
205
- }
206
- };
207
- const itemValueChange = (value, index) => {
208
- if (index < 4) {
209
- // 第一组数据
210
- termsData.terms[0].terms[index - 1] = value;
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(termsData));
178
+ q.value = encodeURI(JSON.stringify(terms));
220
179
  target.value = props.target;
221
180
  }
222
181
  };
223
182
  const submitData = () => {
224
- emit('search', termsParamsFormat(termsData, columnOptionMap.value));
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
- termsData.terms = _optionalChain([handleQData, 'call', _2 => _2(compatibleOldTerms(content)), 'optionalAccess', _3 => _3.terms]) || [];
254
- expand.value = hasExpand(termsData.terms);
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组件中handleUrlParams处理JSON时异常:【${e}】`);
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 = (_params) => {
266
- // URL中的targetprops的一致,则还原查询参数
267
- if (props.target && _params.target === props.target && _params.q) {
268
- const qStr = decodeURI(_params.q);
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
- const handleDefaultValues = () => {
278
- const defaultValues = props.defaultValues.terms.map((a) => {
279
- a.terms.map((b) => {
280
- return termsToValue(b, searchItems.value);
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
- return a;
283
- });
284
- termsData.terms = _optionalChain([handleQData, 'call', _6 => _6(compatibleOldTerms(JSON.stringify({ terms: defaultValues }))), 'optionalAccess', _7 => _7.terms]) || [];
285
- expand.value = hasExpand(termsData.terms);
286
- emit('search', termsParamsFormat(termsData, columnOptionMap.value));
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
- * 处理每项的key为Item组件所需要的key
256
+ * 处理传入的默认值
290
257
  */
291
- const handleItems = () => {
292
- searchItems.value = [];
293
- columnOptionMap.value.clear();
294
- props.columns.forEach((item, index) => {
295
- const _item = cloneDeep(item);
296
- if (_item.search && Object.keys(_item.search).length) {
297
- columnOptionMap.value.set(
298
- // _item.search?.rename || _item.dataIndex,
299
- _item.dataIndex, _item.search);
300
- // 默认值
301
- const { search } = _item;
302
- let defaultTerms = null;
303
- // 包含defaultValue 或者 defaultOnceValue
304
- if (search.defaultValue !== undefined || search.defaultOnceValue) {
305
- const _value = search.defaultValue || search.defaultOnceValue;
306
- defaultTerms = {
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
- watch(() => props.columns, () => {
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: termsData,
300
+ model: terms,
381
301
  onFinish: searchSubmit
382
302
  }, {
383
303
  default: _withCtx(() => [
384
304
  _createElementVNode("div", {
385
- ref_key: "searchRef",
386
- ref: searchRef,
387
- class: _normalizeClass(['JSearch-warp', 'senior', props.class]),
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
- ref_key: "searchRefContentRef",
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
- _createVNode(SearchItem, {
412
- expand: expand.value,
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: 3,
435
- columns: searchItems.value,
436
- "terms-item": termsData.terms[0].terms[2],
437
- reset: resetNumber.value,
438
- onChange: _cache[2] || (_cache[2] = (v) => itemValueChange(v, 3))
439
- }, null, 8 /* PROPS */, ["expand", "columns", "terms-item", "reset"]))
440
- : _createCommentVNode("v-if", true)
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: termsData.terms[1].type,
447
- "onUpdate:value": _cache[3] || (_cache[3] = ($event) => ((termsData.terms[1].type) = $event)),
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([4, 5, 6], (item) => {
458
- return _createVNode(SearchItem, {
459
- key: `search_item_${item}`,
460
- expand: expand.value,
461
- index: item,
462
- columns: searchItems.value,
463
- "terms-item": termsData.terms[1].terms[item - 4],
464
- reset: resetNumber.value,
465
- onChange: (v) => itemValueChange(v, item)
466
- }, null, 8 /* PROPS */, ["expand", "index", "columns", "terms-item", "reset", "onChange"]);
467
- }), 64 /* STABLE_FRAGMENT */))
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
- _createElementVNode("div", _hoisted_6, [
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: "stroke",
481
- onClick: reset
420
+ type: "link",
421
+ class: "more-btn",
422
+ onClick: expandChange
482
423
  }, {
483
424
  default: _withCtx(() => [
484
- _createTextVNode(_toDisplayString(_unref(contextLocale).advanced.reset), 1 /* TEXT */)
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
- _createVNode(SaveHistory, {
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
- columns: searchItems.value,
530
- "terms-item": termsData.terms[0].terms[0],
531
- reset: resetNumber.value,
532
- onChange: _cache[4] || (_cache[4] = (v) => itemValueChange(v, 1))
533
- }, null, 8 /* PROPS */, ["columns", "terms-item", "reset"])
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
- _: 1 /* STABLE */
487
+ _: 3 /* FORWARDED */
568
488
  }, 8 /* PROPS */, ["model"]));
569
489
  };
570
490
  }