1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358 |
- {
- "van-action-sheet/v-model (value)": {
- "type": "boolean",
- "description": "是否显示动作面板, 默认值: `false`"
- },
- "van-action-sheet/actions": {
- "type": "Action[]",
- "description": "面板选项列表, 默认值: `[]`"
- },
- "van-action-sheet/title": {
- "type": "string",
- "description": "顶部标题, 默认值: -"
- },
- "van-action-sheet/cancel-text": {
- "type": "string",
- "description": "取消按钮文字, 默认值: -"
- },
- "van-action-sheet/description": {
- "type": "string",
- "description": "选项上方的描述信息, 默认值: -"
- },
- "van-action-sheet/closeable": {
- "type": "boolean",
- "description": "是否显示关闭图标, 默认值: `true`"
- },
- "van-action-sheet/close-icon": {
- "type": "string",
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
- },
- "van-action-sheet/duration": {
- "type": "number | string",
- "description": "动画时长,单位秒, 默认值: `0.3`"
- },
- "van-action-sheet/round": {
- "type": "boolean",
- "description": "是否显示圆角, 默认值: `true`"
- },
- "van-action-sheet/overlay": {
- "type": "boolean",
- "description": "是否显示遮罩层, 默认值: `true`"
- },
- "van-action-sheet/lock-scroll": {
- "type": "boolean",
- "description": "是否锁定背景滚动, 默认值: `true`"
- },
- "van-action-sheet/lazy-render": {
- "type": "boolean",
- "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
- },
- "van-action-sheet/close-on-popstate": {
- "type": "boolean",
- "description": "是否在页面回退时自动关闭, 默认值: `false`"
- },
- "van-action-sheet/close-on-click-action": {
- "type": "boolean",
- "description": "是否在点击选项后关闭, 默认值: `false`"
- },
- "van-action-sheet/close-on-click-overlay": {
- "type": "boolean",
- "description": "是否在点击遮罩层后关闭, 默认值: `true`"
- },
- "van-action-sheet/safe-area-inset-bottom": {
- "type": "boolean",
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
- },
- "van-action-sheet/get-container": {
- "type": "string | () => Element",
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
- },
- "van-address-edit/area-list": {
- "type": "object",
- "description": "地区列表, 默认值: -"
- },
- "van-address-edit/area-columns-placeholder": {
- "type": "string[]",
- "description": "地区选择列占位提示文字, 默认值: `[]`"
- },
- "van-address-edit/area-placeholder": {
- "type": "string",
- "description": "地区输入框占位提示文字, 默认值: `选择省 / 市 / 区`"
- },
- "van-address-edit/address-info": {
- "type": "AddressInfo",
- "description": "收货人信息初始值, 默认值: `{}`"
- },
- "van-address-edit/search-result": {
- "type": "SearchResult[]",
- "description": "详细地址搜索结果, 默认值: `[]`"
- },
- "van-address-edit/show-postal": {
- "type": "boolean",
- "description": "是否显示邮政编码, 默认值: `false`"
- },
- "van-address-edit/show-delete": {
- "type": "boolean",
- "description": "是否显示删除按钮, 默认值: `false`"
- },
- "van-address-edit/show-set-default": {
- "type": "boolean",
- "description": "是否显示默认地址栏, 默认值: `false`"
- },
- "van-address-edit/show-search-result": {
- "type": "boolean",
- "description": "是否显示搜索结果, 默认值: `false`"
- },
- "van-address-edit/show-area": {
- "type": "boolean",
- "description": "是否显示地区, 默认值: `true`"
- },
- "van-address-edit/show-detail": {
- "type": "boolean",
- "description": "是否显示详细地址, 默认值: `true`"
- },
- "van-address-edit/disable-area": {
- "type": "boolean",
- "description": "是否禁用地区选择, 默认值: `false`"
- },
- "van-address-edit/save-button-text": {
- "type": "string",
- "description": "保存按钮文字, 默认值: `保存`"
- },
- "van-address-edit/delete-button-text": {
- "type": "string",
- "description": "删除按钮文字, 默认值: `删除`"
- },
- "van-address-edit/detail-rows": {
- "type": "number | string",
- "description": "详细地址输入框行数, 默认值: `1`"
- },
- "van-address-edit/detail-maxlength": {
- "type": "number | string",
- "description": "详细地址最大长度, 默认值: `200`"
- },
- "van-address-edit/is-saving": {
- "type": "boolean",
- "description": "是否显示保存按钮加载动画, 默认值: `false`"
- },
- "van-address-edit/is-deleting": {
- "type": "boolean",
- "description": "是否显示删除按钮加载动画, 默认值: `false`"
- },
- "van-address-edit/tel-validator": {
- "type": "string => boolean",
- "description": "手机号格式校验函数, 默认值: -"
- },
- "van-address-edit/tel-maxlength": {
- "type": "number | string",
- "description": "手机号最大长度, 默认值: -"
- },
- "van-address-edit/postal-validator": {
- "type": "string => boolean",
- "description": "邮政编码格式校验函数, 默认值: -"
- },
- "van-address-edit/validator": {
- "type": "(key, val) => string",
- "description": "自定义校验函数, 默认值: -"
- },
- "van-address-list/v-model": {
- "type": "string",
- "description": "当前选中地址的 id, 默认值: -"
- },
- "van-address-list/list": {
- "type": "Address[]",
- "description": "地址列表, 默认值: `[]`"
- },
- "van-address-list/disabled-list": {
- "type": "Address[]",
- "description": "不可配送地址列表, 默认值: `[]`"
- },
- "van-address-list/disabled-text": {
- "type": "string",
- "description": "不可配送提示文案, 默认值: -"
- },
- "van-address-list/switchable": {
- "type": "boolean",
- "description": "是否允许切换地址, 默认值: `true`"
- },
- "van-address-list/add-button-text": {
- "type": "string",
- "description": "底部按钮文字, 默认值: `新增地址`"
- },
- "van-address-list/default-tag-text": {
- "type": "string",
- "description": "默认地址标签文字, 默认值: -"
- },
- "van-area/value": {
- "type": "string",
- "description": "当前选中的省市区`code`, 默认值: -"
- },
- "van-area/title": {
- "type": "string",
- "description": "顶部栏标题, 默认值: -"
- },
- "van-area/confirm-button-text": {
- "type": "string",
- "description": "确认按钮文字, 默认值: `确认`"
- },
- "van-area/cancel-button-text": {
- "type": "string",
- "description": "取消按钮文字, 默认值: `取消`"
- },
- "van-area/area-list": {
- "type": "object",
- "description": "省市区数据,格式见下方, 默认值: -"
- },
- "van-area/columns-placeholder": {
- "type": "string[]",
- "description": "列占位提示文字, 默认值: `[]`"
- },
- "van-area/loading": {
- "type": "boolean",
- "description": "是否显示加载状态, 默认值: `false`"
- },
- "van-area/readonly": {
- "type": "boolean",
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
- },
- "van-area/item-height": {
- "type": "number | string",
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
- },
- "van-area/columns-num": {
- "type": "number | string",
- "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
- },
- "van-area/visible-item-count": {
- "type": "number | string",
- "description": "可见的选项个数, 默认值: `6`"
- },
- "van-area/swipe-duration": {
- "type": "number | string",
- "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
- },
- "van-area/is-oversea-code": {
- "type": "() => boolean",
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
- },
- "van-button/type": {
- "type": "string",
- "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
- },
- "van-button/size": {
- "type": "string",
- "description": "尺寸,可选值为 `large` `small` `mini`, 默认值: `normal`"
- },
- "van-button/text": {
- "type": "string",
- "description": "按钮文字, 默认值: -"
- },
- "van-button/color": {
- "type": "string",
- "description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
- },
- "van-button/icon": {
- "type": "string",
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
- },
- "van-button/icon-prefix": {
- "type": "string",
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
- },
- "van-button/icon-position": {
- "type": "string",
- "description": "图标展示位置,可选值为 `right`, 默认值: `left`"
- },
- "van-button/tag": {
- "type": "string",
- "description": "按钮根节点的 HTML 标签, 默认值: `button`"
- },
- "van-button/native-type": {
- "type": "string",
- "description": "原生 button 标签的 type 属性, 默认值: -"
- },
- "van-button/block": {
- "type": "boolean",
- "description": "是否为块级元素, 默认值: `false`"
- },
- "van-button/plain": {
- "type": "boolean",
- "description": "是否为朴素按钮, 默认值: `false`"
- },
- "van-button/square": {
- "type": "boolean",
- "description": "是否为方形按钮, 默认值: `false`"
- },
- "van-button/round": {
- "type": "boolean",
- "description": "是否为圆形按钮, 默认值: `false`"
- },
- "van-button/disabled": {
- "type": "boolean",
- "description": "是否禁用按钮, 默认值: `false`"
- },
- "van-button/hairline": {
- "type": "boolean",
- "description": "是否使用 0.5px 边框, 默认值: `false`"
- },
- "van-button/loading": {
- "type": "boolean",
- "description": "是否显示为加载状态, 默认值: `false`"
- },
- "van-button/loading-text": {
- "type": "string",
- "description": "加载状态提示文字, 默认值: -"
- },
- "van-button/loading-type": {
- "type": "string",
- "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`, 默认值: `circular`"
- },
- "van-button/loading-size": {
- "type": "string",
- "description": "加载图标大小, 默认值: `20px`"
- },
- "van-button/url": {
- "type": "string",
- "description": "点击后跳转的链接地址, 默认值: -"
- },
- "van-button/to": {
- "type": "string | object",
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
- },
- "van-button/replace": {
- "type": "boolean",
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
- },
- "van-badge/content": {
- "type": "number | string",
- "description": "徽标内容, 默认值: -"
- },
- "van-badge/color": {
- "type": "string",
- "description": "徽标背景颜色, 默认值: `#ee0a24`"
- },
- "van-badge/dot": {
- "type": "boolean",
- "description": "是否展示为小红点, 默认值: `false`"
- },
- "van-badge/max": {
- "type": "number | string",
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
- },
- "van-calendar/type": {
- "type": "string",
- "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间, 默认值: `single`"
- },
- "van-calendar/title": {
- "type": "string",
- "description": "日历标题, 默认值: `日期选择`"
- },
- "van-calendar/color": {
- "type": "string",
- "description": "主题色,对底部按钮和选中日期生效, 默认值: `#ee0a24`"
- },
- "van-calendar/min-date": {
- "type": "Date",
- "description": "可选择的最小日期, 默认值: 当前日期"
- },
- "van-calendar/max-date": {
- "type": "Date",
- "description": "可选择的最大日期, 默认值: 当前日期的六个月后"
- },
- "van-calendar/default-date": {
- "type": "Date | Date[] \\",
- "description": "默认选中的日期,`type` 为 `multiple` 或 `range` 时为数组,传入 `null` 表示默认不选择, 默认值: null_"
- },
- "van-calendar/row-height": {
- "type": "number | string",
- "description": "日期行高, 默认值: `64`"
- },
- "van-calendar/formatter": {
- "type": "(day: Day) => Day",
- "description": "日期格式化函数, 默认值: -"
- },
- "van-calendar/poppable": {
- "type": "boolean",
- "description": "是否以弹层的形式展示日历, 默认值: `true`"
- },
- "van-calendar/lazy-render": {
- "type": "boolean",
- "description": "是否只渲染可视区域的内容, 默认值: `true`"
- },
- "van-calendar/show-mark": {
- "type": "boolean",
- "description": "是否显示月份背景水印, 默认值: `true`"
- },
- "van-calendar/show-title": {
- "type": "boolean",
- "description": "是否展示日历标题, 默认值: `true`"
- },
- "van-calendar/show-subtitle": {
- "type": "boolean",
- "description": "是否展示日历副标题(年月), 默认值: `true`"
- },
- "van-calendar/show-confirm": {
- "type": "boolean",
- "description": "是否展示确认按钮, 默认值: `true`"
- },
- "van-calendar/readonly": {
- "type": "boolean",
- "description": "是否为只读状态,只读状态下不能选择日期, 默认值: `false`"
- },
- "van-calendar/confirm-text": {
- "type": "string",
- "description": "确认按钮的文字, 默认值: `确定`"
- },
- "van-calendar/confirm-disabled-text": {
- "type": "string",
- "description": "确认按钮处于禁用状态时的文字, 默认值: `确定`"
- },
- "van-calendar/first-day-of-week": {
- "type": "0-6",
- "description": "设置周起始日, 默认值: `0`"
- },
- "van-calendar/v-model": {
- "type": "boolean",
- "description": "是否显示日历弹窗, 默认值: `false`"
- },
- "van-calendar/position": {
- "type": "string",
- "description": "弹出位置,可选值为 `top` `right` `left`, 默认值: `bottom`"
- },
- "van-calendar/round": {
- "type": "boolean",
- "description": "是否显示圆角弹窗, 默认值: `true`"
- },
- "van-calendar/close-on-popstate": {
- "type": "boolean",
- "description": "是否在页面回退时自动关闭, 默认值: `true`"
- },
- "van-calendar/close-on-click-overlay": {
- "type": "boolean",
- "description": "是否在点击遮罩层后关闭, 默认值: `true`"
- },
- "van-calendar/safe-area-inset-bottom": {
- "type": "boolean",
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
- },
- "van-calendar/get-container": {
- "type": "string | () => Element",
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
- },
- "van-calendar/max-range": {
- "type": "number | string",
- "description": "日期最多可选天数, 默认值: 无限制"
- },
- "van-calendar/range-prompt": {
- "type": "string",
- "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
- },
- "van-calendar/allow-same-day": {
- "type": "boolean",
- "description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
- },
- "van-card/thumb": {
- "type": "string",
- "description": "左侧图片 URL, 默认值: -"
- },
- "van-card/title": {
- "type": "string",
- "description": "标题, 默认值: -"
- },
- "van-card/desc": {
- "type": "string",
- "description": "描述, 默认值: -"
- },
- "van-card/tag": {
- "type": "string",
- "description": "图片角标, 默认值: -"
- },
- "van-card/num": {
- "type": "number | string",
- "description": "商品数量, 默认值: -"
- },
- "van-card/price": {
- "type": "number | string",
- "description": "商品价格, 默认值: -"
- },
- "van-card/origin-price": {
- "type": "number | string",
- "description": "商品划线原价, 默认值: -"
- },
- "van-card/centered": {
- "type": "boolean",
- "description": "内容是否垂直居中, 默认值: `false`"
- },
- "van-card/currency": {
- "type": "string",
- "description": "货币符号, 默认值: `¥`"
- },
- "van-card/thumb-link": {
- "type": "string",
- "description": "点击左侧图片后跳转的链接地址, 默认值: -"
- },
- "van-card/lazy-load": {
- "type": "boolean",
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
- },
- "van-cascader/title": {
- "type": "string",
- "description": "顶部标题, 默认值: -"
- },
- "van-cascader/value": {
- "type": "string | number",
- "description": "选中项的值, 默认值: -"
- },
- "van-cascader/options": {
- "type": "Option[]",
- "description": "可选项数据源, 默认值: `[]`"
- },
- "van-cascader/placeholder": {
- "type": "string",
- "description": "未选中时的提示文案, 默认值: `请选择`"
- },
- "van-cascader/active-color": {
- "type": "string",
- "description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
- },
- "van-cascader/closeable": {
- "type": "boolean",
- "description": "是否显示关闭图标, 默认值: `true`"
- },
- "van-cascader/show-header": {
- "type": "boolean",
- "description": "是否展示标题栏, 默认值: `true`"
- },
- "van-cascader/field-names": {
- "type": "object",
- "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
- },
- "van-cell/title": {
- "type": "number | string",
- "description": "左侧标题, 默认值: -"
- },
- "van-cell/border": {
- "type": "boolean",
- "description": "是否显示内边框, 默认值: `true`"
- },
- "van-cell/value": {
- "type": "number | string",
- "description": "右侧内容, 默认值: -"
- },
- "van-cell/label": {
- "type": "string",
- "description": "标题下方的描述信息, 默认值: -"
- },
- "van-cell/size": {
- "type": "string",
- "description": "单元格大小,可选值为 `large`, 默认值: -"
- },
- "van-cell/icon": {
- "type": "string",
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
- },
- "van-cell/icon-prefix": {
- "type": "string",
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
- },
- "van-cell/url": {
- "type": "string",
- "description": "点击后跳转的链接地址, 默认值: -"
- },
- "van-cell/to": {
- "type": "string | object",
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
- },
- "van-cell/replace": {
- "type": "boolean",
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
- },
- "van-cell/clickable": {
- "type": "boolean",
- "description": "是否开启点击反馈, 默认值: `null`"
- },
- "van-cell/is-link": {
- "type": "boolean",
- "description": "是否展示右侧箭头并开启点击反馈, 默认值: `false`"
- },
- "van-cell/required": {
- "type": "boolean",
- "description": "是否显示表单必填星号, 默认值: `false`"
- },
- "van-cell/center": {
- "type": "boolean",
- "description": "是否使内容垂直居中, 默认值: `false`"
- },
- "van-cell/arrow-direction": {
- "type": "string",
- "description": "箭头方向,可选值为 `left` `up` `down`, 默认值: `right`"
- },
- "van-cell/title-style": {
- "type": "any",
- "description": "左侧标题额外样式, 默认值: -"
- },
- "van-cell/title-class": {
- "type": "any",
- "description": "左侧标题额外类名, 默认值: -"
- },
- "van-cell/value-class": {
- "type": "any",
- "description": "右侧内容额外类名, 默认值: -"
- },
- "van-cell/label-class": {
- "type": "any",
- "description": "描述信息额外类名, 默认值: -"
- },
- "van-checkbox/v-model (value)": {
- "type": "any[]",
- "description": "所有选中项的标识符, 默认值: -"
- },
- "van-checkbox/name": {
- "type": "any",
- "description": "标识符, 默认值: -"
- },
- "van-checkbox/shape": {
- "type": "string",
- "description": "形状,可选值为 `square`, 默认值: `round`"
- },
- "van-checkbox/disabled": {
- "type": "boolean",
- "description": "是否禁用所有复选框, 默认值: `false`"
- },
- "van-checkbox/label-disabled": {
- "type": "boolean",
- "description": "是否禁用复选框文本点击, 默认值: `false`"
- },
- "van-checkbox/label-position": {
- "type": "string",
- "description": "文本位置,可选值为 `left`, 默认值: `right`"
- },
- "van-checkbox/icon-size": {
- "type": "number | string",
- "description": "所有复选框的图标大小,默认单位为 `px`, 默认值: `20px`"
- },
- "van-checkbox/checked-color": {
- "type": "string",
- "description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
- },
- "van-checkbox/bind-group": {
- "type": "boolean",
- "description": "是否与复选框组绑定, 默认值: `true`"
- },
- "van-checkbox/max": {
- "type": "number | string",
- "description": "最大可选数,`0`为无限制, 默认值: `0`"
- },
- "van-checkbox/direction": {
- "type": "string",
- "description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
- },
- "van-circle/v-model": {
- "type": "number",
- "description": "当前进度, 默认值: -"
- },
- "van-circle/rate": {
- "type": "number | string",
- "description": "目标进度, 默认值: `100`"
- },
- "van-circle/size": {
- "type": "number | string",
- "description": "圆环直径,默认单位为 `px`, 默认值: `100px`"
- },
- "van-circle/color": {
- "type": "string | object",
- "description": "进度条颜色,传入对象格式可以定义渐变色, 默认值: `#1989fa`"
- },
- "van-circle/layer-color": {
- "type": "string",
- "description": "轨道颜色, 默认值: `white`"
- },
- "van-circle/fill": {
- "type": "string",
- "description": "填充颜色, 默认值: `none`"
- },
- "van-circle/speed": {
- "type": "number | string",
- "description": "动画速度(单位为 rate/s), 默认值: `0`"
- },
- "van-circle/text": {
- "type": "string",
- "description": "文字, 默认值: -"
- },
- "van-circle/stroke-width": {
- "type": "number | string",
- "description": "进度条宽度, 默认值: `40`"
- },
- "van-circle/stroke-linecap": {
- "type": "string",
- "description": "进度条端点的形状,可选值为`square` `butt`, 默认值: `round`"
- },
- "van-circle/clockwise": {
- "type": "boolean",
- "description": "是否顺时针增加, 默认值: `true`"
- },
- "van-layout/type": {
- "type": "string",
- "description": "布局方式,可选值为`flex`, 默认值: -"
- },
- "van-layout/gutter": {
- "type": "number | string",
- "description": "列元素之间的间距(单位为 px), 默认值: -"
- },
- "van-layout/tag": {
- "type": "string",
- "description": "自定义元素标签, 默认值: `div`"
- },
- "van-layout/justify": {
- "type": "string",
- "description": "Flex 主轴对齐方式,可选值为 `end` `center` <br> `space-around` `space-between`, 默认值: `start`"
- },
- "van-layout/align": {
- "type": "string",
- "description": "Flex 交叉轴对齐方式,可选值为 `center` `bottom`, 默认值: `top`"
- },
- "van-layout/span": {
- "type": "number | string",
- "description": "列元素宽度, 默认值: -"
- },
- "van-layout/offset": {
- "type": "number | string",
- "description": "列元素偏移距离, 默认值: -"
- },
- "van-collapse/v-model": {
- "type": "手风琴模式:_number | string_<br>非手风琴模式:_(number \\",
- "description": "当前展开面板的 name, 默认值: string)[]_"
- },
- "van-collapse/accordion": {
- "type": "boolean",
- "description": "是否开启手风琴模式, 默认值: `false`"
- },
- "van-collapse/border": {
- "type": "boolean",
- "description": "是否显示内边框, 默认值: `true`"
- },
- "van-collapse/name": {
- "type": "number | string",
- "description": "唯一标识符,默认为索引值, 默认值: `index`"
- },
- "van-collapse/icon": {
- "type": "string",
- "description": "标题栏左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
- },
- "van-collapse/size": {
- "type": "string",
- "description": "标题栏大小,可选值为 `large`, 默认值: -"
- },
- "van-collapse/title": {
- "type": "number | string",
- "description": "标题栏左侧内容, 默认值: -"
- },
- "van-collapse/value": {
- "type": "number | string",
- "description": "标题栏右侧内容, 默认值: -"
- },
- "van-collapse/label": {
- "type": "number | string",
- "description": "标题栏描述信息, 默认值: -"
- },
- "van-collapse/is-link": {
- "type": "boolean",
- "description": "是否展示标题栏右侧箭头并开启点击反馈, 默认值: `true`"
- },
- "van-collapse/disabled": {
- "type": "boolean",
- "description": "是否禁用面板, 默认值: `false`"
- },
- "van-collapse/lazy-render": {
- "type": "boolean",
- "description": "是否在首次展开时才渲染面板内容, 默认值: `true`"
- },
- "van-collapse/title-class": {
- "type": "string",
- "description": "左侧标题额外类名, 默认值: -"
- },
- "van-collapse/value-class": {
- "type": "string",
- "description": "右侧内容额外类名, 默认值: -"
- },
- "van-collapse/label-class": {
- "type": "string",
- "description": "描述信息额外类名, 默认值: -"
- },
- "van-contact-edit/contact-info": {
- "type": "Contact",
- "description": "联系人信息, 默认值: `{}`"
- },
- "van-contact-edit/is-edit": {
- "type": "boolean",
- "description": "是否为编辑联系人, 默认值: `false`"
- },
- "van-contact-edit/is-saving": {
- "type": "boolean",
- "description": "是否显示保存按钮加载动画, 默认值: `false`"
- },
- "van-contact-edit/is-deleting": {
- "type": "boolean",
- "description": "是否显示删除按钮加载动画, 默认值: `false`"
- },
- "van-contact-edit/tel-validator": {
- "type": "(tel: string) => boolean",
- "description": "手机号格式校验函数, 默认值: -"
- },
- "van-contact-edit/show-set-default": {
- "type": "boolean",
- "description": "是否显示默认联系人栏, 默认值: `false`"
- },
- "van-contact-edit/set-default-label": {
- "type": "string",
- "description": "默认联系人栏文案, 默认值: -"
- },
- "van-contact-list/v-model": {
- "type": "number | string",
- "description": "当前选中联系人的 id, 默认值: -"
- },
- "van-contact-list/list": {
- "type": "Contact[]",
- "description": "联系人列表, 默认值: `[]`"
- },
- "van-contact-list/add-text": {
- "type": "string",
- "description": "新建按钮文案, 默认值: `新建联系人`"
- },
- "van-contact-list/default-tag-text": {
- "type": "string",
- "description": "默认联系人标签文案, 默认值: -"
- },
- "van-contact-card/type": {
- "type": "string",
- "description": "卡片类型,可选值为 `edit`, 默认值: `add`"
- },
- "van-contact-card/name": {
- "type": "string",
- "description": "联系人姓名, 默认值: -"
- },
- "van-contact-card/tel": {
- "type": "string",
- "description": "联系人手机号, 默认值: -"
- },
- "van-contact-card/add-text": {
- "type": "string",
- "description": "添加时的文案提示, 默认值: `添加联系人`"
- },
- "van-count-down/time": {
- "type": "number | string",
- "description": "倒计时时长,单位毫秒, 默认值: `0`"
- },
- "van-count-down/format": {
- "type": "string",
- "description": "时间格式, 默认值: `HH:mm:ss`"
- },
- "van-count-down/auto-start": {
- "type": "boolean",
- "description": "是否自动开始倒计时, 默认值: `true`"
- },
- "van-count-down/millisecond": {
- "type": "boolean",
- "description": "是否开启毫秒级渲染, 默认值: `false`"
- },
- "van-coupon/title": {
- "type": "string",
- "description": "单元格标题, 默认值: `优惠券`"
- },
- "van-coupon/chosen-coupon": {
- "type": "number",
- "description": "当前选中优惠券的索引, 默认值: `-1`"
- },
- "van-coupon/coupons": {
- "type": "Coupon[]",
- "description": "可用优惠券列表, 默认值: `[]`"
- },
- "van-coupon/editable": {
- "type": "boolean",
- "description": "能否切换优惠券, 默认值: `true`"
- },
- "van-coupon/border": {
- "type": "boolean",
- "description": "是否显示内边框, 默认值: `true`"
- },
- "van-coupon/currency": {
- "type": "string",
- "description": "货币符号, 默认值: `¥`"
- },
- "van-coupon/v-model": {
- "type": "string",
- "description": "当前输入的兑换码, 默认值: -"
- },
- "van-coupon/disabled-coupons": {
- "type": "Coupon[]",
- "description": "不可用优惠券列表, 默认值: `[]`"
- },
- "van-coupon/enabled-title": {
- "type": "string",
- "description": "可用优惠券列表标题, 默认值: `可使用优惠券`"
- },
- "van-coupon/disabled-title": {
- "type": "string",
- "description": "不可用优惠券列表标题, 默认值: `不可使用优惠券`"
- },
- "van-coupon/exchange-button-text": {
- "type": "string",
- "description": "兑换按钮文字, 默认值: `兑换`"
- },
- "van-coupon/exchange-button-loading": {
- "type": "boolean",
- "description": "是否显示兑换按钮加载动画, 默认值: `false`"
- },
- "van-coupon/exchange-button-disabled": {
- "type": "boolean",
- "description": "是否禁用兑换按钮, 默认值: `false`"
- },
- "van-coupon/exchange-min-length": {
- "type": "number",
- "description": "兑换码最小长度, 默认值: `1`"
- },
- "van-coupon/displayed-coupon-index": {
- "type": "number",
- "description": "滚动至特定优惠券位置, 默认值: -"
- },
- "van-coupon/show-close-button": {
- "type": "boolean",
- "description": "是否显示列表底部按钮, 默认值: `true`"
- },
- "van-coupon/close-button-text": {
- "type": "string",
- "description": "列表底部按钮文字, 默认值: `不使用优惠`"
- },
- "van-coupon/input-placeholder": {
- "type": "string",
- "description": "输入框文字提示, 默认值: `请输入优惠码`"
- },
- "van-coupon/show-exchange-bar": {
- "type": "boolean",
- "description": "是否展示兑换栏, 默认值: `true`"
- },
- "van-coupon/empty-image": {
- "type": "string",
- "description": "列表为空时的占位图, 默认值: `https://img01.yzcdn.cn/vant/coupon-empty.png`"
- },
- "van-coupon/show-count": {
- "type": "boolean",
- "description": "是否展示可用 / 不可用数量, 默认值: `true`"
- },
- "van-datetime-picker/type": {
- "type": "string",
- "description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`, 默认值: `datetime`"
- },
- "van-datetime-picker/title": {
- "type": "string",
- "description": "顶部栏标题, 默认值: `''`"
- },
- "van-datetime-picker/confirm-button-text": {
- "type": "string",
- "description": "确认按钮文字, 默认值: `确认`"
- },
- "van-datetime-picker/cancel-button-text": {
- "type": "string",
- "description": "取消按钮文字, 默认值: `取消`"
- },
- "van-datetime-picker/show-toolbar": {
- "type": "boolean",
- "description": "是否显示顶部栏, 默认值: `true`"
- },
- "van-datetime-picker/loading": {
- "type": "boolean",
- "description": "是否显示加载状态, 默认值: `false`"
- },
- "van-datetime-picker/readonly": {
- "type": "boolean",
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
- },
- "van-datetime-picker/filter": {
- "type": "(type, vals) => vals",
- "description": "选项过滤函数, 默认值: -"
- },
- "van-datetime-picker/formatter": {
- "type": "(type, val) => val",
- "description": "选项格式化函数, 默认值: -"
- },
- "van-datetime-picker/columns-order": {
- "type": "string[]",
- "description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`, 默认值: -"
- },
- "van-datetime-picker/item-height": {
- "type": "number | string",
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
- },
- "van-datetime-picker/visible-item-count": {
- "type": "number | string",
- "description": "可见的选项个数, 默认值: `6`"
- },
- "van-datetime-picker/swipe-duration": {
- "type": "number | string",
- "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
- },
- "van-datetime-picker/min-date": {
- "type": "Date",
- "description": "可选的最小时间,精确到分钟, 默认值: 十年前"
- },
- "van-datetime-picker/max-date": {
- "type": "Date",
- "description": "可选的最大时间,精确到分钟, 默认值: 十年后"
- },
- "van-datetime-picker/min-hour": {
- "type": "number | string",
- "description": "可选的最小小时, 默认值: `0`"
- },
- "van-datetime-picker/max-hour": {
- "type": "number | string",
- "description": "可选的最大小时, 默认值: `23`"
- },
- "van-datetime-picker/min-minute": {
- "type": "number | string",
- "description": "可选的最小分钟, 默认值: `0`"
- },
- "van-datetime-picker/max-minute": {
- "type": "number | string",
- "description": "可选的最大分钟, 默认值: `59`"
- },
- "van-divider/dashed": {
- "type": "boolean",
- "description": "是否使用虚线, 默认值: `false`"
- },
- "van-divider/hairline": {
- "type": "boolean",
- "description": "是否使用 0.5px 线, 默认值: `true`"
- },
- "van-divider/content-position": {
- "type": "string",
- "description": "内容位置,可选值为`left` `right`, 默认值: `center`"
- },
- "van-dialog/v-model": {
- "type": "boolean",
- "description": "是否显示弹窗, 默认值: -"
- },
- "van-dialog/title": {
- "type": "string",
- "description": "标题, 默认值: -"
- },
- "van-dialog/width": {
- "type": "number | string",
- "description": "弹窗宽度,默认单位为 `px`, 默认值: `320px`"
- },
- "van-dialog/message": {
- "type": "string",
- "description": "文本内容,支持通过 `\\n` 换行, 默认值: -"
- },
- "van-dialog/message-align": {
- "type": "string",
- "description": "内容对齐方式,可选值为 `left` `right`, 默认值: `center`"
- },
- "van-dialog/theme": {
- "type": "string",
- "description": "样式风格,可选值为 `round-button`, 默认值: `default`"
- },
- "van-dialog/show-confirm-button": {
- "type": "boolean",
- "description": "是否展示确认按钮, 默认值: `true`"
- },
- "van-dialog/show-cancel-button": {
- "type": "boolean",
- "description": "是否展示取消按钮, 默认值: `false`"
- },
- "van-dialog/confirm-button-text": {
- "type": "string",
- "description": "确认按钮文案, 默认值: `确认`"
- },
- "van-dialog/confirm-button-color": {
- "type": "string",
- "description": "确认按钮颜色, 默认值: `#ee0a24`"
- },
- "van-dialog/cancel-button-text": {
- "type": "string",
- "description": "取消按钮文案, 默认值: `取消`"
- },
- "van-dialog/cancel-button-color": {
- "type": "string",
- "description": "取消按钮颜色, 默认值: `black`"
- },
- "van-dialog/overlay": {
- "type": "boolean",
- "description": "是否展示遮罩层, 默认值: `true`"
- },
- "van-dialog/overlay-class": {
- "type": "string",
- "description": "自定义遮罩层类名, 默认值: -"
- },
- "van-dialog/overlay-style": {
- "type": "object",
- "description": "自定义遮罩层样式, 默认值: -"
- },
- "van-dialog/close-on-popstate": {
- "type": "boolean",
- "description": "是否在页面回退时自动关闭, 默认值: `true`"
- },
- "van-dialog/close-on-click-overlay": {
- "type": "boolean",
- "description": "是否在点击遮罩层后关闭弹窗, 默认值: `false`"
- },
- "van-dialog/lazy-render": {
- "type": "boolean",
- "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
- },
- "van-dialog/lock-scroll": {
- "type": "boolean",
- "description": "是否锁定背景滚动, 默认值: `true`"
- },
- "van-dialog/allow-html": {
- "type": "boolean",
- "description": "是否允许 message 内容中渲染 HTML, 默认值: `true`"
- },
- "van-dialog/before-close": {
- "type": "(action, done) => void",
- "description": "关闭前的回调函数,<br>调用 done() 后关闭弹窗,<br>调用 done(false) 阻止弹窗关闭, 默认值: -"
- },
- "van-dialog/transition": {
- "type": "string",
- "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: -"
- },
- "van-dialog/get-container": {
- "type": "string | () => Element",
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
- },
- "van-dropdown-menu/active-color": {
- "type": "string",
- "description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
- },
- "van-dropdown-menu/direction": {
- "type": "string",
- "description": "菜单展开方向,可选值为`up`, 默认值: `down`"
- },
- "van-dropdown-menu/z-index": {
- "type": "number | string",
- "description": "菜单栏 z-index 层级, 默认值: `10`"
- },
- "van-dropdown-menu/duration": {
- "type": "number | string",
- "description": "动画时长,单位秒, 默认值: `0.2`"
- },
- "van-dropdown-menu/overlay": {
- "type": "boolean",
- "description": "是否显示遮罩层, 默认值: `true`"
- },
- "van-dropdown-menu/close-on-click-overlay": {
- "type": "boolean",
- "description": "是否在点击遮罩层后关闭菜单, 默认值: `true`"
- },
- "van-dropdown-menu/close-on-click-outside": {
- "type": "boolean",
- "description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
- },
- "van-dropdown-menu/value": {
- "type": "number | string",
- "description": "当前选中项对应的 value,可以通过`v-model`双向绑定, 默认值: -"
- },
- "van-dropdown-menu/title": {
- "type": "string",
- "description": "菜单项标题, 默认值: 当前选中项文字"
- },
- "van-dropdown-menu/options": {
- "type": "Option[]",
- "description": "选项数组, 默认值: `[]`"
- },
- "van-dropdown-menu/disabled": {
- "type": "boolean",
- "description": "是否禁用菜单, 默认值: `false`"
- },
- "van-dropdown-menu/lazy-render": {
- "type": "boolean",
- "description": "是否在首次展开时才渲染菜单内容, 默认值: `true`"
- },
- "van-dropdown-menu/title-class": {
- "type": "string",
- "description": "标题额外类名, 默认值: -"
- },
- "van-dropdown-menu/get-container": {
- "type": "string | () => Element",
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
- },
- "van-empty/image": {
- "type": "string",
- "description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL, 默认值: `default`"
- },
- "van-empty/image-size": {
- "type": "number | string",
- "description": "图片大小,默认单位为 `px`, 默认值: -"
- },
- "van-empty/description": {
- "type": "string",
- "description": "图片下方的描述文字, 默认值: -"
- },
- "van-field/v-model (value)": {
- "type": "number | string",
- "description": "当前输入的值, 默认值: -"
- },
- "van-field/label": {
- "type": "string",
- "description": "输入框左侧文本, 默认值: -"
- },
- "van-field/name": {
- "type": "string",
- "description": "名称,提交表单的标识符, 默认值: -"
- },
- "van-field/type": {
- "type": "string",
- "description": "输入框类型, 可选值为 `tel` `digit`<br>`number` `textarea` `password` 等, 默认值: `text`"
- },
- "van-field/size": {
- "type": "string",
- "description": "大小,可选值为 `large`, 默认值: -"
- },
- "van-field/maxlength": {
- "type": "number | string",
- "description": "输入的最大字符数, 默认值: -"
- },
- "van-field/placeholder": {
- "type": "string",
- "description": "输入框占位提示文字, 默认值: -"
- },
- "van-field/border": {
- "type": "boolean",
- "description": "是否显示内边框, 默认值: `true`"
- },
- "van-field/disabled": {
- "type": "boolean",
- "description": "是否禁用输入框, 默认值: `false`"
- },
- "van-field/readonly": {
- "type": "boolean",
- "description": "是否只读, 默认值: `false`"
- },
- "van-field/colon": {
- "type": "boolean",
- "description": "是否在 label 后面添加冒号, 默认值: `false`"
- },
- "van-field/required": {
- "type": "boolean",
- "description": "是否显示表单必填星号, 默认值: `false`"
- },
- "van-field/center": {
- "type": "boolean",
- "description": "是否使内容垂直居中, 默认值: `false`"
- },
- "van-field/clearable": {
- "type": "boolean",
- "description": "是否启用清除图标,点击清除图标后会清空输入框, 默认值: `false`"
- },
- "van-field/clear-trigger": {
- "type": "string",
- "description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
- },
- "van-field/clickable": {
- "type": "boolean",
- "description": "是否开启点击反馈, 默认值: `false`"
- },
- "van-field/is-link": {
- "type": "boolean",
- "description": "是否展示右侧箭头并开启点击反馈, 默认值: `false`"
- },
- "van-field/autofocus": {
- "type": "boolean",
- "description": "是否自动聚焦,iOS 系统不支持该属性, 默认值: `false`"
- },
- "van-field/show-word-limit": {
- "type": "boolean",
- "description": "是否显示字数统计,需要设置`maxlength`属性, 默认值: `false`"
- },
- "van-field/error": {
- "type": "boolean",
- "description": "是否将输入内容标红, 默认值: `false`"
- },
- "van-field/error-message": {
- "type": "string",
- "description": "底部错误提示文案,为空时不展示, 默认值: -"
- },
- "van-field/formatter": {
- "type": "Function",
- "description": "输入内容格式化函数, 默认值: -"
- },
- "van-field/format-trigger": {
- "type": "string",
- "description": "格式化函数触发的时机,可选值为 `onBlur`, 默认值: `onChange`"
- },
- "van-field/arrow-direction": {
- "type": "string",
- "description": "箭头方向,可选值为 `left` `up` `down`, 默认值: `right`"
- },
- "van-field/label-class": {
- "type": "any",
- "description": "左侧文本额外类名, 默认值: -"
- },
- "van-field/label-width": {
- "type": "number | string",
- "description": "左侧文本宽度,默认单位为`px`, 默认值: `6.2em`"
- },
- "van-field/label-align": {
- "type": "string",
- "description": "左侧文本对齐方式,可选值为 `center` `right`, 默认值: `left`"
- },
- "van-field/input-align": {
- "type": "string",
- "description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
- },
- "van-field/error-message-align": {
- "type": "string",
- "description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
- },
- "van-field/autosize": {
- "type": "boolean | object",
- "description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`, 默认值: `false`"
- },
- "van-field/left-icon": {
- "type": "string",
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
- },
- "van-field/right-icon": {
- "type": "string",
- "description": "右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
- },
- "van-field/icon-prefix": {
- "type": "string",
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
- },
- "van-field/rules": {
- "type": "Rule[]",
- "description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou), 默认值: -"
- },
- "van-field/autocomplete": {
- "type": "string",
- "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
- },
- "van-form/label-width": {
- "type": "number | string",
- "description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
- },
- "van-form/label-align": {
- "type": "string",
- "description": "表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
- },
- "van-form/input-align": {
- "type": "string",
- "description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
- },
- "van-form/error-message-align": {
- "type": "string",
- "description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
- },
- "van-form/validate-trigger": {
- "type": "string",
- "description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表, 默认值: `onBlur`"
- },
- "van-form/colon": {
- "type": "boolean",
- "description": "是否在 label 后面添加冒号, 默认值: `false`"
- },
- "van-form/disabled": {
- "type": "boolean",
- "description": "是否禁用表单中的所有输入框, 默认值: `false`"
- },
- "van-form/readonly": {
- "type": "boolean",
- "description": "是否将表单中的所有输入框设置为只读, 默认值: `false`"
- },
- "van-form/validate-first": {
- "type": "boolean",
- "description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
- },
- "van-form/scroll-to-error": {
- "type": "boolean",
- "description": "是否在提交表单且校验不通过时滚动至错误的表单项, 默认值: `false`"
- },
- "van-form/show-error": {
- "type": "boolean",
- "description": "是否在校验不通过时标红输入框, 默认值: `true`"
- },
- "van-form/show-error-message": {
- "type": "boolean",
- "description": "是否在校验不通过时在输入框下方展示错误提示, 默认值: `true`"
- },
- "van-form/submit-on-enter": {
- "type": "boolean",
- "description": "是否在按下回车键时提交表单, 默认值: `true`"
- },
- "van-goods-action/safe-area-inset-bottom": {
- "type": "boolean",
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
- },
- "van-goods-action/text": {
- "type": "string",
- "description": "按钮文字, 默认值: -"
- },
- "van-goods-action/icon": {
- "type": "string",
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
- },
- "van-goods-action/color": {
- "type": "string",
- "description": "按钮颜色,支持传入`linear-gradient`渐变色, 默认值: -"
- },
- "van-goods-action/icon-class": {
- "type": "any",
- "description": "图标额外类名, 默认值: -"
- },
- "van-goods-action/dot": {
- "type": "boolean",
- "description": "是否显示图标右上角小红点, 默认值: `false`"
- },
- "van-goods-action/badge": {
- "type": "number | string",
- "description": "图标右上角徽标的内容, 默认值: -"
- },
- "van-goods-action/info": {
- "type": "number | string",
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
- },
- "van-goods-action/url": {
- "type": "string",
- "description": "点击后跳转的链接地址, 默认值: -"
- },
- "van-goods-action/to": {
- "type": "string | object",
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
- },
- "van-goods-action/replace": {
- "type": "boolean",
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
- },
- "van-goods-action/type": {
- "type": "string",
- "description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
- },
- "van-goods-action/disabled": {
- "type": "boolean",
- "description": "是否禁用按钮, 默认值: `false`"
- },
- "van-goods-action/loading": {
- "type": "boolean",
- "description": "是否显示为加载状态, 默认值: `false`"
- },
- "van-grid/column-num": {
- "type": "number | string",
- "description": "列数, 默认值: `4`"
- },
- "van-grid/icon-size": {
- "type": "number | string",
- "description": "图标大小,默认单位为`px`, 默认值: `28px`"
- },
- "van-grid/gutter": {
- "type": "number | string",
- "description": "格子之间的间距,默认单位为`px`, 默认值: `0`"
- },
- "van-grid/border": {
- "type": "boolean",
- "description": "是否显示边框, 默认值: `true`"
- },
- "van-grid/center": {
- "type": "boolean",
- "description": "是否将格子内容居中显示, 默认值: `true`"
- },
- "van-grid/square": {
- "type": "boolean",
- "description": "是否将格子固定为正方形, 默认值: `false`"
- },
- "van-grid/clickable": {
- "type": "boolean",
- "description": "是否开启格子点击反馈, 默认值: `false`"
- },
- "van-grid/direction": {
- "type": "string",
- "description": "格子内容排列的方向,可选值为 `horizontal`, 默认值: `vertical`"
- },
- "van-grid/text": {
- "type": "string",
- "description": "文字, 默认值: -"
- },
- "van-grid/icon": {
- "type": "string",
- "description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
- },
- "van-grid/icon-prefix": {
- "type": "string",
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
- },
- "van-grid/dot": {
- "type": "boolean",
- "description": "是否显示图标右上角小红点, 默认值: `false`"
- },
- "van-grid/badge": {
- "type": "number | string",
- "description": "图标右上角徽标的内容, 默认值: -"
- },
- "van-grid/info": {
- "type": "number | string",
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
- },
- "van-grid/url": {
- "type": "string",
- "description": "点击后跳转的链接地址, 默认值: -"
- },
- "van-grid/to": {
- "type": "string | object",
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
- },
- "van-grid/replace": {
- "type": "boolean",
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
- },
- "van-icon/name": {
- "type": "string",
- "description": "图标名称或图片链接, 默认值: -"
- },
- "van-icon/dot": {
- "type": "boolean",
- "description": "是否显示图标右上角小红点, 默认值: `false`"
- },
- "van-icon/badge": {
- "type": "number | string",
- "description": "图标右上角徽标的内容, 默认值: -"
- },
- "van-icon/info": {
- "type": "number | string",
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
- },
- "van-icon/color": {
- "type": "string",
- "description": "图标颜色, 默认值: `inherit`"
- },
- "van-icon/size": {
- "type": "number | string",
- "description": "图标大小,如 `20px` `2em`,默认单位为`px`, 默认值: `inherit`"
- },
- "van-icon/class-prefix": {
- "type": "string",
- "description": "类名前缀,用于使用自定义图标, 默认值: `van-icon`"
- },
- "van-icon/tag": {
- "type": "string",
- "description": "HTML 标签, 默认值: `i`"
- },
- "van-image/src": {
- "type": "string",
- "description": "图片链接, 默认值: -"
- },
- "van-image/fit": {
- "type": "string",
- "description": "图片填充模式, 默认值: `fill`"
- },
- "van-image/alt": {
- "type": "string",
- "description": "替代文本, 默认值: -"
- },
- "van-image/width": {
- "type": "number | string",
- "description": "宽度,默认单位为`px`, 默认值: -"
- },
- "van-image/height": {
- "type": "number | string",
- "description": "高度,默认单位为`px`, 默认值: -"
- },
- "van-image/radius": {
- "type": "number | string",
- "description": "圆角大小,默认单位为`px`, 默认值: `0`"
- },
- "van-image/round": {
- "type": "boolean",
- "description": "是否显示为圆形, 默认值: `false`"
- },
- "van-image/lazy-load": {
- "type": "boolean",
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
- },
- "van-image/show-error": {
- "type": "boolean",
- "description": "是否展示图片加载失败提示, 默认值: `true`"
- },
- "van-image/show-loading": {
- "type": "boolean",
- "description": "是否展示图片加载中提示, 默认值: `true`"
- },
- "van-image/error-icon": {
- "type": "string",
- "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo-fail`"
- },
- "van-image/loading-icon": {
- "type": "string",
- "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo`"
- },
- "van-image/icon-prefix": {
- "type": "string",
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
- },
- "van-image-preview/images": {
- "type": "string[]",
- "description": "需要预览的图片 URL 数组, 默认值: `[]`"
- },
- "van-image-preview/start-position": {
- "type": "number | string",
- "description": "图片预览起始位置索引, 默认值: `0`"
- },
- "van-image-preview/swipe-duration": {
- "type": "number | string",
- "description": "动画时长,单位为 ms, 默认值: `300`"
- },
- "van-image-preview/show-index": {
- "type": "boolean",
- "description": "是否显示页码, 默认值: `true`"
- },
- "van-image-preview/show-indicators": {
- "type": "boolean",
- "description": "是否显示轮播指示器, 默认值: `false`"
- },
- "van-image-preview/loop": {
- "type": "boolean",
- "description": "是否开启循环播放, 默认值: `true`"
- },
- "van-image-preview/async-close": {
- "type": "boolean",
- "description": "是否开启异步关闭, 默认值: `false`"
- },
- "van-image-preview/close-on-popstate": {
- "type": "boolean",
- "description": "是否在页面回退时自动关闭, 默认值: `true`"
- },
- "van-image-preview/class-name": {
- "type": "any",
- "description": "自定义类名, 默认值: -"
- },
- "van-image-preview/max-zoom": {
- "type": "number | string",
- "description": "手势缩放时,最大缩放比例, 默认值: `3`"
- },
- "van-image-preview/min-zoom": {
- "type": "number | string",
- "description": "手势缩放时,最小缩放比例, 默认值: `1/3`"
- },
- "van-image-preview/closeable": {
- "type": "boolean",
- "description": "是否显示关闭图标, 默认值: `false`"
- },
- "van-image-preview/close-icon": {
- "type": "string",
- "description": "关闭图标名称或图片链接, 默认值: `clear`"
- },
- "van-image-preview/close-icon-position": {
- "type": "string",
- "description": "关闭图标位置,可选值为`top-left`<br>`bottom-left` `bottom-right`, 默认值: `top-right`"
- },
- "van-image-preview/transition": {
- "type": "string",
- "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: `van-fade`"
- },
- "van-image-preview/overlay-style": {
- "type": "object",
- "description": "自定义遮罩层样式, 默认值: -"
- },
- "van-image-preview/get-container": {
- "type": "string | () => Element",
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
- },
- "van-index-bar/index-list": {
- "type": "string[] | number[]",
- "description": "索引字符列表, 默认值: `A-Z`"
- },
- "van-index-bar/z-index": {
- "type": "number | string",
- "description": "z-index 层级, 默认值: `1`"
- },
- "van-index-bar/sticky": {
- "type": "boolean",
- "description": "是否开启锚点自动吸顶, 默认值: `true`"
- },
- "van-index-bar/sticky-offset-top": {
- "type": "number",
- "description": "锚点自动吸顶时与顶部的距离, 默认值: `0`"
- },
- "van-index-bar/highlight-color": {
- "type": "string",
- "description": "索引字符高亮颜色, 默认值: `#ee0a24`"
- },
- "van-index-bar/index": {
- "type": "number | string",
- "description": "索引字符, 默认值: -"
- },
- "van-list/v-model": {
- "type": "boolean",
- "description": "是否处于加载状态,加载过程中不触发`load`事件, 默认值: `false`"
- },
- "van-list/finished": {
- "type": "boolean",
- "description": "是否已加载完成,加载完成后不再触发`load`事件, 默认值: `false`"
- },
- "van-list/error": {
- "type": "boolean",
- "description": "是否加载失败,加载失败后点击错误提示可以重新<br>触发`load`事件,必须使用`sync`修饰符, 默认值: `false`"
- },
- "van-list/offset": {
- "type": "number | string",
- "description": "滚动条与底部距离小于 offset 时触发`load`事件, 默认值: `300`"
- },
- "van-list/loading-text": {
- "type": "string",
- "description": "加载过程中的提示文案, 默认值: `加载中...`"
- },
- "van-list/finished-text": {
- "type": "string",
- "description": "加载完成后的提示文案, 默认值: -"
- },
- "van-list/error-text": {
- "type": "string",
- "description": "加载失败后的提示文案, 默认值: -"
- },
- "van-list/immediate-check": {
- "type": "boolean",
- "description": "是否在初始化时立即执行滚动位置检查, 默认值: `true`"
- },
- "van-list/direction": {
- "type": "string",
- "description": "滚动触发加载的方向,可选值为`up`, 默认值: `down`"
- },
- "van-loading/color": {
- "type": "string",
- "description": "颜色, 默认值: `#c9c9c9`"
- },
- "van-loading/type": {
- "type": "string",
- "description": "类型,可选值为 `spinner`, 默认值: `circular`"
- },
- "van-loading/size": {
- "type": "number | string",
- "description": "加载图标大小,默认单位为 `px`, 默认值: `30px`"
- },
- "van-loading/text-size": {
- "type": "number | string",
- "description": "文字大小,默认单位为 `px`, 默认值: `14px`"
- },
- "van-loading/text-color": {
- "type": "string",
- "description": "文字颜色, 默认值: `#c9c9c9`"
- },
- "van-loading/vertical": {
- "type": "boolean",
- "description": "是否垂直排列图标和文字内容, 默认值: `false`"
- },
- "van-nav-bar/title": {
- "type": "string",
- "description": "标题, 默认值: `''`"
- },
- "van-nav-bar/left-text": {
- "type": "string",
- "description": "左侧文案, 默认值: `''`"
- },
- "van-nav-bar/right-text": {
- "type": "string",
- "description": "右侧文案, 默认值: `''`"
- },
- "van-nav-bar/left-arrow": {
- "type": "boolean",
- "description": "是否显示左侧箭头, 默认值: `false`"
- },
- "van-nav-bar/border": {
- "type": "boolean",
- "description": "是否显示下边框, 默认值: `true`"
- },
- "van-nav-bar/fixed": {
- "type": "boolean",
- "description": "是否固定在顶部, 默认值: `false`"
- },
- "van-nav-bar/placeholder": {
- "type": "boolean",
- "description": "固定在顶部时,是否在标签位置生成一个等高的占位元素, 默认值: `false`"
- },
- "van-nav-bar/z-index": {
- "type": "number | string",
- "description": "导航栏 z-index, 默认值: `1`"
- },
- "van-nav-bar/safe-area-inset-top": {
- "type": "boolean",
- "description": "是否开启[顶部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
- },
- "van-notice-bar/mode": {
- "type": "string",
- "description": "通知栏模式,可选值为 `closeable` `link`, 默认值: `''`"
- },
- "van-notice-bar/text": {
- "type": "string",
- "description": "通知文本内容, 默认值: `''`"
- },
- "van-notice-bar/color": {
- "type": "string",
- "description": "通知文本颜色, 默认值: `#f60`"
- },
- "van-notice-bar/background": {
- "type": "string",
- "description": "滚动条背景, 默认值: `#fff7cc`"
- },
- "van-notice-bar/left-icon": {
- "type": "string",
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
- },
- "van-notice-bar/delay": {
- "type": "number | string",
- "description": "动画延迟时间 (s), 默认值: `1`"
- },
- "van-notice-bar/speed": {
- "type": "number | string",
- "description": "滚动速率 (px/s), 默认值: `60`"
- },
- "van-notice-bar/scrollable": {
- "type": "boolean",
- "description": "是否开启滚动播放,内容长度溢出时默认开启, 默认值: -"
- },
- "van-notice-bar/wrapable": {
- "type": "boolean",
- "description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
- },
- "van-number-keyboard/v-model (value)": {
- "type": "string",
- "description": "当前输入值, 默认值: -"
- },
- "van-number-keyboard/show": {
- "type": "boolean",
- "description": "是否显示键盘, 默认值: -"
- },
- "van-number-keyboard/title": {
- "type": "string",
- "description": "键盘标题, 默认值: -"
- },
- "van-number-keyboard/theme": {
- "type": "string",
- "description": "样式风格,可选值为 `custom`, 默认值: `default`"
- },
- "van-number-keyboard/maxlength": {
- "type": "number | string",
- "description": "输入值最大长度, 默认值: -"
- },
- "van-number-keyboard/transition": {
- "type": "boolean",
- "description": "是否开启过场动画, 默认值: `true`"
- },
- "van-number-keyboard/z-index": {
- "type": "number | string",
- "description": "键盘 z-index 层级, 默认值: `100`"
- },
- "van-number-keyboard/extra-key": {
- "type": "string | string[]",
- "description": "底部额外按键的内容, 默认值: `''`"
- },
- "van-number-keyboard/close-button-text": {
- "type": "string",
- "description": "关闭按钮文字,空则不展示, 默认值: -"
- },
- "van-number-keyboard/delete-button-text": {
- "type": "string",
- "description": "删除按钮文字,空则展示删除图标, 默认值: -"
- },
- "van-number-keyboard/close-button-loading": {
- "type": "boolean",
- "description": "是否将关闭按钮设置为加载中状态,仅在 `theme=\"custom\"` 时有效, 默认值: `false`"
- },
- "van-number-keyboard/show-delete-key": {
- "type": "boolean",
- "description": "是否展示删除图标, 默认值: `true`"
- },
- "van-number-keyboard/hide-on-click-outside": {
- "type": "boolean",
- "description": "点击外部时是否收起键盘, 默认值: `true`"
- },
- "van-number-keyboard/get-container": {
- "type": "string | () => Element",
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
- },
- "van-number-keyboard/safe-area-inset-bottom": {
- "type": "boolean",
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
- },
- "van-number-keyboard/random-key-order": {
- "type": "boolean",
- "description": "是否将通过随机顺序展示按键, 默认值: `false`"
- },
- "van-overlay/show": {
- "type": "boolean",
- "description": "是否展示遮罩层, 默认值: `false`"
- },
- "van-overlay/z-index": {
- "type": "number | string",
- "description": "z-index 层级, 默认值: `1`"
- },
- "van-overlay/duration": {
- "type": "number | string",
- "description": "动画时长,单位秒, 默认值: `0.3`"
- },
- "van-overlay/class-name": {
- "type": "string",
- "description": "自定义类名, 默认值: -"
- },
- "van-overlay/custom-style": {
- "type": "object",
- "description": "自定义样式, 默认值: -"
- },
- "van-overlay/lock-scroll": {
- "type": "boolean",
- "description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
- },
- "van-picker/columns": {
- "type": "Column[]",
- "description": "对象数组,配置每一列显示的数据, 默认值: `[]`"
- },
- "van-picker/title": {
- "type": "string",
- "description": "顶部栏标题, 默认值: -"
- },
- "van-picker/confirm-button-text": {
- "type": "string",
- "description": "确认按钮文字, 默认值: `确认`"
- },
- "van-picker/cancel-button-text": {
- "type": "string",
- "description": "取消按钮文字, 默认值: `取消`"
- },
- "van-picker/value-key": {
- "type": "string",
- "description": "选项对象中,选项文字对应的键名, 默认值: `text`"
- },
- "van-picker/toolbar-position": {
- "type": "string",
- "description": "顶部栏位置,可选值为`bottom`, 默认值: `top`"
- },
- "van-picker/loading": {
- "type": "boolean",
- "description": "是否显示加载状态, 默认值: `false`"
- },
- "van-picker/readonly": {
- "type": "boolean",
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
- },
- "van-picker/show-toolbar": {
- "type": "boolean",
- "description": "是否显示顶部栏, 默认值: `false`"
- },
- "van-picker/allow-html": {
- "type": "boolean",
- "description": "是否允许选项内容中渲染 HTML, 默认值: `true`"
- },
- "van-picker/default-index": {
- "type": "number | string",
- "description": "单列选择时,默认选中项的索引, 默认值: `0`"
- },
- "van-picker/item-height": {
- "type": "number | string",
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
- },
- "van-picker/visible-item-count": {
- "type": "number | string",
- "description": "可见的选项个数, 默认值: `6`"
- },
- "van-picker/swipe-duration": {
- "type": "number | string",
- "description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
- },
- "van-panel/title": {
- "type": "string",
- "description": "标题, 默认值: -"
- },
- "van-panel/desc": {
- "type": "string",
- "description": "描述, 默认值: -"
- },
- "van-panel/status": {
- "type": "string",
- "description": "状态, 默认值: -"
- },
- "van-panel/icon": {
- "type": "string",
- "description": "标题左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
- },
- "van-pagination/v-model": {
- "type": "number",
- "description": "当前页码, 默认值: -"
- },
- "van-pagination/mode": {
- "type": "string",
- "description": "显示模式,可选值为 `simple`, 默认值: `multi`"
- },
- "van-pagination/prev-text": {
- "type": "string",
- "description": "上一页按钮文字, 默认值: `上一页`"
- },
- "van-pagination/next-text": {
- "type": "string",
- "description": "下一页按钮文字, 默认值: `下一页`"
- },
- "van-pagination/page-count": {
- "type": "number | string",
- "description": "总页数, 默认值: 根据页数计算"
- },
- "van-pagination/total-items": {
- "type": "number | string",
- "description": "总记录数, 默认值: `0`"
- },
- "van-pagination/items-per-page": {
- "type": "number | string",
- "description": "每页记录数, 默认值: `10`"
- },
- "van-pagination/show-page-size": {
- "type": "number | string",
- "description": "显示的页码个数, 默认值: `5`"
- },
- "van-pagination/force-ellipses": {
- "type": "boolean",
- "description": "是否显示省略号, 默认值: `false`"
- },
- "van-password-input/value": {
- "type": "string",
- "description": "密码值, 默认值: `''`"
- },
- "van-password-input/info": {
- "type": "string",
- "description": "输入框下方文字提示, 默认值: -"
- },
- "van-password-input/error-info": {
- "type": "string",
- "description": "输入框下方错误提示, 默认值: -"
- },
- "van-password-input/length": {
- "type": "number | string",
- "description": "密码最大长度, 默认值: `6`"
- },
- "van-password-input/gutter": {
- "type": "number | string",
- "description": "输入框格子之间的间距,如 `20px` `2em`,默认单位为`px`, 默认值: `0`"
- },
- "van-password-input/mask": {
- "type": "boolean",
- "description": "是否隐藏密码内容, 默认值: `true`"
- },
- "van-password-input/focused": {
- "type": "boolean",
- "description": "是否已聚焦,聚焦时会显示光标, 默认值: `false`"
- },
- "van-popover/v-model": {
- "type": "boolean",
- "description": "是否展示气泡弹出层, 默认值: `false`"
- },
- "van-popover/actions": {
- "type": "Action[]",
- "description": "选项列表, 默认值: `[]`"
- },
- "van-popover/placement": {
- "type": "string",
- "description": "弹出位置, 默认值: `bottom`"
- },
- "van-popover/theme": {
- "type": "string",
- "description": "主题风格,可选值为 `dark`, 默认值: `light`"
- },
- "van-popover/trigger": {
- "type": "-",
- "description": "触发方式,可选值为 `click`, 默认值: undefined"
- },
- "van-popover/offset": {
- "type": "[number, number]",
- "description": "出现位置的偏移量, 默认值: `[0, 8]`"
- },
- "van-popover/overlay": {
- "type": "boolean",
- "description": "是否显示遮罩层, 默认值: `false`"
- },
- "van-popover/close-on-click-action": {
- "type": "boolean",
- "description": "是否在点击选项后关闭, 默认值: `true`"
- },
- "van-popover/close-on-click-outside": {
- "type": "boolean",
- "description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
- },
- "van-popover/get-container": {
- "type": "string | () => Element",
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: `body`"
- },
- "van-popup/v-model (value)": {
- "type": "boolean",
- "description": "是否显示弹出层, 默认值: `false`"
- },
- "van-popup/overlay": {
- "type": "boolean",
- "description": "是否显示遮罩层, 默认值: `true`"
- },
- "van-popup/position": {
- "type": "string",
- "description": "弹出位置,可选值为 `top` `bottom` `right` `left`, 默认值: `center`"
- },
- "van-popup/overlay-class": {
- "type": "string",
- "description": "自定义遮罩层类名, 默认值: -"
- },
- "van-popup/overlay-style": {
- "type": "object",
- "description": "自定义遮罩层样式, 默认值: -"
- },
- "van-popup/duration": {
- "type": "number | string",
- "description": "动画时长,单位秒, 默认值: `0.3`"
- },
- "van-popup/round": {
- "type": "boolean",
- "description": "是否显示圆角, 默认值: `false`"
- },
- "van-popup/lock-scroll": {
- "type": "boolean",
- "description": "是否锁定背景滚动, 默认值: `true`"
- },
- "van-popup/lazy-render": {
- "type": "boolean",
- "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
- },
- "van-popup/close-on-popstate": {
- "type": "boolean",
- "description": "是否在页面回退时自动关闭, 默认值: `false`"
- },
- "van-popup/close-on-click-overlay": {
- "type": "boolean",
- "description": "是否在点击遮罩层后关闭, 默认值: `true`"
- },
- "van-popup/closeable": {
- "type": "boolean",
- "description": "是否显示关闭图标, 默认值: `false`"
- },
- "van-popup/close-icon": {
- "type": "string",
- "description": "关闭图标名称或图片链接, 默认值: `cross`"
- },
- "van-popup/close-icon-position": {
- "type": "string",
- "description": "关闭图标位置,可选值为`top-left`<br>`bottom-left` `bottom-right`, 默认值: `top-right`"
- },
- "van-popup/transition": {
- "type": "string",
- "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性, 默认值: -"
- },
- "van-popup/transition-appear": {
- "type": "boolean",
- "description": "是否在初始渲染时启用过渡动画, 默认值: `false`"
- },
- "van-popup/get-container": {
- "type": "string | () => Element",
- "description": "指定挂载的节点, 默认值: -"
- },
- "van-popup/safe-area-inset-bottom": {
- "type": "boolean",
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
- },
- "van-progress/percentage": {
- "type": "number | string",
- "description": "进度百分比, 默认值: `0`"
- },
- "van-progress/stroke-width": {
- "type": "number | string",
- "description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
- },
- "van-progress/color": {
- "type": "string",
- "description": "进度条颜色, 默认值: `#1989fa`"
- },
- "van-progress/track-color": {
- "type": "string",
- "description": "轨道颜色, 默认值: `#e5e5e5`"
- },
- "van-progress/pivot-text": {
- "type": "string",
- "description": "进度文字内容, 默认值: 百分比"
- },
- "van-progress/pivot-color": {
- "type": "string",
- "description": "进度文字背景色, 默认值: 同进度条颜色"
- },
- "van-progress/text-color": {
- "type": "string",
- "description": "进度文字颜色, 默认值: `white`"
- },
- "van-progress/inactive": {
- "type": "boolean",
- "description": "是否置灰, 默认值: `false`"
- },
- "van-progress/show-pivot": {
- "type": "boolean",
- "description": "是否显示进度文字, 默认值: `true`"
- },
- "van-pull-refresh/v-model": {
- "type": "boolean",
- "description": "是否处于加载中状态, 默认值: -"
- },
- "van-pull-refresh/pulling-text": {
- "type": "string",
- "description": "下拉过程提示文案, 默认值: `下拉即可刷新...`"
- },
- "van-pull-refresh/loosing-text": {
- "type": "string",
- "description": "释放过程提示文案, 默认值: `释放即可刷新...`"
- },
- "van-pull-refresh/loading-text": {
- "type": "string",
- "description": "加载过程提示文案, 默认值: `加载中...`"
- },
- "van-pull-refresh/success-text": {
- "type": "string",
- "description": "刷新成功提示文案, 默认值: -"
- },
- "van-pull-refresh/success-duration": {
- "type": "number | string",
- "description": "刷新成功提示展示时长(ms), 默认值: `500`"
- },
- "van-pull-refresh/animation-duration": {
- "type": "number | string",
- "description": "动画时长, 默认值: `300`"
- },
- "van-pull-refresh/head-height": {
- "type": "number | string",
- "description": "顶部内容高度, 默认值: `50`"
- },
- "van-pull-refresh/pull-distance": {
- "type": "number | string",
- "description": "触发下拉刷新的距离, 默认值: 与 `head-height` 一致"
- },
- "van-pull-refresh/disabled": {
- "type": "boolean",
- "description": "是否禁用下拉刷新, 默认值: `false`"
- },
- "van-radio/name": {
- "type": "any",
- "description": "标识符, 默认值: -"
- },
- "van-radio/shape": {
- "type": "string",
- "description": "形状,可选值为 `square`, 默认值: `round`"
- },
- "van-radio/disabled": {
- "type": "boolean",
- "description": "是否禁用所有单选框, 默认值: `false`"
- },
- "van-radio/label-disabled": {
- "type": "boolean",
- "description": "是否禁用文本内容点击, 默认值: `false`"
- },
- "van-radio/label-position": {
- "type": "string",
- "description": "文本位置,可选值为 `left`, 默认值: `right`"
- },
- "van-radio/icon-size": {
- "type": "number | string",
- "description": "所有单选框的图标大小,默认单位为`px`, 默认值: `20px`"
- },
- "van-radio/checked-color": {
- "type": "string",
- "description": "所有单选框的选中状态颜色, 默认值: `#1989fa`"
- },
- "van-radio/v-model (value)": {
- "type": "any",
- "description": "当前选中项的标识符, 默认值: -"
- },
- "van-radio/direction": {
- "type": "string",
- "description": "排列方向,可选值为`horizontal`, 默认值: `vertical`"
- },
- "van-rate/v-model": {
- "type": "number",
- "description": "当前分值, 默认值: -"
- },
- "van-rate/count": {
- "type": "number | string",
- "description": "图标总数, 默认值: `5`"
- },
- "van-rate/size": {
- "type": "number | string",
- "description": "图标大小,默认单位为`px`, 默认值: `20px`"
- },
- "van-rate/gutter": {
- "type": "number | string",
- "description": "图标间距,默认单位为`px`, 默认值: `4px`"
- },
- "van-rate/color": {
- "type": "string",
- "description": "选中时的颜色, 默认值: `#ee0a24`"
- },
- "van-rate/void-color": {
- "type": "string",
- "description": "未选中时的颜色, 默认值: `#c8c9cc`"
- },
- "van-rate/disabled-color": {
- "type": "string",
- "description": "禁用时的颜色, 默认值: `#c8c9cc`"
- },
- "van-rate/icon": {
- "type": "string",
- "description": "选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star`"
- },
- "van-rate/void-icon": {
- "type": "string",
- "description": "未选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star-o`"
- },
- "van-rate/icon-prefix": {
- "type": "string",
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
- },
- "van-rate/allow-half": {
- "type": "boolean",
- "description": "是否允许半选, 默认值: `false`"
- },
- "van-rate/readonly": {
- "type": "boolean",
- "description": "是否为只读状态, 默认值: `false`"
- },
- "van-rate/disabled": {
- "type": "boolean",
- "description": "是否禁用评分, 默认值: `false`"
- },
- "van-rate/touchable": {
- "type": "boolean",
- "description": "是否可以通过滑动手势选择评分, 默认值: `true`"
- },
- "van-search/label": {
- "type": "string",
- "description": "搜索框左侧文本, 默认值: -"
- },
- "van-search/shape": {
- "type": "string",
- "description": "搜索框形状,可选值为 `round`, 默认值: `square`"
- },
- "van-search/background": {
- "type": "string",
- "description": "搜索框外部背景色, 默认值: `#f2f2f2`"
- },
- "van-search/maxlength": {
- "type": "number | string",
- "description": "输入的最大字符数, 默认值: -"
- },
- "van-search/placeholder": {
- "type": "string",
- "description": "占位提示文字, 默认值: -"
- },
- "van-search/clearable": {
- "type": "boolean",
- "description": "是否启用清除图标,点击清除图标后会清空输入框, 默认值: `true`"
- },
- "van-search/clear-trigger": {
- "type": "string",
- "description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
- },
- "van-search/autofocus": {
- "type": "boolean",
- "description": "是否自动聚焦,iOS 系统不支持该属性, 默认值: `false`"
- },
- "van-search/show-action": {
- "type": "boolean",
- "description": "是否在搜索框右侧显示取消按钮, 默认值: `false`"
- },
- "van-search/action-text": {
- "type": "boolean",
- "description": "取消按钮文字, 默认值: `取消`"
- },
- "van-search/disabled": {
- "type": "boolean",
- "description": "是否禁用输入框, 默认值: `false`"
- },
- "van-search/readonly": {
- "type": "boolean",
- "description": "是否将输入框设为只读, 默认值: `false`"
- },
- "van-search/error": {
- "type": "boolean",
- "description": "是否将输入内容标红, 默认值: `false`"
- },
- "van-search/input-align": {
- "type": "string",
- "description": "输入框内容对齐方式,可选值为 `center` `right`, 默认值: `left`"
- },
- "van-search/left-icon": {
- "type": "string",
- "description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: `search`"
- },
- "van-search/right-icon": {
- "type": "string",
- "description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
- },
- "van-sidebar/v-model": {
- "type": "number | string",
- "description": "当前导航项的索引, 默认值: `0`"
- },
- "van-sidebar/title": {
- "type": "string",
- "description": "内容, 默认值: `''`"
- },
- "van-sidebar/dot": {
- "type": "boolean",
- "description": "是否显示右上角小红点, 默认值: `false`"
- },
- "van-sidebar/badge": {
- "type": "number | string",
- "description": "图标右上角徽标的内容, 默认值: -"
- },
- "van-sidebar/info": {
- "type": "number | string",
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
- },
- "van-sidebar/disabled": {
- "type": "boolean",
- "description": "是否禁用该项, 默认值: `false`"
- },
- "van-sidebar/url": {
- "type": "string",
- "description": "点击后跳转的链接地址, 默认值: -"
- },
- "van-sidebar/to": {
- "type": "string | object",
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
- },
- "van-sidebar/replace": {
- "type": "boolean",
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
- },
- "van-share-sheet/options": {
- "type": "Option[]",
- "description": "分享选项, 默认值: `[]`"
- },
- "van-share-sheet/title": {
- "type": "string",
- "description": "顶部标题, 默认值: -"
- },
- "van-share-sheet/cancel-text": {
- "type": "string",
- "description": "取消按钮文字,传入空字符串可以隐藏按钮, 默认值: `'取消'`"
- },
- "van-share-sheet/description": {
- "type": "string",
- "description": "标题下方的辅助描述文字, 默认值: -"
- },
- "van-share-sheet/duration": {
- "type": "number | string",
- "description": "动画时长,单位秒, 默认值: `0.3`"
- },
- "van-share-sheet/overlay": {
- "type": "boolean",
- "description": "是否显示遮罩层, 默认值: `true`"
- },
- "van-share-sheet/lock-scroll": {
- "type": "boolean",
- "description": "是否锁定背景滚动, 默认值: `true`"
- },
- "van-share-sheet/lazy-render": {
- "type": "boolean",
- "description": "是否在显示弹层时才渲染内容, 默认值: `true`"
- },
- "van-share-sheet/close-on-popstate": {
- "type": "boolean",
- "description": "是否在页面回退时自动关闭, 默认值: `true`"
- },
- "van-share-sheet/close-on-click-overlay": {
- "type": "boolean",
- "description": "是否在点击遮罩层后关闭, 默认值: `true`"
- },
- "van-share-sheet/safe-area-inset-bottom": {
- "type": "boolean",
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
- },
- "van-share-sheet/get-container": {
- "type": "string | () => Element",
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
- },
- "van-sku/v-model": {
- "type": "boolean",
- "description": "是否显示商品规格弹窗, 默认值: `false`"
- },
- "van-sku/sku": {
- "type": "object",
- "description": "商品 sku 数据, 默认值: -"
- },
- "van-sku/goods": {
- "type": "object",
- "description": "商品信息, 默认值: -"
- },
- "van-sku/goods-id": {
- "type": "number | string",
- "description": "商品 id, 默认值: -"
- },
- "van-sku/price-tag": {
- "type": "string",
- "description": "显示在价格后面的标签, 默认值: -"
- },
- "van-sku/hide-stock": {
- "type": "boolean",
- "description": "是否显示商品剩余库存, 默认值: `false`"
- },
- "van-sku/hide-quota-text": {
- "type": "boolean",
- "description": "是否显示限购提示, 默认值: `false`"
- },
- "van-sku/hide-selected-text": {
- "type": "boolean",
- "description": "是否隐藏已选提示, 默认值: `false`"
- },
- "van-sku/stock-threshold": {
- "type": "boolean",
- "description": "库存阈值。低于这个值会把库存数高亮显示, 默认值: `50`"
- },
- "van-sku/show-add-cart-btn": {
- "type": "boolean",
- "description": "是否显示加入购物车按钮, 默认值: `true`"
- },
- "van-sku/buy-text": {
- "type": "string",
- "description": "购买按钮文字, 默认值: `立即购买`"
- },
- "van-sku/add-cart-text": {
- "type": "string",
- "description": "加入购物车按钮文字, 默认值: `加入购物车`"
- },
- "van-sku/quota": {
- "type": "number",
- "description": "限购数,0 表示不限购, 默认值: `0`"
- },
- "van-sku/quota-used": {
- "type": "number",
- "description": "已经购买过的数量, 默认值: `0`"
- },
- "van-sku/reset-stepper-on-hide": {
- "type": "boolean",
- "description": "隐藏时重置选择的商品数量, 默认值: `false`"
- },
- "van-sku/reset-selected-sku-on-hide": {
- "type": "boolean",
- "description": "隐藏时重置已选择的 sku, 默认值: `false`"
- },
- "van-sku/disable-stepper-input": {
- "type": "boolean",
- "description": "是否禁用步进器输入, 默认值: `false`"
- },
- "van-sku/close-on-click-overlay": {
- "type": "boolean",
- "description": "是否在点击遮罩层后关闭, 默认值: `true`"
- },
- "van-sku/stepper-title": {
- "type": "string",
- "description": "数量选择组件左侧文案, 默认值: `购买数量`"
- },
- "van-sku/custom-stepper-config": {
- "type": "object",
- "description": "步进器相关自定义配置, 默认值: `{}`"
- },
- "van-sku/message-config": {
- "type": "object",
- "description": "留言相关配置, 默认值: `{}`"
- },
- "van-sku/get-container": {
- "type": "string | () => Element",
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
- },
- "van-sku/initial-sku": {
- "type": "object",
- "description": "默认选中的 sku,具体参考高级用法, 默认值: `{}`"
- },
- "van-sku/show-soldout-sku": {
- "type": "boolean",
- "description": "是否展示售罄的 sku,默认展示并置灰, 默认值: `true`"
- },
- "van-sku/disable-soldout-sku": {
- "type": "boolean",
- "description": "是否禁用售罄的 sku, 默认值: `true`"
- },
- "van-sku/safe-area-inset-bottom": {
- "type": "boolean",
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
- },
- "van-sku/start-sale-num": {
- "type": "number",
- "description": "起售数量, 默认值: `1`"
- },
- "van-sku/properties": {
- "type": "array",
- "description": "商品属性, 默认值: -"
- },
- "van-sku/preview-on-click-image": {
- "type": "boolean",
- "description": "是否在点击商品图片时自动预览, 默认值: `true`"
- },
- "van-sku/show-header-image": {
- "type": "boolean",
- "description": "是否展示头部图片, 默认值: `true`"
- },
- "van-sku/lazy-load": {
- "type": "boolean",
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
- },
- "van-skeleton/row": {
- "type": "number | string",
- "description": "段落占位图行数, 默认值: `0`"
- },
- "van-skeleton/row-width": {
- "type": "number | string \\",
- "description": "段落占位图宽度,可传数组来设置每一行的宽度, 默认值: <br>(number \\"
- },
- "van-skeleton/title": {
- "type": "boolean",
- "description": "是否显示标题占位图, 默认值: `false`"
- },
- "van-skeleton/avatar": {
- "type": "boolean",
- "description": "是否显示头像占位图, 默认值: `false`"
- },
- "van-skeleton/loading": {
- "type": "boolean",
- "description": "是否显示骨架屏,传 `false` 时会展示子组件内容, 默认值: `true`"
- },
- "van-skeleton/animate": {
- "type": "boolean",
- "description": "是否开启动画, 默认值: `true`"
- },
- "van-skeleton/round": {
- "type": "boolean",
- "description": "是否将标题和段落显示为圆角风格, 默认值: `false`"
- },
- "van-skeleton/title-width": {
- "type": "number | string",
- "description": "标题占位图宽度, 默认值: `40%`"
- },
- "van-skeleton/avatar-size": {
- "type": "number | string",
- "description": "头像占位图大小, 默认值: `32px`"
- },
- "van-skeleton/avatar-shape": {
- "type": "string",
- "description": "头像占位图形状,可选值为`square`, 默认值: `round`"
- },
- "van-stepper/v-model": {
- "type": "number | string",
- "description": "当前输入的值, 默认值: -"
- },
- "van-stepper/min": {
- "type": "number | string",
- "description": "最小值, 默认值: `1`"
- },
- "van-stepper/max": {
- "type": "number | string",
- "description": "最大值, 默认值: -"
- },
- "van-stepper/default-value": {
- "type": "number | string",
- "description": "初始值,当 v-model 为空时生效, 默认值: `1`"
- },
- "van-stepper/step": {
- "type": "number | string",
- "description": "步长,每次点击时改变的值, 默认值: `1`"
- },
- "van-stepper/name": {
- "type": "number | string",
- "description": "标识符,可以在`change`事件回调参数中获取, 默认值: -"
- },
- "van-stepper/input-width": {
- "type": "number | string",
- "description": "输入框宽度,默认单位为`px`, 默认值: `32px`"
- },
- "van-stepper/button-size": {
- "type": "number | string",
- "description": "按钮大小以及输入框高度,默认单位为`px`, 默认值: `28px`"
- },
- "van-stepper/decimal-length": {
- "type": "number | string",
- "description": "固定显示的小数位数, 默认值: -"
- },
- "van-stepper/theme": {
- "type": "string",
- "description": "样式风格,可选值为 `round`, 默认值: -"
- },
- "van-stepper/placeholder": {
- "type": "string",
- "description": "输入框占位提示文字, 默认值: -"
- },
- "van-stepper/integer": {
- "type": "boolean",
- "description": "是否只允许输入整数, 默认值: `false`"
- },
- "van-stepper/disabled": {
- "type": "boolean",
- "description": "是否禁用步进器, 默认值: `false`"
- },
- "van-stepper/disable-plus": {
- "type": "boolean",
- "description": "是否禁用增加按钮, 默认值: `false`"
- },
- "van-stepper/disable-minus": {
- "type": "boolean",
- "description": "是否禁用减少按钮, 默认值: `false`"
- },
- "van-stepper/disable-input": {
- "type": "boolean",
- "description": "是否禁用输入框, 默认值: `false`"
- },
- "van-stepper/async-change": {
- "type": "boolean",
- "description": "是否开启异步变更,开启后需要手动控制输入值, 默认值: `false`"
- },
- "van-stepper/show-plus": {
- "type": "boolean",
- "description": "是否显示增加按钮, 默认值: `true`"
- },
- "van-stepper/show-minus": {
- "type": "boolean",
- "description": "是否显示减少按钮, 默认值: `true`"
- },
- "van-stepper/show-input": {
- "type": "boolean",
- "description": "是否显示输入框, 默认值: `true`"
- },
- "van-stepper/long-press": {
- "type": "boolean",
- "description": "是否开启长按手势, 默认值: `true`"
- },
- "van-stepper/allow-empty": {
- "type": "boolean",
- "description": "是否允许输入的值为空, 默认值: `false`"
- },
- "van-slider/value": {
- "type": "number | array",
- "description": "当前进度百分比, 默认值: `0`"
- },
- "van-slider/max": {
- "type": "number | string",
- "description": "最大值, 默认值: `100`"
- },
- "van-slider/min": {
- "type": "number | string",
- "description": "最小值, 默认值: `0`"
- },
- "van-slider/step": {
- "type": "number | string",
- "description": "步长, 默认值: `1`"
- },
- "van-slider/bar-height": {
- "type": "number | string",
- "description": "进度条高度,默认单位为`px`, 默认值: `2px`"
- },
- "van-slider/button-size": {
- "type": "number | string",
- "description": "滑块按钮大小,默认单位为`px`, 默认值: `24px`"
- },
- "van-slider/active-color": {
- "type": "string",
- "description": "进度条激活态颜色, 默认值: `#1989fa`"
- },
- "van-slider/inactive-color": {
- "type": "string",
- "description": "进度条非激活态颜色, 默认值: `#e5e5e5`"
- },
- "van-slider/range": {
- "type": "boolean",
- "description": "是否开启双滑块模式, 默认值: `false`"
- },
- "van-slider/disabled": {
- "type": "boolean",
- "description": "是否禁用滑块, 默认值: `false`"
- },
- "van-slider/vertical": {
- "type": "boolean",
- "description": "是否垂直展示, 默认值: `false`"
- },
- "van-steps/active": {
- "type": "number | string",
- "description": "当前步骤, 默认值: `0`"
- },
- "van-steps/direction": {
- "type": "string",
- "description": "显示方向,可选值为 `vertical`, 默认值: `horizontal`"
- },
- "van-steps/active-color": {
- "type": "string",
- "description": "激活状态颜色, 默认值: `#07c160`"
- },
- "van-steps/inactive-color": {
- "type": "string",
- "description": "未激活状态颜色, 默认值: `#969799`"
- },
- "van-steps/active-icon": {
- "type": "string",
- "description": "激活状态底部图标,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: `checked`"
- },
- "van-steps/inactive-icon": {
- "type": "string",
- "description": "未激活状态底部图标,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: -"
- },
- "van-steps/finish-icon": {
- "type": "string",
- "description": "已完成步骤对应的底部图标,优先级高于 `inactive-icon`,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: -"
- },
- "van-steps/icon-prefix": {
- "type": "string",
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
- },
- "van-steps/center": {
- "type": "boolean",
- "description": "是否进行居中对齐,仅在竖向展示时有效, 默认值: `false`"
- },
- "van-sticky/offset-top": {
- "type": "number | string",
- "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
- },
- "van-sticky/z-index": {
- "type": "number | string",
- "description": "吸顶时的 z-index, 默认值: `99`"
- },
- "van-sticky/container": {
- "type": "Element",
- "description": "容器对应的 HTML 节点, 默认值: -"
- },
- "van-submit-bar/price": {
- "type": "number",
- "description": "价格(单位分), 默认值: -"
- },
- "van-submit-bar/decimal-length": {
- "type": "number | string",
- "description": "价格小数点位数, 默认值: `2`"
- },
- "van-submit-bar/label": {
- "type": "string",
- "description": "价格左侧文案, 默认值: `合计:`"
- },
- "van-submit-bar/suffix-label": {
- "type": "string",
- "description": "价格右侧文案, 默认值: -"
- },
- "van-submit-bar/text-align": {
- "type": "string",
- "description": "价格文案对齐方向,可选值为 `left`, 默认值: `right`"
- },
- "van-submit-bar/button-text": {
- "type": "string",
- "description": "按钮文字, 默认值: -"
- },
- "van-submit-bar/button-type": {
- "type": "string",
- "description": "按钮类型, 默认值: `danger`"
- },
- "van-submit-bar/button-color": {
- "type": "string",
- "description": "自定义按钮颜色, 默认值: -"
- },
- "van-submit-bar/tip": {
- "type": "string",
- "description": "在订单栏上方的提示文案, 默认值: -"
- },
- "van-submit-bar/tip-icon": {
- "type": "string",
- "description": "提示文案左侧的[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
- },
- "van-submit-bar/currency": {
- "type": "string",
- "description": "货币符号, 默认值: `¥`"
- },
- "van-submit-bar/disabled": {
- "type": "boolean",
- "description": "是否禁用按钮, 默认值: `false`"
- },
- "van-submit-bar/loading": {
- "type": "boolean",
- "description": "是否显示将按钮显示为加载中状态, 默认值: `false`"
- },
- "van-submit-bar/safe-area-inset-bottom": {
- "type": "boolean",
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
- },
- "van-swipe/autoplay": {
- "type": "number | string",
- "description": "自动轮播间隔,单位为 ms, 默认值: -"
- },
- "van-swipe/duration": {
- "type": "number | string",
- "description": "动画时长,单位为 ms, 默认值: `500`"
- },
- "van-swipe/initial-swipe": {
- "type": "number | string",
- "description": "初始位置索引值, 默认值: `0`"
- },
- "van-swipe/width": {
- "type": "number | string",
- "description": "滑块宽度,单位为`px`, 默认值: `auto`"
- },
- "van-swipe/height": {
- "type": "number | string",
- "description": "滑块高度,单位为`px`, 默认值: `auto`"
- },
- "van-swipe/loop": {
- "type": "boolean",
- "description": "是否开启循环播放, 默认值: `true`"
- },
- "van-swipe/show-indicators": {
- "type": "boolean",
- "description": "是否显示指示器, 默认值: `true`"
- },
- "van-swipe/vertical": {
- "type": "boolean",
- "description": "是否为纵向滚动, 默认值: `false`"
- },
- "van-swipe/touchable": {
- "type": "boolean",
- "description": "是否可以通过手势滑动, 默认值: `true`"
- },
- "van-swipe/stop-propagation": {
- "type": "boolean",
- "description": "是否阻止滑动事件冒泡, 默认值: `true`"
- },
- "van-swipe/lazy-render": {
- "type": "boolean",
- "description": "是否延迟渲染未展示的轮播, 默认值: `false`"
- },
- "van-swipe/indicator-color": {
- "type": "string",
- "description": "指示器颜色, 默认值: `#1989fa`"
- },
- "van-swipe-cell/name": {
- "type": "number | string",
- "description": "标识符,可以在事件参数中获取到, 默认值: -"
- },
- "van-swipe-cell/left-width": {
- "type": "number | string",
- "description": "指定左侧滑动区域宽度,单位为`px`, 默认值: `auto`"
- },
- "van-swipe-cell/right-width": {
- "type": "number | string",
- "description": "指定右侧滑动区域宽度,单位为`px`, 默认值: `auto`"
- },
- "van-swipe-cell/before-close": {
- "type": "Function",
- "description": "关闭前的回调函数, 默认值: -"
- },
- "van-swipe-cell/disabled": {
- "type": "boolean",
- "description": "是否禁用滑动, 默认值: `false`"
- },
- "van-swipe-cell/stop-propagation": {
- "type": "boolean",
- "description": "是否阻止滑动事件冒泡, 默认值: `false`"
- },
- "van-switch/v-model": {
- "type": "any",
- "description": "开关选中状态, 默认值: `false`"
- },
- "van-switch/loading": {
- "type": "boolean",
- "description": "是否为加载状态, 默认值: `false`"
- },
- "van-switch/disabled": {
- "type": "boolean",
- "description": "是否为禁用状态, 默认值: `false`"
- },
- "van-switch/size": {
- "type": "number | string",
- "description": "开关尺寸,默认单位为`px`, 默认值: `30px`"
- },
- "van-switch/active-color": {
- "type": "string",
- "description": "打开时的背景色, 默认值: `#1989fa`"
- },
- "van-switch/inactive-color": {
- "type": "string",
- "description": "关闭时的背景色, 默认值: `white`"
- },
- "van-switch/active-value": {
- "type": "any",
- "description": "打开时对应的值, 默认值: `true`"
- },
- "van-switch/inactive-value": {
- "type": "any",
- "description": "关闭时对应的值, 默认值: `false`"
- },
- "van-switch-cell/v-model": {
- "type": "any",
- "description": "开关状态, 默认值: `false`"
- },
- "van-switch-cell/title": {
- "type": "string",
- "description": "左侧标题, 默认值: `''`"
- },
- "van-switch-cell/border": {
- "type": "boolean",
- "description": "是否展示单元格内边框, 默认值: `true`"
- },
- "van-switch-cell/cell-size": {
- "type": "string",
- "description": "单元格大小,可选值为 `large`, 默认值: -"
- },
- "van-switch-cell/loading": {
- "type": "boolean",
- "description": "是否为加载状态, 默认值: `false`"
- },
- "van-switch-cell/disabled": {
- "type": "boolean",
- "description": "是否为禁用状态, 默认值: `false`"
- },
- "van-switch-cell/size": {
- "type": "number | string",
- "description": "开关尺寸, 默认值: `24px`"
- },
- "van-switch-cell/active-color": {
- "type": "string",
- "description": "开关时的背景色, 默认值: `#1989fa`"
- },
- "van-switch-cell/inactive-color": {
- "type": "string",
- "description": "开关时的背景色, 默认值: `white`"
- },
- "van-switch-cell/active-value": {
- "type": "any",
- "description": "打开时的值, 默认值: `true`"
- },
- "van-switch-cell/inactive-value": {
- "type": "any",
- "description": "关闭时的值, 默认值: `false`"
- },
- "van-tab/v-model": {
- "type": "number | string",
- "description": "绑定当前选中标签的标识符, 默认值: `0`"
- },
- "van-tab/type": {
- "type": "string",
- "description": "样式风格类型,可选值为 `card`, 默认值: `line`"
- },
- "van-tab/color": {
- "type": "string",
- "description": "标签主题色, 默认值: `#ee0a24`"
- },
- "van-tab/background": {
- "type": "string",
- "description": "标签栏背景色, 默认值: `white`"
- },
- "van-tab/duration": {
- "type": "number | string",
- "description": "动画时间,单位秒, 默认值: `0.3`"
- },
- "van-tab/line-width": {
- "type": "number | string",
- "description": "底部条宽度,默认单位 `px`, 默认值: `40px`"
- },
- "van-tab/line-height": {
- "type": "number | string",
- "description": "底部条高度,默认单位 `px`, 默认值: `3px`"
- },
- "van-tab/animated": {
- "type": "boolean",
- "description": "是否开启切换标签内容时的转场动画, 默认值: `false`"
- },
- "van-tab/border": {
- "type": "boolean",
- "description": "是否显示标签栏外边框,仅在 `type=\"line\"` 时有效, 默认值: `false`"
- },
- "van-tab/ellipsis": {
- "type": "boolean",
- "description": "是否省略过长的标题文字, 默认值: `true`"
- },
- "van-tab/sticky": {
- "type": "boolean",
- "description": "是否使用粘性定位布局, 默认值: `false`"
- },
- "van-tab/swipeable": {
- "type": "boolean",
- "description": "是否开启手势滑动切换, 默认值: `false`"
- },
- "van-tab/lazy-render": {
- "type": "boolean",
- "description": "是否开启延迟渲染(首次切换到标签时才触发内容渲染), 默认值: `true`"
- },
- "van-tab/scrollspy": {
- "type": "boolean",
- "description": "是否开启滚动导航, 默认值: `false`"
- },
- "van-tab/offset-top": {
- "type": "number | string",
- "description": "粘性定位布局下与顶部的最小距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
- },
- "van-tab/swipe-threshold": {
- "type": "number | string",
- "description": "滚动阈值,标签数量超过阈值且总宽度超过标签栏宽度时开始横向滚动, 默认值: `5`"
- },
- "van-tab/title-active-color": {
- "type": "string",
- "description": "标题选中态颜色, 默认值: -"
- },
- "van-tab/title-inactive-color": {
- "type": "string",
- "description": "标题默认态颜色, 默认值: -"
- },
- "van-tab/before-change": {
- "type": "(name) => boolean | Promise",
- "description": "切换标签前的回调函数,返回 `false` 可阻止切换,支持返回 Promise, 默认值: -"
- },
- "van-tab/title": {
- "type": "string",
- "description": "标题, 默认值: -"
- },
- "van-tab/disabled": {
- "type": "boolean",
- "description": "是否禁用标签, 默认值: `false`"
- },
- "van-tab/dot": {
- "type": "boolean",
- "description": "是否在标题右上角显示小红点, 默认值: `false`"
- },
- "van-tab/badge": {
- "type": "number | string",
- "description": "图标右上角徽标的内容, 默认值: -"
- },
- "van-tab/info": {
- "type": "number | string",
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
- },
- "van-tab/name": {
- "type": "number | string",
- "description": "标签名称,作为匹配的标识符, 默认值: 标签的索引值"
- },
- "van-tab/url": {
- "type": "string",
- "description": "点击后跳转的链接地址, 默认值: -"
- },
- "van-tab/to": {
- "type": "string | object",
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
- },
- "van-tab/replace": {
- "type": "boolean",
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
- },
- "van-tab/title-style": {
- "type": "any",
- "description": "自定义标题样式, 默认值: -"
- },
- "van-tab/title-class": {
- "type": "any",
- "description": "自定义标题类名, 默认值: -"
- },
- "van-tag/type": {
- "type": "string",
- "description": "类型,可选值为`primary` `success` `danger` `warning`, 默认值: `default`"
- },
- "van-tag/size": {
- "type": "string",
- "description": "大小, 可选值为`large` `medium`, 默认值: -"
- },
- "van-tag/color": {
- "type": "string",
- "description": "标签颜色, 默认值: -"
- },
- "van-tag/plain": {
- "type": "boolean",
- "description": "是否为空心样式, 默认值: `false`"
- },
- "van-tag/round": {
- "type": "boolean",
- "description": "是否为圆角样式, 默认值: `false`"
- },
- "van-tag/mark": {
- "type": "boolean",
- "description": "是否为标记样式, 默认值: `false`"
- },
- "van-tag/text-color": {
- "type": "string",
- "description": "文本颜色,优先级高于`color`属性, 默认值: `white`"
- },
- "van-tag/closeable": {
- "type": "boolean",
- "description": "是否为可关闭标签, 默认值: `false`"
- },
- "van-tabbar/v-model": {
- "type": "number | string",
- "description": "当前选中标签的名称或索引值, 默认值: `0`"
- },
- "van-tabbar/fixed": {
- "type": "boolean",
- "description": "是否固定在底部, 默认值: `true`"
- },
- "van-tabbar/border": {
- "type": "boolean",
- "description": "是否显示外边框, 默认值: `true`"
- },
- "van-tabbar/z-index": {
- "type": "number | string",
- "description": "元素 z-index, 默认值: `1`"
- },
- "van-tabbar/active-color": {
- "type": "string",
- "description": "选中标签的颜色, 默认值: `#1989fa`"
- },
- "van-tabbar/inactive-color": {
- "type": "string",
- "description": "未选中标签的颜色, 默认值: `#7d7e80`"
- },
- "van-tabbar/route": {
- "type": "boolean",
- "description": "是否开启路由模式, 默认值: `false`"
- },
- "van-tabbar/placeholder": {
- "type": "boolean",
- "description": "固定在底部时,是否在标签位置生成一个等高的占位元素, 默认值: `false`"
- },
- "van-tabbar/safe-area-inset-bottom": {
- "type": "boolean",
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei),设置 fixed 时默认开启, 默认值: `false`"
- },
- "van-tabbar/before-change": {
- "type": "(name) => boolean | Promise",
- "description": "切换标签前的回调函数,返回 `false` 可阻止切换,支持返回 Promise, 默认值: -"
- },
- "van-tabbar/name": {
- "type": "number | string",
- "description": "标签名称,作为匹配的标识符, 默认值: 当前标签的索引值"
- },
- "van-tabbar/icon": {
- "type": "string",
- "description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
- },
- "van-tabbar/icon-prefix": {
- "type": "string",
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
- },
- "van-tabbar/dot": {
- "type": "boolean",
- "description": "是否显示图标右上角小红点, 默认值: `false`"
- },
- "van-tabbar/badge": {
- "type": "number | string",
- "description": "图标右上角徽标的内容, 默认值: -"
- },
- "van-tabbar/info": {
- "type": "number | string",
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
- },
- "van-tabbar/url": {
- "type": "string",
- "description": "点击后跳转的链接地址, 默认值: -"
- },
- "van-tabbar/to": {
- "type": "string | object",
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
- },
- "van-tabbar/replace": {
- "type": "boolean",
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
- },
- "van-tree-select/items": {
- "type": "Item[]",
- "description": "分类显示所需的数据, 默认值: `[]`"
- },
- "van-tree-select/height": {
- "type": "number | string",
- "description": "高度,默认单位为`px`, 默认值: `300`"
- },
- "van-tree-select/main-active-index": {
- "type": "number | string",
- "description": "左侧选中项的索引, 默认值: `0`"
- },
- "van-tree-select/active-id": {
- "type": "number | string \\",
- "description": "右侧选中项的 id,支持传入数组, 默认值: <br>(number \\"
- },
- "van-tree-select/max": {
- "type": "number | string",
- "description": "右侧项最大选中个数, 默认值: `Infinity`"
- },
- "van-tree-select/selected-icon": {
- "type": "string",
- "description": "自定义右侧栏选中状态的图标, 默认值: `success`"
- },
- "van-uploader/v-model (fileList)": {
- "type": "FileListItem[]",
- "description": "已上传的文件列表, 默认值: -"
- },
- "van-uploader/accept": {
- "type": "string",
- "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/*`"
- },
- "van-uploader/name": {
- "type": "number | string",
- "description": "标识符,可以在回调函数的第二项参数中获取, 默认值: -"
- },
- "van-uploader/preview-size": {
- "type": "number | string",
- "description": "预览图和上传区域的尺寸,默认单位为 `px`, 默认值: `80px`"
- },
- "van-uploader/preview-image": {
- "type": "boolean",
- "description": "是否在上传完成后展示预览图, 默认值: `true`"
- },
- "van-uploader/preview-full-image": {
- "type": "boolean",
- "description": "是否在点击预览图后展示全屏图片预览, 默认值: `true`"
- },
- "van-uploader/preview-options": {
- "type": "object",
- "description": "全屏图片预览的配置项,可选值见 [ImagePreview](#/zh-CN/image-preview), 默认值: -"
- },
- "van-uploader/multiple": {
- "type": "boolean",
- "description": "是否开启图片多选,部分安卓机型不支持, 默认值: `false`"
- },
- "van-uploader/disabled": {
- "type": "boolean",
- "description": "是否禁用文件上传, 默认值: `false`"
- },
- "van-uploader/readonly": {
- "type": "boolean",
- "description": "是否将上传区域设置为只读状态, 默认值: `false`"
- },
- "van-uploader/deletable": {
- "type": "boolean",
- "description": "是否展示删除按钮, 默认值: `true`"
- },
- "van-uploader/show-upload": {
- "type": "boolean",
- "description": "是否展示上传区域, 默认值: `true`"
- },
- "van-uploader/lazy-load": {
- "type": "boolean",
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
- },
- "van-uploader/capture": {
- "type": "string",
- "description": "图片选取模式,可选值为 `camera` (直接调起摄像头), 默认值: -"
- },
- "van-uploader/after-read": {
- "type": "Function",
- "description": "文件读取完成后的回调函数, 默认值: -"
- },
- "van-uploader/before-read": {
- "type": "Function",
- "description": "文件读取前的回调函数,返回 `false` 可终止文件读取,<br>支持返回 `Promise`, 默认值: -"
- },
- "van-uploader/before-delete": {
- "type": "Function",
- "description": "文件删除前的回调函数,返回 `false` 可终止文件读取,<br>支持返回 `Promise`, 默认值: -"
- },
- "van-uploader/max-size": {
- "type": "number | string \\",
- "description": "文件大小限制,单位为 `byte`, 默认值: (file: File) => boolean_"
- },
- "van-uploader/max-count": {
- "type": "number | string",
- "description": "文件上传数量限制, 默认值: -"
- },
- "van-uploader/result-type": {
- "type": "string",
- "description": "文件读取结果类型,可选值为 `file` `text`, 默认值: `dataUrl`"
- },
- "van-uploader/upload-text": {
- "type": "string",
- "description": "上传区域文字提示, 默认值: -"
- },
- "van-uploader/image-fit": {
- "type": "string",
- "description": "预览图裁剪模式,可选值见 [Image](#/zh-CN/image) 组件, 默认值: `cover`"
- },
- "van-uploader/upload-icon": {
- "type": "string",
- "description": "上传区域[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photograph`"
- }
- }
|