persagy-vant 0.0.38 → 0.0.39

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 (292) hide show
  1. package/es/action-sheet/ActionSheet.d.ts +3 -15
  2. package/es/action-sheet/ActionSheet.mjs +22 -11
  3. package/es/action-sheet/index.css +1 -1
  4. package/es/action-sheet/index.d.ts +2 -11
  5. package/es/action-sheet/index.less +31 -17
  6. package/es/action-sheet/style/index.mjs +2 -0
  7. package/es/action-sheet/style/less.mjs +2 -0
  8. package/es/action-sheet/var.less +1 -4
  9. package/es/address-edit/AddressEditDetail.d.ts +1 -1
  10. package/es/address-edit/style/index.mjs +1 -0
  11. package/es/address-edit/style/less.mjs +1 -0
  12. package/es/button/Button.d.ts +4 -1
  13. package/es/button/Button.mjs +21 -1
  14. package/es/button/index.css +1 -1
  15. package/es/button/index.d.ts +3 -1
  16. package/es/button/index.less +11 -5
  17. package/es/calendar/Calendar.d.ts +1 -1
  18. package/es/calendar/index.d.ts +1 -1
  19. package/es/cascader/Cascader.d.ts +1 -1
  20. package/es/cascader/index.d.ts +1 -1
  21. package/es/cascader/style/index.mjs +2 -0
  22. package/es/cascader/style/less.mjs +2 -0
  23. package/es/cell/Cell.d.ts +305 -1
  24. package/es/cell/Cell.mjs +238 -19
  25. package/es/cell/index.css +1 -1
  26. package/es/cell/index.d.ts +165 -1
  27. package/es/cell/index.less +77 -0
  28. package/es/cell/style/index.mjs +1 -0
  29. package/es/cell/style/less.mjs +1 -0
  30. package/es/checkbox-panel/index.css +1 -1
  31. package/es/checkbox-panel/index.less +1 -1
  32. package/es/checkbox-panel/style/index.mjs +1 -0
  33. package/es/checkbox-panel/style/less.mjs +1 -0
  34. package/es/collapse-item/CollapseItem.d.ts +230 -0
  35. package/es/collapse-item/index.d.ts +160 -0
  36. package/es/collapse-item/style/index.mjs +1 -0
  37. package/es/collapse-item/style/less.mjs +1 -0
  38. package/es/contact-card/style/index.mjs +1 -0
  39. package/es/contact-card/style/less.mjs +1 -0
  40. package/es/contact-edit/style/index.mjs +1 -0
  41. package/es/contact-edit/style/less.mjs +1 -0
  42. package/es/content-panel/index.css +1 -1
  43. package/es/content-panel/index.less +2 -0
  44. package/es/coupon-cell/style/index.mjs +1 -0
  45. package/es/coupon-cell/style/less.mjs +1 -0
  46. package/es/coupon-list/style/index.mjs +3 -0
  47. package/es/coupon-list/style/less.mjs +3 -0
  48. package/es/dialog/Dialog.d.ts +1 -1
  49. package/es/dialog/function-call.d.ts +1 -1
  50. package/es/dialog/style/index.mjs +1 -0
  51. package/es/dialog/style/less.mjs +1 -0
  52. package/es/dropdown-item/DropdownItem.d.ts +2 -2
  53. package/es/dropdown-item/index.d.ts +2 -2
  54. package/es/dropdown-item/style/index.mjs +1 -0
  55. package/es/dropdown-item/style/less.mjs +1 -0
  56. package/es/field/Field.d.ts +230 -0
  57. package/es/field/index.d.ts +160 -0
  58. package/es/field/style/index.mjs +1 -0
  59. package/es/field/style/less.mjs +1 -0
  60. package/es/floor-select/style/index.mjs +3 -0
  61. package/es/floor-select/style/less.mjs +3 -0
  62. package/es/form-panel/index.css +1 -1
  63. package/es/form-panel/index.less +2 -0
  64. package/es/image-preview/ImagePreview.d.ts +2 -2
  65. package/es/image-preview/function-call.d.ts +2 -2
  66. package/es/index.d.ts +1 -1
  67. package/es/index.mjs +1 -1
  68. package/es/info-card/InfoCard.d.ts +1 -1
  69. package/es/info-card/index.d.ts +1 -1
  70. package/es/label/index.css +1 -1
  71. package/es/label/index.less +4 -0
  72. package/es/label/var.less +1 -0
  73. package/es/location-select/index.css +1 -1
  74. package/es/location-select/index.less +1 -1
  75. package/es/location-select/style/index.mjs +1 -0
  76. package/es/location-select/style/less.mjs +1 -0
  77. package/es/material-action-bar/MaterialActionBar.d.ts +9 -0
  78. package/es/material-action-bar/MaterialActionBar.mjs +5 -2
  79. package/es/material-action-bar/index.d.ts +18 -0
  80. package/es/material-add/index.css +1 -1
  81. package/es/material-add/index.less +1 -1
  82. package/es/material-add/style/index.mjs +1 -1
  83. package/es/material-add/style/less.mjs +1 -1
  84. package/es/material-display-bar/MaterialDisplayBar.d.ts +3 -3
  85. package/es/material-display-bar/index.d.ts +9 -9
  86. package/es/multi-person-select/index.css +1 -1
  87. package/es/multi-person-select/index.less +1 -1
  88. package/es/multi-person-select/style/index.mjs +1 -0
  89. package/es/multi-person-select/style/less.mjs +1 -0
  90. package/es/notify/Notify.d.ts +1 -1
  91. package/es/notify/function-call.d.ts +1 -1
  92. package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
  93. package/es/number-keyboard/index.d.ts +2 -2
  94. package/es/object-select/index.css +1 -1
  95. package/es/object-select/index.less +2 -0
  96. package/es/object-select/style/index.mjs +1 -0
  97. package/es/object-select/style/less.mjs +1 -0
  98. package/es/popover/Popover.d.ts +3 -3
  99. package/es/popover/index.d.ts +3 -3
  100. package/es/popup/Popup.d.ts +4 -4
  101. package/es/popup/index.d.ts +4 -4
  102. package/es/quantity-input/style/index.mjs +1 -0
  103. package/es/quantity-input/style/less.mjs +1 -0
  104. package/es/radio-panel/RadioPanel.d.ts +1 -1
  105. package/es/radio-panel/index.css +1 -1
  106. package/es/radio-panel/index.d.ts +1 -1
  107. package/es/radio-panel/index.less +1 -1
  108. package/es/radio-panel/style/index.mjs +1 -0
  109. package/es/radio-panel/style/less.mjs +1 -0
  110. package/es/rate/style/index.mjs +1 -0
  111. package/es/rate/style/less.mjs +1 -0
  112. package/es/search/style/index.mjs +1 -0
  113. package/es/search/style/less.mjs +1 -0
  114. package/es/share-sheet/ShareSheet.d.ts +1 -1
  115. package/es/share-sheet/index.d.ts +1 -1
  116. package/es/single-person-select/index.css +1 -1
  117. package/es/single-person-select/index.less +2 -0
  118. package/es/single-person-select/style/index.mjs +1 -0
  119. package/es/single-person-select/style/less.mjs +1 -0
  120. package/es/style/base.css +1 -1
  121. package/es/style/base.less +5 -0
  122. package/es/style/css-variables.css +1 -1
  123. package/es/style/css-variables.less +1 -0
  124. package/es/style/var.less +1 -0
  125. package/es/swipe-cell/SwipeCell.d.ts +2 -2
  126. package/es/swipe-cell/index.d.ts +2 -2
  127. package/es/tab/style/index.mjs +2 -0
  128. package/es/tab/style/less.mjs +2 -0
  129. package/es/tabs/style/index.mjs +2 -0
  130. package/es/tabs/style/less.mjs +2 -0
  131. package/es/title-bar/TitleBar.d.ts +2 -2
  132. package/es/title-bar/index.d.ts +2 -2
  133. package/es/toast/Toast.d.ts +1 -1
  134. package/es/tree-select/style/index.mjs +1 -0
  135. package/es/tree-select/style/less.mjs +1 -0
  136. package/es/video-preview/VideoPreview.d.ts +2 -2
  137. package/es/video-preview/function-call.d.ts +2 -2
  138. package/es/work-order-filter/index.css +1 -1
  139. package/es/work-order-filter/index.less +2 -0
  140. package/es/work-order-filter/style/index.mjs +1 -0
  141. package/es/work-order-filter/style/less.mjs +1 -0
  142. package/lib/action-sheet/ActionSheet.d.ts +3 -15
  143. package/lib/action-sheet/ActionSheet.js +21 -10
  144. package/lib/action-sheet/index.css +1 -1
  145. package/lib/action-sheet/index.d.ts +2 -11
  146. package/lib/action-sheet/index.less +31 -17
  147. package/lib/action-sheet/style/index.js +2 -0
  148. package/lib/action-sheet/style/less.js +2 -0
  149. package/lib/action-sheet/var.less +1 -4
  150. package/lib/address-edit/AddressEditDetail.d.ts +1 -1
  151. package/lib/address-edit/style/index.js +1 -0
  152. package/lib/address-edit/style/less.js +1 -0
  153. package/lib/button/Button.d.ts +4 -1
  154. package/lib/button/Button.js +21 -1
  155. package/lib/button/index.css +1 -1
  156. package/lib/button/index.d.ts +3 -1
  157. package/lib/button/index.less +11 -5
  158. package/lib/calendar/Calendar.d.ts +1 -1
  159. package/lib/calendar/index.d.ts +1 -1
  160. package/lib/cascader/Cascader.d.ts +1 -1
  161. package/lib/cascader/index.d.ts +1 -1
  162. package/lib/cascader/style/index.js +2 -0
  163. package/lib/cascader/style/less.js +2 -0
  164. package/lib/cell/Cell.d.ts +305 -1
  165. package/lib/cell/Cell.js +238 -19
  166. package/lib/cell/index.css +1 -1
  167. package/lib/cell/index.d.ts +165 -1
  168. package/lib/cell/index.less +77 -0
  169. package/lib/cell/style/index.js +1 -0
  170. package/lib/cell/style/less.js +1 -0
  171. package/lib/checkbox-panel/index.css +1 -1
  172. package/lib/checkbox-panel/index.less +1 -1
  173. package/lib/checkbox-panel/style/index.js +1 -0
  174. package/lib/checkbox-panel/style/less.js +1 -0
  175. package/lib/collapse-item/CollapseItem.d.ts +230 -0
  176. package/lib/collapse-item/index.d.ts +160 -0
  177. package/lib/collapse-item/style/index.js +1 -0
  178. package/lib/collapse-item/style/less.js +1 -0
  179. package/lib/contact-card/style/index.js +1 -0
  180. package/lib/contact-card/style/less.js +1 -0
  181. package/lib/contact-edit/style/index.js +1 -0
  182. package/lib/contact-edit/style/less.js +1 -0
  183. package/lib/content-panel/index.css +1 -1
  184. package/lib/content-panel/index.less +2 -0
  185. package/lib/coupon-cell/style/index.js +1 -0
  186. package/lib/coupon-cell/style/less.js +1 -0
  187. package/lib/coupon-list/style/index.js +3 -0
  188. package/lib/coupon-list/style/less.js +3 -0
  189. package/lib/dialog/Dialog.d.ts +1 -1
  190. package/lib/dialog/function-call.d.ts +1 -1
  191. package/lib/dialog/style/index.js +1 -0
  192. package/lib/dialog/style/less.js +1 -0
  193. package/lib/dropdown-item/DropdownItem.d.ts +2 -2
  194. package/lib/dropdown-item/index.d.ts +2 -2
  195. package/lib/dropdown-item/style/index.js +1 -0
  196. package/lib/dropdown-item/style/less.js +1 -0
  197. package/lib/field/Field.d.ts +230 -0
  198. package/lib/field/index.d.ts +160 -0
  199. package/lib/field/style/index.js +1 -0
  200. package/lib/field/style/less.js +1 -0
  201. package/lib/floor-select/style/index.js +3 -0
  202. package/lib/floor-select/style/less.js +3 -0
  203. package/lib/form-panel/index.css +1 -1
  204. package/lib/form-panel/index.less +2 -0
  205. package/lib/image-preview/ImagePreview.d.ts +2 -2
  206. package/lib/image-preview/function-call.d.ts +2 -2
  207. package/lib/index.css +1 -1
  208. package/lib/index.d.ts +1 -1
  209. package/lib/index.js +1 -1
  210. package/lib/index.less +2 -2
  211. package/lib/info-card/InfoCard.d.ts +1 -1
  212. package/lib/info-card/index.d.ts +1 -1
  213. package/lib/label/index.css +1 -1
  214. package/lib/label/index.less +4 -0
  215. package/lib/label/var.less +1 -0
  216. package/lib/location-select/index.css +1 -1
  217. package/lib/location-select/index.less +1 -1
  218. package/lib/location-select/style/index.js +1 -0
  219. package/lib/location-select/style/less.js +1 -0
  220. package/lib/material-action-bar/MaterialActionBar.d.ts +9 -0
  221. package/lib/material-action-bar/MaterialActionBar.js +4 -1
  222. package/lib/material-action-bar/index.d.ts +18 -0
  223. package/lib/material-add/index.css +1 -1
  224. package/lib/material-add/index.less +1 -1
  225. package/lib/material-add/style/index.js +1 -1
  226. package/lib/material-add/style/less.js +1 -1
  227. package/lib/material-display-bar/MaterialDisplayBar.d.ts +3 -3
  228. package/lib/material-display-bar/index.d.ts +9 -9
  229. package/lib/multi-person-select/index.css +1 -1
  230. package/lib/multi-person-select/index.less +1 -1
  231. package/lib/multi-person-select/style/index.js +1 -0
  232. package/lib/multi-person-select/style/less.js +1 -0
  233. package/lib/notify/Notify.d.ts +1 -1
  234. package/lib/notify/function-call.d.ts +1 -1
  235. package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
  236. package/lib/number-keyboard/index.d.ts +2 -2
  237. package/lib/object-select/index.css +1 -1
  238. package/lib/object-select/index.less +2 -0
  239. package/lib/object-select/style/index.js +1 -0
  240. package/lib/object-select/style/less.js +1 -0
  241. package/lib/popover/Popover.d.ts +3 -3
  242. package/lib/popover/index.d.ts +3 -3
  243. package/lib/popup/Popup.d.ts +4 -4
  244. package/lib/popup/index.d.ts +4 -4
  245. package/lib/quantity-input/style/index.js +1 -0
  246. package/lib/quantity-input/style/less.js +1 -0
  247. package/lib/radio-panel/RadioPanel.d.ts +1 -1
  248. package/lib/radio-panel/index.css +1 -1
  249. package/lib/radio-panel/index.d.ts +1 -1
  250. package/lib/radio-panel/index.less +1 -1
  251. package/lib/radio-panel/style/index.js +1 -0
  252. package/lib/radio-panel/style/less.js +1 -0
  253. package/lib/rate/style/index.js +1 -0
  254. package/lib/rate/style/less.js +1 -0
  255. package/lib/search/style/index.js +1 -0
  256. package/lib/search/style/less.js +1 -0
  257. package/lib/share-sheet/ShareSheet.d.ts +1 -1
  258. package/lib/share-sheet/index.d.ts +1 -1
  259. package/lib/single-person-select/index.css +1 -1
  260. package/lib/single-person-select/index.less +2 -0
  261. package/lib/single-person-select/style/index.js +1 -0
  262. package/lib/single-person-select/style/less.js +1 -0
  263. package/lib/style/base.css +1 -1
  264. package/lib/style/base.less +5 -0
  265. package/lib/style/css-variables.css +1 -1
  266. package/lib/style/css-variables.less +1 -0
  267. package/lib/style/var.less +1 -0
  268. package/lib/swipe-cell/SwipeCell.d.ts +2 -2
  269. package/lib/swipe-cell/index.d.ts +2 -2
  270. package/lib/tab/style/index.js +2 -0
  271. package/lib/tab/style/less.js +2 -0
  272. package/lib/tabs/style/index.js +2 -0
  273. package/lib/tabs/style/less.js +2 -0
  274. package/lib/title-bar/TitleBar.d.ts +2 -2
  275. package/lib/title-bar/index.d.ts +2 -2
  276. package/lib/toast/Toast.d.ts +1 -1
  277. package/lib/tree-select/style/index.js +1 -0
  278. package/lib/tree-select/style/less.js +1 -0
  279. package/lib/vant.cjs.js +1226 -975
  280. package/lib/vant.es.js +1227 -976
  281. package/lib/vant.js +5157 -4906
  282. package/lib/vant.min.js +1 -1
  283. package/lib/video-preview/VideoPreview.d.ts +2 -2
  284. package/lib/video-preview/function-call.d.ts +2 -2
  285. package/lib/web-types.json +1 -1
  286. package/lib/work-order-filter/index.css +1 -1
  287. package/lib/work-order-filter/index.less +2 -0
  288. package/lib/work-order-filter/style/index.js +1 -0
  289. package/lib/work-order-filter/style/less.js +1 -0
  290. package/package.json +1 -1
  291. package/skills/use-persagy-vant/SKILL.md +1 -1
  292. package/skills/use-persagy-vant/references/public-style-system.md +105 -0
@@ -1 +1 @@
1
- :root{--van-work-order-filter-background-color: var(--van-white);--van-work-order-filter-card-color: var(--van-gray-2)}.van-work-order-filter{display:flex;flex-direction:column;height:calc(100vh - 96px);max-height:calc(100vh - 96px);overflow:hidden;background:var(--van-work-order-filter-background-color)}.van-work-order-filter>.van-action-sheet__content{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}.van-work-order-filter__nav{flex:none;--van-nav-bar-background-color: var(--van-white)}.van-work-order-filter__nav .van-nav-bar__left--slot{padding:0 12px}.van-work-order-filter__body{flex:1;min-height:0;padding-bottom:var(--van-padding-md);overflow-y:auto}.van-work-order-filter__section{position:relative}.van-work-order-filter__section .van-blue-mark-header{padding:var(--van-padding-md) 22px var(--van-padding-xs)}.van-work-order-filter__custom{width:100%}.van-work-order-filter__select-all{position:absolute;top:var(--van-padding-md);right:22px;padding:0;color:var(--van-primary-color);font-size:var(--van-font-size-md);font-weight:var(--van-font-weight-bold);line-height:var(--van-line-height-lg);background:transparent;border:0}.van-work-order-filter__card{margin:0 var(--van-padding-md);overflow:hidden;background:var(--van-work-order-filter-card-color);border-radius:8px;--van-cell-border-color: #e1e5eb}.van-work-order-filter__card .van-cell{min-height:44px;background:transparent}.van-work-order-filter__card .van-checkbox,.van-work-order-filter__card .van-radio{margin:0}.van-work-order-filter__project-list{width:100%}.van-work-order-filter__project-item{position:relative;touch-action:pan-y;transition:transform .16s cubic-bezier(.2,0,0,1)}.van-work-order-filter__project-item--dragging{z-index:1;opacity:.82;box-shadow:0 4px 12px rgba(27,33,41,.16);transition:none}.van-work-order-filter__project-move{transition:transform .16s cubic-bezier(.2,0,0,1)}.van-work-order-filter__drag-handle{display:flex;align-items:center;justify-content:center;width:16px;height:var(--van-cell-line-height);margin-right:var(--van-padding-base);color:var(--van-text-color);cursor:grab;touch-action:none}.van-work-order-filter__drag-handle:active{cursor:grabbing}.van-work-order-filter__sort-cards{display:flex;flex-direction:column;gap:10px}.van-work-order-filter__tags{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--van-padding-xs);margin:0 var(--van-padding-md)}.van-work-order-filter__tags .van-filter-tag{width:100%;min-width:0;text-align:center}.van-work-order-filter__time-trigger{width:auto;margin:var(--van-padding-xs) var(--van-padding-md) 0;background:var(--van-work-order-filter-card-color);border-radius:8px}.van-work-order-filter__time-trigger .van-cell__label{white-space:nowrap}.van-work-order-filter__time-picker-overlay{position:absolute;z-index:10;inset:0;display:flex;align-items:flex-end;background:rgba(0,0,0,.45)}.van-work-order-filter__time-picker-panel{width:100%;overflow:hidden;background:var(--van-white);border-radius:16px 16px 0 0}.van-work-order-filter__time-picker-enter-active,.van-work-order-filter__time-picker-leave-active{transition:opacity var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-work-order-filter__time-picker-enter-active .van-work-order-filter__time-picker-panel,.van-work-order-filter__time-picker-leave-active .van-work-order-filter__time-picker-panel{transition:transform var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-work-order-filter__time-picker-leave-active,.van-work-order-filter__time-picker-leave-active .van-work-order-filter__time-picker-panel{transition-timing-function:var(--van-animation-timing-function-leave)}.van-work-order-filter__time-picker-enter-from,.van-work-order-filter__time-picker-leave-to{opacity:0}.van-work-order-filter__time-picker-enter-from .van-work-order-filter__time-picker-panel,.van-work-order-filter__time-picker-leave-to .van-work-order-filter__time-picker-panel{transform:translate3d(0,100%,0)}.van-work-order-filter__footer{flex:none}
1
+ :root{--van-work-order-filter-background-color: var(--van-white);--van-work-order-filter-card-color: var(--van-gray-2)}.van-work-order-filter{display:flex;flex-direction:column;height:calc(100vh - 96px);max-height:calc(100vh - 96px);overflow:hidden;background:var(--van-work-order-filter-background-color)}.van-work-order-filter>.van-action-sheet__content{display:flex;flex:1;flex-direction:column;min-height:0;gap:0;padding:0;overflow:hidden}.van-work-order-filter__nav{flex:none;--van-nav-bar-background-color: var(--van-white)}.van-work-order-filter__nav .van-nav-bar__left--slot{padding:0 12px}.van-work-order-filter__body{flex:1;min-height:0;padding-bottom:var(--van-padding-md);overflow-y:auto}.van-work-order-filter__section{position:relative}.van-work-order-filter__section .van-blue-mark-header{padding:var(--van-padding-md) 22px var(--van-padding-xs)}.van-work-order-filter__custom{width:100%}.van-work-order-filter__select-all{position:absolute;top:var(--van-padding-md);right:22px;padding:0;color:var(--van-primary-color);font-size:var(--van-font-size-md);font-weight:var(--van-font-weight-bold);line-height:var(--van-line-height-lg);background:transparent;border:0}.van-work-order-filter__card{margin:0 var(--van-padding-md);overflow:hidden;background:var(--van-work-order-filter-card-color);border-radius:8px;--van-cell-border-color: #e1e5eb}.van-work-order-filter__card .van-cell{min-height:44px;background:transparent}.van-work-order-filter__card .van-checkbox,.van-work-order-filter__card .van-radio{margin:0}.van-work-order-filter__project-list{width:100%}.van-work-order-filter__project-item{position:relative;touch-action:pan-y;transition:transform .16s cubic-bezier(.2,0,0,1)}.van-work-order-filter__project-item--dragging{z-index:1;opacity:.82;box-shadow:0 4px 12px rgba(27,33,41,.16);transition:none}.van-work-order-filter__project-move{transition:transform .16s cubic-bezier(.2,0,0,1)}.van-work-order-filter__drag-handle{display:flex;align-items:center;justify-content:center;width:16px;height:var(--van-cell-line-height);margin-right:var(--van-padding-base);color:var(--van-text-color);cursor:grab;touch-action:none}.van-work-order-filter__drag-handle:active{cursor:grabbing}.van-work-order-filter__sort-cards{display:flex;flex-direction:column;gap:10px}.van-work-order-filter__tags{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--van-padding-xs);margin:0 var(--van-padding-md)}.van-work-order-filter__tags .van-filter-tag{width:100%;min-width:0;text-align:center}.van-work-order-filter__time-trigger{width:auto;margin:var(--van-padding-xs) var(--van-padding-md) 0;background:var(--van-work-order-filter-card-color);border-radius:8px}.van-work-order-filter__time-trigger .van-cell__label{white-space:nowrap}.van-work-order-filter__time-picker-overlay{position:absolute;z-index:10;inset:0;display:flex;align-items:flex-end;background:rgba(0,0,0,.45)}.van-work-order-filter__time-picker-panel{width:100%;overflow:hidden;background:var(--van-white);border-radius:16px 16px 0 0}.van-work-order-filter__time-picker-enter-active,.van-work-order-filter__time-picker-leave-active{transition:opacity var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-work-order-filter__time-picker-enter-active .van-work-order-filter__time-picker-panel,.van-work-order-filter__time-picker-leave-active .van-work-order-filter__time-picker-panel{transition:transform var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-work-order-filter__time-picker-leave-active,.van-work-order-filter__time-picker-leave-active .van-work-order-filter__time-picker-panel{transition-timing-function:var(--van-animation-timing-function-leave)}.van-work-order-filter__time-picker-enter-from,.van-work-order-filter__time-picker-leave-to{opacity:0}.van-work-order-filter__time-picker-enter-from .van-work-order-filter__time-picker-panel,.van-work-order-filter__time-picker-leave-to .van-work-order-filter__time-picker-panel{transform:translate3d(0,100%,0)}.van-work-order-filter__footer{flex:none}
@@ -18,6 +18,8 @@
18
18
  flex: 1;
19
19
  flex-direction: column;
20
20
  min-height: 0;
21
+ gap: 0;
22
+ padding: 0;
21
23
  overflow: hidden;
22
24
  }
23
25
 
@@ -2,6 +2,7 @@ require("../../style/base.css");
2
2
  require("../../badge/index.css");
3
3
  require("../../icon/index.css");
4
4
  require("../../filter-tag/index.css");
5
+ require("../../tag/index.css");
5
6
  require("../../loading/index.css");
6
7
  require("../../picker/index.css");
7
8
  require("../../datetime-picker/index.css");
@@ -2,6 +2,7 @@ require("../../style/base.less");
2
2
  require("../../badge/index.less");
3
3
  require("../../icon/index.less");
4
4
  require("../../filter-tag/index.less");
5
+ require("../../tag/index.less");
5
6
  require("../../loading/index.less");
6
7
  require("../../picker/index.less");
7
8
  require("../../datetime-picker/index.less");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "persagy-vant",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "description": "Lightweight Mobile UI Components built on Vue",
5
5
  "main": "lib/vant.cjs.js",
6
6
  "module": "es/index.mjs",
@@ -10,7 +10,7 @@ description: 使用 Persagy Vant 为 Vue 3 移动端业务页面规划、实现
10
10
  ## 强制工作流
11
11
 
12
12
  1. 阅读 `references/reuse-policy.md`,确认复用边界与禁止项。
13
- 2. 阅读 `references/design-interaction-baseline.md`,将其中适用的设计、状态和反馈规则落实到页面;如与产品需求冲突,以明确的产品需求为准并说明差异。
13
+ 2. 阅读 `references/design-interaction-baseline.md` 与 `references/public-style-system.md`,将其中适用的设计、状态和反馈规则落实到页面;如与产品需求冲突,以明确的产品需求为准并说明差异。
14
14
  3. 阅读 `references/business-component-catalog.md`,按用户任务先确定业务组件;再从 `references/component-catalog.md` 补齐基础组件。
15
15
  4. 按 `references/component-documentation.md` 的查阅流程读取每个被选中组件的 README 和 demo:在组件库仓库中使用 `packages/persagy-mobile/src/<component>/README.zh-CN.md`,在业务项目中使用 `node_modules/persagy-vant/es/<component>/README.zh-CN.md`。涉及视觉、插槽或类型扩展时,同时查阅 `var.less`、类型定义和 demo;API、事件、插槽和导入方式均以这些资料为准。
16
16
  5. 阅读 `references/component-variant-selection.md`,针对每个可见或可交互 UI 单元,从该组件模拟器/README 的示例中选定最贴近当前页面的具体样式与变量组合;不得仅按组件名称套用基础示例。
@@ -0,0 +1,105 @@
1
+ # Persagy Vant 公共样式系统
2
+
3
+ 本资料汇总整个组件库的**公共样式基础**:全局 CSS Token、内置工具类、页面公共间距与组件级样式资料入口。全局 Token 的源码位于 `packages/persagy-mobile/src/style/var.less` 和 `css-variables.less`,以源码为准。
4
+
5
+ ## 使用边界
6
+
7
+ - 页面实现优先使用组件模拟器已提供的样式变体与公开 Props;本资料用于理解并保持一致,不是普通页面自行覆盖视觉的许可。
8
+ - 产品经理未明确提出具体样式调整时,不修改 `--van-*` Token、组件级 Less/CSS 变量、颜色、字号、间距、圆角、边框或动效。
9
+ - 组件级 `var.less` 是组件库维护接口。业务页面出现无法由现有变体覆盖的需求时,记录组件缺口,推动组件库优化变量或新增变体,而不是页面二次样式。
10
+
11
+ ## 色彩 Token
12
+
13
+ ### 中性与基础色
14
+
15
+ | CSS Token | 值 | 用途 |
16
+ | --- | --- | --- |
17
+ | `--van-black` | `#1b2129` | 深色正文/基础深色 |
18
+ | `--van-white` | `#fff` | 白色卡片、反白内容 |
19
+ | `--van-gray-1` ~ `--van-gray-8` | `#f7f9fa`、`#f1f4f6`、`#edf1f5`、`#e1e5eb`、`#c4c9cf`、`#8b949e`、`#626c78`、`#2e3742` | 页面背景、分割线、辅助到主文字 |
20
+ | `--van-grey-50` ~ `--van-grey-900` | `#f7f9fa` 至 `#1b2129` | 细分灰阶,按组件既有样式使用 |
21
+
22
+ ### 品牌与状态色
23
+
24
+ | 色系 | Token 范围 | 主色 |
25
+ | --- | --- | --- |
26
+ | 品牌蓝 | `--van-blue-50` ~ `--van-blue-900` | `--van-blue` / `--van-blue-500`:`#246fe5` |
27
+ | 成功绿 | `--van-green-50` ~ `--van-green-900` | `--van-green` / `--van-green-500`:`#3fbe72` |
28
+ | 危险红 | `--van-red-50` ~ `--van-red-900` | `--van-red` / `--van-red-500`:`#f55047` |
29
+ | 警示橙 | `--van-orange-50` ~ `--van-orange-900` | `--van-orange` / `--van-orange-500`:`#ffb800` |
30
+
31
+ ### 语义色与背景
32
+
33
+ | CSS Token | 默认值/来源 | 标准用途 |
34
+ | --- | --- | --- |
35
+ | `--van-primary-color` | `--van-blue` | 品牌主操作、链接与选中态 |
36
+ | `--van-success-color` / `--van-danger-color` / `--van-warning-color` | 绿 / 红 / 橙 | 成功、风险、警示语义 |
37
+ | `--van-text-color` / `--van-text-color-2` / `--van-text-color-3` | 灰阶 8 / 6 / 5 | 主正文 / 次要说明 / 弱提示 |
38
+ | `--van-text-link-color` | `#576b95` | 通用链接色(优先使用组件链接变体) |
39
+ | `--van-background-color` / `--van-background-color-light` | 灰阶 1 / 白色 | 页面背景 / 白色承载面 |
40
+ | `--van-border-color` | 灰阶 4 | 分割线、描边 |
41
+ | `--van-active-color` / `--van-active-opacity` | 灰阶 2 / `0.6` | 组件默认按压态 |
42
+ | `--van-disabled-opacity` | `0.5` | 禁用态 |
43
+ | `--van-gradient-gray` | 灰阶 2至透明 | `gradient-gray` 公共渐变 |
44
+ | `--van-gradient-blue` | `rgb(36 112 230 / 10%)` 至 `rgb(36 112 230 / 1%)` | `gradient-blue` 公共蓝色渐变 |
45
+
46
+ ## 尺寸、排版与动效 Token
47
+
48
+ | 类别 | Token | 值 |
49
+ | --- | --- | --- |
50
+ | 间距 | `--van-padding-base/xs/sm/md/lg/xl` | `4 / 8 / 12 / 16 / 24 / 32px` |
51
+ | 字号 | `--van-font-size-xs/sm/md/lg/xl` | `10 / 12 / 14 / 16 / 20px` |
52
+ | 行高 | `--van-line-height-xs/sm/md/lg/xl` | `14 / 18 / 20 / 22 / 24px` |
53
+ | 字重 | `--van-font-weight-bold` | `500` |
54
+ | 圆角 | `--van-border-radius-sm/md/lg/max` | `2 / 4 / 8 / 999px` |
55
+ | 边框 | `--van-border-width-base` | `1px` |
56
+ | 动效 | `--van-animation-duration-fast/base` | `0.2 / 0.3s` |
57
+ | 动效曲线 | `--van-animation-timing-function-enter/leave` | `ease-out / ease-in` |
58
+
59
+ ## 公共工具类与动画
60
+
61
+ | 名称 | 能力 | 页面使用规则 |
62
+ | --- | --- | --- |
63
+ | `van-ellipsis` | 单行省略 | 文本不适合换行时使用 |
64
+ | `van-multi-ellipsis--l2` / `van-multi-ellipsis--l3` | 两/三行省略 | 仅在无法完整换行且有查看全文路径时使用 |
65
+ | `gradient-gray` / `van-gradient-gray` | 灰到透明的横向渐变 | 仅用于组件/页面已有渐变承载语义 |
66
+ | `gradient-blue` / `van-gradient-blue` | 10% 至 1% 透明度的横向蓝色渐变 | 有蓝色弱强调承载语义时优先使用;不自行重配渐变色或透明度 |
67
+ | `van-hairline--top/left/right/bottom/top-bottom/surround` | Retina 1px 边框 | 优先使用组件内置分割线;不要用它替代组件的 `border`/`divider` 能力 |
68
+ | `van-safe-area-top/bottom` | 顶/底安全区 | 仅作用于固定区域;不得叠加到卡片页面末尾的 24px 留白 |
69
+ | `van-haptics-feedback` | 默认点击透明度反馈 | 有内置按压态的组件不重复使用 |
70
+ | `van-fade` | 淡入淡出 | 用于轻量显示/隐藏 |
71
+ | `van-slide-up/down/left/right` | 四向转场 | 页面与面板转场按设计交互基线选择 |
72
+
73
+ ## 页面公共布局值
74
+
75
+ | 项目 | 标准 |
76
+ | --- | --- |
77
+ | 具白色卡片的页面背景 | 【背景】组件;首页 `theme="default"`,其他层级 `theme="gray"` |
78
+ | 页面左右边距 | `16px` |
79
+ | 卡片之间 | `8px` |
80
+ | 模块/控件间 | `8px` 或 `12px` |
81
+ | 纯左右字段组纵向间距 | 不小于 `8px` |
82
+ | 卡片内容末尾 | 最后一个可见项隐藏分割线 |
83
+ | 卡片页面滚动终点 | 最后卡片后唯一 `24px` 空白容器;不得叠加额外可滚动留白 |
84
+
85
+ 完整页面规则以 `design-interaction-baseline.md` 为准。
86
+
87
+ ## 组件级样式索引
88
+
89
+ 组件库共有 `85` 份组件级 `var.less`,涵盖基础组件、业务组件和页面容器。它们按组件目录维护,例如:
90
+
91
+ | 样式类别 | 代表组件 | 样式变量源码 |
92
+ | --- | --- | --- |
93
+ | 页面与容器 | `background`、`card`、`cell-group`、`content-panel`、`popup` | `src/<component>/var.less` |
94
+ | 信息展示 | `cell`、`label`、`info-card`、`title-bar`、`tag`、`badge` | `src/<component>/var.less` |
95
+ | 表单与选择 | `field`、`checkbox`、`radio`、`picker`、`search`、`uploader` | `src/<component>/var.less` |
96
+ | 操作与反馈 | `button`、`bottom-action-bar`、`dialog`、`toast`、`notify`、`loading` | `src/<component>/var.less` |
97
+ | 业务场景 | `work-order-card`、`work-order-filter`、`material-display-bar`、`friendly-tip` | `src/<component>/var.less` |
98
+
99
+ 查找规则:先读目标组件 README 的样式变量说明和模拟器示例;需要组件库维护时再读取同目录 `var.less`。不得根据变量名称臆造未文档化能力。
100
+
101
+ ## 维护规则
102
+
103
+ - 新增或调整全局 Token 时,同步更新 `src/style/var.less`、`css-variables.less` 与本资料。
104
+ - 新增或调整组件级样式变量时,同步更新组件 `var.less`、README、demo 与组件目录描述。
105
+ - 若业务页面持续出现同类样式缺口,优先沉淀为组件变体或组件公开变量,再由产品经理决定是否推广。