attributes.json 111 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358
  1. {
  2. "van-action-sheet/v-model (value)": {
  3. "type": "boolean",
  4. "description": "是否显示动作面板, 默认值: `false`"
  5. },
  6. "van-action-sheet/actions": {
  7. "type": "Action[]",
  8. "description": "面板选项列表, 默认值: `[]`"
  9. },
  10. "van-action-sheet/title": {
  11. "type": "string",
  12. "description": "顶部标题, 默认值: -"
  13. },
  14. "van-action-sheet/cancel-text": {
  15. "type": "string",
  16. "description": "取消按钮文字, 默认值: -"
  17. },
  18. "van-action-sheet/description": {
  19. "type": "string",
  20. "description": "选项上方的描述信息, 默认值: -"
  21. },
  22. "van-action-sheet/closeable": {
  23. "type": "boolean",
  24. "description": "是否显示关闭图标, 默认值: `true`"
  25. },
  26. "van-action-sheet/close-icon": {
  27. "type": "string",
  28. "description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
  29. },
  30. "van-action-sheet/duration": {
  31. "type": "number | string",
  32. "description": "动画时长,单位秒, 默认值: `0.3`"
  33. },
  34. "van-action-sheet/round": {
  35. "type": "boolean",
  36. "description": "是否显示圆角, 默认值: `true`"
  37. },
  38. "van-action-sheet/overlay": {
  39. "type": "boolean",
  40. "description": "是否显示遮罩层, 默认值: `true`"
  41. },
  42. "van-action-sheet/lock-scroll": {
  43. "type": "boolean",
  44. "description": "是否锁定背景滚动, 默认值: `true`"
  45. },
  46. "van-action-sheet/lazy-render": {
  47. "type": "boolean",
  48. "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
  49. },
  50. "van-action-sheet/close-on-popstate": {
  51. "type": "boolean",
  52. "description": "是否在页面回退时自动关闭, 默认值: `false`"
  53. },
  54. "van-action-sheet/close-on-click-action": {
  55. "type": "boolean",
  56. "description": "是否在点击选项后关闭, 默认值: `false`"
  57. },
  58. "van-action-sheet/close-on-click-overlay": {
  59. "type": "boolean",
  60. "description": "是否在点击遮罩层后关闭, 默认值: `true`"
  61. },
  62. "van-action-sheet/safe-area-inset-bottom": {
  63. "type": "boolean",
  64. "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
  65. },
  66. "van-action-sheet/get-container": {
  67. "type": "string | () => Element",
  68. "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
  69. },
  70. "van-address-edit/area-list": {
  71. "type": "object",
  72. "description": "地区列表, 默认值: -"
  73. },
  74. "van-address-edit/area-columns-placeholder": {
  75. "type": "string[]",
  76. "description": "地区选择列占位提示文字, 默认值: `[]`"
  77. },
  78. "van-address-edit/area-placeholder": {
  79. "type": "string",
  80. "description": "地区输入框占位提示文字, 默认值: `选择省 / 市 / 区`"
  81. },
  82. "van-address-edit/address-info": {
  83. "type": "AddressInfo",
  84. "description": "收货人信息初始值, 默认值: `{}`"
  85. },
  86. "van-address-edit/search-result": {
  87. "type": "SearchResult[]",
  88. "description": "详细地址搜索结果, 默认值: `[]`"
  89. },
  90. "van-address-edit/show-postal": {
  91. "type": "boolean",
  92. "description": "是否显示邮政编码, 默认值: `false`"
  93. },
  94. "van-address-edit/show-delete": {
  95. "type": "boolean",
  96. "description": "是否显示删除按钮, 默认值: `false`"
  97. },
  98. "van-address-edit/show-set-default": {
  99. "type": "boolean",
  100. "description": "是否显示默认地址栏, 默认值: `false`"
  101. },
  102. "van-address-edit/show-search-result": {
  103. "type": "boolean",
  104. "description": "是否显示搜索结果, 默认值: `false`"
  105. },
  106. "van-address-edit/show-area": {
  107. "type": "boolean",
  108. "description": "是否显示地区, 默认值: `true`"
  109. },
  110. "van-address-edit/show-detail": {
  111. "type": "boolean",
  112. "description": "是否显示详细地址, 默认值: `true`"
  113. },
  114. "van-address-edit/disable-area": {
  115. "type": "boolean",
  116. "description": "是否禁用地区选择, 默认值: `false`"
  117. },
  118. "van-address-edit/save-button-text": {
  119. "type": "string",
  120. "description": "保存按钮文字, 默认值: `保存`"
  121. },
  122. "van-address-edit/delete-button-text": {
  123. "type": "string",
  124. "description": "删除按钮文字, 默认值: `删除`"
  125. },
  126. "van-address-edit/detail-rows": {
  127. "type": "number | string",
  128. "description": "详细地址输入框行数, 默认值: `1`"
  129. },
  130. "van-address-edit/detail-maxlength": {
  131. "type": "number | string",
  132. "description": "详细地址最大长度, 默认值: `200`"
  133. },
  134. "van-address-edit/is-saving": {
  135. "type": "boolean",
  136. "description": "是否显示保存按钮加载动画, 默认值: `false`"
  137. },
  138. "van-address-edit/is-deleting": {
  139. "type": "boolean",
  140. "description": "是否显示删除按钮加载动画, 默认值: `false`"
  141. },
  142. "van-address-edit/tel-validator": {
  143. "type": "string => boolean",
  144. "description": "手机号格式校验函数, 默认值: -"
  145. },
  146. "van-address-edit/tel-maxlength": {
  147. "type": "number | string",
  148. "description": "手机号最大长度, 默认值: -"
  149. },
  150. "van-address-edit/postal-validator": {
  151. "type": "string => boolean",
  152. "description": "邮政编码格式校验函数, 默认值: -"
  153. },
  154. "van-address-edit/validator": {
  155. "type": "(key, val) => string",
  156. "description": "自定义校验函数, 默认值: -"
  157. },
  158. "van-address-list/v-model": {
  159. "type": "string",
  160. "description": "当前选中地址的 id, 默认值: -"
  161. },
  162. "van-address-list/list": {
  163. "type": "Address[]",
  164. "description": "地址列表, 默认值: `[]`"
  165. },
  166. "van-address-list/disabled-list": {
  167. "type": "Address[]",
  168. "description": "不可配送地址列表, 默认值: `[]`"
  169. },
  170. "van-address-list/disabled-text": {
  171. "type": "string",
  172. "description": "不可配送提示文案, 默认值: -"
  173. },
  174. "van-address-list/switchable": {
  175. "type": "boolean",
  176. "description": "是否允许切换地址, 默认值: `true`"
  177. },
  178. "van-address-list/add-button-text": {
  179. "type": "string",
  180. "description": "底部按钮文字, 默认值: `新增地址`"
  181. },
  182. "van-address-list/default-tag-text": {
  183. "type": "string",
  184. "description": "默认地址标签文字, 默认值: -"
  185. },
  186. "van-area/value": {
  187. "type": "string",
  188. "description": "当前选中的省市区`code`, 默认值: -"
  189. },
  190. "van-area/title": {
  191. "type": "string",
  192. "description": "顶部栏标题, 默认值: -"
  193. },
  194. "van-area/confirm-button-text": {
  195. "type": "string",
  196. "description": "确认按钮文字, 默认值: `确认`"
  197. },
  198. "van-area/cancel-button-text": {
  199. "type": "string",
  200. "description": "取消按钮文字, 默认值: `取消`"
  201. },
  202. "van-area/area-list": {
  203. "type": "object",
  204. "description": "省市区数据,格式见下方, 默认值: -"
  205. },
  206. "van-area/columns-placeholder": {
  207. "type": "string[]",
  208. "description": "列占位提示文字, 默认值: `[]`"
  209. },
  210. "van-area/loading": {
  211. "type": "boolean",
  212. "description": "是否显示加载状态, 默认值: `false`"
  213. },
  214. "van-area/readonly": {
  215. "type": "boolean",
  216. "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
  217. },
  218. "van-area/item-height": {
  219. "type": "number | string",
  220. "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
  221. },
  222. "van-area/columns-num": {
  223. "type": "number | string",
  224. "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
  225. },
  226. "van-area/visible-item-count": {
  227. "type": "number | string",
  228. "description": "可见的选项个数, 默认值: `6`"
  229. },
  230. "van-area/swipe-duration": {
  231. "type": "number | string",
  232. "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
  233. },
  234. "van-area/is-oversea-code": {
  235. "type": "() => boolean",
  236. "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
  237. },
  238. "van-button/type": {
  239. "type": "string",
  240. "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
  241. },
  242. "van-button/size": {
  243. "type": "string",
  244. "description": "尺寸,可选值为 `large` `small` `mini`, 默认值: `normal`"
  245. },
  246. "van-button/text": {
  247. "type": "string",
  248. "description": "按钮文字, 默认值: -"
  249. },
  250. "van-button/color": {
  251. "type": "string",
  252. "description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
  253. },
  254. "van-button/icon": {
  255. "type": "string",
  256. "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
  257. },
  258. "van-button/icon-prefix": {
  259. "type": "string",
  260. "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
  261. },
  262. "van-button/icon-position": {
  263. "type": "string",
  264. "description": "图标展示位置,可选值为 `right`, 默认值: `left`"
  265. },
  266. "van-button/tag": {
  267. "type": "string",
  268. "description": "按钮根节点的 HTML 标签, 默认值: `button`"
  269. },
  270. "van-button/native-type": {
  271. "type": "string",
  272. "description": "原生 button 标签的 type 属性, 默认值: -"
  273. },
  274. "van-button/block": {
  275. "type": "boolean",
  276. "description": "是否为块级元素, 默认值: `false`"
  277. },
  278. "van-button/plain": {
  279. "type": "boolean",
  280. "description": "是否为朴素按钮, 默认值: `false`"
  281. },
  282. "van-button/square": {
  283. "type": "boolean",
  284. "description": "是否为方形按钮, 默认值: `false`"
  285. },
  286. "van-button/round": {
  287. "type": "boolean",
  288. "description": "是否为圆形按钮, 默认值: `false`"
  289. },
  290. "van-button/disabled": {
  291. "type": "boolean",
  292. "description": "是否禁用按钮, 默认值: `false`"
  293. },
  294. "van-button/hairline": {
  295. "type": "boolean",
  296. "description": "是否使用 0.5px 边框, 默认值: `false`"
  297. },
  298. "van-button/loading": {
  299. "type": "boolean",
  300. "description": "是否显示为加载状态, 默认值: `false`"
  301. },
  302. "van-button/loading-text": {
  303. "type": "string",
  304. "description": "加载状态提示文字, 默认值: -"
  305. },
  306. "van-button/loading-type": {
  307. "type": "string",
  308. "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`, 默认值: `circular`"
  309. },
  310. "van-button/loading-size": {
  311. "type": "string",
  312. "description": "加载图标大小, 默认值: `20px`"
  313. },
  314. "van-button/url": {
  315. "type": "string",
  316. "description": "点击后跳转的链接地址, 默认值: -"
  317. },
  318. "van-button/to": {
  319. "type": "string | object",
  320. "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
  321. },
  322. "van-button/replace": {
  323. "type": "boolean",
  324. "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
  325. },
  326. "van-badge/content": {
  327. "type": "number | string",
  328. "description": "徽标内容, 默认值: -"
  329. },
  330. "van-badge/color": {
  331. "type": "string",
  332. "description": "徽标背景颜色, 默认值: `#ee0a24`"
  333. },
  334. "van-badge/dot": {
  335. "type": "boolean",
  336. "description": "是否展示为小红点, 默认值: `false`"
  337. },
  338. "van-badge/max": {
  339. "type": "number | string",
  340. "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
  341. },
  342. "van-calendar/type": {
  343. "type": "string",
  344. "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间, 默认值: `single`"
  345. },
  346. "van-calendar/title": {
  347. "type": "string",
  348. "description": "日历标题, 默认值: `日期选择`"
  349. },
  350. "van-calendar/color": {
  351. "type": "string",
  352. "description": "主题色,对底部按钮和选中日期生效, 默认值: `#ee0a24`"
  353. },
  354. "van-calendar/min-date": {
  355. "type": "Date",
  356. "description": "可选择的最小日期, 默认值: 当前日期"
  357. },
  358. "van-calendar/max-date": {
  359. "type": "Date",
  360. "description": "可选择的最大日期, 默认值: 当前日期的六个月后"
  361. },
  362. "van-calendar/default-date": {
  363. "type": "Date | Date[] \\",
  364. "description": "默认选中的日期,`type` 为 `multiple` 或 `range` 时为数组,传入 `null` 表示默认不选择, 默认值: null_"
  365. },
  366. "van-calendar/row-height": {
  367. "type": "number | string",
  368. "description": "日期行高, 默认值: `64`"
  369. },
  370. "van-calendar/formatter": {
  371. "type": "(day: Day) => Day",
  372. "description": "日期格式化函数, 默认值: -"
  373. },
  374. "van-calendar/poppable": {
  375. "type": "boolean",
  376. "description": "是否以弹层的形式展示日历, 默认值: `true`"
  377. },
  378. "van-calendar/lazy-render": {
  379. "type": "boolean",
  380. "description": "是否只渲染可视区域的内容, 默认值: `true`"
  381. },
  382. "van-calendar/show-mark": {
  383. "type": "boolean",
  384. "description": "是否显示月份背景水印, 默认值: `true`"
  385. },
  386. "van-calendar/show-title": {
  387. "type": "boolean",
  388. "description": "是否展示日历标题, 默认值: `true`"
  389. },
  390. "van-calendar/show-subtitle": {
  391. "type": "boolean",
  392. "description": "是否展示日历副标题(年月), 默认值: `true`"
  393. },
  394. "van-calendar/show-confirm": {
  395. "type": "boolean",
  396. "description": "是否展示确认按钮, 默认值: `true`"
  397. },
  398. "van-calendar/readonly": {
  399. "type": "boolean",
  400. "description": "是否为只读状态,只读状态下不能选择日期, 默认值: `false`"
  401. },
  402. "van-calendar/confirm-text": {
  403. "type": "string",
  404. "description": "确认按钮的文字, 默认值: `确定`"
  405. },
  406. "van-calendar/confirm-disabled-text": {
  407. "type": "string",
  408. "description": "确认按钮处于禁用状态时的文字, 默认值: `确定`"
  409. },
  410. "van-calendar/first-day-of-week": {
  411. "type": "0-6",
  412. "description": "设置周起始日, 默认值: `0`"
  413. },
  414. "van-calendar/v-model": {
  415. "type": "boolean",
  416. "description": "是否显示日历弹窗, 默认值: `false`"
  417. },
  418. "van-calendar/position": {
  419. "type": "string",
  420. "description": "弹出位置,可选值为 `top` `right` `left`, 默认值: `bottom`"
  421. },
  422. "van-calendar/round": {
  423. "type": "boolean",
  424. "description": "是否显示圆角弹窗, 默认值: `true`"
  425. },
  426. "van-calendar/close-on-popstate": {
  427. "type": "boolean",
  428. "description": "是否在页面回退时自动关闭, 默认值: `true`"
  429. },
  430. "van-calendar/close-on-click-overlay": {
  431. "type": "boolean",
  432. "description": "是否在点击遮罩层后关闭, 默认值: `true`"
  433. },
  434. "van-calendar/safe-area-inset-bottom": {
  435. "type": "boolean",
  436. "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
  437. },
  438. "van-calendar/get-container": {
  439. "type": "string | () => Element",
  440. "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
  441. },
  442. "van-calendar/max-range": {
  443. "type": "number | string",
  444. "description": "日期最多可选天数, 默认值: 无限制"
  445. },
  446. "van-calendar/range-prompt": {
  447. "type": "string",
  448. "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
  449. },
  450. "van-calendar/allow-same-day": {
  451. "type": "boolean",
  452. "description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
  453. },
  454. "van-card/thumb": {
  455. "type": "string",
  456. "description": "左侧图片 URL, 默认值: -"
  457. },
  458. "van-card/title": {
  459. "type": "string",
  460. "description": "标题, 默认值: -"
  461. },
  462. "van-card/desc": {
  463. "type": "string",
  464. "description": "描述, 默认值: -"
  465. },
  466. "van-card/tag": {
  467. "type": "string",
  468. "description": "图片角标, 默认值: -"
  469. },
  470. "van-card/num": {
  471. "type": "number | string",
  472. "description": "商品数量, 默认值: -"
  473. },
  474. "van-card/price": {
  475. "type": "number | string",
  476. "description": "商品价格, 默认值: -"
  477. },
  478. "van-card/origin-price": {
  479. "type": "number | string",
  480. "description": "商品划线原价, 默认值: -"
  481. },
  482. "van-card/centered": {
  483. "type": "boolean",
  484. "description": "内容是否垂直居中, 默认值: `false`"
  485. },
  486. "van-card/currency": {
  487. "type": "string",
  488. "description": "货币符号, 默认值: `¥`"
  489. },
  490. "van-card/thumb-link": {
  491. "type": "string",
  492. "description": "点击左侧图片后跳转的链接地址, 默认值: -"
  493. },
  494. "van-card/lazy-load": {
  495. "type": "boolean",
  496. "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
  497. },
  498. "van-cascader/title": {
  499. "type": "string",
  500. "description": "顶部标题, 默认值: -"
  501. },
  502. "van-cascader/value": {
  503. "type": "string | number",
  504. "description": "选中项的值, 默认值: -"
  505. },
  506. "van-cascader/options": {
  507. "type": "Option[]",
  508. "description": "可选项数据源, 默认值: `[]`"
  509. },
  510. "van-cascader/placeholder": {
  511. "type": "string",
  512. "description": "未选中时的提示文案, 默认值: `请选择`"
  513. },
  514. "van-cascader/active-color": {
  515. "type": "string",
  516. "description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
  517. },
  518. "van-cascader/closeable": {
  519. "type": "boolean",
  520. "description": "是否显示关闭图标, 默认值: `true`"
  521. },
  522. "van-cascader/show-header": {
  523. "type": "boolean",
  524. "description": "是否展示标题栏, 默认值: `true`"
  525. },
  526. "van-cascader/field-names": {
  527. "type": "object",
  528. "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
  529. },
  530. "van-cell/title": {
  531. "type": "number | string",
  532. "description": "左侧标题, 默认值: -"
  533. },
  534. "van-cell/border": {
  535. "type": "boolean",
  536. "description": "是否显示内边框, 默认值: `true`"
  537. },
  538. "van-cell/value": {
  539. "type": "number | string",
  540. "description": "右侧内容, 默认值: -"
  541. },
  542. "van-cell/label": {
  543. "type": "string",
  544. "description": "标题下方的描述信息, 默认值: -"
  545. },
  546. "van-cell/size": {
  547. "type": "string",
  548. "description": "单元格大小,可选值为 `large`, 默认值: -"
  549. },
  550. "van-cell/icon": {
  551. "type": "string",
  552. "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
  553. },
  554. "van-cell/icon-prefix": {
  555. "type": "string",
  556. "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
  557. },
  558. "van-cell/url": {
  559. "type": "string",
  560. "description": "点击后跳转的链接地址, 默认值: -"
  561. },
  562. "van-cell/to": {
  563. "type": "string | object",
  564. "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
  565. },
  566. "van-cell/replace": {
  567. "type": "boolean",
  568. "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
  569. },
  570. "van-cell/clickable": {
  571. "type": "boolean",
  572. "description": "是否开启点击反馈, 默认值: `null`"
  573. },
  574. "van-cell/is-link": {
  575. "type": "boolean",
  576. "description": "是否展示右侧箭头并开启点击反馈, 默认值: `false`"
  577. },
  578. "van-cell/required": {
  579. "type": "boolean",
  580. "description": "是否显示表单必填星号, 默认值: `false`"
  581. },
  582. "van-cell/center": {
  583. "type": "boolean",
  584. "description": "是否使内容垂直居中, 默认值: `false`"
  585. },
  586. "van-cell/arrow-direction": {
  587. "type": "string",
  588. "description": "箭头方向,可选值为 `left` `up` `down`, 默认值: `right`"
  589. },
  590. "van-cell/title-style": {
  591. "type": "any",
  592. "description": "左侧标题额外样式, 默认值: -"
  593. },
  594. "van-cell/title-class": {
  595. "type": "any",
  596. "description": "左侧标题额外类名, 默认值: -"
  597. },
  598. "van-cell/value-class": {
  599. "type": "any",
  600. "description": "右侧内容额外类名, 默认值: -"
  601. },
  602. "van-cell/label-class": {
  603. "type": "any",
  604. "description": "描述信息额外类名, 默认值: -"
  605. },
  606. "van-checkbox/v-model (value)": {
  607. "type": "any[]",
  608. "description": "所有选中项的标识符, 默认值: -"
  609. },
  610. "van-checkbox/name": {
  611. "type": "any",
  612. "description": "标识符, 默认值: -"
  613. },
  614. "van-checkbox/shape": {
  615. "type": "string",
  616. "description": "形状,可选值为 `square`, 默认值: `round`"
  617. },
  618. "van-checkbox/disabled": {
  619. "type": "boolean",
  620. "description": "是否禁用所有复选框, 默认值: `false`"
  621. },
  622. "van-checkbox/label-disabled": {
  623. "type": "boolean",
  624. "description": "是否禁用复选框文本点击, 默认值: `false`"
  625. },
  626. "van-checkbox/label-position": {
  627. "type": "string",
  628. "description": "文本位置,可选值为 `left`, 默认值: `right`"
  629. },
  630. "van-checkbox/icon-size": {
  631. "type": "number | string",
  632. "description": "所有复选框的图标大小,默认单位为 `px`, 默认值: `20px`"
  633. },
  634. "van-checkbox/checked-color": {
  635. "type": "string",
  636. "description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
  637. },
  638. "van-checkbox/bind-group": {
  639. "type": "boolean",
  640. "description": "是否与复选框组绑定, 默认值: `true`"
  641. },
  642. "van-checkbox/max": {
  643. "type": "number | string",
  644. "description": "最大可选数,`0`为无限制, 默认值: `0`"
  645. },
  646. "van-checkbox/direction": {
  647. "type": "string",
  648. "description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
  649. },
  650. "van-circle/v-model": {
  651. "type": "number",
  652. "description": "当前进度, 默认值: -"
  653. },
  654. "van-circle/rate": {
  655. "type": "number | string",
  656. "description": "目标进度, 默认值: `100`"
  657. },
  658. "van-circle/size": {
  659. "type": "number | string",
  660. "description": "圆环直径,默认单位为 `px`, 默认值: `100px`"
  661. },
  662. "van-circle/color": {
  663. "type": "string | object",
  664. "description": "进度条颜色,传入对象格式可以定义渐变色, 默认值: `#1989fa`"
  665. },
  666. "van-circle/layer-color": {
  667. "type": "string",
  668. "description": "轨道颜色, 默认值: `white`"
  669. },
  670. "van-circle/fill": {
  671. "type": "string",
  672. "description": "填充颜色, 默认值: `none`"
  673. },
  674. "van-circle/speed": {
  675. "type": "number | string",
  676. "description": "动画速度(单位为 rate/s), 默认值: `0`"
  677. },
  678. "van-circle/text": {
  679. "type": "string",
  680. "description": "文字, 默认值: -"
  681. },
  682. "van-circle/stroke-width": {
  683. "type": "number | string",
  684. "description": "进度条宽度, 默认值: `40`"
  685. },
  686. "van-circle/stroke-linecap": {
  687. "type": "string",
  688. "description": "进度条端点的形状,可选值为`square` `butt`, 默认值: `round`"
  689. },
  690. "van-circle/clockwise": {
  691. "type": "boolean",
  692. "description": "是否顺时针增加, 默认值: `true`"
  693. },
  694. "van-layout/type": {
  695. "type": "string",
  696. "description": "布局方式,可选值为`flex`, 默认值: -"
  697. },
  698. "van-layout/gutter": {
  699. "type": "number | string",
  700. "description": "列元素之间的间距(单位为 px), 默认值: -"
  701. },
  702. "van-layout/tag": {
  703. "type": "string",
  704. "description": "自定义元素标签, 默认值: `div`"
  705. },
  706. "van-layout/justify": {
  707. "type": "string",
  708. "description": "Flex 主轴对齐方式,可选值为 `end` `center` <br> `space-around` `space-between`, 默认值: `start`"
  709. },
  710. "van-layout/align": {
  711. "type": "string",
  712. "description": "Flex 交叉轴对齐方式,可选值为 `center` `bottom`, 默认值: `top`"
  713. },
  714. "van-layout/span": {
  715. "type": "number | string",
  716. "description": "列元素宽度, 默认值: -"
  717. },
  718. "van-layout/offset": {
  719. "type": "number | string",
  720. "description": "列元素偏移距离, 默认值: -"
  721. },
  722. "van-collapse/v-model": {
  723. "type": "手风琴模式:_number | string_<br>非手风琴模式:_(number \\",
  724. "description": "当前展开面板的 name, 默认值: string)[]_"
  725. },
  726. "van-collapse/accordion": {
  727. "type": "boolean",
  728. "description": "是否开启手风琴模式, 默认值: `false`"
  729. },
  730. "van-collapse/border": {
  731. "type": "boolean",
  732. "description": "是否显示内边框, 默认值: `true`"
  733. },
  734. "van-collapse/name": {
  735. "type": "number | string",
  736. "description": "唯一标识符,默认为索引值, 默认值: `index`"
  737. },
  738. "van-collapse/icon": {
  739. "type": "string",
  740. "description": "标题栏左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
  741. },
  742. "van-collapse/size": {
  743. "type": "string",
  744. "description": "标题栏大小,可选值为 `large`, 默认值: -"
  745. },
  746. "van-collapse/title": {
  747. "type": "number | string",
  748. "description": "标题栏左侧内容, 默认值: -"
  749. },
  750. "van-collapse/value": {
  751. "type": "number | string",
  752. "description": "标题栏右侧内容, 默认值: -"
  753. },
  754. "van-collapse/label": {
  755. "type": "number | string",
  756. "description": "标题栏描述信息, 默认值: -"
  757. },
  758. "van-collapse/is-link": {
  759. "type": "boolean",
  760. "description": "是否展示标题栏右侧箭头并开启点击反馈, 默认值: `true`"
  761. },
  762. "van-collapse/disabled": {
  763. "type": "boolean",
  764. "description": "是否禁用面板, 默认值: `false`"
  765. },
  766. "van-collapse/lazy-render": {
  767. "type": "boolean",
  768. "description": "是否在首次展开时才渲染面板内容, 默认值: `true`"
  769. },
  770. "van-collapse/title-class": {
  771. "type": "string",
  772. "description": "左侧标题额外类名, 默认值: -"
  773. },
  774. "van-collapse/value-class": {
  775. "type": "string",
  776. "description": "右侧内容额外类名, 默认值: -"
  777. },
  778. "van-collapse/label-class": {
  779. "type": "string",
  780. "description": "描述信息额外类名, 默认值: -"
  781. },
  782. "van-contact-edit/contact-info": {
  783. "type": "Contact",
  784. "description": "联系人信息, 默认值: `{}`"
  785. },
  786. "van-contact-edit/is-edit": {
  787. "type": "boolean",
  788. "description": "是否为编辑联系人, 默认值: `false`"
  789. },
  790. "van-contact-edit/is-saving": {
  791. "type": "boolean",
  792. "description": "是否显示保存按钮加载动画, 默认值: `false`"
  793. },
  794. "van-contact-edit/is-deleting": {
  795. "type": "boolean",
  796. "description": "是否显示删除按钮加载动画, 默认值: `false`"
  797. },
  798. "van-contact-edit/tel-validator": {
  799. "type": "(tel: string) => boolean",
  800. "description": "手机号格式校验函数, 默认值: -"
  801. },
  802. "van-contact-edit/show-set-default": {
  803. "type": "boolean",
  804. "description": "是否显示默认联系人栏, 默认值: `false`"
  805. },
  806. "van-contact-edit/set-default-label": {
  807. "type": "string",
  808. "description": "默认联系人栏文案, 默认值: -"
  809. },
  810. "van-contact-list/v-model": {
  811. "type": "number | string",
  812. "description": "当前选中联系人的 id, 默认值: -"
  813. },
  814. "van-contact-list/list": {
  815. "type": "Contact[]",
  816. "description": "联系人列表, 默认值: `[]`"
  817. },
  818. "van-contact-list/add-text": {
  819. "type": "string",
  820. "description": "新建按钮文案, 默认值: `新建联系人`"
  821. },
  822. "van-contact-list/default-tag-text": {
  823. "type": "string",
  824. "description": "默认联系人标签文案, 默认值: -"
  825. },
  826. "van-contact-card/type": {
  827. "type": "string",
  828. "description": "卡片类型,可选值为 `edit`, 默认值: `add`"
  829. },
  830. "van-contact-card/name": {
  831. "type": "string",
  832. "description": "联系人姓名, 默认值: -"
  833. },
  834. "van-contact-card/tel": {
  835. "type": "string",
  836. "description": "联系人手机号, 默认值: -"
  837. },
  838. "van-contact-card/add-text": {
  839. "type": "string",
  840. "description": "添加时的文案提示, 默认值: `添加联系人`"
  841. },
  842. "van-count-down/time": {
  843. "type": "number | string",
  844. "description": "倒计时时长,单位毫秒, 默认值: `0`"
  845. },
  846. "van-count-down/format": {
  847. "type": "string",
  848. "description": "时间格式, 默认值: `HH:mm:ss`"
  849. },
  850. "van-count-down/auto-start": {
  851. "type": "boolean",
  852. "description": "是否自动开始倒计时, 默认值: `true`"
  853. },
  854. "van-count-down/millisecond": {
  855. "type": "boolean",
  856. "description": "是否开启毫秒级渲染, 默认值: `false`"
  857. },
  858. "van-coupon/title": {
  859. "type": "string",
  860. "description": "单元格标题, 默认值: `优惠券`"
  861. },
  862. "van-coupon/chosen-coupon": {
  863. "type": "number",
  864. "description": "当前选中优惠券的索引, 默认值: `-1`"
  865. },
  866. "van-coupon/coupons": {
  867. "type": "Coupon[]",
  868. "description": "可用优惠券列表, 默认值: `[]`"
  869. },
  870. "van-coupon/editable": {
  871. "type": "boolean",
  872. "description": "能否切换优惠券, 默认值: `true`"
  873. },
  874. "van-coupon/border": {
  875. "type": "boolean",
  876. "description": "是否显示内边框, 默认值: `true`"
  877. },
  878. "van-coupon/currency": {
  879. "type": "string",
  880. "description": "货币符号, 默认值: `¥`"
  881. },
  882. "van-coupon/v-model": {
  883. "type": "string",
  884. "description": "当前输入的兑换码, 默认值: -"
  885. },
  886. "van-coupon/disabled-coupons": {
  887. "type": "Coupon[]",
  888. "description": "不可用优惠券列表, 默认值: `[]`"
  889. },
  890. "van-coupon/enabled-title": {
  891. "type": "string",
  892. "description": "可用优惠券列表标题, 默认值: `可使用优惠券`"
  893. },
  894. "van-coupon/disabled-title": {
  895. "type": "string",
  896. "description": "不可用优惠券列表标题, 默认值: `不可使用优惠券`"
  897. },
  898. "van-coupon/exchange-button-text": {
  899. "type": "string",
  900. "description": "兑换按钮文字, 默认值: `兑换`"
  901. },
  902. "van-coupon/exchange-button-loading": {
  903. "type": "boolean",
  904. "description": "是否显示兑换按钮加载动画, 默认值: `false`"
  905. },
  906. "van-coupon/exchange-button-disabled": {
  907. "type": "boolean",
  908. "description": "是否禁用兑换按钮, 默认值: `false`"
  909. },
  910. "van-coupon/exchange-min-length": {
  911. "type": "number",
  912. "description": "兑换码最小长度, 默认值: `1`"
  913. },
  914. "van-coupon/displayed-coupon-index": {
  915. "type": "number",
  916. "description": "滚动至特定优惠券位置, 默认值: -"
  917. },
  918. "van-coupon/show-close-button": {
  919. "type": "boolean",
  920. "description": "是否显示列表底部按钮, 默认值: `true`"
  921. },
  922. "van-coupon/close-button-text": {
  923. "type": "string",
  924. "description": "列表底部按钮文字, 默认值: `不使用优惠`"
  925. },
  926. "van-coupon/input-placeholder": {
  927. "type": "string",
  928. "description": "输入框文字提示, 默认值: `请输入优惠码`"
  929. },
  930. "van-coupon/show-exchange-bar": {
  931. "type": "boolean",
  932. "description": "是否展示兑换栏, 默认值: `true`"
  933. },
  934. "van-coupon/empty-image": {
  935. "type": "string",
  936. "description": "列表为空时的占位图, 默认值: `https://img01.yzcdn.cn/vant/coupon-empty.png`"
  937. },
  938. "van-coupon/show-count": {
  939. "type": "boolean",
  940. "description": "是否展示可用 / 不可用数量, 默认值: `true`"
  941. },
  942. "van-datetime-picker/type": {
  943. "type": "string",
  944. "description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`, 默认值: `datetime`"
  945. },
  946. "van-datetime-picker/title": {
  947. "type": "string",
  948. "description": "顶部栏标题, 默认值: `''`"
  949. },
  950. "van-datetime-picker/confirm-button-text": {
  951. "type": "string",
  952. "description": "确认按钮文字, 默认值: `确认`"
  953. },
  954. "van-datetime-picker/cancel-button-text": {
  955. "type": "string",
  956. "description": "取消按钮文字, 默认值: `取消`"
  957. },
  958. "van-datetime-picker/show-toolbar": {
  959. "type": "boolean",
  960. "description": "是否显示顶部栏, 默认值: `true`"
  961. },
  962. "van-datetime-picker/loading": {
  963. "type": "boolean",
  964. "description": "是否显示加载状态, 默认值: `false`"
  965. },
  966. "van-datetime-picker/readonly": {
  967. "type": "boolean",
  968. "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
  969. },
  970. "van-datetime-picker/filter": {
  971. "type": "(type, vals) => vals",
  972. "description": "选项过滤函数, 默认值: -"
  973. },
  974. "van-datetime-picker/formatter": {
  975. "type": "(type, val) => val",
  976. "description": "选项格式化函数, 默认值: -"
  977. },
  978. "van-datetime-picker/columns-order": {
  979. "type": "string[]",
  980. "description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`, 默认值: -"
  981. },
  982. "van-datetime-picker/item-height": {
  983. "type": "number | string",
  984. "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
  985. },
  986. "van-datetime-picker/visible-item-count": {
  987. "type": "number | string",
  988. "description": "可见的选项个数, 默认值: `6`"
  989. },
  990. "van-datetime-picker/swipe-duration": {
  991. "type": "number | string",
  992. "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
  993. },
  994. "van-datetime-picker/min-date": {
  995. "type": "Date",
  996. "description": "可选的最小时间,精确到分钟, 默认值: 十年前"
  997. },
  998. "van-datetime-picker/max-date": {
  999. "type": "Date",
  1000. "description": "可选的最大时间,精确到分钟, 默认值: 十年后"
  1001. },
  1002. "van-datetime-picker/min-hour": {
  1003. "type": "number | string",
  1004. "description": "可选的最小小时, 默认值: `0`"
  1005. },
  1006. "van-datetime-picker/max-hour": {
  1007. "type": "number | string",
  1008. "description": "可选的最大小时, 默认值: `23`"
  1009. },
  1010. "van-datetime-picker/min-minute": {
  1011. "type": "number | string",
  1012. "description": "可选的最小分钟, 默认值: `0`"
  1013. },
  1014. "van-datetime-picker/max-minute": {
  1015. "type": "number | string",
  1016. "description": "可选的最大分钟, 默认值: `59`"
  1017. },
  1018. "van-divider/dashed": {
  1019. "type": "boolean",
  1020. "description": "是否使用虚线, 默认值: `false`"
  1021. },
  1022. "van-divider/hairline": {
  1023. "type": "boolean",
  1024. "description": "是否使用 0.5px 线, 默认值: `true`"
  1025. },
  1026. "van-divider/content-position": {
  1027. "type": "string",
  1028. "description": "内容位置,可选值为`left` `right`, 默认值: `center`"
  1029. },
  1030. "van-dialog/v-model": {
  1031. "type": "boolean",
  1032. "description": "是否显示弹窗, 默认值: -"
  1033. },
  1034. "van-dialog/title": {
  1035. "type": "string",
  1036. "description": "标题, 默认值: -"
  1037. },
  1038. "van-dialog/width": {
  1039. "type": "number | string",
  1040. "description": "弹窗宽度,默认单位为 `px`, 默认值: `320px`"
  1041. },
  1042. "van-dialog/message": {
  1043. "type": "string",
  1044. "description": "文本内容,支持通过 `\\n` 换行, 默认值: -"
  1045. },
  1046. "van-dialog/message-align": {
  1047. "type": "string",
  1048. "description": "内容对齐方式,可选值为 `left` `right`, 默认值: `center`"
  1049. },
  1050. "van-dialog/theme": {
  1051. "type": "string",
  1052. "description": "样式风格,可选值为 `round-button`, 默认值: `default`"
  1053. },
  1054. "van-dialog/show-confirm-button": {
  1055. "type": "boolean",
  1056. "description": "是否展示确认按钮, 默认值: `true`"
  1057. },
  1058. "van-dialog/show-cancel-button": {
  1059. "type": "boolean",
  1060. "description": "是否展示取消按钮, 默认值: `false`"
  1061. },
  1062. "van-dialog/confirm-button-text": {
  1063. "type": "string",
  1064. "description": "确认按钮文案, 默认值: `确认`"
  1065. },
  1066. "van-dialog/confirm-button-color": {
  1067. "type": "string",
  1068. "description": "确认按钮颜色, 默认值: `#ee0a24`"
  1069. },
  1070. "van-dialog/cancel-button-text": {
  1071. "type": "string",
  1072. "description": "取消按钮文案, 默认值: `取消`"
  1073. },
  1074. "van-dialog/cancel-button-color": {
  1075. "type": "string",
  1076. "description": "取消按钮颜色, 默认值: `black`"
  1077. },
  1078. "van-dialog/overlay": {
  1079. "type": "boolean",
  1080. "description": "是否展示遮罩层, 默认值: `true`"
  1081. },
  1082. "van-dialog/overlay-class": {
  1083. "type": "string",
  1084. "description": "自定义遮罩层类名, 默认值: -"
  1085. },
  1086. "van-dialog/overlay-style": {
  1087. "type": "object",
  1088. "description": "自定义遮罩层样式, 默认值: -"
  1089. },
  1090. "van-dialog/close-on-popstate": {
  1091. "type": "boolean",
  1092. "description": "是否在页面回退时自动关闭, 默认值: `true`"
  1093. },
  1094. "van-dialog/close-on-click-overlay": {
  1095. "type": "boolean",
  1096. "description": "是否在点击遮罩层后关闭弹窗, 默认值: `false`"
  1097. },
  1098. "van-dialog/lazy-render": {
  1099. "type": "boolean",
  1100. "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
  1101. },
  1102. "van-dialog/lock-scroll": {
  1103. "type": "boolean",
  1104. "description": "是否锁定背景滚动, 默认值: `true`"
  1105. },
  1106. "van-dialog/allow-html": {
  1107. "type": "boolean",
  1108. "description": "是否允许 message 内容中渲染 HTML, 默认值: `true`"
  1109. },
  1110. "van-dialog/before-close": {
  1111. "type": "(action, done) => void",
  1112. "description": "关闭前的回调函数,<br>调用 done() 后关闭弹窗,<br>调用 done(false) 阻止弹窗关闭, 默认值: -"
  1113. },
  1114. "van-dialog/transition": {
  1115. "type": "string",
  1116. "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: -"
  1117. },
  1118. "van-dialog/get-container": {
  1119. "type": "string | () => Element",
  1120. "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
  1121. },
  1122. "van-dropdown-menu/active-color": {
  1123. "type": "string",
  1124. "description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
  1125. },
  1126. "van-dropdown-menu/direction": {
  1127. "type": "string",
  1128. "description": "菜单展开方向,可选值为`up`, 默认值: `down`"
  1129. },
  1130. "van-dropdown-menu/z-index": {
  1131. "type": "number | string",
  1132. "description": "菜单栏 z-index 层级, 默认值: `10`"
  1133. },
  1134. "van-dropdown-menu/duration": {
  1135. "type": "number | string",
  1136. "description": "动画时长,单位秒, 默认值: `0.2`"
  1137. },
  1138. "van-dropdown-menu/overlay": {
  1139. "type": "boolean",
  1140. "description": "是否显示遮罩层, 默认值: `true`"
  1141. },
  1142. "van-dropdown-menu/close-on-click-overlay": {
  1143. "type": "boolean",
  1144. "description": "是否在点击遮罩层后关闭菜单, 默认值: `true`"
  1145. },
  1146. "van-dropdown-menu/close-on-click-outside": {
  1147. "type": "boolean",
  1148. "description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
  1149. },
  1150. "van-dropdown-menu/value": {
  1151. "type": "number | string",
  1152. "description": "当前选中项对应的 value,可以通过`v-model`双向绑定, 默认值: -"
  1153. },
  1154. "van-dropdown-menu/title": {
  1155. "type": "string",
  1156. "description": "菜单项标题, 默认值: 当前选中项文字"
  1157. },
  1158. "van-dropdown-menu/options": {
  1159. "type": "Option[]",
  1160. "description": "选项数组, 默认值: `[]`"
  1161. },
  1162. "van-dropdown-menu/disabled": {
  1163. "type": "boolean",
  1164. "description": "是否禁用菜单, 默认值: `false`"
  1165. },
  1166. "van-dropdown-menu/lazy-render": {
  1167. "type": "boolean",
  1168. "description": "是否在首次展开时才渲染菜单内容, 默认值: `true`"
  1169. },
  1170. "van-dropdown-menu/title-class": {
  1171. "type": "string",
  1172. "description": "标题额外类名, 默认值: -"
  1173. },
  1174. "van-dropdown-menu/get-container": {
  1175. "type": "string | () => Element",
  1176. "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
  1177. },
  1178. "van-empty/image": {
  1179. "type": "string",
  1180. "description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL, 默认值: `default`"
  1181. },
  1182. "van-empty/image-size": {
  1183. "type": "number | string",
  1184. "description": "图片大小,默认单位为 `px`, 默认值: -"
  1185. },
  1186. "van-empty/description": {
  1187. "type": "string",
  1188. "description": "图片下方的描述文字, 默认值: -"
  1189. },
  1190. "van-field/v-model (value)": {
  1191. "type": "number | string",
  1192. "description": "当前输入的值, 默认值: -"
  1193. },
  1194. "van-field/label": {
  1195. "type": "string",
  1196. "description": "输入框左侧文本, 默认值: -"
  1197. },
  1198. "van-field/name": {
  1199. "type": "string",
  1200. "description": "名称,提交表单的标识符, 默认值: -"
  1201. },
  1202. "van-field/type": {
  1203. "type": "string",
  1204. "description": "输入框类型, 可选值为 `tel` `digit`<br>`number` `textarea` `password` 等, 默认值: `text`"
  1205. },
  1206. "van-field/size": {
  1207. "type": "string",
  1208. "description": "大小,可选值为 `large`, 默认值: -"
  1209. },
  1210. "van-field/maxlength": {
  1211. "type": "number | string",
  1212. "description": "输入的最大字符数, 默认值: -"
  1213. },
  1214. "van-field/placeholder": {
  1215. "type": "string",
  1216. "description": "输入框占位提示文字, 默认值: -"
  1217. },
  1218. "van-field/border": {
  1219. "type": "boolean",
  1220. "description": "是否显示内边框, 默认值: `true`"
  1221. },
  1222. "van-field/disabled": {
  1223. "type": "boolean",
  1224. "description": "是否禁用输入框, 默认值: `false`"
  1225. },
  1226. "van-field/readonly": {
  1227. "type": "boolean",
  1228. "description": "是否只读, 默认值: `false`"
  1229. },
  1230. "van-field/colon": {
  1231. "type": "boolean",
  1232. "description": "是否在 label 后面添加冒号, 默认值: `false`"
  1233. },
  1234. "van-field/required": {
  1235. "type": "boolean",
  1236. "description": "是否显示表单必填星号, 默认值: `false`"
  1237. },
  1238. "van-field/center": {
  1239. "type": "boolean",
  1240. "description": "是否使内容垂直居中, 默认值: `false`"
  1241. },
  1242. "van-field/clearable": {
  1243. "type": "boolean",
  1244. "description": "是否启用清除图标,点击清除图标后会清空输入框, 默认值: `false`"
  1245. },
  1246. "van-field/clear-trigger": {
  1247. "type": "string",
  1248. "description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
  1249. },
  1250. "van-field/clickable": {
  1251. "type": "boolean",
  1252. "description": "是否开启点击反馈, 默认值: `false`"
  1253. },
  1254. "van-field/is-link": {
  1255. "type": "boolean",
  1256. "description": "是否展示右侧箭头并开启点击反馈, 默认值: `false`"
  1257. },
  1258. "van-field/autofocus": {
  1259. "type": "boolean",
  1260. "description": "是否自动聚焦,iOS 系统不支持该属性, 默认值: `false`"
  1261. },
  1262. "van-field/show-word-limit": {
  1263. "type": "boolean",
  1264. "description": "是否显示字数统计,需要设置`maxlength`属性, 默认值: `false`"
  1265. },
  1266. "van-field/error": {
  1267. "type": "boolean",
  1268. "description": "是否将输入内容标红, 默认值: `false`"
  1269. },
  1270. "van-field/error-message": {
  1271. "type": "string",
  1272. "description": "底部错误提示文案,为空时不展示, 默认值: -"
  1273. },
  1274. "van-field/formatter": {
  1275. "type": "Function",
  1276. "description": "输入内容格式化函数, 默认值: -"
  1277. },
  1278. "van-field/format-trigger": {
  1279. "type": "string",
  1280. "description": "格式化函数触发的时机,可选值为 `onBlur`, 默认值: `onChange`"
  1281. },
  1282. "van-field/arrow-direction": {
  1283. "type": "string",
  1284. "description": "箭头方向,可选值为 `left` `up` `down`, 默认值: `right`"
  1285. },
  1286. "van-field/label-class": {
  1287. "type": "any",
  1288. "description": "左侧文本额外类名, 默认值: -"
  1289. },
  1290. "van-field/label-width": {
  1291. "type": "number | string",
  1292. "description": "左侧文本宽度,默认单位为`px`, 默认值: `6.2em`"
  1293. },
  1294. "van-field/label-align": {
  1295. "type": "string",
  1296. "description": "左侧文本对齐方式,可选值为 `center` `right`, 默认值: `left`"
  1297. },
  1298. "van-field/input-align": {
  1299. "type": "string",
  1300. "description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
  1301. },
  1302. "van-field/error-message-align": {
  1303. "type": "string",
  1304. "description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
  1305. },
  1306. "van-field/autosize": {
  1307. "type": "boolean | object",
  1308. "description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`, 默认值: `false`"
  1309. },
  1310. "van-field/left-icon": {
  1311. "type": "string",
  1312. "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
  1313. },
  1314. "van-field/right-icon": {
  1315. "type": "string",
  1316. "description": "右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
  1317. },
  1318. "van-field/icon-prefix": {
  1319. "type": "string",
  1320. "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
  1321. },
  1322. "van-field/rules": {
  1323. "type": "Rule[]",
  1324. "description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou), 默认值: -"
  1325. },
  1326. "van-field/autocomplete": {
  1327. "type": "string",
  1328. "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
  1329. },
  1330. "van-form/label-width": {
  1331. "type": "number | string",
  1332. "description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
  1333. },
  1334. "van-form/label-align": {
  1335. "type": "string",
  1336. "description": "表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
  1337. },
  1338. "van-form/input-align": {
  1339. "type": "string",
  1340. "description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
  1341. },
  1342. "van-form/error-message-align": {
  1343. "type": "string",
  1344. "description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
  1345. },
  1346. "van-form/validate-trigger": {
  1347. "type": "string",
  1348. "description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表, 默认值: `onBlur`"
  1349. },
  1350. "van-form/colon": {
  1351. "type": "boolean",
  1352. "description": "是否在 label 后面添加冒号, 默认值: `false`"
  1353. },
  1354. "van-form/disabled": {
  1355. "type": "boolean",
  1356. "description": "是否禁用表单中的所有输入框, 默认值: `false`"
  1357. },
  1358. "van-form/readonly": {
  1359. "type": "boolean",
  1360. "description": "是否将表单中的所有输入框设置为只读, 默认值: `false`"
  1361. },
  1362. "van-form/validate-first": {
  1363. "type": "boolean",
  1364. "description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
  1365. },
  1366. "van-form/scroll-to-error": {
  1367. "type": "boolean",
  1368. "description": "是否在提交表单且校验不通过时滚动至错误的表单项, 默认值: `false`"
  1369. },
  1370. "van-form/show-error": {
  1371. "type": "boolean",
  1372. "description": "是否在校验不通过时标红输入框, 默认值: `true`"
  1373. },
  1374. "van-form/show-error-message": {
  1375. "type": "boolean",
  1376. "description": "是否在校验不通过时在输入框下方展示错误提示, 默认值: `true`"
  1377. },
  1378. "van-form/submit-on-enter": {
  1379. "type": "boolean",
  1380. "description": "是否在按下回车键时提交表单, 默认值: `true`"
  1381. },
  1382. "van-goods-action/safe-area-inset-bottom": {
  1383. "type": "boolean",
  1384. "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
  1385. },
  1386. "van-goods-action/text": {
  1387. "type": "string",
  1388. "description": "按钮文字, 默认值: -"
  1389. },
  1390. "van-goods-action/icon": {
  1391. "type": "string",
  1392. "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
  1393. },
  1394. "van-goods-action/color": {
  1395. "type": "string",
  1396. "description": "按钮颜色,支持传入`linear-gradient`渐变色, 默认值: -"
  1397. },
  1398. "van-goods-action/icon-class": {
  1399. "type": "any",
  1400. "description": "图标额外类名, 默认值: -"
  1401. },
  1402. "van-goods-action/dot": {
  1403. "type": "boolean",
  1404. "description": "是否显示图标右上角小红点, 默认值: `false`"
  1405. },
  1406. "van-goods-action/badge": {
  1407. "type": "number | string",
  1408. "description": "图标右上角徽标的内容, 默认值: -"
  1409. },
  1410. "van-goods-action/info": {
  1411. "type": "number | string",
  1412. "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
  1413. },
  1414. "van-goods-action/url": {
  1415. "type": "string",
  1416. "description": "点击后跳转的链接地址, 默认值: -"
  1417. },
  1418. "van-goods-action/to": {
  1419. "type": "string | object",
  1420. "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
  1421. },
  1422. "van-goods-action/replace": {
  1423. "type": "boolean",
  1424. "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
  1425. },
  1426. "van-goods-action/type": {
  1427. "type": "string",
  1428. "description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
  1429. },
  1430. "van-goods-action/disabled": {
  1431. "type": "boolean",
  1432. "description": "是否禁用按钮, 默认值: `false`"
  1433. },
  1434. "van-goods-action/loading": {
  1435. "type": "boolean",
  1436. "description": "是否显示为加载状态, 默认值: `false`"
  1437. },
  1438. "van-grid/column-num": {
  1439. "type": "number | string",
  1440. "description": "列数, 默认值: `4`"
  1441. },
  1442. "van-grid/icon-size": {
  1443. "type": "number | string",
  1444. "description": "图标大小,默认单位为`px`, 默认值: `28px`"
  1445. },
  1446. "van-grid/gutter": {
  1447. "type": "number | string",
  1448. "description": "格子之间的间距,默认单位为`px`, 默认值: `0`"
  1449. },
  1450. "van-grid/border": {
  1451. "type": "boolean",
  1452. "description": "是否显示边框, 默认值: `true`"
  1453. },
  1454. "van-grid/center": {
  1455. "type": "boolean",
  1456. "description": "是否将格子内容居中显示, 默认值: `true`"
  1457. },
  1458. "van-grid/square": {
  1459. "type": "boolean",
  1460. "description": "是否将格子固定为正方形, 默认值: `false`"
  1461. },
  1462. "van-grid/clickable": {
  1463. "type": "boolean",
  1464. "description": "是否开启格子点击反馈, 默认值: `false`"
  1465. },
  1466. "van-grid/direction": {
  1467. "type": "string",
  1468. "description": "格子内容排列的方向,可选值为 `horizontal`, 默认值: `vertical`"
  1469. },
  1470. "van-grid/text": {
  1471. "type": "string",
  1472. "description": "文字, 默认值: -"
  1473. },
  1474. "van-grid/icon": {
  1475. "type": "string",
  1476. "description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
  1477. },
  1478. "van-grid/icon-prefix": {
  1479. "type": "string",
  1480. "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
  1481. },
  1482. "van-grid/dot": {
  1483. "type": "boolean",
  1484. "description": "是否显示图标右上角小红点, 默认值: `false`"
  1485. },
  1486. "van-grid/badge": {
  1487. "type": "number | string",
  1488. "description": "图标右上角徽标的内容, 默认值: -"
  1489. },
  1490. "van-grid/info": {
  1491. "type": "number | string",
  1492. "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
  1493. },
  1494. "van-grid/url": {
  1495. "type": "string",
  1496. "description": "点击后跳转的链接地址, 默认值: -"
  1497. },
  1498. "van-grid/to": {
  1499. "type": "string | object",
  1500. "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
  1501. },
  1502. "van-grid/replace": {
  1503. "type": "boolean",
  1504. "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
  1505. },
  1506. "van-icon/name": {
  1507. "type": "string",
  1508. "description": "图标名称或图片链接, 默认值: -"
  1509. },
  1510. "van-icon/dot": {
  1511. "type": "boolean",
  1512. "description": "是否显示图标右上角小红点, 默认值: `false`"
  1513. },
  1514. "van-icon/badge": {
  1515. "type": "number | string",
  1516. "description": "图标右上角徽标的内容, 默认值: -"
  1517. },
  1518. "van-icon/info": {
  1519. "type": "number | string",
  1520. "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
  1521. },
  1522. "van-icon/color": {
  1523. "type": "string",
  1524. "description": "图标颜色, 默认值: `inherit`"
  1525. },
  1526. "van-icon/size": {
  1527. "type": "number | string",
  1528. "description": "图标大小,如 `20px` `2em`,默认单位为`px`, 默认值: `inherit`"
  1529. },
  1530. "van-icon/class-prefix": {
  1531. "type": "string",
  1532. "description": "类名前缀,用于使用自定义图标, 默认值: `van-icon`"
  1533. },
  1534. "van-icon/tag": {
  1535. "type": "string",
  1536. "description": "HTML 标签, 默认值: `i`"
  1537. },
  1538. "van-image/src": {
  1539. "type": "string",
  1540. "description": "图片链接, 默认值: -"
  1541. },
  1542. "van-image/fit": {
  1543. "type": "string",
  1544. "description": "图片填充模式, 默认值: `fill`"
  1545. },
  1546. "van-image/alt": {
  1547. "type": "string",
  1548. "description": "替代文本, 默认值: -"
  1549. },
  1550. "van-image/width": {
  1551. "type": "number | string",
  1552. "description": "宽度,默认单位为`px`, 默认值: -"
  1553. },
  1554. "van-image/height": {
  1555. "type": "number | string",
  1556. "description": "高度,默认单位为`px`, 默认值: -"
  1557. },
  1558. "van-image/radius": {
  1559. "type": "number | string",
  1560. "description": "圆角大小,默认单位为`px`, 默认值: `0`"
  1561. },
  1562. "van-image/round": {
  1563. "type": "boolean",
  1564. "description": "是否显示为圆形, 默认值: `false`"
  1565. },
  1566. "van-image/lazy-load": {
  1567. "type": "boolean",
  1568. "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
  1569. },
  1570. "van-image/show-error": {
  1571. "type": "boolean",
  1572. "description": "是否展示图片加载失败提示, 默认值: `true`"
  1573. },
  1574. "van-image/show-loading": {
  1575. "type": "boolean",
  1576. "description": "是否展示图片加载中提示, 默认值: `true`"
  1577. },
  1578. "van-image/error-icon": {
  1579. "type": "string",
  1580. "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo-fail`"
  1581. },
  1582. "van-image/loading-icon": {
  1583. "type": "string",
  1584. "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo`"
  1585. },
  1586. "van-image/icon-prefix": {
  1587. "type": "string",
  1588. "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
  1589. },
  1590. "van-image-preview/images": {
  1591. "type": "string[]",
  1592. "description": "需要预览的图片 URL 数组, 默认值: `[]`"
  1593. },
  1594. "van-image-preview/start-position": {
  1595. "type": "number | string",
  1596. "description": "图片预览起始位置索引, 默认值: `0`"
  1597. },
  1598. "van-image-preview/swipe-duration": {
  1599. "type": "number | string",
  1600. "description": "动画时长,单位为 ms, 默认值: `300`"
  1601. },
  1602. "van-image-preview/show-index": {
  1603. "type": "boolean",
  1604. "description": "是否显示页码, 默认值: `true`"
  1605. },
  1606. "van-image-preview/show-indicators": {
  1607. "type": "boolean",
  1608. "description": "是否显示轮播指示器, 默认值: `false`"
  1609. },
  1610. "van-image-preview/loop": {
  1611. "type": "boolean",
  1612. "description": "是否开启循环播放, 默认值: `true`"
  1613. },
  1614. "van-image-preview/async-close": {
  1615. "type": "boolean",
  1616. "description": "是否开启异步关闭, 默认值: `false`"
  1617. },
  1618. "van-image-preview/close-on-popstate": {
  1619. "type": "boolean",
  1620. "description": "是否在页面回退时自动关闭, 默认值: `true`"
  1621. },
  1622. "van-image-preview/class-name": {
  1623. "type": "any",
  1624. "description": "自定义类名, 默认值: -"
  1625. },
  1626. "van-image-preview/max-zoom": {
  1627. "type": "number | string",
  1628. "description": "手势缩放时,最大缩放比例, 默认值: `3`"
  1629. },
  1630. "van-image-preview/min-zoom": {
  1631. "type": "number | string",
  1632. "description": "手势缩放时,最小缩放比例, 默认值: `1/3`"
  1633. },
  1634. "van-image-preview/closeable": {
  1635. "type": "boolean",
  1636. "description": "是否显示关闭图标, 默认值: `false`"
  1637. },
  1638. "van-image-preview/close-icon": {
  1639. "type": "string",
  1640. "description": "关闭图标名称或图片链接, 默认值: `clear`"
  1641. },
  1642. "van-image-preview/close-icon-position": {
  1643. "type": "string",
  1644. "description": "关闭图标位置,可选值为`top-left`<br>`bottom-left` `bottom-right`, 默认值: `top-right`"
  1645. },
  1646. "van-image-preview/transition": {
  1647. "type": "string",
  1648. "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: `van-fade`"
  1649. },
  1650. "van-image-preview/overlay-style": {
  1651. "type": "object",
  1652. "description": "自定义遮罩层样式, 默认值: -"
  1653. },
  1654. "van-image-preview/get-container": {
  1655. "type": "string | () => Element",
  1656. "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
  1657. },
  1658. "van-index-bar/index-list": {
  1659. "type": "string[] | number[]",
  1660. "description": "索引字符列表, 默认值: `A-Z`"
  1661. },
  1662. "van-index-bar/z-index": {
  1663. "type": "number | string",
  1664. "description": "z-index 层级, 默认值: `1`"
  1665. },
  1666. "van-index-bar/sticky": {
  1667. "type": "boolean",
  1668. "description": "是否开启锚点自动吸顶, 默认值: `true`"
  1669. },
  1670. "van-index-bar/sticky-offset-top": {
  1671. "type": "number",
  1672. "description": "锚点自动吸顶时与顶部的距离, 默认值: `0`"
  1673. },
  1674. "van-index-bar/highlight-color": {
  1675. "type": "string",
  1676. "description": "索引字符高亮颜色, 默认值: `#ee0a24`"
  1677. },
  1678. "van-index-bar/index": {
  1679. "type": "number | string",
  1680. "description": "索引字符, 默认值: -"
  1681. },
  1682. "van-list/v-model": {
  1683. "type": "boolean",
  1684. "description": "是否处于加载状态,加载过程中不触发`load`事件, 默认值: `false`"
  1685. },
  1686. "van-list/finished": {
  1687. "type": "boolean",
  1688. "description": "是否已加载完成,加载完成后不再触发`load`事件, 默认值: `false`"
  1689. },
  1690. "van-list/error": {
  1691. "type": "boolean",
  1692. "description": "是否加载失败,加载失败后点击错误提示可以重新<br>触发`load`事件,必须使用`sync`修饰符, 默认值: `false`"
  1693. },
  1694. "van-list/offset": {
  1695. "type": "number | string",
  1696. "description": "滚动条与底部距离小于 offset 时触发`load`事件, 默认值: `300`"
  1697. },
  1698. "van-list/loading-text": {
  1699. "type": "string",
  1700. "description": "加载过程中的提示文案, 默认值: `加载中...`"
  1701. },
  1702. "van-list/finished-text": {
  1703. "type": "string",
  1704. "description": "加载完成后的提示文案, 默认值: -"
  1705. },
  1706. "van-list/error-text": {
  1707. "type": "string",
  1708. "description": "加载失败后的提示文案, 默认值: -"
  1709. },
  1710. "van-list/immediate-check": {
  1711. "type": "boolean",
  1712. "description": "是否在初始化时立即执行滚动位置检查, 默认值: `true`"
  1713. },
  1714. "van-list/direction": {
  1715. "type": "string",
  1716. "description": "滚动触发加载的方向,可选值为`up`, 默认值: `down`"
  1717. },
  1718. "van-loading/color": {
  1719. "type": "string",
  1720. "description": "颜色, 默认值: `#c9c9c9`"
  1721. },
  1722. "van-loading/type": {
  1723. "type": "string",
  1724. "description": "类型,可选值为 `spinner`, 默认值: `circular`"
  1725. },
  1726. "van-loading/size": {
  1727. "type": "number | string",
  1728. "description": "加载图标大小,默认单位为 `px`, 默认值: `30px`"
  1729. },
  1730. "van-loading/text-size": {
  1731. "type": "number | string",
  1732. "description": "文字大小,默认单位为 `px`, 默认值: `14px`"
  1733. },
  1734. "van-loading/text-color": {
  1735. "type": "string",
  1736. "description": "文字颜色, 默认值: `#c9c9c9`"
  1737. },
  1738. "van-loading/vertical": {
  1739. "type": "boolean",
  1740. "description": "是否垂直排列图标和文字内容, 默认值: `false`"
  1741. },
  1742. "van-nav-bar/title": {
  1743. "type": "string",
  1744. "description": "标题, 默认值: `''`"
  1745. },
  1746. "van-nav-bar/left-text": {
  1747. "type": "string",
  1748. "description": "左侧文案, 默认值: `''`"
  1749. },
  1750. "van-nav-bar/right-text": {
  1751. "type": "string",
  1752. "description": "右侧文案, 默认值: `''`"
  1753. },
  1754. "van-nav-bar/left-arrow": {
  1755. "type": "boolean",
  1756. "description": "是否显示左侧箭头, 默认值: `false`"
  1757. },
  1758. "van-nav-bar/border": {
  1759. "type": "boolean",
  1760. "description": "是否显示下边框, 默认值: `true`"
  1761. },
  1762. "van-nav-bar/fixed": {
  1763. "type": "boolean",
  1764. "description": "是否固定在顶部, 默认值: `false`"
  1765. },
  1766. "van-nav-bar/placeholder": {
  1767. "type": "boolean",
  1768. "description": "固定在顶部时,是否在标签位置生成一个等高的占位元素, 默认值: `false`"
  1769. },
  1770. "van-nav-bar/z-index": {
  1771. "type": "number | string",
  1772. "description": "导航栏 z-index, 默认值: `1`"
  1773. },
  1774. "van-nav-bar/safe-area-inset-top": {
  1775. "type": "boolean",
  1776. "description": "是否开启[顶部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
  1777. },
  1778. "van-notice-bar/mode": {
  1779. "type": "string",
  1780. "description": "通知栏模式,可选值为 `closeable` `link`, 默认值: `''`"
  1781. },
  1782. "van-notice-bar/text": {
  1783. "type": "string",
  1784. "description": "通知文本内容, 默认值: `''`"
  1785. },
  1786. "van-notice-bar/color": {
  1787. "type": "string",
  1788. "description": "通知文本颜色, 默认值: `#f60`"
  1789. },
  1790. "van-notice-bar/background": {
  1791. "type": "string",
  1792. "description": "滚动条背景, 默认值: `#fff7cc`"
  1793. },
  1794. "van-notice-bar/left-icon": {
  1795. "type": "string",
  1796. "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
  1797. },
  1798. "van-notice-bar/delay": {
  1799. "type": "number | string",
  1800. "description": "动画延迟时间 (s), 默认值: `1`"
  1801. },
  1802. "van-notice-bar/speed": {
  1803. "type": "number | string",
  1804. "description": "滚动速率 (px/s), 默认值: `60`"
  1805. },
  1806. "van-notice-bar/scrollable": {
  1807. "type": "boolean",
  1808. "description": "是否开启滚动播放,内容长度溢出时默认开启, 默认值: -"
  1809. },
  1810. "van-notice-bar/wrapable": {
  1811. "type": "boolean",
  1812. "description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
  1813. },
  1814. "van-number-keyboard/v-model (value)": {
  1815. "type": "string",
  1816. "description": "当前输入值, 默认值: -"
  1817. },
  1818. "van-number-keyboard/show": {
  1819. "type": "boolean",
  1820. "description": "是否显示键盘, 默认值: -"
  1821. },
  1822. "van-number-keyboard/title": {
  1823. "type": "string",
  1824. "description": "键盘标题, 默认值: -"
  1825. },
  1826. "van-number-keyboard/theme": {
  1827. "type": "string",
  1828. "description": "样式风格,可选值为 `custom`, 默认值: `default`"
  1829. },
  1830. "van-number-keyboard/maxlength": {
  1831. "type": "number | string",
  1832. "description": "输入值最大长度, 默认值: -"
  1833. },
  1834. "van-number-keyboard/transition": {
  1835. "type": "boolean",
  1836. "description": "是否开启过场动画, 默认值: `true`"
  1837. },
  1838. "van-number-keyboard/z-index": {
  1839. "type": "number | string",
  1840. "description": "键盘 z-index 层级, 默认值: `100`"
  1841. },
  1842. "van-number-keyboard/extra-key": {
  1843. "type": "string | string[]",
  1844. "description": "底部额外按键的内容, 默认值: `''`"
  1845. },
  1846. "van-number-keyboard/close-button-text": {
  1847. "type": "string",
  1848. "description": "关闭按钮文字,空则不展示, 默认值: -"
  1849. },
  1850. "van-number-keyboard/delete-button-text": {
  1851. "type": "string",
  1852. "description": "删除按钮文字,空则展示删除图标, 默认值: -"
  1853. },
  1854. "van-number-keyboard/close-button-loading": {
  1855. "type": "boolean",
  1856. "description": "是否将关闭按钮设置为加载中状态,仅在 `theme=\"custom\"` 时有效, 默认值: `false`"
  1857. },
  1858. "van-number-keyboard/show-delete-key": {
  1859. "type": "boolean",
  1860. "description": "是否展示删除图标, 默认值: `true`"
  1861. },
  1862. "van-number-keyboard/hide-on-click-outside": {
  1863. "type": "boolean",
  1864. "description": "点击外部时是否收起键盘, 默认值: `true`"
  1865. },
  1866. "van-number-keyboard/get-container": {
  1867. "type": "string | () => Element",
  1868. "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
  1869. },
  1870. "van-number-keyboard/safe-area-inset-bottom": {
  1871. "type": "boolean",
  1872. "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
  1873. },
  1874. "van-number-keyboard/random-key-order": {
  1875. "type": "boolean",
  1876. "description": "是否将通过随机顺序展示按键, 默认值: `false`"
  1877. },
  1878. "van-overlay/show": {
  1879. "type": "boolean",
  1880. "description": "是否展示遮罩层, 默认值: `false`"
  1881. },
  1882. "van-overlay/z-index": {
  1883. "type": "number | string",
  1884. "description": "z-index 层级, 默认值: `1`"
  1885. },
  1886. "van-overlay/duration": {
  1887. "type": "number | string",
  1888. "description": "动画时长,单位秒, 默认值: `0.3`"
  1889. },
  1890. "van-overlay/class-name": {
  1891. "type": "string",
  1892. "description": "自定义类名, 默认值: -"
  1893. },
  1894. "van-overlay/custom-style": {
  1895. "type": "object",
  1896. "description": "自定义样式, 默认值: -"
  1897. },
  1898. "van-overlay/lock-scroll": {
  1899. "type": "boolean",
  1900. "description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
  1901. },
  1902. "van-picker/columns": {
  1903. "type": "Column[]",
  1904. "description": "对象数组,配置每一列显示的数据, 默认值: `[]`"
  1905. },
  1906. "van-picker/title": {
  1907. "type": "string",
  1908. "description": "顶部栏标题, 默认值: -"
  1909. },
  1910. "van-picker/confirm-button-text": {
  1911. "type": "string",
  1912. "description": "确认按钮文字, 默认值: `确认`"
  1913. },
  1914. "van-picker/cancel-button-text": {
  1915. "type": "string",
  1916. "description": "取消按钮文字, 默认值: `取消`"
  1917. },
  1918. "van-picker/value-key": {
  1919. "type": "string",
  1920. "description": "选项对象中,选项文字对应的键名, 默认值: `text`"
  1921. },
  1922. "van-picker/toolbar-position": {
  1923. "type": "string",
  1924. "description": "顶部栏位置,可选值为`bottom`, 默认值: `top`"
  1925. },
  1926. "van-picker/loading": {
  1927. "type": "boolean",
  1928. "description": "是否显示加载状态, 默认值: `false`"
  1929. },
  1930. "van-picker/readonly": {
  1931. "type": "boolean",
  1932. "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
  1933. },
  1934. "van-picker/show-toolbar": {
  1935. "type": "boolean",
  1936. "description": "是否显示顶部栏, 默认值: `false`"
  1937. },
  1938. "van-picker/allow-html": {
  1939. "type": "boolean",
  1940. "description": "是否允许选项内容中渲染 HTML, 默认值: `true`"
  1941. },
  1942. "van-picker/default-index": {
  1943. "type": "number | string",
  1944. "description": "单列选择时,默认选中项的索引, 默认值: `0`"
  1945. },
  1946. "van-picker/item-height": {
  1947. "type": "number | string",
  1948. "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
  1949. },
  1950. "van-picker/visible-item-count": {
  1951. "type": "number | string",
  1952. "description": "可见的选项个数, 默认值: `6`"
  1953. },
  1954. "van-picker/swipe-duration": {
  1955. "type": "number | string",
  1956. "description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
  1957. },
  1958. "van-panel/title": {
  1959. "type": "string",
  1960. "description": "标题, 默认值: -"
  1961. },
  1962. "van-panel/desc": {
  1963. "type": "string",
  1964. "description": "描述, 默认值: -"
  1965. },
  1966. "van-panel/status": {
  1967. "type": "string",
  1968. "description": "状态, 默认值: -"
  1969. },
  1970. "van-panel/icon": {
  1971. "type": "string",
  1972. "description": "标题左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
  1973. },
  1974. "van-pagination/v-model": {
  1975. "type": "number",
  1976. "description": "当前页码, 默认值: -"
  1977. },
  1978. "van-pagination/mode": {
  1979. "type": "string",
  1980. "description": "显示模式,可选值为 `simple`, 默认值: `multi`"
  1981. },
  1982. "van-pagination/prev-text": {
  1983. "type": "string",
  1984. "description": "上一页按钮文字, 默认值: `上一页`"
  1985. },
  1986. "van-pagination/next-text": {
  1987. "type": "string",
  1988. "description": "下一页按钮文字, 默认值: `下一页`"
  1989. },
  1990. "van-pagination/page-count": {
  1991. "type": "number | string",
  1992. "description": "总页数, 默认值: 根据页数计算"
  1993. },
  1994. "van-pagination/total-items": {
  1995. "type": "number | string",
  1996. "description": "总记录数, 默认值: `0`"
  1997. },
  1998. "van-pagination/items-per-page": {
  1999. "type": "number | string",
  2000. "description": "每页记录数, 默认值: `10`"
  2001. },
  2002. "van-pagination/show-page-size": {
  2003. "type": "number | string",
  2004. "description": "显示的页码个数, 默认值: `5`"
  2005. },
  2006. "van-pagination/force-ellipses": {
  2007. "type": "boolean",
  2008. "description": "是否显示省略号, 默认值: `false`"
  2009. },
  2010. "van-password-input/value": {
  2011. "type": "string",
  2012. "description": "密码值, 默认值: `''`"
  2013. },
  2014. "van-password-input/info": {
  2015. "type": "string",
  2016. "description": "输入框下方文字提示, 默认值: -"
  2017. },
  2018. "van-password-input/error-info": {
  2019. "type": "string",
  2020. "description": "输入框下方错误提示, 默认值: -"
  2021. },
  2022. "van-password-input/length": {
  2023. "type": "number | string",
  2024. "description": "密码最大长度, 默认值: `6`"
  2025. },
  2026. "van-password-input/gutter": {
  2027. "type": "number | string",
  2028. "description": "输入框格子之间的间距,如 `20px` `2em`,默认单位为`px`, 默认值: `0`"
  2029. },
  2030. "van-password-input/mask": {
  2031. "type": "boolean",
  2032. "description": "是否隐藏密码内容, 默认值: `true`"
  2033. },
  2034. "van-password-input/focused": {
  2035. "type": "boolean",
  2036. "description": "是否已聚焦,聚焦时会显示光标, 默认值: `false`"
  2037. },
  2038. "van-popover/v-model": {
  2039. "type": "boolean",
  2040. "description": "是否展示气泡弹出层, 默认值: `false`"
  2041. },
  2042. "van-popover/actions": {
  2043. "type": "Action[]",
  2044. "description": "选项列表, 默认值: `[]`"
  2045. },
  2046. "van-popover/placement": {
  2047. "type": "string",
  2048. "description": "弹出位置, 默认值: `bottom`"
  2049. },
  2050. "van-popover/theme": {
  2051. "type": "string",
  2052. "description": "主题风格,可选值为 `dark`, 默认值: `light`"
  2053. },
  2054. "van-popover/trigger": {
  2055. "type": "-",
  2056. "description": "触发方式,可选值为 `click`, 默认值: undefined"
  2057. },
  2058. "van-popover/offset": {
  2059. "type": "[number, number]",
  2060. "description": "出现位置的偏移量, 默认值: `[0, 8]`"
  2061. },
  2062. "van-popover/overlay": {
  2063. "type": "boolean",
  2064. "description": "是否显示遮罩层, 默认值: `false`"
  2065. },
  2066. "van-popover/close-on-click-action": {
  2067. "type": "boolean",
  2068. "description": "是否在点击选项后关闭, 默认值: `true`"
  2069. },
  2070. "van-popover/close-on-click-outside": {
  2071. "type": "boolean",
  2072. "description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
  2073. },
  2074. "van-popover/get-container": {
  2075. "type": "string | () => Element",
  2076. "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: `body`"
  2077. },
  2078. "van-popup/v-model (value)": {
  2079. "type": "boolean",
  2080. "description": "是否显示弹出层, 默认值: `false`"
  2081. },
  2082. "van-popup/overlay": {
  2083. "type": "boolean",
  2084. "description": "是否显示遮罩层, 默认值: `true`"
  2085. },
  2086. "van-popup/position": {
  2087. "type": "string",
  2088. "description": "弹出位置,可选值为 `top` `bottom` `right` `left`, 默认值: `center`"
  2089. },
  2090. "van-popup/overlay-class": {
  2091. "type": "string",
  2092. "description": "自定义遮罩层类名, 默认值: -"
  2093. },
  2094. "van-popup/overlay-style": {
  2095. "type": "object",
  2096. "description": "自定义遮罩层样式, 默认值: -"
  2097. },
  2098. "van-popup/duration": {
  2099. "type": "number | string",
  2100. "description": "动画时长,单位秒, 默认值: `0.3`"
  2101. },
  2102. "van-popup/round": {
  2103. "type": "boolean",
  2104. "description": "是否显示圆角, 默认值: `false`"
  2105. },
  2106. "van-popup/lock-scroll": {
  2107. "type": "boolean",
  2108. "description": "是否锁定背景滚动, 默认值: `true`"
  2109. },
  2110. "van-popup/lazy-render": {
  2111. "type": "boolean",
  2112. "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
  2113. },
  2114. "van-popup/close-on-popstate": {
  2115. "type": "boolean",
  2116. "description": "是否在页面回退时自动关闭, 默认值: `false`"
  2117. },
  2118. "van-popup/close-on-click-overlay": {
  2119. "type": "boolean",
  2120. "description": "是否在点击遮罩层后关闭, 默认值: `true`"
  2121. },
  2122. "van-popup/closeable": {
  2123. "type": "boolean",
  2124. "description": "是否显示关闭图标, 默认值: `false`"
  2125. },
  2126. "van-popup/close-icon": {
  2127. "type": "string",
  2128. "description": "关闭图标名称或图片链接, 默认值: `cross`"
  2129. },
  2130. "van-popup/close-icon-position": {
  2131. "type": "string",
  2132. "description": "关闭图标位置,可选值为`top-left`<br>`bottom-left` `bottom-right`, 默认值: `top-right`"
  2133. },
  2134. "van-popup/transition": {
  2135. "type": "string",
  2136. "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性, 默认值: -"
  2137. },
  2138. "van-popup/transition-appear": {
  2139. "type": "boolean",
  2140. "description": "是否在初始渲染时启用过渡动画, 默认值: `false`"
  2141. },
  2142. "van-popup/get-container": {
  2143. "type": "string | () => Element",
  2144. "description": "指定挂载的节点, 默认值: -"
  2145. },
  2146. "van-popup/safe-area-inset-bottom": {
  2147. "type": "boolean",
  2148. "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
  2149. },
  2150. "van-progress/percentage": {
  2151. "type": "number | string",
  2152. "description": "进度百分比, 默认值: `0`"
  2153. },
  2154. "van-progress/stroke-width": {
  2155. "type": "number | string",
  2156. "description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
  2157. },
  2158. "van-progress/color": {
  2159. "type": "string",
  2160. "description": "进度条颜色, 默认值: `#1989fa`"
  2161. },
  2162. "van-progress/track-color": {
  2163. "type": "string",
  2164. "description": "轨道颜色, 默认值: `#e5e5e5`"
  2165. },
  2166. "van-progress/pivot-text": {
  2167. "type": "string",
  2168. "description": "进度文字内容, 默认值: 百分比"
  2169. },
  2170. "van-progress/pivot-color": {
  2171. "type": "string",
  2172. "description": "进度文字背景色, 默认值: 同进度条颜色"
  2173. },
  2174. "van-progress/text-color": {
  2175. "type": "string",
  2176. "description": "进度文字颜色, 默认值: `white`"
  2177. },
  2178. "van-progress/inactive": {
  2179. "type": "boolean",
  2180. "description": "是否置灰, 默认值: `false`"
  2181. },
  2182. "van-progress/show-pivot": {
  2183. "type": "boolean",
  2184. "description": "是否显示进度文字, 默认值: `true`"
  2185. },
  2186. "van-pull-refresh/v-model": {
  2187. "type": "boolean",
  2188. "description": "是否处于加载中状态, 默认值: -"
  2189. },
  2190. "van-pull-refresh/pulling-text": {
  2191. "type": "string",
  2192. "description": "下拉过程提示文案, 默认值: `下拉即可刷新...`"
  2193. },
  2194. "van-pull-refresh/loosing-text": {
  2195. "type": "string",
  2196. "description": "释放过程提示文案, 默认值: `释放即可刷新...`"
  2197. },
  2198. "van-pull-refresh/loading-text": {
  2199. "type": "string",
  2200. "description": "加载过程提示文案, 默认值: `加载中...`"
  2201. },
  2202. "van-pull-refresh/success-text": {
  2203. "type": "string",
  2204. "description": "刷新成功提示文案, 默认值: -"
  2205. },
  2206. "van-pull-refresh/success-duration": {
  2207. "type": "number | string",
  2208. "description": "刷新成功提示展示时长(ms), 默认值: `500`"
  2209. },
  2210. "van-pull-refresh/animation-duration": {
  2211. "type": "number | string",
  2212. "description": "动画时长, 默认值: `300`"
  2213. },
  2214. "van-pull-refresh/head-height": {
  2215. "type": "number | string",
  2216. "description": "顶部内容高度, 默认值: `50`"
  2217. },
  2218. "van-pull-refresh/pull-distance": {
  2219. "type": "number | string",
  2220. "description": "触发下拉刷新的距离, 默认值: 与 `head-height` 一致"
  2221. },
  2222. "van-pull-refresh/disabled": {
  2223. "type": "boolean",
  2224. "description": "是否禁用下拉刷新, 默认值: `false`"
  2225. },
  2226. "van-radio/name": {
  2227. "type": "any",
  2228. "description": "标识符, 默认值: -"
  2229. },
  2230. "van-radio/shape": {
  2231. "type": "string",
  2232. "description": "形状,可选值为 `square`, 默认值: `round`"
  2233. },
  2234. "van-radio/disabled": {
  2235. "type": "boolean",
  2236. "description": "是否禁用所有单选框, 默认值: `false`"
  2237. },
  2238. "van-radio/label-disabled": {
  2239. "type": "boolean",
  2240. "description": "是否禁用文本内容点击, 默认值: `false`"
  2241. },
  2242. "van-radio/label-position": {
  2243. "type": "string",
  2244. "description": "文本位置,可选值为 `left`, 默认值: `right`"
  2245. },
  2246. "van-radio/icon-size": {
  2247. "type": "number | string",
  2248. "description": "所有单选框的图标大小,默认单位为`px`, 默认值: `20px`"
  2249. },
  2250. "van-radio/checked-color": {
  2251. "type": "string",
  2252. "description": "所有单选框的选中状态颜色, 默认值: `#1989fa`"
  2253. },
  2254. "van-radio/v-model (value)": {
  2255. "type": "any",
  2256. "description": "当前选中项的标识符, 默认值: -"
  2257. },
  2258. "van-radio/direction": {
  2259. "type": "string",
  2260. "description": "排列方向,可选值为`horizontal`, 默认值: `vertical`"
  2261. },
  2262. "van-rate/v-model": {
  2263. "type": "number",
  2264. "description": "当前分值, 默认值: -"
  2265. },
  2266. "van-rate/count": {
  2267. "type": "number | string",
  2268. "description": "图标总数, 默认值: `5`"
  2269. },
  2270. "van-rate/size": {
  2271. "type": "number | string",
  2272. "description": "图标大小,默认单位为`px`, 默认值: `20px`"
  2273. },
  2274. "van-rate/gutter": {
  2275. "type": "number | string",
  2276. "description": "图标间距,默认单位为`px`, 默认值: `4px`"
  2277. },
  2278. "van-rate/color": {
  2279. "type": "string",
  2280. "description": "选中时的颜色, 默认值: `#ee0a24`"
  2281. },
  2282. "van-rate/void-color": {
  2283. "type": "string",
  2284. "description": "未选中时的颜色, 默认值: `#c8c9cc`"
  2285. },
  2286. "van-rate/disabled-color": {
  2287. "type": "string",
  2288. "description": "禁用时的颜色, 默认值: `#c8c9cc`"
  2289. },
  2290. "van-rate/icon": {
  2291. "type": "string",
  2292. "description": "选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star`"
  2293. },
  2294. "van-rate/void-icon": {
  2295. "type": "string",
  2296. "description": "未选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star-o`"
  2297. },
  2298. "van-rate/icon-prefix": {
  2299. "type": "string",
  2300. "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
  2301. },
  2302. "van-rate/allow-half": {
  2303. "type": "boolean",
  2304. "description": "是否允许半选, 默认值: `false`"
  2305. },
  2306. "van-rate/readonly": {
  2307. "type": "boolean",
  2308. "description": "是否为只读状态, 默认值: `false`"
  2309. },
  2310. "van-rate/disabled": {
  2311. "type": "boolean",
  2312. "description": "是否禁用评分, 默认值: `false`"
  2313. },
  2314. "van-rate/touchable": {
  2315. "type": "boolean",
  2316. "description": "是否可以通过滑动手势选择评分, 默认值: `true`"
  2317. },
  2318. "van-search/label": {
  2319. "type": "string",
  2320. "description": "搜索框左侧文本, 默认值: -"
  2321. },
  2322. "van-search/shape": {
  2323. "type": "string",
  2324. "description": "搜索框形状,可选值为 `round`, 默认值: `square`"
  2325. },
  2326. "van-search/background": {
  2327. "type": "string",
  2328. "description": "搜索框外部背景色, 默认值: `#f2f2f2`"
  2329. },
  2330. "van-search/maxlength": {
  2331. "type": "number | string",
  2332. "description": "输入的最大字符数, 默认值: -"
  2333. },
  2334. "van-search/placeholder": {
  2335. "type": "string",
  2336. "description": "占位提示文字, 默认值: -"
  2337. },
  2338. "van-search/clearable": {
  2339. "type": "boolean",
  2340. "description": "是否启用清除图标,点击清除图标后会清空输入框, 默认值: `true`"
  2341. },
  2342. "van-search/clear-trigger": {
  2343. "type": "string",
  2344. "description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
  2345. },
  2346. "van-search/autofocus": {
  2347. "type": "boolean",
  2348. "description": "是否自动聚焦,iOS 系统不支持该属性, 默认值: `false`"
  2349. },
  2350. "van-search/show-action": {
  2351. "type": "boolean",
  2352. "description": "是否在搜索框右侧显示取消按钮, 默认值: `false`"
  2353. },
  2354. "van-search/action-text": {
  2355. "type": "boolean",
  2356. "description": "取消按钮文字, 默认值: `取消`"
  2357. },
  2358. "van-search/disabled": {
  2359. "type": "boolean",
  2360. "description": "是否禁用输入框, 默认值: `false`"
  2361. },
  2362. "van-search/readonly": {
  2363. "type": "boolean",
  2364. "description": "是否将输入框设为只读, 默认值: `false`"
  2365. },
  2366. "van-search/error": {
  2367. "type": "boolean",
  2368. "description": "是否将输入内容标红, 默认值: `false`"
  2369. },
  2370. "van-search/input-align": {
  2371. "type": "string",
  2372. "description": "输入框内容对齐方式,可选值为 `center` `right`, 默认值: `left`"
  2373. },
  2374. "van-search/left-icon": {
  2375. "type": "string",
  2376. "description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: `search`"
  2377. },
  2378. "van-search/right-icon": {
  2379. "type": "string",
  2380. "description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
  2381. },
  2382. "van-sidebar/v-model": {
  2383. "type": "number | string",
  2384. "description": "当前导航项的索引, 默认值: `0`"
  2385. },
  2386. "van-sidebar/title": {
  2387. "type": "string",
  2388. "description": "内容, 默认值: `''`"
  2389. },
  2390. "van-sidebar/dot": {
  2391. "type": "boolean",
  2392. "description": "是否显示右上角小红点, 默认值: `false`"
  2393. },
  2394. "van-sidebar/badge": {
  2395. "type": "number | string",
  2396. "description": "图标右上角徽标的内容, 默认值: -"
  2397. },
  2398. "van-sidebar/info": {
  2399. "type": "number | string",
  2400. "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
  2401. },
  2402. "van-sidebar/disabled": {
  2403. "type": "boolean",
  2404. "description": "是否禁用该项, 默认值: `false`"
  2405. },
  2406. "van-sidebar/url": {
  2407. "type": "string",
  2408. "description": "点击后跳转的链接地址, 默认值: -"
  2409. },
  2410. "van-sidebar/to": {
  2411. "type": "string | object",
  2412. "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
  2413. },
  2414. "van-sidebar/replace": {
  2415. "type": "boolean",
  2416. "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
  2417. },
  2418. "van-share-sheet/options": {
  2419. "type": "Option[]",
  2420. "description": "分享选项, 默认值: `[]`"
  2421. },
  2422. "van-share-sheet/title": {
  2423. "type": "string",
  2424. "description": "顶部标题, 默认值: -"
  2425. },
  2426. "van-share-sheet/cancel-text": {
  2427. "type": "string",
  2428. "description": "取消按钮文字,传入空字符串可以隐藏按钮, 默认值: `'取消'`"
  2429. },
  2430. "van-share-sheet/description": {
  2431. "type": "string",
  2432. "description": "标题下方的辅助描述文字, 默认值: -"
  2433. },
  2434. "van-share-sheet/duration": {
  2435. "type": "number | string",
  2436. "description": "动画时长,单位秒, 默认值: `0.3`"
  2437. },
  2438. "van-share-sheet/overlay": {
  2439. "type": "boolean",
  2440. "description": "是否显示遮罩层, 默认值: `true`"
  2441. },
  2442. "van-share-sheet/lock-scroll": {
  2443. "type": "boolean",
  2444. "description": "是否锁定背景滚动, 默认值: `true`"
  2445. },
  2446. "van-share-sheet/lazy-render": {
  2447. "type": "boolean",
  2448. "description": "是否在显示弹层时才渲染内容, 默认值: `true`"
  2449. },
  2450. "van-share-sheet/close-on-popstate": {
  2451. "type": "boolean",
  2452. "description": "是否在页面回退时自动关闭, 默认值: `true`"
  2453. },
  2454. "van-share-sheet/close-on-click-overlay": {
  2455. "type": "boolean",
  2456. "description": "是否在点击遮罩层后关闭, 默认值: `true`"
  2457. },
  2458. "van-share-sheet/safe-area-inset-bottom": {
  2459. "type": "boolean",
  2460. "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
  2461. },
  2462. "van-share-sheet/get-container": {
  2463. "type": "string | () => Element",
  2464. "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
  2465. },
  2466. "van-sku/v-model": {
  2467. "type": "boolean",
  2468. "description": "是否显示商品规格弹窗, 默认值: `false`"
  2469. },
  2470. "van-sku/sku": {
  2471. "type": "object",
  2472. "description": "商品 sku 数据, 默认值: -"
  2473. },
  2474. "van-sku/goods": {
  2475. "type": "object",
  2476. "description": "商品信息, 默认值: -"
  2477. },
  2478. "van-sku/goods-id": {
  2479. "type": "number | string",
  2480. "description": "商品 id, 默认值: -"
  2481. },
  2482. "van-sku/price-tag": {
  2483. "type": "string",
  2484. "description": "显示在价格后面的标签, 默认值: -"
  2485. },
  2486. "van-sku/hide-stock": {
  2487. "type": "boolean",
  2488. "description": "是否显示商品剩余库存, 默认值: `false`"
  2489. },
  2490. "van-sku/hide-quota-text": {
  2491. "type": "boolean",
  2492. "description": "是否显示限购提示, 默认值: `false`"
  2493. },
  2494. "van-sku/hide-selected-text": {
  2495. "type": "boolean",
  2496. "description": "是否隐藏已选提示, 默认值: `false`"
  2497. },
  2498. "van-sku/stock-threshold": {
  2499. "type": "boolean",
  2500. "description": "库存阈值。低于这个值会把库存数高亮显示, 默认值: `50`"
  2501. },
  2502. "van-sku/show-add-cart-btn": {
  2503. "type": "boolean",
  2504. "description": "是否显示加入购物车按钮, 默认值: `true`"
  2505. },
  2506. "van-sku/buy-text": {
  2507. "type": "string",
  2508. "description": "购买按钮文字, 默认值: `立即购买`"
  2509. },
  2510. "van-sku/add-cart-text": {
  2511. "type": "string",
  2512. "description": "加入购物车按钮文字, 默认值: `加入购物车`"
  2513. },
  2514. "van-sku/quota": {
  2515. "type": "number",
  2516. "description": "限购数,0 表示不限购, 默认值: `0`"
  2517. },
  2518. "van-sku/quota-used": {
  2519. "type": "number",
  2520. "description": "已经购买过的数量, 默认值: `0`"
  2521. },
  2522. "van-sku/reset-stepper-on-hide": {
  2523. "type": "boolean",
  2524. "description": "隐藏时重置选择的商品数量, 默认值: `false`"
  2525. },
  2526. "van-sku/reset-selected-sku-on-hide": {
  2527. "type": "boolean",
  2528. "description": "隐藏时重置已选择的 sku, 默认值: `false`"
  2529. },
  2530. "van-sku/disable-stepper-input": {
  2531. "type": "boolean",
  2532. "description": "是否禁用步进器输入, 默认值: `false`"
  2533. },
  2534. "van-sku/close-on-click-overlay": {
  2535. "type": "boolean",
  2536. "description": "是否在点击遮罩层后关闭, 默认值: `true`"
  2537. },
  2538. "van-sku/stepper-title": {
  2539. "type": "string",
  2540. "description": "数量选择组件左侧文案, 默认值: `购买数量`"
  2541. },
  2542. "van-sku/custom-stepper-config": {
  2543. "type": "object",
  2544. "description": "步进器相关自定义配置, 默认值: `{}`"
  2545. },
  2546. "van-sku/message-config": {
  2547. "type": "object",
  2548. "description": "留言相关配置, 默认值: `{}`"
  2549. },
  2550. "van-sku/get-container": {
  2551. "type": "string | () => Element",
  2552. "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
  2553. },
  2554. "van-sku/initial-sku": {
  2555. "type": "object",
  2556. "description": "默认选中的 sku,具体参考高级用法, 默认值: `{}`"
  2557. },
  2558. "van-sku/show-soldout-sku": {
  2559. "type": "boolean",
  2560. "description": "是否展示售罄的 sku,默认展示并置灰, 默认值: `true`"
  2561. },
  2562. "van-sku/disable-soldout-sku": {
  2563. "type": "boolean",
  2564. "description": "是否禁用售罄的 sku, 默认值: `true`"
  2565. },
  2566. "van-sku/safe-area-inset-bottom": {
  2567. "type": "boolean",
  2568. "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
  2569. },
  2570. "van-sku/start-sale-num": {
  2571. "type": "number",
  2572. "description": "起售数量, 默认值: `1`"
  2573. },
  2574. "van-sku/properties": {
  2575. "type": "array",
  2576. "description": "商品属性, 默认值: -"
  2577. },
  2578. "van-sku/preview-on-click-image": {
  2579. "type": "boolean",
  2580. "description": "是否在点击商品图片时自动预览, 默认值: `true`"
  2581. },
  2582. "van-sku/show-header-image": {
  2583. "type": "boolean",
  2584. "description": "是否展示头部图片, 默认值: `true`"
  2585. },
  2586. "van-sku/lazy-load": {
  2587. "type": "boolean",
  2588. "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
  2589. },
  2590. "van-skeleton/row": {
  2591. "type": "number | string",
  2592. "description": "段落占位图行数, 默认值: `0`"
  2593. },
  2594. "van-skeleton/row-width": {
  2595. "type": "number | string \\",
  2596. "description": "段落占位图宽度,可传数组来设置每一行的宽度, 默认值: <br>(number \\"
  2597. },
  2598. "van-skeleton/title": {
  2599. "type": "boolean",
  2600. "description": "是否显示标题占位图, 默认值: `false`"
  2601. },
  2602. "van-skeleton/avatar": {
  2603. "type": "boolean",
  2604. "description": "是否显示头像占位图, 默认值: `false`"
  2605. },
  2606. "van-skeleton/loading": {
  2607. "type": "boolean",
  2608. "description": "是否显示骨架屏,传 `false` 时会展示子组件内容, 默认值: `true`"
  2609. },
  2610. "van-skeleton/animate": {
  2611. "type": "boolean",
  2612. "description": "是否开启动画, 默认值: `true`"
  2613. },
  2614. "van-skeleton/round": {
  2615. "type": "boolean",
  2616. "description": "是否将标题和段落显示为圆角风格, 默认值: `false`"
  2617. },
  2618. "van-skeleton/title-width": {
  2619. "type": "number | string",
  2620. "description": "标题占位图宽度, 默认值: `40%`"
  2621. },
  2622. "van-skeleton/avatar-size": {
  2623. "type": "number | string",
  2624. "description": "头像占位图大小, 默认值: `32px`"
  2625. },
  2626. "van-skeleton/avatar-shape": {
  2627. "type": "string",
  2628. "description": "头像占位图形状,可选值为`square`, 默认值: `round`"
  2629. },
  2630. "van-stepper/v-model": {
  2631. "type": "number | string",
  2632. "description": "当前输入的值, 默认值: -"
  2633. },
  2634. "van-stepper/min": {
  2635. "type": "number | string",
  2636. "description": "最小值, 默认值: `1`"
  2637. },
  2638. "van-stepper/max": {
  2639. "type": "number | string",
  2640. "description": "最大值, 默认值: -"
  2641. },
  2642. "van-stepper/default-value": {
  2643. "type": "number | string",
  2644. "description": "初始值,当 v-model 为空时生效, 默认值: `1`"
  2645. },
  2646. "van-stepper/step": {
  2647. "type": "number | string",
  2648. "description": "步长,每次点击时改变的值, 默认值: `1`"
  2649. },
  2650. "van-stepper/name": {
  2651. "type": "number | string",
  2652. "description": "标识符,可以在`change`事件回调参数中获取, 默认值: -"
  2653. },
  2654. "van-stepper/input-width": {
  2655. "type": "number | string",
  2656. "description": "输入框宽度,默认单位为`px`, 默认值: `32px`"
  2657. },
  2658. "van-stepper/button-size": {
  2659. "type": "number | string",
  2660. "description": "按钮大小以及输入框高度,默认单位为`px`, 默认值: `28px`"
  2661. },
  2662. "van-stepper/decimal-length": {
  2663. "type": "number | string",
  2664. "description": "固定显示的小数位数, 默认值: -"
  2665. },
  2666. "van-stepper/theme": {
  2667. "type": "string",
  2668. "description": "样式风格,可选值为 `round`, 默认值: -"
  2669. },
  2670. "van-stepper/placeholder": {
  2671. "type": "string",
  2672. "description": "输入框占位提示文字, 默认值: -"
  2673. },
  2674. "van-stepper/integer": {
  2675. "type": "boolean",
  2676. "description": "是否只允许输入整数, 默认值: `false`"
  2677. },
  2678. "van-stepper/disabled": {
  2679. "type": "boolean",
  2680. "description": "是否禁用步进器, 默认值: `false`"
  2681. },
  2682. "van-stepper/disable-plus": {
  2683. "type": "boolean",
  2684. "description": "是否禁用增加按钮, 默认值: `false`"
  2685. },
  2686. "van-stepper/disable-minus": {
  2687. "type": "boolean",
  2688. "description": "是否禁用减少按钮, 默认值: `false`"
  2689. },
  2690. "van-stepper/disable-input": {
  2691. "type": "boolean",
  2692. "description": "是否禁用输入框, 默认值: `false`"
  2693. },
  2694. "van-stepper/async-change": {
  2695. "type": "boolean",
  2696. "description": "是否开启异步变更,开启后需要手动控制输入值, 默认值: `false`"
  2697. },
  2698. "van-stepper/show-plus": {
  2699. "type": "boolean",
  2700. "description": "是否显示增加按钮, 默认值: `true`"
  2701. },
  2702. "van-stepper/show-minus": {
  2703. "type": "boolean",
  2704. "description": "是否显示减少按钮, 默认值: `true`"
  2705. },
  2706. "van-stepper/show-input": {
  2707. "type": "boolean",
  2708. "description": "是否显示输入框, 默认值: `true`"
  2709. },
  2710. "van-stepper/long-press": {
  2711. "type": "boolean",
  2712. "description": "是否开启长按手势, 默认值: `true`"
  2713. },
  2714. "van-stepper/allow-empty": {
  2715. "type": "boolean",
  2716. "description": "是否允许输入的值为空, 默认值: `false`"
  2717. },
  2718. "van-slider/value": {
  2719. "type": "number | array",
  2720. "description": "当前进度百分比, 默认值: `0`"
  2721. },
  2722. "van-slider/max": {
  2723. "type": "number | string",
  2724. "description": "最大值, 默认值: `100`"
  2725. },
  2726. "van-slider/min": {
  2727. "type": "number | string",
  2728. "description": "最小值, 默认值: `0`"
  2729. },
  2730. "van-slider/step": {
  2731. "type": "number | string",
  2732. "description": "步长, 默认值: `1`"
  2733. },
  2734. "van-slider/bar-height": {
  2735. "type": "number | string",
  2736. "description": "进度条高度,默认单位为`px`, 默认值: `2px`"
  2737. },
  2738. "van-slider/button-size": {
  2739. "type": "number | string",
  2740. "description": "滑块按钮大小,默认单位为`px`, 默认值: `24px`"
  2741. },
  2742. "van-slider/active-color": {
  2743. "type": "string",
  2744. "description": "进度条激活态颜色, 默认值: `#1989fa`"
  2745. },
  2746. "van-slider/inactive-color": {
  2747. "type": "string",
  2748. "description": "进度条非激活态颜色, 默认值: `#e5e5e5`"
  2749. },
  2750. "van-slider/range": {
  2751. "type": "boolean",
  2752. "description": "是否开启双滑块模式, 默认值: `false`"
  2753. },
  2754. "van-slider/disabled": {
  2755. "type": "boolean",
  2756. "description": "是否禁用滑块, 默认值: `false`"
  2757. },
  2758. "van-slider/vertical": {
  2759. "type": "boolean",
  2760. "description": "是否垂直展示, 默认值: `false`"
  2761. },
  2762. "van-steps/active": {
  2763. "type": "number | string",
  2764. "description": "当前步骤, 默认值: `0`"
  2765. },
  2766. "van-steps/direction": {
  2767. "type": "string",
  2768. "description": "显示方向,可选值为 `vertical`, 默认值: `horizontal`"
  2769. },
  2770. "van-steps/active-color": {
  2771. "type": "string",
  2772. "description": "激活状态颜色, 默认值: `#07c160`"
  2773. },
  2774. "van-steps/inactive-color": {
  2775. "type": "string",
  2776. "description": "未激活状态颜色, 默认值: `#969799`"
  2777. },
  2778. "van-steps/active-icon": {
  2779. "type": "string",
  2780. "description": "激活状态底部图标,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: `checked`"
  2781. },
  2782. "van-steps/inactive-icon": {
  2783. "type": "string",
  2784. "description": "未激活状态底部图标,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: -"
  2785. },
  2786. "van-steps/finish-icon": {
  2787. "type": "string",
  2788. "description": "已完成步骤对应的底部图标,优先级高于 `inactive-icon`,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: -"
  2789. },
  2790. "van-steps/icon-prefix": {
  2791. "type": "string",
  2792. "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
  2793. },
  2794. "van-steps/center": {
  2795. "type": "boolean",
  2796. "description": "是否进行居中对齐,仅在竖向展示时有效, 默认值: `false`"
  2797. },
  2798. "van-sticky/offset-top": {
  2799. "type": "number | string",
  2800. "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
  2801. },
  2802. "van-sticky/z-index": {
  2803. "type": "number | string",
  2804. "description": "吸顶时的 z-index, 默认值: `99`"
  2805. },
  2806. "van-sticky/container": {
  2807. "type": "Element",
  2808. "description": "容器对应的 HTML 节点, 默认值: -"
  2809. },
  2810. "van-submit-bar/price": {
  2811. "type": "number",
  2812. "description": "价格(单位分), 默认值: -"
  2813. },
  2814. "van-submit-bar/decimal-length": {
  2815. "type": "number | string",
  2816. "description": "价格小数点位数, 默认值: `2`"
  2817. },
  2818. "van-submit-bar/label": {
  2819. "type": "string",
  2820. "description": "价格左侧文案, 默认值: `合计:`"
  2821. },
  2822. "van-submit-bar/suffix-label": {
  2823. "type": "string",
  2824. "description": "价格右侧文案, 默认值: -"
  2825. },
  2826. "van-submit-bar/text-align": {
  2827. "type": "string",
  2828. "description": "价格文案对齐方向,可选值为 `left`, 默认值: `right`"
  2829. },
  2830. "van-submit-bar/button-text": {
  2831. "type": "string",
  2832. "description": "按钮文字, 默认值: -"
  2833. },
  2834. "van-submit-bar/button-type": {
  2835. "type": "string",
  2836. "description": "按钮类型, 默认值: `danger`"
  2837. },
  2838. "van-submit-bar/button-color": {
  2839. "type": "string",
  2840. "description": "自定义按钮颜色, 默认值: -"
  2841. },
  2842. "van-submit-bar/tip": {
  2843. "type": "string",
  2844. "description": "在订单栏上方的提示文案, 默认值: -"
  2845. },
  2846. "van-submit-bar/tip-icon": {
  2847. "type": "string",
  2848. "description": "提示文案左侧的[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
  2849. },
  2850. "van-submit-bar/currency": {
  2851. "type": "string",
  2852. "description": "货币符号, 默认值: `¥`"
  2853. },
  2854. "van-submit-bar/disabled": {
  2855. "type": "boolean",
  2856. "description": "是否禁用按钮, 默认值: `false`"
  2857. },
  2858. "van-submit-bar/loading": {
  2859. "type": "boolean",
  2860. "description": "是否显示将按钮显示为加载中状态, 默认值: `false`"
  2861. },
  2862. "van-submit-bar/safe-area-inset-bottom": {
  2863. "type": "boolean",
  2864. "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
  2865. },
  2866. "van-swipe/autoplay": {
  2867. "type": "number | string",
  2868. "description": "自动轮播间隔,单位为 ms, 默认值: -"
  2869. },
  2870. "van-swipe/duration": {
  2871. "type": "number | string",
  2872. "description": "动画时长,单位为 ms, 默认值: `500`"
  2873. },
  2874. "van-swipe/initial-swipe": {
  2875. "type": "number | string",
  2876. "description": "初始位置索引值, 默认值: `0`"
  2877. },
  2878. "van-swipe/width": {
  2879. "type": "number | string",
  2880. "description": "滑块宽度,单位为`px`, 默认值: `auto`"
  2881. },
  2882. "van-swipe/height": {
  2883. "type": "number | string",
  2884. "description": "滑块高度,单位为`px`, 默认值: `auto`"
  2885. },
  2886. "van-swipe/loop": {
  2887. "type": "boolean",
  2888. "description": "是否开启循环播放, 默认值: `true`"
  2889. },
  2890. "van-swipe/show-indicators": {
  2891. "type": "boolean",
  2892. "description": "是否显示指示器, 默认值: `true`"
  2893. },
  2894. "van-swipe/vertical": {
  2895. "type": "boolean",
  2896. "description": "是否为纵向滚动, 默认值: `false`"
  2897. },
  2898. "van-swipe/touchable": {
  2899. "type": "boolean",
  2900. "description": "是否可以通过手势滑动, 默认值: `true`"
  2901. },
  2902. "van-swipe/stop-propagation": {
  2903. "type": "boolean",
  2904. "description": "是否阻止滑动事件冒泡, 默认值: `true`"
  2905. },
  2906. "van-swipe/lazy-render": {
  2907. "type": "boolean",
  2908. "description": "是否延迟渲染未展示的轮播, 默认值: `false`"
  2909. },
  2910. "van-swipe/indicator-color": {
  2911. "type": "string",
  2912. "description": "指示器颜色, 默认值: `#1989fa`"
  2913. },
  2914. "van-swipe-cell/name": {
  2915. "type": "number | string",
  2916. "description": "标识符,可以在事件参数中获取到, 默认值: -"
  2917. },
  2918. "van-swipe-cell/left-width": {
  2919. "type": "number | string",
  2920. "description": "指定左侧滑动区域宽度,单位为`px`, 默认值: `auto`"
  2921. },
  2922. "van-swipe-cell/right-width": {
  2923. "type": "number | string",
  2924. "description": "指定右侧滑动区域宽度,单位为`px`, 默认值: `auto`"
  2925. },
  2926. "van-swipe-cell/before-close": {
  2927. "type": "Function",
  2928. "description": "关闭前的回调函数, 默认值: -"
  2929. },
  2930. "van-swipe-cell/disabled": {
  2931. "type": "boolean",
  2932. "description": "是否禁用滑动, 默认值: `false`"
  2933. },
  2934. "van-swipe-cell/stop-propagation": {
  2935. "type": "boolean",
  2936. "description": "是否阻止滑动事件冒泡, 默认值: `false`"
  2937. },
  2938. "van-switch/v-model": {
  2939. "type": "any",
  2940. "description": "开关选中状态, 默认值: `false`"
  2941. },
  2942. "van-switch/loading": {
  2943. "type": "boolean",
  2944. "description": "是否为加载状态, 默认值: `false`"
  2945. },
  2946. "van-switch/disabled": {
  2947. "type": "boolean",
  2948. "description": "是否为禁用状态, 默认值: `false`"
  2949. },
  2950. "van-switch/size": {
  2951. "type": "number | string",
  2952. "description": "开关尺寸,默认单位为`px`, 默认值: `30px`"
  2953. },
  2954. "van-switch/active-color": {
  2955. "type": "string",
  2956. "description": "打开时的背景色, 默认值: `#1989fa`"
  2957. },
  2958. "van-switch/inactive-color": {
  2959. "type": "string",
  2960. "description": "关闭时的背景色, 默认值: `white`"
  2961. },
  2962. "van-switch/active-value": {
  2963. "type": "any",
  2964. "description": "打开时对应的值, 默认值: `true`"
  2965. },
  2966. "van-switch/inactive-value": {
  2967. "type": "any",
  2968. "description": "关闭时对应的值, 默认值: `false`"
  2969. },
  2970. "van-switch-cell/v-model": {
  2971. "type": "any",
  2972. "description": "开关状态, 默认值: `false`"
  2973. },
  2974. "van-switch-cell/title": {
  2975. "type": "string",
  2976. "description": "左侧标题, 默认值: `''`"
  2977. },
  2978. "van-switch-cell/border": {
  2979. "type": "boolean",
  2980. "description": "是否展示单元格内边框, 默认值: `true`"
  2981. },
  2982. "van-switch-cell/cell-size": {
  2983. "type": "string",
  2984. "description": "单元格大小,可选值为 `large`, 默认值: -"
  2985. },
  2986. "van-switch-cell/loading": {
  2987. "type": "boolean",
  2988. "description": "是否为加载状态, 默认值: `false`"
  2989. },
  2990. "van-switch-cell/disabled": {
  2991. "type": "boolean",
  2992. "description": "是否为禁用状态, 默认值: `false`"
  2993. },
  2994. "van-switch-cell/size": {
  2995. "type": "number | string",
  2996. "description": "开关尺寸, 默认值: `24px`"
  2997. },
  2998. "van-switch-cell/active-color": {
  2999. "type": "string",
  3000. "description": "开关时的背景色, 默认值: `#1989fa`"
  3001. },
  3002. "van-switch-cell/inactive-color": {
  3003. "type": "string",
  3004. "description": "开关时的背景色, 默认值: `white`"
  3005. },
  3006. "van-switch-cell/active-value": {
  3007. "type": "any",
  3008. "description": "打开时的值, 默认值: `true`"
  3009. },
  3010. "van-switch-cell/inactive-value": {
  3011. "type": "any",
  3012. "description": "关闭时的值, 默认值: `false`"
  3013. },
  3014. "van-tab/v-model": {
  3015. "type": "number | string",
  3016. "description": "绑定当前选中标签的标识符, 默认值: `0`"
  3017. },
  3018. "van-tab/type": {
  3019. "type": "string",
  3020. "description": "样式风格类型,可选值为 `card`, 默认值: `line`"
  3021. },
  3022. "van-tab/color": {
  3023. "type": "string",
  3024. "description": "标签主题色, 默认值: `#ee0a24`"
  3025. },
  3026. "van-tab/background": {
  3027. "type": "string",
  3028. "description": "标签栏背景色, 默认值: `white`"
  3029. },
  3030. "van-tab/duration": {
  3031. "type": "number | string",
  3032. "description": "动画时间,单位秒, 默认值: `0.3`"
  3033. },
  3034. "van-tab/line-width": {
  3035. "type": "number | string",
  3036. "description": "底部条宽度,默认单位 `px`, 默认值: `40px`"
  3037. },
  3038. "van-tab/line-height": {
  3039. "type": "number | string",
  3040. "description": "底部条高度,默认单位 `px`, 默认值: `3px`"
  3041. },
  3042. "van-tab/animated": {
  3043. "type": "boolean",
  3044. "description": "是否开启切换标签内容时的转场动画, 默认值: `false`"
  3045. },
  3046. "van-tab/border": {
  3047. "type": "boolean",
  3048. "description": "是否显示标签栏外边框,仅在 `type=\"line\"` 时有效, 默认值: `false`"
  3049. },
  3050. "van-tab/ellipsis": {
  3051. "type": "boolean",
  3052. "description": "是否省略过长的标题文字, 默认值: `true`"
  3053. },
  3054. "van-tab/sticky": {
  3055. "type": "boolean",
  3056. "description": "是否使用粘性定位布局, 默认值: `false`"
  3057. },
  3058. "van-tab/swipeable": {
  3059. "type": "boolean",
  3060. "description": "是否开启手势滑动切换, 默认值: `false`"
  3061. },
  3062. "van-tab/lazy-render": {
  3063. "type": "boolean",
  3064. "description": "是否开启延迟渲染(首次切换到标签时才触发内容渲染), 默认值: `true`"
  3065. },
  3066. "van-tab/scrollspy": {
  3067. "type": "boolean",
  3068. "description": "是否开启滚动导航, 默认值: `false`"
  3069. },
  3070. "van-tab/offset-top": {
  3071. "type": "number | string",
  3072. "description": "粘性定位布局下与顶部的最小距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
  3073. },
  3074. "van-tab/swipe-threshold": {
  3075. "type": "number | string",
  3076. "description": "滚动阈值,标签数量超过阈值且总宽度超过标签栏宽度时开始横向滚动, 默认值: `5`"
  3077. },
  3078. "van-tab/title-active-color": {
  3079. "type": "string",
  3080. "description": "标题选中态颜色, 默认值: -"
  3081. },
  3082. "van-tab/title-inactive-color": {
  3083. "type": "string",
  3084. "description": "标题默认态颜色, 默认值: -"
  3085. },
  3086. "van-tab/before-change": {
  3087. "type": "(name) => boolean | Promise",
  3088. "description": "切换标签前的回调函数,返回 `false` 可阻止切换,支持返回 Promise, 默认值: -"
  3089. },
  3090. "van-tab/title": {
  3091. "type": "string",
  3092. "description": "标题, 默认值: -"
  3093. },
  3094. "van-tab/disabled": {
  3095. "type": "boolean",
  3096. "description": "是否禁用标签, 默认值: `false`"
  3097. },
  3098. "van-tab/dot": {
  3099. "type": "boolean",
  3100. "description": "是否在标题右上角显示小红点, 默认值: `false`"
  3101. },
  3102. "van-tab/badge": {
  3103. "type": "number | string",
  3104. "description": "图标右上角徽标的内容, 默认值: -"
  3105. },
  3106. "van-tab/info": {
  3107. "type": "number | string",
  3108. "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
  3109. },
  3110. "van-tab/name": {
  3111. "type": "number | string",
  3112. "description": "标签名称,作为匹配的标识符, 默认值: 标签的索引值"
  3113. },
  3114. "van-tab/url": {
  3115. "type": "string",
  3116. "description": "点击后跳转的链接地址, 默认值: -"
  3117. },
  3118. "van-tab/to": {
  3119. "type": "string | object",
  3120. "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
  3121. },
  3122. "van-tab/replace": {
  3123. "type": "boolean",
  3124. "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
  3125. },
  3126. "van-tab/title-style": {
  3127. "type": "any",
  3128. "description": "自定义标题样式, 默认值: -"
  3129. },
  3130. "van-tab/title-class": {
  3131. "type": "any",
  3132. "description": "自定义标题类名, 默认值: -"
  3133. },
  3134. "van-tag/type": {
  3135. "type": "string",
  3136. "description": "类型,可选值为`primary` `success` `danger` `warning`, 默认值: `default`"
  3137. },
  3138. "van-tag/size": {
  3139. "type": "string",
  3140. "description": "大小, 可选值为`large` `medium`, 默认值: -"
  3141. },
  3142. "van-tag/color": {
  3143. "type": "string",
  3144. "description": "标签颜色, 默认值: -"
  3145. },
  3146. "van-tag/plain": {
  3147. "type": "boolean",
  3148. "description": "是否为空心样式, 默认值: `false`"
  3149. },
  3150. "van-tag/round": {
  3151. "type": "boolean",
  3152. "description": "是否为圆角样式, 默认值: `false`"
  3153. },
  3154. "van-tag/mark": {
  3155. "type": "boolean",
  3156. "description": "是否为标记样式, 默认值: `false`"
  3157. },
  3158. "van-tag/text-color": {
  3159. "type": "string",
  3160. "description": "文本颜色,优先级高于`color`属性, 默认值: `white`"
  3161. },
  3162. "van-tag/closeable": {
  3163. "type": "boolean",
  3164. "description": "是否为可关闭标签, 默认值: `false`"
  3165. },
  3166. "van-tabbar/v-model": {
  3167. "type": "number | string",
  3168. "description": "当前选中标签的名称或索引值, 默认值: `0`"
  3169. },
  3170. "van-tabbar/fixed": {
  3171. "type": "boolean",
  3172. "description": "是否固定在底部, 默认值: `true`"
  3173. },
  3174. "van-tabbar/border": {
  3175. "type": "boolean",
  3176. "description": "是否显示外边框, 默认值: `true`"
  3177. },
  3178. "van-tabbar/z-index": {
  3179. "type": "number | string",
  3180. "description": "元素 z-index, 默认值: `1`"
  3181. },
  3182. "van-tabbar/active-color": {
  3183. "type": "string",
  3184. "description": "选中标签的颜色, 默认值: `#1989fa`"
  3185. },
  3186. "van-tabbar/inactive-color": {
  3187. "type": "string",
  3188. "description": "未选中标签的颜色, 默认值: `#7d7e80`"
  3189. },
  3190. "van-tabbar/route": {
  3191. "type": "boolean",
  3192. "description": "是否开启路由模式, 默认值: `false`"
  3193. },
  3194. "van-tabbar/placeholder": {
  3195. "type": "boolean",
  3196. "description": "固定在底部时,是否在标签位置生成一个等高的占位元素, 默认值: `false`"
  3197. },
  3198. "van-tabbar/safe-area-inset-bottom": {
  3199. "type": "boolean",
  3200. "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei),设置 fixed 时默认开启, 默认值: `false`"
  3201. },
  3202. "van-tabbar/before-change": {
  3203. "type": "(name) => boolean | Promise",
  3204. "description": "切换标签前的回调函数,返回 `false` 可阻止切换,支持返回 Promise, 默认值: -"
  3205. },
  3206. "van-tabbar/name": {
  3207. "type": "number | string",
  3208. "description": "标签名称,作为匹配的标识符, 默认值: 当前标签的索引值"
  3209. },
  3210. "van-tabbar/icon": {
  3211. "type": "string",
  3212. "description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
  3213. },
  3214. "van-tabbar/icon-prefix": {
  3215. "type": "string",
  3216. "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
  3217. },
  3218. "van-tabbar/dot": {
  3219. "type": "boolean",
  3220. "description": "是否显示图标右上角小红点, 默认值: `false`"
  3221. },
  3222. "van-tabbar/badge": {
  3223. "type": "number | string",
  3224. "description": "图标右上角徽标的内容, 默认值: -"
  3225. },
  3226. "van-tabbar/info": {
  3227. "type": "number | string",
  3228. "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
  3229. },
  3230. "van-tabbar/url": {
  3231. "type": "string",
  3232. "description": "点击后跳转的链接地址, 默认值: -"
  3233. },
  3234. "van-tabbar/to": {
  3235. "type": "string | object",
  3236. "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
  3237. },
  3238. "van-tabbar/replace": {
  3239. "type": "boolean",
  3240. "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
  3241. },
  3242. "van-tree-select/items": {
  3243. "type": "Item[]",
  3244. "description": "分类显示所需的数据, 默认值: `[]`"
  3245. },
  3246. "van-tree-select/height": {
  3247. "type": "number | string",
  3248. "description": "高度,默认单位为`px`, 默认值: `300`"
  3249. },
  3250. "van-tree-select/main-active-index": {
  3251. "type": "number | string",
  3252. "description": "左侧选中项的索引, 默认值: `0`"
  3253. },
  3254. "van-tree-select/active-id": {
  3255. "type": "number | string \\",
  3256. "description": "右侧选中项的 id,支持传入数组, 默认值: <br>(number \\"
  3257. },
  3258. "van-tree-select/max": {
  3259. "type": "number | string",
  3260. "description": "右侧项最大选中个数, 默认值: `Infinity`"
  3261. },
  3262. "van-tree-select/selected-icon": {
  3263. "type": "string",
  3264. "description": "自定义右侧栏选中状态的图标, 默认值: `success`"
  3265. },
  3266. "van-uploader/v-model (fileList)": {
  3267. "type": "FileListItem[]",
  3268. "description": "已上传的文件列表, 默认值: -"
  3269. },
  3270. "van-uploader/accept": {
  3271. "type": "string",
  3272. "description": "允许上传的文件类型,[详细说明](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input/file#%E9%99%90%E5%88%B6%E5%85%81%E8%AE%B8%E7%9A%84%E6%96%87%E4%BB%B6%E7%B1%BB%E5%9E%8B), 默认值: `image/*`"
  3273. },
  3274. "van-uploader/name": {
  3275. "type": "number | string",
  3276. "description": "标识符,可以在回调函数的第二项参数中获取, 默认值: -"
  3277. },
  3278. "van-uploader/preview-size": {
  3279. "type": "number | string",
  3280. "description": "预览图和上传区域的尺寸,默认单位为 `px`, 默认值: `80px`"
  3281. },
  3282. "van-uploader/preview-image": {
  3283. "type": "boolean",
  3284. "description": "是否在上传完成后展示预览图, 默认值: `true`"
  3285. },
  3286. "van-uploader/preview-full-image": {
  3287. "type": "boolean",
  3288. "description": "是否在点击预览图后展示全屏图片预览, 默认值: `true`"
  3289. },
  3290. "van-uploader/preview-options": {
  3291. "type": "object",
  3292. "description": "全屏图片预览的配置项,可选值见 [ImagePreview](#/zh-CN/image-preview), 默认值: -"
  3293. },
  3294. "van-uploader/multiple": {
  3295. "type": "boolean",
  3296. "description": "是否开启图片多选,部分安卓机型不支持, 默认值: `false`"
  3297. },
  3298. "van-uploader/disabled": {
  3299. "type": "boolean",
  3300. "description": "是否禁用文件上传, 默认值: `false`"
  3301. },
  3302. "van-uploader/readonly": {
  3303. "type": "boolean",
  3304. "description": "是否将上传区域设置为只读状态, 默认值: `false`"
  3305. },
  3306. "van-uploader/deletable": {
  3307. "type": "boolean",
  3308. "description": "是否展示删除按钮, 默认值: `true`"
  3309. },
  3310. "van-uploader/show-upload": {
  3311. "type": "boolean",
  3312. "description": "是否展示上传区域, 默认值: `true`"
  3313. },
  3314. "van-uploader/lazy-load": {
  3315. "type": "boolean",
  3316. "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
  3317. },
  3318. "van-uploader/capture": {
  3319. "type": "string",
  3320. "description": "图片选取模式,可选值为 `camera` (直接调起摄像头), 默认值: -"
  3321. },
  3322. "van-uploader/after-read": {
  3323. "type": "Function",
  3324. "description": "文件读取完成后的回调函数, 默认值: -"
  3325. },
  3326. "van-uploader/before-read": {
  3327. "type": "Function",
  3328. "description": "文件读取前的回调函数,返回 `false` 可终止文件读取,<br>支持返回 `Promise`, 默认值: -"
  3329. },
  3330. "van-uploader/before-delete": {
  3331. "type": "Function",
  3332. "description": "文件删除前的回调函数,返回 `false` 可终止文件读取,<br>支持返回 `Promise`, 默认值: -"
  3333. },
  3334. "van-uploader/max-size": {
  3335. "type": "number | string \\",
  3336. "description": "文件大小限制,单位为 `byte`, 默认值: (file: File) => boolean_"
  3337. },
  3338. "van-uploader/max-count": {
  3339. "type": "number | string",
  3340. "description": "文件上传数量限制, 默认值: -"
  3341. },
  3342. "van-uploader/result-type": {
  3343. "type": "string",
  3344. "description": "文件读取结果类型,可选值为 `file` `text`, 默认值: `dataUrl`"
  3345. },
  3346. "van-uploader/upload-text": {
  3347. "type": "string",
  3348. "description": "上传区域文字提示, 默认值: -"
  3349. },
  3350. "van-uploader/image-fit": {
  3351. "type": "string",
  3352. "description": "预览图裁剪模式,可选值见 [Image](#/zh-CN/image) 组件, 默认值: `cover`"
  3353. },
  3354. "van-uploader/upload-icon": {
  3355. "type": "string",
  3356. "description": "上传区域[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photograph`"
  3357. }
  3358. }