12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422 |
- {
- "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-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-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-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-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-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-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-poppable/v-model": {
- "type": "boolean",
- "description": "是否显示日历弹窗, 默认值: `false`"
- },
- "van-poppable/position": {
- "type": "string",
- "description": "弹出位置,可选值为 `top` `right` `left`, 默认值: `bottom`"
- },
- "van-poppable/round": {
- "type": "boolean",
- "description": "是否显示圆角弹窗, 默认值: `true`"
- },
- "van-poppable/close-on-popstate": {
- "type": "boolean",
- "description": "是否在页面回退时自动关闭, 默认值: `true`"
- },
- "van-poppable/close-on-click-overlay": {
- "type": "boolean",
- "description": "是否在点击遮罩层后关闭, 默认值: `true`"
- },
- "van-poppable/safe-area-inset-bottom": {
- "type": "boolean",
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
- },
- "van-poppable/get-container": {
- "type": "string | () => Element",
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
- },
- "van-range/max-range": {
- "type": "number | string",
- "description": "日期区间最多可选天数, 默认值: 无限制"
- },
- "van-range/range-prompt": {
- "type": "string",
- "description": "范围选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
- },
- "van-range/allow-same-day": {
- "type": "boolean",
- "description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
- },
- "van-multiple/max-range": {
- "type": "number | string",
- "description": "日期最多可选天数, 默认值: 无限制"
- },
- "van-multiple/range-prompt": {
- "type": "string",
- "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
- },
- "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/field-names": {
- "type": "object",
- "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
- },
- "van-cell-group/title": {
- "type": "string",
- "description": "分组标题, 默认值: `-`"
- },
- "van-cell-group/border": {
- "type": "boolean",
- "description": "是否显示外边框, 默认值: `true`"
- },
- "van-cell/title": {
- "type": "number | string",
- "description": "左侧标题, 默认值: -"
- },
- "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/border": {
- "type": "boolean",
- "description": "是否显示内边框, 默认值: `true`"
- },
- "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": "boolean",
- "description": "是否为选中状态, 默认值: `false`"
- },
- "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-group/v-model (value)": {
- "type": "any[]",
- "description": "所有选中项的标识符, 默认值: -"
- },
- "van-checkbox-group/disabled": {
- "type": "boolean",
- "description": "是否禁用所有复选框, 默认值: `false`"
- },
- "van-checkbox-group/max": {
- "type": "number | string",
- "description": "最大可选数,`0`为无限制, 默认值: `0`"
- },
- "van-checkbox-group/direction": {
- "type": "string",
- "description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
- },
- "van-checkbox-group/icon-size": {
- "type": "number | string",
- "description": "所有复选框的图标大小,默认单位为 `px`, 默认值: `20px`"
- },
- "van-checkbox-group/checked-color": {
- "type": "string",
- "description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
- },
- "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": "进度条端点的形状,可选值为`sqaure` `butt`, 默认值: `round`"
- },
- "van-circle/clockwise": {
- "type": "boolean",
- "description": "是否顺时针增加, 默认值: `true`"
- },
- "van-row/type": {
- "type": "string",
- "description": "布局方式,可选值为`flex`, 默认值: -"
- },
- "van-row/gutter": {
- "type": "number | string",
- "description": "列元素之间的间距(单位为 px), 默认值: -"
- },
- "van-row/tag": {
- "type": "string",
- "description": "自定义元素标签, 默认值: `div`"
- },
- "van-row/justify": {
- "type": "string",
- "description": "Flex 主轴对齐方式,可选值为 `end` `center` <br> `space-around` `space-between`, 默认值: `start`"
- },
- "van-row/align": {
- "type": "string",
- "description": "Flex 交叉轴对齐方式,可选值为 `center` `bottom`, 默认值: `top`"
- },
- "van-col/span": {
- "type": "number | string",
- "description": "列元素宽度, 默认值: -"
- },
- "van-col/offset": {
- "type": "number | string",
- "description": "列元素偏移距离, 默认值: -"
- },
- "van-col/tag": {
- "type": "string",
- "description": "自定义元素标签, 默认值: `div`"
- },
- "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-item/name": {
- "type": "number | string",
- "description": "唯一标识符,默认为索引值, 默认值: `index`"
- },
- "van-collapse-item/icon": {
- "type": "string",
- "description": "标题栏左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
- },
- "van-collapse-item/size": {
- "type": "string",
- "description": "标题栏大小,可选值为 `large`, 默认值: -"
- },
- "van-collapse-item/title": {
- "type": "number | string",
- "description": "标题栏左侧内容, 默认值: -"
- },
- "van-collapse-item/value": {
- "type": "number | string",
- "description": "标题栏右侧内容, 默认值: -"
- },
- "van-collapse-item/label": {
- "type": "number | string",
- "description": "标题栏描述信息, 默认值: -"
- },
- "van-collapse-item/border": {
- "type": "boolean",
- "description": "是否显示内边框, 默认值: `true`"
- },
- "van-collapse-item/is-link": {
- "type": "boolean",
- "description": "是否展示标题栏右侧箭头并开启点击反馈, 默认值: `true`"
- },
- "van-collapse-item/disabled": {
- "type": "boolean",
- "description": "是否禁用面板, 默认值: `false`"
- },
- "van-collapse-item/title-class": {
- "type": "string",
- "description": "左侧标题额外类名, 默认值: -"
- },
- "van-collapse-item/value-class": {
- "type": "string",
- "description": "右侧内容额外类名, 默认值: -"
- },
- "van-collapse-item/label-class": {
- "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-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-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-cell/title": {
- "type": "string",
- "description": "单元格标题, 默认值: `优惠券`"
- },
- "van-coupon-cell/chosen-coupon": {
- "type": "number | string",
- "description": "当前选中优惠券的索引, 默认值: `-1`"
- },
- "van-coupon-cell/coupons": {
- "type": "Coupon[]",
- "description": "可用优惠券列表, 默认值: `[]`"
- },
- "van-coupon-cell/editable": {
- "type": "boolean",
- "description": "能否切换优惠券, 默认值: `true`"
- },
- "van-coupon-cell/border": {
- "type": "boolean",
- "description": "是否显示内边框, 默认值: `true`"
- },
- "van-coupon-cell/currency": {
- "type": "string",
- "description": "货币符号, 默认值: `¥`"
- },
- "van-coupon-list/v-model": {
- "type": "string",
- "description": "当前输入的兑换码, 默认值: -"
- },
- "van-coupon-list/chosen-coupon": {
- "type": "number",
- "description": "当前选中优惠券的索引, 默认值: `-1`"
- },
- "van-coupon-list/coupons": {
- "type": "Coupon[]",
- "description": "可用优惠券列表, 默认值: `[]`"
- },
- "van-coupon-list/disabled-coupons": {
- "type": "Coupon[]",
- "description": "不可用优惠券列表, 默认值: `[]`"
- },
- "van-coupon-list/enabled-title": {
- "type": "string",
- "description": "可用优惠券列表标题, 默认值: `可使用优惠券`"
- },
- "van-coupon-list/disabled-title": {
- "type": "string",
- "description": "不可用优惠券列表标题, 默认值: `不可使用优惠券`"
- },
- "van-coupon-list/exchange-button-text": {
- "type": "string",
- "description": "兑换按钮文字, 默认值: `兑换`"
- },
- "van-coupon-list/exchange-button-loading": {
- "type": "boolean",
- "description": "是否显示兑换按钮加载动画, 默认值: `false`"
- },
- "van-coupon-list/exchange-button-disabled": {
- "type": "boolean",
- "description": "是否禁用兑换按钮, 默认值: `false`"
- },
- "van-coupon-list/exchange-min-length": {
- "type": "number",
- "description": "兑换码最小长度, 默认值: `1`"
- },
- "van-coupon-list/displayed-coupon-index": {
- "type": "number",
- "description": "滚动至特定优惠券位置, 默认值: -"
- },
- "van-coupon-list/show-close-button": {
- "type": "boolean",
- "description": "是否显示列表底部按钮, 默认值: `true`"
- },
- "van-coupon-list/close-button-text": {
- "type": "string",
- "description": "列表底部按钮文字, 默认值: `不使用优惠`"
- },
- "van-coupon-list/input-placeholder": {
- "type": "string",
- "description": "输入框文字提示, 默认值: `请输入优惠码`"
- },
- "van-coupon-list/show-exchange-bar": {
- "type": "boolean",
- "description": "是否展示兑换栏, 默认值: `true`"
- },
- "van-coupon-list/currency": {
- "type": "string",
- "description": "货币符号, 默认值: `¥`"
- },
- "van-coupon-list/empty-image": {
- "type": "string",
- "description": "列表为空时的占位图, 默认值: `https://img01.yzcdn.cn/vant/coupon-empty.png`"
- },
- "van-coupon-list/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-date-picker/min-date": {
- "type": "Date",
- "description": "可选的最小时间,精确到分钟, 默认值: 十年前"
- },
- "van-date-picker/max-date": {
- "type": "Date",
- "description": "可选的最大时间,精确到分钟, 默认值: 十年后"
- },
- "van-time-picker/min-hour": {
- "type": "number | string",
- "description": "可选的最小小时, 默认值: `0`"
- },
- "van-time-picker/max-hour": {
- "type": "number | string",
- "description": "可选的最大小时, 默认值: `23`"
- },
- "van-time-picker/min-minute": {
- "type": "number | string",
- "description": "可选的最小分钟, 默认值: `0`"
- },
- "van-time-picker/max-minute": {
- "type": "number | string",
- "description": "可选的最大分钟, 默认值: `59`"
- },
- "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": "动画类名,等价于 [transtion](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-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-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-item/value": {
- "type": "number | string",
- "description": "当前选中项对应的 value,可以通过`v-model`双向绑定, 默认值: -"
- },
- "van-dropdown-item/title": {
- "type": "string",
- "description": "菜单项标题, 默认值: 当前选中项文字"
- },
- "van-dropdown-item/options": {
- "type": "Option[]",
- "description": "选项数组, 默认值: `[]`"
- },
- "van-dropdown-item/disabled": {
- "type": "boolean",
- "description": "是否禁用菜单, 默认值: `false`"
- },
- "van-dropdown-item/lazy-render": {
- "type": "boolean",
- "description": "是否在首次展开时才渲染菜单内容, 默认值: `true`"
- },
- "van-dropdown-item/title-class": {
- "type": "string",
- "description": "标题额外类名, 默认值: -"
- },
- "van-dropdown-item/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": "\b 表单项 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-icon/text": {
- "type": "string",
- "description": "按钮文字, 默认值: -"
- },
- "van-goods-action-icon/icon": {
- "type": "string",
- "description": "图标, 默认值: -"
- },
- "van-goods-action-icon/color": {
- "type": "string",
- "description": "图标颜色, 默认值: `#323233`"
- },
- "van-goods-action-icon/icon-class": {
- "type": "any",
- "description": "图标额外类名, 默认值: -"
- },
- "van-goods-action-icon/dot": {
- "type": "boolean",
- "description": "是否显示图标右上角小红点, 默认值: `false`"
- },
- "van-goods-action-icon/badge": {
- "type": "number | string",
- "description": "图标右上角徽标的内容, 默认值: -"
- },
- "van-goods-action-icon/info": {
- "type": "number | string",
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
- },
- "van-goods-action-icon/url": {
- "type": "string",
- "description": "点击后跳转的链接地址, 默认值: -"
- },
- "van-goods-action-icon/to": {
- "type": "string | object",
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
- },
- "van-goods-action-icon/replace": {
- "type": "boolean",
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
- },
- "van-goods-action-button/text": {
- "type": "string",
- "description": "按钮文字, 默认值: -"
- },
- "van-goods-action-button/type": {
- "type": "string",
- "description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
- },
- "van-goods-action-button/color": {
- "type": "string",
- "description": "按钮颜色,支持传入`linear-gradient`渐变色, 默认值: -"
- },
- "van-goods-action-button/icon": {
- "type": "string",
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
- },
- "van-goods-action-button/disabled": {
- "type": "boolean",
- "description": "是否禁用按钮, 默认值: `false`"
- },
- "van-goods-action-button/loading": {
- "type": "boolean",
- "description": "是否显示为加载状态, 默认值: `false`"
- },
- "van-goods-action-button/url": {
- "type": "string",
- "description": "点击后跳转的链接地址, 默认值: -"
- },
- "van-goods-action-button/to": {
- "type": "string | object",
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
- },
- "van-goods-action-button/replace": {
- "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-item/text": {
- "type": "string",
- "description": "文字, 默认值: -"
- },
- "van-grid-item/icon": {
- "type": "string",
- "description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
- },
- "van-grid-item/icon-prefix": {
- "type": "string",
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
- },
- "van-grid-item/dot": {
- "type": "boolean",
- "description": "是否显示图标右上角小红点, 默认值: `false`"
- },
- "van-grid-item/badge": {
- "type": "number | string",
- "description": "图标右上角徽标的内容, 默认值: -"
- },
- "van-grid-item/info": {
- "type": "number | string",
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
- },
- "van-grid-item/url": {
- "type": "string",
- "description": "点击后跳转的链接地址, 默认值: -"
- },
- "van-grid-item/to": {
- "type": "string | object",
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
- },
- "van-grid-item/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": "动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: `van-fade`"
- },
- "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-anchor/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), 默认值: `50`"
- },
- "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-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-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-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-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-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": "动画类名,等价于 [transtion](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-group/v-model (value)": {
- "type": "any",
- "description": "当前选中项的标识符, 默认值: -"
- },
- "van-radio-group/disabled": {
- "type": "boolean",
- "description": "是否禁用所有单选框, 默认值: `false`"
- },
- "van-radio-group/direction": {
- "type": "string",
- "description": "排列方向,可选值为`horizontal`, 默认值: `vertical`"
- },
- "van-radio-group/icon-size": {
- "type": "number | string",
- "description": "所有单选框的图标大小,默认单位为`px`, 默认值: `20px`"
- },
- "van-radio-group/checked-color": {
- "type": "string",
- "description": "所有单选框的选中状态颜色, 默认值: `#1989fa`"
- },
- "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": "是否为只读状态 \b, 默认值: `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-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-sidebar/v-model": {
- "type": "number | string",
- "description": "当前导航项的索引, 默认值: `0`"
- },
- "van-sidebar-item/title": {
- "type": "string",
- "description": "内容, 默认值: `''`"
- },
- "van-sidebar-item/dot": {
- "type": "boolean",
- "description": "是否显示右上角小红点, 默认值: `false`"
- },
- "van-sidebar-item/badge": {
- "type": "number | string",
- "description": "图标右上角徽标的内容, 默认值: -"
- },
- "van-sidebar-item/info": {
- "type": "number | string",
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
- },
- "van-sidebar-item/disabled": {
- "type": "boolean",
- "description": "是否禁用该项, 默认值: `false`"
- },
- "van-sidebar-item/url": {
- "type": "string",
- "description": "点击后跳转的链接地址, 默认值: -"
- },
- "van-sidebar-item/to": {
- "type": "string | object",
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
- },
- "van-sidebar-item/replace": {
- "type": "boolean",
- "description": "是否在跳转时替换当前页面历史, 默认值: `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-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-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-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-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-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-tabs/v-model": {
- "type": "number | string",
- "description": "绑定当前选中标签的标识符, 默认值: `0`"
- },
- "van-tabs/type": {
- "type": "string",
- "description": "样式风格类型,可选值为 `card`, 默认值: `line`"
- },
- "van-tabs/color": {
- "type": "string",
- "description": "标签主题色, 默认值: `#ee0a24`"
- },
- "van-tabs/background": {
- "type": "string",
- "description": "标签栏背景色, 默认值: `white`"
- },
- "van-tabs/duration": {
- "type": "number | string",
- "description": "动画时间,单位秒, 默认值: `0.3`"
- },
- "van-tabs/line-width": {
- "type": "number | string",
- "description": "底部条宽度,默认单位 `px`, 默认值: `40px`"
- },
- "van-tabs/line-height": {
- "type": "number | string",
- "description": "底部条高度,默认单位 `px`, 默认值: `3px`"
- },
- "van-tabs/animated": {
- "type": "boolean",
- "description": "是否开启切换标签内容时的转场动画, 默认值: `false`"
- },
- "van-tabs/border": {
- "type": "boolean",
- "description": "是否显示标签栏外边框,仅在 `type=\"line\"` 时有效, 默认值: `false`"
- },
- "van-tabs/ellipsis": {
- "type": "boolean",
- "description": "是否省略过长的标题文字, 默认值: `true`"
- },
- "van-tabs/sticky": {
- "type": "boolean",
- "description": "是否使用粘性定位布局, 默认值: `false`"
- },
- "van-tabs/swipeable": {
- "type": "boolean",
- "description": "是否开启手势滑动切换, 默认值: `false`"
- },
- "van-tabs/lazy-render": {
- "type": "boolean",
- "description": "是否开启延迟渲染(首次切换到标签时才触发内容渲染), 默认值: `true`"
- },
- "van-tabs/scrollspy": {
- "type": "boolean",
- "description": "是否开启滚动导航, 默认值: `false`"
- },
- "van-tabs/offset-top": {
- "type": "number | string",
- "description": "粘性定位布局下与顶部的最小距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
- },
- "van-tabs/swipe-threshold": {
- "type": "number | string",
- "description": "滚动阈值,标签数量超过阈值且总宽度超过标签栏宽度时开始横向滚动, 默认值: `5`"
- },
- "van-tabs/title-active-color": {
- "type": "string",
- "description": "标题选中态颜色, 默认值: -"
- },
- "van-tabs/title-inactive-color": {
- "type": "string",
- "description": "标题默认态颜色, 默认值: -"
- },
- "van-tabs/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-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-item/name": {
- "type": "number | string",
- "description": "标签名称,作为匹配的标识符, 默认值: 当前标签的索引值"
- },
- "van-tabbar-item/icon": {
- "type": "string",
- "description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
- },
- "van-tabbar-item/icon-prefix": {
- "type": "string",
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
- },
- "van-tabbar-item/dot": {
- "type": "boolean",
- "description": "是否显示图标右上角小红点, 默认值: `false`"
- },
- "van-tabbar-item/badge": {
- "type": "number | string",
- "description": "图标右上角徽标的内容, 默认值: -"
- },
- "van-tabbar-item/info": {
- "type": "number | string",
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
- },
- "van-tabbar-item/url": {
- "type": "string",
- "description": "点击后跳转的链接地址, 默认值: -"
- },
- "van-tabbar-item/to": {
- "type": "string | object",
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
- },
- "van-tabbar-item/replace": {
- "type": "boolean",
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
- },
- "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-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/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`, 默认值: -"
- },
- "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`"
- }
- }
|