persagy-vant 0.0.24 → 0.0.26

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 (361) hide show
  1. package/es/action-sheet/index.css +1 -1
  2. package/es/action-sheet/index.d.ts +0 -63
  3. package/es/action-sheet/index.less +0 -96
  4. package/es/action-sheet/index.mjs +0 -3
  5. package/es/action-sheet/style/index.mjs +0 -8
  6. package/es/action-sheet/style/less.mjs +0 -8
  7. package/es/background/Background.d.ts +23 -0
  8. package/es/background/Background.mjs +23 -0
  9. package/es/background/assets/background-default.png +0 -0
  10. package/es/background/assets/background-light.png +0 -0
  11. package/es/background/assets/background-style-1.png +0 -0
  12. package/es/background/assets/background-style-2.png +0 -0
  13. package/es/background/assets/background-style-3.png +0 -0
  14. package/es/background/index.css +1 -0
  15. package/es/background/index.d.ts +21 -0
  16. package/es/background/index.less +51 -0
  17. package/es/background/index.mjs +8 -0
  18. package/es/background/style/index.d.ts +1 -0
  19. package/es/background/style/index.mjs +2 -0
  20. package/es/background/style/less.d.ts +1 -0
  21. package/es/background/style/less.mjs +2 -0
  22. package/es/background/types.d.ts +1 -0
  23. package/es/background/types.mjs +0 -0
  24. package/es/background/var.css +0 -0
  25. package/es/background/var.less +6 -0
  26. package/es/cascader/style/index.mjs +0 -8
  27. package/es/cascader/style/less.mjs +0 -8
  28. package/es/{action-sheet/ActionSheetPanel.d.ts → checkbox-panel/CheckboxPanel.d.ts} +11 -26
  29. package/es/checkbox-panel/CheckboxPanel.mjs +100 -0
  30. package/es/checkbox-panel/index.css +1 -0
  31. package/es/checkbox-panel/index.d.ts +58 -0
  32. package/es/checkbox-panel/index.less +26 -0
  33. package/es/checkbox-panel/index.mjs +8 -0
  34. package/es/checkbox-panel/style/index.d.ts +1 -0
  35. package/es/checkbox-panel/style/index.mjs +16 -0
  36. package/es/checkbox-panel/style/less.d.ts +1 -0
  37. package/es/checkbox-panel/style/less.mjs +16 -0
  38. package/es/coupon-list/style/index.mjs +1 -3
  39. package/es/coupon-list/style/less.mjs +1 -3
  40. package/es/datetime-picker/DatetimePicker.mjs +1 -3
  41. package/es/empty/Empty.mjs +6 -274
  42. package/es/empty/assets/default.png +0 -0
  43. package/es/empty/assets/network.png +0 -0
  44. package/es/empty/index.css +1 -1
  45. package/es/empty/index.less +19 -1
  46. package/es/empty/var.less +6 -5
  47. package/es/field/Field.d.ts +17 -4
  48. package/es/field/Field.mjs +1 -1
  49. package/es/field/index.css +1 -1
  50. package/es/field/index.d.ts +9 -2
  51. package/es/field/var.less +1 -1
  52. package/es/filter-tag/FilterTag.d.ts +14 -0
  53. package/es/filter-tag/FilterTag.mjs +6 -1
  54. package/es/filter-tag/index.css +1 -1
  55. package/es/filter-tag/index.d.ts +10 -1
  56. package/es/filter-tag/index.less +16 -0
  57. package/es/filter-tag/var.less +5 -0
  58. package/es/floor-select/FloorSelect.d.ts +38 -0
  59. package/es/floor-select/FloorSelect.mjs +237 -0
  60. package/es/floor-select/index.css +1 -0
  61. package/es/floor-select/index.d.ts +32 -0
  62. package/es/floor-select/index.less +58 -0
  63. package/es/floor-select/index.mjs +8 -0
  64. package/es/floor-select/style/index.d.ts +1 -0
  65. package/es/floor-select/style/index.mjs +20 -0
  66. package/es/floor-select/style/less.d.ts +1 -0
  67. package/es/floor-select/style/less.mjs +20 -0
  68. package/es/floor-select/types.d.ts +18 -0
  69. package/es/floor-select/types.mjs +0 -0
  70. package/es/form-panel/FormPanel.d.ts +32 -0
  71. package/es/form-panel/FormPanel.mjs +64 -0
  72. package/es/form-panel/index.css +1 -0
  73. package/es/form-panel/index.d.ts +28 -0
  74. package/es/form-panel/index.less +95 -0
  75. package/es/form-panel/index.mjs +8 -0
  76. package/es/form-panel/style/index.d.ts +1 -0
  77. package/es/form-panel/style/index.mjs +11 -0
  78. package/es/form-panel/style/less.d.ts +1 -0
  79. package/es/form-panel/style/less.mjs +11 -0
  80. package/es/friendly-tip/FriendlyTip.d.ts +86 -0
  81. package/es/friendly-tip/FriendlyTip.mjs +60 -0
  82. package/es/friendly-tip/index.css +1 -0
  83. package/es/friendly-tip/index.d.ts +64 -0
  84. package/es/friendly-tip/index.less +48 -0
  85. package/es/friendly-tip/index.mjs +8 -0
  86. package/es/friendly-tip/style/index.d.ts +1 -0
  87. package/es/friendly-tip/style/index.mjs +7 -0
  88. package/es/friendly-tip/style/less.d.ts +1 -0
  89. package/es/friendly-tip/style/less.mjs +7 -0
  90. package/es/friendly-tip/var.css +0 -0
  91. package/es/friendly-tip/var.less +10 -0
  92. package/es/index.d.ts +8 -1
  93. package/es/index.mjs +22 -1
  94. package/es/location-select/style/index.mjs +1 -1
  95. package/es/location-select/style/less.mjs +1 -1
  96. package/es/material-add/MaterialAdd.d.ts +14 -1
  97. package/es/material-add/MaterialAdd.mjs +98 -50
  98. package/es/material-add/index.d.ts +10 -1
  99. package/es/material-add/style/index.mjs +1 -1
  100. package/es/material-add/style/less.mjs +1 -1
  101. package/es/material-add/types.d.ts +9 -0
  102. package/es/multi-person-select/MultiPersonSelect.d.ts +1 -1
  103. package/es/multi-person-select/index.d.ts +1 -1
  104. package/es/multi-person-select/style/index.mjs +1 -1
  105. package/es/multi-person-select/style/less.mjs +1 -1
  106. package/es/notify/index.css +1 -1
  107. package/es/notify/index.less +10 -0
  108. package/es/notify/var.less +3 -0
  109. package/es/object-select/style/index.mjs +1 -1
  110. package/es/object-select/style/less.mjs +1 -1
  111. package/es/popover/Popover.mjs +5 -4
  112. package/es/popover/index.css +1 -1
  113. package/es/popover/index.less +12 -5
  114. package/es/popover/var.less +1 -1
  115. package/es/quantity-input/QuantityInput.d.ts +1 -1
  116. package/es/quantity-input/index.d.ts +2 -2
  117. package/es/radio-panel/RadioPanel.d.ts +41 -0
  118. package/es/radio-panel/RadioPanel.mjs +83 -0
  119. package/es/radio-panel/index.css +1 -0
  120. package/es/radio-panel/index.d.ts +31 -0
  121. package/es/radio-panel/index.less +26 -0
  122. package/es/radio-panel/index.mjs +8 -0
  123. package/es/radio-panel/style/index.d.ts +1 -0
  124. package/es/radio-panel/style/index.mjs +15 -0
  125. package/es/radio-panel/style/less.d.ts +1 -0
  126. package/es/radio-panel/style/less.mjs +15 -0
  127. package/es/rate/Rate.d.ts +1 -1
  128. package/es/rate/Rate.mjs +2 -1
  129. package/es/rate/RateCell.d.ts +196 -0
  130. package/es/rate/RateCell.mjs +60 -0
  131. package/es/rate/index.css +1 -1
  132. package/es/rate/index.d.ts +136 -0
  133. package/es/rate/index.less +35 -0
  134. package/es/rate/index.mjs +8 -0
  135. package/es/rate/style/index.mjs +5 -0
  136. package/es/rate/style/less.mjs +5 -0
  137. package/es/rate/var.less +1 -1
  138. package/es/search/Search.d.ts +13 -3
  139. package/es/search/index.d.ts +9 -2
  140. package/es/sidebar-item/SidebarItem.mjs +1 -2
  141. package/es/single-person-select/style/index.mjs +1 -2
  142. package/es/single-person-select/style/less.mjs +1 -2
  143. package/es/style/base.css +1 -1
  144. package/es/style/css-variables.css +1 -1
  145. package/es/style/css-variables.less +10 -0
  146. package/es/tab/style/index.mjs +0 -8
  147. package/es/tab/style/less.mjs +0 -8
  148. package/es/tabbar/index.css +1 -1
  149. package/es/tabbar/var.less +1 -1
  150. package/es/tabs/Tabs.mjs +5 -1
  151. package/es/tabs/index.css +1 -1
  152. package/es/tabs/index.less +4 -0
  153. package/es/tabs/style/index.mjs +0 -8
  154. package/es/tabs/style/less.mjs +0 -8
  155. package/es/tag/Tag.d.ts +13 -3
  156. package/es/tag/Tag.mjs +1 -1
  157. package/es/tag/index.d.ts +9 -2
  158. package/es/work-order-card/WorkOrderCard.d.ts +145 -0
  159. package/es/work-order-card/WorkOrderCard.mjs +121 -0
  160. package/es/work-order-card/index.css +1 -0
  161. package/es/work-order-card/index.d.ts +107 -0
  162. package/es/work-order-card/index.less +34 -0
  163. package/es/work-order-card/index.mjs +8 -0
  164. package/es/work-order-card/style/index.d.ts +1 -0
  165. package/es/work-order-card/style/index.mjs +8 -0
  166. package/es/work-order-card/style/less.d.ts +1 -0
  167. package/es/work-order-card/style/less.mjs +8 -0
  168. package/es/work-order-card/types.d.ts +16 -0
  169. package/es/work-order-card/types.mjs +0 -0
  170. package/es/work-order-card/var.css +0 -0
  171. package/es/work-order-card/var.less +6 -0
  172. package/es/work-order-filter/style/index.mjs +1 -1
  173. package/es/work-order-filter/style/less.mjs +1 -1
  174. package/lib/action-sheet/index.css +1 -1
  175. package/lib/action-sheet/index.d.ts +0 -63
  176. package/lib/action-sheet/index.js +0 -3
  177. package/lib/action-sheet/index.less +0 -96
  178. package/lib/action-sheet/style/index.js +0 -8
  179. package/lib/action-sheet/style/less.js +0 -8
  180. package/lib/background/Background.d.ts +23 -0
  181. package/lib/background/Background.js +42 -0
  182. package/lib/background/assets/background-default.png +0 -0
  183. package/lib/background/assets/background-light.png +0 -0
  184. package/lib/background/assets/background-style-1.png +0 -0
  185. package/lib/background/assets/background-style-2.png +0 -0
  186. package/lib/background/assets/background-style-3.png +0 -0
  187. package/lib/background/index.css +1 -0
  188. package/lib/background/index.d.ts +21 -0
  189. package/lib/background/index.js +37 -0
  190. package/lib/background/index.less +51 -0
  191. package/lib/background/style/index.d.ts +1 -0
  192. package/lib/background/style/index.js +2 -0
  193. package/lib/background/style/less.d.ts +1 -0
  194. package/lib/background/style/less.js +2 -0
  195. package/lib/background/types.d.ts +1 -0
  196. package/lib/background/types.js +15 -0
  197. package/lib/background/var.css +0 -0
  198. package/lib/background/var.less +6 -0
  199. package/lib/cascader/style/index.js +0 -8
  200. package/lib/cascader/style/less.js +0 -8
  201. package/lib/{action-sheet/ActionSheetPanel.d.ts → checkbox-panel/CheckboxPanel.d.ts} +11 -26
  202. package/lib/checkbox-panel/CheckboxPanel.js +119 -0
  203. package/lib/checkbox-panel/index.css +1 -0
  204. package/lib/checkbox-panel/index.d.ts +58 -0
  205. package/lib/checkbox-panel/index.js +37 -0
  206. package/lib/checkbox-panel/index.less +26 -0
  207. package/lib/checkbox-panel/style/index.d.ts +1 -0
  208. package/lib/checkbox-panel/style/index.js +16 -0
  209. package/lib/checkbox-panel/style/less.d.ts +1 -0
  210. package/lib/checkbox-panel/style/less.js +16 -0
  211. package/lib/coupon-list/style/index.js +1 -3
  212. package/lib/coupon-list/style/less.js +1 -3
  213. package/lib/datetime-picker/DatetimePicker.js +1 -3
  214. package/lib/empty/Empty.js +6 -274
  215. package/lib/empty/assets/default.png +0 -0
  216. package/lib/empty/assets/network.png +0 -0
  217. package/lib/empty/index.css +1 -1
  218. package/lib/empty/index.less +19 -1
  219. package/lib/empty/var.less +6 -5
  220. package/lib/field/Field.d.ts +17 -4
  221. package/lib/field/Field.js +1 -1
  222. package/lib/field/index.css +1 -1
  223. package/lib/field/index.d.ts +9 -2
  224. package/lib/field/var.less +1 -1
  225. package/lib/filter-tag/FilterTag.d.ts +14 -0
  226. package/lib/filter-tag/FilterTag.js +6 -1
  227. package/lib/filter-tag/index.css +1 -1
  228. package/lib/filter-tag/index.d.ts +10 -1
  229. package/lib/filter-tag/index.less +16 -0
  230. package/lib/filter-tag/var.less +5 -0
  231. package/lib/floor-select/FloorSelect.d.ts +38 -0
  232. package/lib/floor-select/FloorSelect.js +256 -0
  233. package/lib/floor-select/index.css +1 -0
  234. package/lib/floor-select/index.d.ts +32 -0
  235. package/lib/floor-select/index.js +37 -0
  236. package/lib/floor-select/index.less +58 -0
  237. package/lib/floor-select/style/index.d.ts +1 -0
  238. package/lib/floor-select/style/index.js +20 -0
  239. package/lib/floor-select/style/less.d.ts +1 -0
  240. package/lib/floor-select/style/less.js +20 -0
  241. package/lib/floor-select/types.d.ts +18 -0
  242. package/lib/floor-select/types.js +15 -0
  243. package/lib/form-panel/FormPanel.d.ts +32 -0
  244. package/lib/form-panel/FormPanel.js +83 -0
  245. package/lib/form-panel/index.css +1 -0
  246. package/lib/form-panel/index.d.ts +28 -0
  247. package/lib/form-panel/index.js +37 -0
  248. package/lib/form-panel/index.less +95 -0
  249. package/lib/form-panel/style/index.d.ts +1 -0
  250. package/lib/form-panel/style/index.js +11 -0
  251. package/lib/form-panel/style/less.d.ts +1 -0
  252. package/lib/form-panel/style/less.js +11 -0
  253. package/lib/friendly-tip/FriendlyTip.d.ts +86 -0
  254. package/lib/friendly-tip/FriendlyTip.js +79 -0
  255. package/lib/friendly-tip/index.css +1 -0
  256. package/lib/friendly-tip/index.d.ts +64 -0
  257. package/lib/friendly-tip/index.js +37 -0
  258. package/lib/friendly-tip/index.less +48 -0
  259. package/lib/friendly-tip/style/index.d.ts +1 -0
  260. package/lib/friendly-tip/style/index.js +7 -0
  261. package/lib/friendly-tip/style/less.d.ts +1 -0
  262. package/lib/friendly-tip/style/less.js +7 -0
  263. package/lib/friendly-tip/var.css +0 -0
  264. package/lib/friendly-tip/var.less +10 -0
  265. package/lib/index.css +1 -1
  266. package/lib/index.d.ts +8 -1
  267. package/lib/index.js +22 -1
  268. package/lib/index.less +16 -9
  269. package/lib/location-select/style/index.js +1 -1
  270. package/lib/location-select/style/less.js +1 -1
  271. package/lib/material-add/MaterialAdd.d.ts +14 -1
  272. package/lib/material-add/MaterialAdd.js +98 -50
  273. package/lib/material-add/index.d.ts +10 -1
  274. package/lib/material-add/style/index.js +1 -1
  275. package/lib/material-add/style/less.js +1 -1
  276. package/lib/material-add/types.d.ts +9 -0
  277. package/lib/multi-person-select/MultiPersonSelect.d.ts +1 -1
  278. package/lib/multi-person-select/index.d.ts +1 -1
  279. package/lib/multi-person-select/style/index.js +1 -1
  280. package/lib/multi-person-select/style/less.js +1 -1
  281. package/lib/notify/index.css +1 -1
  282. package/lib/notify/index.less +10 -0
  283. package/lib/notify/var.less +3 -0
  284. package/lib/object-select/style/index.js +1 -1
  285. package/lib/object-select/style/less.js +1 -1
  286. package/lib/popover/Popover.js +5 -4
  287. package/lib/popover/index.css +1 -1
  288. package/lib/popover/index.less +12 -5
  289. package/lib/popover/var.less +1 -1
  290. package/lib/quantity-input/QuantityInput.d.ts +1 -1
  291. package/lib/quantity-input/index.d.ts +2 -2
  292. package/lib/radio-panel/RadioPanel.d.ts +41 -0
  293. package/lib/radio-panel/RadioPanel.js +102 -0
  294. package/lib/radio-panel/index.css +1 -0
  295. package/lib/radio-panel/index.d.ts +31 -0
  296. package/lib/radio-panel/index.js +37 -0
  297. package/lib/radio-panel/index.less +26 -0
  298. package/lib/radio-panel/style/index.d.ts +1 -0
  299. package/lib/radio-panel/style/index.js +15 -0
  300. package/lib/radio-panel/style/less.d.ts +1 -0
  301. package/lib/radio-panel/style/less.js +15 -0
  302. package/lib/rate/Rate.d.ts +1 -1
  303. package/lib/rate/Rate.js +2 -1
  304. package/lib/rate/RateCell.d.ts +196 -0
  305. package/lib/rate/RateCell.js +89 -0
  306. package/lib/rate/index.css +1 -1
  307. package/lib/rate/index.d.ts +136 -0
  308. package/lib/rate/index.js +8 -0
  309. package/lib/rate/index.less +35 -0
  310. package/lib/rate/style/index.js +5 -0
  311. package/lib/rate/style/less.js +5 -0
  312. package/lib/rate/var.less +1 -1
  313. package/lib/search/Search.d.ts +13 -3
  314. package/lib/search/index.d.ts +9 -2
  315. package/lib/sidebar-item/SidebarItem.js +1 -2
  316. package/lib/single-person-select/style/index.js +1 -2
  317. package/lib/single-person-select/style/less.js +1 -2
  318. package/lib/style/base.css +1 -1
  319. package/lib/style/css-variables.css +1 -1
  320. package/lib/style/css-variables.less +10 -0
  321. package/lib/tab/style/index.js +0 -8
  322. package/lib/tab/style/less.js +0 -8
  323. package/lib/tabbar/index.css +1 -1
  324. package/lib/tabbar/var.less +1 -1
  325. package/lib/tabs/Tabs.js +5 -1
  326. package/lib/tabs/index.css +1 -1
  327. package/lib/tabs/index.less +4 -0
  328. package/lib/tabs/style/index.js +0 -8
  329. package/lib/tabs/style/less.js +0 -8
  330. package/lib/tag/Tag.d.ts +13 -3
  331. package/lib/tag/Tag.js +1 -1
  332. package/lib/tag/index.d.ts +9 -2
  333. package/lib/vant.cjs.js +3497 -3138
  334. package/lib/vant.es.js +3498 -3139
  335. package/lib/vant.js +5700 -5341
  336. package/lib/vant.min.js +1 -1
  337. package/lib/web-types.json +1 -1
  338. package/lib/work-order-card/WorkOrderCard.d.ts +145 -0
  339. package/lib/work-order-card/WorkOrderCard.js +140 -0
  340. package/lib/work-order-card/index.css +1 -0
  341. package/lib/work-order-card/index.d.ts +107 -0
  342. package/lib/work-order-card/index.js +37 -0
  343. package/lib/work-order-card/index.less +34 -0
  344. package/lib/work-order-card/style/index.d.ts +1 -0
  345. package/lib/work-order-card/style/index.js +8 -0
  346. package/lib/work-order-card/style/less.d.ts +1 -0
  347. package/lib/work-order-card/style/less.js +8 -0
  348. package/lib/work-order-card/types.d.ts +16 -0
  349. package/lib/work-order-card/types.js +15 -0
  350. package/lib/work-order-card/var.css +0 -0
  351. package/lib/work-order-card/var.less +6 -0
  352. package/lib/work-order-filter/style/index.js +1 -1
  353. package/lib/work-order-filter/style/less.js +1 -1
  354. package/package.json +2 -2
  355. package/skills/use-persagy-vant/SKILL.md +8 -7
  356. package/skills/use-persagy-vant/references/business-component-catalog.md +5 -0
  357. package/skills/use-persagy-vant/references/component-catalog.md +7 -4
  358. package/skills/use-persagy-vant/references/design-interaction-baseline.md +71 -0
  359. package/skills/use-persagy-vant/references/page-recipes.md +22 -5
  360. package/es/action-sheet/ActionSheetPanel.mjs +0 -145
  361. package/lib/action-sheet/ActionSheetPanel.js +0 -174
@@ -1 +1 @@
1
- :root{--van-action-sheet-max-height: 80%;--van-action-sheet-header-height: 48px;--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-color-light);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-close-icon-size: 22px;--van-action-sheet-close-icon-color: var(--van-gray-5);--van-action-sheet-close-icon-padding: 0 var(--van-padding-md);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background-color);--van-action-sheet-loading-icon-size: 22px}.van-action-sheet{display:flex;flex-direction:column;max-height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color)}.van-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__item,.van-action-sheet__cancel{display:block;width:100%;padding:14px var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:var(--van-action-sheet-item-background);border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__cancel{flex-shrink:0;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height)}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{flex-shrink:0;font-weight:var(--van-font-weight-bold);font-size:var(--van-action-sheet-header-font-size);line-height:var(--van-action-sheet-header-height);text-align:center}.van-action-sheet__description{position:relative;flex-shrink:0;padding:20px var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-border-color);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}.van-action-sheet__close{position:absolute;top:0;right:0;padding:var(--van-action-sheet-close-icon-padding);color:var(--van-action-sheet-close-icon-color);font-size:var(--van-action-sheet-close-icon-size);line-height:inherit}.van-action-sheet-panel{box-sizing:border-box;display:flex;height:calc(100% - 96px);max-height:calc(100% - 96px);overflow:hidden;background:var(--van-gray-1)}.van-action-sheet-panel .van-action-sheet__content{display:flex;flex:1;min-height:0;overflow:hidden}.van-action-sheet-panel__content{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;background:var(--van-gray-1)}.van-action-sheet-panel__nav-wrapper{flex:none;width:100%;min-width:0;max-width:100%;overflow:hidden}.van-action-sheet-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-action-sheet-panel__nav .van-nav-bar__content{box-sizing:border-box;width:100%;overflow:hidden}.van-action-sheet-panel__nav .van-nav-bar__left--slot,.van-action-sheet-panel__nav .van-nav-bar__right--slot{padding:0}.van-action-sheet-panel__nav .van-nav-bar__left--slot{left:var(--van-padding-md)}.van-action-sheet-panel__nav .van-nav-bar__right--slot{right:var(--van-padding-md)}.van-action-sheet-panel__body{flex:1;min-height:0;padding:0 var(--van-padding-md);overflow-y:auto}.van-action-sheet-panel__card{overflow:hidden;background:var(--van-white);border-radius:var(--van-radius-md)}.van-action-sheet-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-action-sheet-panel__select-all{color:var(--van-primary-color);font-weight:var(--van-font-weight-bold);font-size:var(--van-font-size-md)}.van-action-sheet-panel .van-cell{min-height:44px}.van-action-sheet-panel .van-checkbox{margin:0}
1
+ :root{--van-action-sheet-max-height: 80%;--van-action-sheet-header-height: 48px;--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-color-light);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-close-icon-size: 22px;--van-action-sheet-close-icon-color: var(--van-gray-5);--van-action-sheet-close-icon-padding: 0 var(--van-padding-md);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background-color);--van-action-sheet-loading-icon-size: 22px}.van-action-sheet{display:flex;flex-direction:column;max-height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color)}.van-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__item,.van-action-sheet__cancel{display:block;width:100%;padding:14px var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:var(--van-action-sheet-item-background);border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__cancel{flex-shrink:0;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height)}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{flex-shrink:0;font-weight:var(--van-font-weight-bold);font-size:var(--van-action-sheet-header-font-size);line-height:var(--van-action-sheet-header-height);text-align:center}.van-action-sheet__description{position:relative;flex-shrink:0;padding:20px var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-border-color);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}.van-action-sheet__close{position:absolute;top:0;right:0;padding:var(--van-action-sheet-close-icon-padding);color:var(--van-action-sheet-close-icon-color);font-size:var(--van-action-sheet-close-icon-size);line-height:inherit}
@@ -125,73 +125,10 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
125
125
  actions: import("./ActionSheet").ActionSheetAction[];
126
126
  closeOnClickAction: boolean;
127
127
  }>>;
128
- export declare const ActionSheetPanel: import("../utils").WithInstall<import("vue").DefineComponent<{
129
- show: BooleanConstructor;
130
- type: {
131
- type: import("vue").PropType<import("./ActionSheetPanel").ActionSheetPanelType>;
132
- default: import("./ActionSheetPanel").ActionSheetPanelType;
133
- };
134
- title: StringConstructor;
135
- options: {
136
- type: import("vue").PropType<import("./ActionSheetPanel").ActionSheetPanelOption[]>;
137
- default: () => never[];
138
- };
139
- modelValue: import("vue").PropType<string | string[]>;
140
- confirmText: {
141
- type: import("vue").PropType<string>;
142
- default: string;
143
- };
144
- selectAllText: {
145
- type: import("vue").PropType<string>;
146
- default: string;
147
- };
148
- cancelSelectAllText: {
149
- type: import("vue").PropType<string>;
150
- default: string;
151
- };
152
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue" | "update:show" | "confirm")[], "select" | "update:modelValue" | "update:show" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
153
- show: BooleanConstructor;
154
- type: {
155
- type: import("vue").PropType<import("./ActionSheetPanel").ActionSheetPanelType>;
156
- default: import("./ActionSheetPanel").ActionSheetPanelType;
157
- };
158
- title: StringConstructor;
159
- options: {
160
- type: import("vue").PropType<import("./ActionSheetPanel").ActionSheetPanelOption[]>;
161
- default: () => never[];
162
- };
163
- modelValue: import("vue").PropType<string | string[]>;
164
- confirmText: {
165
- type: import("vue").PropType<string>;
166
- default: string;
167
- };
168
- selectAllText: {
169
- type: import("vue").PropType<string>;
170
- default: string;
171
- };
172
- cancelSelectAllText: {
173
- type: import("vue").PropType<string>;
174
- default: string;
175
- };
176
- }>> & {
177
- onSelect?: ((...args: any[]) => any) | undefined;
178
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
179
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
180
- onConfirm?: ((...args: any[]) => any) | undefined;
181
- }, {
182
- type: import("./ActionSheetPanel").ActionSheetPanelType;
183
- show: boolean;
184
- options: import("./ActionSheetPanel").ActionSheetPanelOption[];
185
- confirmText: string;
186
- selectAllText: string;
187
- cancelSelectAllText: string;
188
- }>>;
189
128
  export default ActionSheet;
190
129
  export type { ActionSheetProps, ActionSheetAction } from './ActionSheet';
191
- export type { ActionSheetPanelProps, ActionSheetPanelType, ActionSheetPanelOption, } from './ActionSheetPanel';
192
130
  declare module 'vue' {
193
131
  interface GlobalComponents {
194
132
  VanActionSheet: typeof ActionSheet;
195
- VanActionSheetPanel: typeof ActionSheetPanel;
196
133
  }
197
134
  }
@@ -130,99 +130,3 @@
130
130
  line-height: inherit;
131
131
  }
132
132
  }
133
-
134
- .van-action-sheet-panel {
135
- box-sizing: border-box;
136
- display: flex;
137
- height: calc(100% - 96px);
138
- max-height: calc(100% - 96px);
139
- overflow: hidden;
140
- background: var(--van-gray-1);
141
-
142
- .van-action-sheet__content {
143
- display: flex;
144
- flex: 1;
145
- min-height: 0;
146
- overflow: hidden;
147
- }
148
-
149
- &__content {
150
- display: flex;
151
- flex: 1;
152
- flex-direction: column;
153
- min-height: 0;
154
- overflow: hidden;
155
- background: var(--van-gray-1);
156
- }
157
-
158
- &__nav-wrapper {
159
- flex: none;
160
- width: 100%;
161
- min-width: 0;
162
- max-width: 100%;
163
- overflow: hidden;
164
- }
165
-
166
- &__nav {
167
- box-sizing: border-box;
168
- width: 100%;
169
- min-width: 0;
170
- max-width: 100%;
171
- overflow: hidden;
172
- --van-nav-bar-background-color: var(--van-gray-1);
173
-
174
- .van-nav-bar__content {
175
- box-sizing: border-box;
176
- width: 100%;
177
- overflow: hidden;
178
- }
179
-
180
- .van-nav-bar__left--slot,
181
- .van-nav-bar__right--slot {
182
- padding: 0;
183
- }
184
-
185
- .van-nav-bar__left--slot {
186
- left: var(--van-padding-md);
187
- }
188
-
189
- .van-nav-bar__right--slot {
190
- right: var(--van-padding-md);
191
- }
192
- }
193
-
194
- &__body {
195
- flex: 1;
196
- min-height: 0;
197
- padding: 0 var(--van-padding-md);
198
- overflow-y: auto;
199
- }
200
-
201
- &__card {
202
- overflow: hidden;
203
- background: var(--van-white);
204
- border-radius: var(--van-radius-md);
205
- }
206
-
207
- &__footer {
208
- flex: none;
209
- padding: var(--van-padding-xs) 12px;
210
- background: var(--van-white);
211
- box-shadow: 0 3px 12px rgba(27, 33, 41, 0.12),
212
- 0 0.5px 3px rgba(27, 33, 41, 0.08);
213
- }
214
-
215
- &__select-all {
216
- color: var(--van-primary-color);
217
- font-weight: var(--van-font-weight-bold);
218
- font-size: var(--van-font-size-md);
219
- }
220
-
221
- .van-cell {
222
- min-height: 44px;
223
- }
224
-
225
- .van-checkbox {
226
- margin: 0;
227
- }
228
- }
@@ -1,11 +1,8 @@
1
1
  import { withInstall } from "../utils/index.mjs";
2
2
  import _ActionSheet from "./ActionSheet.mjs";
3
- import _ActionSheetPanel from "./ActionSheetPanel.mjs";
4
3
  const ActionSheet = withInstall(_ActionSheet);
5
- const ActionSheetPanel = withInstall(_ActionSheetPanel);
6
4
  var stdin_default = ActionSheet;
7
5
  export {
8
6
  ActionSheet,
9
- ActionSheetPanel,
10
7
  stdin_default as default
11
8
  };
@@ -2,14 +2,6 @@ import "../../style/base.css";
2
2
  import "../../badge/index.css";
3
3
  import "../../icon/index.css";
4
4
  import "../../loading/index.css";
5
- import "../../button/index.css";
6
5
  import "../../overlay/index.css";
7
6
  import "../../popup/index.css";
8
- import "../../popover/index.css";
9
- import "../../nav-bar/index.css";
10
- import "../../checkbox-group/index.css";
11
- import "../../checkbox/index.css";
12
- import "../../radio-group/index.css";
13
- import "../../radio/index.css";
14
- import "../../cell/index.css";
15
7
  import "../index.css";
@@ -2,14 +2,6 @@ import "../../style/base.less";
2
2
  import "../../badge/index.less";
3
3
  import "../../icon/index.less";
4
4
  import "../../loading/index.less";
5
- import "../../button/index.less";
6
5
  import "../../overlay/index.less";
7
6
  import "../../popup/index.less";
8
- import "../../popover/index.less";
9
- import "../../nav-bar/index.less";
10
- import "../../checkbox-group/index.less";
11
- import "../../checkbox/index.less";
12
- import "../../radio-group/index.less";
13
- import "../../radio/index.less";
14
- import "../../cell/index.less";
15
7
  import "../index.less";
@@ -0,0 +1,23 @@
1
+ import { type ExtractPropTypes } from 'vue';
2
+ import type { BackgroundTheme } from './types';
3
+ declare const backgroundProps: {
4
+ theme: {
5
+ type: import("vue").PropType<BackgroundTheme>;
6
+ default: BackgroundTheme;
7
+ };
8
+ };
9
+ export declare type BackgroundProps = ExtractPropTypes<typeof backgroundProps>;
10
+ declare const _default: import("vue").DefineComponent<{
11
+ theme: {
12
+ type: import("vue").PropType<BackgroundTheme>;
13
+ default: BackgroundTheme;
14
+ };
15
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
16
+ theme: {
17
+ type: import("vue").PropType<BackgroundTheme>;
18
+ default: BackgroundTheme;
19
+ };
20
+ }>>, {
21
+ theme: BackgroundTheme;
22
+ }>;
23
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { defineComponent, createVNode as _createVNode } from "vue";
2
+ import { createNamespace, makeStringProp } from "../utils/index.mjs";
3
+ const [name, bem] = createNamespace("background");
4
+ const backgroundProps = {
5
+ theme: makeStringProp("default")
6
+ };
7
+ var stdin_default = defineComponent({
8
+ name,
9
+ props: backgroundProps,
10
+ setup(props, {
11
+ slots
12
+ }) {
13
+ return () => {
14
+ var _a;
15
+ return _createVNode("div", {
16
+ "class": bem([props.theme])
17
+ }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
18
+ };
19
+ }
20
+ });
21
+ export {
22
+ stdin_default as default
23
+ };
@@ -0,0 +1 @@
1
+ :root{--van-background-min-height: 100vh;--van-background-color: var(--van-gray-1);--van-background-size: 100% auto;--van-background-position: top center}.van-background{min-height:var(--van-background-min-height);background-color:var(--van-background-color);background-position:var(--van-background-position);background-repeat:no-repeat;background-size:var(--van-background-size)}.van-background--default{--van-background-image: url(./assets/background-default.png)}.van-background--light{--van-background-image: url(./assets/background-light.png)}.van-background--solid{--van-background-color: #e4effd;--van-background-image: none}.van-background--gray{--van-background-color: var(--van-grey-200);--van-background-image: none}.van-background--style-1{--van-background-image: url(./assets/background-style-1.png)}.van-background--style-2{--van-background-image: url(./assets/background-style-2.png)}.van-background--style-3{--van-background-image: url(./assets/background-style-3.png)}.van-background,.van-background[style*=--van-background-image]{background-image:var(--van-background-image)}
@@ -0,0 +1,21 @@
1
+ export declare const Background: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ theme: {
3
+ type: import("vue").PropType<import("./types").BackgroundTheme>;
4
+ default: import("./types").BackgroundTheme;
5
+ };
6
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ theme: {
8
+ type: import("vue").PropType<import("./types").BackgroundTheme>;
9
+ default: import("./types").BackgroundTheme;
10
+ };
11
+ }>>, {
12
+ theme: import("./types").BackgroundTheme;
13
+ }>>;
14
+ export default Background;
15
+ export type { BackgroundProps } from './Background';
16
+ export type { BackgroundTheme } from './types';
17
+ declare module 'vue' {
18
+ interface GlobalComponents {
19
+ VanBackground: typeof Background;
20
+ }
21
+ }
@@ -0,0 +1,51 @@
1
+ @import './var.less';
2
+
3
+ :root {
4
+ --van-background-min-height: @background-min-height;
5
+ --van-background-color: @background-color;
6
+ --van-background-size: @background-size;
7
+ --van-background-position: @background-position;
8
+ }
9
+
10
+ .van-background {
11
+ min-height: var(--van-background-min-height);
12
+ background-color: var(--van-background-color);
13
+ background-position: var(--van-background-position);
14
+ background-repeat: no-repeat;
15
+ background-size: var(--van-background-size);
16
+
17
+ &--default {
18
+ --van-background-image: url('./assets/background-default.png');
19
+ }
20
+
21
+ &--light {
22
+ --van-background-image: url('./assets/background-light.png');
23
+ }
24
+
25
+ &--solid {
26
+ --van-background-color: #e4effd;
27
+ --van-background-image: none;
28
+ }
29
+
30
+ &--gray {
31
+ --van-background-color: var(--van-grey-200);
32
+ --van-background-image: none;
33
+ }
34
+
35
+ &--style-1 {
36
+ --van-background-image: url('./assets/background-style-1.png');
37
+ }
38
+
39
+ &--style-2 {
40
+ --van-background-image: url('./assets/background-style-2.png');
41
+ }
42
+
43
+ &--style-3 {
44
+ --van-background-image: url('./assets/background-style-3.png');
45
+ }
46
+
47
+ &,
48
+ &[style*='--van-background-image'] {
49
+ background-image: var(--van-background-image);
50
+ }
51
+ }
@@ -0,0 +1,8 @@
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Background from "./Background.mjs";
3
+ const Background = withInstall(_Background);
4
+ var stdin_default = Background;
5
+ export {
6
+ Background,
7
+ stdin_default as default
8
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import "../../style/base.css";
2
+ import "../index.css";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import "../../style/base.less";
2
+ import "../index.less";
@@ -0,0 +1 @@
1
+ export declare type BackgroundTheme = 'default' | 'light' | 'gray' | 'solid' | 'style-1' | 'style-2' | 'style-3';
File without changes
File without changes
@@ -0,0 +1,6 @@
1
+ @import '../style/var.less';
2
+
3
+ @background-min-height: 100vh;
4
+ @background-color: var(--van-gray-1);
5
+ @background-size: 100% auto;
6
+ @background-position: top center;
@@ -2,16 +2,8 @@ import "../../style/base.css";
2
2
  import "../../badge/index.css";
3
3
  import "../../icon/index.css";
4
4
  import "../../loading/index.css";
5
- import "../../button/index.css";
6
5
  import "../../overlay/index.css";
7
6
  import "../../popup/index.css";
8
- import "../../popover/index.css";
9
- import "../../nav-bar/index.css";
10
- import "../../checkbox-group/index.css";
11
- import "../../checkbox/index.css";
12
- import "../../radio-group/index.css";
13
- import "../../radio/index.css";
14
- import "../../cell/index.css";
15
7
  import "../../action-sheet/index.css";
16
8
  import "../../sticky/index.css";
17
9
  import "../../swipe/index.css";
@@ -2,16 +2,8 @@ import "../../style/base.less";
2
2
  import "../../badge/index.less";
3
3
  import "../../icon/index.less";
4
4
  import "../../loading/index.less";
5
- import "../../button/index.less";
6
5
  import "../../overlay/index.less";
7
6
  import "../../popup/index.less";
8
- import "../../popover/index.less";
9
- import "../../nav-bar/index.less";
10
- import "../../checkbox-group/index.less";
11
- import "../../checkbox/index.less";
12
- import "../../radio-group/index.less";
13
- import "../../radio/index.less";
14
- import "../../cell/index.less";
15
7
  import "../../action-sheet/index.less";
16
8
  import "../../sticky/index.less";
17
9
  import "../../swipe/index.less";
@@ -1,22 +1,17 @@
1
1
  import { type PropType, type ExtractPropTypes } from 'vue';
2
- export declare type ActionSheetPanelType = 'form' | 'radio' | 'checkbox';
3
- export declare type ActionSheetPanelOption = {
2
+ export declare type CheckboxPanelOption = {
4
3
  label: string;
5
4
  value: string;
6
5
  disabled?: boolean;
7
6
  };
8
- declare const actionSheetPanelProps: {
7
+ declare const checkboxPanelProps: {
9
8
  show: BooleanConstructor;
10
- type: {
11
- type: PropType<ActionSheetPanelType>;
12
- default: ActionSheetPanelType;
13
- };
14
9
  title: StringConstructor;
15
10
  options: {
16
- type: PropType<ActionSheetPanelOption[]>;
11
+ type: PropType<CheckboxPanelOption[]>;
17
12
  default: () => never[];
18
13
  };
19
- modelValue: PropType<string | string[]>;
14
+ modelValue: PropType<string[]>;
20
15
  confirmText: {
21
16
  type: PropType<string>;
22
17
  default: string;
@@ -30,19 +25,15 @@ declare const actionSheetPanelProps: {
30
25
  default: string;
31
26
  };
32
27
  };
33
- export declare type ActionSheetPanelProps = ExtractPropTypes<typeof actionSheetPanelProps>;
28
+ export declare type CheckboxPanelProps = ExtractPropTypes<typeof checkboxPanelProps>;
34
29
  declare const _default: import("vue").DefineComponent<{
35
30
  show: BooleanConstructor;
36
- type: {
37
- type: PropType<ActionSheetPanelType>;
38
- default: ActionSheetPanelType;
39
- };
40
31
  title: StringConstructor;
41
32
  options: {
42
- type: PropType<ActionSheetPanelOption[]>;
33
+ type: PropType<CheckboxPanelOption[]>;
43
34
  default: () => never[];
44
35
  };
45
- modelValue: PropType<string | string[]>;
36
+ modelValue: PropType<string[]>;
46
37
  confirmText: {
47
38
  type: PropType<string>;
48
39
  default: string;
@@ -55,18 +46,14 @@ declare const _default: import("vue").DefineComponent<{
55
46
  type: PropType<string>;
56
47
  default: string;
57
48
  };
58
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue" | "update:show" | "confirm")[], "select" | "update:modelValue" | "update:show" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
49
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:show" | "confirm")[], "update:modelValue" | "update:show" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
59
50
  show: BooleanConstructor;
60
- type: {
61
- type: PropType<ActionSheetPanelType>;
62
- default: ActionSheetPanelType;
63
- };
64
51
  title: StringConstructor;
65
52
  options: {
66
- type: PropType<ActionSheetPanelOption[]>;
53
+ type: PropType<CheckboxPanelOption[]>;
67
54
  default: () => never[];
68
55
  };
69
- modelValue: PropType<string | string[]>;
56
+ modelValue: PropType<string[]>;
70
57
  confirmText: {
71
58
  type: PropType<string>;
72
59
  default: string;
@@ -80,14 +67,12 @@ declare const _default: import("vue").DefineComponent<{
80
67
  default: string;
81
68
  };
82
69
  }>> & {
83
- onSelect?: ((...args: any[]) => any) | undefined;
84
70
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
85
71
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
86
72
  onConfirm?: ((...args: any[]) => any) | undefined;
87
73
  }, {
88
- type: ActionSheetPanelType;
89
74
  show: boolean;
90
- options: ActionSheetPanelOption[];
75
+ options: CheckboxPanelOption[];
91
76
  confirmText: string;
92
77
  selectAllText: string;
93
78
  cancelSelectAllText: string;
@@ -0,0 +1,100 @@
1
+ import { computed, defineComponent, createVNode as _createVNode } from "vue";
2
+ import { createNamespace, makeArrayProp, makeStringProp } from "../utils/index.mjs";
3
+ import { ActionSheet } from "../action-sheet/index.mjs";
4
+ import { NavBar } from "../nav-bar/index.mjs";
5
+ import { Icon } from "../icon/index.mjs";
6
+ import { Cell } from "../cell/index.mjs";
7
+ import { Checkbox } from "../checkbox/index.mjs";
8
+ import { CheckboxGroup } from "../checkbox-group/index.mjs";
9
+ import { Button } from "../button/index.mjs";
10
+ const [name, bem] = createNamespace("checkbox-panel");
11
+ const checkboxPanelProps = {
12
+ show: Boolean,
13
+ title: String,
14
+ options: makeArrayProp(),
15
+ modelValue: Array,
16
+ confirmText: makeStringProp("\u786E\u5B9A"),
17
+ selectAllText: makeStringProp("\u5168\u9009"),
18
+ cancelSelectAllText: makeStringProp("\u53D6\u6D88\u5168\u9009")
19
+ };
20
+ var stdin_default = defineComponent({
21
+ name,
22
+ props: checkboxPanelProps,
23
+ emits: ["update:show", "update:modelValue", "confirm"],
24
+ setup(props, {
25
+ emit
26
+ }) {
27
+ const selectedValues = computed(() => props.modelValue || []);
28
+ const selectableOptions = computed(() => props.options.filter((option) => !option.disabled));
29
+ const isAllSelected = computed(() => selectableOptions.value.length > 0 && selectableOptions.value.every((option) => selectedValues.value.includes(option.value)));
30
+ const close = () => emit("update:show", false);
31
+ const toggleOption = (option) => {
32
+ if (option.disabled)
33
+ return;
34
+ const values = [...selectedValues.value];
35
+ const index = values.indexOf(option.value);
36
+ index === -1 ? values.push(option.value) : values.splice(index, 1);
37
+ emit("update:modelValue", values);
38
+ };
39
+ const toggleAll = () => emit("update:modelValue", isAllSelected.value ? [] : selectableOptions.value.map((option) => option.value));
40
+ const confirm = () => {
41
+ emit("confirm", selectedValues.value);
42
+ close();
43
+ };
44
+ return () => _createVNode(ActionSheet, {
45
+ "show": props.show,
46
+ "class": bem(),
47
+ "onUpdate:show": (show) => emit("update:show", show)
48
+ }, {
49
+ default: () => [_createVNode("div", {
50
+ "class": bem("content")
51
+ }, [_createVNode("div", {
52
+ "class": bem("nav-wrapper")
53
+ }, [_createVNode(NavBar, {
54
+ "title": props.title,
55
+ "border": false,
56
+ "class": bem("nav")
57
+ }, {
58
+ left: () => _createVNode(Icon, {
59
+ "name": "cross",
60
+ "size": "22",
61
+ "onClick": close
62
+ }, null),
63
+ right: () => _createVNode("span", {
64
+ "class": bem("select-all"),
65
+ "onClick": toggleAll
66
+ }, [isAllSelected.value ? props.cancelSelectAllText : props.selectAllText])
67
+ })]), _createVNode("div", {
68
+ "class": bem("body")
69
+ }, [_createVNode(CheckboxGroup, {
70
+ "modelValue": selectedValues.value,
71
+ "class": bem("card"),
72
+ "onUpdate:modelValue": (value) => emit("update:modelValue", value)
73
+ }, {
74
+ default: () => [props.options.map((option) => _createVNode(Cell, {
75
+ "key": option.value,
76
+ "clickable": !option.disabled,
77
+ "title": option.label,
78
+ "onClick": () => toggleOption(option)
79
+ }, {
80
+ "right-icon": () => _createVNode(Checkbox, {
81
+ "name": option.value,
82
+ "disabled": option.disabled,
83
+ "onClick": (event) => event.stopPropagation()
84
+ }, null)
85
+ }))]
86
+ })]), _createVNode("div", {
87
+ "class": bem("footer")
88
+ }, [_createVNode(Button, {
89
+ "block": true,
90
+ "type": "primary",
91
+ "onClick": confirm
92
+ }, {
93
+ default: () => [props.confirmText]
94
+ })])])]
95
+ });
96
+ }
97
+ });
98
+ export {
99
+ stdin_default as default
100
+ };
@@ -0,0 +1 @@
1
+ .van-checkbox-panel{box-sizing:border-box;display:flex;height:calc(100% - 96px);max-height:calc(100% - 96px);overflow:hidden;background:var(--van-gray-1)}.van-checkbox-panel .van-action-sheet__content{display:flex;flex:1;min-height:0;overflow:hidden}.van-checkbox-panel__content{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;background:var(--van-gray-1)}.van-checkbox-panel__nav-wrapper{flex:none;width:100%;min-width:0;max-width:100%;overflow:hidden}.van-checkbox-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-checkbox-panel__nav .van-nav-bar__content{box-sizing:border-box;width:100%;overflow:hidden}.van-checkbox-panel__nav .van-nav-bar__left--slot,.van-checkbox-panel__nav .van-nav-bar__right--slot{padding:0}.van-checkbox-panel__nav .van-nav-bar__left--slot{left:var(--van-padding-md)}.van-checkbox-panel__nav .van-nav-bar__right--slot{right:var(--van-padding-md)}.van-checkbox-panel__body{flex:1;min-height:0;padding:0 var(--van-padding-md);overflow-y:auto}.van-checkbox-panel__card{overflow:hidden;background:var(--van-white);border-radius:var(--van-border-radius-lg)}.van-checkbox-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-checkbox-panel__select-all{color:var(--van-primary-color);font-weight:var(--van-font-weight-bold);font-size:var(--van-font-size-md)}.van-checkbox-panel .van-cell{min-height:44px}.van-checkbox-panel .van-checkbox{margin:0}