persagy-vant 0.0.26 → 0.0.28

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 (502) hide show
  1. package/README.md +9 -7
  2. package/es/icon/base-iconfont.css +1 -0
  3. package/es/icon/base-iconfont.less +1144 -0
  4. package/es/icon/config.d.ts +7 -0
  5. package/es/icon/config.mjs +268 -0
  6. package/es/icon/index.less +1 -1
  7. package/es/icon/latest-iconfont.less +1 -1
  8. package/es/index.d.ts +2 -1
  9. package/es/index.mjs +4 -1
  10. package/es/label/Label.d.ts +92 -0
  11. package/es/label/Label.mjs +95 -0
  12. package/es/label/index.css +1 -0
  13. package/es/label/index.d.ts +64 -0
  14. package/es/label/index.less +113 -0
  15. package/es/label/index.mjs +8 -0
  16. package/es/label/style/index.mjs +6 -0
  17. package/es/label/style/less.mjs +6 -0
  18. package/es/label/var.css +0 -0
  19. package/es/label/var.less +11 -0
  20. package/es/material-add/MaterialAdd.d.ts +104 -0
  21. package/es/material-add/MaterialAdd.mjs +63 -23
  22. package/es/material-add/index.d.ts +72 -0
  23. package/es/radio-panel/RadioPanel.d.ts +46 -1
  24. package/es/radio-panel/RadioPanel.mjs +115 -29
  25. package/es/radio-panel/index.css +1 -1
  26. package/es/radio-panel/index.d.ts +35 -1
  27. package/es/radio-panel/index.less +17 -0
  28. package/es/radio-panel/style/index.mjs +4 -0
  29. package/es/radio-panel/style/less.mjs +4 -0
  30. package/es/tabs/TabsTitle.mjs +1 -0
  31. package/es/tabs/index.css +1 -1
  32. package/es/tabs/index.less +11 -0
  33. package/es/tag/Tag.d.ts +1 -1
  34. package/es/tag/index.css +1 -1
  35. package/es/tag/index.less +7 -0
  36. package/es/tag/var.less +3 -0
  37. package/lib/icon/base-iconfont.css +1 -0
  38. package/lib/icon/base-iconfont.less +1144 -0
  39. package/lib/icon/config.d.ts +7 -0
  40. package/lib/icon/config.js +287 -0
  41. package/lib/icon/index.less +1 -1
  42. package/lib/icon/latest-iconfont.less +1 -1
  43. package/lib/index.css +1 -1
  44. package/lib/index.d.ts +2 -1
  45. package/lib/index.js +4 -1
  46. package/lib/index.less +2 -1
  47. package/lib/label/Label.d.ts +92 -0
  48. package/lib/label/Label.js +114 -0
  49. package/lib/label/index.css +1 -0
  50. package/lib/label/index.d.ts +64 -0
  51. package/lib/label/index.js +37 -0
  52. package/lib/label/index.less +113 -0
  53. package/lib/label/style/index.js +6 -0
  54. package/lib/label/style/less.js +6 -0
  55. package/lib/label/var.css +0 -0
  56. package/lib/label/var.less +11 -0
  57. package/lib/material-add/MaterialAdd.d.ts +104 -0
  58. package/lib/material-add/MaterialAdd.js +63 -23
  59. package/lib/material-add/index.d.ts +72 -0
  60. package/lib/radio-panel/RadioPanel.d.ts +46 -1
  61. package/lib/radio-panel/RadioPanel.js +114 -28
  62. package/lib/radio-panel/index.css +1 -1
  63. package/lib/radio-panel/index.d.ts +35 -1
  64. package/lib/radio-panel/index.less +17 -0
  65. package/lib/radio-panel/style/index.js +4 -0
  66. package/lib/radio-panel/style/less.js +4 -0
  67. package/lib/tabs/TabsTitle.js +1 -0
  68. package/lib/tabs/index.css +1 -1
  69. package/lib/tabs/index.less +11 -0
  70. package/lib/tag/Tag.d.ts +1 -1
  71. package/lib/tag/index.css +1 -1
  72. package/lib/tag/index.less +7 -0
  73. package/lib/tag/var.less +3 -0
  74. package/lib/vant.cjs.js +998 -785
  75. package/lib/vant.es.js +998 -785
  76. package/lib/vant.js +998 -785
  77. package/lib/vant.min.js +1 -1
  78. package/lib/web-types.json +1 -1
  79. package/package.json +4 -4
  80. package/skills/use-persagy-vant/SKILL.md +2 -2
  81. package/skills/use-persagy-vant/references/business-component-catalog.md +1 -1
  82. package/skills/use-persagy-vant/references/component-catalog.md +1 -1
  83. package/es/action-bar/style/index.d.ts +0 -1
  84. package/es/action-bar/style/less.d.ts +0 -1
  85. package/es/action-bar-button/style/index.d.ts +0 -1
  86. package/es/action-bar-button/style/less.d.ts +0 -1
  87. package/es/action-bar-icon/style/index.d.ts +0 -1
  88. package/es/action-bar-icon/style/less.d.ts +0 -1
  89. package/es/action-sheet/style/index.d.ts +0 -1
  90. package/es/action-sheet/style/less.d.ts +0 -1
  91. package/es/address-edit/style/index.d.ts +0 -1
  92. package/es/address-edit/style/less.d.ts +0 -1
  93. package/es/address-list/style/index.d.ts +0 -1
  94. package/es/address-list/style/less.d.ts +0 -1
  95. package/es/area/style/index.d.ts +0 -1
  96. package/es/area/style/less.d.ts +0 -1
  97. package/es/background/style/index.d.ts +0 -1
  98. package/es/background/style/less.d.ts +0 -1
  99. package/es/badge/style/index.d.ts +0 -1
  100. package/es/badge/style/less.d.ts +0 -1
  101. package/es/blue-mark/style/index.d.ts +0 -1
  102. package/es/blue-mark/style/less.d.ts +0 -1
  103. package/es/bottom-action-bar/style/index.d.ts +0 -1
  104. package/es/bottom-action-bar/style/less.d.ts +0 -1
  105. package/es/button/style/index.d.ts +0 -1
  106. package/es/button/style/less.d.ts +0 -1
  107. package/es/calendar/style/index.d.ts +0 -1
  108. package/es/calendar/style/less.d.ts +0 -1
  109. package/es/card/style/index.d.ts +0 -1
  110. package/es/card/style/less.d.ts +0 -1
  111. package/es/cascader/style/index.d.ts +0 -1
  112. package/es/cascader/style/less.d.ts +0 -1
  113. package/es/cell/style/index.d.ts +0 -1
  114. package/es/cell/style/less.d.ts +0 -1
  115. package/es/cell-group/style/index.d.ts +0 -1
  116. package/es/cell-group/style/less.d.ts +0 -1
  117. package/es/checkbox/style/index.d.ts +0 -1
  118. package/es/checkbox/style/less.d.ts +0 -1
  119. package/es/checkbox-group/style/index.d.ts +0 -1
  120. package/es/checkbox-group/style/less.d.ts +0 -1
  121. package/es/checkbox-panel/style/index.d.ts +0 -1
  122. package/es/checkbox-panel/style/less.d.ts +0 -1
  123. package/es/circle/style/index.d.ts +0 -1
  124. package/es/circle/style/less.d.ts +0 -1
  125. package/es/col/style/index.d.ts +0 -1
  126. package/es/col/style/less.d.ts +0 -1
  127. package/es/collapse/style/index.d.ts +0 -1
  128. package/es/collapse/style/less.d.ts +0 -1
  129. package/es/collapse-item/style/index.d.ts +0 -1
  130. package/es/collapse-item/style/less.d.ts +0 -1
  131. package/es/config-provider/style/index.d.ts +0 -1
  132. package/es/config-provider/style/less.d.ts +0 -1
  133. package/es/contact-card/style/index.d.ts +0 -1
  134. package/es/contact-card/style/less.d.ts +0 -1
  135. package/es/contact-edit/style/index.d.ts +0 -1
  136. package/es/contact-edit/style/less.d.ts +0 -1
  137. package/es/contact-list/style/index.d.ts +0 -1
  138. package/es/contact-list/style/less.d.ts +0 -1
  139. package/es/count-down/style/index.d.ts +0 -1
  140. package/es/count-down/style/less.d.ts +0 -1
  141. package/es/coupon/style/index.d.ts +0 -1
  142. package/es/coupon/style/less.d.ts +0 -1
  143. package/es/coupon-cell/style/index.d.ts +0 -1
  144. package/es/coupon-cell/style/less.d.ts +0 -1
  145. package/es/coupon-list/style/index.d.ts +0 -1
  146. package/es/coupon-list/style/less.d.ts +0 -1
  147. package/es/datetime-picker/style/index.d.ts +0 -1
  148. package/es/datetime-picker/style/less.d.ts +0 -1
  149. package/es/dialog/style/index.d.ts +0 -1
  150. package/es/dialog/style/less.d.ts +0 -1
  151. package/es/divider/style/index.d.ts +0 -1
  152. package/es/divider/style/less.d.ts +0 -1
  153. package/es/dropdown-item/style/index.d.ts +0 -1
  154. package/es/dropdown-item/style/less.d.ts +0 -1
  155. package/es/dropdown-menu/style/index.d.ts +0 -1
  156. package/es/dropdown-menu/style/less.d.ts +0 -1
  157. package/es/empty/style/index.d.ts +0 -1
  158. package/es/empty/style/less.d.ts +0 -1
  159. package/es/field/style/index.d.ts +0 -1
  160. package/es/field/style/less.d.ts +0 -1
  161. package/es/filter-tag/style/index.d.ts +0 -1
  162. package/es/filter-tag/style/less.d.ts +0 -1
  163. package/es/floor-select/style/index.d.ts +0 -1
  164. package/es/floor-select/style/less.d.ts +0 -1
  165. package/es/form/style/index.d.ts +0 -1
  166. package/es/form/style/less.d.ts +0 -1
  167. package/es/form-panel/style/index.d.ts +0 -1
  168. package/es/form-panel/style/less.d.ts +0 -1
  169. package/es/friendly-tip/style/index.d.ts +0 -1
  170. package/es/friendly-tip/style/less.d.ts +0 -1
  171. package/es/grid/style/index.d.ts +0 -1
  172. package/es/grid/style/less.d.ts +0 -1
  173. package/es/grid-item/style/index.d.ts +0 -1
  174. package/es/grid-item/style/less.d.ts +0 -1
  175. package/es/icon/style/index.d.ts +0 -1
  176. package/es/icon/style/less.d.ts +0 -1
  177. package/es/image/style/index.d.ts +0 -1
  178. package/es/image/style/less.d.ts +0 -1
  179. package/es/image-preview/style/index.d.ts +0 -1
  180. package/es/image-preview/style/less.d.ts +0 -1
  181. package/es/index-anchor/style/index.d.ts +0 -1
  182. package/es/index-anchor/style/less.d.ts +0 -1
  183. package/es/index-bar/style/index.d.ts +0 -1
  184. package/es/index-bar/style/less.d.ts +0 -1
  185. package/es/lazyload/style/index.d.ts +0 -1
  186. package/es/lazyload/style/less.d.ts +0 -1
  187. package/es/list/style/index.d.ts +0 -1
  188. package/es/list/style/less.d.ts +0 -1
  189. package/es/loading/style/index.d.ts +0 -1
  190. package/es/loading/style/less.d.ts +0 -1
  191. package/es/locale/style/index.d.ts +0 -1
  192. package/es/locale/style/less.d.ts +0 -1
  193. package/es/location-select/style/index.d.ts +0 -1
  194. package/es/location-select/style/less.d.ts +0 -1
  195. package/es/material-add/style/index.d.ts +0 -1
  196. package/es/material-add/style/less.d.ts +0 -1
  197. package/es/multi-person-select/style/index.d.ts +0 -1
  198. package/es/multi-person-select/style/less.d.ts +0 -1
  199. package/es/nav-bar/style/index.d.ts +0 -1
  200. package/es/nav-bar/style/less.d.ts +0 -1
  201. package/es/notice-bar/style/index.d.ts +0 -1
  202. package/es/notice-bar/style/less.d.ts +0 -1
  203. package/es/notify/style/index.d.ts +0 -1
  204. package/es/notify/style/less.d.ts +0 -1
  205. package/es/number-keyboard/style/index.d.ts +0 -1
  206. package/es/number-keyboard/style/less.d.ts +0 -1
  207. package/es/object-select/style/index.d.ts +0 -1
  208. package/es/object-select/style/less.d.ts +0 -1
  209. package/es/overlay/style/index.d.ts +0 -1
  210. package/es/overlay/style/less.d.ts +0 -1
  211. package/es/pagination/style/index.d.ts +0 -1
  212. package/es/pagination/style/less.d.ts +0 -1
  213. package/es/password-input/style/index.d.ts +0 -1
  214. package/es/password-input/style/less.d.ts +0 -1
  215. package/es/picker/style/index.d.ts +0 -1
  216. package/es/picker/style/less.d.ts +0 -1
  217. package/es/popover/style/index.d.ts +0 -1
  218. package/es/popover/style/less.d.ts +0 -1
  219. package/es/popup/style/index.d.ts +0 -1
  220. package/es/popup/style/less.d.ts +0 -1
  221. package/es/progress/style/index.d.ts +0 -1
  222. package/es/progress/style/less.d.ts +0 -1
  223. package/es/pull-refresh/style/index.d.ts +0 -1
  224. package/es/pull-refresh/style/less.d.ts +0 -1
  225. package/es/quantity-input/style/index.d.ts +0 -1
  226. package/es/quantity-input/style/less.d.ts +0 -1
  227. package/es/radio/style/index.d.ts +0 -1
  228. package/es/radio/style/less.d.ts +0 -1
  229. package/es/radio-group/style/index.d.ts +0 -1
  230. package/es/radio-group/style/less.d.ts +0 -1
  231. package/es/radio-panel/style/index.d.ts +0 -1
  232. package/es/radio-panel/style/less.d.ts +0 -1
  233. package/es/rate/style/index.d.ts +0 -1
  234. package/es/rate/style/less.d.ts +0 -1
  235. package/es/row/style/index.d.ts +0 -1
  236. package/es/row/style/less.d.ts +0 -1
  237. package/es/search/style/index.d.ts +0 -1
  238. package/es/search/style/less.d.ts +0 -1
  239. package/es/share-sheet/style/index.d.ts +0 -1
  240. package/es/share-sheet/style/less.d.ts +0 -1
  241. package/es/sidebar/style/index.d.ts +0 -1
  242. package/es/sidebar/style/less.d.ts +0 -1
  243. package/es/sidebar-item/style/index.d.ts +0 -1
  244. package/es/sidebar-item/style/less.d.ts +0 -1
  245. package/es/single-person-select/style/index.d.ts +0 -1
  246. package/es/single-person-select/style/less.d.ts +0 -1
  247. package/es/skeleton/style/index.d.ts +0 -1
  248. package/es/skeleton/style/less.d.ts +0 -1
  249. package/es/slider/style/index.d.ts +0 -1
  250. package/es/slider/style/less.d.ts +0 -1
  251. package/es/space/style/index.d.ts +0 -1
  252. package/es/space/style/less.d.ts +0 -1
  253. package/es/step/style/index.d.ts +0 -1
  254. package/es/step/style/less.d.ts +0 -1
  255. package/es/stepper/style/index.d.ts +0 -1
  256. package/es/stepper/style/less.d.ts +0 -1
  257. package/es/steps/style/index.d.ts +0 -1
  258. package/es/steps/style/less.d.ts +0 -1
  259. package/es/sticky/style/index.d.ts +0 -1
  260. package/es/sticky/style/less.d.ts +0 -1
  261. package/es/submit-bar/style/index.d.ts +0 -1
  262. package/es/submit-bar/style/less.d.ts +0 -1
  263. package/es/swipe/style/index.d.ts +0 -1
  264. package/es/swipe/style/less.d.ts +0 -1
  265. package/es/swipe-cell/style/index.d.ts +0 -1
  266. package/es/swipe-cell/style/less.d.ts +0 -1
  267. package/es/swipe-item/style/index.d.ts +0 -1
  268. package/es/swipe-item/style/less.d.ts +0 -1
  269. package/es/switch/style/index.d.ts +0 -1
  270. package/es/switch/style/less.d.ts +0 -1
  271. package/es/tab/style/index.d.ts +0 -1
  272. package/es/tab/style/less.d.ts +0 -1
  273. package/es/tabbar/style/index.d.ts +0 -1
  274. package/es/tabbar/style/less.d.ts +0 -1
  275. package/es/tabbar-item/style/index.d.ts +0 -1
  276. package/es/tabbar-item/style/less.d.ts +0 -1
  277. package/es/tabs/style/index.d.ts +0 -1
  278. package/es/tabs/style/less.d.ts +0 -1
  279. package/es/tag/style/index.d.ts +0 -1
  280. package/es/tag/style/less.d.ts +0 -1
  281. package/es/toast/style/index.d.ts +0 -1
  282. package/es/toast/style/less.d.ts +0 -1
  283. package/es/tree-select/style/index.d.ts +0 -1
  284. package/es/tree-select/style/less.d.ts +0 -1
  285. package/es/uploader/style/index.d.ts +0 -1
  286. package/es/uploader/style/less.d.ts +0 -1
  287. package/es/video-preview/style/index.d.ts +0 -1
  288. package/es/video-preview/style/less.d.ts +0 -1
  289. package/es/work-order-card/style/index.d.ts +0 -1
  290. package/es/work-order-card/style/less.d.ts +0 -1
  291. package/es/work-order-filter/style/index.d.ts +0 -1
  292. package/es/work-order-filter/style/less.d.ts +0 -1
  293. package/lib/action-bar/style/index.d.ts +0 -1
  294. package/lib/action-bar/style/less.d.ts +0 -1
  295. package/lib/action-bar-button/style/index.d.ts +0 -1
  296. package/lib/action-bar-button/style/less.d.ts +0 -1
  297. package/lib/action-bar-icon/style/index.d.ts +0 -1
  298. package/lib/action-bar-icon/style/less.d.ts +0 -1
  299. package/lib/action-sheet/style/index.d.ts +0 -1
  300. package/lib/action-sheet/style/less.d.ts +0 -1
  301. package/lib/address-edit/style/index.d.ts +0 -1
  302. package/lib/address-edit/style/less.d.ts +0 -1
  303. package/lib/address-list/style/index.d.ts +0 -1
  304. package/lib/address-list/style/less.d.ts +0 -1
  305. package/lib/area/style/index.d.ts +0 -1
  306. package/lib/area/style/less.d.ts +0 -1
  307. package/lib/background/style/index.d.ts +0 -1
  308. package/lib/background/style/less.d.ts +0 -1
  309. package/lib/badge/style/index.d.ts +0 -1
  310. package/lib/badge/style/less.d.ts +0 -1
  311. package/lib/blue-mark/style/index.d.ts +0 -1
  312. package/lib/blue-mark/style/less.d.ts +0 -1
  313. package/lib/bottom-action-bar/style/index.d.ts +0 -1
  314. package/lib/bottom-action-bar/style/less.d.ts +0 -1
  315. package/lib/button/style/index.d.ts +0 -1
  316. package/lib/button/style/less.d.ts +0 -1
  317. package/lib/calendar/style/index.d.ts +0 -1
  318. package/lib/calendar/style/less.d.ts +0 -1
  319. package/lib/card/style/index.d.ts +0 -1
  320. package/lib/card/style/less.d.ts +0 -1
  321. package/lib/cascader/style/index.d.ts +0 -1
  322. package/lib/cascader/style/less.d.ts +0 -1
  323. package/lib/cell/style/index.d.ts +0 -1
  324. package/lib/cell/style/less.d.ts +0 -1
  325. package/lib/cell-group/style/index.d.ts +0 -1
  326. package/lib/cell-group/style/less.d.ts +0 -1
  327. package/lib/checkbox/style/index.d.ts +0 -1
  328. package/lib/checkbox/style/less.d.ts +0 -1
  329. package/lib/checkbox-group/style/index.d.ts +0 -1
  330. package/lib/checkbox-group/style/less.d.ts +0 -1
  331. package/lib/checkbox-panel/style/index.d.ts +0 -1
  332. package/lib/checkbox-panel/style/less.d.ts +0 -1
  333. package/lib/circle/style/index.d.ts +0 -1
  334. package/lib/circle/style/less.d.ts +0 -1
  335. package/lib/col/style/index.d.ts +0 -1
  336. package/lib/col/style/less.d.ts +0 -1
  337. package/lib/collapse/style/index.d.ts +0 -1
  338. package/lib/collapse/style/less.d.ts +0 -1
  339. package/lib/collapse-item/style/index.d.ts +0 -1
  340. package/lib/collapse-item/style/less.d.ts +0 -1
  341. package/lib/config-provider/style/index.d.ts +0 -1
  342. package/lib/config-provider/style/less.d.ts +0 -1
  343. package/lib/contact-card/style/index.d.ts +0 -1
  344. package/lib/contact-card/style/less.d.ts +0 -1
  345. package/lib/contact-edit/style/index.d.ts +0 -1
  346. package/lib/contact-edit/style/less.d.ts +0 -1
  347. package/lib/contact-list/style/index.d.ts +0 -1
  348. package/lib/contact-list/style/less.d.ts +0 -1
  349. package/lib/count-down/style/index.d.ts +0 -1
  350. package/lib/count-down/style/less.d.ts +0 -1
  351. package/lib/coupon/style/index.d.ts +0 -1
  352. package/lib/coupon/style/less.d.ts +0 -1
  353. package/lib/coupon-cell/style/index.d.ts +0 -1
  354. package/lib/coupon-cell/style/less.d.ts +0 -1
  355. package/lib/coupon-list/style/index.d.ts +0 -1
  356. package/lib/coupon-list/style/less.d.ts +0 -1
  357. package/lib/datetime-picker/style/index.d.ts +0 -1
  358. package/lib/datetime-picker/style/less.d.ts +0 -1
  359. package/lib/dialog/style/index.d.ts +0 -1
  360. package/lib/dialog/style/less.d.ts +0 -1
  361. package/lib/divider/style/index.d.ts +0 -1
  362. package/lib/divider/style/less.d.ts +0 -1
  363. package/lib/dropdown-item/style/index.d.ts +0 -1
  364. package/lib/dropdown-item/style/less.d.ts +0 -1
  365. package/lib/dropdown-menu/style/index.d.ts +0 -1
  366. package/lib/dropdown-menu/style/less.d.ts +0 -1
  367. package/lib/empty/style/index.d.ts +0 -1
  368. package/lib/empty/style/less.d.ts +0 -1
  369. package/lib/field/style/index.d.ts +0 -1
  370. package/lib/field/style/less.d.ts +0 -1
  371. package/lib/filter-tag/style/index.d.ts +0 -1
  372. package/lib/filter-tag/style/less.d.ts +0 -1
  373. package/lib/floor-select/style/index.d.ts +0 -1
  374. package/lib/floor-select/style/less.d.ts +0 -1
  375. package/lib/form/style/index.d.ts +0 -1
  376. package/lib/form/style/less.d.ts +0 -1
  377. package/lib/form-panel/style/index.d.ts +0 -1
  378. package/lib/form-panel/style/less.d.ts +0 -1
  379. package/lib/friendly-tip/style/index.d.ts +0 -1
  380. package/lib/friendly-tip/style/less.d.ts +0 -1
  381. package/lib/grid/style/index.d.ts +0 -1
  382. package/lib/grid/style/less.d.ts +0 -1
  383. package/lib/grid-item/style/index.d.ts +0 -1
  384. package/lib/grid-item/style/less.d.ts +0 -1
  385. package/lib/icon/style/index.d.ts +0 -1
  386. package/lib/icon/style/less.d.ts +0 -1
  387. package/lib/image/style/index.d.ts +0 -1
  388. package/lib/image/style/less.d.ts +0 -1
  389. package/lib/image-preview/style/index.d.ts +0 -1
  390. package/lib/image-preview/style/less.d.ts +0 -1
  391. package/lib/index-anchor/style/index.d.ts +0 -1
  392. package/lib/index-anchor/style/less.d.ts +0 -1
  393. package/lib/index-bar/style/index.d.ts +0 -1
  394. package/lib/index-bar/style/less.d.ts +0 -1
  395. package/lib/lazyload/style/index.d.ts +0 -1
  396. package/lib/lazyload/style/less.d.ts +0 -1
  397. package/lib/list/style/index.d.ts +0 -1
  398. package/lib/list/style/less.d.ts +0 -1
  399. package/lib/loading/style/index.d.ts +0 -1
  400. package/lib/loading/style/less.d.ts +0 -1
  401. package/lib/locale/style/index.d.ts +0 -1
  402. package/lib/locale/style/less.d.ts +0 -1
  403. package/lib/location-select/style/index.d.ts +0 -1
  404. package/lib/location-select/style/less.d.ts +0 -1
  405. package/lib/material-add/style/index.d.ts +0 -1
  406. package/lib/material-add/style/less.d.ts +0 -1
  407. package/lib/multi-person-select/style/index.d.ts +0 -1
  408. package/lib/multi-person-select/style/less.d.ts +0 -1
  409. package/lib/nav-bar/style/index.d.ts +0 -1
  410. package/lib/nav-bar/style/less.d.ts +0 -1
  411. package/lib/notice-bar/style/index.d.ts +0 -1
  412. package/lib/notice-bar/style/less.d.ts +0 -1
  413. package/lib/notify/style/index.d.ts +0 -1
  414. package/lib/notify/style/less.d.ts +0 -1
  415. package/lib/number-keyboard/style/index.d.ts +0 -1
  416. package/lib/number-keyboard/style/less.d.ts +0 -1
  417. package/lib/object-select/style/index.d.ts +0 -1
  418. package/lib/object-select/style/less.d.ts +0 -1
  419. package/lib/overlay/style/index.d.ts +0 -1
  420. package/lib/overlay/style/less.d.ts +0 -1
  421. package/lib/pagination/style/index.d.ts +0 -1
  422. package/lib/pagination/style/less.d.ts +0 -1
  423. package/lib/password-input/style/index.d.ts +0 -1
  424. package/lib/password-input/style/less.d.ts +0 -1
  425. package/lib/picker/style/index.d.ts +0 -1
  426. package/lib/picker/style/less.d.ts +0 -1
  427. package/lib/popover/style/index.d.ts +0 -1
  428. package/lib/popover/style/less.d.ts +0 -1
  429. package/lib/popup/style/index.d.ts +0 -1
  430. package/lib/popup/style/less.d.ts +0 -1
  431. package/lib/progress/style/index.d.ts +0 -1
  432. package/lib/progress/style/less.d.ts +0 -1
  433. package/lib/pull-refresh/style/index.d.ts +0 -1
  434. package/lib/pull-refresh/style/less.d.ts +0 -1
  435. package/lib/quantity-input/style/index.d.ts +0 -1
  436. package/lib/quantity-input/style/less.d.ts +0 -1
  437. package/lib/radio/style/index.d.ts +0 -1
  438. package/lib/radio/style/less.d.ts +0 -1
  439. package/lib/radio-group/style/index.d.ts +0 -1
  440. package/lib/radio-group/style/less.d.ts +0 -1
  441. package/lib/radio-panel/style/index.d.ts +0 -1
  442. package/lib/radio-panel/style/less.d.ts +0 -1
  443. package/lib/rate/style/index.d.ts +0 -1
  444. package/lib/rate/style/less.d.ts +0 -1
  445. package/lib/row/style/index.d.ts +0 -1
  446. package/lib/row/style/less.d.ts +0 -1
  447. package/lib/search/style/index.d.ts +0 -1
  448. package/lib/search/style/less.d.ts +0 -1
  449. package/lib/share-sheet/style/index.d.ts +0 -1
  450. package/lib/share-sheet/style/less.d.ts +0 -1
  451. package/lib/sidebar/style/index.d.ts +0 -1
  452. package/lib/sidebar/style/less.d.ts +0 -1
  453. package/lib/sidebar-item/style/index.d.ts +0 -1
  454. package/lib/sidebar-item/style/less.d.ts +0 -1
  455. package/lib/single-person-select/style/index.d.ts +0 -1
  456. package/lib/single-person-select/style/less.d.ts +0 -1
  457. package/lib/skeleton/style/index.d.ts +0 -1
  458. package/lib/skeleton/style/less.d.ts +0 -1
  459. package/lib/slider/style/index.d.ts +0 -1
  460. package/lib/slider/style/less.d.ts +0 -1
  461. package/lib/space/style/index.d.ts +0 -1
  462. package/lib/space/style/less.d.ts +0 -1
  463. package/lib/step/style/index.d.ts +0 -1
  464. package/lib/step/style/less.d.ts +0 -1
  465. package/lib/stepper/style/index.d.ts +0 -1
  466. package/lib/stepper/style/less.d.ts +0 -1
  467. package/lib/steps/style/index.d.ts +0 -1
  468. package/lib/steps/style/less.d.ts +0 -1
  469. package/lib/sticky/style/index.d.ts +0 -1
  470. package/lib/sticky/style/less.d.ts +0 -1
  471. package/lib/submit-bar/style/index.d.ts +0 -1
  472. package/lib/submit-bar/style/less.d.ts +0 -1
  473. package/lib/swipe/style/index.d.ts +0 -1
  474. package/lib/swipe/style/less.d.ts +0 -1
  475. package/lib/swipe-cell/style/index.d.ts +0 -1
  476. package/lib/swipe-cell/style/less.d.ts +0 -1
  477. package/lib/swipe-item/style/index.d.ts +0 -1
  478. package/lib/swipe-item/style/less.d.ts +0 -1
  479. package/lib/switch/style/index.d.ts +0 -1
  480. package/lib/switch/style/less.d.ts +0 -1
  481. package/lib/tab/style/index.d.ts +0 -1
  482. package/lib/tab/style/less.d.ts +0 -1
  483. package/lib/tabbar/style/index.d.ts +0 -1
  484. package/lib/tabbar/style/less.d.ts +0 -1
  485. package/lib/tabbar-item/style/index.d.ts +0 -1
  486. package/lib/tabbar-item/style/less.d.ts +0 -1
  487. package/lib/tabs/style/index.d.ts +0 -1
  488. package/lib/tabs/style/less.d.ts +0 -1
  489. package/lib/tag/style/index.d.ts +0 -1
  490. package/lib/tag/style/less.d.ts +0 -1
  491. package/lib/toast/style/index.d.ts +0 -1
  492. package/lib/toast/style/less.d.ts +0 -1
  493. package/lib/tree-select/style/index.d.ts +0 -1
  494. package/lib/tree-select/style/less.d.ts +0 -1
  495. package/lib/uploader/style/index.d.ts +0 -1
  496. package/lib/uploader/style/less.d.ts +0 -1
  497. package/lib/video-preview/style/index.d.ts +0 -1
  498. package/lib/video-preview/style/less.d.ts +0 -1
  499. package/lib/work-order-card/style/index.d.ts +0 -1
  500. package/lib/work-order-card/style/less.d.ts +0 -1
  501. package/lib/work-order-filter/style/index.d.ts +0 -1
  502. package/lib/work-order-filter/style/less.d.ts +0 -1
@@ -297,7 +297,27 @@ const materialAddProps = {
297
297
  default: () => defaultCategories
298
298
  },
299
299
  title: (0, import_utils.makeStringProp)("\u6DFB\u52A0\u7269\u6599"),
300
- confirmText: (0, import_utils.makeStringProp)("\u786E\u5B9A")
300
+ confirmText: (0, import_utils.makeStringProp)("\u786E\u5B9A"),
301
+ showCommonTab: {
302
+ type: Boolean,
303
+ default: true
304
+ },
305
+ showAllTab: {
306
+ type: Boolean,
307
+ default: true
308
+ },
309
+ showMaterialTab: {
310
+ type: Boolean,
311
+ default: true
312
+ },
313
+ showToolTab: {
314
+ type: Boolean,
315
+ default: true
316
+ },
317
+ commonTabText: (0, import_utils.makeStringProp)("\u5E38\u7528\u7269\u6599"),
318
+ allTabText: (0, import_utils.makeStringProp)("\u5168\u90E8\u7269\u6599"),
319
+ materialTabText: (0, import_utils.makeStringProp)("\u7269\u8D44"),
320
+ toolTabText: (0, import_utils.makeStringProp)("\u5DE5\u5177")
301
321
  };
302
322
  var stdin_default = (0, import_vue.defineComponent)({
303
323
  name,
@@ -306,8 +326,16 @@ var stdin_default = (0, import_vue.defineComponent)({
306
326
  setup(props, {
307
327
  emit
308
328
  }) {
309
- const activeTab = (0, import_vue.ref)(0);
310
- const activeKind = (0, import_vue.ref)("material");
329
+ const getDefaultTab = () => props.showCommonTab || !props.showAllTab ? "common" : "all";
330
+ const getDefaultKind = () => {
331
+ if (props.showMaterialTab || !props.showToolTab)
332
+ return "material";
333
+ if (props.showToolTab)
334
+ return "tool";
335
+ return void 0;
336
+ };
337
+ const activeTab = (0, import_vue.ref)(getDefaultTab());
338
+ const activeKind = (0, import_vue.ref)(getDefaultKind());
311
339
  const keyword = (0, import_vue.ref)("");
312
340
  const searching = (0, import_vue.ref)(false);
313
341
  const expandedKeys = (0, import_vue.ref)(["material-root", "tool-root"]);
@@ -319,8 +347,8 @@ var stdin_default = (0, import_vue.defineComponent)({
319
347
  const detailBannerIndex = (0, import_vue.ref)(0);
320
348
  (0, import_vue.watch)(() => props.show, (show) => {
321
349
  if (show) {
322
- activeTab.value = 0;
323
- activeKind.value = "material";
350
+ activeTab.value = getDefaultTab();
351
+ activeKind.value = getDefaultKind();
324
352
  keyword.value = "";
325
353
  searching.value = false;
326
354
  expandedKeys.value = ["material-root", "tool-root"];
@@ -334,6 +362,16 @@ var stdin_default = (0, import_vue.defineComponent)({
334
362
  }, {
335
363
  immediate: true
336
364
  });
365
+ (0, import_vue.watch)(() => [props.showCommonTab, props.showAllTab], () => {
366
+ if (activeTab.value === "common" && !props.showCommonTab || activeTab.value === "all" && !props.showAllTab) {
367
+ activeTab.value = getDefaultTab();
368
+ }
369
+ });
370
+ (0, import_vue.watch)(() => [props.showMaterialTab, props.showToolTab], () => {
371
+ if (activeKind.value === "material" && !props.showMaterialTab || activeKind.value === "tool" && !props.showToolTab) {
372
+ activeKind.value = getDefaultKind();
373
+ }
374
+ });
337
375
  const quantities = (0, import_vue.computed)(() => props.items.map((_, index) => Math.max(Number(props.modelValue[index] || 0), 0)));
338
376
  const total = (0, import_vue.computed)(() => quantities.value.reduce((sum, value) => sum + value, 0));
339
377
  const selectedItems = (0, import_vue.computed)(() => props.items.map((item, index) => ({
@@ -346,8 +384,8 @@ var stdin_default = (0, import_vue.defineComponent)({
346
384
  const visibleItems = (0, import_vue.computed)(() => {
347
385
  const query = keyword.value.trim().toLowerCase();
348
386
  return props.items.filter((item) => {
349
- const matchesKind = searching.value || item.kind === activeKind.value;
350
- const matchesCategory = searching.value || activeTab.value === 0;
387
+ const matchesKind = searching.value || !activeKind.value || item.kind === activeKind.value;
388
+ const matchesCategory = searching.value || activeTab.value === "common";
351
389
  const matchesSearch = !query || `${item.name}${item.detail}`.toLowerCase().includes(query);
352
390
  return matchesKind && matchesCategory && matchesSearch;
353
391
  });
@@ -388,13 +426,13 @@ var stdin_default = (0, import_vue.defineComponent)({
388
426
  "class": bem("empty")
389
427
  }, [(0, import_vue.createTextVNode)("\u6682\u65E0\u5339\u914D\u7269\u6599")])]);
390
428
  const renderCatalog = () => {
391
- const rootGroups = props.categories.filter((category) => category.kind === activeKind.value);
429
+ const rootGroups = props.categories.filter((category) => !activeKind.value || category.kind === activeKind.value);
392
430
  const configuredValues = new Set(rootGroups.flatMap((group) => group.categories.map((category) => category.value)));
393
- const ungroupedCategories = [...new Set(props.items.filter((item) => item.kind === activeKind.value && !configuredValues.has(item.category)).map((item) => item.category))];
431
+ const ungroupedCategories = [...new Set(props.items.filter((item) => (!activeKind.value || item.kind === activeKind.value) && !configuredValues.has(item.category)).map((item) => item.category))];
394
432
  const groups = ungroupedCategories.length ? [...rootGroups, {
395
- id: `${activeKind.value}-other`,
433
+ id: `${activeKind.value || "all"}-other`,
396
434
  text: "\u672A\u5206\u7C7B",
397
- kind: activeKind.value,
435
+ kind: activeKind.value || "material",
398
436
  categories: ungroupedCategories.map((value) => ({
399
437
  value,
400
438
  text: value
@@ -404,7 +442,7 @@ var stdin_default = (0, import_vue.defineComponent)({
404
442
  id: root.id,
405
443
  text: root.text,
406
444
  selectable: false,
407
- children: props.items.filter((item) => item.kind === activeKind.value && root.categories.some((category) => category.value === item.category)).map((material) => ({
445
+ children: props.items.filter((item) => (!activeKind.value || item.kind === activeKind.value) && root.categories.some((category) => category.value === item.category)).map((material) => ({
408
446
  id: material.id,
409
447
  text: material.name,
410
448
  selectable: false,
@@ -595,36 +633,38 @@ var stdin_default = (0, import_vue.defineComponent)({
595
633
  searching.value = true;
596
634
  }
597
635
  }, null)
598
- }), (0, import_vue.createVNode)(import_tabs.Tabs, {
636
+ }), (props.showCommonTab || props.showAllTab) && (0, import_vue.createVNode)(import_tabs.Tabs, {
599
637
  "active": activeTab.value,
600
638
  "onUpdate:active": ($event) => activeTab.value = $event,
601
639
  "class": bem("tabs"),
602
640
  "shrink": true
603
641
  }, {
604
- default: () => [(0, import_vue.createVNode)(import_tab.Tab, {
605
- "title": "\u5E38\u7528\u7269\u6599"
606
- }, null), (0, import_vue.createVNode)(import_tab.Tab, {
607
- "title": "\u5168\u90E8\u7269\u6599"
642
+ default: () => [props.showCommonTab && (0, import_vue.createVNode)(import_tab.Tab, {
643
+ "name": "common",
644
+ "title": props.commonTabText
645
+ }, null), props.showAllTab && (0, import_vue.createVNode)(import_tab.Tab, {
646
+ "name": "all",
647
+ "title": props.allTabText
608
648
  }, null)]
609
- }), (0, import_vue.createVNode)("div", {
649
+ }), (props.showMaterialTab || props.showToolTab) && (0, import_vue.createVNode)("div", {
610
650
  "class": bem("filter-tags")
611
- }, [(0, import_vue.createVNode)(import_filter_tag.FilterTag, {
651
+ }, [props.showMaterialTab && (0, import_vue.createVNode)(import_filter_tag.FilterTag, {
612
652
  "selected": activeKind.value === "material",
613
653
  "onClick": () => {
614
654
  activeKind.value = "material";
615
655
  }
616
656
  }, {
617
- default: () => [(0, import_vue.createTextVNode)("\u7269\u8D44")]
618
- }), (0, import_vue.createVNode)(import_filter_tag.FilterTag, {
657
+ default: () => [props.materialTabText]
658
+ }), props.showToolTab && (0, import_vue.createVNode)(import_filter_tag.FilterTag, {
619
659
  "selected": activeKind.value === "tool",
620
660
  "onClick": () => {
621
661
  activeKind.value = "tool";
622
662
  }
623
663
  }, {
624
- default: () => [(0, import_vue.createTextVNode)("\u5DE5\u5177")]
664
+ default: () => [props.toolTabText]
625
665
  })])]), (0, import_vue.createVNode)("div", {
626
666
  "class": bem("body")
627
- }, [searching.value && !keyword.value.trim() ? null : searching.value || activeTab.value === 0 ? renderList() : renderCatalog()]), (0, import_vue.createVNode)("div", {
667
+ }, [searching.value && !keyword.value.trim() ? null : searching.value || activeTab.value === "common" ? renderList() : renderCatalog()]), (0, import_vue.createVNode)("div", {
628
668
  "class": bem("footer")
629
669
  }, [renderSelectPanel(), (0, import_vue.createVNode)(import_bottom_action_bar.BottomActionBar, {
630
670
  "fixed": false,
@@ -20,6 +20,38 @@ export declare const MaterialAdd: import("../utils").WithInstall<import("vue").D
20
20
  type: import("vue").PropType<string>;
21
21
  default: string;
22
22
  };
23
+ showCommonTab: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ showAllTab: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ showMaterialTab: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ showToolTab: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ commonTabText: {
40
+ type: import("vue").PropType<string>;
41
+ default: string;
42
+ };
43
+ allTabText: {
44
+ type: import("vue").PropType<string>;
45
+ default: string;
46
+ };
47
+ materialTabText: {
48
+ type: import("vue").PropType<string>;
49
+ default: string;
50
+ };
51
+ toolTabText: {
52
+ type: import("vue").PropType<string>;
53
+ default: string;
54
+ };
23
55
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:show" | "confirm")[], "change" | "update:modelValue" | "update:show" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
24
56
  show: BooleanConstructor;
25
57
  modelValue: {
@@ -42,6 +74,38 @@ export declare const MaterialAdd: import("../utils").WithInstall<import("vue").D
42
74
  type: import("vue").PropType<string>;
43
75
  default: string;
44
76
  };
77
+ showCommonTab: {
78
+ type: BooleanConstructor;
79
+ default: boolean;
80
+ };
81
+ showAllTab: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
85
+ showMaterialTab: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ showToolTab: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ commonTabText: {
94
+ type: import("vue").PropType<string>;
95
+ default: string;
96
+ };
97
+ allTabText: {
98
+ type: import("vue").PropType<string>;
99
+ default: string;
100
+ };
101
+ materialTabText: {
102
+ type: import("vue").PropType<string>;
103
+ default: string;
104
+ };
105
+ toolTabText: {
106
+ type: import("vue").PropType<string>;
107
+ default: string;
108
+ };
45
109
  }>> & {
46
110
  onChange?: ((...args: any[]) => any) | undefined;
47
111
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -54,6 +118,14 @@ export declare const MaterialAdd: import("../utils").WithInstall<import("vue").D
54
118
  confirmText: string;
55
119
  items: import("./types").MaterialAddItem[];
56
120
  categories: import("./types").MaterialAddCategory[];
121
+ showCommonTab: boolean;
122
+ showAllTab: boolean;
123
+ showMaterialTab: boolean;
124
+ showToolTab: boolean;
125
+ commonTabText: string;
126
+ allTabText: string;
127
+ materialTabText: string;
128
+ toolTabText: string;
57
129
  }>>;
58
130
  export default MaterialAdd;
59
131
  export type { MaterialAddProps } from './MaterialAdd';
@@ -12,6 +12,17 @@ declare const radioPanelProps: {
12
12
  default: () => never[];
13
13
  };
14
14
  modelValue: PropType<string>;
15
+ searchable: BooleanConstructor;
16
+ searchPlaceholder: StringConstructor;
17
+ filterable: BooleanConstructor;
18
+ filterActive: BooleanConstructor;
19
+ loading: BooleanConstructor;
20
+ finished: BooleanConstructor;
21
+ error: BooleanConstructor;
22
+ lazy: BooleanConstructor;
23
+ loadingText: StringConstructor;
24
+ finishedText: StringConstructor;
25
+ errorText: StringConstructor;
15
26
  };
16
27
  export declare type RadioPanelProps = ExtractPropTypes<typeof radioPanelProps>;
17
28
  declare const _default: import("vue").DefineComponent<{
@@ -22,7 +33,18 @@ declare const _default: import("vue").DefineComponent<{
22
33
  default: () => never[];
23
34
  };
24
35
  modelValue: PropType<string>;
25
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue" | "update:show")[], "select" | "update:modelValue" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
36
+ searchable: BooleanConstructor;
37
+ searchPlaceholder: StringConstructor;
38
+ filterable: BooleanConstructor;
39
+ filterActive: BooleanConstructor;
40
+ loading: BooleanConstructor;
41
+ finished: BooleanConstructor;
42
+ error: BooleanConstructor;
43
+ lazy: BooleanConstructor;
44
+ loadingText: StringConstructor;
45
+ finishedText: StringConstructor;
46
+ errorText: StringConstructor;
47
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "select" | "update:modelValue" | "load" | "update:show" | "filter" | "update:error" | "update:loading")[], "search" | "select" | "filter" | "update:modelValue" | "load" | "update:show" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
26
48
  show: BooleanConstructor;
27
49
  title: StringConstructor;
28
50
  options: {
@@ -30,12 +52,35 @@ declare const _default: import("vue").DefineComponent<{
30
52
  default: () => never[];
31
53
  };
32
54
  modelValue: PropType<string>;
55
+ searchable: BooleanConstructor;
56
+ searchPlaceholder: StringConstructor;
57
+ filterable: BooleanConstructor;
58
+ filterActive: BooleanConstructor;
59
+ loading: BooleanConstructor;
60
+ finished: BooleanConstructor;
61
+ error: BooleanConstructor;
62
+ lazy: BooleanConstructor;
63
+ loadingText: StringConstructor;
64
+ finishedText: StringConstructor;
65
+ errorText: StringConstructor;
33
66
  }>> & {
67
+ onLoad?: ((...args: any[]) => any) | undefined;
34
68
  onSelect?: ((...args: any[]) => any) | undefined;
35
69
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
36
70
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
71
+ "onUpdate:error"?: ((...args: any[]) => any) | undefined;
72
+ "onUpdate:loading"?: ((...args: any[]) => any) | undefined;
73
+ onSearch?: ((...args: any[]) => any) | undefined;
74
+ onFilter?: ((...args: any[]) => any) | undefined;
37
75
  }, {
76
+ error: boolean;
77
+ loading: boolean;
38
78
  show: boolean;
39
79
  options: RadioPanelOption[];
80
+ finished: boolean;
81
+ searchable: boolean;
82
+ filterable: boolean;
83
+ filterActive: boolean;
84
+ lazy: boolean;
40
85
  }>;
41
86
  export default _default;
@@ -25,23 +25,47 @@ var import_utils = require("../utils");
25
25
  var import_action_sheet = require("../action-sheet");
26
26
  var import_nav_bar = require("../nav-bar");
27
27
  var import_icon = require("../icon");
28
+ var import_badge = require("../badge");
28
29
  var import_cell = require("../cell");
30
+ var import_empty = require("../empty");
31
+ var import_list = require("../list");
29
32
  var import_radio = require("../radio");
30
33
  var import_radio_group = require("../radio-group");
34
+ var import_search = require("../search");
31
35
  const [name, bem] = (0, import_utils.createNamespace)("radio-panel");
36
+ const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
32
37
  const radioPanelProps = {
33
38
  show: Boolean,
34
39
  title: String,
35
40
  options: (0, import_utils.makeArrayProp)(),
36
- modelValue: String
41
+ modelValue: String,
42
+ searchable: Boolean,
43
+ searchPlaceholder: String,
44
+ filterable: Boolean,
45
+ filterActive: Boolean,
46
+ loading: Boolean,
47
+ finished: Boolean,
48
+ error: Boolean,
49
+ lazy: Boolean,
50
+ loadingText: String,
51
+ finishedText: String,
52
+ errorText: String
37
53
  };
38
54
  var stdin_default = (0, import_vue.defineComponent)({
39
55
  name,
40
56
  props: radioPanelProps,
41
- emits: ["update:show", "update:modelValue", "select"],
57
+ emits: ["update:show", "update:modelValue", "update:loading", "update:error", "select", "search", "filter", "load"],
42
58
  setup(props, {
43
- emit
59
+ emit,
60
+ slots
44
61
  }) {
62
+ const keyword = (0, import_vue.ref)("");
63
+ const filteredOptions = (0, import_vue.computed)(() => {
64
+ const query = keyword.value.trim().toLocaleLowerCase();
65
+ if (!query)
66
+ return props.options;
67
+ return props.options.filter((option) => option.label.toLocaleLowerCase().includes(query));
68
+ });
45
69
  const close = () => emit("update:show", false);
46
70
  const select = (option) => {
47
71
  if (option.disabled)
@@ -50,6 +74,48 @@ var stdin_default = (0, import_vue.defineComponent)({
50
74
  emit("select", option.value);
51
75
  close();
52
76
  };
77
+ const renderOptionLabel = (label) => {
78
+ const query = keyword.value.trim();
79
+ if (!query)
80
+ return label;
81
+ const normalizedQuery = query.toLocaleLowerCase();
82
+ return label.split(new RegExp(`(${escapeRegExp(query)})`, "ig")).map((part) => part.toLocaleLowerCase() === normalizedQuery ? (0, import_vue.createVNode)("span", {
83
+ "class": bem("match")
84
+ }, [part]) : part);
85
+ };
86
+ const renderOptions = () => {
87
+ if (!filteredOptions.value.length) {
88
+ return (0, import_vue.createVNode)(import_empty.Empty, {
89
+ "imageSize": 60,
90
+ "description": "\u6682\u65E0\u5339\u914D\u9009\u9879"
91
+ }, null);
92
+ }
93
+ return (0, import_vue.createVNode)(import_radio_group.RadioGroup, {
94
+ "modelValue": props.modelValue,
95
+ "onUpdate:modelValue": (value) => {
96
+ const option = props.options.find((item) => item.value === value);
97
+ if (option)
98
+ select(option);
99
+ }
100
+ }, {
101
+ default: () => [filteredOptions.value.map((option) => (0, import_vue.createVNode)(import_cell.Cell, {
102
+ "key": option.value,
103
+ "clickable": !option.disabled,
104
+ "title": option.label,
105
+ "titleStyle": {
106
+ color: props.modelValue === option.value ? "var(--van-primary-color)" : void 0
107
+ },
108
+ "onClick": () => select(option)
109
+ }, {
110
+ title: () => renderOptionLabel(option.label),
111
+ "right-icon": () => (0, import_vue.createVNode)(import_radio.Radio, {
112
+ "name": option.value,
113
+ "disabled": option.disabled,
114
+ "onClick": (event) => event.stopPropagation()
115
+ }, null)
116
+ }))]
117
+ });
118
+ };
53
119
  return () => (0, import_vue.createVNode)(import_action_sheet.ActionSheet, {
54
120
  "show": props.show,
55
121
  "class": bem(),
@@ -68,35 +134,55 @@ var stdin_default = (0, import_vue.defineComponent)({
68
134
  "name": "cross",
69
135
  "size": "22",
70
136
  "onClick": close
71
- }, null)
72
- })]), (0, import_vue.createVNode)("div", {
137
+ }, null),
138
+ right: () => {
139
+ if (slots.filter)
140
+ return slots.filter();
141
+ if (!props.filterable)
142
+ return;
143
+ return (0, import_vue.createVNode)("button", {
144
+ "type": "button",
145
+ "class": bem("filter"),
146
+ "aria-label": "\u7B5B\u9009",
147
+ "onClick": () => emit("filter")
148
+ }, [(0, import_vue.createVNode)(import_badge.Badge, {
149
+ "dot": props.filterActive
150
+ }, {
151
+ default: () => [(0, import_vue.createVNode)(import_icon.Icon, {
152
+ "name": "filter-o",
153
+ "size": "22"
154
+ }, null)]
155
+ })]);
156
+ }
157
+ })]), props.searchable && (0, import_vue.createVNode)(import_search.Search, {
158
+ "modelValue": keyword.value,
159
+ "class": bem("search"),
160
+ "shape": "round",
161
+ "inputAlign": "left",
162
+ "placeholder": props.searchPlaceholder || "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD",
163
+ "maxlength": 200,
164
+ "onUpdate:modelValue": (value) => {
165
+ keyword.value = value;
166
+ emit("search", value);
167
+ },
168
+ "onSearch": (value) => emit("search", value)
169
+ }, null), (0, import_vue.createVNode)("div", {
73
170
  "class": bem("body")
74
171
  }, [(0, import_vue.createVNode)("div", {
75
172
  "class": bem("card")
76
- }, [(0, import_vue.createVNode)(import_radio_group.RadioGroup, {
77
- "modelValue": props.modelValue,
78
- "onUpdate:modelValue": (value) => {
79
- const option = props.options.find((item) => item.value === value);
80
- if (option)
81
- select(option);
82
- }
173
+ }, [props.lazy ? (0, import_vue.createVNode)(import_list.List, {
174
+ "loading": props.loading,
175
+ "finished": props.finished,
176
+ "error": props.error,
177
+ "loadingText": props.loadingText,
178
+ "finishedText": props.finishedText,
179
+ "errorText": props.errorText,
180
+ "onUpdate:loading": (value) => emit("update:loading", value),
181
+ "onUpdate:error": (value) => emit("update:error", value),
182
+ "onLoad": () => emit("load")
83
183
  }, {
84
- default: () => [props.options.map((option) => (0, import_vue.createVNode)(import_cell.Cell, {
85
- "key": option.value,
86
- "clickable": !option.disabled,
87
- "title": option.label,
88
- "titleStyle": {
89
- color: props.modelValue === option.value ? "var(--van-primary-color)" : void 0
90
- },
91
- "onClick": () => select(option)
92
- }, {
93
- "right-icon": () => (0, import_vue.createVNode)(import_radio.Radio, {
94
- "name": option.value,
95
- "disabled": option.disabled,
96
- "onClick": (event) => event.stopPropagation()
97
- }, null)
98
- }))]
99
- })])])])]
184
+ default: () => [renderOptions()]
185
+ }) : renderOptions()])])])]
100
186
  });
101
187
  }
102
188
  });
@@ -1 +1 @@
1
- .van-radio-panel{box-sizing:border-box;display:flex;height:calc(100% - 96px);max-height:calc(100% - 96px);overflow:hidden;background:var(--van-gray-1)}.van-radio-panel .van-action-sheet__content{display:flex;flex:1;min-height:0;overflow:hidden}.van-radio-panel__content{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;background:var(--van-gray-1)}.van-radio-panel__nav-wrapper{flex:none;width:100%;min-width:0;max-width:100%;overflow:hidden}.van-radio-panel__nav{box-sizing:border-box;width:100%;min-width:0;max-width:100%;overflow:hidden;--van-nav-bar-background-color: var(--van-gray-1)}.van-radio-panel__nav .van-nav-bar__content{box-sizing:border-box;width:100%;overflow:hidden}.van-radio-panel__nav .van-nav-bar__left--slot,.van-radio-panel__nav .van-nav-bar__right--slot{padding:0}.van-radio-panel__nav .van-nav-bar__left--slot{left:var(--van-padding-md)}.van-radio-panel__nav .van-nav-bar__right--slot{right:var(--van-padding-md)}.van-radio-panel__body{flex:1;min-height:0;padding:0 var(--van-padding-md);overflow-y:auto}.van-radio-panel__card{overflow:hidden;background:var(--van-white);border-radius:var(--van-border-radius-lg)}.van-radio-panel__footer{flex:none;padding:var(--van-padding-xs) 12px;background:var(--van-white);box-shadow:0 3px 12px rgba(27,33,41,.12),0 .5px 3px rgba(27,33,41,.08)}.van-radio-panel__select-all{color:var(--van-primary-color);font-weight:var(--van-font-weight-bold);font-size:var(--van-font-size-md)}.van-radio-panel .van-cell{min-height:44px}.van-radio-panel .van-checkbox{margin:0}
1
+ .van-radio-panel{box-sizing:border-box;display:flex;height:calc(100% - 96px);max-height:calc(100% - 96px);overflow:hidden;background:var(--van-gray-1)}.van-radio-panel .van-action-sheet__content{display:flex;flex:1;min-height:0;overflow:hidden}.van-radio-panel__content{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;background:var(--van-gray-1)}.van-radio-panel__nav-wrapper{flex:none;width:100%;min-width:0;max-width:100%;overflow:hidden}.van-radio-panel__nav{box-sizing:border-box;width:100%;min-width:0;max-width:100%;overflow:hidden;--van-nav-bar-background-color: var(--van-gray-1)}.van-radio-panel__nav .van-nav-bar__content{box-sizing:border-box;width:100%;overflow:hidden}.van-radio-panel__nav .van-nav-bar__left--slot,.van-radio-panel__nav .van-nav-bar__right--slot{padding:0}.van-radio-panel__nav .van-nav-bar__left--slot{left:var(--van-padding-md)}.van-radio-panel__nav .van-nav-bar__right--slot{right:var(--van-padding-md)}.van-radio-panel__filter{display:flex;align-items:center;justify-content:center;width:34px;height:46px;padding:0;color:inherit;background:transparent;border:0}.van-radio-panel__search{--van-search-padding: 8px var(--van-padding-md);--van-search-background-color: var(--van-gray-1);--van-search-content-background-color: var(--van-white)}.van-radio-panel__match{color:var(--van-primary-color)}.van-radio-panel__body{flex:1;min-height:0;padding:0 var(--van-padding-md);overflow-y:auto}.van-radio-panel__card{overflow:hidden;background:var(--van-white);border-radius:var(--van-border-radius-lg)}.van-radio-panel__footer{flex:none;padding:var(--van-padding-xs) 12px;background:var(--van-white);box-shadow:0 3px 12px rgba(27,33,41,.12),0 .5px 3px rgba(27,33,41,.08)}.van-radio-panel__select-all{color:var(--van-primary-color);font-weight:var(--van-font-weight-bold);font-size:var(--van-font-size-md)}.van-radio-panel .van-cell{min-height:44px}.van-radio-panel .van-checkbox{margin:0}
@@ -6,7 +6,18 @@ export declare const RadioPanel: import("../utils").WithInstall<import("vue").De
6
6
  default: () => never[];
7
7
  };
8
8
  modelValue: import("vue").PropType<string>;
9
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue" | "update:show")[], "select" | "update:modelValue" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ searchable: BooleanConstructor;
10
+ searchPlaceholder: StringConstructor;
11
+ filterable: BooleanConstructor;
12
+ filterActive: BooleanConstructor;
13
+ loading: BooleanConstructor;
14
+ finished: BooleanConstructor;
15
+ error: BooleanConstructor;
16
+ lazy: BooleanConstructor;
17
+ loadingText: StringConstructor;
18
+ finishedText: StringConstructor;
19
+ errorText: StringConstructor;
20
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "select" | "update:modelValue" | "load" | "update:show" | "filter" | "update:error" | "update:loading")[], "search" | "select" | "filter" | "update:modelValue" | "load" | "update:show" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
21
  show: BooleanConstructor;
11
22
  title: StringConstructor;
12
23
  options: {
@@ -14,13 +25,36 @@ export declare const RadioPanel: import("../utils").WithInstall<import("vue").De
14
25
  default: () => never[];
15
26
  };
16
27
  modelValue: import("vue").PropType<string>;
28
+ searchable: BooleanConstructor;
29
+ searchPlaceholder: StringConstructor;
30
+ filterable: BooleanConstructor;
31
+ filterActive: BooleanConstructor;
32
+ loading: BooleanConstructor;
33
+ finished: BooleanConstructor;
34
+ error: BooleanConstructor;
35
+ lazy: BooleanConstructor;
36
+ loadingText: StringConstructor;
37
+ finishedText: StringConstructor;
38
+ errorText: StringConstructor;
17
39
  }>> & {
40
+ onLoad?: ((...args: any[]) => any) | undefined;
18
41
  onSelect?: ((...args: any[]) => any) | undefined;
19
42
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
20
43
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
44
+ "onUpdate:error"?: ((...args: any[]) => any) | undefined;
45
+ "onUpdate:loading"?: ((...args: any[]) => any) | undefined;
46
+ onSearch?: ((...args: any[]) => any) | undefined;
47
+ onFilter?: ((...args: any[]) => any) | undefined;
21
48
  }, {
49
+ error: boolean;
50
+ loading: boolean;
22
51
  show: boolean;
23
52
  options: import("./RadioPanel").RadioPanelOption[];
53
+ finished: boolean;
54
+ searchable: boolean;
55
+ filterable: boolean;
56
+ filterActive: boolean;
57
+ lazy: boolean;
24
58
  }>>;
25
59
  export default RadioPanel;
26
60
  export type { RadioPanelProps, RadioPanelOption } from './RadioPanel';
@@ -17,6 +17,23 @@
17
17
  .van-nav-bar__left--slot { left: var(--van-padding-md); }
18
18
  .van-nav-bar__right--slot { right: var(--van-padding-md); }
19
19
  }
20
+ &__filter {
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ width: 34px;
25
+ height: 46px;
26
+ padding: 0;
27
+ color: inherit;
28
+ background: transparent;
29
+ border: 0;
30
+ }
31
+ &__search {
32
+ --van-search-padding: 8px var(--van-padding-md);
33
+ --van-search-background-color: var(--van-gray-1);
34
+ --van-search-content-background-color: var(--van-white);
35
+ }
36
+ &__match { color: var(--van-primary-color); }
20
37
  &__body { flex: 1; min-height: 0; padding: 0 var(--van-padding-md); overflow-y: auto; }
21
38
  &__card { overflow: hidden; background: var(--van-white); border-radius: var(--van-border-radius-lg); }
22
39
  &__footer { flex: none; padding: var(--van-padding-xs) 12px; background: var(--van-white); box-shadow: 0 3px 12px rgba(27, 33, 41, 0.12), 0 0.5px 3px rgba(27, 33, 41, 0.08); }
@@ -2,6 +2,7 @@ require("../../style/base.css");
2
2
  require("../../badge/index.css");
3
3
  require("../../icon/index.css");
4
4
  require("../../loading/index.css");
5
+ require("../../list/index.css");
5
6
  require("../../overlay/index.css");
6
7
  require("../../popup/index.css");
7
8
  require("../../popover/index.css");
@@ -12,4 +13,7 @@ require("../../checkbox/index.css");
12
13
  require("../../radio-group/index.css");
13
14
  require("../../radio/index.css");
14
15
  require("../../cell/index.css");
16
+ require("../../field/index.css");
17
+ require("../../search/index.css");
18
+ require("../../empty/index.css");
15
19
  require("../index.css");
@@ -2,6 +2,7 @@ require("../../style/base.less");
2
2
  require("../../badge/index.less");
3
3
  require("../../icon/index.less");
4
4
  require("../../loading/index.less");
5
+ require("../../list/index.less");
5
6
  require("../../overlay/index.less");
6
7
  require("../../popup/index.less");
7
8
  require("../../popover/index.less");
@@ -12,4 +13,7 @@ require("../../checkbox/index.less");
12
13
  require("../../radio-group/index.less");
13
14
  require("../../radio/index.less");
14
15
  require("../../cell/index.less");
16
+ require("../../field/index.less");
17
+ require("../../search/index.less");
18
+ require("../../empty/index.less");
15
19
  require("../index.less");
@@ -88,6 +88,7 @@ var stdin_default = (0, import_vue.defineComponent)({
88
88
  }, null), Text]);
89
89
  if (props.dot || (0, import_utils.isDef)(props.badge) && props.badge !== "") {
90
90
  return (0, import_vue.createVNode)(import_badge.Badge, {
91
+ "class": bem("badge"),
91
92
  "dot": props.dot,
92
93
  "content": props.badge,
93
94
  "showZero": props.showZeroBadge