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