| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917 |
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId])
- /******/ return installedModules[moduleId].exports;
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/ // identity function for calling harmony imports with the correct context
- /******/ __webpack_require__.i = function(value) { return value; };
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, {
- /******/ configurable: false,
- /******/ enumerable: true,
- /******/ get: getter
- /******/ });
- /******/ }
- /******/ };
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "";
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 202);
- /******/ })
- /************************************************************************/
- /******/ ([
- /* 0 */
- /***/ function(module, exports) {
- /* globals __VUE_SSR_CONTEXT__ */
- // this module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle
- module.exports = function normalizeComponent (
- rawScriptExports,
- compiledTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier /* server only */
- ) {
- var esModule
- var scriptExports = rawScriptExports = rawScriptExports || {}
- // ES6 modules interop
- var type = typeof rawScriptExports.default
- if (type === 'object' || type === 'function') {
- esModule = rawScriptExports
- scriptExports = rawScriptExports.default
- }
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (compiledTemplate) {
- options.render = compiledTemplate.render
- options.staticRenderFns = compiledTemplate.staticRenderFns
- }
- // scopedId
- if (scopeId) {
- options._scopeId = scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = injectStyles
- }
- if (hook) {
- var functional = options.functional
- var existing = functional
- ? options.render
- : options.beforeCreate
- if (!functional) {
- // inject component registration as beforeCreate hook
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- } else {
- // register for functioal component in vue file
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return existing(h, context)
- }
- }
- }
- return {
- esModule: esModule,
- exports: scriptExports,
- options: options
- }
- }
- /***/ },
- /* 1 */
- /***/ function(module, exports) {
- module.exports = require("vue");
- /***/ },
- /* 2 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_cell_vue__ = __webpack_require__(132);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_cell_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_cell_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_cell_vue___default.a; });
- /***/ },
- /* 3 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
- /* unused harmony export on */
- /* unused harmony export off */
- /* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return once; });
- /* unused harmony export hasClass */
- /* harmony export (immutable) */ exports["a"] = addClass;
- /* harmony export (immutable) */ exports["b"] = removeClass;
- /* unused harmony export getStyle */
- /* unused harmony export setStyle */
- /* istanbul ignore next */
- var isServer = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer;
- var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
- var MOZ_HACK_REGEXP = /^moz([A-Z])/;
- var ieVersion = isServer ? 0 : Number(document.documentMode);
- /* istanbul ignore next */
- var trim = function(string) {
- return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
- };
- /* istanbul ignore next */
- var camelCase = function(name) {
- return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
- return offset ? letter.toUpperCase() : letter;
- }).replace(MOZ_HACK_REGEXP, 'Moz$1');
- };
- /* istanbul ignore next */
- var on = (function() {
- if (!isServer && document.addEventListener) {
- return function(element, event, handler) {
- if (element && event && handler) {
- element.addEventListener(event, handler, false);
- }
- };
- } else {
- return function(element, event, handler) {
- if (element && event && handler) {
- element.attachEvent('on' + event, handler);
- }
- };
- }
- })();
- /* istanbul ignore next */
- var off = (function() {
- if (!isServer && document.removeEventListener) {
- return function(element, event, handler) {
- if (element && event) {
- element.removeEventListener(event, handler, false);
- }
- };
- } else {
- return function(element, event, handler) {
- if (element && event) {
- element.detachEvent('on' + event, handler);
- }
- };
- }
- })();
- /* istanbul ignore next */
- var once = function(el, event, fn) {
- var listener = function() {
- if (fn) {
- fn.apply(this, arguments);
- }
- off(el, event, listener);
- };
- on(el, event, listener);
- };
- /* istanbul ignore next */
- function hasClass(el, cls) {
- if (!el || !cls) return false;
- if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
- if (el.classList) {
- return el.classList.contains(cls);
- } else {
- return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
- }
- };
- /* istanbul ignore next */
- function addClass(el, cls) {
- if (!el) return;
- var curClass = el.className;
- var classes = (cls || '').split(' ');
- for (var i = 0, j = classes.length; i < j; i++) {
- var clsName = classes[i];
- if (!clsName) continue;
- if (el.classList) {
- el.classList.add(clsName);
- } else {
- if (!hasClass(el, clsName)) {
- curClass += ' ' + clsName;
- }
- }
- }
- if (!el.classList) {
- el.className = curClass;
- }
- };
- /* istanbul ignore next */
- function removeClass(el, cls) {
- if (!el || !cls) return;
- var classes = cls.split(' ');
- var curClass = ' ' + el.className + ' ';
- for (var i = 0, j = classes.length; i < j; i++) {
- var clsName = classes[i];
- if (!clsName) continue;
- if (el.classList) {
- el.classList.remove(clsName);
- } else {
- if (hasClass(el, clsName)) {
- curClass = curClass.replace(' ' + clsName + ' ', ' ');
- }
- }
- }
- if (!el.classList) {
- el.className = trim(curClass);
- }
- };
- /* istanbul ignore next */
- var getStyle = ieVersion < 9 ? function(element, styleName) {
- if (isServer) return;
- if (!element || !styleName) return null;
- styleName = camelCase(styleName);
- if (styleName === 'float') {
- styleName = 'styleFloat';
- }
- try {
- switch (styleName) {
- case 'opacity':
- try {
- return element.filters.item('alpha').opacity / 100;
- } catch (e) {
- return 1.0;
- }
- default:
- return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null);
- }
- } catch (e) {
- return element.style[styleName];
- }
- } : function(element, styleName) {
- if (isServer) return;
- if (!element || !styleName) return null;
- styleName = camelCase(styleName);
- if (styleName === 'float') {
- styleName = 'cssFloat';
- }
- try {
- var computed = document.defaultView.getComputedStyle(element, '');
- return element.style[styleName] || computed ? computed[styleName] : null;
- } catch (e) {
- return element.style[styleName];
- }
- };
- /* istanbul ignore next */
- function setStyle(element, styleName, value) {
- if (!element || !styleName) return;
- if (typeof styleName === 'object') {
- for (var prop in styleName) {
- if (styleName.hasOwnProperty(prop)) {
- setStyle(element, prop, styleName[prop]);
- }
- }
- } else {
- styleName = camelCase(styleName);
- if (styleName === 'opacity' && ieVersion < 9) {
- element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
- } else {
- element.style[styleName] = value;
- }
- }
- };
- /***/ },
- /* 4 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 5 */
- /***/ function(module, exports, __webpack_require__) {
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(39),
- /* template */
- null,
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 6 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_merge__ = __webpack_require__(11);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__ = __webpack_require__(90);
- /* unused harmony reexport PopupManager */
- var idSeed = 1;
- var transitions = [];
- var hookTransition = function (transition) {
- if (transitions.indexOf(transition) !== -1) return;
- var getVueInstance = function (element) {
- var instance = element.__vue__;
- if (!instance) {
- var textNode = element.previousSibling;
- if (textNode.__vue__) {
- instance = textNode.__vue__;
- }
- }
- return instance;
- };
- __WEBPACK_IMPORTED_MODULE_0_vue___default.a.transition(transition, {
- afterEnter: function afterEnter(el) {
- var instance = getVueInstance(el);
- if (instance) {
- instance.doAfterOpen && instance.doAfterOpen();
- }
- },
- afterLeave: function afterLeave(el) {
- var instance = getVueInstance(el);
- if (instance) {
- instance.doAfterClose && instance.doAfterClose();
- }
- }
- });
- };
- var scrollBarWidth;
- var getScrollBarWidth = function () {
- if (__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) return;
- if (scrollBarWidth !== undefined) return scrollBarWidth;
- var outer = document.createElement('div');
- outer.style.visibility = 'hidden';
- outer.style.width = '100px';
- outer.style.position = 'absolute';
- outer.style.top = '-9999px';
- document.body.appendChild(outer);
- var widthNoScroll = outer.offsetWidth;
- outer.style.overflow = 'scroll';
- var inner = document.createElement('div');
- inner.style.width = '100%';
- outer.appendChild(inner);
- var widthWithScroll = inner.offsetWidth;
- outer.parentNode.removeChild(outer);
- return widthNoScroll - widthWithScroll;
- };
- var getDOM = function(dom) {
- if (dom.nodeType === 3) {
- dom = dom.nextElementSibling || dom.nextSibling;
- getDOM(dom);
- }
- return dom;
- };
- /* harmony default export */ exports["a"] = {
- props: {
- value: {
- type: Boolean,
- default: false
- },
- transition: {
- type: String,
- default: ''
- },
- openDelay: {},
- closeDelay: {},
- zIndex: {},
- modal: {
- type: Boolean,
- default: false
- },
- modalFade: {
- type: Boolean,
- default: true
- },
- modalClass: {
- },
- lockScroll: {
- type: Boolean,
- default: true
- },
- closeOnPressEscape: {
- type: Boolean,
- default: false
- },
- closeOnClickModal: {
- type: Boolean,
- default: false
- }
- },
- created: function created() {
- if (this.transition) {
- hookTransition(this.transition);
- }
- },
- beforeMount: function beforeMount() {
- this._popupId = 'popup-' + idSeed++;
- __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].register(this._popupId, this);
- },
- beforeDestroy: function beforeDestroy() {
- __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].deregister(this._popupId);
- __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].closeModal(this._popupId);
- if (this.modal && this.bodyOverflow !== null && this.bodyOverflow !== 'hidden') {
- document.body.style.overflow = this.bodyOverflow;
- document.body.style.paddingRight = this.bodyPaddingRight;
- }
- this.bodyOverflow = null;
- this.bodyPaddingRight = null;
- },
- data: function data() {
- return {
- opened: false,
- bodyOverflow: null,
- bodyPaddingRight: null,
- rendered: false
- };
- },
- watch: {
- value: function value(val) {
- var this$1 = this;
- if (val) {
- if (this._opening) return;
- if (!this.rendered) {
- this.rendered = true;
- __WEBPACK_IMPORTED_MODULE_0_vue___default.a.nextTick(function () {
- this$1.open();
- });
- } else {
- this.open();
- }
- } else {
- this.close();
- }
- }
- },
- methods: {
- open: function open(options) {
- var this$1 = this;
- if (!this.rendered) {
- this.rendered = true;
- this.$emit('input', true);
- }
- var props = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_merge__["a" /* default */])({}, this, options, this.$props);
- if (this._closeTimer) {
- clearTimeout(this._closeTimer);
- this._closeTimer = null;
- }
- clearTimeout(this._openTimer);
- var openDelay = Number(props.openDelay);
- if (openDelay > 0) {
- this._openTimer = setTimeout(function () {
- this$1._openTimer = null;
- this$1.doOpen(props);
- }, openDelay);
- } else {
- this.doOpen(props);
- }
- },
- doOpen: function doOpen(props) {
- if (this.$isServer) return;
- if (this.willOpen && !this.willOpen()) return;
- if (this.opened) return;
- this._opening = true;
- // 使用 vue-popup 的组件,如果需要和父组件通信显示的状态,应该使用 value,它是一个 prop,
- // 这样在父组件中用 v-model 即可;否则可以使用 visible,它是一个 data
- this.visible = true;
- this.$emit('input', true);
- var dom = getDOM(this.$el);
- var modal = props.modal;
- var zIndex = props.zIndex;
- if (zIndex) {
- __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].zIndex = zIndex;
- }
- if (modal) {
- if (this._closing) {
- __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].closeModal(this._popupId);
- this._closing = false;
- }
- __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].openModal(this._popupId, __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].nextZIndex(), dom, props.modalClass, props.modalFade);
- if (props.lockScroll) {
- if (!this.bodyOverflow) {
- this.bodyPaddingRight = document.body.style.paddingRight;
- this.bodyOverflow = document.body.style.overflow;
- }
- scrollBarWidth = getScrollBarWidth();
- var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
- if (scrollBarWidth > 0 && bodyHasOverflow) {
- document.body.style.paddingRight = scrollBarWidth + 'px';
- }
- document.body.style.overflow = 'hidden';
- }
- }
- if (getComputedStyle(dom).position === 'static') {
- dom.style.position = 'absolute';
- }
- dom.style.zIndex = __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].nextZIndex();
- this.opened = true;
- this.onOpen && this.onOpen();
- if (!this.transition) {
- this.doAfterOpen();
- }
- },
- doAfterOpen: function doAfterOpen() {
- this._opening = false;
- },
- close: function close() {
- var this$1 = this;
- if (this.willClose && !this.willClose()) return;
- if (this._openTimer !== null) {
- clearTimeout(this._openTimer);
- this._openTimer = null;
- }
- clearTimeout(this._closeTimer);
- var closeDelay = Number(this.closeDelay);
- if (closeDelay > 0) {
- this._closeTimer = setTimeout(function () {
- this$1._closeTimer = null;
- this$1.doClose();
- }, closeDelay);
- } else {
- this.doClose();
- }
- },
- doClose: function doClose() {
- var this$1 = this;
- this.visible = false;
- this.$emit('input', false);
- this._closing = true;
- this.onClose && this.onClose();
- if (this.lockScroll) {
- setTimeout(function () {
- if (this$1.modal && this$1.bodyOverflow !== 'hidden') {
- document.body.style.overflow = this$1.bodyOverflow;
- document.body.style.paddingRight = this$1.bodyPaddingRight;
- }
- this$1.bodyOverflow = null;
- this$1.bodyPaddingRight = null;
- }, 200);
- }
- this.opened = false;
- if (!this.transition) {
- this.doAfterClose();
- }
- },
- doAfterClose: function doAfterClose() {
- __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].closeModal(this._popupId);
- this._closing = false;
- }
- }
- };
- /***/ },
- /* 7 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_picker_vue__ = __webpack_require__(145);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_picker_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_picker_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_picker_vue___default.a; });
- /***/ },
- /* 8 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_popup_vue__ = __webpack_require__(146);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_popup_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_popup_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_popup_vue___default.a; });
- /***/ },
- /* 9 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_spinner__ = __webpack_require__(151);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_spinner___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_spinner__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_spinner___default.a; });
- /***/ },
- /* 10 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /**
- * v-clickoutside
- * @desc 点击元素外面才会触发的事件
- * @example
- * ```vue
- * <div v-element-clickoutside="handleClose">
- * ```
- */
- var clickoutsideContext = '@@clickoutsideContext';
- /* harmony default export */ exports["a"] = {
- bind: function bind(el, binding, vnode) {
- var documentHandler = function(e) {
- if (vnode.context && !el.contains(e.target)) {
- vnode.context[el[clickoutsideContext].methodName]();
- }
- };
- el[clickoutsideContext] = {
- documentHandler: documentHandler,
- methodName: binding.expression,
- arg: binding.arg || 'click'
- };
- document.addEventListener(el[clickoutsideContext].arg, documentHandler);
- },
- update: function update(el, binding) {
- el[clickoutsideContext].methodName = binding.expression;
- },
- unbind: function unbind(el) {
- document.removeEventListener(
- el[clickoutsideContext].arg,
- el[clickoutsideContext].documentHandler);
- },
- install: function install(Vue) {
- Vue.directive('clickoutside', {
- bind: this.bind,
- unbind: this.unbind
- });
- }
- };
- /***/ },
- /* 11 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony default export */ exports["a"] = function(target) {
- var arguments$1 = arguments;
- for (var i = 1, j = arguments.length; i < j; i++) {
- var source = arguments$1[i] || {};
- for (var prop in source) {
- if (source.hasOwnProperty(prop)) {
- var value = source[prop];
- if (value !== undefined) {
- target[prop] = value;
- }
- }
- }
- }
- return target;
- };;
- /***/ },
- /* 12 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 13 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(104)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(41),
- /* template */
- __webpack_require__(175),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 14 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__packages_header__ = __webpack_require__(59);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__packages_button__ = __webpack_require__(54);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__packages_cell__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__packages_cell_swipe__ = __webpack_require__(55);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__packages_field__ = __webpack_require__(58);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__packages_badge__ = __webpack_require__(53);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__packages_switch__ = __webpack_require__(82);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__packages_spinner__ = __webpack_require__(9);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__packages_tab_item__ = __webpack_require__(85);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__packages_tab_container_item__ = __webpack_require__(83);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__packages_tab_container__ = __webpack_require__(84);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__packages_navbar__ = __webpack_require__(71);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__packages_tabbar__ = __webpack_require__(86);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__packages_search__ = __webpack_require__(79);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__packages_checklist__ = __webpack_require__(56);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__packages_radio__ = __webpack_require__(76);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__packages_loadmore__ = __webpack_require__(68);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__packages_actionsheet__ = __webpack_require__(52);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__packages_popup__ = __webpack_require__(8);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__packages_swipe__ = __webpack_require__(81);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__packages_swipe_item__ = __webpack_require__(80);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__packages_range__ = __webpack_require__(77);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__packages_picker__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__packages_progress__ = __webpack_require__(75);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__packages_toast__ = __webpack_require__(87);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__packages_indicator__ = __webpack_require__(62);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__packages_message_box__ = __webpack_require__(69);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__packages_infinite_scroll__ = __webpack_require__(63);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__packages_lazyload__ = __webpack_require__(66);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__packages_datetime_picker__ = __webpack_require__(57);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__packages_index_list__ = __webpack_require__(60);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__packages_index_section__ = __webpack_require__(61);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__packages_palette_button__ = __webpack_require__(72);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__src_assets_font_iconfont_css__ = __webpack_require__(91);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__src_assets_font_iconfont_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_33__src_assets_font_iconfont_css__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_34__utils_merge__ = __webpack_require__(11);
- var version = '2.2.13';
- var install = function(Vue, config) {
- if ( config === void 0 ) config = {};
- if (install.installed) return;
- Vue.component(__WEBPACK_IMPORTED_MODULE_0__packages_header__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_0__packages_header__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_1__packages_button__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_1__packages_button__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_2__packages_cell__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_2__packages_cell__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_3__packages_cell_swipe__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_3__packages_cell_swipe__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_4__packages_field__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_4__packages_field__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_5__packages_badge__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_5__packages_badge__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_6__packages_switch__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_6__packages_switch__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_7__packages_spinner__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_7__packages_spinner__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_8__packages_tab_item__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_8__packages_tab_item__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_9__packages_tab_container_item__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_9__packages_tab_container_item__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_10__packages_tab_container__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_10__packages_tab_container__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_11__packages_navbar__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_11__packages_navbar__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_12__packages_tabbar__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_12__packages_tabbar__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_13__packages_search__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_13__packages_search__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_14__packages_checklist__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_14__packages_checklist__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_15__packages_radio__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_15__packages_radio__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_16__packages_loadmore__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_16__packages_loadmore__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_17__packages_actionsheet__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_17__packages_actionsheet__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_18__packages_popup__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_18__packages_popup__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_19__packages_swipe__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_19__packages_swipe__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_20__packages_swipe_item__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_20__packages_swipe_item__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_21__packages_range__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_21__packages_range__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_22__packages_picker__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_22__packages_picker__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_23__packages_progress__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_23__packages_progress__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_29__packages_datetime_picker__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_29__packages_datetime_picker__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_30__packages_index_list__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_30__packages_index_list__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_31__packages_index_section__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_31__packages_index_section__["a" /* default */]);
- Vue.component(__WEBPACK_IMPORTED_MODULE_32__packages_palette_button__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_32__packages_palette_button__["a" /* default */]);
- Vue.use(__WEBPACK_IMPORTED_MODULE_27__packages_infinite_scroll__["a" /* default */]);
- Vue.use(__WEBPACK_IMPORTED_MODULE_28__packages_lazyload__["a" /* default */], __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_34__utils_merge__["a" /* default */])({
- loading: __webpack_require__(127),
- attempt: 3
- }, config.lazyload));
- Vue.$messagebox = Vue.prototype.$messagebox = __WEBPACK_IMPORTED_MODULE_26__packages_message_box__["a" /* default */];
- Vue.$toast = Vue.prototype.$toast = __WEBPACK_IMPORTED_MODULE_24__packages_toast__["a" /* default */];
- Vue.$indicator = Vue.prototype.$indicator = __WEBPACK_IMPORTED_MODULE_25__packages_indicator__["a" /* default */];
- };
- // auto install
- if (typeof window !== 'undefined' && window.Vue) {
- install(window.Vue);
- };
- module.exports = {
- install: install,
- version: version,
- Header: __WEBPACK_IMPORTED_MODULE_0__packages_header__["a" /* default */],
- Button: __WEBPACK_IMPORTED_MODULE_1__packages_button__["a" /* default */],
- Cell: __WEBPACK_IMPORTED_MODULE_2__packages_cell__["a" /* default */],
- CellSwipe: __WEBPACK_IMPORTED_MODULE_3__packages_cell_swipe__["a" /* default */],
- Field: __WEBPACK_IMPORTED_MODULE_4__packages_field__["a" /* default */],
- Badge: __WEBPACK_IMPORTED_MODULE_5__packages_badge__["a" /* default */],
- Switch: __WEBPACK_IMPORTED_MODULE_6__packages_switch__["a" /* default */],
- Spinner: __WEBPACK_IMPORTED_MODULE_7__packages_spinner__["a" /* default */],
- TabItem: __WEBPACK_IMPORTED_MODULE_8__packages_tab_item__["a" /* default */],
- TabContainerItem: __WEBPACK_IMPORTED_MODULE_9__packages_tab_container_item__["a" /* default */],
- TabContainer: __WEBPACK_IMPORTED_MODULE_10__packages_tab_container__["a" /* default */],
- Navbar: __WEBPACK_IMPORTED_MODULE_11__packages_navbar__["a" /* default */],
- Tabbar: __WEBPACK_IMPORTED_MODULE_12__packages_tabbar__["a" /* default */],
- Search: __WEBPACK_IMPORTED_MODULE_13__packages_search__["a" /* default */],
- Checklist: __WEBPACK_IMPORTED_MODULE_14__packages_checklist__["a" /* default */],
- Radio: __WEBPACK_IMPORTED_MODULE_15__packages_radio__["a" /* default */],
- Loadmore: __WEBPACK_IMPORTED_MODULE_16__packages_loadmore__["a" /* default */],
- Actionsheet: __WEBPACK_IMPORTED_MODULE_17__packages_actionsheet__["a" /* default */],
- Popup: __WEBPACK_IMPORTED_MODULE_18__packages_popup__["a" /* default */],
- Swipe: __WEBPACK_IMPORTED_MODULE_19__packages_swipe__["a" /* default */],
- SwipeItem: __WEBPACK_IMPORTED_MODULE_20__packages_swipe_item__["a" /* default */],
- Range: __WEBPACK_IMPORTED_MODULE_21__packages_range__["a" /* default */],
- Picker: __WEBPACK_IMPORTED_MODULE_22__packages_picker__["a" /* default */],
- Progress: __WEBPACK_IMPORTED_MODULE_23__packages_progress__["a" /* default */],
- Toast: __WEBPACK_IMPORTED_MODULE_24__packages_toast__["a" /* default */],
- Indicator: __WEBPACK_IMPORTED_MODULE_25__packages_indicator__["a" /* default */],
- MessageBox: __WEBPACK_IMPORTED_MODULE_26__packages_message_box__["a" /* default */],
- InfiniteScroll: __WEBPACK_IMPORTED_MODULE_27__packages_infinite_scroll__["a" /* default */],
- Lazyload: __WEBPACK_IMPORTED_MODULE_28__packages_lazyload__["a" /* default */],
- DatetimePicker: __WEBPACK_IMPORTED_MODULE_29__packages_datetime_picker__["a" /* default */],
- IndexList: __WEBPACK_IMPORTED_MODULE_30__packages_index_list__["a" /* default */],
- IndexSection: __WEBPACK_IMPORTED_MODULE_31__packages_index_section__["a" /* default */],
- PaletteButton: __WEBPACK_IMPORTED_MODULE_32__packages_palette_button__["a" /* default */]
- };
- /***/ },
- /* 15 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__ = __webpack_require__(6);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_popup_css__ = __webpack_require__(12);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_popup_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_popup_css__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ exports["default"] = {
- name: 'mt-actionsheet',
- mixins: [__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__["a" /* default */]],
- props: {
- modal: {
- default: true
- },
- modalFade: {
- default: false
- },
- lockScroll: {
- default: false
- },
- closeOnClickModal: {
- default: true
- },
- cancelText: {
- type: String,
- default: '取消'
- },
- actions: {
- type: Array,
- default: function () { return []; }
- }
- },
- data: function data() {
- return {
- currentValue: false
- };
- },
- watch: {
- currentValue: function currentValue(val) {
- this.$emit('input', val);
- },
- value: function value(val) {
- this.currentValue = val;
- }
- },
- methods: {
- itemClick: function itemClick(item, index) {
- if (item.method && typeof item.method === 'function') {
- item.method(item, index);
- }
- this.currentValue = false;
- }
- },
- mounted: function mounted() {
- if (this.value) {
- this.rendered = true;
- this.currentValue = true;
- this.open();
- }
- }
- };
- /***/ },
- /* 16 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /**
- * mt-badge
- * @module components/badge
- * @desc 徽章
- * @param {string} [type=primary] 组件样式,可选 primary, error, success, warning
- * @param {string} [color] - 传入颜色值
- * @param {string} [size=normal] - 尺寸,接受 normal, small, large
- *
- * @example
- * <mt-badge color="error">错误</mt-badge>
- * <mt-badge color="#333">30</mt-badge>
- */
- /* harmony default export */ exports["default"] = {
- name: 'mt-badge',
- props: {
- color: String,
- type: {
- type: String,
- default: 'primary'
- },
- size: {
- type: String,
- default: 'normal'
- }
- }
- };
- /***/ },
- /* 17 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- if (false) {
- require('mint-ui/packages/font/style.css');
- }
- /**
- * mt-header
- * @module components/button
- * @desc 按钮
- * @param {string} [type=default] - 显示类型,接受 default, primary, danger
- * @param {boolean} [disabled=false] - 禁用
- * @param {boolean} [plain=false] - 幽灵按钮
- * @param {string} [size=normal] - 尺寸,接受 normal, small, large
- * @param {string} [native-type] - 原生 type 属性
- * @param {string} [icon] - 图标,提供 more, back,或者自定义的图标(传入不带前缀的图标类名,最后拼接成 .mintui-xxx)
- * @param {slot} - 显示文本
- * @param {slot} [icon] 显示图标
- *
- * @example
- * <mt-button size="large" icon="back" type="primary">按钮</mt-button>
- */
- /* harmony default export */ exports["default"] = {
- name: 'mt-button',
- methods: {
- handleClick: function handleClick(evt) {
- this.$emit('click', evt);
- }
- },
- props: {
- icon: String,
- disabled: Boolean,
- nativeType: String,
- plain: Boolean,
- type: {
- type: String,
- default: 'default',
- validator: function validator(value) {
- return [
- 'default',
- 'danger',
- 'primary'
- ].indexOf(value) > -1;
- }
- },
- size: {
- type: String,
- default: 'normal',
- validator: function validator$1(value) {
- return [
- 'small',
- 'normal',
- 'large'
- ].indexOf(value) > -1;
- }
- }
- }
- };
- /***/ },
- /* 18 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_packages_cell_index_js__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_clickoutside__ = __webpack_require__(10);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- if (false) {
- require('mint-ui/packages/cell/style.css');
- }
- /**
- * mt-cell-swipe
- * @desc 类似 iOS 滑动 Cell 的效果
- * @module components/cell-swipe
- *
- * @example
- * <mt-cell-swipe
- * :left=[
- * {
- * content: 'text',
- * style: {color: 'white', backgroundColor: 'red'},
- * handler(e) => console.log(123)
- * }
- * ]
- * :right=[{ content: 'allowed HTML' }]>
- * swipe me
- * </mt-cell-swipe>
- */
- /* harmony default export */ exports["default"] = {
- name: 'mt-cell-swipe',
- components: { XCell: __WEBPACK_IMPORTED_MODULE_1_mint_ui_packages_cell_index_js__["a" /* default */] },
- directives: { Clickoutside: __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_clickoutside__["a" /* default */] },
- props: {
- to: String,
- left: Array,
- right: Array,
- icon: String,
- title: String,
- label: String,
- isLink: Boolean,
- value: {}
- },
- data: function data() {
- return {
- start: { x: 0, y: 0 }
- };
- },
- mounted: function mounted() {
- this.wrap = this.$refs.cell.$el.querySelector('.mint-cell-wrapper');
- this.leftElm = this.$refs.left;
- this.rightElm = this.$refs.right;
- this.leftWrapElm = this.leftElm.parentNode;
- this.rightWrapElm = this.rightElm.parentNode;
- this.leftWidth = this.leftElm.getBoundingClientRect().width;
- this.rightWidth = this.rightElm.getBoundingClientRect().width;
- this.leftDefaultTransform = this.translate3d(-this.leftWidth - 1);
- this.rightDefaultTransform = this.translate3d(this.rightWidth);
- this.rightWrapElm.style.webkitTransform = this.rightDefaultTransform;
- this.leftWrapElm.style.webkitTransform = this.leftDefaultTransform;
- },
- methods: {
- resetSwipeStatus: function resetSwipeStatus() {
- this.swiping = false;
- this.opened = true;
- this.offsetLeft = 0;
- },
- translate3d: function translate3d(offset) {
- return ("translate3d(" + offset + "px, 0, 0)");
- },
- setAnimations: function setAnimations(val) {
- this.wrap.style.transitionDuration = val;
- this.rightWrapElm.style.transitionDuration = val;
- this.leftWrapElm.style.transitionDuration = val;
- },
- swipeMove: function swipeMove(offset) {
- if ( offset === void 0 ) offset = 0;
- this.wrap.style.webkitTransform = this.translate3d(offset);
- this.rightWrapElm.style.webkitTransform = this.translate3d(this.rightWidth + offset);
- this.leftWrapElm.style.webkitTransform = this.translate3d(-this.leftWidth + offset);
- offset && (this.swiping = true);
- },
- swipeLeaveTransition: function swipeLeaveTransition(direction) {
- var this$1 = this;
- setTimeout(function () {
- this$1.swipeLeave = true;
- // left
- if (direction > 0 && -this$1.offsetLeft > this$1.rightWidth * 0.4) {
- this$1.swipeMove(-this$1.rightWidth);
- this$1.resetSwipeStatus();
- return;
- // right
- } else if (direction < 0 && this$1.offsetLeft > this$1.leftWidth * 0.4) {
- this$1.swipeMove(this$1.leftWidth);
- this$1.resetSwipeStatus();
- return;
- }
- this$1.swipeMove(0);
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["c" /* once */])(this$1.wrap, 'webkitTransitionEnd', function (_) {
- this$1.wrap.style.webkitTransform = '';
- this$1.rightWrapElm.style.webkitTransform = this$1.rightDefaultTransform;
- this$1.leftWrapElm.style.webkitTransform = this$1.leftDefaultTransform;
- this$1.swipeLeave = false;
- this$1.swiping = false;
- });
- }, 0);
- },
- startDrag: function startDrag(evt) {
- evt = evt.changedTouches ? evt.changedTouches[0] : evt;
- this.dragging = true;
- this.start.x = evt.pageX;
- this.start.y = evt.pageY;
- this.direction = '';
- },
- onDrag: function onDrag(evt) {
- if (this.opened) {
- if (!this.swiping) {
- this.swipeMove(0);
- this.setAnimations('');
- }
- this.opened = false;
- return;
- }
- if (!this.dragging) return;
- var swiping;
- var e = evt.changedTouches ? evt.changedTouches[0] : evt;
- var offsetTop = e.pageY - this.start.y;
- var offsetLeft = this.offsetLeft = e.pageX - this.start.x;
- var y = Math.abs(offsetTop);
- var x = Math.abs(offsetLeft);
- this.setAnimations('0ms');
- if (this.direction === '') {
- this.direction = x > y ? 'horizonal' : 'vertical';
- }
- if (this.direction === 'horizonal') {
- evt.preventDefault();
- evt.stopPropagation();
- swiping = !(x < 5 || (x >= 5 && y >= x * 1.73));
- if (!swiping) return;
- if ((offsetLeft < 0 && -offsetLeft > this.rightWidth) ||
- (offsetLeft > 0 && offsetLeft > this.leftWidth) ||
- (offsetLeft > 0 && !this.leftWidth) ||
- (offsetLeft < 0 && !this.rightWidth)) {
- } else {
- this.swipeMove(offsetLeft);
- }
- }
- },
- endDrag: function endDrag() {
- this.direction = '';
- this.setAnimations('');
- if (!this.swiping) return;
- this.swipeLeaveTransition(this.offsetLeft > 0 ? -1 : 1);
- }
- }
- };
- /***/ },
- /* 19 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- if (false) {
- require('mint-ui/packages/font/style.css');
- }
- /**
- * mt-cell
- * @module components/cell
- * @desc 单元格
- * @param {string|Object} [to] - 跳转链接,使用 vue-router 的情况下 to 会传递给 router.push,否则作为 a 标签的 href 属性处理
- * @param {string} [icon] - 图标,提供 more, back,或者自定义的图标(传入不带前缀的图标类名,最后拼接成 .mintui-xxx)
- * @param {string} [title] - 标题
- * @param {string} [label] - 备注信息
- * @param {boolean} [is-link=false] - 可点击的链接
- * @param {string} [value] - 右侧显示文字
- * @param {slot} - 同 value, 会覆盖 value 属性
- * @param {slot} [title] - 同 title, 会覆盖 title 属性
- * @param {slot} [icon] - 同 icon, 会覆盖 icon 属性,例如可以传入图片
- *
- * @example
- * <mt-cell title="标题文字" icon="back" is-link value="描述文字"></mt-cell>
- * <mt-cell title="标题文字" icon="back">
- * <div slot="value">描述文字啊哈</div>
- * </mt-cell>
- */
- /* harmony default export */ exports["default"] = {
- name: 'mt-cell',
- props: {
- to: [String, Object],
- icon: String,
- title: String,
- label: String,
- isLink: Boolean,
- value: {}
- },
- computed: {
- href: function href() {
- var this$1 = this;
- if (this.to && !this.added && this.$router) {
- var resolved = this.$router.match(this.to);
- if (!resolved.matched.length) return this.to;
- this.$nextTick(function () {
- this$1.added = true;
- this$1.$el.addEventListener('click', this$1.handleClick);
- });
- return resolved.fullPath || resolved.path;
- }
- return this.to;
- }
- },
- methods: {
- handleClick: function handleClick($event) {
- $event.preventDefault();
- this.$router.push(this.href);
- }
- }
- };
- /***/ },
- /* 20 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__ = __webpack_require__(2);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- if (false) {
- require('mint-ui/packages/cell/style.css');
- }
- /**
- * mt-checklist
- * @module components/checklist
- * @desc 复选框列表,依赖 cell 组件
- *
- * @param {(string[]|object[])} options - 选项数组,可以传入 [{label: 'label', value: 'value', disabled: true}] 或者 ['ab', 'cd', 'ef']
- * @param {string[]} value - 选中值的数组
- * @param {string} title - 标题
- * @param {number} [max] - 最多可选的个数
- * @param {string} [align=left] - checkbox 对齐位置,`left`, `right`
- *
- *
- * @example
- * <mt-checklist :v-model="value" :options="['a', 'b', 'c']"></mt-checklist>
- */
- /* harmony default export */ exports["default"] = {
- name: 'mt-checklist',
- props: {
- max: Number,
- title: String,
- align: String,
- options: {
- type: Array,
- required: true
- },
- value: Array
- },
- components: { XCell: __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__["a" /* default */] },
- data: function data() {
- return {
- currentValue: this.value
- };
- },
- computed: {
- limit: function limit() {
- return this.max < this.currentValue.length;
- }
- },
- watch: {
- value: function value(val) {
- this.currentValue = val;
- },
- currentValue: function currentValue(val) {
- if (this.limit) val.pop();
- this.$emit('input', val);
- }
- }
- };
- /***/ },
- /* 21 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_picker_index_js__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_packages_popup_index_js__ = __webpack_require__(8);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- if (false) {
- require('mint-ui/packages/picker/style.css');
- require('mint-ui/packages/popup/style.css');
- }
- var FORMAT_MAP = {
- Y: 'year',
- M: 'month',
- D: 'date',
- H: 'hour',
- m: 'minute'
- };
- /* harmony default export */ exports["default"] = {
- name: 'mt-datetime-picker',
- props: {
- cancelText: {
- type: String,
- default: '取消'
- },
- confirmText: {
- type: String,
- default: '确定'
- },
- type: {
- type: String,
- default: 'datetime'
- },
- startDate: {
- type: Date,
- default: function default$1() {
- return new Date(new Date().getFullYear() - 10, 0, 1);
- }
- },
- endDate: {
- type: Date,
- default: function default$2() {
- return new Date(new Date().getFullYear() + 10, 11, 31);
- }
- },
- startHour: {
- type: Number,
- default: 0
- },
- endHour: {
- type: Number,
- default: 23
- },
- yearFormat: {
- type: String,
- default: '{value}'
- },
- monthFormat: {
- type: String,
- default: '{value}'
- },
- dateFormat: {
- type: String,
- default: '{value}'
- },
- hourFormat: {
- type: String,
- default: '{value}'
- },
- minuteFormat: {
- type: String,
- default: '{value}'
- },
- visibleItemCount: {
- type: Number,
- default: 7
- },
- closeOnClickModal: {
- type: Boolean,
- default: true
- },
- value: null
- },
- data: function data() {
- return {
- visible: false,
- startYear: null,
- endYear: null,
- startMonth: 1,
- endMonth: 12,
- startDay: 1,
- endDay: 31,
- currentValue: null,
- selfTriggered: false,
- dateSlots: [],
- shortMonthDates: [],
- longMonthDates: [],
- febDates: [],
- leapFebDates: []
- };
- },
- components: {
- 'mt-picker': __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_picker_index_js__["a" /* default */],
- 'mt-popup': __WEBPACK_IMPORTED_MODULE_1_mint_ui_packages_popup_index_js__["a" /* default */]
- },
- methods: {
- open: function open() {
- this.visible = true;
- },
- close: function close() {
- this.visible = false;
- },
- isLeapYear: function isLeapYear(year) {
- return (year % 400 === 0) || (year % 100 !== 0 && year % 4 === 0);
- },
- isShortMonth: function isShortMonth(month) {
- return [4, 6, 9, 11].indexOf(month) > -1;
- },
- getMonthEndDay: function getMonthEndDay(year, month) {
- if (this.isShortMonth(month)) {
- return 30;
- } else if (month === 2) {
- return this.isLeapYear(year) ? 29 : 28;
- } else {
- return 31;
- }
- },
- getTrueValue: function getTrueValue(formattedValue) {
- if (!formattedValue) return;
- while (isNaN(parseInt(formattedValue, 10))) {
- formattedValue = formattedValue.slice(1);
- }
- return parseInt(formattedValue, 10);
- },
- getValue: function getValue(values) {
- var this$1 = this;
- var value;
- if (this.type === 'time') {
- value = values.map(function (value) { return ('0' + this$1.getTrueValue(value)).slice(-2); }).join(':');
- } else {
- var year = this.getTrueValue(values[0]);
- var month = this.getTrueValue(values[1]);
- var date = this.getTrueValue(values[2]);
- var maxDate = this.getMonthEndDay(year, month);
- if (date > maxDate) {
- this.selfTriggered = true;
- date = 1;
- }
- var hour = this.typeStr.indexOf('H') > -1 ? this.getTrueValue(values[this.typeStr.indexOf('H')]) : 0;
- var minute = this.typeStr.indexOf('m') > -1 ? this.getTrueValue(values[this.typeStr.indexOf('m')]) : 0;
- value = new Date(year, month - 1, date, hour, minute);
- }
- return value;
- },
- onChange: function onChange(picker) {
- var values = picker.$children.filter(function (child) { return child.currentValue !== undefined; }).map(function (child) { return child.currentValue; });
- if (this.selfTriggered) {
- this.selfTriggered = false;
- return;
- }
- if (values.length !== 0) {
- this.currentValue = this.getValue(values);
- this.handleValueChange();
- }
- },
- fillValues: function fillValues(type, start, end) {
- var this$1 = this;
- var values = [];
- for (var i = start; i <= end; i++) {
- if (i < 10) {
- values.push(this$1[((FORMAT_MAP[type]) + "Format")].replace('{value}', ('0' + i).slice(-2)));
- } else {
- values.push(this$1[((FORMAT_MAP[type]) + "Format")].replace('{value}', i));
- }
- }
- return values;
- },
- pushSlots: function pushSlots(slots, type, start, end) {
- slots.push({
- flex: 1,
- values: this.fillValues(type, start, end)
- });
- },
- generateSlots: function generateSlots() {
- var this$1 = this;
- var dateSlots = [];
- var INTERVAL_MAP = {
- Y: this.rims.year,
- M: this.rims.month,
- D: this.rims.date,
- H: this.rims.hour,
- m: this.rims.min
- };
- var typesArr = this.typeStr.split('');
- typesArr.forEach(function (type) {
- if (INTERVAL_MAP[type]) {
- this$1.pushSlots.apply(null, [dateSlots, type].concat(INTERVAL_MAP[type]));
- }
- });
- if (this.typeStr === 'Hm') {
- dateSlots.splice(1, 0, {
- divider: true,
- content: ':'
- });
- }
- this.dateSlots = dateSlots;
- this.handleExceededValue();
- },
- handleExceededValue: function handleExceededValue() {
- var this$1 = this;
- var values = [];
- if (this.type === 'time') {
- var currentValue = this.currentValue.split(':');
- values = [
- this.hourFormat.replace('{value}', currentValue[0]),
- this.minuteFormat.replace('{value}', currentValue[1])
- ];
- } else {
- values = [
- this.yearFormat.replace('{value}', this.getYear(this.currentValue)),
- this.monthFormat.replace('{value}', ('0' + this.getMonth(this.currentValue)).slice(-2)),
- this.dateFormat.replace('{value}', ('0' + this.getDate(this.currentValue)).slice(-2))
- ];
- if (this.type === 'datetime') {
- values.push(
- this.hourFormat.replace('{value}', ('0' + this.getHour(this.currentValue)).slice(-2)),
- this.minuteFormat.replace('{value}', ('0' + this.getMinute(this.currentValue)).slice(-2))
- );
- }
- }
- this.dateSlots.filter(function (child) { return child.values !== undefined; })
- .map(function (slot) { return slot.values; }).forEach(function (slotValues, index) {
- if (slotValues.indexOf(values[index]) === -1) {
- values[index] = slotValues[0];
- }
- });
- this.$nextTick(function () {
- this$1.setSlotsByValues(values);
- });
- },
- setSlotsByValues: function setSlotsByValues(values) {
- var setSlotValue = this.$refs.picker.setSlotValue;
- if (this.type === 'time') {
- setSlotValue(0, values[0]);
- setSlotValue(1, values[1]);
- }
- if (this.type !== 'time') {
- setSlotValue(0, values[0]);
- setSlotValue(1, values[1]);
- setSlotValue(2, values[2]);
- if (this.type === 'datetime') {
- setSlotValue(3, values[3]);
- setSlotValue(4, values[4]);
- }
- }
- [].forEach.call(this.$refs.picker.$children, function (child) { return child.doOnValueChange(); });
- },
- rimDetect: function rimDetect(result, rim) {
- var position = rim === 'start' ? 0 : 1;
- var rimDate = rim === 'start' ? this.startDate : this.endDate;
- if (this.getYear(this.currentValue) === rimDate.getFullYear()) {
- result.month[position] = rimDate.getMonth() + 1;
- if (this.getMonth(this.currentValue) === rimDate.getMonth() + 1) {
- result.date[position] = rimDate.getDate();
- if (this.getDate(this.currentValue) === rimDate.getDate()) {
- result.hour[position] = rimDate.getHours();
- if (this.getHour(this.currentValue) === rimDate.getHours()) {
- result.min[position] = rimDate.getMinutes();
- }
- }
- }
- }
- },
- isDateString: function isDateString(str) {
- return /\d{4}(\-|\/|.)\d{1,2}\1\d{1,2}/.test(str);
- },
- getYear: function getYear(value) {
- return this.isDateString(value) ? value.split(' ')[0].split(/-|\/|\./)[0] : value.getFullYear();
- },
- getMonth: function getMonth(value) {
- return this.isDateString(value) ? value.split(' ')[0].split(/-|\/|\./)[1] : value.getMonth() + 1;
- },
- getDate: function getDate(value) {
- return this.isDateString(value) ? value.split(' ')[0].split(/-|\/|\./)[2] : value.getDate();
- },
- getHour: function getHour(value) {
- if (this.isDateString(value)) {
- var str = value.split(' ')[1] || '00:00:00';
- return str.split(':')[0];
- }
- return value.getHours();
- },
- getMinute: function getMinute(value) {
- if (this.isDateString(value)) {
- var str = value.split(' ')[1] || '00:00:00';
- return str.split(':')[1];
- }
- return value.getMinutes();
- },
- confirm: function confirm() {
- this.visible = false;
- this.$emit('confirm', this.currentValue);
- },
- handleValueChange: function handleValueChange() {
- this.$emit('input', this.currentValue);
- }
- },
- computed: {
- rims: function rims() {
- if (!this.currentValue) return { year: [], month: [], date: [], hour: [], min: [] };
- var result;
- if (this.type === 'time') {
- result = {
- hour: [this.startHour, this.endHour],
- min: [0, 59]
- };
- return result;
- }
- result = {
- year: [this.startDate.getFullYear(), this.endDate.getFullYear()],
- month: [1, 12],
- date: [1, this.getMonthEndDay(this.getYear(this.currentValue), this.getMonth(this.currentValue))],
- hour: [0, 23],
- min: [0, 59]
- };
- this.rimDetect(result, 'start');
- this.rimDetect(result, 'end');
- return result;
- },
- typeStr: function typeStr() {
- if (this.type === 'time') {
- return 'Hm';
- } else if (this.type === 'date') {
- return 'YMD';
- } else {
- return 'YMDHm';
- }
- }
- },
- watch: {
- value: function value(val) {
- this.currentValue = val;
- },
- rims: function rims$1() {
- this.generateSlots();
- },
- visible: function visible(val) {
- this.$emit('visible-change', val);
- }
- },
- mounted: function mounted() {
- this.currentValue = this.value;
- if (!this.value) {
- if (this.type.indexOf('date') > -1) {
- this.currentValue = this.startDate;
- } else {
- this.currentValue = (('0' + this.startHour).slice(-2)) + ":00";
- }
- }
- this.generateSlots();
- }
- };
- /***/ },
- /* 22 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_clickoutside__ = __webpack_require__(10);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- if (false) {
- require('mint-ui/packages/cell/style.css');
- }
- /**
- * mt-field
- * @desc 编辑器,依赖 cell
- * @module components/field
- *
- * @param {string} [type=text] - field 类型,接受 text, textarea 等
- * @param {string} [label] - 标签
- * @param {string} [rows] - textarea 的 rows
- * @param {string} [placeholder] - placeholder
- * @param {string} [disabled] - disabled
- * @param {string} [readonly] - readonly
- * @param {string} [state] - 表单校验状态样式,接受 error, warning, success
- *
- * @example
- * <mt-field v-model="value" label="用户名"></mt-field>
- * <mt-field v-model="value" label="密码" placeholder="请输入密码"></mt-field>
- * <mt-field v-model="value" label="自我介绍" placeholder="自我介绍" type="textarea" rows="4"></mt-field>
- * <mt-field v-model="value" label="邮箱" placeholder="成功状态" state="success"></mt-field>
- */
- /* harmony default export */ exports["default"] = {
- name: 'mt-field',
- data: function data() {
- return {
- active: false,
- currentValue: this.value
- };
- },
- directives: {
- Clickoutside: __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_clickoutside__["a" /* default */]
- },
- props: {
- type: {
- type: String,
- default: 'text'
- },
- rows: String,
- label: String,
- placeholder: String,
- readonly: Boolean,
- disabled: Boolean,
- disableClear: Boolean,
- state: {
- type: String,
- default: 'default'
- },
- value: {},
- attr: Object
- },
- components: { XCell: __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__["a" /* default */] },
- methods: {
- doCloseActive: function doCloseActive() {
- this.active = false;
- },
- handleInput: function handleInput(evt) {
- this.currentValue = evt.target.value;
- },
- handleClear: function handleClear() {
- if (this.disabled || this.readonly) return;
- this.currentValue = '';
- }
- },
- watch: {
- value: function value(val) {
- this.currentValue = val;
- },
- currentValue: function currentValue(val) {
- this.$emit('input', val);
- },
- attr: {
- immediate: true,
- handler: function handler(attrs) {
- var this$1 = this;
- this.$nextTick(function () {
- var target = [this$1.$refs.input, this$1.$refs.textarea];
- target.forEach(function (el) {
- if (!el || !attrs) return;
- Object.keys(attrs).map(function (name) { return el.setAttribute(name, attrs[name]); });
- });
- });
- }
- }
- }
- };
- /***/ },
- /* 23 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /**
- * mt-header
- * @module components/header
- * @desc 顶部导航
- * @param {boolean} [fixed=false] - 固定顶部
- * @param {string} [title] - 标题
- * @param {slot} [left] - 显示在左侧区域
- * @param {slot} [right] - 显示在右侧区域
- *
- * @example
- * <mt-header title="我是标题" fixed>
- * <mt-button slot="left" icon="back" @click="handleBack">返回</mt-button>
- * <mt-button slot="right" icon="more"></mt-button>
- * </mt-header>
- */
- /* harmony default export */ exports["default"] = {
- name: 'mt-header',
- props: {
- fixed: Boolean,
- title: String
- }
- };
- /***/ },
- /* 24 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ exports["default"] = {
- name: 'mt-index-list',
- props: {
- height: Number,
- showIndicator: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- sections: [],
- navWidth: 0,
- indicatorTime: null,
- moving: false,
- firstSection: null,
- currentIndicator: '',
- currentHeight: this.height,
- navOffsetX: 0
- };
- },
- watch: {
- sections: function sections() {
- this.init();
- },
- height: function height(val) {
- if (val) {
- this.currentHeight = val;
- }
- }
- },
- methods: {
- init: function init() {
- var this$1 = this;
- this.$nextTick(function () {
- this$1.navWidth = this$1.$refs.nav.clientWidth;
- });
- var listItems = this.$refs.content.getElementsByTagName('li');
- if (listItems.length > 0) {
- this.firstSection = listItems[0];
- }
- },
- handleTouchStart: function handleTouchStart(e) {
- if (e.target.tagName !== 'LI') {
- return;
- }
- this.navOffsetX = e.changedTouches[0].clientX;
- this.scrollList(e.changedTouches[0].clientY);
- if (this.indicatorTime) {
- clearTimeout(this.indicatorTime);
- }
- this.moving = true;
- window.addEventListener('touchmove', this.handleTouchMove);
- window.addEventListener('touchend', this.handleTouchEnd);
- },
- handleTouchMove: function handleTouchMove(e) {
- e.preventDefault();
- this.scrollList(e.changedTouches[0].clientY);
- },
- handleTouchEnd: function handleTouchEnd() {
- var this$1 = this;
- this.indicatorTime = setTimeout(function () {
- this$1.moving = false;
- this$1.currentIndicator = '';
- }, 500);
- window.removeEventListener('touchmove', this.handleTouchMove);
- window.removeEventListener('touchend', this.handleTouchEnd);
- },
- scrollList: function scrollList(y) {
- var currentItem = document.elementFromPoint(this.navOffsetX, y);
- if (!currentItem || !currentItem.classList.contains('mint-indexlist-navitem')) {
- return;
- }
- this.currentIndicator = currentItem.innerText;
- var targets = this.sections.filter(function (section) { return section.index === currentItem.innerText; });
- var targetDOM;
- if (targets.length > 0) {
- targetDOM = targets[0].$el;
- this.$refs.content.scrollTop = targetDOM.getBoundingClientRect().top - this.firstSection.getBoundingClientRect().top;
- }
- }
- },
- mounted: function mounted() {
- var this$1 = this;
- if (!this.currentHeight) {
- window.scrollTo(0, 0);
- requestAnimationFrame(function (){
- this$1.currentHeight = document.documentElement.clientHeight - this$1.$refs.content.getBoundingClientRect().top;
- });
- }
- this.init();
- }
- };
- /***/ },
- /* 25 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ exports["default"] = {
- name: 'mt-index-section',
- props: {
- index: {
- type: String,
- required: true
- }
- },
- mounted: function mounted() {
- this.$parent.sections.push(this);
- },
- beforeDestroy: function beforeDestroy() {
- var index = this.$parent.sections.indexOf(this);
- if (index > -1) {
- this.$parent.sections.splice(index, 1);
- }
- }
- };
- /***/ },
- /* 26 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_index_js__ = __webpack_require__(9);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- if (false) {
- require('mint-ui/packages/spinner/style.css');
- }
- /* harmony default export */ exports["default"] = {
- data: function data() {
- return {
- visible: false
- };
- },
- components: {
- Spinner: __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_index_js__["a" /* default */]
- },
- computed: {
- convertedSpinnerType: function convertedSpinnerType() {
- switch (this.spinnerType) {
- case 'double-bounce':
- return 1;
- case 'triple-bounce':
- return 2;
- case 'fading-circle':
- return 3;
- default:
- return 0;
- }
- }
- },
- props: {
- text: String,
- spinnerType: {
- type: String,
- default: 'snake'
- }
- }
- };
- /***/ },
- /* 27 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_src_spinner_fading_circle_vue__ = __webpack_require__(13);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_src_spinner_fading_circle_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_src_spinner_fading_circle_vue__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ exports["default"] = {
- name: 'mt-loadmore',
- components: {
- 'spinner': __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_src_spinner_fading_circle_vue___default.a
- },
- props: {
- maxDistance: {
- type: Number,
- default: 0
- },
- autoFill: {
- type: Boolean,
- default: true
- },
- distanceIndex: {
- type: Number,
- default: 2
- },
- topPullText: {
- type: String,
- default: '下拉刷新'
- },
- topDropText: {
- type: String,
- default: '释放更新'
- },
- topLoadingText: {
- type: String,
- default: '加载中...'
- },
- topDistance: {
- type: Number,
- default: 70
- },
- topMethod: {
- type: Function
- },
- bottomPullText: {
- type: String,
- default: '上拉刷新'
- },
- bottomDropText: {
- type: String,
- default: '释放更新'
- },
- bottomLoadingText: {
- type: String,
- default: '加载中...'
- },
- bottomDistance: {
- type: Number,
- default: 70
- },
- bottomMethod: {
- type: Function
- },
- bottomAllLoaded: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- translate: 0,
- scrollEventTarget: null,
- containerFilled: false,
- topText: '',
- topDropped: false,
- bottomText: '',
- bottomDropped: false,
- bottomReached: false,
- direction: '',
- startY: 0,
- startScrollTop: 0,
- currentY: 0,
- topStatus: '',
- bottomStatus: ''
- };
- },
- computed: {
- transform: function transform() {
- return this.translate === 0 ? null : 'translate3d(0, ' + this.translate + 'px, 0)';
- }
- },
- watch: {
- topStatus: function topStatus(val) {
- this.$emit('top-status-change', val);
- switch (val) {
- case 'pull':
- this.topText = this.topPullText;
- break;
- case 'drop':
- this.topText = this.topDropText;
- break;
- case 'loading':
- this.topText = this.topLoadingText;
- break;
- }
- },
- bottomStatus: function bottomStatus(val) {
- this.$emit('bottom-status-change', val);
- switch (val) {
- case 'pull':
- this.bottomText = this.bottomPullText;
- break;
- case 'drop':
- this.bottomText = this.bottomDropText;
- break;
- case 'loading':
- this.bottomText = this.bottomLoadingText;
- break;
- }
- }
- },
- methods: {
- onTopLoaded: function onTopLoaded() {
- var this$1 = this;
- this.translate = 0;
- setTimeout(function () {
- this$1.topStatus = 'pull';
- }, 200);
- },
- onBottomLoaded: function onBottomLoaded() {
- var this$1 = this;
- this.bottomStatus = 'pull';
- this.bottomDropped = false;
- this.$nextTick(function () {
- if (this$1.scrollEventTarget === window) {
- document.body.scrollTop += 50;
- } else {
- this$1.scrollEventTarget.scrollTop += 50;
- }
- this$1.translate = 0;
- });
- if (!this.bottomAllLoaded && !this.containerFilled) {
- this.fillContainer();
- }
- },
- getScrollEventTarget: function getScrollEventTarget(element) {
- var currentNode = element;
- while (currentNode && currentNode.tagName !== 'HTML' &&
- currentNode.tagName !== 'BODY' && currentNode.nodeType === 1) {
- var overflowY = document.defaultView.getComputedStyle(currentNode).overflowY;
- if (overflowY === 'scroll' || overflowY === 'auto') {
- return currentNode;
- }
- currentNode = currentNode.parentNode;
- }
- return window;
- },
- getScrollTop: function getScrollTop(element) {
- if (element === window) {
- return Math.max(window.pageYOffset || 0, document.documentElement.scrollTop);
- } else {
- return element.scrollTop;
- }
- },
- bindTouchEvents: function bindTouchEvents() {
- this.$el.addEventListener('touchstart', this.handleTouchStart);
- this.$el.addEventListener('touchmove', this.handleTouchMove);
- this.$el.addEventListener('touchend', this.handleTouchEnd);
- },
- init: function init() {
- this.topStatus = 'pull';
- this.bottomStatus = 'pull';
- this.topText = this.topPullText;
- this.scrollEventTarget = this.getScrollEventTarget(this.$el);
- if (typeof this.bottomMethod === 'function') {
- this.fillContainer();
- this.bindTouchEvents();
- }
- if (typeof this.topMethod === 'function') {
- this.bindTouchEvents();
- }
- },
- fillContainer: function fillContainer() {
- var this$1 = this;
- if (this.autoFill) {
- this.$nextTick(function () {
- if (this$1.scrollEventTarget === window) {
- this$1.containerFilled = this$1.$el.getBoundingClientRect().bottom >=
- document.documentElement.getBoundingClientRect().bottom;
- } else {
- this$1.containerFilled = this$1.$el.getBoundingClientRect().bottom >=
- this$1.scrollEventTarget.getBoundingClientRect().bottom;
- }
- if (!this$1.containerFilled) {
- this$1.bottomStatus = 'loading';
- this$1.bottomMethod();
- }
- });
- }
- },
- checkBottomReached: function checkBottomReached() {
- if (this.scrollEventTarget === window) {
- return document.body.scrollTop + document.documentElement.clientHeight >= document.body.scrollHeight;
- } else {
- return this.$el.getBoundingClientRect().bottom <= this.scrollEventTarget.getBoundingClientRect().bottom + 1;
- }
- },
- handleTouchStart: function handleTouchStart(event) {
- this.startY = event.touches[0].clientY;
- this.startScrollTop = this.getScrollTop(this.scrollEventTarget);
- this.bottomReached = false;
- if (this.topStatus !== 'loading') {
- this.topStatus = 'pull';
- this.topDropped = false;
- }
- if (this.bottomStatus !== 'loading') {
- this.bottomStatus = 'pull';
- this.bottomDropped = false;
- }
- },
- handleTouchMove: function handleTouchMove(event) {
- if (this.startY < this.$el.getBoundingClientRect().top && this.startY > this.$el.getBoundingClientRect().bottom) {
- return;
- }
- this.currentY = event.touches[0].clientY;
- var distance = (this.currentY - this.startY) / this.distanceIndex;
- this.direction = distance > 0 ? 'down' : 'up';
- if (typeof this.topMethod === 'function' && this.direction === 'down' &&
- this.getScrollTop(this.scrollEventTarget) === 0 && this.topStatus !== 'loading') {
- event.preventDefault();
- event.stopPropagation();
- if (this.maxDistance > 0) {
- this.translate = distance <= this.maxDistance ? distance - this.startScrollTop : this.translate;
- } else {
- this.translate = distance - this.startScrollTop;
- }
- if (this.translate < 0) {
- this.translate = 0;
- }
- this.topStatus = this.translate >= this.topDistance ? 'drop' : 'pull';
- }
- if (this.direction === 'up') {
- this.bottomReached = this.bottomReached || this.checkBottomReached();
- }
- if (typeof this.bottomMethod === 'function' && this.direction === 'up' &&
- this.bottomReached && this.bottomStatus !== 'loading' && !this.bottomAllLoaded) {
- event.preventDefault();
- event.stopPropagation();
- if (this.maxDistance > 0) {
- this.translate = Math.abs(distance) <= this.maxDistance
- ? this.getScrollTop(this.scrollEventTarget) - this.startScrollTop + distance : this.translate;
- } else {
- this.translate = this.getScrollTop(this.scrollEventTarget) - this.startScrollTop + distance;
- }
- if (this.translate > 0) {
- this.translate = 0;
- }
- this.bottomStatus = -this.translate >= this.bottomDistance ? 'drop' : 'pull';
- }
- this.$emit('translate-change', this.translate);
- },
- handleTouchEnd: function handleTouchEnd() {
- if (this.direction === 'down' && this.getScrollTop(this.scrollEventTarget) === 0 && this.translate > 0) {
- this.topDropped = true;
- if (this.topStatus === 'drop') {
- this.translate = '50';
- this.topStatus = 'loading';
- this.topMethod();
- } else {
- this.translate = '0';
- this.topStatus = 'pull';
- }
- }
- if (this.direction === 'up' && this.bottomReached && this.translate < 0) {
- this.bottomDropped = true;
- this.bottomReached = false;
- if (this.bottomStatus === 'drop') {
- this.translate = '-50';
- this.bottomStatus = 'loading';
- this.bottomMethod();
- } else {
- this.translate = '0';
- this.bottomStatus = 'pull';
- }
- }
- this.$emit('translate-change', this.translate);
- this.direction = '';
- }
- },
- mounted: function mounted() {
- this.init();
- }
- };
- /***/ },
- /* 28 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__ = __webpack_require__(6);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var CONFIRM_TEXT = '确定';
- var CANCEL_TEXT = '取消';
- /* harmony default export */ exports["default"] = {
- mixins: [ __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__["a" /* default */] ],
- props: {
- modal: {
- default: true
- },
- showClose: {
- type: Boolean,
- default: true
- },
- lockScroll: {
- type: Boolean,
- default: false
- },
- closeOnClickModal: {
- default: true
- },
- closeOnPressEscape: {
- default: true
- },
- inputType: {
- type: String,
- default: 'text'
- }
- },
- computed: {
- confirmButtonClasses: function confirmButtonClasses() {
- var classes = 'mint-msgbox-btn mint-msgbox-confirm ' + this.confirmButtonClass;
- if (this.confirmButtonHighlight) {
- classes += ' mint-msgbox-confirm-highlight';
- }
- return classes;
- },
- cancelButtonClasses: function cancelButtonClasses() {
- var classes = 'mint-msgbox-btn mint-msgbox-cancel ' + this.cancelButtonClass;
- if (this.cancelButtonHighlight) {
- classes += ' mint-msgbox-cancel-highlight';
- }
- return classes;
- }
- },
- methods: {
- doClose: function doClose() {
- var this$1 = this;
- this.value = false;
- this._closing = true;
- this.onClose && this.onClose();
- setTimeout(function () {
- if (this$1.modal && this$1.bodyOverflow !== 'hidden') {
- document.body.style.overflow = this$1.bodyOverflow;
- document.body.style.paddingRight = this$1.bodyPaddingRight;
- }
- this$1.bodyOverflow = null;
- this$1.bodyPaddingRight = null;
- }, 200);
- this.opened = false;
- if (!this.transition) {
- this.doAfterClose();
- }
- },
- handleAction: function handleAction(action) {
- if (this.$type === 'prompt' && action === 'confirm' && !this.validate()) {
- return;
- }
- var callback = this.callback;
- this.value = false;
- callback(action);
- },
- validate: function validate() {
- if (this.$type === 'prompt') {
- var inputPattern = this.inputPattern;
- if (inputPattern && !inputPattern.test(this.inputValue || '')) {
- this.editorErrorMessage = this.inputErrorMessage || '输入的数据不合法!';
- this.$refs.input.classList.add('invalid');
- return false;
- }
- var inputValidator = this.inputValidator;
- if (typeof inputValidator === 'function') {
- var validateResult = inputValidator(this.inputValue);
- if (validateResult === false) {
- this.editorErrorMessage = this.inputErrorMessage || '输入的数据不合法!';
- this.$refs.input.classList.add('invalid');
- return false;
- }
- if (typeof validateResult === 'string') {
- this.editorErrorMessage = validateResult;
- return false;
- }
- }
- }
- this.editorErrorMessage = '';
- this.$refs.input.classList.remove('invalid');
- return true;
- },
- handleInputType: function handleInputType(val) {
- if (val === 'range' || !this.$refs.input) return;
- this.$refs.input.type = val;
- }
- },
- watch: {
- inputValue: function inputValue() {
- if (this.$type === 'prompt') {
- this.validate();
- }
- },
- value: function value(val) {
- var this$1 = this;
- this.handleInputType(this.inputType);
- if (val && this.$type === 'prompt') {
- setTimeout(function () {
- if (this$1.$refs.input) {
- this$1.$refs.input.focus();
- }
- }, 500);
- }
- },
- inputType: function inputType(val) {
- this.handleInputType(val);
- }
- },
- data: function data() {
- return {
- title: '',
- message: '',
- type: '',
- showInput: false,
- inputValue: null,
- inputPlaceholder: '',
- inputPattern: null,
- inputValidator: null,
- inputErrorMessage: '',
- showConfirmButton: true,
- showCancelButton: false,
- confirmButtonText: CONFIRM_TEXT,
- cancelButtonText: CANCEL_TEXT,
- confirmButtonClass: '',
- confirmButtonDisabled: false,
- cancelButtonClass: '',
- editorErrorMessage: null,
- callback: null
- };
- }
- };
- /***/ },
- /* 29 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- /**
- * mt-navbar
- * @module components/navbar
- * @desc 顶部 tab,依赖 tab-item
- *
- * @param {boolean} [fixed=false] - 固定底部
- * @param {*} selected - 返回 item component 传入的 value
- *
- * @example
- * <mt-navbar :selected.sync="selected">
- * <mt-tab-item value="订单">
- * <span slot="label">订单</span>
- * </mt-tab-item>
- * </mt-navbar>
- *
- * <mt-navbar :selected.sync="selected" fixed>
- * <mt-tab-item :value="['传入数组', '也是可以的']">
- * <span slot="label">订单</span>
- * </mt-tab-item>
- * </mt-navbar>
- *
- */
- /* harmony default export */ exports["default"] = {
- name: 'mt-navbar',
- props: {
- fixed: Boolean,
- value: {}
- }
- };
- /***/ },
- /* 30 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ exports["default"] = {
- name: 'mt-palette-button',
- data: function() {
- return {
- transforming: false, // 是否正在执行动画
- expanded: false // 是否已经展开子按钮
- };
- },
- props: {
- content: {
- type: String,
- default: ''
- },
- offset: {
- type: Number, // 扇面偏移角,默认是四分之π,配合默认方向lt
- default: Math.PI / 4
- },
- direction: {
- type: String,
- default: 'lt' // lt t rt this.radius rb b lb l 取值有8个方向,左上、上、右上、右、右下、下、左下、左,默认为左上
- },
- radius: {
- type: Number,
- default: 90
- },
- mainButtonStyle: {
- type: String, // 应用到 mint-main-button 上的 class
- default: ''
- }
- },
- methods: {
- toggle: function toggle(event) {
- if (!this.transforming) {
- if (this.expanded) {
- this.collapse(event);
- } else {
- this.expand(event);
- }
- }
- },
- onMainAnimationEnd: function onMainAnimationEnd(event) {
- this.transforming = false;
- this.$emit('expanded');
- },
- expand: function expand(event) {
- this.expanded = true;
- this.transforming = true;
- this.$emit('expand', event);
- },
- collapse: function collapse(event) {
- this.expanded = false;
- this.$emit('collapse', event);
- }
- },
- mounted: function mounted() {
- var this$1 = this;
- this.slotChildren = [];
- for (var i = 0; i < this.$slots.default.length; i++) {
- if (this$1.$slots.default[i].elm.nodeType !== 3) {
- this$1.slotChildren.push(this$1.$slots.default[i]);
- }
- }
- var css = '';
- var direction_arc = Math.PI * (3 + Math.max(['lt', 't', 'rt', 'r', 'rb', 'b', 'lb', 'l'].indexOf(this.direction), 0)) / 4;
- for (var i$1 = 0; i$1 < this.slotChildren.length; i$1++) {
- var arc = (Math.PI - this$1.offset * 2) / (this$1.slotChildren.length - 1) * i$1 + this$1.offset + direction_arc;
- var x = (Math.cos(arc) * this$1.radius).toFixed(2);
- var y = (Math.sin(arc) * this$1.radius).toFixed(2);
- var item_css = '.expand .palette-button-' + this$1._uid + '-sub-' + i$1 + '{transform:translate(' + x + 'px,' + y + 'px) rotate(720deg);transition-delay:' + 0.03 * i$1 + 's}';
- css += item_css;
- this$1.slotChildren[i$1].elm.className += (' palette-button-' + this$1._uid + '-sub-' + i$1);
- }
- this.styleNode = document.createElement('style');
- this.styleNode.type = 'text/css';
- this.styleNode.rel = 'stylesheet';
- this.styleNode.title = 'palette button style';
- this.styleNode.appendChild(document.createTextNode(css));
- document.getElementsByTagName('head')[0].appendChild(this.styleNode);
- },
- destroyed: function destroyed() {
- if (this.styleNode) {
- this.styleNode.parentNode.removeChild(this.styleNode);
- }
- }
- };
- /***/ },
- /* 31 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__draggable__ = __webpack_require__(73);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__translate__ = __webpack_require__(74);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_dom__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_mint_ui_src_mixins_emitter__ = __webpack_require__(89);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_vue__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_vue__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- if (!__WEBPACK_IMPORTED_MODULE_4_vue___default.a.prototype.$isServer) {
- __webpack_require__(200);
- }
- var rotateElement = function(element, angle) {
- if (!element) return;
- var transformProperty = __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].transformProperty;
- element.style[transformProperty] = element.style[transformProperty].replace(/rotateX\(.+?deg\)/gi, '') + " rotateX(" + angle + "deg)";
- };
- var ITEM_HEIGHT = 36;
- var VISIBLE_ITEMS_ANGLE_MAP = {
- 3: -45,
- 5: -20,
- 7: -15
- };
- /* harmony default export */ exports["default"] = {
- name: 'picker-slot',
- props: {
- values: {
- type: Array,
- default: function default$1() {
- return [];
- }
- },
- value: {},
- visibleItemCount: {
- type: Number,
- default: 5
- },
- valueKey: String,
- rotateEffect: {
- type: Boolean,
- default: false
- },
- divider: {
- type: Boolean,
- default: false
- },
- textAlign: {
- type: String,
- default: 'center'
- },
- flex: {},
- className: {},
- content: {},
- itemHeight: {
- type: Number,
- default: ITEM_HEIGHT
- },
- defaultIndex: {
- type: Number,
- default: 0,
- require: false
- }
- },
- data: function data() {
- return {
- currentValue: this.value,
- mutatingValues: this.values,
- dragging: false,
- animationFrameId: null
- };
- },
- mixins: [__WEBPACK_IMPORTED_MODULE_3_mint_ui_src_mixins_emitter__["a" /* default */]],
- computed: {
- flexStyle: function flexStyle() {
- return {
- 'flex': this.flex,
- '-webkit-box-flex': this.flex,
- '-moz-box-flex': this.flex,
- '-ms-flex': this.flex
- };
- },
- classNames: function classNames() {
- var PREFIX = 'picker-slot-';
- var resultArray = [];
- if (this.rotateEffect) {
- resultArray.push(PREFIX + 'absolute');
- }
- var textAlign = this.textAlign || 'center';
- resultArray.push(PREFIX + textAlign);
- if (this.divider) {
- resultArray.push(PREFIX + 'divider');
- }
- if (this.className) {
- resultArray.push(this.className);
- }
- return resultArray.join(' ');
- },
- contentHeight: function contentHeight() {
- return this.itemHeight * this.visibleItemCount;
- },
- valueIndex: function valueIndex() {
- var this$1 = this;
- var valueKey = this.valueKey;
- if (this.currentValue instanceof Object) {
- for (var i = 0, len = this.mutatingValues.length; i < len ; i++) {
- if (this$1.currentValue[valueKey] === this$1.mutatingValues[i][valueKey]) {
- return i;
- }
- }
- return -1;
- } else {
- return this.mutatingValues.indexOf(this.currentValue);
- }
- },
- dragRange: function dragRange() {
- var values = this.mutatingValues;
- var visibleItemCount = this.visibleItemCount;
- var itemHeight = this.itemHeight;
- return [ -itemHeight * (values.length - Math.ceil(visibleItemCount / 2)), itemHeight * Math.floor(visibleItemCount / 2) ];
- },
- minTranslateY: function minTranslateY() {
- return this.itemHeight * (Math.ceil(this.visibleItemCount / 2) - this.mutatingValues.length);
- },
- maxTranslateY: function maxTranslateY() {
- return this.itemHeight * Math.floor(this.visibleItemCount / 2);
- }
- },
- methods: {
- value2Translate: function value2Translate(value) {
- var values = this.mutatingValues;
- var valueIndex = values.indexOf(value);
- var offset = Math.floor(this.visibleItemCount / 2);
- var itemHeight = this.itemHeight;
- if (valueIndex !== -1) {
- return (valueIndex - offset) * -itemHeight;
- }
- },
- translate2Value: function translate2Value(translate) {
- var itemHeight = this.itemHeight;
- translate = Math.round(translate / itemHeight) * itemHeight;
- var index = -(translate - Math.floor(this.visibleItemCount / 2) * itemHeight) / itemHeight;
- return this.mutatingValues[index];
- },
- updateRotate: function(currentTranslate, pickerItems) {
- var this$1 = this;
- if (this.divider) return;
- var dragRange = this.dragRange;
- var wrapper = this.$refs.wrapper;
- if (!pickerItems) {
- pickerItems = wrapper.querySelectorAll('.picker-item');
- }
- if (currentTranslate === undefined) {
- currentTranslate = __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].getElementTranslate(wrapper).top;
- }
- var itemsFit = Math.ceil(this.visibleItemCount / 2);
- var angleUnit = VISIBLE_ITEMS_ANGLE_MAP[this.visibleItemCount] || -20;
- [].forEach.call(pickerItems, function (item, index) {
- var itemOffsetTop = index * this$1.itemHeight;
- var translateOffset = dragRange[1] - currentTranslate;
- var itemOffset = itemOffsetTop - translateOffset;
- var percentage = itemOffset / this$1.itemHeight;
- var angle = angleUnit * percentage;
- if (angle > 180) angle = 180;
- if (angle < -180) angle = -180;
- rotateElement(item, angle);
- if (Math.abs(percentage) > itemsFit) {
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_dom__["a" /* addClass */])(item, 'picker-item-far');
- } else {
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_dom__["b" /* removeClass */])(item, 'picker-item-far');
- }
- });
- },
- planUpdateRotate: function() {
- var this$1 = this;
- var el = this.$refs.wrapper;
- cancelAnimationFrame(this.animationFrameId);
- this.animationFrameId = requestAnimationFrame(function () {
- this$1.updateRotate();
- });
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_dom__["c" /* once */])(el, __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].transitionEndProperty, function () {
- cancelAnimationFrame(this$1.animationFrameId);
- this$1.animationFrameId = null;
- });
- },
- initEvents: function initEvents() {
- var this$1 = this;
- var el = this.$refs.wrapper;
- var dragState = {};
- var velocityTranslate, prevTranslate, pickerItems;
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__draggable__["a" /* default */])(el, {
- start: function (event) {
- cancelAnimationFrame(this$1.animationFrameId);
- this$1.animationFrameId = null;
- dragState = {
- range: this$1.dragRange,
- start: new Date(),
- startLeft: event.pageX,
- startTop: event.pageY,
- startTranslateTop: __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].getElementTranslate(el).top
- };
- pickerItems = el.querySelectorAll('.picker-item');
- },
- drag: function (event) {
- this$1.dragging = true;
- dragState.left = event.pageX;
- dragState.top = event.pageY;
- var deltaY = dragState.top - dragState.startTop;
- var translate = dragState.startTranslateTop + deltaY;
- __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].translateElement(el, null, translate);
- velocityTranslate = translate - prevTranslate || translate;
- prevTranslate = translate;
- if (this$1.rotateEffect) {
- this$1.updateRotate(prevTranslate, pickerItems);
- }
- },
- end: function (event) {
- this$1.dragging = false;
- var momentumRatio = 7;
- var currentTranslate = __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].getElementTranslate(el).top;
- var duration = new Date() - dragState.start;
- var distance = Math.abs(dragState.startTranslateTop - currentTranslate);
- var itemHeight = this$1.itemHeight;
- var visibleItemCount = this$1.visibleItemCount;
- var rect, offset;
- if (distance < 6) {
- rect = this$1.$el.getBoundingClientRect();
- offset = Math.floor((event.clientY - (rect.top + (visibleItemCount - 1) * itemHeight / 2)) / itemHeight) * itemHeight;
- if (offset > this$1.maxTranslateY) {
- offset = this$1.maxTranslateY;
- }
- velocityTranslate = 0;
- currentTranslate -= offset;
- }
- var momentumTranslate;
- if (duration < 300) {
- momentumTranslate = currentTranslate + velocityTranslate * momentumRatio;
- }
- var dragRange = dragState.range;
- this$1.$nextTick(function () {
- var translate;
- if (momentumTranslate) {
- translate = Math.round(momentumTranslate / itemHeight) * itemHeight;
- } else {
- translate = Math.round(currentTranslate / itemHeight) * itemHeight;
- }
- translate = Math.max(Math.min(translate, dragRange[1]), dragRange[0]);
- __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].translateElement(el, null, translate);
- this$1.currentValue = this$1.translate2Value(translate);
- if (this$1.rotateEffect) {
- this$1.planUpdateRotate();
- }
- });
- dragState = {};
- }
- });
- },
- doOnValueChange: function doOnValueChange() {
- var value = this.currentValue;
- var wrapper = this.$refs.wrapper;
- __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].translateElement(wrapper, null, this.value2Translate(value));
- },
- doOnValuesChange: function doOnValuesChange() {
- var this$1 = this;
- var el = this.$el;
- var items = el.querySelectorAll('.picker-item');
- [].forEach.call(items, function (item, index) {
- __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].translateElement(item, null, this$1.itemHeight * index);
- });
- if (this.rotateEffect) {
- this.planUpdateRotate();
- }
- }
- },
- mounted: function mounted() {
- this.ready = true;
- if (!this.divider) {
- this.initEvents();
- this.doOnValueChange();
- }
- if (this.rotateEffect) {
- this.doOnValuesChange();
- }
- },
- watch: {
- values: function values(val) {
- this.mutatingValues = val;
- },
- mutatingValues: function mutatingValues(val) {
- var this$1 = this;
- if (this.valueIndex === -1) {
- this.currentValue = (val || [])[0];
- }
- if (this.rotateEffect) {
- this.$nextTick(function () {
- this$1.doOnValuesChange();
- });
- }
- },
- currentValue: function currentValue(val) {
- this.doOnValueChange();
- if (this.rotateEffect) {
- this.planUpdateRotate();
- }
- this.$emit('input', val);
- this.dispatch('picker', 'slotValueChange', this);
- },
- defaultIndex: function defaultIndex(val) {
- if ((this.mutatingValues[val] !== undefined) && (this.mutatingValues.length >= val + 1)) {
- this.currentValue = this.mutatingValues[val];
- }
- }
- }
- };
- /***/ },
- /* 32 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ exports["default"] = {
- name: 'mt-picker',
- componentName: 'picker',
- props: {
- slots: {
- type: Array
- },
- showToolbar: {
- type: Boolean,
- default: false
- },
- visibleItemCount: {
- type: Number,
- default: 5
- },
- valueKey: String,
- rotateEffect: {
- type: Boolean,
- default: false
- },
- itemHeight: {
- type: Number,
- default: 36
- }
- },
- created: function created() {
- this.$on('slotValueChange', this.slotValueChange);
- this.slotValueChange();
- },
- methods: {
- slotValueChange: function slotValueChange() {
- this.$emit('change', this, this.values);
- },
- getSlot: function getSlot(slotIndex) {
- var slots = this.slots || [];
- var count = 0;
- var target;
- var children = this.$children.filter(function (child) { return child.$options.name === 'picker-slot'; });
- slots.forEach(function(slot, index) {
- if (!slot.divider) {
- if (slotIndex === count) {
- target = children[index];
- }
- count++;
- }
- });
- return target;
- },
- getSlotValue: function getSlotValue(index) {
- var slot = this.getSlot(index);
- if (slot) {
- return slot.currentValue;
- }
- return null;
- },
- setSlotValue: function setSlotValue(index, value) {
- var slot = this.getSlot(index);
- if (slot) {
- slot.currentValue = value;
- }
- },
- getSlotValues: function getSlotValues(index) {
- var slot = this.getSlot(index);
- if (slot) {
- return slot.mutatingValues;
- }
- return null;
- },
- setSlotValues: function setSlotValues(index, values) {
- var slot = this.getSlot(index);
- if (slot) {
- slot.mutatingValues = values;
- }
- },
- getValues: function getValues() {
- return this.values;
- },
- setValues: function setValues(values) {
- var this$1 = this;
- var slotCount = this.slotCount;
- values = values || [];
- if (slotCount !== values.length) {
- throw new Error('values length is not equal slot count.');
- }
- values.forEach(function (value, index) {
- this$1.setSlotValue(index, value);
- });
- }
- },
- computed: {
- values: {
- get: function get() {
- var slots = this.slots || [];
- var values = [];
- var valueIndexCount = 0;
- slots.forEach(function (slot) {
- if (!slot.divider) {
- slot.valueIndex = valueIndexCount++;
- values[slot.valueIndex] = (slot.values || [])[slot.defaultIndex || 0];
- }
- });
- return values;
- }
- },
- slotCount: function slotCount() {
- var slots = this.slots || [];
- var result = 0;
- slots.forEach(function(slot) {
- if (!slot.divider) result++;
- });
- return result;
- }
- },
- components: {
- PickerSlot: __webpack_require__(144)
- }
- };
- /***/ },
- /* 33 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__ = __webpack_require__(6);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vue__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_vue__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- if (!__WEBPACK_IMPORTED_MODULE_1_vue___default.a.prototype.$isServer) {
- __webpack_require__(12);
- }
- /* harmony default export */ exports["default"] = {
- name: 'mt-popup',
- mixins: [__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__["a" /* default */]],
- props: {
- modal: {
- default: true
- },
- modalFade: {
- default: false
- },
- lockScroll: {
- default: false
- },
- closeOnClickModal: {
- default: true
- },
- popupTransition: {
- type: String,
- default: 'popup-slide'
- },
- position: {
- type: String,
- default: ''
- }
- },
- data: function data() {
- return {
- currentValue: false,
- currentTransition: this.popupTransition
- };
- },
- watch: {
- currentValue: function currentValue(val) {
- this.$emit('input', val);
- },
- value: function value(val) {
- this.currentValue = val;
- }
- },
- beforeMount: function beforeMount() {
- if (this.popupTransition !== 'popup-fade') {
- this.currentTransition = "popup-slide-" + (this.position);
- }
- },
- mounted: function mounted() {
- if (this.value) {
- this.rendered = true;
- this.currentValue = true;
- this.open();
- }
- }
- };
- /***/ },
- /* 34 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ exports["default"] = {
- name: 'mt-progress',
- props: {
- value: Number,
- barHeight: {
- type: Number,
- default: 3
- }
- }
- };
- /***/ },
- /* 35 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__ = __webpack_require__(2);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- if (false) {
- require('mint-ui/packages/cell/style.css');
- }
- /**
- * mt-radio
- * @module components/radio
- * @desc 单选框列表,依赖 cell 组件
- *
- * @param {string[], object[]} options - 选项数组,可以传入 [{label: 'label', value: 'value', disabled: true}] 或者 ['ab', 'cd', 'ef']
- * @param {string} value - 选中值
- * @param {string} title - 标题
- * @param {string} [align=left] - checkbox 对齐位置,`left`, `right`
- *
- * @example
- * <mt-radio v-model="value" :options="['a', 'b', 'c']"></mt-radio>
- */
- /* harmony default export */ exports["default"] = {
- name: 'mt-radio',
- props: {
- title: String,
- align: String,
- options: {
- type: Array,
- required: true
- },
- value: String
- },
- data: function data() {
- return {
- currentValue: this.value
- };
- },
- watch: {
- value: function value(val) {
- this.currentValue = val;
- },
- currentValue: function currentValue(val) {
- this.$emit('input', val);
- }
- },
- components: {
- XCell: __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__["a" /* default */]
- }
- };
- /***/ },
- /* 36 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__draggable__ = __webpack_require__(78);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ exports["default"] = {
- name: 'mt-range',
- props: {
- min: {
- type: Number,
- default: 0
- },
- max: {
- type: Number,
- default: 100
- },
- step: {
- type: Number,
- default: 1
- },
- disabled: {
- type: Boolean,
- default: false
- },
- value: {
- type: Number
- },
- barHeight: {
- type: Number,
- default: 1
- }
- },
- computed: {
- progress: function progress() {
- var value = this.value;
- if (typeof value === 'undefined' || value === null) return 0;
- return Math.floor((value - this.min) / (this.max - this.min) * 100);
- }
- },
- mounted: function mounted() {
- var this$1 = this;
- var thumb = this.$refs.thumb;
- var content = this.$refs.content;
- var getThumbPosition = function () {
- var contentBox = content.getBoundingClientRect();
- var thumbBox = thumb.getBoundingClientRect();
- return {
- left: thumbBox.left - contentBox.left,
- top: thumbBox.top - contentBox.top,
- thumbBoxLeft: thumbBox.left
- };
- };
- var dragState = {};
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__draggable__["a" /* default */])(thumb, {
- start: function (event) {
- if (this$1.disabled) return;
- var position = getThumbPosition();
- var thumbClickDetalX = event.clientX - position.thumbBoxLeft;
- dragState = {
- thumbStartLeft: position.left,
- thumbStartTop: position.top,
- thumbClickDetalX: thumbClickDetalX
- };
- },
- drag: function (event) {
- if (this$1.disabled) return;
- var contentBox = content.getBoundingClientRect();
- var deltaX = event.pageX - contentBox.left - dragState.thumbStartLeft - dragState.thumbClickDetalX;
- var stepCount = Math.ceil((this$1.max - this$1.min) / this$1.step);
- var newPosition = (dragState.thumbStartLeft + deltaX) - (dragState.thumbStartLeft + deltaX) % (contentBox.width / stepCount);
- var newProgress = newPosition / contentBox.width;
- if (newProgress < 0) {
- newProgress = 0;
- } else if (newProgress > 1) {
- newProgress = 1;
- }
- this$1.$emit('input', Math.round(this$1.min + newProgress * (this$1.max - this$1.min)));
- },
- end: function () {
- if (this$1.disabled) return;
- this$1.$emit('change', this$1.value);
- dragState = {};
- }
- });
- }
- };
- /***/ },
- /* 37 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__ = __webpack_require__(2);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- if (false) {
- require('mint-ui/packages/cell/style.css');
- }
- /**
- * mt-search
- * @module components/search
- * @desc 搜索框
- * @param {string} value - 绑定值
- * @param {string} [cancel-text=取消] - 取消按钮文字
- * @param {string} [placeholder=取消] - 搜索框占位内容
- * @param {boolean} [autofocus=false] - 自动 focus
- * @param {boolean} [show=false] - 始终显示列表
- * @param {string[]} [result] - 结果列表
- * @param {slot} 结果列表
- *
- * @example
- * <mt-search :value.sync="value" :result.sync="result"></mt-search>
- * <mt-search :value.sync="value">
- * <mt-cell v-for="item in result" :title="item"></mt-cell>
- * </mt-search>
- */
- /* harmony default export */ exports["default"] = {
- name: 'mt-search',
- data: function data() {
- return {
- visible: false,
- currentValue: this.value
- };
- },
- components: { XCell: __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__["a" /* default */] },
- watch: {
- currentValue: function currentValue(val) {
- this.$emit('input', val);
- },
- value: function value(val) {
- this.currentValue = val;
- }
- },
- props: {
- value: String,
- autofocus: Boolean,
- show: Boolean,
- cancelText: {
- default: '取消'
- },
- placeholder: {
- default: '搜索'
- },
- result: Array
- },
- mounted: function mounted() {
- this.autofocus && this.$refs.input.focus();
- }
- };
- /***/ },
- /* 38 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- var SPINNERS = [
- 'snake',
- 'double-bounce',
- 'triple-bounce',
- 'fading-circle'
- ];
- var parseSpinner = function(index) {
- if ({}.toString.call(index) === '[object Number]') {
- if (SPINNERS.length <= index) {
- console.warn(("'" + index + "' spinner not found, use the default spinner."));
- index = 0;
- }
- return SPINNERS[index];
- }
- if (SPINNERS.indexOf(index) === -1) {
- console.warn(("'" + index + "' spinner not found, use the default spinner."));
- index = SPINNERS[0];
- }
- return index;
- };
- /**
- * mt-spinner
- * @module components/spinner
- * @desc 加载动画
- * @param {(string|number)} [type=snake] - 显示类型,传入类型名或者类型 id,可选 `snake`, `dobule-bounce`, `triple-bounce`, `fading-circle`
- * @param {number} size - 尺寸
- * @param {string} color - 颜色
- *
- * @example
- * <mt-spinner type="snake"></mt-spinner>
- *
- * <!-- double-bounce -->
- * <mt-spinner :type="1"></mt-spinner>
- *
- * <!-- default snake -->
- * <mt-spinner :size="30" color="#999"></mt-spinner>
- */
- /* harmony default export */ exports["default"] = {
- name: 'mt-spinner',
- computed: {
- spinner: function spinner() {
- return ("spinner-" + (parseSpinner(this.type)));
- }
- },
- components: {
- SpinnerSnake: __webpack_require__(153),
- SpinnerDoubleBounce: __webpack_require__(152),
- SpinnerTripleBounce: __webpack_require__(154),
- SpinnerFadingCircle: __webpack_require__(13)
- },
- props: {
- type: {
- default: 0
- },
- size: {
- type: Number,
- default: 28
- },
- color: {
- type: String,
- default: '#ccc'
- }
- }
- };
- /***/ },
- /* 39 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony default export */ exports["default"] = {
- computed: {
- spinnerColor: function spinnerColor() {
- return this.color || this.$parent.color || '#ccc';
- },
- spinnerSize: function spinnerSize() {
- return (this.size || this.$parent.size || 28) + 'px';
- }
- },
- props: {
- size: Number,
- color: String
- }
- };
- /***/ },
- /* 40 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(5);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ exports["default"] = {
- name: 'double-bounce',
- mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a]
- };
- /***/ },
- /* 41 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(5);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ exports["default"] = {
- name: 'fading-circle',
- mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a],
- created: function created() {
- if (this.$isServer) return;
- this.styleNode = document.createElement('style');
- var css = ".circle-color-" + (this._uid) + " > div::before { background-color: " + (this.spinnerColor) + "; }";
- this.styleNode.type = 'text/css';
- this.styleNode.rel = 'stylesheet';
- this.styleNode.title = 'fading circle style';
- document.getElementsByTagName('head')[0].appendChild(this.styleNode);
- this.styleNode.appendChild(document.createTextNode(css));
- },
- destroyed: function destroyed() {
- if (this.styleNode) {
- this.styleNode.parentNode.removeChild(this.styleNode);
- }
- }
- };
- /***/ },
- /* 42 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(5);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ exports["default"] = {
- name: 'snake',
- mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a]
- };
- /***/ },
- /* 43 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(5);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__);
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ exports["default"] = {
- name: 'triple-bounce',
- mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a],
- computed: {
- spinnerSize: function spinnerSize() {
- return ((this.size || this.$parent.size || 28) / 3) + 'px';
- },
- bounceStyle: function bounceStyle() {
- return {
- width: this.spinnerSize,
- height: this.spinnerSize,
- backgroundColor: this.spinnerColor
- };
- }
- }
- };
- /***/ },
- /* 44 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- /* harmony default export */ exports["default"] = {
- name: 'mt-swipe-item',
- mounted: function mounted() {
- this.$parent && this.$parent.swipeItemCreated(this);
- },
- destroyed: function destroyed() {
- this.$parent && this.$parent.swipeItemDestroyed(this);
- }
- };
- /***/ },
- /* 45 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__ = __webpack_require__(3);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ exports["default"] = {
- name: 'mt-swipe',
- created: function created() {
- this.dragState = {};
- },
- data: function data() {
- return {
- ready: false,
- dragging: false,
- userScrolling: false,
- animating: false,
- index: 0,
- pages: [],
- timer: null,
- reInitTimer: null,
- noDrag: false,
- isDone: false
- };
- },
- props: {
- speed: {
- type: Number,
- default: 300
- },
- defaultIndex: {
- type: Number,
- default: 0
- },
- auto: {
- type: Number,
- default: 3000
- },
- continuous: {
- type: Boolean,
- default: true
- },
- showIndicators: {
- type: Boolean,
- default: true
- },
- noDragWhenSingle: {
- type: Boolean,
- default: true
- },
- prevent: {
- type: Boolean,
- default: false
- },
- stopPropagation: {
- type: Boolean,
- default: false
- }
- },
- watch: {
- index: function index(newIndex) {
- this.$emit('change', newIndex);
- }
- },
- methods: {
- swipeItemCreated: function swipeItemCreated() {
- var this$1 = this;
- if (!this.ready) return;
- clearTimeout(this.reInitTimer);
- this.reInitTimer = setTimeout(function () {
- this$1.reInitPages();
- }, 100);
- },
- swipeItemDestroyed: function swipeItemDestroyed() {
- var this$1 = this;
- if (!this.ready) return;
- clearTimeout(this.reInitTimer);
- this.reInitTimer = setTimeout(function () {
- this$1.reInitPages();
- }, 100);
- },
- rafTranslate: function rafTranslate(element, initOffset, offset, callback, nextElement) {
- var ALPHA = 0.88;
- this.animating = true;
- var _offset = initOffset;
- var raf = 0;
- function animationLoop() {
- if (Math.abs(_offset - offset) < 0.5) {
- this.animating = false;
- _offset = offset;
- element.style.webkitTransform = '';
- if (nextElement) {
- nextElement.style.webkitTransform = '';
- }
- cancelAnimationFrame(raf);
- if (callback) {
- callback();
- }
- return;
- }
- _offset = ALPHA * _offset + (1.0 - ALPHA) * offset;
- element.style.webkitTransform = "translate3d(" + _offset + "px, 0, 0)";
- if (nextElement) {
- nextElement.style.webkitTransform = "translate3d(" + (_offset - offset) + "px, 0, 0)";
- }
- raf = requestAnimationFrame(animationLoop.bind(this));
- }
- animationLoop.call(this);
- },
- translate: function translate(element, offset, speed, callback) {
- var arguments$1 = arguments;
- var this$1 = this;
- if (speed) {
- this.animating = true;
- element.style.webkitTransition = '-webkit-transform ' + speed + 'ms ease-in-out';
- setTimeout(function () {
- element.style.webkitTransform = "translate3d(" + offset + "px, 0, 0)";
- }, 50);
- var called = false;
- var transitionEndCallback = function () {
- if (called) return;
- called = true;
- this$1.animating = false;
- element.style.webkitTransition = '';
- element.style.webkitTransform = '';
- if (callback) {
- callback.apply(this$1, arguments$1);
- }
- };
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["c" /* once */])(element, 'webkitTransitionEnd', transitionEndCallback);
- setTimeout(transitionEndCallback, speed + 100); // webkitTransitionEnd maybe not fire on lower version android.
- } else {
- element.style.webkitTransition = '';
- element.style.webkitTransform = "translate3d(" + offset + "px, 0, 0)";
- }
- },
- reInitPages: function reInitPages() {
- var children = this.$children;
- this.noDrag = children.length === 1 && this.noDragWhenSingle;
- var pages = [];
- var intDefaultIndex = Math.floor(this.defaultIndex);
- var defaultIndex = (intDefaultIndex >= 0 && intDefaultIndex < children.length) ? intDefaultIndex : 0;
- this.index = defaultIndex;
- children.forEach(function(child, index) {
- pages.push(child.$el);
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["b" /* removeClass */])(child.$el, 'is-active');
- if (index === defaultIndex) {
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["a" /* addClass */])(child.$el, 'is-active');
- }
- });
- this.pages = pages;
- },
- doAnimate: function doAnimate(towards, options) {
- var this$1 = this;
- if (this.$children.length === 0) return;
- if (!options && this.$children.length < 2) return;
- var prevPage, nextPage, currentPage, pageWidth, offsetLeft, speedX;
- var speed = this.speed || 300;
- var index = this.index;
- var pages = this.pages;
- var pageCount = pages.length;
- if (!options) {
- pageWidth = this.$el.clientWidth;
- currentPage = pages[index];
- prevPage = pages[index - 1];
- nextPage = pages[index + 1];
- if (this.continuous && pages.length > 1) {
- if (!prevPage) {
- prevPage = pages[pages.length - 1];
- }
- if (!nextPage) {
- nextPage = pages[0];
- }
- }
- if (prevPage) {
- prevPage.style.display = 'block';
- this.translate(prevPage, -pageWidth);
- }
- if (nextPage) {
- nextPage.style.display = 'block';
- this.translate(nextPage, pageWidth);
- }
- } else {
- prevPage = options.prevPage;
- currentPage = options.currentPage;
- nextPage = options.nextPage;
- pageWidth = options.pageWidth;
- offsetLeft = options.offsetLeft;
- speedX = options.speedX;
- }
- var newIndex;
- var oldPage = this.$children[index].$el;
- if (towards === 'prev') {
- if (index > 0) {
- newIndex = index - 1;
- }
- if (this.continuous && index === 0) {
- newIndex = pageCount - 1;
- }
- } else if (towards === 'next') {
- if (index < pageCount - 1) {
- newIndex = index + 1;
- }
- if (this.continuous && index === pageCount - 1) {
- newIndex = 0;
- }
- }
- var callback = function () {
- if (newIndex !== undefined) {
- var newPage = this$1.$children[newIndex].$el;
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["b" /* removeClass */])(oldPage, 'is-active');
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["a" /* addClass */])(newPage, 'is-active');
- this$1.index = newIndex;
- }
- if (this$1.isDone) {
- this$1.end();
- }
- if (prevPage) {
- prevPage.style.display = '';
- }
- if (nextPage) {
- nextPage.style.display = '';
- }
- };
- setTimeout(function () {
- if (towards === 'next') {
- this$1.isDone = true;
- this$1.before(currentPage);
- if (speedX) {
- this$1.rafTranslate(currentPage, offsetLeft, -pageWidth, callback, nextPage);
- } else {
- this$1.translate(currentPage, -pageWidth, speed, callback);
- if (nextPage) {
- this$1.translate(nextPage, 0, speed);
- }
- }
- } else if (towards === 'prev') {
- this$1.isDone = true;
- this$1.before(currentPage);
- if (speedX) {
- this$1.rafTranslate(currentPage, offsetLeft, pageWidth, callback, prevPage);
- } else {
- this$1.translate(currentPage, pageWidth, speed, callback);
- if (prevPage) {
- this$1.translate(prevPage, 0, speed);
- }
- }
- } else {
- this$1.isDone = false;
- this$1.translate(currentPage, 0, speed, callback);
- if (typeof offsetLeft !== 'undefined') {
- if (prevPage && offsetLeft > 0) {
- this$1.translate(prevPage, pageWidth * -1, speed);
- }
- if (nextPage && offsetLeft < 0) {
- this$1.translate(nextPage, pageWidth, speed);
- }
- } else {
- if (prevPage) {
- this$1.translate(prevPage, pageWidth * -1, speed);
- }
- if (nextPage) {
- this$1.translate(nextPage, pageWidth, speed);
- }
- }
- }
- }, 10);
- },
- next: function next() {
- this.doAnimate('next');
- },
- prev: function prev() {
- this.doAnimate('prev');
- },
- before: function before() {
- this.$emit('before', this.index);
- },
- end: function end() {
- this.$emit('end', this.index);
- },
- doOnTouchStart: function doOnTouchStart(event) {
- if (this.noDrag) return;
- var element = this.$el;
- var dragState = this.dragState;
- var touch = event.touches[0];
- dragState.startTime = new Date();
- dragState.startLeft = touch.pageX;
- dragState.startTop = touch.pageY;
- dragState.startTopAbsolute = touch.clientY;
- dragState.pageWidth = element.offsetWidth;
- dragState.pageHeight = element.offsetHeight;
- var prevPage = this.$children[this.index - 1];
- var dragPage = this.$children[this.index];
- var nextPage = this.$children[this.index + 1];
- if (this.continuous && this.pages.length > 1) {
- if (!prevPage) {
- prevPage = this.$children[this.$children.length - 1];
- }
- if (!nextPage) {
- nextPage = this.$children[0];
- }
- }
- dragState.prevPage = prevPage ? prevPage.$el : null;
- dragState.dragPage = dragPage ? dragPage.$el : null;
- dragState.nextPage = nextPage ? nextPage.$el : null;
- if (dragState.prevPage) {
- dragState.prevPage.style.display = 'block';
- }
- if (dragState.nextPage) {
- dragState.nextPage.style.display = 'block';
- }
- },
- doOnTouchMove: function doOnTouchMove(event) {
- if (this.noDrag) return;
- var dragState = this.dragState;
- var touch = event.touches[0];
- dragState.speedX = touch.pageX - dragState.currentLeft;
- dragState.currentLeft = touch.pageX;
- dragState.currentTop = touch.pageY;
- dragState.currentTopAbsolute = touch.clientY;
- var offsetLeft = dragState.currentLeft - dragState.startLeft;
- var offsetTop = dragState.currentTopAbsolute - dragState.startTopAbsolute;
- var distanceX = Math.abs(offsetLeft);
- var distanceY = Math.abs(offsetTop);
- if (distanceX < 5 || (distanceX >= 5 && distanceY >= 1.73 * distanceX)) {
- this.userScrolling = true;
- return;
- } else {
- this.userScrolling = false;
- event.preventDefault();
- }
- offsetLeft = Math.min(Math.max(-dragState.pageWidth + 1, offsetLeft), dragState.pageWidth - 1);
- var towards = offsetLeft < 0 ? 'next' : 'prev';
- if (dragState.prevPage && towards === 'prev') {
- this.translate(dragState.prevPage, offsetLeft - dragState.pageWidth);
- }
- this.translate(dragState.dragPage, offsetLeft);
- if (dragState.nextPage && towards === 'next') {
- this.translate(dragState.nextPage, offsetLeft + dragState.pageWidth);
- }
- },
- doOnTouchEnd: function doOnTouchEnd() {
- if (this.noDrag) return;
- var dragState = this.dragState;
- var dragDuration = new Date() - dragState.startTime;
- var towards = null;
- var offsetLeft = dragState.currentLeft - dragState.startLeft;
- var offsetTop = dragState.currentTop - dragState.startTop;
- var pageWidth = dragState.pageWidth;
- var index = this.index;
- var pageCount = this.pages.length;
- if (dragDuration < 300) {
- var fireTap = Math.abs(offsetLeft) < 5 && Math.abs(offsetTop) < 5;
- if (isNaN(offsetLeft) || isNaN(offsetTop)) {
- fireTap = true;
- }
- if (fireTap) {
- this.$children[this.index].$emit('tap');
- }
- }
- if (dragDuration < 300 && dragState.currentLeft === undefined) return;
- if (dragDuration < 300 || Math.abs(offsetLeft) > pageWidth / 2) {
- towards = offsetLeft < 0 ? 'next' : 'prev';
- }
- if (!this.continuous) {
- if ((index === 0 && towards === 'prev') || (index === pageCount - 1 && towards === 'next')) {
- towards = null;
- }
- }
- if (this.$children.length < 2) {
- towards = null;
- }
- this.doAnimate(towards, {
- offsetLeft: offsetLeft,
- pageWidth: dragState.pageWidth,
- prevPage: dragState.prevPage,
- currentPage: dragState.dragPage,
- nextPage: dragState.nextPage,
- speedX: dragState.speedX
- });
- this.dragState = {};
- },
- initTimer: function initTimer() {
- var this$1 = this;
- if (this.auto > 0 && !this.timer) {
- this.timer = setInterval(function () {
- if (!this$1.continuous && (this$1.index >= this$1.pages.length - 1)) {
- return this$1.clearTimer();
- }
- if (!this$1.dragging && !this$1.animating) {
- this$1.next();
- }
- }, this.auto);
- }
- },
- clearTimer: function clearTimer() {
- clearInterval(this.timer);
- this.timer = null;
- }
- },
- destroyed: function destroyed() {
- if (this.timer) {
- this.clearTimer();
- }
- if (this.reInitTimer) {
- clearTimeout(this.reInitTimer);
- this.reInitTimer = null;
- }
- },
- mounted: function mounted() {
- var this$1 = this;
- this.ready = true;
- this.initTimer();
- this.reInitPages();
- var element = this.$el;
- element.addEventListener('touchstart', function (event) {
- if (this$1.prevent) event.preventDefault();
- if (this$1.stopPropagation) event.stopPropagation();
- if (this$1.animating) return;
- this$1.dragging = true;
- this$1.userScrolling = false;
- this$1.doOnTouchStart(event);
- });
- element.addEventListener('touchmove', function (event) {
- if (!this$1.dragging) return;
- if (this$1.timer) this$1.clearTimer();
- this$1.doOnTouchMove(event);
- });
- element.addEventListener('touchend', function (event) {
- if (this$1.userScrolling) {
- this$1.dragging = false;
- this$1.dragState = {};
- return;
- }
- if (!this$1.dragging) return;
- this$1.initTimer();
- this$1.doOnTouchEnd(event);
- this$1.dragging = false;
- });
- }
- };
- /***/ },
- /* 46 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- /**
- * mt-switch
- * @module components/switch
- * @desc 切换按钮
- * @param {boolean} [value] - 绑定值,支持双向绑定
- * @param {slot} - 显示内容
- *
- * @example
- * <mt-switch v-model="value"></mt-switch>
- */
- /* harmony default export */ exports["default"] = {
- name: 'mt-switch',
- props: {
- value: Boolean,
- disabled: {
- type: Boolean,
- default: false
- }
- },
- computed: {
- currentValue: {
- get: function get() {
- return this.value;
- },
- set: function set(val) {
- this.$emit('input', val);
- }
- }
- }
- };
- /***/ },
- /* 47 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- /**
- * mt-tab-container-item
- * @desc 搭配 tab-container 使用
- * @module components/tab-container-item
- *
- * @param {number|string} [id] - 该项的 id
- *
- * @example
- * <mt-tab-container v-model="selected">
- * <mt-tab-container-item id="1"> 内容A </mt-tab-container-item>
- * <mt-tab-container-item id="2"> 内容B </mt-tab-container-item>
- * <mt-tab-container-item id="3"> 内容C </mt-tab-container-item>
- * </mt-tab-container>
- */
- /* harmony default export */ exports["default"] = {
- name: 'mt-tab-container-item',
- props: ['id']
- };
- /***/ },
- /* 48 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_array_find_index__ = __webpack_require__(199);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_array_find_index___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_array_find_index__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /**
- * mt-tab-container
- * @desc 面板,搭配 tab-container-item 使用
- * @module components/tab-container
- *
- * @param {number|string} [value] - 当前激活的 tabId
- *
- * @example
- * <mt-tab-container v-model="selected">
- * <mt-tab-container-item id="1"> 内容A </mt-tab-container-item>
- * <mt-tab-container-item id="2"> 内容B </mt-tab-container-item>
- * <mt-tab-container-item id="3"> 内容C </mt-tab-container-item>
- * </mt-tab-container>
- */
- /* harmony default export */ exports["default"] = {
- name: 'mt-tab-container',
- props: {
- value: {},
- swipeable: Boolean
- },
- data: function data() {
- return {
- start: { x: 0, y: 0 },
- swiping: false,
- activeItems: [],
- pageWidth: 0,
- currentActive: this.value
- };
- },
- watch: {
- value: function value(val) {
- this.currentActive = val;
- },
- currentActive: function currentActive(val, oldValue) {
- this.$emit('input', val);
- if (!this.swipeable) return;
- var lastIndex = __WEBPACK_IMPORTED_MODULE_1_array_find_index___default()(this.$children,
- function (item) { return item.id === oldValue; });
- this.swipeLeaveTransition(lastIndex);
- }
- },
- mounted: function mounted() {
- if (!this.swipeable) return;
- this.wrap = this.$refs.wrap;
- this.pageWidth = this.wrap.clientWidth;
- this.limitWidth = this.pageWidth / 4;
- },
- methods: {
- swipeLeaveTransition: function swipeLeaveTransition(lastIndex) {
- var this$1 = this;
- if ( lastIndex === void 0 ) lastIndex = 0;
- if (typeof this.index !== 'number') {
- this.index = __WEBPACK_IMPORTED_MODULE_1_array_find_index___default()(this.$children,
- function (item) { return item.id === this$1.currentActive; });
- this.swipeMove(-lastIndex * this.pageWidth);
- }
- setTimeout(function () {
- this$1.wrap.classList.add('swipe-transition');
- this$1.swipeMove(-this$1.index * this$1.pageWidth);
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["c" /* once */])(this$1.wrap, 'webkitTransitionEnd', function (_) {
- this$1.wrap.classList.remove('swipe-transition');
- this$1.wrap.style.webkitTransform = '';
- this$1.swiping = false;
- this$1.index = null;
- });
- }, 0);
- },
- swipeMove: function swipeMove(offset) {
- this.wrap.style.webkitTransform = "translate3d(" + offset + "px, 0, 0)";
- this.swiping = true;
- },
- startDrag: function startDrag(evt) {
- if (!this.swipeable) return;
- evt = evt.changedTouches ? evt.changedTouches[0] : evt;
- this.dragging = true;
- this.start.x = evt.pageX;
- this.start.y = evt.pageY;
- },
- onDrag: function onDrag(evt) {
- var this$1 = this;
- if (!this.dragging) return;
- var swiping;
- var e = evt.changedTouches ? evt.changedTouches[0] : evt;
- var offsetTop = e.pageY - this.start.y;
- var offsetLeft = e.pageX - this.start.x;
- var y = Math.abs(offsetTop);
- var x = Math.abs(offsetLeft);
- swiping = !(x < 5 || (x >= 5 && y >= x * 1.73));
- if (!swiping) return;
- evt.preventDefault();
- var len = this.$children.length - 1;
- var index = __WEBPACK_IMPORTED_MODULE_1_array_find_index___default()(this.$children,
- function (item) { return item.id === this$1.currentActive; });
- var currentPageOffset = index * this.pageWidth;
- var offset = offsetLeft - currentPageOffset;
- var absOffset = Math.abs(offset);
- if (absOffset > len * this.pageWidth ||
- (offset > 0 && offset < this.pageWidth)) {
- this.swiping = false;
- return;
- }
- this.offsetLeft = offsetLeft;
- this.index = index;
- this.swipeMove(offset);
- },
- endDrag: function endDrag() {
- if (!this.swiping) return;
- this.dragging = false;
- var direction = this.offsetLeft > 0 ? -1 : 1;
- var isChange = Math.abs(this.offsetLeft) > this.limitWidth;
- if (isChange) {
- this.index += direction;
- var child = this.$children[this.index];
- if (child) {
- this.currentActive = child.id;
- return;
- }
- }
- this.swipeLeaveTransition();
- }
- }
- };
- /***/ },
- /* 49 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /**
- * mt-tab-item
- * @module components/tab-item
- * @desc 搭配 tabbar 或 navbar 使用
- * @param {*} id - 选中后的返回值,任意类型
- * @param {slot} [icon] - icon 图标
- * @param {slot} - 文字
- *
- * @example
- * <mt-tab-item>
- * <img slot="icon" src="http://placehold.it/100x100">
- * 订单
- * </mt-tab-item>
- */
- /* harmony default export */ exports["default"] = {
- name: 'mt-tab-item',
- props: ['id']
- };
- /***/ },
- /* 50 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- /**
- * mt-tabbar
- * @module components/tabbar
- * @desc 底部 tab,依赖 tab-item
- * @param {boolean} [fixed=false] - 固定底部
- * @param {*} value - 返回 item component 传入的 id
- *
- * @example
- * <mt-tabbar v-model="selected">
- * <mt-tab-item id="订单">
- * <img slot="icon" src="http://placehold.it/100x100">
- * <span slot="label">订单</span>
- * </mt-tab-item>
- * </mt-tabbar>
- *
- * <mt-tabbar v-model="selected" fixed>
- * <mt-tab-item :id="['传入数组', '也是可以的']">
- * <img slot="icon" src="http://placehold.it/100x100">
- * <span slot="label">订单</span>
- * </mt-tab-item>
- * </mt-tabbar>
- */
- /* harmony default export */ exports["default"] = {
- name: 'mt-tabbar',
- props: {
- fixed: Boolean,
- value: {}
- }
- };
- /***/ },
- /* 51 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ exports["default"] = {
- props: {
- message: String,
- className: {
- type: String,
- default: ''
- },
- position: {
- type: String,
- default: 'middle'
- },
- iconClass: {
- type: String,
- default: ''
- }
- },
- data: function data() {
- return {
- visible: false
- };
- },
- computed: {
- customClass: function customClass() {
- var classes = [];
- switch (this.position) {
- case 'top':
- classes.push('is-placetop');
- break;
- case 'bottom':
- classes.push('is-placebottom');
- break;
- default:
- classes.push('is-placemiddle');
- }
- classes.push(this.className);
- return classes.join(' ');
- }
- }
- };
- /***/ },
- /* 52 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_actionsheet_vue__ = __webpack_require__(128);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_actionsheet_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_actionsheet_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_actionsheet_vue___default.a; });
- /***/ },
- /* 53 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_badge_vue__ = __webpack_require__(129);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_badge_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_badge_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_badge_vue___default.a; });
- /***/ },
- /* 54 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_button_vue__ = __webpack_require__(130);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_button_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_button_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_button_vue___default.a; });
- /***/ },
- /* 55 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_cell_swipe_vue__ = __webpack_require__(131);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_cell_swipe_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_cell_swipe_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_cell_swipe_vue___default.a; });
- /***/ },
- /* 56 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_checklist_vue__ = __webpack_require__(133);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_checklist_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_checklist_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_checklist_vue___default.a; });
- /***/ },
- /* 57 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_datetime_picker_vue__ = __webpack_require__(134);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_datetime_picker_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_datetime_picker_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_datetime_picker_vue___default.a; });
- /***/ },
- /* 58 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_field_vue__ = __webpack_require__(135);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_field_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_field_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_field_vue___default.a; });
- /***/ },
- /* 59 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_header_vue__ = __webpack_require__(136);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_header_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_header_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_header_vue___default.a; });
- /***/ },
- /* 60 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_list_vue__ = __webpack_require__(137);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_list_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_index_list_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_index_list_vue___default.a; });
- /***/ },
- /* 61 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_section_vue__ = __webpack_require__(138);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_section_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_index_section_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_index_section_vue___default.a; });
- /***/ },
- /* 62 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
- var Indicator = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.extend(__webpack_require__(139));
- var instance;
- /* harmony default export */ exports["a"] = {
- open: function open(options) {
- if ( options === void 0 ) options = {};
- if (!instance) {
- instance = new Indicator({
- el: document.createElement('div')
- });
- }
- if (instance.visible) return;
- instance.text = typeof options === 'string' ? options : options.text || '';
- instance.spinnerType = options.spinnerType || 'snake';
- document.body.appendChild(instance.$el);
- __WEBPACK_IMPORTED_MODULE_0_vue___default.a.nextTick(function () {
- instance.visible = true;
- });
- },
- close: function close() {
- if (instance) {
- instance.visible = false;
- }
- }
- };
- /***/ },
- /* 63 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__ = __webpack_require__(4);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_infinite_scroll_js__ = __webpack_require__(65);
- /* harmony reexport (binding) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_1__src_infinite_scroll_js__["a"]; });
- /***/ },
- /* 64 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
- var ctx = '@@InfiniteScroll';
- var throttle = function(fn, delay) {
- var now, lastExec, timer, context, args; //eslint-disable-line
- var execute = function() {
- fn.apply(context, args);
- lastExec = now;
- };
- return function() {
- context = this;
- args = arguments;
- now = Date.now();
- if (timer) {
- clearTimeout(timer);
- timer = null;
- }
- if (lastExec) {
- var diff = delay - (now - lastExec);
- if (diff < 0) {
- execute();
- } else {
- timer = setTimeout(function () {
- execute();
- }, diff);
- }
- } else {
- execute();
- }
- };
- };
- var getScrollTop = function(element) {
- if (element === window) {
- return Math.max(window.pageYOffset || 0, document.documentElement.scrollTop);
- }
- return element.scrollTop;
- };
- var getComputedStyle = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer ? {} : document.defaultView.getComputedStyle;
- var getScrollEventTarget = function(element) {
- var currentNode = element;
- // bugfix, see http://w3help.org/zh-cn/causes/SD9013 and http://stackoverflow.com/questions/17016740/onscroll-function-is-not-working-for-chrome
- while (currentNode && currentNode.tagName !== 'HTML' && currentNode.tagName !== 'BODY' && currentNode.nodeType === 1) {
- var overflowY = getComputedStyle(currentNode).overflowY;
- if (overflowY === 'scroll' || overflowY === 'auto') {
- return currentNode;
- }
- currentNode = currentNode.parentNode;
- }
- return window;
- };
- var getVisibleHeight = function(element) {
- if (element === window) {
- return document.documentElement.clientHeight;
- }
- return element.clientHeight;
- };
- var getElementTop = function(element) {
- if (element === window) {
- return getScrollTop(window);
- }
- return element.getBoundingClientRect().top + getScrollTop(window);
- };
- var isAttached = function(element) {
- var currentNode = element.parentNode;
- while (currentNode) {
- if (currentNode.tagName === 'HTML') {
- return true;
- }
- if (currentNode.nodeType === 11) {
- return false;
- }
- currentNode = currentNode.parentNode;
- }
- return false;
- };
- var doBind = function() {
- if (this.binded) return; // eslint-disable-line
- this.binded = true;
- var directive = this;
- var element = directive.el;
- directive.scrollEventTarget = getScrollEventTarget(element);
- directive.scrollListener = throttle(doCheck.bind(directive), 200);
- directive.scrollEventTarget.addEventListener('scroll', directive.scrollListener);
- var disabledExpr = element.getAttribute('infinite-scroll-disabled');
- var disabled = false;
- if (disabledExpr) {
- this.vm.$watch(disabledExpr, function(value) {
- directive.disabled = value;
- if (!value && directive.immediateCheck) {
- doCheck.call(directive);
- }
- });
- disabled = Boolean(directive.vm[disabledExpr]);
- }
- directive.disabled = disabled;
- var distanceExpr = element.getAttribute('infinite-scroll-distance');
- var distance = 0;
- if (distanceExpr) {
- distance = Number(directive.vm[distanceExpr] || distanceExpr);
- if (isNaN(distance)) {
- distance = 0;
- }
- }
- directive.distance = distance;
- var immediateCheckExpr = element.getAttribute('infinite-scroll-immediate-check');
- var immediateCheck = true;
- if (immediateCheckExpr) {
- immediateCheck = Boolean(directive.vm[immediateCheckExpr]);
- }
- directive.immediateCheck = immediateCheck;
- if (immediateCheck) {
- doCheck.call(directive);
- }
- var eventName = element.getAttribute('infinite-scroll-listen-for-event');
- if (eventName) {
- directive.vm.$on(eventName, function() {
- doCheck.call(directive);
- });
- }
- };
- var doCheck = function(force) {
- var scrollEventTarget = this.scrollEventTarget;
- var element = this.el;
- var distance = this.distance;
- if (force !== true && this.disabled) return; //eslint-disable-line
- var viewportScrollTop = getScrollTop(scrollEventTarget);
- var viewportBottom = viewportScrollTop + getVisibleHeight(scrollEventTarget);
- var shouldTrigger = false;
- if (scrollEventTarget === element) {
- shouldTrigger = scrollEventTarget.scrollHeight - viewportBottom <= distance;
- } else {
- var elementBottom = getElementTop(element) - getElementTop(scrollEventTarget) + element.offsetHeight + viewportScrollTop;
- shouldTrigger = viewportBottom + distance >= elementBottom;
- }
- if (shouldTrigger && this.expression) {
- this.expression();
- }
- };
- /* harmony default export */ exports["a"] = {
- bind: function bind(el, binding, vnode) {
- el[ctx] = {
- el: el,
- vm: vnode.context,
- expression: binding.value
- };
- var args = arguments;
- var cb = function() {
- el[ctx].vm.$nextTick(function() {
- if (isAttached(el)) {
- doBind.call(el[ctx], args);
- }
- el[ctx].bindTryCount = 0;
- var tryBind = function() {
- if (el[ctx].bindTryCount > 10) return; //eslint-disable-line
- el[ctx].bindTryCount++;
- if (isAttached(el)) {
- doBind.call(el[ctx], args);
- } else {
- setTimeout(tryBind, 50);
- }
- };
- tryBind();
- });
- };
- if (el[ctx].vm._isMounted) {
- cb();
- return;
- }
- el[ctx].vm.$on('hook:mounted', cb);
- },
- unbind: function unbind(el) {
- if (el[ctx] && el[ctx].scrollEventTarget) {
- el[ctx].scrollEventTarget.removeEventListener('scroll', el[ctx].scrollListener);
- }
- }
- };
- /***/ },
- /* 65 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__directive__ = __webpack_require__(64);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css__ = __webpack_require__(4);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_vue__);
- var install = function(Vue) {
- Vue.directive('InfiniteScroll', __WEBPACK_IMPORTED_MODULE_0__directive__["a" /* default */]);
- };
- if (!__WEBPACK_IMPORTED_MODULE_2_vue___default.a.prototype.$isServer && window.Vue) {
- window.infiniteScroll = __WEBPACK_IMPORTED_MODULE_0__directive__["a" /* default */];
- __WEBPACK_IMPORTED_MODULE_2_vue___default.a.use(install); // eslint-disable-line
- }
- __WEBPACK_IMPORTED_MODULE_0__directive__["a" /* default */].install = install;
- /* harmony default export */ exports["a"] = __WEBPACK_IMPORTED_MODULE_0__directive__["a" /* default */];
- /***/ },
- /* 66 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__ = __webpack_require__(4);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_lazyload_js__ = __webpack_require__(67);
- /* harmony reexport (binding) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_1__src_lazyload_js__["a"]; });
- /***/ },
- /* 67 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_lazyload__ = __webpack_require__(201);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_lazyload___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue_lazyload__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css__ = __webpack_require__(4);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css__);
- /* harmony default export */ exports["a"] = __WEBPACK_IMPORTED_MODULE_0_vue_lazyload___default.a;
- /***/ },
- /* 68 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_loadmore_vue__ = __webpack_require__(140);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_loadmore_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_loadmore_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_loadmore_vue___default.a; });
- /***/ },
- /* 69 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_message_box_js__ = __webpack_require__(70);
- /* harmony reexport (binding) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_message_box_js__["a"]; });
- /***/ },
- /* 70 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__message_box_vue__ = __webpack_require__(141);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__message_box_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__message_box_vue__);
- /* unused harmony export MessageBox */
- var CONFIRM_TEXT = '确定';
- var CANCEL_TEXT = '取消';
- var defaults = {
- title: '提示',
- message: '',
- type: '',
- showInput: false,
- showClose: true,
- modalFade: false,
- lockScroll: false,
- closeOnClickModal: true,
- inputValue: null,
- inputPlaceholder: '',
- inputPattern: null,
- inputValidator: null,
- inputErrorMessage: '',
- showConfirmButton: true,
- showCancelButton: false,
- confirmButtonPosition: 'right',
- confirmButtonHighlight: false,
- cancelButtonHighlight: false,
- confirmButtonText: CONFIRM_TEXT,
- cancelButtonText: CANCEL_TEXT,
- confirmButtonClass: '',
- cancelButtonClass: ''
- };
- var merge = function(target) {
- var arguments$1 = arguments;
- for (var i = 1, j = arguments.length; i < j; i++) {
- var source = arguments$1[i];
- for (var prop in source) {
- if (source.hasOwnProperty(prop)) {
- var value = source[prop];
- if (value !== undefined) {
- target[prop] = value;
- }
- }
- }
- }
- return target;
- };
- var MessageBoxConstructor = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.extend(__WEBPACK_IMPORTED_MODULE_1__message_box_vue___default.a);
- var currentMsg, instance;
- var msgQueue = [];
- var defaultCallback = function (action) {
- if (currentMsg) {
- var callback = currentMsg.callback;
- if (typeof callback === 'function') {
- if (instance.showInput) {
- callback(instance.inputValue, action);
- } else {
- callback(action);
- }
- }
- if (currentMsg.resolve) {
- var $type = currentMsg.options.$type;
- if ($type === 'confirm' || $type === 'prompt') {
- if (action === 'confirm') {
- if (instance.showInput) {
- currentMsg.resolve({ value: instance.inputValue, action: action });
- } else {
- currentMsg.resolve(action);
- }
- } else if (action === 'cancel' && currentMsg.reject) {
- currentMsg.reject(action);
- }
- } else {
- currentMsg.resolve(action);
- }
- }
- }
- };
- var initInstance = function() {
- instance = new MessageBoxConstructor({
- el: document.createElement('div')
- });
- instance.callback = defaultCallback;
- };
- var showNextMsg = function() {
- if (!instance) {
- initInstance();
- }
- if (!instance.value || instance.closeTimer) {
- if (msgQueue.length > 0) {
- currentMsg = msgQueue.shift();
- var options = currentMsg.options;
- for (var prop in options) {
- if (options.hasOwnProperty(prop)) {
- instance[prop] = options[prop];
- }
- }
- if (options.callback === undefined) {
- instance.callback = defaultCallback;
- }
- ['modal', 'showClose', 'closeOnClickModal', 'closeOnPressEscape'].forEach(function (prop) {
- if (instance[prop] === undefined) {
- instance[prop] = true;
- }
- });
- document.body.appendChild(instance.$el);
- __WEBPACK_IMPORTED_MODULE_0_vue___default.a.nextTick(function () {
- instance.value = true;
- });
- }
- }
- };
- var MessageBox = function(options, callback) {
- if (typeof options === 'string') {
- options = {
- title: options
- };
- if (arguments[1]) {
- options.message = arguments[1];
- }
- if (arguments[2]) {
- options.type = arguments[2];
- }
- } else if (options.callback && !callback) {
- callback = options.callback;
- }
- if (typeof Promise !== 'undefined') {
- return new Promise(function(resolve, reject) { // eslint-disable-line
- msgQueue.push({
- options: merge({}, defaults, MessageBox.defaults || {}, options),
- callback: callback,
- resolve: resolve,
- reject: reject
- });
- showNextMsg();
- });
- } else {
- msgQueue.push({
- options: merge({}, defaults, MessageBox.defaults || {}, options),
- callback: callback
- });
- showNextMsg();
- }
- };
- MessageBox.setDefaults = function(defaults) {
- MessageBox.defaults = defaults;
- };
- MessageBox.alert = function(message, title, options) {
- if (typeof title === 'object') {
- options = title;
- title = '';
- }
- return MessageBox(merge({
- title: title,
- message: message,
- $type: 'alert',
- closeOnPressEscape: false,
- closeOnClickModal: false
- }, options));
- };
- MessageBox.confirm = function(message, title, options) {
- if (typeof title === 'object') {
- options = title;
- title = '';
- }
- return MessageBox(merge({
- title: title,
- message: message,
- $type: 'confirm',
- showCancelButton: true
- }, options));
- };
- MessageBox.prompt = function(message, title, options) {
- if (typeof title === 'object') {
- options = title;
- title = '';
- }
- return MessageBox(merge({
- title: title,
- message: message,
- showCancelButton: true,
- showInput: true,
- $type: 'prompt'
- }, options));
- };
- MessageBox.close = function() {
- if (!instance) return;
- instance.value = false;
- msgQueue = [];
- currentMsg = null;
- };
- /* harmony default export */ exports["a"] = MessageBox;
- /***/ },
- /* 71 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_navbar_vue__ = __webpack_require__(142);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_navbar_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_navbar_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_navbar_vue___default.a; });
- /***/ },
- /* 72 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_palette_button_vue__ = __webpack_require__(143);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_palette_button_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_palette_button_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_palette_button_vue___default.a; });
- /***/ },
- /* 73 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
- var isDragging = false;
- var supportTouch = !__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer && 'ontouchstart' in window;
- /* harmony default export */ exports["a"] = function(element, options) {
- var moveFn = function(event) {
- if (options.drag) {
- options.drag(supportTouch ? event.changedTouches[0] || event.touches[0] : event);
- }
- };
- var endFn = function(event) {
- if (!supportTouch) {
- document.removeEventListener('mousemove', moveFn);
- document.removeEventListener('mouseup', endFn);
- }
- document.onselectstart = null;
- document.ondragstart = null;
- isDragging = false;
- if (options.end) {
- options.end(supportTouch ? event.changedTouches[0] || event.touches[0] : event);
- }
- };
- element.addEventListener(supportTouch ? 'touchstart' : 'mousedown', function(event) {
- if (isDragging) return;
- document.onselectstart = function() { return false; };
- document.ondragstart = function() { return false; };
- if (!supportTouch) {
- document.addEventListener('mousemove', moveFn);
- document.addEventListener('mouseup', endFn);
- }
- isDragging = true;
- if (options.start) {
- event.preventDefault();
- options.start(supportTouch ? event.changedTouches[0] || event.touches[0] : event);
- }
- });
- if (supportTouch) {
- element.addEventListener('touchmove', moveFn);
- element.addEventListener('touchend', endFn);
- element.addEventListener('touchcancel', endFn);
- }
- };;
- /***/ },
- /* 74 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
- var exportObj = {};
- if (!__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) {
- var docStyle = document.documentElement.style;
- var engine;
- var translate3d = false;
- if (window.opera && Object.prototype.toString.call(opera) === '[object Opera]') {
- engine = 'presto';
- } else if ('MozAppearance' in docStyle) {
- engine = 'gecko';
- } else if ('WebkitAppearance' in docStyle) {
- engine = 'webkit';
- } else if (typeof navigator.cpuClass === 'string') {
- engine = 'trident';
- }
- var cssPrefix = {trident: '-ms-', gecko: '-moz-', webkit: '-webkit-', presto: '-o-'}[engine];
- var vendorPrefix = {trident: 'ms', gecko: 'Moz', webkit: 'Webkit', presto: 'O'}[engine];
- var helperElem = document.createElement('div');
- var perspectiveProperty = vendorPrefix + 'Perspective';
- var transformProperty = vendorPrefix + 'Transform';
- var transformStyleName = cssPrefix + 'transform';
- var transitionProperty = vendorPrefix + 'Transition';
- var transitionStyleName = cssPrefix + 'transition';
- var transitionEndProperty = vendorPrefix.toLowerCase() + 'TransitionEnd';
- if (helperElem.style[perspectiveProperty] !== undefined) {
- translate3d = true;
- }
- var getTranslate = function(element) {
- var result = {left: 0, top: 0};
- if (element === null || element.style === null) return result;
- var transform = element.style[transformProperty];
- var matches = /translate\(\s*(-?\d+(\.?\d+?)?)px,\s*(-?\d+(\.\d+)?)px\)\s*translateZ\(0px\)/ig.exec(transform);
- if (matches) {
- result.left = +matches[1];
- result.top = +matches[3];
- }
- return result;
- };
- var translateElement = function(element, x, y) {
- if (x === null && y === null) return;
- if (element === null || element === undefined || element.style === null) return;
- if (!element.style[transformProperty] && x === 0 && y === 0) return;
- if (x === null || y === null) {
- var translate = getTranslate(element);
- if (x === null) {
- x = translate.left;
- }
- if (y === null) {
- y = translate.top;
- }
- }
- cancelTranslateElement(element);
- if (translate3d) {
- element.style[transformProperty] += ' translate(' + (x ? (x + 'px') : '0px') + ',' + (y ? (y + 'px') : '0px') + ') translateZ(0px)';
- } else {
- element.style[transformProperty] += ' translate(' + (x ? (x + 'px') : '0px') + ',' + (y ? (y + 'px') : '0px') + ')';
- }
- };
- var cancelTranslateElement = function(element) {
- if (element === null || element.style === null) return;
- var transformValue = element.style[transformProperty];
- if (transformValue) {
- transformValue = transformValue.replace(/translate\(\s*(-?\d+(\.?\d+?)?)px,\s*(-?\d+(\.\d+)?)px\)\s*translateZ\(0px\)/g, '');
- element.style[transformProperty] = transformValue;
- }
- };
- exportObj = {
- transformProperty: transformProperty,
- transformStyleName: transformStyleName,
- transitionProperty: transitionProperty,
- transitionStyleName: transitionStyleName,
- transitionEndProperty: transitionEndProperty,
- getElementTranslate: getTranslate,
- translateElement: translateElement,
- cancelTranslateElement: cancelTranslateElement
- };
- };
- /* harmony default export */ exports["a"] = exportObj;
- /***/ },
- /* 75 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_progress_vue__ = __webpack_require__(147);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_progress_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_progress_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_progress_vue___default.a; });
- /***/ },
- /* 76 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_radio_vue__ = __webpack_require__(148);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_radio_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_radio_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_radio_vue___default.a; });
- /***/ },
- /* 77 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_vue__ = __webpack_require__(149);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_index_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_index_vue___default.a; });
- /***/ },
- /* 78 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
- var isDragging = false;
- var supportTouch = !__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer && 'ontouchstart' in window;
- /* harmony default export */ exports["a"] = function(element, options) {
- var moveFn = function(event) {
- if (options.drag) {
- options.drag(supportTouch ? event.changedTouches[0] || event.touches[0] : event);
- }
- };
- var endFn = function(event) {
- if (!supportTouch) {
- document.removeEventListener('mousemove', moveFn);
- document.removeEventListener('mouseup', endFn);
- }
- document.onselectstart = null;
- document.ondragstart = null;
- isDragging = false;
- if (options.end) {
- options.end(supportTouch ? event.changedTouches[0] || event.touches[0] : event);
- }
- };
- element.addEventListener(supportTouch ? 'touchstart' : 'mousedown', function(event) {
- if (isDragging) return;
- event.preventDefault();
- document.onselectstart = function() { return false; };
- document.ondragstart = function() { return false; };
- if (!supportTouch) {
- document.addEventListener('mousemove', moveFn);
- document.addEventListener('mouseup', endFn);
- }
- isDragging = true;
- if (options.start) {
- options.start(supportTouch ? event.changedTouches[0] || event.touches[0] : event);
- }
- });
- if (supportTouch) {
- element.addEventListener('touchmove', moveFn);
- element.addEventListener('touchend', endFn);
- element.addEventListener('touchcancel', endFn);
- }
- };;
- /***/ },
- /* 79 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_search_vue__ = __webpack_require__(150);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_search_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_search_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_search_vue___default.a; });
- /***/ },
- /* 80 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__ = __webpack_require__(4);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__swipe_src_swipe_item_vue__ = __webpack_require__(155);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__swipe_src_swipe_item_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__swipe_src_swipe_item_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_1__swipe_src_swipe_item_vue___default.a; });
- /***/ },
- /* 81 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_swipe_vue__ = __webpack_require__(156);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_swipe_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_swipe_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_swipe_vue___default.a; });
- /***/ },
- /* 82 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_switch_vue__ = __webpack_require__(157);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_switch_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_switch_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_switch_vue___default.a; });
- /***/ },
- /* 83 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_container_item_vue__ = __webpack_require__(158);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_container_item_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_tab_container_item_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_tab_container_item_vue___default.a; });
- /***/ },
- /* 84 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_container_vue__ = __webpack_require__(159);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_container_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_tab_container_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_tab_container_vue___default.a; });
- /***/ },
- /* 85 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_item_vue__ = __webpack_require__(160);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_item_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_tab_item_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_tab_item_vue___default.a; });
- /***/ },
- /* 86 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tabbar_vue__ = __webpack_require__(161);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tabbar_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_tabbar_vue__);
- /* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_tabbar_vue___default.a; });
- /***/ },
- /* 87 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_toast_js__ = __webpack_require__(88);
- /* harmony reexport (binding) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_toast_js__["a"]; });
- /***/ },
- /* 88 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
- var ToastConstructor = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.extend(__webpack_require__(162));
- var toastPool = [];
- var getAnInstance = function () {
- if (toastPool.length > 0) {
- var instance = toastPool[0];
- toastPool.splice(0, 1);
- return instance;
- }
- return new ToastConstructor({
- el: document.createElement('div')
- });
- };
- var returnAnInstance = function (instance) {
- if (instance) {
- toastPool.push(instance);
- }
- };
- var removeDom = function (event) {
- if (event.target.parentNode) {
- event.target.parentNode.removeChild(event.target);
- }
- };
- ToastConstructor.prototype.close = function() {
- this.visible = false;
- this.$el.addEventListener('transitionend', removeDom);
- this.closed = true;
- returnAnInstance(this);
- };
- var Toast = function (options) {
- if ( options === void 0 ) options = {};
- var duration = options.duration || 3000;
- var instance = getAnInstance();
- instance.closed = false;
- clearTimeout(instance.timer);
- instance.message = typeof options === 'string' ? options : options.message;
- instance.position = options.position || 'middle';
- instance.className = options.className || '';
- instance.iconClass = options.iconClass || '';
- document.body.appendChild(instance.$el);
- __WEBPACK_IMPORTED_MODULE_0_vue___default.a.nextTick(function() {
- instance.visible = true;
- instance.$el.removeEventListener('transitionend', removeDom);
- ~duration && (instance.timer = setTimeout(function() {
- if (instance.closed) return;
- instance.close();
- }, duration));
- });
- return instance;
- };
- /* harmony default export */ exports["a"] = Toast;
- /***/ },
- /* 89 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- function broadcast(componentName, eventName, params) {
- this.$children.forEach(function (child) {
- var name = child.$options.componentName;
- if (name === componentName) {
- child.$emit.apply(child, [eventName].concat(params));
- } else {
- broadcast.apply(child, [componentName, eventName].concat(params));
- }
- });
- }
- /* harmony default export */ exports["a"] = {
- methods: {
- dispatch: function dispatch(componentName, eventName, params) {
- var parent = this.$parent;
- var name = parent.$options.componentName;
- while (parent && (!name || name !== componentName)) {
- parent = parent.$parent;
- if (parent) {
- name = parent.$options.componentName;
- }
- }
- if (parent) {
- parent.$emit.apply(parent, [eventName].concat(params));
- }
- },
- broadcast: function broadcast$1(componentName, eventName, params) {
- broadcast.call(this, componentName, eventName, params);
- }
- }
- };
- /***/ },
- /* 90 */
- /***/ function(module, exports, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__ = __webpack_require__(3);
- var hasModal = false;
- var getModal = function() {
- if (__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) return;
- var modalDom = PopupManager.modalDom;
- if (modalDom) {
- hasModal = true;
- } else {
- hasModal = false;
- modalDom = document.createElement('div');
- PopupManager.modalDom = modalDom;
- modalDom.addEventListener('touchmove', function(event) {
- event.preventDefault();
- event.stopPropagation();
- });
- modalDom.addEventListener('click', function() {
- PopupManager.doOnModalClick && PopupManager.doOnModalClick();
- });
- }
- return modalDom;
- };
- var instances = {};
- var PopupManager = {
- zIndex: 2000,
- modalFade: true,
- getInstance: function(id) {
- return instances[id];
- },
- register: function(id, instance) {
- if (id && instance) {
- instances[id] = instance;
- }
- },
- deregister: function(id) {
- if (id) {
- instances[id] = null;
- delete instances[id];
- }
- },
- nextZIndex: function() {
- return PopupManager.zIndex++;
- },
- modalStack: [],
- doOnModalClick: function() {
- var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
- if (!topItem) return;
- var instance = PopupManager.getInstance(topItem.id);
- if (instance && instance.closeOnClickModal) {
- instance.close();
- }
- },
- openModal: function(id, zIndex, dom, modalClass, modalFade) {
- if (__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) return;
- if (!id || zIndex === undefined) return;
- this.modalFade = modalFade;
- var modalStack = this.modalStack;
- for (var i = 0, j = modalStack.length; i < j; i++) {
- var item = modalStack[i];
- if (item.id === id) {
- return;
- }
- }
- var modalDom = getModal();
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, 'v-modal');
- if (this.modalFade && !hasModal) {
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, 'v-modal-enter');
- }
- if (modalClass) {
- var classArr = modalClass.trim().split(/\s+/);
- classArr.forEach(function (item) { return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, item); });
- }
- setTimeout(function () {
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["b" /* removeClass */])(modalDom, 'v-modal-enter');
- }, 200);
- if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
- dom.parentNode.appendChild(modalDom);
- } else {
- document.body.appendChild(modalDom);
- }
- if (zIndex) {
- modalDom.style.zIndex = zIndex;
- }
- modalDom.style.display = '';
- this.modalStack.push({ id: id, zIndex: zIndex, modalClass: modalClass });
- },
- closeModal: function(id) {
- var modalStack = this.modalStack;
- var modalDom = getModal();
- if (modalStack.length > 0) {
- var topItem = modalStack[modalStack.length - 1];
- if (topItem.id === id) {
- if (topItem.modalClass) {
- var classArr = topItem.modalClass.trim().split(/\s+/);
- classArr.forEach(function (item) { return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["b" /* removeClass */])(modalDom, item); });
- }
- modalStack.pop();
- if (modalStack.length > 0) {
- modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;
- }
- } else {
- for (var i = modalStack.length - 1; i >= 0; i--) {
- if (modalStack[i].id === id) {
- modalStack.splice(i, 1);
- break;
- }
- }
- }
- }
- if (modalStack.length === 0) {
- if (this.modalFade) {
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, 'v-modal-leave');
- }
- setTimeout(function () {
- if (modalStack.length === 0) {
- if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
- modalDom.style.display = 'none';
- PopupManager.modalDom = undefined;
- }
- __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["b" /* removeClass */])(modalDom, 'v-modal-leave');
- }, 200);
- }
- }
- };
- !__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer && window.addEventListener('keydown', function(event) {
- if (event.keyCode === 27) { // ESC
- if (PopupManager.modalStack.length > 0) {
- var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
- if (!topItem) return;
- var instance = PopupManager.getInstance(topItem.id);
- if (instance.closeOnPressEscape) {
- instance.close();
- }
- }
- }
- });
- /* harmony default export */ exports["a"] = PopupManager;
- /***/ },
- /* 91 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 92 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 93 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 94 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 95 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 96 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 97 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 98 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 99 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 100 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 101 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 102 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 103 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 104 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 105 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 106 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 107 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 108 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 109 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 110 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 111 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 112 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 113 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 114 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 115 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 116 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 117 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 118 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 119 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 120 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 121 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 122 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 123 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 124 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 125 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 126 */
- /***/ function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ },
- /* 127 */
- /***/ function(module, exports) {
- module.exports = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiBmaWxsPSJ3aGl0ZSI+CiAgPHBhdGggb3BhY2l0eT0iLjI1IiBkPSJNMTYgMCBBMTYgMTYgMCAwIDAgMTYgMzIgQTE2IDE2IDAgMCAwIDE2IDAgTTE2IDQgQTEyIDEyIDAgMCAxIDE2IDI4IEExMiAxMiAwIDAgMSAxNiA0Ii8+CiAgPHBhdGggZD0iTTE2IDAgQTE2IDE2IDAgMCAxIDMyIDE2IEwyOCAxNiBBMTIgMTIgMCAwIDAgMTYgNHoiPgogICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIGZyb209IjAgMTYgMTYiIHRvPSIzNjAgMTYgMTYiIGR1cj0iMC44cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIC8+CiAgPC9wYXRoPgo8L3N2Zz4K"
- /***/ },
- /* 128 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(100)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(15),
- /* template */
- __webpack_require__(171),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 129 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(102)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(16),
- /* template */
- __webpack_require__(173),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 130 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(106)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(17),
- /* template */
- __webpack_require__(177),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 131 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(98)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(18),
- /* template */
- __webpack_require__(169),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 132 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(113)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(19),
- /* template */
- __webpack_require__(185),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 133 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(124)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(20),
- /* template */
- __webpack_require__(196),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 134 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(109)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(21),
- /* template */
- __webpack_require__(181),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 135 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(116)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(22),
- /* template */
- __webpack_require__(187),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 136 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(108)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(23),
- /* template */
- __webpack_require__(179),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 137 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(93)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(24),
- /* template */
- __webpack_require__(164),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 138 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(94)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(25),
- /* template */
- __webpack_require__(165),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 139 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(119)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(26),
- /* template */
- __webpack_require__(191),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 140 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(121)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(27),
- /* template */
- __webpack_require__(193),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 141 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(114)
- __webpack_require__(115)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(28),
- /* template */
- __webpack_require__(186),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 142 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(123)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(29),
- /* template */
- __webpack_require__(195),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 143 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(112)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(30),
- /* template */
- __webpack_require__(184),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 144 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(92)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(31),
- /* template */
- __webpack_require__(163),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 145 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(126)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(32),
- /* template */
- __webpack_require__(198),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 146 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(120)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(33),
- /* template */
- __webpack_require__(192),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 147 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(96)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(34),
- /* template */
- __webpack_require__(167),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 148 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(118)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(35),
- /* template */
- __webpack_require__(190),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 149 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(122)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(36),
- /* template */
- __webpack_require__(194),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 150 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(125)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(37),
- /* template */
- __webpack_require__(197),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 151 */
- /***/ function(module, exports, __webpack_require__) {
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(38),
- /* template */
- __webpack_require__(189),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 152 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(111)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(40),
- /* template */
- __webpack_require__(183),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 153 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(103)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(42),
- /* template */
- __webpack_require__(174),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 154 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(99)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(43),
- /* template */
- __webpack_require__(170),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 155 */
- /***/ function(module, exports, __webpack_require__) {
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(44),
- /* template */
- __webpack_require__(180),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 156 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(95)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(45),
- /* template */
- __webpack_require__(166),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 157 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(107)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(46),
- /* template */
- __webpack_require__(178),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 158 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(117)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(47),
- /* template */
- __webpack_require__(188),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 159 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(101)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(48),
- /* template */
- __webpack_require__(172),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 160 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(105)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(49),
- /* template */
- __webpack_require__(176),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 161 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(110)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(50),
- /* template */
- __webpack_require__(182),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 162 */
- /***/ function(module, exports, __webpack_require__) {
- function injectStyle (ssrContext) {
- __webpack_require__(97)
- }
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(51),
- /* template */
- __webpack_require__(168),
- /* styles */
- injectStyle,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
- module.exports = Component.exports
- /***/ },
- /* 163 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "picker-slot",
- class: _vm.classNames,
- style: (_vm.flexStyle)
- }, [(!_vm.divider) ? _c('div', {
- ref: "wrapper",
- staticClass: "picker-slot-wrapper",
- class: {
- dragging: _vm.dragging
- },
- style: ({
- height: _vm.contentHeight + 'px'
- })
- }, _vm._l((_vm.mutatingValues), function(itemValue) {
- return _c('div', {
- staticClass: "picker-item",
- class: {
- 'picker-selected': itemValue === _vm.currentValue
- },
- style: ({
- height: _vm.itemHeight + 'px',
- lineHeight: _vm.itemHeight + 'px'
- })
- }, [_vm._v("\n " + _vm._s(typeof itemValue === 'object' && itemValue[_vm.valueKey] ? itemValue[_vm.valueKey] : itemValue) + "\n ")])
- })) : _vm._e(), _vm._v(" "), (_vm.divider) ? _c('div', [_vm._v(_vm._s(_vm.content))]) : _vm._e()])
- },staticRenderFns: []}
- /***/ },
- /* 164 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mint-indexlist"
- }, [_c('ul', {
- ref: "content",
- staticClass: "mint-indexlist-content",
- style: ({
- 'height': _vm.currentHeight + 'px',
- 'margin-right': _vm.navWidth + 'px'
- })
- }, [_vm._t("default")], 2), _vm._v(" "), _c('div', {
- ref: "nav",
- staticClass: "mint-indexlist-nav",
- on: {
- "touchstart": _vm.handleTouchStart
- }
- }, [_c('ul', {
- staticClass: "mint-indexlist-navlist"
- }, _vm._l((_vm.sections), function(section) {
- return _c('li', {
- staticClass: "mint-indexlist-navitem"
- }, [_vm._v(_vm._s(section.index))])
- }))]), _vm._v(" "), (_vm.showIndicator) ? _c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.moving),
- expression: "moving"
- }],
- staticClass: "mint-indexlist-indicator"
- }, [_vm._v(_vm._s(_vm.currentIndicator))]) : _vm._e()])
- },staticRenderFns: []}
- /***/ },
- /* 165 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('li', {
- staticClass: "mint-indexsection"
- }, [_c('p', {
- staticClass: "mint-indexsection-index"
- }, [_vm._v(_vm._s(_vm.index))]), _vm._v(" "), _c('ul', [_vm._t("default")], 2)])
- },staticRenderFns: []}
- /***/ },
- /* 166 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mint-swipe"
- }, [_c('div', {
- ref: "wrap",
- staticClass: "mint-swipe-items-wrap"
- }, [_vm._t("default")], 2), _vm._v(" "), _c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.showIndicators),
- expression: "showIndicators"
- }],
- staticClass: "mint-swipe-indicators"
- }, _vm._l((_vm.pages), function(page, $index) {
- return _c('div', {
- staticClass: "mint-swipe-indicator",
- class: {
- 'is-active': $index === _vm.index
- }
- })
- }))])
- },staticRenderFns: []}
- /***/ },
- /* 167 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mt-progress"
- }, [_vm._t("start"), _vm._v(" "), _c('div', {
- staticClass: "mt-progress-content"
- }, [_c('div', {
- staticClass: "mt-progress-runway",
- style: ({
- height: _vm.barHeight + 'px'
- })
- }), _vm._v(" "), _c('div', {
- staticClass: "mt-progress-progress",
- style: ({
- width: _vm.value + '%',
- height: _vm.barHeight + 'px'
- })
- })]), _vm._v(" "), _vm._t("end")], 2)
- },staticRenderFns: []}
- /***/ },
- /* 168 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "name": "mint-toast-pop"
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.visible),
- expression: "visible"
- }],
- staticClass: "mint-toast",
- class: _vm.customClass,
- style: ({
- 'padding': _vm.iconClass === '' ? '10px' : '20px'
- })
- }, [(_vm.iconClass !== '') ? _c('i', {
- staticClass: "mint-toast-icon",
- class: _vm.iconClass
- }) : _vm._e(), _vm._v(" "), _c('span', {
- staticClass: "mint-toast-text",
- style: ({
- 'padding-top': _vm.iconClass === '' ? '0' : '10px'
- })
- }, [_vm._v(_vm._s(_vm.message))])])])
- },staticRenderFns: []}
- /***/ },
- /* 169 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('x-cell', {
- directives: [{
- name: "clickoutside",
- rawName: "v-clickoutside:touchstart",
- value: (_vm.swipeMove),
- expression: "swipeMove",
- arg: "touchstart"
- }],
- ref: "cell",
- staticClass: "mint-cell-swipe",
- attrs: {
- "title": _vm.title,
- "icon": _vm.icon,
- "label": _vm.label,
- "to": _vm.to,
- "is-link": _vm.isLink,
- "value": _vm.value
- },
- nativeOn: {
- "click": function($event) {
- _vm.swipeMove()
- },
- "touchstart": function($event) {
- _vm.startDrag($event)
- },
- "touchmove": function($event) {
- _vm.onDrag($event)
- },
- "touchend": function($event) {
- _vm.endDrag($event)
- }
- }
- }, [_c('div', {
- ref: "right",
- staticClass: "mint-cell-swipe-buttongroup",
- slot: "right"
- }, _vm._l((_vm.right), function(btn) {
- return _c('a', {
- staticClass: "mint-cell-swipe-button",
- style: (btn.style),
- domProps: {
- "innerHTML": _vm._s(btn.content)
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- $event.stopPropagation();
- btn.handler && btn.handler(), _vm.swipeMove()
- }
- }
- })
- })), _vm._v(" "), _c('div', {
- ref: "left",
- staticClass: "mint-cell-swipe-buttongroup",
- slot: "left"
- }, _vm._l((_vm.left), function(btn) {
- return _c('a', {
- staticClass: "mint-cell-swipe-button",
- style: (btn.style),
- domProps: {
- "innerHTML": _vm._s(btn.content)
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- $event.stopPropagation();
- btn.handler && btn.handler(), _vm.swipeMove()
- }
- }
- })
- })), _vm._v(" "), _vm._t("default"), _vm._v(" "), (_vm.$slots.title) ? _c('span', {
- slot: "title"
- }, [_vm._t("title")], 2) : _vm._e(), _vm._v(" "), (_vm.$slots.icon) ? _c('span', {
- slot: "icon"
- }, [_vm._t("icon")], 2) : _vm._e()], 2)
- },staticRenderFns: []}
- /***/ },
- /* 170 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mint-spinner-triple-bounce"
- }, [_c('div', {
- staticClass: "mint-spinner-triple-bounce-bounce1",
- style: (_vm.bounceStyle)
- }), _vm._v(" "), _c('div', {
- staticClass: "mint-spinner-triple-bounce-bounce2",
- style: (_vm.bounceStyle)
- }), _vm._v(" "), _c('div', {
- staticClass: "mint-spinner-triple-bounce-bounce3",
- style: (_vm.bounceStyle)
- })])
- },staticRenderFns: []}
- /***/ },
- /* 171 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "name": "actionsheet-float"
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.currentValue),
- expression: "currentValue"
- }],
- staticClass: "mint-actionsheet"
- }, [_c('ul', {
- staticClass: "mint-actionsheet-list",
- style: ({
- 'margin-bottom': _vm.cancelText ? '5px' : '0'
- })
- }, _vm._l((_vm.actions), function(item, index) {
- return _c('li', {
- staticClass: "mint-actionsheet-listitem",
- on: {
- "click": function($event) {
- $event.stopPropagation();
- _vm.itemClick(item, index)
- }
- }
- }, [_vm._v(_vm._s(item.name))])
- })), _vm._v(" "), (_vm.cancelText) ? _c('a', {
- staticClass: "mint-actionsheet-button",
- on: {
- "click": function($event) {
- $event.stopPropagation();
- _vm.currentValue = false
- }
- }
- }, [_vm._v(_vm._s(_vm.cancelText))]) : _vm._e()])])
- },staticRenderFns: []}
- /***/ },
- /* 172 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mint-tab-container",
- on: {
- "touchstart": _vm.startDrag,
- "mousedown": _vm.startDrag,
- "touchmove": _vm.onDrag,
- "mousemove": _vm.onDrag,
- "mouseup": _vm.endDrag,
- "touchend": _vm.endDrag
- }
- }, [_c('div', {
- ref: "wrap",
- staticClass: "mint-tab-container-wrap"
- }, [_vm._t("default")], 2)])
- },staticRenderFns: []}
- /***/ },
- /* 173 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('span', {
- staticClass: "mint-badge",
- class: ['is-' + _vm.type, 'is-size-' + _vm.size],
- style: ({
- backgroundColor: _vm.color
- })
- }, [_vm._t("default")], 2)
- },staticRenderFns: []}
- /***/ },
- /* 174 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mint-spinner-snake",
- style: ({
- 'border-top-color': _vm.spinnerColor,
- 'border-left-color': _vm.spinnerColor,
- 'border-bottom-color': _vm.spinnerColor,
- 'height': _vm.spinnerSize,
- 'width': _vm.spinnerSize
- })
- })
- },staticRenderFns: []}
- /***/ },
- /* 175 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- class: ['mint-spinner-fading-circle circle-color-' + _vm._uid],
- style: ({
- width: _vm.spinnerSize,
- height: _vm.spinnerSize
- })
- }, _vm._l((12), function(n) {
- return _c('div', {
- staticClass: "mint-spinner-fading-circle-circle",
- class: ['is-circle' + (n + 1)]
- })
- }))
- },staticRenderFns: []}
- /***/ },
- /* 176 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('a', {
- staticClass: "mint-tab-item",
- class: {
- 'is-selected': _vm.$parent.value === _vm.id
- },
- on: {
- "click": function($event) {
- _vm.$parent.$emit('input', _vm.id)
- }
- }
- }, [_c('div', {
- staticClass: "mint-tab-item-icon"
- }, [_vm._t("icon")], 2), _vm._v(" "), _c('div', {
- staticClass: "mint-tab-item-label"
- }, [_vm._t("default")], 2)])
- },staticRenderFns: []}
- /***/ },
- /* 177 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('button', {
- staticClass: "mint-button",
- class: ['mint-button--' + _vm.type, 'mint-button--' + _vm.size, {
- 'is-disabled': _vm.disabled,
- 'is-plain': _vm.plain
- }],
- attrs: {
- "type": _vm.nativeType,
- "disabled": _vm.disabled
- },
- on: {
- "click": _vm.handleClick
- }
- }, [(_vm.icon || _vm.$slots.icon) ? _c('span', {
- staticClass: "mint-button-icon"
- }, [_vm._t("icon", [(_vm.icon) ? _c('i', {
- staticClass: "mintui",
- class: 'mintui-' + _vm.icon
- }) : _vm._e()])], 2) : _vm._e(), _vm._v(" "), _c('label', {
- staticClass: "mint-button-text"
- }, [_vm._t("default")], 2)])
- },staticRenderFns: []}
- /***/ },
- /* 178 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('label', {
- staticClass: "mint-switch"
- }, [_c('input', {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.currentValue),
- expression: "currentValue"
- }],
- staticClass: "mint-switch-input",
- attrs: {
- "disabled": _vm.disabled,
- "type": "checkbox"
- },
- domProps: {
- "checked": Array.isArray(_vm.currentValue) ? _vm._i(_vm.currentValue, null) > -1 : (_vm.currentValue)
- },
- on: {
- "change": function($event) {
- _vm.$emit('change', _vm.currentValue)
- },
- "__c": function($event) {
- var $$a = _vm.currentValue,
- $$el = $event.target,
- $$c = $$el.checked ? (true) : (false);
- if (Array.isArray($$a)) {
- var $$v = null,
- $$i = _vm._i($$a, $$v);
- if ($$c) {
- $$i < 0 && (_vm.currentValue = $$a.concat($$v))
- } else {
- $$i > -1 && (_vm.currentValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))
- }
- } else {
- _vm.currentValue = $$c
- }
- }
- }
- }), _vm._v(" "), _c('span', {
- staticClass: "mint-switch-core"
- }), _vm._v(" "), _c('div', {
- staticClass: "mint-switch-label"
- }, [_vm._t("default")], 2)])
- },staticRenderFns: []}
- /***/ },
- /* 179 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('header', {
- staticClass: "mint-header",
- class: {
- 'is-fixed': _vm.fixed
- }
- }, [_c('div', {
- staticClass: "mint-header-button is-left"
- }, [_vm._t("left")], 2), _vm._v(" "), _c('h1', {
- staticClass: "mint-header-title",
- domProps: {
- "textContent": _vm._s(_vm.title)
- }
- }), _vm._v(" "), _c('div', {
- staticClass: "mint-header-button is-right"
- }, [_vm._t("right")], 2)])
- },staticRenderFns: []}
- /***/ },
- /* 180 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mint-swipe-item"
- }, [_vm._t("default")], 2)
- },staticRenderFns: []}
- /***/ },
- /* 181 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('mt-popup', {
- staticClass: "mint-datetime",
- attrs: {
- "closeOnClickModal": _vm.closeOnClickModal,
- "position": "bottom"
- },
- model: {
- value: (_vm.visible),
- callback: function($$v) {
- _vm.visible = $$v
- },
- expression: "visible"
- }
- }, [_c('mt-picker', {
- ref: "picker",
- staticClass: "mint-datetime-picker",
- attrs: {
- "slots": _vm.dateSlots,
- "visible-item-count": _vm.visibleItemCount,
- "show-toolbar": ""
- },
- on: {
- "change": _vm.onChange
- }
- }, [_c('span', {
- staticClass: "mint-datetime-action mint-datetime-cancel",
- on: {
- "click": function($event) {
- _vm.visible = false;
- _vm.$emit('cancel')
- }
- }
- }, [_vm._v(_vm._s(_vm.cancelText))]), _vm._v(" "), _c('span', {
- staticClass: "mint-datetime-action mint-datetime-confirm",
- on: {
- "click": _vm.confirm
- }
- }, [_vm._v(_vm._s(_vm.confirmText))])])], 1)
- },staticRenderFns: []}
- /***/ },
- /* 182 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mint-tabbar",
- class: {
- 'is-fixed': _vm.fixed
- }
- }, [_vm._t("default")], 2)
- },staticRenderFns: []}
- /***/ },
- /* 183 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mint-spinner-double-bounce",
- style: ({
- width: _vm.spinnerSize,
- height: _vm.spinnerSize
- })
- }, [_c('div', {
- staticClass: "mint-spinner-double-bounce-bounce1",
- style: ({
- backgroundColor: _vm.spinnerColor
- })
- }), _vm._v(" "), _c('div', {
- staticClass: "mint-spinner-double-bounce-bounce2",
- style: ({
- backgroundColor: _vm.spinnerColor
- })
- })])
- },staticRenderFns: []}
- /***/ },
- /* 184 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mint-palette-button",
- class: {
- expand: _vm.expanded, 'mint-palette-button-active': _vm.transforming
- },
- on: {
- "animationend": _vm.onMainAnimationEnd,
- "webkitAnimationEnd": _vm.onMainAnimationEnd,
- "mozAnimationEnd": _vm.onMainAnimationEnd
- }
- }, [_c('div', {
- staticClass: "mint-sub-button-container"
- }, [_vm._t("default")], 2), _vm._v(" "), _c('div', {
- staticClass: "mint-main-button",
- style: (_vm.mainButtonStyle),
- on: {
- "touchstart": _vm.toggle
- }
- }, [_vm._v("\n " + _vm._s(_vm.content) + "\n ")])])
- },staticRenderFns: []}
- /***/ },
- /* 185 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('a', {
- staticClass: "mint-cell",
- attrs: {
- "href": _vm.href
- }
- }, [(_vm.isLink) ? _c('span', {
- staticClass: "mint-cell-mask"
- }) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "mint-cell-left"
- }, [_vm._t("left")], 2), _vm._v(" "), _c('div', {
- staticClass: "mint-cell-wrapper"
- }, [_c('div', {
- staticClass: "mint-cell-title"
- }, [_vm._t("icon", [(_vm.icon) ? _c('i', {
- staticClass: "mintui",
- class: 'mintui-' + _vm.icon
- }) : _vm._e()]), _vm._v(" "), _vm._t("title", [_c('span', {
- staticClass: "mint-cell-text",
- domProps: {
- "textContent": _vm._s(_vm.title)
- }
- }), _vm._v(" "), (_vm.label) ? _c('span', {
- staticClass: "mint-cell-label",
- domProps: {
- "textContent": _vm._s(_vm.label)
- }
- }) : _vm._e()])], 2), _vm._v(" "), _c('div', {
- staticClass: "mint-cell-value",
- class: {
- 'is-link': _vm.isLink
- }
- }, [_vm._t("default", [_c('span', {
- domProps: {
- "textContent": _vm._s(_vm.value)
- }
- })])], 2), _vm._v(" "), (_vm.isLink) ? _c('i', {
- staticClass: "mint-cell-allow-right"
- }) : _vm._e()]), _vm._v(" "), _c('div', {
- staticClass: "mint-cell-right"
- }, [_vm._t("right")], 2)])
- },staticRenderFns: []}
- /***/ },
- /* 186 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mint-msgbox-wrapper"
- }, [_c('transition', {
- attrs: {
- "name": "msgbox-bounce"
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.value),
- expression: "value"
- }],
- staticClass: "mint-msgbox"
- }, [(_vm.title !== '') ? _c('div', {
- staticClass: "mint-msgbox-header"
- }, [_c('div', {
- staticClass: "mint-msgbox-title"
- }, [_vm._v(_vm._s(_vm.title))])]) : _vm._e(), _vm._v(" "), (_vm.message !== '') ? _c('div', {
- staticClass: "mint-msgbox-content"
- }, [_c('div', {
- staticClass: "mint-msgbox-message",
- domProps: {
- "innerHTML": _vm._s(_vm.message)
- }
- }), _vm._v(" "), _c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.showInput),
- expression: "showInput"
- }],
- staticClass: "mint-msgbox-input"
- }, [_c('input', {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.inputValue),
- expression: "inputValue"
- }],
- ref: "input",
- attrs: {
- "placeholder": _vm.inputPlaceholder
- },
- domProps: {
- "value": (_vm.inputValue)
- },
- on: {
- "input": function($event) {
- if ($event.target.composing) { return; }
- _vm.inputValue = $event.target.value
- }
- }
- }), _vm._v(" "), _c('div', {
- staticClass: "mint-msgbox-errormsg",
- style: ({
- visibility: !!_vm.editorErrorMessage ? 'visible' : 'hidden'
- })
- }, [_vm._v(_vm._s(_vm.editorErrorMessage))])])]) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "mint-msgbox-btns"
- }, [_c('button', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.showCancelButton),
- expression: "showCancelButton"
- }],
- class: [_vm.cancelButtonClasses],
- on: {
- "click": function($event) {
- _vm.handleAction('cancel')
- }
- }
- }, [_vm._v(_vm._s(_vm.cancelButtonText))]), _vm._v(" "), _c('button', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.showConfirmButton),
- expression: "showConfirmButton"
- }],
- class: [_vm.confirmButtonClasses],
- on: {
- "click": function($event) {
- _vm.handleAction('confirm')
- }
- }
- }, [_vm._v(_vm._s(_vm.confirmButtonText))])])])])], 1)
- },staticRenderFns: []}
- /***/ },
- /* 187 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('x-cell', {
- directives: [{
- name: "clickoutside",
- rawName: "v-clickoutside",
- value: (_vm.doCloseActive),
- expression: "doCloseActive"
- }],
- staticClass: "mint-field",
- class: [{
- 'is-textarea': _vm.type === 'textarea',
- 'is-nolabel': !_vm.label
- }],
- attrs: {
- "title": _vm.label
- }
- }, [(_vm.type === 'textarea') ? _c('textarea', {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.currentValue),
- expression: "currentValue"
- }],
- ref: "textarea",
- staticClass: "mint-field-core",
- attrs: {
- "placeholder": _vm.placeholder,
- "rows": _vm.rows,
- "disabled": _vm.disabled,
- "readonly": _vm.readonly
- },
- domProps: {
- "value": (_vm.currentValue)
- },
- on: {
- "change": function($event) {
- _vm.$emit('change', _vm.currentValue)
- },
- "input": function($event) {
- if ($event.target.composing) { return; }
- _vm.currentValue = $event.target.value
- }
- }
- }) : _c('input', {
- ref: "input",
- staticClass: "mint-field-core",
- attrs: {
- "placeholder": _vm.placeholder,
- "number": _vm.type === 'number',
- "type": _vm.type,
- "disabled": _vm.disabled,
- "readonly": _vm.readonly
- },
- domProps: {
- "value": _vm.currentValue
- },
- on: {
- "change": function($event) {
- _vm.$emit('change', _vm.currentValue)
- },
- "focus": function($event) {
- _vm.active = true
- },
- "input": _vm.handleInput
- }
- }), _vm._v(" "), (!_vm.disableClear) ? _c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.currentValue && _vm.type !== 'textarea' && _vm.active),
- expression: "currentValue && type !== 'textarea' && active"
- }],
- staticClass: "mint-field-clear",
- on: {
- "click": _vm.handleClear
- }
- }, [_c('i', {
- staticClass: "mintui mintui-field-error"
- })]) : _vm._e(), _vm._v(" "), (_vm.state) ? _c('span', {
- staticClass: "mint-field-state",
- class: ['is-' + _vm.state]
- }, [_c('i', {
- staticClass: "mintui",
- class: ['mintui-field-' + _vm.state]
- })]) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "mint-field-other"
- }, [_vm._t("default")], 2)])
- },staticRenderFns: []}
- /***/ },
- /* 188 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.$parent.swiping || _vm.id === _vm.$parent.currentActive),
- expression: "$parent.swiping || id === $parent.currentActive"
- }],
- staticClass: "mint-tab-container-item"
- }, [_vm._t("default")], 2)
- },staticRenderFns: []}
- /***/ },
- /* 189 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('span', [_c(_vm.spinner, {
- tag: "component"
- })], 1)
- },staticRenderFns: []}
- /***/ },
- /* 190 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mint-radiolist",
- on: {
- "change": function($event) {
- _vm.$emit('change', _vm.currentValue)
- }
- }
- }, [_c('label', {
- staticClass: "mint-radiolist-title",
- domProps: {
- "textContent": _vm._s(_vm.title)
- }
- }), _vm._v(" "), _vm._l((_vm.options), function(option) {
- return _c('x-cell', [_c('label', {
- staticClass: "mint-radiolist-label",
- slot: "title"
- }, [_c('span', {
- staticClass: "mint-radio",
- class: {
- 'is-right': _vm.align === 'right'
- }
- }, [_c('input', {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.currentValue),
- expression: "currentValue"
- }],
- staticClass: "mint-radio-input",
- attrs: {
- "type": "radio",
- "disabled": option.disabled
- },
- domProps: {
- "value": option.value || option,
- "checked": _vm._q(_vm.currentValue, option.value || option)
- },
- on: {
- "__c": function($event) {
- _vm.currentValue = option.value || option
- }
- }
- }), _vm._v(" "), _c('span', {
- staticClass: "mint-radio-core"
- })]), _vm._v(" "), _c('span', {
- staticClass: "mint-radio-label",
- domProps: {
- "textContent": _vm._s(option.label || option)
- }
- })])])
- })], 2)
- },staticRenderFns: []}
- /***/ },
- /* 191 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "name": "mint-indicator"
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.visible),
- expression: "visible"
- }],
- staticClass: "mint-indicator"
- }, [_c('div', {
- staticClass: "mint-indicator-wrapper",
- style: ({
- 'padding': _vm.text ? '20px' : '15px'
- })
- }, [_c('spinner', {
- staticClass: "mint-indicator-spin",
- attrs: {
- "type": _vm.convertedSpinnerType,
- "size": 32
- }
- }), _vm._v(" "), _c('span', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.text),
- expression: "text"
- }],
- staticClass: "mint-indicator-text"
- }, [_vm._v(_vm._s(_vm.text))])], 1), _vm._v(" "), _c('div', {
- staticClass: "mint-indicator-mask",
- on: {
- "touchmove": function($event) {
- $event.stopPropagation();
- $event.preventDefault();
- }
- }
- })])])
- },staticRenderFns: []}
- /***/ },
- /* 192 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "name": _vm.currentTransition
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.currentValue),
- expression: "currentValue"
- }],
- staticClass: "mint-popup",
- class: [_vm.position ? 'mint-popup-' + _vm.position : '']
- }, [_vm._t("default")], 2)])
- },staticRenderFns: []}
- /***/ },
- /* 193 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mint-loadmore"
- }, [_c('div', {
- staticClass: "mint-loadmore-content",
- class: {
- 'is-dropped': _vm.topDropped || _vm.bottomDropped
- },
- style: ({
- 'transform': _vm.transform
- })
- }, [_vm._t("top", [(_vm.topMethod) ? _c('div', {
- staticClass: "mint-loadmore-top"
- }, [(_vm.topStatus === 'loading') ? _c('spinner', {
- staticClass: "mint-loadmore-spinner",
- attrs: {
- "size": 20,
- "type": "fading-circle"
- }
- }) : _vm._e(), _vm._v(" "), _c('span', {
- staticClass: "mint-loadmore-text"
- }, [_vm._v(_vm._s(_vm.topText))])], 1) : _vm._e()]), _vm._v(" "), _vm._t("default"), _vm._v(" "), _vm._t("bottom", [(_vm.bottomMethod) ? _c('div', {
- staticClass: "mint-loadmore-bottom"
- }, [(_vm.bottomStatus === 'loading') ? _c('spinner', {
- staticClass: "mint-loadmore-spinner",
- attrs: {
- "size": 20,
- "type": "fading-circle"
- }
- }) : _vm._e(), _vm._v(" "), _c('span', {
- staticClass: "mint-loadmore-text"
- }, [_vm._v(_vm._s(_vm.bottomText))])], 1) : _vm._e()])], 2)])
- },staticRenderFns: []}
- /***/ },
- /* 194 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mt-range",
- class: {
- 'mt-range--disabled': _vm.disabled
- }
- }, [_vm._t("start"), _vm._v(" "), _c('div', {
- ref: "content",
- staticClass: "mt-range-content"
- }, [_c('div', {
- staticClass: "mt-range-runway",
- style: ({
- 'border-top-width': _vm.barHeight + 'px'
- })
- }), _vm._v(" "), _c('div', {
- staticClass: "mt-range-progress",
- style: ({
- width: _vm.progress + '%',
- height: _vm.barHeight + 'px'
- })
- }), _vm._v(" "), _c('div', {
- ref: "thumb",
- staticClass: "mt-range-thumb",
- style: ({
- left: _vm.progress + '%'
- })
- })]), _vm._v(" "), _vm._t("end")], 2)
- },staticRenderFns: []}
- /***/ },
- /* 195 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mint-navbar",
- class: {
- 'is-fixed': _vm.fixed
- }
- }, [_vm._t("default")], 2)
- },staticRenderFns: []}
- /***/ },
- /* 196 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mint-checklist",
- class: {
- 'is-limit': _vm.max <= _vm.currentValue.length
- },
- on: {
- "change": function($event) {
- _vm.$emit('change', _vm.currentValue)
- }
- }
- }, [_c('label', {
- staticClass: "mint-checklist-title",
- domProps: {
- "textContent": _vm._s(_vm.title)
- }
- }), _vm._v(" "), _vm._l((_vm.options), function(option) {
- return _c('x-cell', [_c('label', {
- staticClass: "mint-checklist-label",
- slot: "title"
- }, [_c('span', {
- staticClass: "mint-checkbox",
- class: {
- 'is-right': _vm.align === 'right'
- }
- }, [_c('input', {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.currentValue),
- expression: "currentValue"
- }],
- staticClass: "mint-checkbox-input",
- attrs: {
- "type": "checkbox",
- "disabled": option.disabled
- },
- domProps: {
- "value": option.value || option,
- "checked": Array.isArray(_vm.currentValue) ? _vm._i(_vm.currentValue, option.value || option) > -1 : (_vm.currentValue)
- },
- on: {
- "__c": function($event) {
- var $$a = _vm.currentValue,
- $$el = $event.target,
- $$c = $$el.checked ? (true) : (false);
- if (Array.isArray($$a)) {
- var $$v = option.value || option,
- $$i = _vm._i($$a, $$v);
- if ($$c) {
- $$i < 0 && (_vm.currentValue = $$a.concat($$v))
- } else {
- $$i > -1 && (_vm.currentValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))
- }
- } else {
- _vm.currentValue = $$c
- }
- }
- }
- }), _vm._v(" "), _c('span', {
- staticClass: "mint-checkbox-core"
- })]), _vm._v(" "), _c('span', {
- staticClass: "mint-checkbox-label",
- domProps: {
- "textContent": _vm._s(option.label || option)
- }
- })])])
- })], 2)
- },staticRenderFns: []}
- /***/ },
- /* 197 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "mint-search"
- }, [_c('div', {
- staticClass: "mint-searchbar"
- }, [_c('div', {
- staticClass: "mint-searchbar-inner"
- }, [_c('i', {
- staticClass: "mintui mintui-search"
- }), _vm._v(" "), _c('input', {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.currentValue),
- expression: "currentValue"
- }],
- ref: "input",
- staticClass: "mint-searchbar-core",
- attrs: {
- "type": "search",
- "placeholder": _vm.placeholder
- },
- domProps: {
- "value": (_vm.currentValue)
- },
- on: {
- "click": function($event) {
- _vm.visible = true
- },
- "input": function($event) {
- if ($event.target.composing) { return; }
- _vm.currentValue = $event.target.value
- }
- }
- })]), _vm._v(" "), _c('a', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.visible),
- expression: "visible"
- }],
- staticClass: "mint-searchbar-cancel",
- domProps: {
- "textContent": _vm._s(_vm.cancelText)
- },
- on: {
- "click": function($event) {
- _vm.visible = false, _vm.currentValue = ''
- }
- }
- })]), _vm._v(" "), _c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.show || _vm.currentValue),
- expression: "show || currentValue"
- }],
- staticClass: "mint-search-list"
- }, [_c('div', {
- staticClass: "mint-search-list-warp"
- }, [_vm._t("default", _vm._l((_vm.result), function(item, index) {
- return _c('x-cell', {
- key: index,
- attrs: {
- "title": item
- }
- })
- }))], 2)])])
- },staticRenderFns: []}
- /***/ },
- /* 198 */
- /***/ function(module, exports) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "picker",
- class: {
- 'picker-3d': _vm.rotateEffect
- }
- }, [(_vm.showToolbar) ? _c('div', {
- staticClass: "picker-toolbar"
- }, [_vm._t("default")], 2) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "picker-items"
- }, [_vm._l((_vm.slots), function(slot) {
- return _c('picker-slot', {
- attrs: {
- "valueKey": _vm.valueKey,
- "values": slot.values || [],
- "text-align": slot.textAlign || 'center',
- "visible-item-count": _vm.visibleItemCount,
- "class-name": slot.className,
- "flex": slot.flex,
- "rotate-effect": _vm.rotateEffect,
- "divider": slot.divider,
- "content": slot.content,
- "itemHeight": _vm.itemHeight,
- "default-index": slot.defaultIndex
- },
- model: {
- value: (_vm.values[slot.valueIndex]),
- callback: function($$v) {
- var $$exp = _vm.values,
- $$idx = slot.valueIndex;
- if (!Array.isArray($$exp)) {
- _vm.values[slot.valueIndex] = $$v
- } else {
- $$exp.splice($$idx, 1, $$v)
- }
- },
- expression: "values[slot.valueIndex]"
- }
- })
- }), _vm._v(" "), _c('div', {
- staticClass: "picker-center-highlight",
- style: ({
- height: _vm.itemHeight + 'px',
- marginTop: -_vm.itemHeight / 2 + 'px'
- })
- })], 2)])
- },staticRenderFns: []}
- /***/ },
- /* 199 */
- /***/ function(module, exports) {
- module.exports = require("array-find-index");
- /***/ },
- /* 200 */
- /***/ function(module, exports) {
- module.exports = require("raf.js");
- /***/ },
- /* 201 */
- /***/ function(module, exports) {
- module.exports = require("vue-lazyload");
- /***/ },
- /* 202 */
- /***/ function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__(14);
- /***/ }
- /******/ ]);
|