@robot-admin/naive-ui-components 0.22.1 → 0.23.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 (308) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +7 -5
  3. package/README_EN.md +7 -5
  4. package/dist/C_ActionBar.d.cts +2 -1
  5. package/dist/C_ActionBar.d.ts +2 -1
  6. package/dist/C_AntV2.cjs +3 -3
  7. package/dist/C_AntV2.js +3 -3
  8. package/dist/C_BatchResult.cjs +1 -0
  9. package/dist/C_BatchResult.css +32 -0
  10. package/dist/C_BatchResult.d.cts +2 -0
  11. package/dist/C_BatchResult.d.ts +2 -0
  12. package/dist/C_BatchResult.js +1 -0
  13. package/dist/C_BatchResult2.cjs +1 -0
  14. package/dist/C_BatchResult2.js +1 -0
  15. package/dist/C_Breadcrumb.d.cts +2 -2
  16. package/dist/C_Breadcrumb.d.ts +1 -1
  17. package/dist/C_Cascade.d.cts +1 -1
  18. package/dist/C_Cascade.d.ts +1 -1
  19. package/dist/C_Chat.d.cts +1 -1
  20. package/dist/C_Chat.d.ts +1 -1
  21. package/dist/C_City.d.cts +1 -1
  22. package/dist/C_City.d.ts +1 -1
  23. package/dist/C_Code.d.cts +1 -1
  24. package/dist/C_Code.d.ts +1 -1
  25. package/dist/C_ContextMenu.d.cts +1 -1
  26. package/dist/C_ContextMenu.d.ts +1 -1
  27. package/dist/C_DataPicker.cjs +1 -0
  28. package/dist/C_DataPicker.css +54 -0
  29. package/dist/C_DataPicker.d.cts +2 -0
  30. package/dist/C_DataPicker.d.ts +5 -0
  31. package/dist/C_DataPicker.js +1 -0
  32. package/dist/C_DataPicker2.cjs +1 -0
  33. package/dist/C_DataPicker2.js +1 -0
  34. package/dist/C_Date.d.cts +1 -1
  35. package/dist/C_Date.d.ts +1 -1
  36. package/dist/C_Density.cjs +1 -0
  37. package/dist/C_Density.css +1 -0
  38. package/dist/C_Density.d.cts +3 -0
  39. package/dist/C_Density.d.ts +3 -0
  40. package/dist/C_Density.js +1 -0
  41. package/dist/C_Density2.cjs +1 -0
  42. package/dist/C_Density2.js +1 -0
  43. package/dist/C_Editor.d.cts +1 -1
  44. package/dist/C_Editor.d.ts +1 -1
  45. package/dist/C_ErrorSummary.cjs +1 -0
  46. package/dist/C_ErrorSummary.css +29 -0
  47. package/dist/C_ErrorSummary.d.cts +3 -0
  48. package/dist/C_ErrorSummary.d.ts +3 -0
  49. package/dist/C_ErrorSummary.js +1 -0
  50. package/dist/C_ErrorSummary2.cjs +1 -0
  51. package/dist/C_ErrorSummary2.js +1 -0
  52. package/dist/C_Form.base.css +150 -148
  53. package/dist/C_Form.css +151 -253
  54. package/dist/C_Form.d.cts +1 -1
  55. package/dist/C_Form.d.ts +19 -2
  56. package/dist/C_FormModal.css +1 -2
  57. package/dist/C_FormModal.d.cts +1 -1
  58. package/dist/C_FormModal.d.ts +17 -2
  59. package/dist/C_FormSearch.cjs +1 -1
  60. package/dist/C_FormSearch.css +124 -52
  61. package/dist/C_FormSearch.d.cts +3 -3
  62. package/dist/C_FormSearch.d.ts +5 -4
  63. package/dist/C_FormSearch.js +1 -1
  64. package/dist/C_FormulaEditor.d.cts +1 -1
  65. package/dist/C_FormulaEditor.d.ts +1 -1
  66. package/dist/C_Guide.d.cts +1 -1
  67. package/dist/C_Guide.d.ts +1 -1
  68. package/dist/C_Icon.d.cts +1 -1
  69. package/dist/C_Icon.d.ts +1 -1
  70. package/dist/C_Language.d.cts +1 -1
  71. package/dist/C_Language.d.ts +1 -1
  72. package/dist/C_Loading.d.cts +1 -1
  73. package/dist/C_Loading.d.ts +1 -1
  74. package/dist/C_Login.d.cts +1 -1
  75. package/dist/C_Login.d.ts +1 -1
  76. package/dist/C_Markdown.d.cts +1 -1
  77. package/dist/C_Markdown.d.ts +1 -1
  78. package/dist/C_Menu.d.cts +2 -2
  79. package/dist/C_Menu.d.ts +1 -1
  80. package/dist/C_OrgChart.d.cts +1 -1
  81. package/dist/C_OrgChart.d.ts +1 -1
  82. package/dist/C_Progress.d.cts +1 -1
  83. package/dist/C_Progress.d.ts +1 -1
  84. package/dist/C_SectionNav.cjs +1 -0
  85. package/dist/C_SectionNav.css +46 -0
  86. package/dist/C_SectionNav.d.cts +2 -0
  87. package/dist/C_SectionNav.d.ts +2 -0
  88. package/dist/C_SectionNav.js +1 -0
  89. package/dist/C_SectionNav2.cjs +1 -0
  90. package/dist/C_SectionNav2.js +1 -0
  91. package/dist/C_Skeleton.d.cts +1 -1
  92. package/dist/C_Skeleton.d.ts +1 -1
  93. package/dist/C_Steps.d.cts +1 -1
  94. package/dist/C_Steps.d.ts +1 -1
  95. package/dist/C_Table.base.css +258 -256
  96. package/dist/C_Table.cjs +1 -1
  97. package/dist/C_Table.css +109 -1283
  98. package/dist/C_Table.d.cts +2 -1
  99. package/dist/C_Table.d.ts +9 -8
  100. package/dist/C_Table.js +1 -1
  101. package/dist/C_Table2.cjs +3 -0
  102. package/dist/C_Table2.js +3 -0
  103. package/dist/C_Tabs.cjs +1 -1
  104. package/dist/C_Tabs.d.cts +1 -1
  105. package/dist/C_Tabs.d.ts +1 -1
  106. package/dist/C_Tabs.js +1 -1
  107. package/dist/C_TagsView.d.cts +1 -1
  108. package/dist/C_Theme.d.cts +1 -1
  109. package/dist/C_Theme.d.ts +1 -1
  110. package/dist/C_Timeline.d.cts +1 -1
  111. package/dist/C_Timeline.d.ts +1 -1
  112. package/dist/C_Transfer.d.cts +1 -1
  113. package/dist/C_Transfer.d.ts +1 -1
  114. package/dist/C_Tree.d.cts +1 -1
  115. package/dist/C_Tree.d.ts +9 -8
  116. package/dist/C_Upload.d.cts +1 -1
  117. package/dist/C_Upload.d.ts +1 -1
  118. package/dist/C_WorkFlow2.cjs +1 -1
  119. package/dist/C_WorkFlow2.js +1 -1
  120. package/dist/Card.cjs +1 -1
  121. package/dist/Card.js +1 -1
  122. package/dist/Steps.cjs +1 -1
  123. package/dist/Steps.js +1 -1
  124. package/dist/Tabs.cjs +1 -1
  125. package/dist/Tabs.js +1 -1
  126. package/dist/batchPatch.cjs +1 -0
  127. package/dist/batchPatch.d.cts +26 -0
  128. package/dist/batchPatch.d.ts +26 -0
  129. package/dist/batchPatch.js +1 -0
  130. package/dist/config.cjs +1 -1
  131. package/dist/config.d.cts +4 -1
  132. package/dist/config.d.ts +6 -2
  133. package/dist/config.js +1 -1
  134. package/dist/config2.d.ts +1 -1
  135. package/dist/constants.d.cts +3 -3
  136. package/dist/constants.d.ts +3 -3
  137. package/dist/constants2.d.cts +402 -173
  138. package/dist/constants2.d.ts +402 -173
  139. package/dist/constants3.d.cts +4 -4
  140. package/dist/constants3.d.ts +4 -4
  141. package/dist/constants4.d.cts +173 -402
  142. package/dist/constants4.d.ts +173 -402
  143. package/dist/constants5.d.cts +2 -2
  144. package/dist/constants5.d.ts +2 -2
  145. package/dist/contracts.d.ts +24 -0
  146. package/dist/data.cjs +1 -1
  147. package/dist/data.d.cts +5 -108
  148. package/dist/data.d.ts +5 -108
  149. package/dist/data.js +1 -1
  150. package/dist/data2.cjs +1 -1
  151. package/dist/data2.d.cts +108 -0
  152. package/dist/data2.d.ts +108 -0
  153. package/dist/data2.js +1 -1
  154. package/dist/data3.cjs +1 -0
  155. package/dist/data3.js +1 -0
  156. package/dist/dateRange.d.cts +108 -13
  157. package/dist/dateRange.d.ts +110 -14
  158. package/dist/density.d.ts +15 -0
  159. package/dist/dictionary.cjs +1 -0
  160. package/dist/dictionary.d.cts +38 -0
  161. package/dist/dictionary.d.ts +38 -0
  162. package/dist/dictionary.js +1 -0
  163. package/dist/helpers.cjs +1 -1
  164. package/dist/helpers.js +1 -1
  165. package/dist/index.cjs +1 -1
  166. package/dist/index.d.cts +63 -52
  167. package/dist/index.d.ts +71 -57
  168. package/dist/index.js +1 -1
  169. package/dist/index.vue.d.cts +5 -5
  170. package/dist/index.vue.d.ts +5 -5
  171. package/dist/index10.vue.d.cts +37 -80
  172. package/dist/index10.vue.d.ts +77 -53
  173. package/dist/index11.vue.d.cts +77 -53
  174. package/dist/index11.vue.d.ts +1117 -45
  175. package/dist/index12.vue.d.cts +1117 -45
  176. package/dist/index12.vue.d.ts +17 -128
  177. package/dist/index13.vue.d.cts +17 -128
  178. package/dist/index13.vue.d.ts +57 -53
  179. package/dist/index14.vue.d.cts +57 -53
  180. package/dist/index14.vue.d.ts +16 -25
  181. package/dist/index15.vue.d.cts +16 -25
  182. package/dist/index15.vue.d.ts +52 -12
  183. package/dist/index16.vue.d.cts +52 -12
  184. package/dist/index16.vue.d.ts +13 -129
  185. package/dist/index17.vue.d.cts +13 -129
  186. package/dist/index17.vue.d.ts +123 -74
  187. package/dist/index18.vue.d.cts +123 -74
  188. package/dist/index18.vue.d.ts +48 -71
  189. package/dist/index19.vue.d.cts +40 -91
  190. package/dist/index19.vue.d.ts +36 -96
  191. package/dist/index2.vue.d.cts +2 -2
  192. package/dist/index2.vue.d.ts +2 -2
  193. package/dist/index20.vue.d.cts +38 -47
  194. package/dist/index20.vue.d.ts +13 -48
  195. package/dist/index21.vue.d.cts +12 -96
  196. package/dist/index21.vue.d.ts +25 -95
  197. package/dist/index22.vue.d.cts +20 -32
  198. package/dist/index22.vue.d.ts +75 -37
  199. package/dist/index23.vue.d.cts +77 -13
  200. package/dist/index23.vue.d.ts +71 -13
  201. package/dist/index24.vue.d.cts +1 -1
  202. package/dist/index25.vue.d.cts +116 -90
  203. package/dist/index25.vue.d.ts +116 -90
  204. package/dist/index26.vue.d.cts +94 -59
  205. package/dist/index26.vue.d.ts +94 -59
  206. package/dist/index27.vue.d.cts +75 -0
  207. package/dist/index27.vue.d.ts +75 -0
  208. package/dist/index28.vue.d.cts +103 -0
  209. package/dist/index28.vue.d.ts +103 -0
  210. package/dist/index29.vue.d.cts +105 -0
  211. package/dist/index29.vue.d.ts +105 -0
  212. package/dist/index3.vue.d.cts +5 -5
  213. package/dist/index3.vue.d.ts +5 -5
  214. package/dist/index30.vue.d.cts +28 -0
  215. package/dist/index30.vue.d.ts +28 -0
  216. package/dist/index4.vue.d.cts +19 -128
  217. package/dist/index4.vue.d.ts +17 -34
  218. package/dist/index5.vue.d.cts +127 -35
  219. package/dist/index5.vue.d.ts +30 -19
  220. package/dist/index6.vue.d.cts +30 -19
  221. package/dist/index6.vue.d.ts +22 -118
  222. package/dist/index7.vue.d.cts +22 -118
  223. package/dist/index7.vue.d.ts +112 -18
  224. package/dist/index8.vue.d.cts +112 -18
  225. package/dist/index8.vue.d.ts +24 -35
  226. package/dist/index9.vue.d.cts +24 -35
  227. package/dist/index9.vue.d.ts +37 -80
  228. package/dist/mapUtils.d.cts +4 -4
  229. package/dist/mapUtils.d.ts +4 -4
  230. package/dist/numberCodec.cjs +1 -0
  231. package/dist/numberCodec.d.cts +25 -0
  232. package/dist/numberCodec.d.ts +25 -0
  233. package/dist/numberCodec.js +1 -0
  234. package/dist/observer.cjs +1 -0
  235. package/dist/observer.js +1 -0
  236. package/dist/presets.d.cts +3 -66
  237. package/dist/presets.d.ts +3 -66
  238. package/dist/resolver.cjs +1 -1
  239. package/dist/resolver.d.cts +1 -1
  240. package/dist/resolver.d.ts +1 -1
  241. package/dist/resolver.js +1 -1
  242. package/dist/serializeSearch.cjs +1 -0
  243. package/dist/serializeSearch.js +1 -0
  244. package/dist/style.css +547 -308
  245. package/dist/types.d.cts +60 -103
  246. package/dist/types.d.ts +62 -52
  247. package/dist/types2.d.cts +104 -51
  248. package/dist/types2.d.ts +56 -0
  249. package/dist/types3.d.cts +56 -0
  250. package/dist/useCollapsePanel.d.cts +6 -6
  251. package/dist/useCollapsePanel.d.ts +6 -6
  252. package/dist/useComponentLocale.cjs +1 -1
  253. package/dist/useComponentLocale.js +1 -1
  254. package/dist/useCropperCore.d.cts +13 -13
  255. package/dist/useCropperCore.d.ts +13 -13
  256. package/dist/useDataResource.cjs +1 -0
  257. package/dist/useDataResource.js +1 -0
  258. package/dist/useDictionary.cjs +1 -0
  259. package/dist/useDictionary.js +1 -0
  260. package/dist/useDynamicFormState.d.cts +960 -10
  261. package/dist/useDynamicFormState.d.ts +951 -11
  262. package/dist/useEdgeInteraction.d.cts +3 -3
  263. package/dist/useEdgeInteraction.d.ts +3 -3
  264. package/dist/useFormArray.cjs +1 -0
  265. package/dist/useFormArray.d.cts +69 -0
  266. package/dist/useFormArray.d.ts +69 -0
  267. package/dist/useFormArray.js +1 -0
  268. package/dist/useFormConfig.d.cts +14 -0
  269. package/dist/useFormConfig.d.ts +17 -38
  270. package/dist/useGridWidth.cjs +1 -0
  271. package/dist/useGridWidth.js +1 -0
  272. package/dist/useInfiniteScroll.d.cts +3 -3
  273. package/dist/useInfiniteScroll.d.ts +3 -3
  274. package/dist/useQRCode.d.cts +5 -5
  275. package/dist/useQRCode.d.ts +5 -5
  276. package/dist/useSignatureHistory.d.cts +7 -7
  277. package/dist/useSignatureHistory.d.ts +7 -7
  278. package/dist/useSplitResize.d.cts +9 -9
  279. package/dist/useSplitResize.d.ts +9 -9
  280. package/dist/useTableGlobalConfig.cjs +1 -0
  281. package/dist/useTableGlobalConfig.js +1 -0
  282. package/dist/useTableQuery.cjs +1 -3
  283. package/dist/useTableQuery.js +1 -3
  284. package/dist/useWorkflowValidation.d.cts +5 -5
  285. package/dist/useWorkflowValidation.d.ts +5 -5
  286. package/dist/validation.cjs +1 -0
  287. package/dist/validation.d.cts +18 -0
  288. package/dist/validation.d.ts +18 -0
  289. package/dist/validation.js +1 -0
  290. package/dist/verification.d.cts +4 -4
  291. package/dist/verification.d.ts +5 -5
  292. package/dist/workflows.cjs +1 -0
  293. package/dist/workflows.d.cts +2 -0
  294. package/dist/workflows.d.ts +2 -0
  295. package/dist/workflows.js +1 -0
  296. package/docs/components.en.md +13 -1
  297. package/docs/components.md +13 -1
  298. package/docs/guides/batch-results.md +47 -0
  299. package/docs/guides/data-picker.md +65 -0
  300. package/docs/guides/data-workflows.md +123 -0
  301. package/docs/guides/form-density.en.md +39 -0
  302. package/docs/guides/form-density.md +39 -0
  303. package/docs/guides/search-workflows.md +164 -0
  304. package/package.json +21 -1
  305. package/dist/C_FormSearch2.cjs +0 -1
  306. package/dist/C_FormSearch2.js +0 -1
  307. package/dist/useTableQuery.d.cts +0 -1957
  308. package/dist/useTableQuery.d.ts +0 -1946
@@ -1 +0,0 @@
1
- require(`./chunk.cjs`);const e=require(`./density.cjs`),t=require(`./useComponentLocale.cjs`),n=require(`./feedback.cjs`),r=require(`./export-helper.cjs`),i=require(`./useActionTask.cjs`),a=require(`./useFormConfig.cjs`),o=require(`./storage.cjs`),s=require(`./data.cjs`);let c=require(`vue`),l=require(`naive-ui`);function u(e,t,n={}){let r=()=>(0,c.toValue)(n),i=(0,c.computed)(()=>!!r().storageKey),a=t=>e.value.find(e=>e.prop===t),s=()=>{let{storageKey:t}=r();t&&o.i(t,Object.fromEntries(e.value.filter(e=>e.hisList?.length).map(e=>[e.prop,e.hisList])))},l=()=>{let{storageKey:e}=r();if(!e)return;let t=o.t(e);t&&(Array.isArray(t)?t.map(e=>[e.prop,e.hisList]):Object.entries(t)).forEach(([e,t])=>{let n=a(e);n&&Array.isArray(t)&&(n.hisList=[...t])})},u=t=>{e.value.forEach(e=>{e.isFocus=!!(e.hisList&&e.prop===t)})},d=e=>{l(),u(e)},f=()=>u(),p=(e,n)=>{a(n)?.type===`input`&&(t.value[n]=e,f())},m=(e,t)=>{let n=a(e);n?.hisList&&(n.hisList.splice(t,1),n.hisList.length===0&&(n.isFocus=!1),s())},h=e=>{let t=a(e);t?.hisList&&(t.hisList=[],t.isFocus=!1,s())},g=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1),e.unshift(t);let i=Math.max(1,r().maxItems??5);return e.length>i&&(e.length=i),e};return{enabled:i,handleFocus:d,closeAllPanels:f,selectHistoryItem:p,deleteHistoryItem:m,clearAllHistory:h,saveCurrentInputs:()=>{i.value&&(Object.keys(t.value).forEach(e=>{let n=t.value[e];if(n==null||n===``)return;let r=a(e);if(r?.type!==`input`||!r.hisList)return;let i=String(n).trim();i&&g(r.hisList,i)}),f(),s())},restoreFromStorage:l}}function d(e,t){return e.defaultValue===void 0?e.type===`input`?``:e.type===`select`&&e.attrs?.multiple===!0?[]:e.type===`select`&&e.attrs?.clearable===!1?s.t(t):null:s.t(e.defaultValue)}function f(e,t,n){return t??(e.type===`input`?``:e.type===`select`&&e.attrs?.multiple===!0?[]:e.type===`select`&&e.attrs?.clearable===!1?d(e,n):null)}function p(e,r){let a=(0,c.computed)(()=>(0,c.toValue)(r.config)??{}),o=n.t(()=>a.value.feedback),{t:l}=t.t(()=>a.value.locale),f=(0,c.ref)(null),p=(0,c.computed)(()=>a.value.foldThreshold??7),m=(0,c.computed)(()=>a.value.requireValue??!0),h=(0,c.ref)(s.t(r.formItemList)),g=(0,c.ref)(s.t(r.formParams)),_=(0,c.ref)(!1),v=i.t(),y=(0,c.computed)(()=>v.isRunning(`search`)),b=!0;(0,c.getCurrentScope)()&&(0,c.onScopeDispose)(()=>{b=!1});let x=u(h,g,r.historyOptions),S=(0,c.computed)(()=>h.value.filter(e=>e.show!==!1)),C=(0,c.computed)(()=>S.value.filter((e,t)=>_.value||t<p.value)),w=(0,c.computed)(()=>S.value.length>p.value),T=e=>e==null||e===``||Array.isArray(e)&&e.length===0,E=()=>{let e=g.value;h.value.forEach(t=>{t.isFocus=!1,t.show!==!1&&(t.type===`select`&&!t.placeholder&&(t.placeholder=`请选择`),t.type!==`spacer`&&e[t.prop]===void 0&&(e[t.prop]=d(t,e[t.prop])))})},D=async()=>{try{return await f.value?.validate(),!0}catch{return w.value&&(_.value=!0),!1}},O=e=>b&&!(0,c.toValue)(r.loading)&&s.a(g.value,e),k=async()=>{let t=s.t(g.value);if(!await D()||!O(t))return!1;if(m.value&&!Object.entries(t).filter(([e])=>e!==`pageNum`&&e!==`pageSize`).some(([,e])=>!T(e)))return o.warning(l(`search.valueRequired`)),!1;if(x.saveCurrentInputs(),e(`search`,s.t(t)),!O(t))return!1;if(!a.value.onSearch)return!0;try{return await a.value.onSearch(t),b}catch(e){return b&&o.error(l(`search.failed`),e),!1}},A=async()=>{let e=await v.run(`search`,k,()=>!(0,c.toValue)(r.loading));return e.executed&&e.value},j=t=>{e(`change-params`,s.t(t)),e(`update:modelValue`,s.t(t))},M=()=>{I=!0;let e=++L;(0,c.nextTick)(()=>{e===L&&(I=!1)})},N=()=>{f.value?.restoreValidation();let t=s.t(g.value),n=t;h.value.forEach(e=>{e.show===!1||e.type===`spacer`||e.prop===`pageNum`||e.prop===`pageSize`||(n[e.prop]=d(e,n[e.prop]))}),M(),g.value=t,j(t),e(`reset`,s.t(t))},P=()=>{_.value=!_.value},F=(e,t)=>{M(),h.value=s.t(e),g.value=s.t(t),E()},I=!1,L=0;return E(),(0,c.watch)(g,e=>{I||j(e)},{deep:!0}),(0,c.onMounted)(()=>{x.restoreFromStorage()}),{formRef:f,fields:h,formParams:g,expanded:_,searching:y,visibleFields:C,availableFields:S,foldThreshold:p,hasExpandButton:w,history:x,searchFn:A,resetFn:N,toggleFold:P,syncFromProps:F}}const m=e=>{if(Array.isArray(e)&&e.length===2){if(e.every(e=>typeof e==`string`))return{mode:`formatted`,value:[e[0],e[1]]};if(e.every(e=>typeof e==`number`&&Number.isFinite(e)))return{mode:`timestamp`,value:[e[0],e[1]]}}return{mode:`timestamp`,value:null}};function h(e,t){let n=e?.map(e=>e.value===void 0?e.label??e.labelDefault:e.value),r=Array.isArray(t)?t:[t],i=new Set([...n??[],...r]),a=new Map;for(let e of[!1,!0]){let t=`__c_form_search_boolean_${e}__`;for(;i.has(t);)t+=`_`;a.set(e,t),i.add(t)}let o=e=>typeof e==`boolean`?a.get(e):typeof e==`string`||typeof e==`number`?e:null,s=e=>e===a.get(!1)?!1:e===a.get(!0)?!0:e;return{options:e?.map((e,t)=>({...e,label:e.label??e.labelDefault??``,value:o(n[t])??void 0})),value:Array.isArray(t)?t.map(o).filter(e=>e!==null):o(t),decode:e=>Array.isArray(e)?e.map(s):e===null?null:s(e)}}const g=[`onClick`],_={class:`history-text`},v={key:0,class:`history-footer`},y=[`onClick`],b={class:`form-search-item-box form-search-actions`},x={class:`form-item-input`},S=(0,c.defineComponent)({name:`C_FormSearch`,__name:`index`,props:{bordered:{type:Boolean,default:!0},formItemList:{default:()=>[]},formParams:{default:()=>({})},modelValue:{},formSearchInputHistoryString:{},size:{},loading:{type:Boolean,default:!1},config:{}},emits:[`search`,`reset`,`change-params`,`update:modelValue`],setup(t,{expose:n,emit:r}){let i=t,o=r,s=a.o(),u=(0,c.computed)(()=>i.config?.density??s.density),d=(0,c.computed)(()=>e.t(u.value)),S=(0,c.computed)(()=>i.size??d.value.size),C=(0,c.computed)(()=>{if(u.value===void 0)return;let{gap:e,rowGap:t,padding:n}=d.value;return{"--c-search-gap":`${e}px`,"--c-search-row-gap":`${t}px`,"--c-search-padding":`${n}px`,"--c-search-field-width":u.value===`compact`?`208px`:void 0}}),{formRef:w,formParams:T,expanded:E,searching:D,availableFields:O,foldThreshold:k,hasExpandButton:A,history:j,searchFn:M,resetFn:N,toggleFold:P,syncFromProps:F}=p(o,{formItemList:i.formItemList,formParams:i.modelValue??i.formParams,config:()=>i.config,loading:()=>i.loading,historyOptions:()=>({storageKey:i.formSearchInputHistoryString,maxItems:i.config?.historyMaxItems})}),I=(0,c.computed)(()=>new Map(O.value.filter(e=>e.type===`select`).map(e=>[e.prop,h(e.list,T.value[e.prop])]))),L=e=>{let t=T.value[e];return typeof t==`string`?t:null},R=(e,t)=>{z(e,I.value.get(e)?.decode(t)??null)},z=(e,t)=>{let n=O.value.find(t=>t.prop===e),r=T.value;n&&(r[e]=f(n,t,r[e]))},B=e=>{let t=m(T.value[e]);return t.mode===`formatted`?{formattedValue:t.value,"onUpdate:formattedValue":t=>z(e,t)}:{value:t.value,"onUpdate:value":t=>z(e,t)}};return(0,c.watch)(()=>[i.formItemList,i.modelValue,i.formParams],([e,t,n])=>F(e,t??n),{deep:!0}),n({formRef:w,formParams:T,searchFn:M,cleanFn:N,changeFoldState:P}),(e,n)=>((0,c.openBlock)(),(0,c.createBlock)((0,c.unref)(l.NCard),{class:(0,c.normalizeClass)([`form-search-card custom-card`,u.value&&`form-search-card--${u.value}`]),style:(0,c.normalizeStyle)(C.value),bordered:t.bordered},{default:(0,c.withCtx)(()=>[(0,c.createVNode)((0,c.unref)(l.NForm),{class:`form-search`,model:(0,c.unref)(T),ref_key:`formRef`,ref:w,size:S.value,onSubmit:(0,c.withModifiers)((0,c.unref)(M),[`prevent`])},{default:(0,c.withCtx)(()=>[((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)((0,c.unref)(O),(e,t)=>(0,c.withDirectives)(((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{class:`form-search-item-box`,key:e.prop||t},[e.type===`spacer`?(0,c.createCommentVNode)(`v-if`,!0):((0,c.openBlock)(),(0,c.createBlock)((0,c.unref)(l.NFormItem),{key:0,class:`form-item-input`,path:e.prop,rule:e.rules,"show-feedback":!1,"show-label":!1},{default:(0,c.withCtx)(()=>[e.type===`input`?((0,c.openBlock)(),(0,c.createBlock)((0,c.unref)(l.NInput),(0,c.mergeProps)({key:0,clearable:``,size:S.value,value:L(e.prop),"onUpdate:value":t=>z(e.prop,t),placeholder:e.placeholder},{ref_for:!0},e.attrs,{onFocus:t=>(0,c.unref)(j).handleFocus(e.prop),onBlur:(0,c.unref)(j).closeAllPanels}),null,16,[`size`,`value`,`onUpdate:value`,`placeholder`,`onFocus`,`onBlur`])):(0,c.createCommentVNode)(`v-if`,!0),e.isFocus?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{key:1,class:`input-history`,onMousedown:n[0]||=(0,c.withModifiers)(()=>{},[`prevent`])},[((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(e.hisList,(t,r)=>((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{class:`history-item`,onClick:n=>(0,c.unref)(j).selectHistoryItem(t,e.prop),key:t},[(0,c.createElementVNode)(`span`,_,(0,c.toDisplayString)(t),1),(0,c.createVNode)((0,c.unref)(l.NIcon),{class:`delete-icon`,size:`14`,onClick:(0,c.withModifiers)(t=>(0,c.unref)(j).deleteHistoryItem(e.prop,r),[`stop`])},{default:(0,c.withCtx)(()=>[...n[1]||=[(0,c.createElementVNode)(`div`,{class:`i-mdi:close`},null,-1)]]),_:1},8,[`onClick`])],8,g))),128)),e.hisList&&e.hisList.length>0?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,v,[(0,c.createElementVNode)(`span`,{class:`clear-all`,onClick:(0,c.withModifiers)(t=>(0,c.unref)(j).clearAllHistory(e.prop),[`stop`])},` 清空历史记录 `,8,y)])):(0,c.createCommentVNode)(`v-if`,!0)],32)):(0,c.createCommentVNode)(`v-if`,!0),e.type===`select`?((0,c.openBlock)(),(0,c.createBlock)((0,c.unref)(l.NSelect),(0,c.mergeProps)({key:2,value:I.value.get(e.prop)?.value,"onUpdate:value":t=>R(e.prop,t),placeholder:e.placeholder||`请选择`,clearable:``,size:S.value,options:I.value.get(e.prop)?.options},{ref_for:!0},e.attrs),null,16,[`value`,`onUpdate:value`,`placeholder`,`size`,`options`])):(0,c.createCommentVNode)(`v-if`,!0),e.type===`date-range`?((0,c.openBlock)(),(0,c.createBlock)((0,c.unref)(l.NDatePicker),(0,c.mergeProps)({key:3,type:`datetimerange`,size:S.value},{ref_for:!0},{...B(e.prop),...e.attrs},{format:`yyyy-MM-dd HH:mm`,"value-format":`yyyy-MM-dd HH:mm`,"start-placeholder":`开始时间`,"end-placeholder":`结束时间`,clearable:``}),null,16,[`size`])):(0,c.createCommentVNode)(`v-if`,!0)]),_:2},1032,[`path`,`rule`]))])),[[c.vShow,(0,c.unref)(E)||t<(0,c.unref)(k)]])),128)),(0,c.createElementVNode)(`div`,b,[(0,c.createElementVNode)(`div`,x,[n[6]||=(0,c.createElementVNode)(`div`,{class:`button-label-placeholder`},null,-1),(0,c.createVNode)((0,c.unref)(l.NSpace),{size:u.value?d.value.gap:8},{default:(0,c.withCtx)(()=>[(0,c.createVNode)((0,c.unref)(l.NTooltip),{trigger:`hover`},{trigger:(0,c.withCtx)(()=>[(0,c.createVNode)((0,c.unref)(l.NButton),{type:`primary`,size:S.value,"aria-label":`搜索`,onClick:(0,c.unref)(M),loading:t.loading||(0,c.unref)(D)},{icon:(0,c.withCtx)(()=>[...n[2]||=[(0,c.createElementVNode)(`div`,{class:`i-mdi:search w-4 h-4`},null,-1)]]),_:1},8,[`size`,`onClick`,`loading`])]),default:(0,c.withCtx)(()=>[n[3]||=(0,c.createTextVNode)(` 搜索 `,-1)]),_:1}),(0,c.createVNode)((0,c.unref)(l.NTooltip),{trigger:`hover`},{trigger:(0,c.withCtx)(()=>[(0,c.createVNode)((0,c.unref)(l.NButton),{size:S.value,"aria-label":`重置`,onClick:(0,c.unref)(N)},{icon:(0,c.withCtx)(()=>[...n[4]||=[(0,c.createElementVNode)(`div`,{class:`i-mdi:refresh w-4 h-4`},null,-1)]]),_:1},8,[`size`,`onClick`])]),default:(0,c.withCtx)(()=>[n[5]||=(0,c.createTextVNode)(` 重置 `,-1)]),_:1}),(0,c.unref)(A)?((0,c.openBlock)(),(0,c.createBlock)((0,c.unref)(l.NTooltip),{key:0,trigger:`hover`},{trigger:(0,c.withCtx)(()=>[(0,c.createVNode)((0,c.unref)(l.NButton),{size:S.value,"aria-label":(0,c.unref)(E)?`收起搜索条件`:`展开搜索条件`,"aria-expanded":(0,c.unref)(E),onClick:(0,c.unref)(P)},{icon:(0,c.withCtx)(()=>[(0,c.createElementVNode)(`div`,{class:(0,c.normalizeClass)((0,c.unref)(E)?`i-mdi:chevron-up w-4 h-4`:`i-mdi:chevron-down w-4 h-4`)},null,2)]),_:1},8,[`size`,`aria-label`,`aria-expanded`,`onClick`])]),default:(0,c.withCtx)(()=>[(0,c.createTextVNode)(` `+(0,c.toDisplayString)((0,c.unref)(E)?`收起`:`展开`),1)]),_:1})):(0,c.createCommentVNode)(`v-if`,!0)]),_:1},8,[`size`])])])]),_:1},8,[`model`,`size`,`onSubmit`])]),_:1},8,[`class`,`style`,`bordered`]))}});var C=r.t(S,[[`__scopeId`,`data-v-f567d274`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return C}});
@@ -1 +0,0 @@
1
- import{t as e}from"./density.js";import{t}from"./useComponentLocale.js";import{t as n}from"./feedback.js";import{t as r}from"./export-helper.js";import{t as i}from"./useActionTask.js";import{o as a}from"./useFormConfig.js";import{i as o,t as s}from"./storage.js";import{a as c,t as l}from"./data.js";import{Fragment as u,computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,createElementVNode as h,createTextVNode as g,createVNode as _,defineComponent as v,getCurrentScope as y,mergeProps as b,nextTick as x,normalizeClass as S,normalizeStyle as C,onMounted as w,onScopeDispose as T,openBlock as E,ref as D,renderList as O,toDisplayString as k,toValue as A,unref as j,vShow as M,watch as N,withCtx as P,withDirectives as F,withModifiers as I}from"vue";import{NButton as L,NCard as R,NDatePicker as z,NForm as B,NFormItem as V,NIcon as H,NInput as U,NSelect as ee,NSpace as te,NTooltip as W}from"naive-ui";function G(e,t,n={}){let r=()=>A(n),i=d(()=>!!r().storageKey),a=t=>e.value.find(e=>e.prop===t),c=()=>{let{storageKey:t}=r();t&&o(t,Object.fromEntries(e.value.filter(e=>e.hisList?.length).map(e=>[e.prop,e.hisList])))},l=()=>{let{storageKey:e}=r();if(!e)return;let t=s(e);t&&(Array.isArray(t)?t.map(e=>[e.prop,e.hisList]):Object.entries(t)).forEach(([e,t])=>{let n=a(e);n&&Array.isArray(t)&&(n.hisList=[...t])})},u=t=>{e.value.forEach(e=>{e.isFocus=!!(e.hisList&&e.prop===t)})},f=e=>{l(),u(e)},p=()=>u(),m=(e,n)=>{a(n)?.type===`input`&&(t.value[n]=e,p())},h=(e,t)=>{let n=a(e);n?.hisList&&(n.hisList.splice(t,1),n.hisList.length===0&&(n.isFocus=!1),c())},g=e=>{let t=a(e);t?.hisList&&(t.hisList=[],t.isFocus=!1,c())},_=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1),e.unshift(t);let i=Math.max(1,r().maxItems??5);return e.length>i&&(e.length=i),e};return{enabled:i,handleFocus:f,closeAllPanels:p,selectHistoryItem:m,deleteHistoryItem:h,clearAllHistory:g,saveCurrentInputs:()=>{i.value&&(Object.keys(t.value).forEach(e=>{let n=t.value[e];if(n==null||n===``)return;let r=a(e);if(r?.type!==`input`||!r.hisList)return;let i=String(n).trim();i&&_(r.hisList,i)}),p(),c())},restoreFromStorage:l}}function K(e,t){return e.defaultValue===void 0?e.type===`input`?``:e.type===`select`&&e.attrs?.multiple===!0?[]:e.type===`select`&&e.attrs?.clearable===!1?l(t):null:l(e.defaultValue)}function ne(e,t,n){return t??(e.type===`input`?``:e.type===`select`&&e.attrs?.multiple===!0?[]:e.type===`select`&&e.attrs?.clearable===!1?K(e,n):null)}function q(e,r){let a=d(()=>A(r.config)??{}),o=n(()=>a.value.feedback),{t:s}=t(()=>a.value.locale),u=D(null),f=d(()=>a.value.foldThreshold??7),p=d(()=>a.value.requireValue??!0),m=D(l(r.formItemList)),h=D(l(r.formParams)),g=D(!1),_=i(),v=d(()=>_.isRunning(`search`)),b=!0;y()&&T(()=>{b=!1});let S=G(m,h,r.historyOptions),C=d(()=>m.value.filter(e=>e.show!==!1)),E=d(()=>C.value.filter((e,t)=>g.value||t<f.value)),O=d(()=>C.value.length>f.value),k=e=>e==null||e===``||Array.isArray(e)&&e.length===0,j=()=>{let e=h.value;m.value.forEach(t=>{t.isFocus=!1,t.show!==!1&&(t.type===`select`&&!t.placeholder&&(t.placeholder=`请选择`),t.type!==`spacer`&&e[t.prop]===void 0&&(e[t.prop]=K(t,e[t.prop])))})},M=async()=>{try{return await u.value?.validate(),!0}catch{return O.value&&(g.value=!0),!1}},P=e=>b&&!A(r.loading)&&c(h.value,e),F=async()=>{let t=l(h.value);if(!await M()||!P(t))return!1;if(p.value&&!Object.entries(t).filter(([e])=>e!==`pageNum`&&e!==`pageSize`).some(([,e])=>!k(e)))return o.warning(s(`search.valueRequired`)),!1;if(S.saveCurrentInputs(),e(`search`,l(t)),!P(t))return!1;if(!a.value.onSearch)return!0;try{return await a.value.onSearch(t),b}catch(e){return b&&o.error(s(`search.failed`),e),!1}},I=async()=>{let e=await _.run(`search`,F,()=>!A(r.loading));return e.executed&&e.value},L=t=>{e(`change-params`,l(t)),e(`update:modelValue`,l(t))},R=()=>{H=!0;let e=++U;x(()=>{e===U&&(H=!1)})},z=()=>{u.value?.restoreValidation();let t=l(h.value),n=t;m.value.forEach(e=>{e.show===!1||e.type===`spacer`||e.prop===`pageNum`||e.prop===`pageSize`||(n[e.prop]=K(e,n[e.prop]))}),R(),h.value=t,L(t),e(`reset`,l(t))},B=()=>{g.value=!g.value},V=(e,t)=>{R(),m.value=l(e),h.value=l(t),j()},H=!1,U=0;return j(),N(h,e=>{H||L(e)},{deep:!0}),w(()=>{S.restoreFromStorage()}),{formRef:u,fields:m,formParams:h,expanded:g,searching:v,visibleFields:E,availableFields:C,foldThreshold:f,hasExpandButton:O,history:S,searchFn:I,resetFn:z,toggleFold:B,syncFromProps:V}}const re=e=>{if(Array.isArray(e)&&e.length===2){if(e.every(e=>typeof e==`string`))return{mode:`formatted`,value:[e[0],e[1]]};if(e.every(e=>typeof e==`number`&&Number.isFinite(e)))return{mode:`timestamp`,value:[e[0],e[1]]}}return{mode:`timestamp`,value:null}};function ie(e,t){let n=e?.map(e=>e.value===void 0?e.label??e.labelDefault:e.value),r=Array.isArray(t)?t:[t],i=new Set([...n??[],...r]),a=new Map;for(let e of[!1,!0]){let t=`__c_form_search_boolean_${e}__`;for(;i.has(t);)t+=`_`;a.set(e,t),i.add(t)}let o=e=>typeof e==`boolean`?a.get(e):typeof e==`string`||typeof e==`number`?e:null,s=e=>e===a.get(!1)?!1:e===a.get(!0)?!0:e;return{options:e?.map((e,t)=>({...e,label:e.label??e.labelDefault??``,value:o(n[t])??void 0})),value:Array.isArray(t)?t.map(o).filter(e=>e!==null):o(t),decode:e=>Array.isArray(e)?e.map(s):e===null?null:s(e)}}const ae=[`onClick`],oe={class:`history-text`},se={key:0,class:`history-footer`},ce=[`onClick`],le={class:`form-search-item-box form-search-actions`},ue={class:`form-item-input`};var J=r(v({name:`C_FormSearch`,__name:`index`,props:{bordered:{type:Boolean,default:!0},formItemList:{default:()=>[]},formParams:{default:()=>({})},modelValue:{},formSearchInputHistoryString:{},size:{},loading:{type:Boolean,default:!1},config:{}},emits:[`search`,`reset`,`change-params`,`update:modelValue`],setup(t,{expose:n,emit:r}){let i=t,o=r,s=a(),c=d(()=>i.config?.density??s.density),l=d(()=>e(c.value)),v=d(()=>i.size??l.value.size),y=d(()=>{if(c.value===void 0)return;let{gap:e,rowGap:t,padding:n}=l.value;return{"--c-search-gap":`${e}px`,"--c-search-row-gap":`${t}px`,"--c-search-padding":`${n}px`,"--c-search-field-width":c.value===`compact`?`208px`:void 0}}),{formRef:x,formParams:w,expanded:T,searching:D,availableFields:A,foldThreshold:G,hasExpandButton:K,history:J,searchFn:Y,resetFn:X,toggleFold:Z,syncFromProps:de}=q(o,{formItemList:i.formItemList,formParams:i.modelValue??i.formParams,config:()=>i.config,loading:()=>i.loading,historyOptions:()=>({storageKey:i.formSearchInputHistoryString,maxItems:i.config?.historyMaxItems})}),Q=d(()=>new Map(A.value.filter(e=>e.type===`select`).map(e=>[e.prop,ie(e.list,w.value[e.prop])]))),fe=e=>{let t=w.value[e];return typeof t==`string`?t:null},pe=(e,t)=>{$(e,Q.value.get(e)?.decode(t)??null)},$=(e,t)=>{let n=A.value.find(t=>t.prop===e),r=w.value;n&&(r[e]=ne(n,t,r[e]))},me=e=>{let t=re(w.value[e]);return t.mode===`formatted`?{formattedValue:t.value,"onUpdate:formattedValue":t=>$(e,t)}:{value:t.value,"onUpdate:value":t=>$(e,t)}};return N(()=>[i.formItemList,i.modelValue,i.formParams],([e,t,n])=>de(e,t??n),{deep:!0}),n({formRef:x,formParams:w,searchFn:Y,cleanFn:X,changeFoldState:Z}),(e,n)=>(E(),f(j(R),{class:S([`form-search-card custom-card`,c.value&&`form-search-card--${c.value}`]),style:C(y.value),bordered:t.bordered},{default:P(()=>[_(j(B),{class:`form-search`,model:j(w),ref_key:`formRef`,ref:x,size:v.value,onSubmit:I(j(Y),[`prevent`])},{default:P(()=>[(E(!0),m(u,null,O(j(A),(e,t)=>F((E(),m(`div`,{class:`form-search-item-box`,key:e.prop||t},[e.type===`spacer`?p(`v-if`,!0):(E(),f(j(V),{key:0,class:`form-item-input`,path:e.prop,rule:e.rules,"show-feedback":!1,"show-label":!1},{default:P(()=>[e.type===`input`?(E(),f(j(U),b({key:0,clearable:``,size:v.value,value:fe(e.prop),"onUpdate:value":t=>$(e.prop,t),placeholder:e.placeholder},{ref_for:!0},e.attrs,{onFocus:t=>j(J).handleFocus(e.prop),onBlur:j(J).closeAllPanels}),null,16,[`size`,`value`,`onUpdate:value`,`placeholder`,`onFocus`,`onBlur`])):p(`v-if`,!0),e.isFocus?(E(),m(`div`,{key:1,class:`input-history`,onMousedown:n[0]||=I(()=>{},[`prevent`])},[(E(!0),m(u,null,O(e.hisList,(t,r)=>(E(),m(`div`,{class:`history-item`,onClick:n=>j(J).selectHistoryItem(t,e.prop),key:t},[h(`span`,oe,k(t),1),_(j(H),{class:`delete-icon`,size:`14`,onClick:I(t=>j(J).deleteHistoryItem(e.prop,r),[`stop`])},{default:P(()=>[...n[1]||=[h(`div`,{class:`i-mdi:close`},null,-1)]]),_:1},8,[`onClick`])],8,ae))),128)),e.hisList&&e.hisList.length>0?(E(),m(`div`,se,[h(`span`,{class:`clear-all`,onClick:I(t=>j(J).clearAllHistory(e.prop),[`stop`])},` 清空历史记录 `,8,ce)])):p(`v-if`,!0)],32)):p(`v-if`,!0),e.type===`select`?(E(),f(j(ee),b({key:2,value:Q.value.get(e.prop)?.value,"onUpdate:value":t=>pe(e.prop,t),placeholder:e.placeholder||`请选择`,clearable:``,size:v.value,options:Q.value.get(e.prop)?.options},{ref_for:!0},e.attrs),null,16,[`value`,`onUpdate:value`,`placeholder`,`size`,`options`])):p(`v-if`,!0),e.type===`date-range`?(E(),f(j(z),b({key:3,type:`datetimerange`,size:v.value},{ref_for:!0},{...me(e.prop),...e.attrs},{format:`yyyy-MM-dd HH:mm`,"value-format":`yyyy-MM-dd HH:mm`,"start-placeholder":`开始时间`,"end-placeholder":`结束时间`,clearable:``}),null,16,[`size`])):p(`v-if`,!0)]),_:2},1032,[`path`,`rule`]))])),[[M,j(T)||t<j(G)]])),128)),h(`div`,le,[h(`div`,ue,[n[6]||=h(`div`,{class:`button-label-placeholder`},null,-1),_(j(te),{size:c.value?l.value.gap:8},{default:P(()=>[_(j(W),{trigger:`hover`},{trigger:P(()=>[_(j(L),{type:`primary`,size:v.value,"aria-label":`搜索`,onClick:j(Y),loading:t.loading||j(D)},{icon:P(()=>[...n[2]||=[h(`div`,{class:`i-mdi:search w-4 h-4`},null,-1)]]),_:1},8,[`size`,`onClick`,`loading`])]),default:P(()=>[n[3]||=g(` 搜索 `,-1)]),_:1}),_(j(W),{trigger:`hover`},{trigger:P(()=>[_(j(L),{size:v.value,"aria-label":`重置`,onClick:j(X)},{icon:P(()=>[...n[4]||=[h(`div`,{class:`i-mdi:refresh w-4 h-4`},null,-1)]]),_:1},8,[`size`,`onClick`])]),default:P(()=>[n[5]||=g(` 重置 `,-1)]),_:1}),j(K)?(E(),f(j(W),{key:0,trigger:`hover`},{trigger:P(()=>[_(j(L),{size:v.value,"aria-label":j(T)?`收起搜索条件`:`展开搜索条件`,"aria-expanded":j(T),onClick:j(Z)},{icon:P(()=>[h(`div`,{class:S(j(T)?`i-mdi:chevron-up w-4 h-4`:`i-mdi:chevron-down w-4 h-4`)},null,2)]),_:1},8,[`size`,`aria-label`,`aria-expanded`,`onClick`])]),default:P(()=>[g(` `+k(j(T)?`收起`:`展开`),1)]),_:1})):p(`v-if`,!0)]),_:1},8,[`size`])])])]),_:1},8,[`model`,`size`,`onSubmit`])]),_:1},8,[`class`,`style`,`bordered`]))}}),[[`__scopeId`,`data-v-f567d274`]]);export{q as n,G as r,J as t};