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
@@ -43,13 +43,13 @@
43
43
  &__action {
44
44
  position: relative;
45
45
  display: flex;
46
- align-items: center;
46
+ align-items: flex-start;
47
47
  box-sizing: border-box;
48
48
  width: var(--van-popover-action-width);
49
- height: var(--van-popover-action-height);
49
+ min-height: var(--van-popover-action-height);
50
50
  padding: 0 var(--van-padding-md);
51
51
  font-size: var(--van-popover-action-font-size);
52
- line-height: var(--van-line-height-md);
52
+ line-height: var(--van-popover-action-line-height);
53
53
  cursor: pointer;
54
54
 
55
55
  &:last-child {
@@ -61,12 +61,19 @@
61
61
  &-text {
62
62
  display: flex;
63
63
  flex: 1;
64
- align-items: center;
64
+ align-items: flex-start;
65
+ box-sizing: border-box;
65
66
  justify-content: center;
66
- height: 100%;
67
+ min-height: var(--van-popover-action-height);
68
+ padding: var(--van-padding-sm) 0;
67
69
  }
68
70
 
69
71
  &-icon {
72
+ display: flex;
73
+ flex: none;
74
+ align-items: center;
75
+ height: var(--van-popover-action-line-height);
76
+ margin-top: var(--van-padding-sm);
70
77
  margin-right: var(--van-padding-xs);
71
78
  font-size: var(--van-popover-action-icon-size);
72
79
  }
@@ -6,7 +6,7 @@
6
6
  @popover-action-height: 44px;
7
7
  @popover-action-font-size: var(--van-font-size-md);
8
8
  @popover-action-line-height: var(--van-line-height-md);
9
- @popover-action-icon-size: 20px;
9
+ @popover-action-icon-size: 18px;
10
10
  @popover-light-text-color: var(--van-text-color);
11
11
  @popover-light-background-color: var(--van-background-color-light);
12
12
  @popover-light-action-disabled-text-color: var(--van-text-color-3);
@@ -90,9 +90,9 @@ declare const _default: import("vue").DefineComponent<{
90
90
  }, {
91
91
  modelValue: number[];
92
92
  expanded: boolean;
93
- confirmText: string;
94
93
  expandText: string;
95
94
  collapseText: string;
95
+ confirmText: string;
96
96
  items: QuantityInputItem[];
97
97
  clearText: string;
98
98
  }>;
@@ -58,9 +58,9 @@ export declare const QuantityInput: import("../utils").WithInstall<import("vue")
58
58
  }, {
59
59
  modelValue: number[];
60
60
  expanded: boolean;
61
- confirmText: string;
62
61
  expandText: string;
63
62
  collapseText: string;
63
+ confirmText: string;
64
64
  items: import("./QuantityInput").QuantityInputItem[];
65
65
  clearText: string;
66
66
  }>>;
@@ -124,9 +124,9 @@ export declare const BatchMultiSelect: import("../utils").WithInstall<import("vu
124
124
  }, {
125
125
  modelValue: number[];
126
126
  expanded: boolean;
127
- confirmText: string;
128
127
  expandText: string;
129
128
  collapseText: string;
129
+ confirmText: string;
130
130
  items: import("./QuantityInput").QuantityInputItem[];
131
131
  clearText: string;
132
132
  }>>;
@@ -0,0 +1,41 @@
1
+ import { type PropType, type ExtractPropTypes } from 'vue';
2
+ export declare type RadioPanelOption = {
3
+ label: string;
4
+ value: string;
5
+ disabled?: boolean;
6
+ };
7
+ declare const radioPanelProps: {
8
+ show: BooleanConstructor;
9
+ title: StringConstructor;
10
+ options: {
11
+ type: PropType<RadioPanelOption[]>;
12
+ default: () => never[];
13
+ };
14
+ modelValue: PropType<string>;
15
+ };
16
+ export declare type RadioPanelProps = ExtractPropTypes<typeof radioPanelProps>;
17
+ declare const _default: import("vue").DefineComponent<{
18
+ show: BooleanConstructor;
19
+ title: StringConstructor;
20
+ options: {
21
+ type: PropType<RadioPanelOption[]>;
22
+ default: () => never[];
23
+ };
24
+ 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<{
26
+ show: BooleanConstructor;
27
+ title: StringConstructor;
28
+ options: {
29
+ type: PropType<RadioPanelOption[]>;
30
+ default: () => never[];
31
+ };
32
+ modelValue: PropType<string>;
33
+ }>> & {
34
+ onSelect?: ((...args: any[]) => any) | undefined;
35
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
36
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
37
+ }, {
38
+ show: boolean;
39
+ options: RadioPanelOption[];
40
+ }>;
41
+ export default _default;
@@ -0,0 +1,83 @@
1
+ import { defineComponent, createVNode as _createVNode } from "vue";
2
+ import { createNamespace, makeArrayProp } 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 { Radio } from "../radio/index.mjs";
8
+ import { RadioGroup } from "../radio-group/index.mjs";
9
+ const [name, bem] = createNamespace("radio-panel");
10
+ const radioPanelProps = {
11
+ show: Boolean,
12
+ title: String,
13
+ options: makeArrayProp(),
14
+ modelValue: String
15
+ };
16
+ var stdin_default = defineComponent({
17
+ name,
18
+ props: radioPanelProps,
19
+ emits: ["update:show", "update:modelValue", "select"],
20
+ setup(props, {
21
+ emit
22
+ }) {
23
+ const close = () => emit("update:show", false);
24
+ const select = (option) => {
25
+ if (option.disabled)
26
+ return;
27
+ emit("update:modelValue", option.value);
28
+ emit("select", option.value);
29
+ close();
30
+ };
31
+ return () => _createVNode(ActionSheet, {
32
+ "show": props.show,
33
+ "class": bem(),
34
+ "onUpdate:show": (show) => emit("update:show", show)
35
+ }, {
36
+ default: () => [_createVNode("div", {
37
+ "class": bem("content")
38
+ }, [_createVNode("div", {
39
+ "class": bem("nav-wrapper")
40
+ }, [_createVNode(NavBar, {
41
+ "title": props.title,
42
+ "border": false,
43
+ "class": bem("nav")
44
+ }, {
45
+ left: () => _createVNode(Icon, {
46
+ "name": "cross",
47
+ "size": "22",
48
+ "onClick": close
49
+ }, null)
50
+ })]), _createVNode("div", {
51
+ "class": bem("body")
52
+ }, [_createVNode("div", {
53
+ "class": bem("card")
54
+ }, [_createVNode(RadioGroup, {
55
+ "modelValue": props.modelValue,
56
+ "onUpdate:modelValue": (value) => {
57
+ const option = props.options.find((item) => item.value === value);
58
+ if (option)
59
+ select(option);
60
+ }
61
+ }, {
62
+ default: () => [props.options.map((option) => _createVNode(Cell, {
63
+ "key": option.value,
64
+ "clickable": !option.disabled,
65
+ "title": option.label,
66
+ "titleStyle": {
67
+ color: props.modelValue === option.value ? "var(--van-primary-color)" : void 0
68
+ },
69
+ "onClick": () => select(option)
70
+ }, {
71
+ "right-icon": () => _createVNode(Radio, {
72
+ "name": option.value,
73
+ "disabled": option.disabled,
74
+ "onClick": (event) => event.stopPropagation()
75
+ }, null)
76
+ }))]
77
+ })])])])]
78
+ });
79
+ }
80
+ });
81
+ export {
82
+ stdin_default as default
83
+ };
@@ -0,0 +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}
@@ -0,0 +1,31 @@
1
+ export declare const RadioPanel: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ show: BooleanConstructor;
3
+ title: StringConstructor;
4
+ options: {
5
+ type: import("vue").PropType<import("./RadioPanel").RadioPanelOption[]>;
6
+ default: () => never[];
7
+ };
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<{
10
+ show: BooleanConstructor;
11
+ title: StringConstructor;
12
+ options: {
13
+ type: import("vue").PropType<import("./RadioPanel").RadioPanelOption[]>;
14
+ default: () => never[];
15
+ };
16
+ modelValue: import("vue").PropType<string>;
17
+ }>> & {
18
+ onSelect?: ((...args: any[]) => any) | undefined;
19
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
20
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
21
+ }, {
22
+ show: boolean;
23
+ options: import("./RadioPanel").RadioPanelOption[];
24
+ }>>;
25
+ export default RadioPanel;
26
+ export type { RadioPanelProps, RadioPanelOption } from './RadioPanel';
27
+ declare module 'vue' {
28
+ interface GlobalComponents {
29
+ VanRadioPanel: typeof RadioPanel;
30
+ }
31
+ }
@@ -0,0 +1,26 @@
1
+ .van-radio-panel {
2
+ box-sizing: border-box;
3
+ display: flex;
4
+ height: calc(100% - 96px);
5
+ max-height: calc(100% - 96px);
6
+ overflow: hidden;
7
+ background: var(--van-gray-1);
8
+
9
+ .van-action-sheet__content { display: flex; flex: 1; min-height: 0; overflow: hidden; }
10
+ &__content { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; background: var(--van-gray-1); }
11
+ &__nav-wrapper { flex: none; width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
12
+ &__nav {
13
+ box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; overflow: hidden;
14
+ --van-nav-bar-background-color: var(--van-gray-1);
15
+ .van-nav-bar__content { box-sizing: border-box; width: 100%; overflow: hidden; }
16
+ .van-nav-bar__left--slot, .van-nav-bar__right--slot { padding: 0; }
17
+ .van-nav-bar__left--slot { left: var(--van-padding-md); }
18
+ .van-nav-bar__right--slot { right: var(--van-padding-md); }
19
+ }
20
+ &__body { flex: 1; min-height: 0; padding: 0 var(--van-padding-md); overflow-y: auto; }
21
+ &__card { overflow: hidden; background: var(--van-white); border-radius: var(--van-border-radius-lg); }
22
+ &__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); }
23
+ &__select-all { color: var(--van-primary-color); font-weight: var(--van-font-weight-bold); font-size: var(--van-font-size-md); }
24
+ .van-cell { min-height: 44px; }
25
+ .van-checkbox { margin: 0; }
26
+ }
@@ -0,0 +1,8 @@
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _RadioPanel from "./RadioPanel.mjs";
3
+ const RadioPanel = withInstall(_RadioPanel);
4
+ var stdin_default = RadioPanel;
5
+ export {
6
+ RadioPanel,
7
+ stdin_default as default
8
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import "../../style/base.css";
2
+ import "../../badge/index.css";
3
+ import "../../icon/index.css";
4
+ import "../../loading/index.css";
5
+ import "../../overlay/index.css";
6
+ import "../../popup/index.css";
7
+ import "../../popover/index.css";
8
+ import "../../nav-bar/index.css";
9
+ import "../../action-sheet/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
+ import "../index.css";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import "../../style/base.less";
2
+ import "../../badge/index.less";
3
+ import "../../icon/index.less";
4
+ import "../../loading/index.less";
5
+ import "../../overlay/index.less";
6
+ import "../../popup/index.less";
7
+ import "../../popover/index.less";
8
+ import "../../nav-bar/index.less";
9
+ import "../../action-sheet/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
+ import "../index.less";
package/es/rate/Rate.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type ExtractPropTypes } from 'vue';
2
- declare const rateProps: {
2
+ export declare const rateProps: {
3
3
  size: (NumberConstructor | StringConstructor)[];
4
4
  icon: {
5
5
  type: import("vue").PropType<string>;
package/es/rate/Rate.mjs CHANGED
@@ -214,5 +214,6 @@ var stdin_default = defineComponent({
214
214
  }
215
215
  });
216
216
  export {
217
- stdin_default as default
217
+ stdin_default as default,
218
+ rateProps
218
219
  };
@@ -0,0 +1,196 @@
1
+ import { type ExtractPropTypes, type PropType } from 'vue';
2
+ export declare type RateCellLayout = 'default' | 'between';
3
+ declare const rateCellProps: {
4
+ size: (NumberConstructor | StringConstructor)[];
5
+ icon: {
6
+ type: PropType<string>;
7
+ default: string;
8
+ };
9
+ color: StringConstructor;
10
+ count: {
11
+ type: (NumberConstructor | StringConstructor)[];
12
+ default: number;
13
+ };
14
+ gutter: (NumberConstructor | StringConstructor)[];
15
+ readonly: BooleanConstructor;
16
+ disabled: BooleanConstructor;
17
+ voidIcon: {
18
+ type: PropType<string>;
19
+ default: string;
20
+ };
21
+ allowHalf: BooleanConstructor;
22
+ voidColor: StringConstructor;
23
+ touchable: {
24
+ type: BooleanConstructor;
25
+ default: true;
26
+ };
27
+ iconPrefix: StringConstructor;
28
+ modelValue: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
32
+ disabledColor: StringConstructor;
33
+ } & {
34
+ size: {
35
+ type: (NumberConstructor | StringConstructor)[];
36
+ default: number;
37
+ };
38
+ gutter: {
39
+ type: (NumberConstructor | StringConstructor)[];
40
+ default: number;
41
+ };
42
+ title: {
43
+ type: PropType<string>;
44
+ default: string;
45
+ };
46
+ required: BooleanConstructor;
47
+ description: StringConstructor;
48
+ showDescription: {
49
+ type: BooleanConstructor;
50
+ default: true;
51
+ };
52
+ layout: {
53
+ type: PropType<RateCellLayout>;
54
+ default: RateCellLayout;
55
+ };
56
+ border: {
57
+ type: BooleanConstructor;
58
+ default: true;
59
+ };
60
+ };
61
+ export declare type RateCellProps = ExtractPropTypes<typeof rateCellProps>;
62
+ declare const _default: import("vue").DefineComponent<{
63
+ size: (NumberConstructor | StringConstructor)[];
64
+ icon: {
65
+ type: PropType<string>;
66
+ default: string;
67
+ };
68
+ color: StringConstructor;
69
+ count: {
70
+ type: (NumberConstructor | StringConstructor)[];
71
+ default: number;
72
+ };
73
+ gutter: (NumberConstructor | StringConstructor)[];
74
+ readonly: BooleanConstructor;
75
+ disabled: BooleanConstructor;
76
+ voidIcon: {
77
+ type: PropType<string>;
78
+ default: string;
79
+ };
80
+ allowHalf: BooleanConstructor;
81
+ voidColor: StringConstructor;
82
+ touchable: {
83
+ type: BooleanConstructor;
84
+ default: true;
85
+ };
86
+ iconPrefix: StringConstructor;
87
+ modelValue: {
88
+ type: NumberConstructor;
89
+ default: number;
90
+ };
91
+ disabledColor: StringConstructor;
92
+ } & {
93
+ size: {
94
+ type: (NumberConstructor | StringConstructor)[];
95
+ default: number;
96
+ };
97
+ gutter: {
98
+ type: (NumberConstructor | StringConstructor)[];
99
+ default: number;
100
+ };
101
+ title: {
102
+ type: PropType<string>;
103
+ default: string;
104
+ };
105
+ required: BooleanConstructor;
106
+ description: StringConstructor;
107
+ showDescription: {
108
+ type: BooleanConstructor;
109
+ default: true;
110
+ };
111
+ layout: {
112
+ type: PropType<RateCellLayout>;
113
+ default: RateCellLayout;
114
+ };
115
+ border: {
116
+ type: BooleanConstructor;
117
+ default: true;
118
+ };
119
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
120
+ size: (NumberConstructor | StringConstructor)[];
121
+ icon: {
122
+ type: PropType<string>;
123
+ default: string;
124
+ };
125
+ color: StringConstructor;
126
+ count: {
127
+ type: (NumberConstructor | StringConstructor)[];
128
+ default: number;
129
+ };
130
+ gutter: (NumberConstructor | StringConstructor)[];
131
+ readonly: BooleanConstructor;
132
+ disabled: BooleanConstructor;
133
+ voidIcon: {
134
+ type: PropType<string>;
135
+ default: string;
136
+ };
137
+ allowHalf: BooleanConstructor;
138
+ voidColor: StringConstructor;
139
+ touchable: {
140
+ type: BooleanConstructor;
141
+ default: true;
142
+ };
143
+ iconPrefix: StringConstructor;
144
+ modelValue: {
145
+ type: NumberConstructor;
146
+ default: number;
147
+ };
148
+ disabledColor: StringConstructor;
149
+ } & {
150
+ size: {
151
+ type: (NumberConstructor | StringConstructor)[];
152
+ default: number;
153
+ };
154
+ gutter: {
155
+ type: (NumberConstructor | StringConstructor)[];
156
+ default: number;
157
+ };
158
+ title: {
159
+ type: PropType<string>;
160
+ default: string;
161
+ };
162
+ required: BooleanConstructor;
163
+ description: StringConstructor;
164
+ showDescription: {
165
+ type: BooleanConstructor;
166
+ default: true;
167
+ };
168
+ layout: {
169
+ type: PropType<RateCellLayout>;
170
+ default: RateCellLayout;
171
+ };
172
+ border: {
173
+ type: BooleanConstructor;
174
+ default: true;
175
+ };
176
+ }>> & {
177
+ onChange?: ((...args: any[]) => any) | undefined;
178
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
179
+ }, {
180
+ required: boolean;
181
+ title: string;
182
+ icon: string;
183
+ size: string | number;
184
+ border: boolean;
185
+ disabled: boolean;
186
+ modelValue: number;
187
+ readonly: boolean;
188
+ layout: RateCellLayout;
189
+ touchable: boolean;
190
+ count: string | number;
191
+ gutter: string | number;
192
+ voidIcon: string;
193
+ allowHalf: boolean;
194
+ showDescription: boolean;
195
+ }>;
196
+ export default _default;
@@ -0,0 +1,60 @@
1
+ import { defineComponent, createVNode as _createVNode } from "vue";
2
+ import { createNamespace, extend, makeNumericProp, makeStringProp, truthProp } from "../utils/index.mjs";
3
+ import { Cell } from "../cell/index.mjs";
4
+ import Rate, { rateProps } from "./Rate.mjs";
5
+ const [name, bem] = createNamespace("rate-cell");
6
+ const rateCellProps = extend({}, rateProps, {
7
+ size: makeNumericProp(22),
8
+ gutter: makeNumericProp(6),
9
+ title: makeStringProp("\u670D\u52A1\u6EE1\u610F\u5EA6"),
10
+ required: Boolean,
11
+ description: String,
12
+ showDescription: truthProp,
13
+ layout: {
14
+ type: String,
15
+ default: "default"
16
+ },
17
+ border: truthProp
18
+ });
19
+ var stdin_default = defineComponent({
20
+ name,
21
+ props: rateCellProps,
22
+ emits: ["change", "update:modelValue"],
23
+ setup(props, {
24
+ emit
25
+ }) {
26
+ const renderRate = () => _createVNode(Rate, {
27
+ "modelValue": props.modelValue,
28
+ "size": props.size,
29
+ "icon": props.icon,
30
+ "color": props.color,
31
+ "count": props.count,
32
+ "gutter": props.gutter,
33
+ "readonly": props.readonly,
34
+ "disabled": props.disabled,
35
+ "voidIcon": props.voidIcon,
36
+ "allowHalf": props.allowHalf,
37
+ "voidColor": props.voidColor,
38
+ "touchable": props.touchable,
39
+ "iconPrefix": props.iconPrefix,
40
+ "disabledColor": props.disabledColor,
41
+ "onChange": (value) => emit("change", value),
42
+ "onUpdate:modelValue": (value) => emit("update:modelValue", value)
43
+ }, null);
44
+ return () => _createVNode(Cell, {
45
+ "title": props.title,
46
+ "required": props.required,
47
+ "border": props.border,
48
+ "class": bem(props.layout)
49
+ }, {
50
+ value: () => _createVNode("div", {
51
+ "class": bem("content")
52
+ }, [renderRate(), props.layout === "default" && props.showDescription && props.description && _createVNode("span", {
53
+ "class": bem("description")
54
+ }, [props.description])])
55
+ });
56
+ }
57
+ });
58
+ export {
59
+ stdin_default as default
60
+ };
package/es/rate/index.css CHANGED
@@ -1 +1 @@
1
- :root{--van-rate-icon-size: 20px;--van-rate-icon-gutter: var(--van-padding-base);--van-rate-icon-void-color: var(--van-gray-5);--van-rate-icon-full-color: var(--van-primary-color);--van-rate-icon-disabled-color: var(--van-gray-5)}.van-rate{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap}.van-rate__item{position:relative}.van-rate__item:not(:last-child){padding-right:var(--van-rate-icon-gutter)}.van-rate__icon{display:block;width:1em;color:var(--van-rate-icon-void-color);font-size:var(--van-rate-icon-size)}.van-rate__icon--half{position:absolute;top:0;left:0;overflow:hidden}.van-rate__icon--full{color:var(--van-rate-icon-full-color)}.van-rate__icon--disabled{color:var(--van-rate-icon-disabled-color)}.van-rate--disabled{cursor:not-allowed}.van-rate--readonly{cursor:default}
1
+ :root{--van-rate-icon-size: 20px;--van-rate-icon-gutter: var(--van-padding-base);--van-rate-icon-void-color: var(--van-gray-5);--van-rate-icon-full-color: var(--van-orange-500);--van-rate-icon-disabled-color: var(--van-gray-5)}.van-rate{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap}.van-rate__item{position:relative}.van-rate__item:not(:last-child){padding-right:var(--van-rate-icon-gutter)}.van-rate__icon{display:block;width:1em;color:var(--van-rate-icon-void-color);font-size:var(--van-rate-icon-size)}.van-rate__icon--half{position:absolute;top:0;left:0;overflow:hidden}.van-rate__icon--full{color:var(--van-rate-icon-full-color)}.van-rate__icon--disabled{color:var(--van-rate-icon-disabled-color)}.van-rate--disabled{cursor:not-allowed}.van-rate--readonly{cursor:default}.van-rate-cell__content{display:flex;align-items:center}.van-rate-cell--default .van-cell__title{flex:none}.van-rate-cell--default .van-cell__value{display:flex;align-items:center;margin-left:var(--van-padding-sm);text-align:left}.van-rate-cell__description{margin-left:var(--van-padding-sm);color:var(--van-text-color-2);font-size:var(--van-font-size-md);line-height:var(--van-cell-line-height);white-space:nowrap}.van-rate-cell--between .van-cell__value{display:flex;justify-content:flex-end}