Dab tsi yog virtual scrolling hauv angular?
Dab tsi yog virtual scrolling hauv angular?

Video: Dab tsi yog virtual scrolling hauv angular?

Video: Dab tsi yog virtual scrolling hauv angular?
Video: Huab Vwj Ft. David Yang - Tsis Txaus [Official MV] 2024, Hlis ntuj nqeg
Anonim

Kev tshaj tawm. Nov yog ib qho ntawm cov yam ntxwv tshiab ntxiv rau Angular 7 npe as Virtual Scrolling . Qhov no feature yog ntxiv rau CDK (Component Development Kit). Virtual scrolling qhia txog qhov pom dom ntsiab rau tus neeg siv, raws li tus neeg siv scrolls , cov npe tom ntej yog tso tawm.

Tom qab ntawd, virtual scrolling yog dab tsi?

Virtual scrolling . Kev thauj khoom ntau pua lub ntsiab tuaj yeem qeeb hauv txhua qhov browser; virtual scrolling enables ib txoj kev ua tau zoo los simulate tag nrho cov khoom uas tau muab los ntawm kev ua qhov siab ntawm lub thawv ntim ib yam li qhov siab ntawm tag nrho cov ntsiab lus yuav tsum tau ua, thiab tom qab ntawd tsuas yog ua cov khoom hauv qhov pom.

Tom qab, lo lus nug yog, dab tsi yog itemSize hauv CDK virtual scroll viewport? 1. [ yam loj ] dictates siab npaum li cas hauv pixels txhua kab hauv cov npe. Cov virtual scroller ces siv qhov no (ib feem) los txiav txim seb muaj pes tsawg kab nws tuaj yeem tsis nyob saum toj thiab hauv qab ntawm saib.

Ib yam li ntawd, tib neeg nug, dab tsi yog virtual rendering?

Piv txwv li kev ua ib daim ntawv teev npe nrog ntau txhiab yam khoom lossis cov ntaub ntawv nrog cov kab thiab kab ntau. Ib txoj hauv kev los daws qhov teeb meem no yog siv cov txheej txheem hu " virtual rendering ”. Lub tswv yim tseem ceeb ntawm "VR" yog tsuas yog ua yam tus neeg siv pom, khaws tus lej ntawm ua tawm tsam qhov tsawg kawg nkaus.

angular CDK yog dab tsi?

Cov Angular Component Dev Kit ( CDK ) yog lub tsev qiv ntawv ntawm kev coj cwj pwm ua ntej muaj nyob hauv Angular Khoom siv, lub tsev qiv ntawv UI tivthaiv rau Angular tus tsim tawm. Cov Angular CDK muab cov neeg tsim khoom ua tau zoo, cov cuab yeej kuaj tau zoo los ntxiv cov qauv sib txuam nrog kev siv zog tsawg.

Pom zoo: