.wechatide.ib.json 114 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895
  1. {
  2. "key": "TDesign",
  3. "label": "Tdesign",
  4. "components": {
  5. "t-action-sheet": {
  6. "key": "t-action-sheet",
  7. "label": "动作面板",
  8. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-actionsheet.png",
  9. "properties": [
  10. {
  11. "key": "cancelText",
  12. "type": ["String"],
  13. "desc": "设置取消按钮的文本",
  14. "label": ""
  15. },
  16. {
  17. "key": "count",
  18. "type": ["Number"],
  19. "desc": "设置每页展示菜单的数量,仅当 type=grid 时有效",
  20. "label": ""
  21. },
  22. {
  23. "key": "items",
  24. "type": ["Array"],
  25. "desc": "菜单项",
  26. "label": ""
  27. },
  28. {
  29. "key": "showCancel",
  30. "type": ["Boolean"],
  31. "desc": "是否显示取消按钮",
  32. "label": ""
  33. },
  34. {
  35. "key": "theme",
  36. "type": ["String"],
  37. "desc": "展示类型,列表和表格形式展示",
  38. "label": ""
  39. },
  40. {
  41. "key": "visible",
  42. "type": ["Boolean"],
  43. "desc": "显示与隐藏",
  44. "label": ""
  45. }
  46. ],
  47. "events": [
  48. {
  49. "key": "bind:cancel",
  50. "desc": "点击取消按钮时触发",
  51. "label": ""
  52. },
  53. {
  54. "key": "bind:close",
  55. "desc": "关闭时触发",
  56. "label": ""
  57. },
  58. {
  59. "key": "bind:selected",
  60. "desc": "选择菜单项时触发",
  61. "label": ""
  62. }
  63. ],
  64. "tpl": "<t-action-sheet id=\"t-action-sheet-imperative\" visible=\"{{false}}\"></t-action-sheet>",
  65. "path": "./action-sheet/action-sheet"
  66. },
  67. "t-avatar-group": {
  68. "key": "t-avatar-group",
  69. "label": "头像组",
  70. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-avatar.png",
  71. "properties": [
  72. {
  73. "key": "cascading",
  74. "type": ["String"],
  75. "desc": "图片之间的层叠关系,可选值:左侧图片在上和右侧图片在上",
  76. "label": ""
  77. },
  78. {
  79. "key": "collapseAvatar",
  80. "type": ["String"],
  81. "desc": "头像数量超出时,会出现一个头像折叠元素。该元素内容可自定义。默认为 `+N`。示例:`+5`,`...`, `更多`",
  82. "label": ""
  83. },
  84. {
  85. "key": "max",
  86. "type": ["Number"],
  87. "desc": "能够同时显示的最多头像数量",
  88. "label": ""
  89. },
  90. {
  91. "key": "size",
  92. "type": ["String"],
  93. "desc": "尺寸,示例值:small/medium/large/24px/38px 等。优先级低于 Avatar.size",
  94. "label": ""
  95. }
  96. ],
  97. "externalClasses": ["t-class", "t-class-image", "t-class-content"],
  98. "tpl": "<t-avatar-group max=\"2\" collapseAvatar=\"+5\"><t-avatar wx:for=\"{{['https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/1.png','https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/2.png','https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/3.png']}}\" wx:key=\"index\" image=\"{{item}}\" style=\"margin-right: -16rpx\" /></t-avatar-group>",
  99. "require": {
  100. "t-avatar": "./avatar/avatar"
  101. },
  102. "path": "./avatar/avatar-group"
  103. },
  104. "t-avatar": {
  105. "key": "t-avatar",
  106. "label": "头像",
  107. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-avatar.png",
  108. "properties": [
  109. {
  110. "key": "alt",
  111. "type": ["String"],
  112. "desc": "头像替换文本,仅当图片加载失败时有效",
  113. "label": ""
  114. },
  115. {
  116. "key": "badgeProps",
  117. "type": ["Object"],
  118. "desc": "头像右上角提示信息,继承 Badge 组件的全部特性。如:小红点,或者数字",
  119. "label": ""
  120. },
  121. {
  122. "key": "hideOnLoadFailed",
  123. "type": ["Boolean"],
  124. "desc": "加载失败时隐藏图片",
  125. "label": ""
  126. },
  127. {
  128. "key": "icon",
  129. "type": ["String"],
  130. "desc": "图标",
  131. "label": ""
  132. },
  133. {
  134. "key": "image",
  135. "type": ["String"],
  136. "desc": "图片地址",
  137. "label": ""
  138. },
  139. {
  140. "key": "shape",
  141. "type": ["String"],
  142. "desc": "形状",
  143. "label": ""
  144. },
  145. {
  146. "key": "size",
  147. "type": ["String"],
  148. "desc": "尺寸,示例值:small/medium/large/24px/38px 等,默认为 large",
  149. "label": ""
  150. }
  151. ],
  152. "externalClasses": ["t-class"],
  153. "events": [
  154. {
  155. "key": "bind:error",
  156. "desc": "图片加载失败时触发",
  157. "label": ""
  158. }
  159. ],
  160. "tpl": "<t-avatar icon=\"user\" alt=\"avatar\"/>",
  161. "path": "./avatar/avatar"
  162. },
  163. "t-back-top": {
  164. "key": "t-back-top",
  165. "label": "回到顶部",
  166. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-backtop.png",
  167. "properties": [
  168. {
  169. "key": "fixed",
  170. "type": ["Boolean"],
  171. "desc": "是否绝对定位固定到屏幕右下方",
  172. "label": ""
  173. },
  174. {
  175. "key": "icon",
  176. "type": ["String"],
  177. "desc": "图标",
  178. "label": ""
  179. },
  180. {
  181. "key": "text",
  182. "type": ["String"],
  183. "desc": "文案",
  184. "label": ""
  185. },
  186. {
  187. "key": "theme",
  188. "type": ["String"],
  189. "desc": "预设的样式类型",
  190. "label": ""
  191. }
  192. ],
  193. "externalClasses": ["t-class", "t-class-icon", "t-class-text"],
  194. "events": [
  195. {
  196. "key": "bind:to-top",
  197. "desc": "点击触发",
  198. "label": ""
  199. }
  200. ],
  201. "tpl": "<t-back-top />",
  202. "path": "./back-top/back-top"
  203. },
  204. "t-badge": {
  205. "key": "t-badge",
  206. "label": "徽标数",
  207. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-badge.png",
  208. "properties": [
  209. {
  210. "key": "color",
  211. "type": ["String"],
  212. "desc": "颜色",
  213. "label": ""
  214. },
  215. {
  216. "key": "content",
  217. "type": ["String"],
  218. "desc": "徽标内容,示例:`content='自定义内容'`。也可以使用默认插槽定义",
  219. "label": ""
  220. },
  221. {
  222. "key": "count",
  223. "type": ["String", "Number"],
  224. "desc": "徽标右上角内容。可以是数字,也可以是文字。如:'new'/3/99+。特殊:值为空表示使用插槽渲染",
  225. "label": ""
  226. },
  227. {
  228. "key": "dot",
  229. "type": ["Boolean"],
  230. "desc": "是否为红点",
  231. "label": ""
  232. },
  233. {
  234. "key": "maxCount",
  235. "type": ["Number"],
  236. "desc": "封顶的数字值",
  237. "label": ""
  238. },
  239. {
  240. "key": "offset",
  241. "type": ["Array"],
  242. "desc": "设置状态点的位置偏移,示例:[-10, 20] 或 ['10em', '8rem']",
  243. "label": ""
  244. },
  245. {
  246. "key": "shape",
  247. "type": ["String"],
  248. "desc": "形状",
  249. "label": ""
  250. },
  251. {
  252. "key": "showZero",
  253. "type": ["Boolean"],
  254. "desc": "当数值为 0 时,是否展示徽标",
  255. "label": ""
  256. },
  257. {
  258. "key": "size",
  259. "type": ["String"],
  260. "desc": "尺寸",
  261. "label": ""
  262. }
  263. ],
  264. "externalClasses": ["t-class", "t-class-content", "t-class-count"],
  265. "tpl": "<t-badge content=\"消息\" dot />",
  266. "path": "./badge/badge"
  267. },
  268. "t-button": {
  269. "key": "t-button",
  270. "label": "按钮",
  271. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-button.png",
  272. "properties": [
  273. {
  274. "key": "block",
  275. "type": ["Boolean"],
  276. "desc": "是否为块级元素",
  277. "label": ""
  278. },
  279. {
  280. "key": "content",
  281. "type": ["String"],
  282. "desc": "按钮内容",
  283. "label": ""
  284. },
  285. {
  286. "key": "customDataset",
  287. "type": ["Object"],
  288. "desc": "自定义 dataset,可通过 event.currentTarget.dataset.custom 获取",
  289. "label": ""
  290. },
  291. {
  292. "key": "disabled",
  293. "type": ["Boolean"],
  294. "desc": "是否禁用按钮",
  295. "label": ""
  296. },
  297. {
  298. "key": "ghost",
  299. "type": ["Boolean"],
  300. "desc": "是否为幽灵按钮(镂空按钮)",
  301. "label": ""
  302. },
  303. {
  304. "key": "icon",
  305. "type": ["String"],
  306. "desc": "图标名称",
  307. "label": ""
  308. },
  309. {
  310. "key": "loading",
  311. "type": ["Boolean"],
  312. "desc": "是否显示为加载状态",
  313. "label": ""
  314. },
  315. {
  316. "key": "shape",
  317. "type": ["String"],
  318. "desc": "按钮形状,有 4 种:长方形、正方形、圆角长方形、圆形",
  319. "label": ""
  320. },
  321. {
  322. "key": "size",
  323. "type": ["String"],
  324. "desc": "组件尺寸",
  325. "label": ""
  326. },
  327. {
  328. "key": "theme",
  329. "type": ["String"],
  330. "desc": "组件风格,依次为品牌色、危险色",
  331. "label": ""
  332. },
  333. {
  334. "key": "type",
  335. "type": ["String"],
  336. "desc": "同小程序的 formType",
  337. "label": ""
  338. },
  339. {
  340. "key": "variant",
  341. "type": ["String"],
  342. "desc": "按钮形式,基础、线框、文字",
  343. "label": ""
  344. }
  345. ],
  346. "externalClasses": ["t-class", "t-class-icon"],
  347. "events": [
  348. {
  349. "key": "bind:click",
  350. "desc": "点击时触发",
  351. "label": ""
  352. }
  353. ],
  354. "tpl": "<t-button theme=\"primary\" block content=\"强按钮\"></t-button>",
  355. "path": "./button/button"
  356. },
  357. "t-cell-group": {
  358. "key": "t-cell-group",
  359. "label": "单元格组",
  360. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-cell.png",
  361. "properties": [
  362. {
  363. "key": "bordered",
  364. "type": ["Boolean"],
  365. "desc": "是否显示组边框",
  366. "label": ""
  367. },
  368. {
  369. "key": "title",
  370. "type": ["String"],
  371. "desc": "单元格组标题",
  372. "label": ""
  373. }
  374. ],
  375. "externalClasses": ["t-class"],
  376. "tpl": "<t-cell-group title=\"01 基础用法\"><t-cell title=\"单行标题\" required /><t-cell title=\"单行标题\" hover note=\"辅助信息\" /><t-cell title=\"单行标题\" hover arrow /><t-cell title=\"单行标题\" hover note=\"辅助信息\" arrow /></t-cell-group>",
  377. "require": {
  378. "t-cell": "./cell/cell"
  379. },
  380. "path": "./cell-group/cell-group"
  381. },
  382. "t-cell": {
  383. "key": "t-cell",
  384. "label": "单元格",
  385. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-cell.png",
  386. "properties": [
  387. {
  388. "key": "align",
  389. "type": ["String"],
  390. "desc": "内容的对齐方式,默认居中对齐",
  391. "label": ""
  392. },
  393. {
  394. "key": "arrow",
  395. "type": ["Boolean"],
  396. "desc": "是否显示右侧箭头",
  397. "label": ""
  398. },
  399. {
  400. "key": "bordered",
  401. "type": ["Boolean"],
  402. "desc": "是否显示下边框",
  403. "label": ""
  404. },
  405. {
  406. "key": "description",
  407. "type": ["String"],
  408. "desc": "下方内容描述",
  409. "label": ""
  410. },
  411. {
  412. "key": "hover",
  413. "type": ["Boolean"],
  414. "desc": "是否开启点击反馈",
  415. "label": ""
  416. },
  417. {
  418. "key": "image",
  419. "type": ["String"],
  420. "desc": "主图",
  421. "label": ""
  422. },
  423. {
  424. "key": "jumpType",
  425. "type": ["String"],
  426. "desc": "链接跳转类型",
  427. "label": ""
  428. },
  429. {
  430. "key": "leftIcon",
  431. "type": ["String"],
  432. "desc": "左侧图标,出现在单元格标题的左侧",
  433. "label": ""
  434. },
  435. {
  436. "key": "note",
  437. "type": ["String"],
  438. "desc": "和标题同行的说明文字",
  439. "label": ""
  440. },
  441. {
  442. "key": "required",
  443. "type": ["Boolean"],
  444. "desc": "是否显示表单必填星号",
  445. "label": ""
  446. },
  447. {
  448. "key": "rightIcon",
  449. "type": ["String"],
  450. "desc": "最右侧图标",
  451. "label": ""
  452. },
  453. {
  454. "key": "title",
  455. "type": ["String"],
  456. "desc": "标题",
  457. "label": ""
  458. },
  459. {
  460. "key": "url",
  461. "type": ["String"],
  462. "desc": "点击后跳转链接地址。如果值为空,则表示不需要跳转",
  463. "label": ""
  464. }
  465. ],
  466. "externalClasses": [
  467. "t-class",
  468. "t-class-title",
  469. "t-class-note",
  470. "t-class-description",
  471. "t-class-thumb",
  472. "t-class-hover",
  473. "t-class-left",
  474. "t-class-right"
  475. ],
  476. "events": [
  477. {
  478. "key": "bind:click",
  479. "desc": "右侧内容",
  480. "label": ""
  481. }
  482. ],
  483. "tpl": "<t-cell title=\"单行标题\" hover />",
  484. "path": "./cell/cell"
  485. },
  486. "t-check-tag": {
  487. "key": "t-check-tag",
  488. "label": "可选标签",
  489. "icon": "",
  490. "properties": [
  491. {
  492. "key": "checked",
  493. "type": ["Boolean"],
  494. "desc": "标签选中的状态,默认风格(theme=default)才有选中态",
  495. "label": ""
  496. },
  497. {
  498. "key": "closable",
  499. "type": ["Boolean"],
  500. "desc": "标签是否可关闭",
  501. "label": ""
  502. },
  503. {
  504. "key": "content",
  505. "type": ["String", "Number"],
  506. "desc": "组件子元素",
  507. "label": ""
  508. },
  509. {
  510. "key": "disabled",
  511. "type": ["Boolean"],
  512. "desc": "标签禁用态,失效标签不能触发事件。默认风格(theme=default)才有禁用态",
  513. "label": ""
  514. },
  515. {
  516. "key": "icon",
  517. "type": ["String"],
  518. "desc": "标签中的图标,可自定义图标呈现",
  519. "label": ""
  520. },
  521. {
  522. "key": "shape",
  523. "type": ["String"],
  524. "desc": "标签类型,有三种:方形、圆角方形、标记型",
  525. "label": ""
  526. },
  527. {
  528. "key": "size",
  529. "type": ["String"],
  530. "desc": "标签尺寸",
  531. "label": ""
  532. }
  533. ],
  534. "events": [
  535. {
  536. "key": "bind:change",
  537. "desc": "组件子元素",
  538. "label": ""
  539. },
  540. {
  541. "key": "bind:click",
  542. "desc": "点击标签时触发",
  543. "label": ""
  544. }
  545. ],
  546. "tpl": "<t-check-tag>check tag</t-check-tag>",
  547. "path": "./tag/check-tag"
  548. },
  549. "t-checkbox-group": {
  550. "key": "t-checkbox-group",
  551. "label": "多选框组",
  552. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-checkbox.png",
  553. "properties": [
  554. {
  555. "key": "disabled",
  556. "type": ["Boolean"],
  557. "desc": "是否禁用组件",
  558. "label": ""
  559. },
  560. {
  561. "key": "max",
  562. "type": ["Number"],
  563. "desc": "支持最多选中的数量",
  564. "label": ""
  565. },
  566. {
  567. "key": "name",
  568. "type": ["String"],
  569. "desc": "统一设置内部复选框 HTML 属性",
  570. "label": ""
  571. },
  572. {
  573. "key": "options",
  574. "type": ["Array"],
  575. "desc": "以配置形式设置子元素。示例1:`['北京', '上海']` ,示例2: `[{ label: '全选', checkAll: true }, { label: '上海', value: 'shanghai' }]`。checkAll 值为 true 表示当前选项为「全选选项」",
  576. "label": ""
  577. },
  578. {
  579. "key": "value",
  580. "type": ["Array"],
  581. "desc": "选中值",
  582. "label": ""
  583. }
  584. ],
  585. "events": [
  586. {
  587. "key": "bind:change",
  588. "desc": "值变化时触发。`context.current` 表示当前变化的数据项,如果是全选则为空;`context.type` 表示引起选中数据变化的是选中或是取消选中,`context.option` 表示当前变化的数据项",
  589. "label": ""
  590. }
  591. ],
  592. "tpl": "<t-checkbox-group value=\"{{['checkbox1']}}\"><t-checkbox value=\"checkbox1\" label=\"多选\" /><t-checkbox value=\"checkbox2\" label=\"多选\" /><t-checkbox value=\"checkbox3\" label=\"多选\" /></t-checkbox-group>",
  593. "require": {
  594. "t-checkbox": "./checkbox/checkbox"
  595. },
  596. "path": "./checkbox-group/checkbox-group"
  597. },
  598. "t-checkbox": {
  599. "key": "t-checkbox",
  600. "label": "多选框",
  601. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-checkbox.png",
  602. "properties": [
  603. {
  604. "key": "align",
  605. "type": ["String"],
  606. "desc": "多选框和内容相对位置",
  607. "label": ""
  608. },
  609. {
  610. "key": "checkAll",
  611. "type": ["Boolean"],
  612. "desc": "用于标识是否为「全选选项」。单独使用无效,需在 CheckboxGroup 中使用",
  613. "label": ""
  614. },
  615. {
  616. "key": "checked",
  617. "type": ["Boolean"],
  618. "desc": "是否选中",
  619. "label": ""
  620. },
  621. {
  622. "key": "color",
  623. "type": ["String"],
  624. "desc": "多选框颜色",
  625. "label": ""
  626. },
  627. {
  628. "key": "content",
  629. "type": ["String"],
  630. "desc": "多选框内容",
  631. "label": ""
  632. },
  633. {
  634. "key": "contentDisabled",
  635. "type": ["Boolean"],
  636. "desc": "是否禁用组件内容(content)触发选中",
  637. "label": ""
  638. },
  639. {
  640. "key": "disabled",
  641. "type": ["Boolean"],
  642. "desc": "是否禁用组件",
  643. "label": ""
  644. },
  645. {
  646. "key": "icon",
  647. "type": ["Array"],
  648. "desc": "自定义选中图标和非选中图标。示例:[选中态图标地址,非选中态图标地址]",
  649. "label": ""
  650. },
  651. {
  652. "key": "indeterminate",
  653. "type": ["Boolean"],
  654. "desc": "是否为半选",
  655. "label": ""
  656. },
  657. {
  658. "key": "label",
  659. "type": ["String"],
  660. "desc": "主文案",
  661. "label": ""
  662. },
  663. {
  664. "key": "maxContentRow",
  665. "type": ["Number"],
  666. "desc": "内容最大行数限制",
  667. "label": ""
  668. },
  669. {
  670. "key": "maxLabelRow",
  671. "type": ["Number"],
  672. "desc": "主文案最大行数限制",
  673. "label": ""
  674. },
  675. {
  676. "key": "name",
  677. "type": ["String"],
  678. "desc": "HTML 元素原生属性",
  679. "label": ""
  680. },
  681. {
  682. "key": "readonly",
  683. "type": ["Boolean"],
  684. "desc": "只读状态",
  685. "label": ""
  686. },
  687. {
  688. "key": "value",
  689. "type": ["String", "Number"],
  690. "desc": "多选框的值",
  691. "label": ""
  692. }
  693. ],
  694. "externalClasses": ["t-class", "t-class-icon", "t-class-label", "t-class-content", "t-class-border"],
  695. "events": [
  696. {
  697. "key": "bind:change",
  698. "desc": "值变化时触发",
  699. "label": ""
  700. }
  701. ],
  702. "tpl": "<t-checkbox label=\"多选框\" checked=\"{{true}}\"></t-checkbox>",
  703. "path": "./checkbox/checkbox"
  704. },
  705. "t-collapse-panel": {
  706. "key": "t-collapse-panel",
  707. "label": "折叠面板",
  708. "icon": "",
  709. "properties": [
  710. {
  711. "key": "content",
  712. "type": ["String"],
  713. "desc": "折叠面板内容",
  714. "label": ""
  715. },
  716. {
  717. "key": "disabled",
  718. "type": ["Boolean"],
  719. "desc": "禁止当前面板展开,优先级大于 Collapse 的同名属性",
  720. "label": ""
  721. },
  722. {
  723. "key": "expandIcon",
  724. "type": ["Boolean"],
  725. "desc": "当前折叠面板展开图标,优先级大于 Collapse 的同名属性",
  726. "label": ""
  727. },
  728. {
  729. "key": "header",
  730. "type": ["String"],
  731. "desc": "面板头内容",
  732. "label": ""
  733. },
  734. {
  735. "key": "headerRightContent",
  736. "type": ["String"],
  737. "desc": "面板头的右侧区域,一般用于呈现面板操作",
  738. "label": ""
  739. },
  740. {
  741. "key": "value",
  742. "type": ["String", "Number"],
  743. "desc": "当前面板唯一标识,如果值为空则取当前面下标兜底作为唯一标识",
  744. "label": ""
  745. }
  746. ],
  747. "tpl": "<t-collapse-panel header=\"折叠面板标题\" value=\"{{0}}\">此处可自定义内容</t-collapse-panel>",
  748. "path": "./collapse/collapse-panel"
  749. },
  750. "t-collapse": {
  751. "key": "t-collapse",
  752. "label": "折叠",
  753. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-collapse.png",
  754. "properties": [
  755. {
  756. "key": "defaultExpandAll",
  757. "type": ["Boolean"],
  758. "desc": "默认是否展开全部",
  759. "label": ""
  760. },
  761. {
  762. "key": "disabled",
  763. "type": ["Boolean"],
  764. "desc": "是否禁用面板展开/收起操作",
  765. "label": ""
  766. },
  767. {
  768. "key": "expandIcon",
  769. "type": ["Boolean"],
  770. "desc": "展开图标。值为 undefined 或 false 则不显示展开图标;值为 true 显示默认图标;值类型为函数,则表示完全自定义展开图标",
  771. "label": ""
  772. },
  773. {
  774. "key": "expandMutex",
  775. "type": ["Boolean"],
  776. "desc": "每个面板互斥展开,每次只展开一个面板",
  777. "label": ""
  778. },
  779. {
  780. "key": "value",
  781. "type": ["Array"],
  782. "desc": "展开的面板集合",
  783. "label": ""
  784. }
  785. ],
  786. "events": [
  787. {
  788. "key": "bind:change",
  789. "desc": "切换面板时触发,返回变化的值",
  790. "label": ""
  791. }
  792. ],
  793. "tpl": "<t-collapse value=\"{{[0]}}\"><t-collapse-panel header=\"折叠面板标题\" value=\"{{0}}\">此处可自定义内容</t-collapse-panel></t-collapse>",
  794. "require": {
  795. "t-collapse-panel": "./collapse/collapse-panel"
  796. },
  797. "path": "./collapse/collapse"
  798. },
  799. "t-date-time-picker": {
  800. "key": "t-date-time-picker",
  801. "label": "日期时间选择器",
  802. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-datetimepicker.png",
  803. "properties": [
  804. {
  805. "key": "cancelBtn",
  806. "type": ["String"],
  807. "desc": "取消按钮文字",
  808. "label": ""
  809. },
  810. {
  811. "key": "confirmBtn",
  812. "type": ["String"],
  813. "desc": "确定按钮文字",
  814. "label": ""
  815. },
  816. {
  817. "key": "end",
  818. "type": ["String", "Number"],
  819. "desc": "选择器的结束时间",
  820. "label": ""
  821. },
  822. {
  823. "key": "footer",
  824. "type": ["String"],
  825. "desc": "底部内容",
  826. "label": ""
  827. },
  828. {
  829. "key": "format",
  830. "type": ["String"],
  831. "desc": "用于格式化日期,[详细文档](https://day.js.org/docs/en/display/format)",
  832. "label": ""
  833. },
  834. {
  835. "key": "header",
  836. "type": ["Boolean"],
  837. "desc": "头部内容。值为 true 显示空白头部,值为 false 不显示任何内容,值类型为 TNode 表示自定义头部内容",
  838. "label": ""
  839. },
  840. {
  841. "key": "mode",
  842. "type": ["String", "Array"],
  843. "desc": "选择器模式,用于表示可以选择到哪一个层级。【示例一】year 或者 ['year'] 表示纯日期选择器,只能选择到年份,只显示年份。【示例二】'hour' 或 ['hour'] 表示纯时间选择器,只能选择到小时维度。【示例三】['year', 'month', 'date', 'hour', 'minute'] 表示,日期和时间 混合选择器,可以选择到具体哪一分钟,显示全部时间:年/月/日/时/分",
  844. "label": ""
  845. },
  846. {
  847. "key": "showWeek",
  848. "type": ["Boolean"],
  849. "desc": "【开发中】是否在日期旁边显示周几(如周一,周二,周日等)",
  850. "label": ""
  851. },
  852. {
  853. "key": "start",
  854. "type": ["String", "Number"],
  855. "desc": "选择器的开始时间",
  856. "label": ""
  857. },
  858. {
  859. "key": "title",
  860. "type": ["String"],
  861. "desc": "标题",
  862. "label": ""
  863. },
  864. {
  865. "key": "value",
  866. "type": ["String", "Number"],
  867. "desc": "选中值",
  868. "label": ""
  869. },
  870. {
  871. "key": "visible",
  872. "type": ["Boolean"],
  873. "desc": "是否显示",
  874. "label": ""
  875. }
  876. ],
  877. "externalClasses": ["t-class", "t-class-confirm", "t-class-cancel", "t-class-title"],
  878. "events": [
  879. {
  880. "key": "bind:cancel",
  881. "desc": "取消按钮点击时触发",
  882. "label": ""
  883. },
  884. {
  885. "key": "bind:change",
  886. "desc": "选中值发生变化时触发",
  887. "label": ""
  888. },
  889. {
  890. "key": "bind:column-change",
  891. "desc": "每一列选中数据变化时触发",
  892. "label": ""
  893. },
  894. {
  895. "key": "bind:confirm",
  896. "desc": "确认按钮点击时触发",
  897. "label": ""
  898. }
  899. ],
  900. "tpl": "<t-date-time-picker title=\"选择日期\" visible=\"{{true}}\" mode=\"{{['date']}}\" format=\"YYYY-MM-DD\"></t-date-time-picker>",
  901. "path": "./date-time-picker/date-time-picker"
  902. },
  903. "t-dialog": {
  904. "key": "t-dialog",
  905. "label": "对话框",
  906. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-dialog.png",
  907. "properties": [
  908. {
  909. "key": "actions",
  910. "type": ["Array"],
  911. "desc": "操作栏",
  912. "label": ""
  913. },
  914. {
  915. "key": "buttonLayout",
  916. "type": ["String"],
  917. "desc": "多按钮排列方式",
  918. "label": ""
  919. },
  920. {
  921. "key": "cancelBtn",
  922. "type": ["String", "Object"],
  923. "desc": "取消按钮,可自定义。值为 null 则不显示取消按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制取消事件",
  924. "label": ""
  925. },
  926. {
  927. "key": "closeOnOverlayClick",
  928. "type": ["Boolean"],
  929. "desc": "点击蒙层时是否触发关闭事件",
  930. "label": ""
  931. },
  932. {
  933. "key": "confirmBtn",
  934. "type": ["String", "Object"],
  935. "desc": "确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制确认事件",
  936. "label": ""
  937. },
  938. {
  939. "key": "content",
  940. "type": ["String"],
  941. "desc": "内容",
  942. "label": ""
  943. },
  944. {
  945. "key": "preventScrollThrough",
  946. "type": ["Boolean"],
  947. "desc": "防止滚动穿透",
  948. "label": ""
  949. },
  950. {
  951. "key": "showInAttachedElement",
  952. "type": ["Boolean"],
  953. "desc": "【开发中】仅在挂载元素中显示抽屉,默认在浏览器可视区域显示。父元素需要有定位属性,如:position: relative",
  954. "label": ""
  955. },
  956. {
  957. "key": "showOverlay",
  958. "type": ["Boolean"],
  959. "desc": "是否显示遮罩层",
  960. "label": ""
  961. },
  962. {
  963. "key": "title",
  964. "type": ["String"],
  965. "desc": "标题",
  966. "label": ""
  967. },
  968. {
  969. "key": "visible",
  970. "type": ["Boolean"],
  971. "desc": "控制对话框是否显示",
  972. "label": ""
  973. },
  974. {
  975. "key": "zIndex",
  976. "type": ["Number"],
  977. "desc": "对话框层级,Web 侧样式默认为 2500,移动端和小程序样式默认为 1500",
  978. "label": ""
  979. }
  980. ],
  981. "externalClasses": ["t-class", "t-class-content", "t-class-confirm", "t-class-cancel"],
  982. "events": [
  983. {
  984. "key": "bind:cancel",
  985. "desc": "如果“取消”按钮存在,则点击“取消”按钮时触发,同时触发关闭事件",
  986. "label": ""
  987. },
  988. {
  989. "key": "bind:close",
  990. "desc": "关闭事件,点击 取消按钮 或 点击蒙层 时触发",
  991. "label": ""
  992. },
  993. {
  994. "key": "bind:overlay-click",
  995. "desc": "如果蒙层存在,点击蒙层时触发",
  996. "label": ""
  997. }
  998. ],
  999. "tpl": "<t-dialog visible=\"{{true}}\" title=\"对话框标题\" content=\"告知当前状态、信息和解决方法,等内容。描述文案尽可能控制在三行内\" confirm-btn=\"我知道了\" />",
  1000. "path": "./dialog/dialog"
  1001. },
  1002. "t-divider": {
  1003. "key": "t-divider",
  1004. "label": "分割线",
  1005. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-divider.png",
  1006. "properties": [
  1007. {
  1008. "key": "align",
  1009. "type": ["String"],
  1010. "desc": "文本位置(仅在水平分割线有效)",
  1011. "label": ""
  1012. },
  1013. {
  1014. "key": "content",
  1015. "type": ["String"],
  1016. "desc": "子元素",
  1017. "label": ""
  1018. },
  1019. {
  1020. "key": "dashed",
  1021. "type": ["Boolean"],
  1022. "desc": "是否虚线(仅在水平分割线有效)",
  1023. "label": ""
  1024. },
  1025. {
  1026. "key": "layout",
  1027. "type": ["String"],
  1028. "desc": "分隔线类型有两种:水平和垂直",
  1029. "label": ""
  1030. },
  1031. {
  1032. "key": "lineColor",
  1033. "type": ["String"],
  1034. "desc": "分隔线颜色",
  1035. "label": ""
  1036. }
  1037. ],
  1038. "externalClasses": ["t-class", "t-class-line", "t-class-content"],
  1039. "tpl": "<t-divider />",
  1040. "path": "./divider/divider"
  1041. },
  1042. "t-drawer": {
  1043. "key": "t-drawer",
  1044. "label": "模态抽屉",
  1045. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-drawer.png",
  1046. "properties": [
  1047. {
  1048. "key": "closeOnOverlayClick",
  1049. "type": ["Boolean"],
  1050. "desc": "点击蒙层时是否触发抽屉关闭事件",
  1051. "label": ""
  1052. },
  1053. {
  1054. "key": "destroyOnClose",
  1055. "type": ["Boolean"],
  1056. "desc": "抽屉关闭时是否销毁节点",
  1057. "label": ""
  1058. },
  1059. {
  1060. "key": "items",
  1061. "type": ["Array"],
  1062. "desc": "抽屉里的列表项",
  1063. "label": ""
  1064. },
  1065. {
  1066. "key": "placement",
  1067. "type": ["String"],
  1068. "desc": "抽屉方向",
  1069. "label": ""
  1070. },
  1071. {
  1072. "key": "showOverlay",
  1073. "type": ["Boolean"],
  1074. "desc": "是否显示遮罩层",
  1075. "label": ""
  1076. },
  1077. {
  1078. "key": "visible",
  1079. "type": ["Boolean"],
  1080. "desc": "组件是否可见",
  1081. "label": ""
  1082. },
  1083. {
  1084. "key": "zIndex",
  1085. "type": ["Number"],
  1086. "desc": "抽屉层级,样式默认为 1500",
  1087. "label": ""
  1088. }
  1089. ],
  1090. "events": [
  1091. {
  1092. "key": "bind:close",
  1093. "desc": "关闭事件,取消按钮点击时、关闭按钮点击时、点击蒙层时均会触发",
  1094. "label": ""
  1095. },
  1096. {
  1097. "key": "bind:item-click",
  1098. "desc": "点击抽屉里的列表项",
  1099. "label": ""
  1100. },
  1101. {
  1102. "key": "bind:overlay-click",
  1103. "desc": "如果蒙层存在,点击蒙层时触发",
  1104. "label": ""
  1105. }
  1106. ],
  1107. "tpl": "<t-drawer visible=\"{{true}}\" placement=\"left\" items=\"{{[{title: '菜单一'},{title: '菜单二'}]}}\"></t-drawer>",
  1108. "path": "./drawer/drawer"
  1109. },
  1110. "t-dropdown-item": {
  1111. "key": "t-dropdown-item",
  1112. "label": "下拉菜单子项",
  1113. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-dropdownmenu.png",
  1114. "properties": [
  1115. {
  1116. "key": "disabled",
  1117. "type": ["Boolean"],
  1118. "desc": "是否禁用",
  1119. "label": ""
  1120. },
  1121. {
  1122. "key": "label",
  1123. "type": ["String"],
  1124. "desc": "标题",
  1125. "label": ""
  1126. },
  1127. {
  1128. "key": "multiple",
  1129. "type": ["Boolean"],
  1130. "desc": "是否多选",
  1131. "label": ""
  1132. },
  1133. {
  1134. "key": "options",
  1135. "type": ["Array"],
  1136. "desc": "选项数据",
  1137. "label": ""
  1138. }
  1139. ],
  1140. "tpl": "<t-dropdown-item label=\"菜单\" options=\"{{[{label:'选项一',value:'option_1',disabled:false},{label:'选项二',value:'option_2',disabled:false},{label:'选项三',value:'option_3',disabled:false}]}}\" defaultValue=\"option_3\" /><t-dropdown-item label=\"菜单\" options=\"{{[{label:'选项一',value:'option_1',disabled:false},{label:'选项二',value:'option_2',disabled:false},{label:'选项三',value:'option_3',disabled:false}]}}\" defaultValue=\"option_3\" />",
  1141. "path": "./dropdown-menu/dropdown-item"
  1142. },
  1143. "t-dropdown-menu": {
  1144. "key": "t-dropdown-menu",
  1145. "label": "下拉菜单",
  1146. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-dropdownmenu.png",
  1147. "properties": [
  1148. {
  1149. "key": "activeColor",
  1150. "type": ["String"],
  1151. "desc": "【讨论中】菜单标题和选项的选中态颜色",
  1152. "label": ""
  1153. },
  1154. {
  1155. "key": "closeOnClickOverlay",
  1156. "type": ["Boolean"],
  1157. "desc": "是否在点击遮罩层后关闭菜单",
  1158. "label": ""
  1159. },
  1160. {
  1161. "key": "duration",
  1162. "type": ["String", "Number"],
  1163. "desc": "动画时长",
  1164. "label": ""
  1165. },
  1166. {
  1167. "key": "showOverlay",
  1168. "type": ["Boolean"],
  1169. "desc": "是否显示遮罩层",
  1170. "label": ""
  1171. },
  1172. {
  1173. "key": "zIndex",
  1174. "type": ["Number"],
  1175. "desc": "菜单栏 z-index 层级",
  1176. "label": ""
  1177. }
  1178. ],
  1179. "tpl": "<t-dropdown-menu><t-dropdown-item label=\"菜单\" options=\"{{[{label:'选项一',value:'option_1',disabled:false},{label:'选项二',value:'option_2',disabled:false},{label:'选项三',value:'option_3',disabled:false}]}}\" defaultValue=\"option_3\" /><t-dropdown-item label=\"菜单\" options=\"{{[{label:'选项一',value:'option_1',disabled:false},{label:'选项二',value:'option_2',disabled:false},{label:'选项三',value:'option_3',disabled:false}]}}\" defaultValue=\"option_3\" /></t-dropdown-menu>",
  1180. "require": {
  1181. "t-dropdown-item": "./dropdown-menu/dropdown-item"
  1182. },
  1183. "path": "./dropdown-menu/dropdown-menu"
  1184. },
  1185. "t-empty": {
  1186. "key": "t-empty",
  1187. "label": "空状态",
  1188. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-empty.png",
  1189. "properties": [
  1190. {
  1191. "key": "action",
  1192. "type": ["String"],
  1193. "desc": "操作按钮",
  1194. "label": ""
  1195. },
  1196. {
  1197. "key": "description",
  1198. "type": ["String"],
  1199. "desc": "描述文字",
  1200. "label": ""
  1201. },
  1202. {
  1203. "key": "icon",
  1204. "type": ["String"],
  1205. "desc": "图标名称",
  1206. "label": ""
  1207. },
  1208. {
  1209. "key": "image",
  1210. "type": ["String"],
  1211. "desc": "图片地址",
  1212. "label": ""
  1213. }
  1214. ],
  1215. "externalClasses": ["t-class", "t-class-description", "t-class-image", "t-class-actions"],
  1216. "tpl": "<t-empty icon=\"info-circle-filled\" />",
  1217. "path": "./empty/empty"
  1218. },
  1219. "t-fab": {
  1220. "key": "t-fab",
  1221. "label": "悬浮按钮",
  1222. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-fab.png",
  1223. "properties": [
  1224. {
  1225. "key": "buttonProps",
  1226. "type": ["Object"],
  1227. "desc": "透传至 Button 组件",
  1228. "label": ""
  1229. },
  1230. {
  1231. "key": "icon",
  1232. "type": ["String"],
  1233. "desc": "图标",
  1234. "label": ""
  1235. },
  1236. {
  1237. "key": "style",
  1238. "type": ["String"],
  1239. "desc": "悬浮按钮的样式,常用于调整位置",
  1240. "label": ""
  1241. },
  1242. {
  1243. "key": "text",
  1244. "type": ["String"],
  1245. "desc": "文本内容",
  1246. "label": ""
  1247. }
  1248. ],
  1249. "events": [
  1250. {
  1251. "key": "bind:click",
  1252. "desc": "悬浮按钮点击事件",
  1253. "label": ""
  1254. }
  1255. ],
  1256. "tpl": "<t-fab icon=\"add\" />",
  1257. "path": "./fab/fab"
  1258. },
  1259. "t-footer": {
  1260. "key": "t-footer",
  1261. "label": "布局-底部内容",
  1262. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-footer.png",
  1263. "properties": [
  1264. {
  1265. "key": "copyright",
  1266. "type": ["String"],
  1267. "desc": "版权信息,type 为`text`生效",
  1268. "label": ""
  1269. },
  1270. {
  1271. "key": "logo",
  1272. "type": ["Object"],
  1273. "desc": "图标配置,type 为`logo`生效。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.url` 表示链接跳转地址",
  1274. "label": ""
  1275. },
  1276. {
  1277. "key": "textLinkList",
  1278. "type": ["Array"],
  1279. "desc": "链接列表,type 为`text`生效。name 表示链接名称, url 表示链接 page 路径,目前只支持小程序内部跳转,openType 表示跳转方式",
  1280. "label": ""
  1281. },
  1282. {
  1283. "key": "theme",
  1284. "type": ["String"],
  1285. "desc": "页脚展示类型",
  1286. "label": ""
  1287. }
  1288. ],
  1289. "tpl": "<t-footer theme=\"text\" copyright=\"Copyright © 2021-2031 TD.All Rights Reserved.\" />",
  1290. "path": "./footer/footer"
  1291. },
  1292. "t-grid-item": {
  1293. "key": "t-grid-item",
  1294. "label": "宫格子项",
  1295. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-grid.png",
  1296. "properties": [
  1297. {
  1298. "key": "badgeProps",
  1299. "type": ["Object"],
  1300. "desc": "头像右上角提示信息,继承 Badge 组件的全部特性。如:小红点,或者数字",
  1301. "label": ""
  1302. },
  1303. {
  1304. "key": "description",
  1305. "type": ["String"],
  1306. "desc": "文本以外的更多描述,辅助信息。可以通过 Props 传入文本,也可以自定义标题节点",
  1307. "label": ""
  1308. },
  1309. {
  1310. "key": "image",
  1311. "type": ["String"],
  1312. "desc": "图片,可以是图片地址,也可以自定义图片节点",
  1313. "label": ""
  1314. },
  1315. {
  1316. "key": "jumpType",
  1317. "type": ["String"],
  1318. "desc": "链接跳转类型",
  1319. "label": ""
  1320. },
  1321. {
  1322. "key": "layout",
  1323. "type": ["String"],
  1324. "desc": "内容布局方式",
  1325. "label": ""
  1326. },
  1327. {
  1328. "key": "text",
  1329. "type": ["String"],
  1330. "desc": "文本,可以通过 Props 传入文本,也可以自定义标题节点",
  1331. "label": ""
  1332. },
  1333. {
  1334. "key": "url",
  1335. "type": ["String"],
  1336. "desc": "点击后的跳转链接",
  1337. "label": ""
  1338. }
  1339. ],
  1340. "externalClasses": ["t-class", "t-class-image", "t-class-text", "t-class-description"],
  1341. "tpl": "<t-grid-item text=\"标题文字\"><image style=\"width: 96rpx; height: 96rpx\" src=\"https://tdesign.gtimg.com/mobile/%E5%9B%BE%E7%89%87.png\" slot=\"image\" /></t-grid-item>",
  1342. "path": "./grid/grid-item"
  1343. },
  1344. "t-grid": {
  1345. "key": "t-grid",
  1346. "label": "栅格",
  1347. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-grid.png",
  1348. "properties": [
  1349. {
  1350. "key": "align",
  1351. "type": ["String"],
  1352. "desc": "内容对齐方式",
  1353. "label": ""
  1354. },
  1355. {
  1356. "key": "border",
  1357. "type": ["Boolean", "Object"],
  1358. "desc": "边框,默认不显示。值为 true 则显示默认边框,值类型为 object 则表示自定义边框样式",
  1359. "label": ""
  1360. },
  1361. {
  1362. "key": "column",
  1363. "type": ["Number"],
  1364. "desc": "每一行的列数量",
  1365. "label": ""
  1366. },
  1367. {
  1368. "key": "gutter",
  1369. "type": ["Number"],
  1370. "desc": "间隔大小",
  1371. "label": ""
  1372. },
  1373. {
  1374. "key": "hover",
  1375. "type": ["Boolean"],
  1376. "desc": "是否开启点击反馈",
  1377. "label": ""
  1378. }
  1379. ],
  1380. "externalClasses": ["t-class"],
  1381. "tpl": "<t-grid column=\"{{2}}\"><t-grid-item text=\"标题文字\"><image style=\"width: 96rpx; height: 96rpx\" src=\"https://tdesign.gtimg.com/mobile/%E5%9B%BE%E7%89%87.png\" slot=\"image\" /></t-grid-item><t-grid-item text=\"标题文字\"><image style=\"width: 96rpx; height: 96rpx\" src=\"https://tdesign.gtimg.com/mobile/%E5%9B%BE%E7%89%87.png\" slot=\"image\" /></t-grid-item></t-grid>",
  1382. "require": {
  1383. "t-grid-item": "./grid/grid-item"
  1384. },
  1385. "path": "./grid/grid"
  1386. },
  1387. "t-icon": {
  1388. "key": "t-icon",
  1389. "label": "图标",
  1390. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-icon.png",
  1391. "properties": [
  1392. {
  1393. "key": "classPrefix",
  1394. "type": ["String"],
  1395. "desc": "自定义icon前缀",
  1396. "label": ""
  1397. },
  1398. {
  1399. "key": "color",
  1400. "type": ["String"],
  1401. "desc": "图标颜色",
  1402. "label": ""
  1403. },
  1404. {
  1405. "key": "customStyle",
  1406. "type": ["String"],
  1407. "desc": "自定义样式",
  1408. "label": ""
  1409. },
  1410. {
  1411. "key": "name",
  1412. "type": ["String"],
  1413. "desc": "图标名称",
  1414. "label": ""
  1415. },
  1416. {
  1417. "key": "size",
  1418. "type": ["String", "Number"],
  1419. "desc": "图标名称",
  1420. "label": ""
  1421. }
  1422. ],
  1423. "tpl": "<t-icon name=\"add-circle\" />",
  1424. "path": "./icon/icon"
  1425. },
  1426. "t-image": {
  1427. "key": "t-image",
  1428. "label": "图片",
  1429. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-image.png",
  1430. "properties": [
  1431. {
  1432. "key": "error",
  1433. "type": ["String"],
  1434. "desc": "加载失败时显示的内容。值为 `default` 则表示使用默认加载失败风格;值为空或者 `slot` 表示使用插槽渲染,插槽名称为 `error`;值为其他则表示普通文本内容,如“加载失败”",
  1435. "label": ""
  1436. },
  1437. {
  1438. "key": "lazy",
  1439. "type": ["Boolean"],
  1440. "desc": "是否开启图片懒加载",
  1441. "label": ""
  1442. },
  1443. {
  1444. "key": "loading",
  1445. "type": ["String"],
  1446. "desc": "加载态内容。值为 `default` 则表示使用默认加载中风格;值为空或者 `slot` 表示使用插槽渲染,插槽名称为 `loading`;值为其他则表示普通文本内容,如“加载中”",
  1447. "label": ""
  1448. },
  1449. {
  1450. "key": "shape",
  1451. "type": ["String"],
  1452. "desc": "图片圆角类型",
  1453. "label": ""
  1454. },
  1455. {
  1456. "key": "src",
  1457. "type": ["String"],
  1458. "desc": "图片链接",
  1459. "label": ""
  1460. }
  1461. ],
  1462. "externalClasses": ["t-class", "t-class-load"],
  1463. "events": [
  1464. {
  1465. "key": "bind:error",
  1466. "desc": "图片加载失败时触发",
  1467. "label": ""
  1468. },
  1469. {
  1470. "key": "bind:load",
  1471. "desc": "图片加载完成时触发",
  1472. "label": ""
  1473. }
  1474. ],
  1475. "tpl": "<t-image src=\"https://tdesign.gtimg.com/mobile/%E5%9B%BE%E7%89%87.png\" mode=\"aspectFill\"></t-image>",
  1476. "path": "./image/image"
  1477. },
  1478. "t-indexes": {
  1479. "key": "t-indexes",
  1480. "label": "索引",
  1481. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-indexes.png",
  1482. "properties": [
  1483. {
  1484. "key": "height",
  1485. "type": ["Number"],
  1486. "desc": "列表高度,未设置默认占满设备高度",
  1487. "label": ""
  1488. },
  1489. {
  1490. "key": "list",
  1491. "type": ["Array"],
  1492. "desc": "索引列表的列表数据。每个元素包含三个子元素,index(string):索引值,例如1,2,3,...或A,B,C等;title(string): 索引标题,可不填将默认设为索引值;children(Array<{title: string}>): 子元素列表,title为子元素的展示文案。",
  1493. "label": ""
  1494. },
  1495. {
  1496. "key": "sticky",
  1497. "type": ["Boolean"],
  1498. "desc": "索引是否吸顶,默认为true",
  1499. "label": ""
  1500. }
  1501. ],
  1502. "events": [
  1503. {
  1504. "key": "bind:select",
  1505. "desc": "点击行元素时触发事件",
  1506. "label": ""
  1507. }
  1508. ],
  1509. "tpl": "<t-indexes id=\"bar\" list=\"{{ [{ title: 'A开头', index: 'A', children: [{ title: '阿坝' }]},{ title: 'B开头', index: 'B', children: [{ title: '北京' }]}] }}\" />",
  1510. "path": "./indexes/indexes"
  1511. },
  1512. "t-input": {
  1513. "key": "t-input",
  1514. "label": "输入框",
  1515. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-input.png",
  1516. "properties": [
  1517. {
  1518. "key": "align",
  1519. "type": ["String"],
  1520. "desc": "文本内容位置,居左/居中/居右",
  1521. "label": ""
  1522. },
  1523. {
  1524. "key": "borderless",
  1525. "type": ["Boolean"],
  1526. "desc": "【讨论中】是否开启无边框模式",
  1527. "label": ""
  1528. },
  1529. {
  1530. "key": "clearable",
  1531. "type": ["Boolean"],
  1532. "desc": "是否可清空",
  1533. "label": ""
  1534. },
  1535. {
  1536. "key": "disabled",
  1537. "type": ["Boolean"],
  1538. "desc": "是否禁用输入框",
  1539. "label": ""
  1540. },
  1541. {
  1542. "key": "errorMessage",
  1543. "type": ["String"],
  1544. "desc": "错误提示文本,值为空不显示(废弃属性,如果需要,请更为使用 status 和 tips)",
  1545. "label": ""
  1546. },
  1547. {
  1548. "key": "format",
  1549. "type": ["String"],
  1550. "desc": "【开发中】指定输入框展示值的格式",
  1551. "label": ""
  1552. },
  1553. {
  1554. "key": "label",
  1555. "type": ["String"],
  1556. "desc": "左侧文本",
  1557. "label": ""
  1558. },
  1559. {
  1560. "key": "maxcharacter",
  1561. "type": ["Number"],
  1562. "desc": "用户最多可以输入的字符个数,一个中文汉字表示两个字符长度。`maxcharacter` 和 `maxlength` 二选一使用",
  1563. "label": ""
  1564. },
  1565. {
  1566. "key": "maxlength",
  1567. "type": ["Number"],
  1568. "desc": "用户最多可以输入的文本长度,一个中文等于一个计数长度。值小于等于 0 的时候,则表示不限制输入长度。`maxcharacter` 和 `maxlength` 二选一使用",
  1569. "label": ""
  1570. },
  1571. {
  1572. "key": "placeholder",
  1573. "type": ["String"],
  1574. "desc": "占位符",
  1575. "label": ""
  1576. },
  1577. {
  1578. "key": "prefixIcon",
  1579. "type": ["String"],
  1580. "desc": "组件前置图标,值为字符串则表示图标名称",
  1581. "label": ""
  1582. },
  1583. {
  1584. "key": "readonly",
  1585. "type": ["Boolean"],
  1586. "desc": "只读状态",
  1587. "label": ""
  1588. },
  1589. {
  1590. "key": "size",
  1591. "type": ["String"],
  1592. "desc": "输入框尺寸",
  1593. "label": ""
  1594. },
  1595. {
  1596. "key": "status",
  1597. "type": ["String"],
  1598. "desc": "输入框状态",
  1599. "label": ""
  1600. },
  1601. {
  1602. "key": "suffix",
  1603. "type": ["String"],
  1604. "desc": "后置图标前的后置内容",
  1605. "label": ""
  1606. },
  1607. {
  1608. "key": "suffixIcon",
  1609. "type": ["String"],
  1610. "desc": "后置文本内容,值为字符串则表示图标名称",
  1611. "label": ""
  1612. },
  1613. {
  1614. "key": "tips",
  1615. "type": ["String"],
  1616. "desc": "输入框下方提示文本,会根据不同的 `status` 呈现不同的样式",
  1617. "label": ""
  1618. },
  1619. {
  1620. "key": "value",
  1621. "type": ["String", "Number"],
  1622. "desc": "输入框的值",
  1623. "label": ""
  1624. }
  1625. ],
  1626. "externalClasses": ["t-class", "t-class-input", "t-class-placeholder", "t-class-error-msg"],
  1627. "events": [
  1628. {
  1629. "key": "bind:blur",
  1630. "desc": "失去焦点时触发",
  1631. "label": ""
  1632. },
  1633. {
  1634. "key": "bind:change",
  1635. "desc": "输入框值发生变化时触发",
  1636. "label": ""
  1637. },
  1638. {
  1639. "key": "bind:clear",
  1640. "desc": "清空按钮点击时触发",
  1641. "label": ""
  1642. },
  1643. {
  1644. "key": "bind:enter",
  1645. "desc": "回车键按下时触发",
  1646. "label": ""
  1647. },
  1648. {
  1649. "key": "bind:focus",
  1650. "desc": "获得焦点时触发",
  1651. "label": ""
  1652. }
  1653. ],
  1654. "tpl": "<t-input placeholder=\"请输入文字\" />",
  1655. "path": "./input/input"
  1656. },
  1657. "t-loading": {
  1658. "key": "t-loading",
  1659. "label": "加载中",
  1660. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-loading.png",
  1661. "properties": [
  1662. {
  1663. "key": "delay",
  1664. "type": ["Number"],
  1665. "desc": "延迟显示加载效果的时间,用于防止请求速度过快引起的加载闪烁,单位:毫秒",
  1666. "label": ""
  1667. },
  1668. {
  1669. "key": "duration",
  1670. "type": ["Number"],
  1671. "desc": "加载动画执行完成一次的时间,单位:毫秒",
  1672. "label": ""
  1673. },
  1674. {
  1675. "key": "indicator",
  1676. "type": ["Boolean"],
  1677. "desc": "是否显示加载指示符",
  1678. "label": ""
  1679. },
  1680. {
  1681. "key": "inheritColor",
  1682. "type": ["Boolean"],
  1683. "desc": "是否继承父元素颜色",
  1684. "label": ""
  1685. },
  1686. {
  1687. "key": "layout",
  1688. "type": ["String"],
  1689. "desc": "对齐方式",
  1690. "label": ""
  1691. },
  1692. {
  1693. "key": "loading",
  1694. "type": ["Boolean"],
  1695. "desc": "是否处于加载状态",
  1696. "label": ""
  1697. },
  1698. {
  1699. "key": "pause",
  1700. "type": ["Boolean"],
  1701. "desc": "是否暂停动画",
  1702. "label": ""
  1703. },
  1704. {
  1705. "key": "progress",
  1706. "type": ["Number"],
  1707. "desc": "加载进度",
  1708. "label": ""
  1709. },
  1710. {
  1711. "key": "reverse",
  1712. "type": ["Boolean"],
  1713. "desc": "加载动画是否反向",
  1714. "label": ""
  1715. },
  1716. {
  1717. "key": "size",
  1718. "type": ["String"],
  1719. "desc": "尺寸,示例:40rpx/20px",
  1720. "label": ""
  1721. },
  1722. {
  1723. "key": "text",
  1724. "type": ["String"],
  1725. "desc": "加载提示文案",
  1726. "label": ""
  1727. },
  1728. {
  1729. "key": "theme",
  1730. "type": ["String"],
  1731. "desc": "加载组件类型",
  1732. "label": ""
  1733. }
  1734. ],
  1735. "externalClasses": ["t-class", "t-class-text", "t-class-indicator"],
  1736. "tpl": "<t-loading theme=\"circular\" size=\"40rpx\"></t-loading>",
  1737. "path": "./loading/loading"
  1738. },
  1739. "t-message": {
  1740. "key": "t-message",
  1741. "label": "全局提醒",
  1742. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-message.png",
  1743. "properties": [
  1744. {
  1745. "key": "action",
  1746. "type": ["String"],
  1747. "desc": "操作",
  1748. "label": ""
  1749. },
  1750. {
  1751. "key": "align",
  1752. "type": ["String"],
  1753. "desc": "文本对齐方式",
  1754. "label": ""
  1755. },
  1756. {
  1757. "key": "closeBtn",
  1758. "type": ["String", "Boolean"],
  1759. "desc": "关闭按钮,可以自定义。值为 true 显示默认关闭按钮,值为 false 不显示关闭按钮。值类型为 string 则直接显示值,如:“关闭”。也可以完全自定义按钮",
  1760. "label": ""
  1761. },
  1762. {
  1763. "key": "content",
  1764. "type": ["String"],
  1765. "desc": "用于自定义消息弹出内容",
  1766. "label": ""
  1767. },
  1768. {
  1769. "key": "duration",
  1770. "type": ["Number"],
  1771. "desc": "消息内置计时器,计时到达时会触发 duration-end 事件。单位:毫秒。值为 0 则表示没有计时器。",
  1772. "label": ""
  1773. },
  1774. {
  1775. "key": "icon",
  1776. "type": ["String", "Boolean"],
  1777. "desc": "消息提醒前面的图标。值为 true 则根据 theme 显示对应的图标,值为 false 则不显示图标。值为 'info' 或 'bell' 则显示组件内置图标。也可以完全自定义图标节点",
  1778. "label": ""
  1779. },
  1780. {
  1781. "key": "marquee",
  1782. "type": ["Boolean", "Object"],
  1783. "desc": "跑马灯效果。speed 指速度控制;loop 指循环播放次数,值为 -1 表示循环播放,值为 0 表示不循环播放;delay 表示延迟多久开始播放",
  1784. "label": ""
  1785. },
  1786. {
  1787. "key": "offset",
  1788. "type": ["Array"],
  1789. "desc": "相对于 placement 的偏移量,示例:[-10, 20] 或 ['10rpx', '8rpx']",
  1790. "label": ""
  1791. },
  1792. {
  1793. "key": "theme",
  1794. "type": ["String"],
  1795. "desc": "消息组件风格",
  1796. "label": ""
  1797. },
  1798. {
  1799. "key": "visible",
  1800. "type": ["Boolean"],
  1801. "desc": "是否显示,隐藏时默认销毁组件",
  1802. "label": ""
  1803. },
  1804. {
  1805. "key": "zIndex",
  1806. "type": ["Number"],
  1807. "desc": "元素层级,样式默认为 5000",
  1808. "label": ""
  1809. }
  1810. ],
  1811. "externalClasses": ["t-class", "t-class-content", "t-class-icon", "t-class-action", "t-class-close-btn"],
  1812. "events": [
  1813. {
  1814. "key": "bind:action-btn-click",
  1815. "desc": "当操作按钮存在时,用户点击操作按钮时触发",
  1816. "label": ""
  1817. },
  1818. {
  1819. "key": "bind:close-btn-click",
  1820. "desc": "当关闭按钮存在时,用户点击关闭按钮触发",
  1821. "label": ""
  1822. },
  1823. {
  1824. "key": "bind:duration-end",
  1825. "desc": "计时结束后触发",
  1826. "label": ""
  1827. }
  1828. ],
  1829. "tpl": "<t-message id=\"t-message\" />",
  1830. "path": "./message/message"
  1831. },
  1832. "t-navbar": {
  1833. "key": "t-navbar",
  1834. "label": "导航条",
  1835. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-navbar.png",
  1836. "properties": [
  1837. {
  1838. "key": "animation",
  1839. "type": ["Boolean"],
  1840. "desc": "是否添加动画效果",
  1841. "label": ""
  1842. },
  1843. {
  1844. "key": "background",
  1845. "type": ["String"],
  1846. "desc": "背景",
  1847. "label": ""
  1848. },
  1849. {
  1850. "key": "delta",
  1851. "type": ["Number"],
  1852. "desc": "后退按钮后退层数,含义参考 [wx.navigateBack](https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.navigateBack.html),特殊的,传入 0 不会发生执行 wx.navigateBack,只会触发一个 goback 事件供自行处理。",
  1853. "label": ""
  1854. },
  1855. {
  1856. "key": "fixed",
  1857. "type": ["Boolean"],
  1858. "desc": "是否固定在顶部",
  1859. "label": ""
  1860. },
  1861. {
  1862. "key": "homeIcon",
  1863. "type": ["String"],
  1864. "desc": "首页图标地址。值为 '' 或者 undefiend 则表示不显示返回图标,值为 'circle' 表示显示默认图标,值为 'slot' 表示使用插槽渲染,值为其他则表示图标地址",
  1865. "label": ""
  1866. },
  1867. {
  1868. "key": "leftIcon",
  1869. "type": ["String"],
  1870. "desc": "左侧图标地址,值为 '' 或者 undefiend 则表示不显示返回图标,值为 'arrow-left' 表示显示返回图标,值为 'slot' 表示使用插槽渲染,值为其他则表示图标地址",
  1871. "label": ""
  1872. },
  1873. {
  1874. "key": "title",
  1875. "type": ["String"],
  1876. "desc": "页面标题",
  1877. "label": ""
  1878. },
  1879. {
  1880. "key": "titleMaxLength",
  1881. "type": ["Number"],
  1882. "desc": "标题文字最大长度,超出的范围使用 `...` 表示",
  1883. "label": ""
  1884. },
  1885. {
  1886. "key": "visible",
  1887. "type": ["Boolean"],
  1888. "desc": "是否显示",
  1889. "label": ""
  1890. }
  1891. ],
  1892. "externalClasses": ["t-class", "t-class-title", "t-class-left-icon", "t-class-home-icon", "t-class-capsule"],
  1893. "events": [
  1894. {
  1895. "key": "bind:complete",
  1896. "desc": "navigateBack 执行完成后触发(失败或成功均会触发)",
  1897. "label": ""
  1898. },
  1899. {
  1900. "key": "bind:fail",
  1901. "desc": "navigateBack 执行失败后触发",
  1902. "label": ""
  1903. },
  1904. {
  1905. "key": "bind:go-back",
  1906. "desc": "delta 值为 0 时,点击返回,触发该事件",
  1907. "label": ""
  1908. },
  1909. {
  1910. "key": "bind:go-home",
  1911. "desc": "点击 Home 触发",
  1912. "label": ""
  1913. },
  1914. {
  1915. "key": "bind:success",
  1916. "desc": "navigateBack 执行成功后触发",
  1917. "label": ""
  1918. }
  1919. ],
  1920. "tpl": "<t-navbar title=\"标题\" />",
  1921. "path": "./navbar/navbar"
  1922. },
  1923. "t-picker-item": {
  1924. "key": "t-picker-item",
  1925. "label": "选择器子项",
  1926. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-picker.png",
  1927. "properties": [
  1928. {
  1929. "key": "format",
  1930. "type": ["String"],
  1931. "desc": "格式化标签",
  1932. "label": ""
  1933. },
  1934. {
  1935. "key": "options",
  1936. "type": ["Array"],
  1937. "desc": "数据源",
  1938. "label": ""
  1939. }
  1940. ],
  1941. "tpl": "<t-picker-item options=\"{{[{ label: '上海', value: '上海' },{ label: '广州', value: '广州' },{ label: '深圳', value: '深圳' }]}}\" value=\"广州\"></t-picker-item>",
  1942. "path": "./picker/picker-item"
  1943. },
  1944. "t-picker": {
  1945. "key": "t-picker",
  1946. "label": "选择器",
  1947. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-picker.png",
  1948. "properties": [
  1949. {
  1950. "key": "cancelBtn",
  1951. "type": ["String", "Object"],
  1952. "desc": "取消按钮文字",
  1953. "label": ""
  1954. },
  1955. {
  1956. "key": "confirmBtn",
  1957. "type": ["String", "Object"],
  1958. "desc": "确定按钮文字",
  1959. "label": ""
  1960. },
  1961. {
  1962. "key": "footer",
  1963. "type": ["String"],
  1964. "desc": "底部内容",
  1965. "label": ""
  1966. },
  1967. {
  1968. "key": "header",
  1969. "type": ["Boolean"],
  1970. "desc": "头部内容。值为 true 显示空白头部,值为 false 不显示任何内容,值类型为 TNode 表示自定义头部内容",
  1971. "label": ""
  1972. },
  1973. {
  1974. "key": "title",
  1975. "type": ["String"],
  1976. "desc": "标题",
  1977. "label": ""
  1978. },
  1979. {
  1980. "key": "value",
  1981. "type": ["Array"],
  1982. "desc": "选中值",
  1983. "label": ""
  1984. },
  1985. {
  1986. "key": "visible",
  1987. "type": ["Boolean"],
  1988. "desc": "是否显示",
  1989. "label": ""
  1990. }
  1991. ],
  1992. "events": [
  1993. {
  1994. "key": "bind:cancel",
  1995. "desc": "点击取消按钮时触发",
  1996. "label": ""
  1997. },
  1998. {
  1999. "key": "bind:change",
  2000. "desc": "选中变化时候触发",
  2001. "label": ""
  2002. },
  2003. {
  2004. "key": "bind:pick",
  2005. "desc": "任何一列选中都会触发,不同的列参数不同。`context.column` 表示第几列变化,`context.index` 表示变化那一列的选中项下标",
  2006. "label": ""
  2007. }
  2008. ],
  2009. "tpl": "<t-picker visible=\"{{true}}\" cancelBtn=\"取消\" confirmBtn=\"确认\"><t-picker-item options=\"{{[{ label: '上海', value: '上海' },{ label: '广州', value: '广州' },{ label: '深圳', value: '深圳' }]}}\" value=\"广州\"></t-picker-item></t-picker>",
  2010. "require": {
  2011. "t-picker-item": "./picker/picker-item"
  2012. },
  2013. "path": "./picker/picker"
  2014. },
  2015. "t-popup": {
  2016. "key": "t-popup",
  2017. "label": "气泡框",
  2018. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-popup.png",
  2019. "properties": [
  2020. {
  2021. "key": "closeBtn",
  2022. "type": ["Boolean"],
  2023. "desc": "关闭按钮,值类型为 Boolean 时表示是否显示关闭按钮。也可以自定义关闭按钮",
  2024. "label": ""
  2025. },
  2026. {
  2027. "key": "closeOnOverlayClick",
  2028. "type": ["Boolean"],
  2029. "desc": "点击遮罩层是否关闭",
  2030. "label": ""
  2031. },
  2032. {
  2033. "key": "content",
  2034. "type": ["String"],
  2035. "desc": "浮层里面的内容",
  2036. "label": ""
  2037. },
  2038. {
  2039. "key": "placement",
  2040. "type": ["String"],
  2041. "desc": "浮层出现位置",
  2042. "label": ""
  2043. },
  2044. {
  2045. "key": "preventScrollThrough",
  2046. "type": ["Boolean"],
  2047. "desc": "防止滚动穿透",
  2048. "label": ""
  2049. },
  2050. {
  2051. "key": "showOverlay",
  2052. "type": ["Boolean"],
  2053. "desc": "是否显示遮罩层",
  2054. "label": ""
  2055. },
  2056. {
  2057. "key": "transitionProps",
  2058. "type": ["Object"],
  2059. "desc": "动画效果定义",
  2060. "label": ""
  2061. },
  2062. {
  2063. "key": "visible",
  2064. "type": ["Boolean"],
  2065. "desc": "是否显示浮层",
  2066. "label": ""
  2067. },
  2068. {
  2069. "key": "zIndex",
  2070. "type": ["Number"],
  2071. "desc": "组件层级,Web 侧样式默认为 5500,移动端和小程序样式默认为 1500",
  2072. "label": ""
  2073. }
  2074. ],
  2075. "externalClasses": ["t-class", "t-class-overlay", "t-class-content"],
  2076. "events": [
  2077. {
  2078. "key": "bind:visible-change",
  2079. "desc": "当浮层隐藏或显示时触发",
  2080. "label": ""
  2081. }
  2082. ],
  2083. "tpl": "<t-popup visible=\"{{true}}\" placement=\"top\"><view style=\"width: 100vw; height: 35vh; background: #fff\" /></t-popup>",
  2084. "path": "./popup/popup"
  2085. },
  2086. "t-progress": {
  2087. "key": "t-progress",
  2088. "label": "进度条",
  2089. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-progress.png",
  2090. "properties": [
  2091. {
  2092. "key": "color",
  2093. "type": ["String", "Object", "Array"],
  2094. "desc": "进度条颜色。示例:'#ED7B2F' 或 'orange' 或 `['#f00', '#0ff', '#f0f']` 或 `{ '0%': '#f00', '100%': '#0ff' }` 或 `{ from: '#000', to: '#000' }` 等",
  2095. "label": ""
  2096. },
  2097. {
  2098. "key": "label",
  2099. "type": ["String", "Boolean"],
  2100. "desc": "进度百分比,可自定义",
  2101. "label": ""
  2102. },
  2103. {
  2104. "key": "percentage",
  2105. "type": ["Number"],
  2106. "desc": "进度条百分比",
  2107. "label": ""
  2108. },
  2109. {
  2110. "key": "size",
  2111. "type": ["String", "Number"],
  2112. "desc": "进度条尺寸,示例:small/medium/large/240。small 值为 72; medium 值为 112;large 值为 160",
  2113. "label": ""
  2114. },
  2115. {
  2116. "key": "status",
  2117. "type": ["String"],
  2118. "desc": "进度条状态",
  2119. "label": ""
  2120. },
  2121. {
  2122. "key": "strokeWidth",
  2123. "type": ["String", "Number"],
  2124. "desc": "进度条线宽。宽度数值不能超过 size 的一半,否则不能输出环形进度",
  2125. "label": ""
  2126. },
  2127. {
  2128. "key": "theme",
  2129. "type": ["String"],
  2130. "desc": "进度条风格。值为 line,标签(label)显示在进度条右侧;值为 plump,标签(label)显示在进度条里面;值为 circle,标签(label)显示在进度条正中间",
  2131. "label": ""
  2132. },
  2133. {
  2134. "key": "trackColor",
  2135. "type": ["String"],
  2136. "desc": "进度条未完成部分颜色",
  2137. "label": ""
  2138. }
  2139. ],
  2140. "tpl": "<t-progress></t-progress>",
  2141. "path": "./progress/progress"
  2142. },
  2143. "t-pull-down-refresh": {
  2144. "key": "t-pull-down-refresh",
  2145. "label": "下拉刷新",
  2146. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-pulldownrefresh.png",
  2147. "properties": [
  2148. {
  2149. "key": "loadingBarHeight",
  2150. "type": ["String", "Number"],
  2151. "desc": "加载中下拉高度,如果值为数字则单位是:'px'",
  2152. "label": ""
  2153. },
  2154. {
  2155. "key": "loadingProps",
  2156. "type": ["Object"],
  2157. "desc": "加载loading样式",
  2158. "label": ""
  2159. },
  2160. {
  2161. "key": "loadingTexts",
  2162. "type": ["Array"],
  2163. "desc": "提示语,组件内部默认值为 ['下拉刷新', '松手刷新', '正在刷新', '刷新完成']",
  2164. "label": ""
  2165. },
  2166. {
  2167. "key": "maxBarHeight",
  2168. "type": ["String", "Number"],
  2169. "desc": "最大下拉高度,如果值为数字则单位是:'px'",
  2170. "label": ""
  2171. },
  2172. {
  2173. "key": "refreshTimeout",
  2174. "type": ["Number"],
  2175. "desc": "刷新超时时间",
  2176. "label": ""
  2177. },
  2178. {
  2179. "key": "value",
  2180. "type": ["Boolean"],
  2181. "desc": "组件状态,值为 `true` 表示下拉状态,值为 `false` 表示收起状态",
  2182. "label": ""
  2183. }
  2184. ],
  2185. "externalClasses": ["t-class", "t-class-loading", "t-class-text", "t-class-indicator"],
  2186. "events": [
  2187. {
  2188. "key": "bind:change",
  2189. "desc": "下拉或收起时触发,用户手势往下滑动触发下拉状态,手势松开触发收起状态",
  2190. "label": ""
  2191. },
  2192. {
  2193. "key": "bind:refresh",
  2194. "desc": "结束下拉时触发",
  2195. "label": ""
  2196. },
  2197. {
  2198. "key": "bind:timeout",
  2199. "desc": "刷新超时触发",
  2200. "label": ""
  2201. }
  2202. ],
  2203. "tpl": "<t-pull-down-refresh id=\"pull-down-refresh\" loadingTexts=\"{{['继续拉哦', '该松手啦', '努力刷新中', '完成~']}}\"><view style=\"height: 300rpx; background: #fff; text-align: center\">拖拽该区域演示 中间下拉刷新</view></t-pull-down-refresh>",
  2204. "path": "./pull-down-refresh/pull-down-refresh"
  2205. },
  2206. "t-radio-group": {
  2207. "key": "t-radio-group",
  2208. "label": "单选框组",
  2209. "icon": "",
  2210. "properties": [
  2211. {
  2212. "key": "disabled",
  2213. "type": ["Boolean"],
  2214. "desc": "是否禁用全部子单选框",
  2215. "label": ""
  2216. },
  2217. {
  2218. "key": "name",
  2219. "type": ["String"],
  2220. "desc": "HTML 元素原生属性",
  2221. "label": ""
  2222. },
  2223. {
  2224. "key": "options",
  2225. "type": ["Array"],
  2226. "desc": "单选组件按钮形式。RadioOption 数据类型为 string 或 number 时,表示 label 和 value 值相同",
  2227. "label": ""
  2228. },
  2229. {
  2230. "key": "value",
  2231. "type": ["String", "Number", "Boolean"],
  2232. "desc": "选中的值",
  2233. "label": ""
  2234. }
  2235. ],
  2236. "events": [
  2237. {
  2238. "key": "bind:change",
  2239. "desc": "选中值发生变化时触发",
  2240. "label": ""
  2241. }
  2242. ],
  2243. "tpl": "<t-radio-group defaultValue=\"radio1\"><t-radio value=\"radio1\" label=\"单选\" /><t-radio value=\"radio2\" label=\"单选\" /></t-radio-group>",
  2244. "require": {
  2245. "t-radio": "./radio/radio"
  2246. },
  2247. "path": "./radio-group/radio-group"
  2248. },
  2249. "t-radio": {
  2250. "key": "t-radio",
  2251. "label": "单选框",
  2252. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-radio.png",
  2253. "properties": [
  2254. {
  2255. "key": "align",
  2256. "type": ["String"],
  2257. "desc": "复选框和内容相对位置",
  2258. "label": ""
  2259. },
  2260. {
  2261. "key": "allowUncheck",
  2262. "type": ["Boolean"],
  2263. "desc": "是否允许取消选中",
  2264. "label": ""
  2265. },
  2266. {
  2267. "key": "checked",
  2268. "type": ["Boolean"],
  2269. "desc": "是否选中",
  2270. "label": ""
  2271. },
  2272. {
  2273. "key": "color",
  2274. "type": ["String"],
  2275. "desc": "单选按钮颜色",
  2276. "label": ""
  2277. },
  2278. {
  2279. "key": "content",
  2280. "type": ["String"],
  2281. "desc": "单选内容",
  2282. "label": ""
  2283. },
  2284. {
  2285. "key": "contentDisabled",
  2286. "type": ["Boolean"],
  2287. "desc": "是否禁用组件内容(content)触发选中",
  2288. "label": ""
  2289. },
  2290. {
  2291. "key": "disabled",
  2292. "type": ["Boolean"],
  2293. "desc": "是否为禁用态",
  2294. "label": ""
  2295. },
  2296. {
  2297. "key": "icon",
  2298. "type": ["String", "Array"],
  2299. "desc": "自定义选中图标和非选中图标。示例:[选中态图标,非选中态图标]。值为 fill-circle 表示图标为填充型图标,值为 stroke-line 表示图标为描边型图标",
  2300. "label": ""
  2301. },
  2302. {
  2303. "key": "label",
  2304. "type": ["String"],
  2305. "desc": "主文案",
  2306. "label": ""
  2307. },
  2308. {
  2309. "key": "maxContentRow",
  2310. "type": ["Number"],
  2311. "desc": "内容最大行数限制",
  2312. "label": ""
  2313. },
  2314. {
  2315. "key": "maxLabelRow",
  2316. "type": ["Number"],
  2317. "desc": "主文案最大行数限制",
  2318. "label": ""
  2319. },
  2320. {
  2321. "key": "name",
  2322. "type": ["String"],
  2323. "desc": "HTML 元素原生属性",
  2324. "label": ""
  2325. },
  2326. {
  2327. "key": "value",
  2328. "type": ["String", "Number", "Boolean"],
  2329. "desc": "单选按钮的值",
  2330. "label": ""
  2331. }
  2332. ],
  2333. "externalClasses": ["t-class", "t-class-icon", "t-class-label", "t-class-content", "t-class-border"],
  2334. "events": [
  2335. {
  2336. "key": "bind:change",
  2337. "desc": "值变化时触发",
  2338. "label": ""
  2339. }
  2340. ],
  2341. "tpl": "<t-radio value=\"radio\" label=\"单选\" />",
  2342. "path": "./radio/radio"
  2343. },
  2344. "t-rate": {
  2345. "key": "t-rate",
  2346. "label": "评分",
  2347. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-rate.png",
  2348. "properties": [
  2349. {
  2350. "key": "allowHalf",
  2351. "type": ["Boolean"],
  2352. "desc": "是否允许半选",
  2353. "label": ""
  2354. },
  2355. {
  2356. "key": "color",
  2357. "type": ["String", "Array"],
  2358. "desc": "评分图标的颜色,样式中默认为 #ED7B2F。一个值表示设置选中高亮的五角星颜色,示例:[选中颜色]。数组则表示分别设置 选中高亮的五角星颜色 和 未选中暗灰的五角星颜色,[选中颜色,未选中颜色]。示例:['#ED7B2F', '#E3E6EB']",
  2359. "label": ""
  2360. },
  2361. {
  2362. "key": "count",
  2363. "type": ["Number"],
  2364. "desc": "评分的数量",
  2365. "label": ""
  2366. },
  2367. {
  2368. "key": "disabled",
  2369. "type": ["Boolean"],
  2370. "desc": "是否禁用评分",
  2371. "label": ""
  2372. },
  2373. {
  2374. "key": "gap",
  2375. "type": ["Number"],
  2376. "desc": "评分图标的间距",
  2377. "label": ""
  2378. },
  2379. {
  2380. "key": "showText",
  2381. "type": ["Boolean"],
  2382. "desc": "是否显示对应的辅助文字",
  2383. "label": ""
  2384. },
  2385. {
  2386. "key": "size",
  2387. "type": ["String"],
  2388. "desc": "评分图标的大小,示例:`20`",
  2389. "label": ""
  2390. },
  2391. {
  2392. "key": "texts",
  2393. "type": ["Array"],
  2394. "desc": "评分等级对应的辅助文字。组件内置默认值为:['极差', '失望', '一般', '满意', '惊喜']。自定义值示例:['1分', '2分', '3分', '4分', '5分']",
  2395. "label": ""
  2396. },
  2397. {
  2398. "key": "value",
  2399. "type": ["Number"],
  2400. "desc": "选择评分的值",
  2401. "label": ""
  2402. },
  2403. {
  2404. "key": "variant",
  2405. "type": ["String"],
  2406. "desc": "形状类型,有描边类型和填充类型两种",
  2407. "label": ""
  2408. }
  2409. ],
  2410. "events": [
  2411. {
  2412. "key": "bind:change",
  2413. "desc": "评分数改变时触发",
  2414. "label": ""
  2415. }
  2416. ],
  2417. "tpl": "<t-rate defaultValue=\"{{4}}\" variant=\"filled\"></t-rate>",
  2418. "path": "./rate/rate"
  2419. },
  2420. "t-search": {
  2421. "key": "t-search",
  2422. "label": "搜索",
  2423. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-search.png",
  2424. "properties": [
  2425. {
  2426. "key": "action",
  2427. "type": ["String"],
  2428. "desc": "自定义右侧操作按钮文字",
  2429. "label": ""
  2430. },
  2431. {
  2432. "key": "center",
  2433. "type": ["Boolean"],
  2434. "desc": "是否居中",
  2435. "label": ""
  2436. },
  2437. {
  2438. "key": "disabled",
  2439. "type": ["Boolean"],
  2440. "desc": "是否禁用",
  2441. "label": ""
  2442. },
  2443. {
  2444. "key": "focus",
  2445. "type": ["Boolean"],
  2446. "desc": "是否聚焦",
  2447. "label": ""
  2448. },
  2449. {
  2450. "key": "label",
  2451. "type": ["String"],
  2452. "desc": "左侧文本",
  2453. "label": ""
  2454. },
  2455. {
  2456. "key": "leftIcon",
  2457. "type": ["String"],
  2458. "desc": "左侧图标",
  2459. "label": ""
  2460. },
  2461. {
  2462. "key": "placeholder",
  2463. "type": ["String"],
  2464. "desc": "占位符",
  2465. "label": ""
  2466. },
  2467. {
  2468. "key": "rightIcon",
  2469. "type": ["String"],
  2470. "desc": "右侧图标",
  2471. "label": ""
  2472. },
  2473. {
  2474. "key": "shape",
  2475. "type": ["String"],
  2476. "desc": "搜索框形状",
  2477. "label": ""
  2478. },
  2479. {
  2480. "key": "value",
  2481. "type": ["String"],
  2482. "desc": "值",
  2483. "label": ""
  2484. }
  2485. ],
  2486. "externalClasses": [
  2487. "t-class",
  2488. "t-class-input",
  2489. "t-class-input-container",
  2490. "t-class-cancel",
  2491. "t-class-left",
  2492. "t-class-right"
  2493. ],
  2494. "events": [
  2495. {
  2496. "key": "bind:action-click",
  2497. "desc": "点击右侧操作按钮文字时触发",
  2498. "label": ""
  2499. },
  2500. {
  2501. "key": "bind:blur",
  2502. "desc": "失去焦点时触发",
  2503. "label": ""
  2504. },
  2505. {
  2506. "key": "bind:change",
  2507. "desc": "值发生变化时触发",
  2508. "label": ""
  2509. },
  2510. {
  2511. "key": "bind:clear",
  2512. "desc": "点击清除时触发",
  2513. "label": ""
  2514. },
  2515. {
  2516. "key": "bind:focus",
  2517. "desc": "聚焦时触发",
  2518. "label": ""
  2519. },
  2520. {
  2521. "key": "bind:submit",
  2522. "desc": "提交时触发",
  2523. "label": ""
  2524. }
  2525. ],
  2526. "tpl": "<t-search></t-search>",
  2527. "path": "./search/search"
  2528. },
  2529. "t-skeleton": {
  2530. "key": "t-skeleton",
  2531. "label": "骨架屏",
  2532. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-skeleton.png",
  2533. "properties": [
  2534. {
  2535. "key": "animation",
  2536. "type": ["String"],
  2537. "desc": "动画效果,有「渐变加载动画」和「闪烁加载动画」两种。值为 'none' 则表示没有动画",
  2538. "label": ""
  2539. },
  2540. {
  2541. "key": "delay",
  2542. "type": ["Number"],
  2543. "desc": "【开发中】延迟显示加载效果的时间,用于防止请求速度过快引起的加载闪烁,单位:毫秒",
  2544. "label": ""
  2545. },
  2546. {
  2547. "key": "loading",
  2548. "type": ["Boolean"],
  2549. "desc": "是否为加载状态,如果是则显示骨架图,如果不是则显示加载完成的内容",
  2550. "label": ""
  2551. },
  2552. {
  2553. "key": "rowCol",
  2554. "type": ["Array"],
  2555. "desc": "用于设置行列数量、宽度高度、间距等。【示例一】,`[1, 1, 2]` 表示输出三行骨架图,第一行一列,第二行一列,第三行两列。【示例二】,`[1, 1, { width: '100px' }]` 表示自定义第三行的宽度为 `100px`。【示例三】,`[1, 2, [{ width, height }, { width, height, marginLeft }]]` 表示第三行有两列,且自定义宽度、高度和间距",
  2556. "label": ""
  2557. },
  2558. {
  2559. "key": "theme",
  2560. "type": ["String"],
  2561. "desc": "骨架图风格,有基础、头像组合等两大类",
  2562. "label": ""
  2563. }
  2564. ],
  2565. "externalClasses": ["t-class", "t-class-avatar", "t-class-image", "t-class-text"],
  2566. "tpl": "<t-skeleton rowCol=\"{{ [{ width: '686rpx', height: '32rpx' }, 1, 1, { width: '380rpx', height: '32rpx' }]}}\" loading></t-skeleton>",
  2567. "path": "./skeleton/skeleton"
  2568. },
  2569. "t-slider": {
  2570. "key": "t-slider",
  2571. "label": "滑块",
  2572. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-slider.png",
  2573. "properties": [
  2574. {
  2575. "key": "colors",
  2576. "type": ["Array"],
  2577. "desc": "颜色,[已选择, 未选择]",
  2578. "label": ""
  2579. },
  2580. {
  2581. "key": "disabled",
  2582. "type": ["Boolean"],
  2583. "desc": "是否禁用组件",
  2584. "label": ""
  2585. },
  2586. {
  2587. "key": "disabledColor",
  2588. "type": ["Array"],
  2589. "desc": "禁用状态滑动条的颜色,[已选, 未选]",
  2590. "label": ""
  2591. },
  2592. {
  2593. "key": "label",
  2594. "type": ["String", "Boolean"],
  2595. "desc": "滑块当前值文本。<br />值为 true 显示默认文案;值为 false 不显示滑块当前值文本;<br />值为 `${value}%` 则表示组件会根据占位符渲染文案;<br />值类型为函数时,参数 `value` 标识滑块值,参数 `position=start` 表示范围滑块的起始值,参数 `position=end` 表示范围滑块的终点值",
  2596. "label": ""
  2597. },
  2598. {
  2599. "key": "marks",
  2600. "type": ["Object", "Array"],
  2601. "desc": "刻度标记,示例:`[0, 10, 40, 200]` 或者 `{ 5: '5¥', 10: '10%' }`",
  2602. "label": ""
  2603. },
  2604. {
  2605. "key": "max",
  2606. "type": ["Number"],
  2607. "desc": "滑块范围最大值",
  2608. "label": ""
  2609. },
  2610. {
  2611. "key": "min",
  2612. "type": ["Number"],
  2613. "desc": "滑块范围最小值",
  2614. "label": ""
  2615. },
  2616. {
  2617. "key": "range",
  2618. "type": ["Boolean"],
  2619. "desc": "双游标滑块",
  2620. "label": ""
  2621. },
  2622. {
  2623. "key": "showExtremeValue",
  2624. "type": ["Boolean"],
  2625. "desc": "是否边界值",
  2626. "label": ""
  2627. },
  2628. {
  2629. "key": "step",
  2630. "type": ["Number"],
  2631. "desc": "步长",
  2632. "label": ""
  2633. },
  2634. {
  2635. "key": "value",
  2636. "type": ["Number", "Array"],
  2637. "desc": "滑块值",
  2638. "label": ""
  2639. }
  2640. ],
  2641. "externalClasses": ["t-class", "t-class-bar", "t-class-bar-active", "t-class-bar-disabled", "t-class-cursor"],
  2642. "events": [
  2643. {
  2644. "key": "bind:change",
  2645. "desc": "滑块值变化时触发",
  2646. "label": ""
  2647. },
  2648. {
  2649. "key": "bind:dragend",
  2650. "desc": "结束拖动时触发",
  2651. "label": ""
  2652. },
  2653. {
  2654. "key": "bind:dragstart",
  2655. "desc": "开始拖动时触发",
  2656. "label": ""
  2657. }
  2658. ],
  2659. "tpl": "<t-slider />",
  2660. "path": "./slider/slider"
  2661. },
  2662. "t-step-item": {
  2663. "key": "t-step-item",
  2664. "label": "步骤",
  2665. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-steps.png",
  2666. "properties": [
  2667. {
  2668. "key": "content",
  2669. "type": ["String"],
  2670. "desc": "步骤描述",
  2671. "label": ""
  2672. },
  2673. {
  2674. "key": "icon",
  2675. "type": ["String"],
  2676. "desc": "图标。传入 slot 代表使用插槽,其他字符串代表使用内置图标",
  2677. "label": ""
  2678. },
  2679. {
  2680. "key": "status",
  2681. "type": ["String"],
  2682. "desc": "当前步骤的状态",
  2683. "label": ""
  2684. },
  2685. {
  2686. "key": "subStepItems",
  2687. "type": ["Array"],
  2688. "desc": "子步骤条,仅支持 layout = 'vertical' 时",
  2689. "label": ""
  2690. },
  2691. {
  2692. "key": "title",
  2693. "type": ["String"],
  2694. "desc": "标题",
  2695. "label": ""
  2696. }
  2697. ],
  2698. "externalClasses": ["t-class", "t-class-content", "t-class-title", "t-class-description", "t-class-extra"],
  2699. "tpl": "<t-step-item title=\"步骤描述\"></t-step-item>",
  2700. "path": "./steps/step-item"
  2701. },
  2702. "t-stepper": {
  2703. "key": "t-stepper",
  2704. "label": "步进器",
  2705. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-stepper.png",
  2706. "properties": [
  2707. {
  2708. "key": "disabled",
  2709. "type": ["Boolean"],
  2710. "desc": "禁用全部操作",
  2711. "label": ""
  2712. },
  2713. {
  2714. "key": "disableInput",
  2715. "type": ["Boolean"],
  2716. "desc": "禁用输入框",
  2717. "label": ""
  2718. },
  2719. {
  2720. "key": "inputWidth",
  2721. "type": ["Number"],
  2722. "desc": "输入框宽度",
  2723. "label": ""
  2724. },
  2725. {
  2726. "key": "max",
  2727. "type": ["Number"],
  2728. "desc": "最大值",
  2729. "label": ""
  2730. },
  2731. {
  2732. "key": "min",
  2733. "type": ["Number"],
  2734. "desc": "最小值",
  2735. "label": ""
  2736. },
  2737. {
  2738. "key": "step",
  2739. "type": ["Number"],
  2740. "desc": "步长",
  2741. "label": ""
  2742. },
  2743. {
  2744. "key": "theme",
  2745. "type": ["String"],
  2746. "desc": "组件风格",
  2747. "label": ""
  2748. },
  2749. {
  2750. "key": "value",
  2751. "type": ["String", "Number"],
  2752. "desc": "值",
  2753. "label": ""
  2754. }
  2755. ],
  2756. "externalClasses": ["t-class", "t-class-input", "t-class-add", "t-class-minus"],
  2757. "events": [
  2758. {
  2759. "key": "bind:blur",
  2760. "desc": "输入框失去焦点时触发",
  2761. "label": ""
  2762. },
  2763. {
  2764. "key": "bind:change",
  2765. "desc": "数值发生变更时触发",
  2766. "label": ""
  2767. },
  2768. {
  2769. "key": "bind:overlimit",
  2770. "desc": "数值超出限制时触发",
  2771. "label": ""
  2772. }
  2773. ],
  2774. "tpl": "<t-stepper />",
  2775. "path": "./stepper/stepper"
  2776. },
  2777. "t-steps": {
  2778. "key": "t-steps",
  2779. "label": "步骤条",
  2780. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-steps.png",
  2781. "properties": [
  2782. {
  2783. "key": "current",
  2784. "type": ["String", "Number"],
  2785. "desc": "当前步骤,即整个步骤条进度。默认根据步骤下标判断步骤的完成状态,当前步骤为进行中,当前步骤之前的步骤为已完成,当前步骤之后的步骤为未开始。如果每个步骤没有设置 value,current 值为步骤长度则表示所有步骤已完成。如果每个步骤设置了自定义 value,则 current = 'FINISH' 表示所有状态完成",
  2786. "label": ""
  2787. },
  2788. {
  2789. "key": "currentStatus",
  2790. "type": ["String"],
  2791. "desc": "用于控制 current 指向的步骤条的状态",
  2792. "label": ""
  2793. },
  2794. {
  2795. "key": "layout",
  2796. "type": ["String"],
  2797. "desc": "步骤条方向,有两种:横向和纵向",
  2798. "label": ""
  2799. },
  2800. {
  2801. "key": "readonly",
  2802. "type": ["Boolean"],
  2803. "desc": "只读状态",
  2804. "label": ""
  2805. },
  2806. {
  2807. "key": "separator",
  2808. "type": ["String"],
  2809. "desc": "步骤条分割符",
  2810. "label": ""
  2811. },
  2812. {
  2813. "key": "theme",
  2814. "type": ["String"],
  2815. "desc": "步骤条风格",
  2816. "label": ""
  2817. }
  2818. ],
  2819. "externalClasses": ["t-class"],
  2820. "events": [
  2821. {
  2822. "key": "bind:change",
  2823. "desc": "当前步骤发生变化时触发",
  2824. "label": ""
  2825. }
  2826. ],
  2827. "tpl": "<t-steps><t-step-item title=\"步骤描述1\" /><t-step-item title=\"步骤描述2\" /></t-steps>",
  2828. "require": {
  2829. "t-step-item": "./steps/step-item"
  2830. },
  2831. "path": "./steps/steps"
  2832. },
  2833. "t-sticky": {
  2834. "key": "t-sticky",
  2835. "label": "吸顶容器",
  2836. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-sticky.png",
  2837. "properties": [
  2838. {
  2839. "key": "container",
  2840. "type": ["String"],
  2841. "desc": "函数返回容器对应的 NodesRef 节点,将对应节点指定为组件的外部容器,滚动时组件会始终保持在容器范围内,当组件即将超出容器底部时,会返回原位置。",
  2842. "label": ""
  2843. },
  2844. {
  2845. "key": "disabled",
  2846. "type": ["Boolean"],
  2847. "desc": "是否禁用组件",
  2848. "label": ""
  2849. },
  2850. {
  2851. "key": "offsetTop",
  2852. "type": ["String", "Number"],
  2853. "desc": "吸顶时与顶部的距离,单位`px`",
  2854. "label": ""
  2855. },
  2856. {
  2857. "key": "zIndex",
  2858. "type": ["Number"],
  2859. "desc": "吸顶时的 z-index",
  2860. "label": ""
  2861. }
  2862. ],
  2863. "externalClasses": ["t-class"],
  2864. "events": [
  2865. {
  2866. "key": "bind:scroll",
  2867. "desc": "滚动时触发,scrollTop: 距离顶部位置,isFixed: 是否吸顶",
  2868. "label": ""
  2869. }
  2870. ],
  2871. "tpl": "<t-sticky></t-sticky>",
  2872. "path": "./sticky/sticky"
  2873. },
  2874. "t-swipe-cell": {
  2875. "key": "t-swipe-cell",
  2876. "label": "滑动操作",
  2877. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-swipecell.png",
  2878. "properties": [
  2879. {
  2880. "key": "disabled",
  2881. "type": ["Boolean"],
  2882. "desc": "是否禁用滑动",
  2883. "label": ""
  2884. },
  2885. {
  2886. "key": "expanded",
  2887. "type": ["String"],
  2888. "desc": "操作项是否呈现为打开态",
  2889. "label": ""
  2890. },
  2891. {
  2892. "key": "left",
  2893. "type": ["Array"],
  2894. "desc": "左侧滑动操作项。所有行为同 `right`",
  2895. "label": ""
  2896. },
  2897. {
  2898. "key": "right",
  2899. "type": ["Array"],
  2900. "desc": "右侧滑动操作项。有两种定义方式,一种是使用数组,二种是使用插槽。`right.text` 表示操作文本,`right.className` 表示操作项类名,`right.style` 表示操作项样式,`right.onClick` 表示点击操作项后执行的回调函数。示例:`[{ text: '删除', style: 'background-color: red', onClick: () => {} }]`",
  2901. "label": ""
  2902. }
  2903. ],
  2904. "events": [
  2905. {
  2906. "key": "bind:click",
  2907. "desc": "操作项点击时触发(插槽写法组件不触发,业务侧自定义内容和事件)",
  2908. "label": ""
  2909. }
  2910. ],
  2911. "tpl": "<t-swipe-cell><t-cell title=\"列表-左滑单操作\" note=\"辅助信息\" /><view slot=\"right\">删除</view></t-swipe-cell>",
  2912. "require": {
  2913. "t-cell": "./cell/cell"
  2914. },
  2915. "path": "./swipe-cell/swipe-cell"
  2916. },
  2917. "t-swiper": {
  2918. "key": "t-swiper",
  2919. "label": "轮播",
  2920. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-swiper.png",
  2921. "properties": [
  2922. {
  2923. "key": "animation",
  2924. "type": ["String"],
  2925. "desc": "轮播切换动画效果类型",
  2926. "label": ""
  2927. },
  2928. {
  2929. "key": "autoplay",
  2930. "type": ["Boolean"],
  2931. "desc": "是否自动播放",
  2932. "label": ""
  2933. },
  2934. {
  2935. "key": "current",
  2936. "type": ["Number"],
  2937. "desc": "当前轮播在哪一项(下标)",
  2938. "label": ""
  2939. },
  2940. {
  2941. "key": "direction",
  2942. "type": ["String"],
  2943. "desc": "轮播滑动方向,包括横向滑动和纵向滑动两个方向",
  2944. "label": ""
  2945. },
  2946. {
  2947. "key": "duration",
  2948. "type": ["Number"],
  2949. "desc": "滑动动画时长",
  2950. "label": ""
  2951. },
  2952. {
  2953. "key": "height",
  2954. "type": ["Number"],
  2955. "desc": "当使用垂直方向滚动时的高度",
  2956. "label": ""
  2957. },
  2958. {
  2959. "key": "interval",
  2960. "type": ["Number"],
  2961. "desc": "轮播间隔时间",
  2962. "label": ""
  2963. },
  2964. {
  2965. "key": "loop",
  2966. "type": ["Boolean"],
  2967. "desc": "是否循环播放",
  2968. "label": ""
  2969. },
  2970. {
  2971. "key": "navigation",
  2972. "type": ["Object"],
  2973. "desc": "导航器全部配置",
  2974. "label": ""
  2975. }
  2976. ],
  2977. "events": [
  2978. {
  2979. "key": "bind:change",
  2980. "desc": "轮播切换时触发",
  2981. "label": ""
  2982. }
  2983. ],
  2984. "tpl": "<t-swiper current=\"{{1}}\" autoplay=\"{{true}}\" duration=\"{{500}}\" interval=\"{{5000}}\" navigation><t-swiper-item wx:for=\"{{[{image: 'https://tdesign.gtimg.com/site/swiper/01.png'},{image: 'https://tdesign.gtimg.com/site/swiper/02.png'}]}}\" wx:key=\"index\"><image src=\"{{item.image}}\" style=\"width: 100%; height: 100%\" /></t-swiper-item></t-swiper>",
  2985. "require": {
  2986. "t-swiper-item": "./swiper/swiper-item"
  2987. },
  2988. "path": "./swiper/swiper"
  2989. },
  2990. "t-switch": {
  2991. "key": "t-switch",
  2992. "label": "开关",
  2993. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-switch.png",
  2994. "properties": [
  2995. {
  2996. "key": "colors",
  2997. "type": ["Array"],
  2998. "desc": "自定义颜色,[打开时的颜色,关闭时的颜色]。组件默认颜色为 ['#0052d9', 'rgba(0, 0, 0, .26']。示例:[blue, gray]",
  2999. "label": ""
  3000. },
  3001. {
  3002. "key": "customValue",
  3003. "type": ["Array"],
  3004. "desc": "开关内容,[打开时的值,关闭时的值]。默认为 [true, false]。示例:[1, 0]",
  3005. "label": ""
  3006. },
  3007. {
  3008. "key": "disabled",
  3009. "type": ["Boolean"],
  3010. "desc": "是否禁用组件",
  3011. "label": ""
  3012. },
  3013. {
  3014. "key": "label",
  3015. "type": ["String"],
  3016. "desc": "开关的标签",
  3017. "label": ""
  3018. },
  3019. {
  3020. "key": "loading",
  3021. "type": ["Boolean"],
  3022. "desc": "是否处于加载中状态",
  3023. "label": ""
  3024. },
  3025. {
  3026. "key": "size",
  3027. "type": ["String"],
  3028. "desc": "开关尺寸",
  3029. "label": ""
  3030. },
  3031. {
  3032. "key": "value",
  3033. "type": ["String", "Number", "Boolean"],
  3034. "desc": "开关值",
  3035. "label": ""
  3036. }
  3037. ],
  3038. "events": [
  3039. {
  3040. "key": "bind:change",
  3041. "desc": "数据发生变化时触发",
  3042. "label": ""
  3043. }
  3044. ],
  3045. "tpl": "<t-switch defaultValue=\"{{true}}\" />",
  3046. "path": "./switch/switch"
  3047. },
  3048. "t-tab-bar-item": {
  3049. "key": "t-tab-bar-item",
  3050. "label": "标签栏选项",
  3051. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-tabbar.png",
  3052. "properties": [
  3053. {
  3054. "key": "badgeProps",
  3055. "type": ["Object"],
  3056. "desc": "图标右上角提示信息",
  3057. "label": ""
  3058. },
  3059. {
  3060. "key": "icon",
  3061. "type": ["String"],
  3062. "desc": "图标名称",
  3063. "label": ""
  3064. },
  3065. {
  3066. "key": "subTabBar",
  3067. "type": ["Array"],
  3068. "desc": "二级菜单",
  3069. "label": ""
  3070. },
  3071. {
  3072. "key": "value",
  3073. "type": ["String", "Number"],
  3074. "desc": "标识符",
  3075. "label": ""
  3076. }
  3077. ],
  3078. "tpl": "<t-tab-bar-item wx:for=\"{{[{value: 'label_1',label: '标签栏一',icon: 'app'},{value: 'label_2',label: '标签栏二',icon: 'app'}]}}\" wx:for-item=\"item\" wx:for-index=\"index\" wx:key=\"index\" value=\"{{item.value}}\">{{item.label}}</t-tab-bar-item>",
  3079. "path": "./tab-bar/tab-bar-item"
  3080. },
  3081. "t-tab-bar": {
  3082. "key": "t-tab-bar",
  3083. "label": "标签栏",
  3084. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-tabbar.png",
  3085. "properties": [
  3086. {
  3087. "key": "bordered",
  3088. "type": ["Boolean"],
  3089. "desc": "是否显示外边框",
  3090. "label": ""
  3091. },
  3092. {
  3093. "key": "color",
  3094. "type": ["Array"],
  3095. "desc": "标签颜色设置。示例:[选中标签的颜色, 未选中的标签颜色]",
  3096. "label": ""
  3097. },
  3098. {
  3099. "key": "fixed",
  3100. "type": ["Boolean"],
  3101. "desc": "是否固定在底部",
  3102. "label": ""
  3103. },
  3104. {
  3105. "key": "safeAreaInsetBottom",
  3106. "type": ["Boolean"],
  3107. "desc": "是否为 iPhoneX 留出底部安全距离",
  3108. "label": ""
  3109. },
  3110. {
  3111. "key": "split",
  3112. "type": ["Boolean"],
  3113. "desc": "是否需要分割线",
  3114. "label": ""
  3115. },
  3116. {
  3117. "key": "value",
  3118. "type": ["String", "Number", "Array"],
  3119. "desc": "当前选中标签的索引",
  3120. "label": ""
  3121. }
  3122. ],
  3123. "externalClasses": ["t-class"],
  3124. "events": [
  3125. {
  3126. "key": "bind:change",
  3127. "desc": "选中标签切换时触发",
  3128. "label": ""
  3129. }
  3130. ],
  3131. "tpl": "<t-tab-bar value=\"label_1\"><t-tab-bar-item wx:for=\"{{[{value: 'label_1',label: '标签栏一',icon: 'app'},{value: 'label_2',label: '标签栏二',icon: 'app'}]}}\" wx:for-item=\"item\" wx:for-index=\"index\" wx:key=\"index\" value=\"{{item.value}}\">{{item.label}}</t-tab-bar-item></t-tab-bar>",
  3132. "require": {
  3133. "t-tab-bar-item": "./tab-bar/tab-bar-item"
  3134. },
  3135. "path": "./tab-bar/tab-bar"
  3136. },
  3137. "t-tab-panel": {
  3138. "key": "t-tab-panel",
  3139. "label": "选项卡面板",
  3140. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-tabs.png",
  3141. "properties": [
  3142. {
  3143. "key": "destroyOnHide",
  3144. "type": ["Boolean"],
  3145. "desc": "选项卡内容隐藏时是否销毁",
  3146. "label": ""
  3147. },
  3148. {
  3149. "key": "disabled",
  3150. "type": ["Boolean"],
  3151. "desc": "是否禁用当前选项卡",
  3152. "label": ""
  3153. },
  3154. {
  3155. "key": "label",
  3156. "type": ["String"],
  3157. "desc": "选项卡名称",
  3158. "label": ""
  3159. },
  3160. {
  3161. "key": "panel",
  3162. "type": ["String"],
  3163. "desc": "用于自定义选项卡面板内容",
  3164. "label": ""
  3165. },
  3166. {
  3167. "key": "value",
  3168. "type": ["String", "Number"],
  3169. "desc": "选项卡的值,唯一标识",
  3170. "label": ""
  3171. }
  3172. ],
  3173. "tpl": "<t-tab-panel label=\"标签页一\" value=\"0\">标签一内容</t-tab-panel>",
  3174. "path": "./tabs/tab-panel"
  3175. },
  3176. "t-tabs": {
  3177. "key": "t-tabs",
  3178. "label": "选项卡",
  3179. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-tabs.png",
  3180. "properties": [
  3181. {
  3182. "key": "animation",
  3183. "type": ["Object"],
  3184. "desc": "动画效果设置。其中 duration 表示动画时长",
  3185. "label": ""
  3186. },
  3187. {
  3188. "key": "placement",
  3189. "type": ["String"],
  3190. "desc": "选项卡位置",
  3191. "label": ""
  3192. },
  3193. {
  3194. "key": "showBottomLine",
  3195. "type": ["Boolean"],
  3196. "desc": "是否展示底部激活线条",
  3197. "label": ""
  3198. },
  3199. {
  3200. "key": "stickyProps",
  3201. "type": ["Object"],
  3202. "desc": "是否支持吸顶",
  3203. "label": ""
  3204. },
  3205. {
  3206. "key": "value",
  3207. "type": ["String", "Number"],
  3208. "desc": "激活的选项卡值",
  3209. "label": ""
  3210. }
  3211. ],
  3212. "externalClasses": ["t-class", "t-class-item", "t-class-active", "t-class-track"],
  3213. "events": [
  3214. {
  3215. "key": "bind:change",
  3216. "desc": "激活的选项卡发生变化时触发",
  3217. "label": ""
  3218. }
  3219. ],
  3220. "tpl": "<t-tabs defaultValue=\"{{0}}\"><t-tab-panel label=\"标签页一\" value=\"0\">标签一内容</t-tab-panel><t-tab-panel label=\"标签页二\" value=\"1\">标签二内容</t-tab-panel></t-tabs>",
  3221. "require": {
  3222. "t-tab-panel": "./tabs/tab-panel"
  3223. },
  3224. "path": "./tabs/tabs"
  3225. },
  3226. "t-tag": {
  3227. "key": "t-tag",
  3228. "label": "标签",
  3229. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-tag.png",
  3230. "properties": [
  3231. {
  3232. "key": "closable",
  3233. "type": ["Boolean"],
  3234. "desc": "标签是否可关闭",
  3235. "label": ""
  3236. },
  3237. {
  3238. "key": "disabled",
  3239. "type": ["Boolean"],
  3240. "desc": "标签禁用态,失效标签不能触发事件。默认风格(theme=default)才有禁用态",
  3241. "label": ""
  3242. },
  3243. {
  3244. "key": "icon",
  3245. "type": ["String"],
  3246. "desc": "标签中的图标,可自定义图标呈现",
  3247. "label": ""
  3248. },
  3249. {
  3250. "key": "maxWidth",
  3251. "type": ["String", "Number"],
  3252. "desc": "标签最大宽度,宽度超出后会出现省略号。示例:'50px' / 80",
  3253. "label": ""
  3254. },
  3255. {
  3256. "key": "shape",
  3257. "type": ["String"],
  3258. "desc": "标签类型,有三种:方形、圆角方形、标记型",
  3259. "label": ""
  3260. },
  3261. {
  3262. "key": "size",
  3263. "type": ["String"],
  3264. "desc": "标签尺寸",
  3265. "label": ""
  3266. },
  3267. {
  3268. "key": "theme",
  3269. "type": ["String"],
  3270. "desc": "组件风格,用于描述组件不同的应用场景",
  3271. "label": ""
  3272. },
  3273. {
  3274. "key": "variant",
  3275. "type": ["String"],
  3276. "desc": "标签风格变体",
  3277. "label": ""
  3278. }
  3279. ],
  3280. "externalClasses": ["t-class"],
  3281. "events": [
  3282. {
  3283. "key": "bind:click",
  3284. "desc": "点击时触发",
  3285. "label": ""
  3286. },
  3287. {
  3288. "key": "bind:close",
  3289. "desc": "如果关闭按钮存在,点击关闭按钮时触发",
  3290. "label": ""
  3291. }
  3292. ],
  3293. "tpl": "<t-tag theme=\"primary\">重要</t-tag>",
  3294. "path": "./tag/tag"
  3295. },
  3296. "t-textarea": {
  3297. "key": "t-textarea",
  3298. "label": "文本输入框",
  3299. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-textarea.png",
  3300. "properties": [
  3301. {
  3302. "key": "adjustPosition",
  3303. "type": ["Boolean"],
  3304. "desc": "键盘弹起时,是否自动上推页面",
  3305. "label": ""
  3306. },
  3307. {
  3308. "key": "autofocus",
  3309. "type": ["Boolean"],
  3310. "desc": "自动聚焦,拉起键盘",
  3311. "label": ""
  3312. },
  3313. {
  3314. "key": "autosize",
  3315. "type": ["Boolean"],
  3316. "desc": "是否自动增高,值为 autosize 时,style.height 不生效",
  3317. "label": ""
  3318. },
  3319. {
  3320. "key": "confirmHold",
  3321. "type": ["Boolean"],
  3322. "desc": "点击键盘右下角按钮时是否保持键盘不收起点",
  3323. "label": ""
  3324. },
  3325. {
  3326. "key": "confirmType",
  3327. "type": ["String"],
  3328. "desc": "设置键盘右下角按钮的文字,仅在 type='text'时生效",
  3329. "label": ""
  3330. },
  3331. {
  3332. "key": "disabled",
  3333. "type": ["Boolean"],
  3334. "desc": "是否禁用文本框",
  3335. "label": ""
  3336. },
  3337. {
  3338. "key": "focus",
  3339. "type": ["Boolean"],
  3340. "desc": "自动聚焦",
  3341. "label": ""
  3342. },
  3343. {
  3344. "key": "label",
  3345. "type": ["String"],
  3346. "desc": "左侧文本",
  3347. "label": ""
  3348. },
  3349. {
  3350. "key": "maxcharacter",
  3351. "type": ["Number"],
  3352. "desc": "用户最多可以输入的字符个数,一个中文汉字表示两个字符长度",
  3353. "label": ""
  3354. },
  3355. {
  3356. "key": "maxlength",
  3357. "type": ["Number"],
  3358. "desc": "用户最多可以输入的字符个数",
  3359. "label": ""
  3360. },
  3361. {
  3362. "key": "placeholder",
  3363. "type": ["String"],
  3364. "desc": "占位符",
  3365. "label": ""
  3366. },
  3367. {
  3368. "key": "value",
  3369. "type": ["String"],
  3370. "desc": "文本框值",
  3371. "label": ""
  3372. }
  3373. ],
  3374. "externalClasses": ["t-class", "t-class-textarea", "t-class-placeholder", "t-class-name"],
  3375. "events": [
  3376. {
  3377. "key": "bind:blur",
  3378. "desc": "失去焦点时触发",
  3379. "label": ""
  3380. },
  3381. {
  3382. "key": "bind:change",
  3383. "desc": "输入内容变化时触发",
  3384. "label": ""
  3385. },
  3386. {
  3387. "key": "bind:enter",
  3388. "desc": "点击完成时触发",
  3389. "label": ""
  3390. },
  3391. {
  3392. "key": "bind:focus",
  3393. "desc": "获得焦点时触发",
  3394. "label": ""
  3395. },
  3396. {
  3397. "key": "bind:line-change",
  3398. "desc": "行高发生变化时触发",
  3399. "label": ""
  3400. }
  3401. ],
  3402. "tpl": "<t-textarea />",
  3403. "path": "./textarea/textarea"
  3404. },
  3405. "t-toast": {
  3406. "key": "t-toast",
  3407. "label": "轻提示",
  3408. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-toast.png",
  3409. "properties": [
  3410. {
  3411. "key": "direction",
  3412. "type": ["String"],
  3413. "desc": "图标排列方式",
  3414. "label": ""
  3415. },
  3416. {
  3417. "key": "duration",
  3418. "type": ["Number"],
  3419. "desc": "弹窗显示毫秒数",
  3420. "label": ""
  3421. },
  3422. {
  3423. "key": "icon",
  3424. "type": ["String"],
  3425. "desc": "自定义图标",
  3426. "label": ""
  3427. },
  3428. {
  3429. "key": "message",
  3430. "type": ["String"],
  3431. "desc": "弹窗显示文字",
  3432. "label": ""
  3433. },
  3434. {
  3435. "key": "overlayProps",
  3436. "type": ["Object"],
  3437. "desc": "遮罩层属性,透传至 Overlay",
  3438. "label": ""
  3439. },
  3440. {
  3441. "key": "placement",
  3442. "type": ["String"],
  3443. "desc": "弹窗展示位置",
  3444. "label": ""
  3445. },
  3446. {
  3447. "key": "preventScrollThrough",
  3448. "type": ["Boolean"],
  3449. "desc": "防止滚动穿透,即不允许点击和滚动",
  3450. "label": ""
  3451. },
  3452. {
  3453. "key": "showOverlay",
  3454. "type": ["Boolean"],
  3455. "desc": "是否显示遮罩层",
  3456. "label": ""
  3457. },
  3458. {
  3459. "key": "theme",
  3460. "type": ["String"],
  3461. "desc": "提示类型",
  3462. "label": ""
  3463. }
  3464. ],
  3465. "externalClasses": ["t-class"],
  3466. "tpl": "<t-toast id=\"t-toast\" />",
  3467. "path": "./toast/toast"
  3468. },
  3469. "t-transition": {
  3470. "key": "t-transition",
  3471. "label": "动画",
  3472. "icon": "",
  3473. "properties": [
  3474. {
  3475. "key": "appear",
  3476. "type": ["Boolean"],
  3477. "desc": "首次出现是否展示动画",
  3478. "label": ""
  3479. },
  3480. {
  3481. "key": "customClass",
  3482. "type": ["String"],
  3483. "desc": "自定义容器类名",
  3484. "label": ""
  3485. },
  3486. {
  3487. "key": "destoryOnClose",
  3488. "type": ["Boolean"],
  3489. "desc": "隐藏时是否销毁内容",
  3490. "label": ""
  3491. },
  3492. {
  3493. "key": "duration",
  3494. "type": ["Number"],
  3495. "desc": "指定过渡时间",
  3496. "label": ""
  3497. },
  3498. {
  3499. "key": "name",
  3500. "type": ["String"],
  3501. "desc": "过渡类名",
  3502. "label": ""
  3503. },
  3504. {
  3505. "key": "visible",
  3506. "type": ["Boolean"],
  3507. "desc": "是否显示",
  3508. "label": ""
  3509. }
  3510. ],
  3511. "tpl": "<t-transition visible appear></t-transition>",
  3512. "path": "./transition/transition"
  3513. },
  3514. "t-upload": {
  3515. "key": "t-upload",
  3516. "label": "上传",
  3517. "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-upload.png",
  3518. "properties": [
  3519. {
  3520. "key": "addContent",
  3521. "type": ["String"],
  3522. "desc": "添加按钮内容。值为空,使用默认图标渲染;值为 slot 则表示使用插槽渲染;其他值无效。",
  3523. "label": ""
  3524. },
  3525. {
  3526. "key": "allowUploadDuplicateFile",
  3527. "type": ["Boolean"],
  3528. "desc": "是否允许重复上传相同文件名的文件",
  3529. "label": ""
  3530. },
  3531. {
  3532. "key": "config",
  3533. "type": ["Object"],
  3534. "desc": "图片上传配置,视频上传配置,文件上传配置等,包含图片尺寸、图片来源、视频来源、视频拍摄最长时间等。更多细节查看小程序官网。[图片上传](https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.chooseImage.html)。[视频上传](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseVideo.html)",
  3535. "label": ""
  3536. },
  3537. {
  3538. "key": "deleteBtn",
  3539. "type": ["String"],
  3540. "desc": "删除图标。值为空,使用默认图标渲染;值为 slot 则表示使用插槽渲染;其他值无效。",
  3541. "label": ""
  3542. },
  3543. {
  3544. "key": "fileListDisplay",
  3545. "type": ["String"],
  3546. "desc": "用于完全自定义文件列表内容",
  3547. "label": ""
  3548. },
  3549. {
  3550. "key": "files",
  3551. "type": ["Array"],
  3552. "desc": "已上传文件列表",
  3553. "label": ""
  3554. },
  3555. {
  3556. "key": "gridConfig",
  3557. "type": ["Object"],
  3558. "desc": "upload组件每行上传图片列数以及图片的宽度和高度",
  3559. "label": ""
  3560. },
  3561. {
  3562. "key": "gutter",
  3563. "type": ["Number"],
  3564. "desc": "预览窗格的 `gutter` 大小,单位 rpx",
  3565. "label": ""
  3566. },
  3567. {
  3568. "key": "imageProps",
  3569. "type": ["Object"],
  3570. "desc": "透传 Image 组件全部属性",
  3571. "label": ""
  3572. },
  3573. {
  3574. "key": "max",
  3575. "type": ["Number"],
  3576. "desc": "用于控制文件上传数量,值为 0 则不限制",
  3577. "label": ""
  3578. },
  3579. {
  3580. "key": "mediaType",
  3581. "type": ["Array"],
  3582. "desc": "支持上传的文件类型,图片或视频",
  3583. "label": ""
  3584. },
  3585. {
  3586. "key": "requestMethod",
  3587. "type": ["String"],
  3588. "desc": "自定义上传方法",
  3589. "label": ""
  3590. },
  3591. {
  3592. "key": "sizeLimit",
  3593. "type": ["Number", "Object"],
  3594. "desc": "图片文件大小限制,单位 KB。可选单位有:`'B' | 'KB' | 'MB' | 'GB'`。示例一:`1000`。示例二:`{ size: 2, unit: 'MB', message: '图片大小不超过 {sizeLimit} MB' }`",
  3595. "label": ""
  3596. }
  3597. ],
  3598. "events": [
  3599. {
  3600. "key": "bind:add",
  3601. "desc": "上传成功后触发,仅包含本次选择的照片;`url` 表示选定视频的临时文件路径 (本地路径)。`duration` 表示选定视频的时间长度。`size`选定视频的数据量大小。更多描述参考 wx.chooseMedia 小程序官网描述",
  3602. "label": ""
  3603. },
  3604. {
  3605. "key": "bind:complete",
  3606. "desc": "上传成功或失败后触发",
  3607. "label": ""
  3608. },
  3609. {
  3610. "key": "bind:fail",
  3611. "desc": "上传失败后触发",
  3612. "label": ""
  3613. },
  3614. {
  3615. "key": "bind:remove",
  3616. "desc": "移除文件时触发",
  3617. "label": ""
  3618. },
  3619. {
  3620. "key": "bind:select-change",
  3621. "desc": "选择文件或图片之后,上传之前,触发该事件。<br />`files` 表示之前已经上传完成的文件列表。<br />`currentSelectedFiles` 表示本次上传选中的文件列表",
  3622. "label": ""
  3623. },
  3624. {
  3625. "key": "bind:success",
  3626. "desc": "上传成功后触发,包含所有上传的文件;`url` 表示选定视频的临时文件路径 (本地路径)。`duration` 表示选定视频的时间长度。`size`选定视频的数据量大小。更多描述参考 wx.chooseMedia 小程序官网描述",
  3627. "label": ""
  3628. }
  3629. ],
  3630. "tpl": "<t-upload />",
  3631. "path": "./upload/upload"
  3632. }
  3633. },
  3634. "common": {
  3635. "properties": {},
  3636. "events": {}
  3637. },
  3638. "menu": [
  3639. {
  3640. "key": "menu-basic",
  3641. "label": "基础",
  3642. "submenu": [
  3643. {
  3644. "key": "subMenu-button",
  3645. "label": "Button 按钮",
  3646. "components": ["t-button"]
  3647. },
  3648. {
  3649. "key": "subMenu-divider",
  3650. "label": "Divider 分割线",
  3651. "components": ["t-divider"]
  3652. },
  3653. {
  3654. "key": "subMenu-fab",
  3655. "label": "Fab 悬浮按钮",
  3656. "components": ["t-fab"]
  3657. },
  3658. {
  3659. "key": "subMenu-icon",
  3660. "label": "Icon 图标",
  3661. "components": ["t-icon"]
  3662. }
  3663. ]
  3664. },
  3665. {
  3666. "key": "menu-nav",
  3667. "label": "导航",
  3668. "submenu": [
  3669. {
  3670. "key": "subMenu-drawer",
  3671. "label": "Drawer 抽屉",
  3672. "components": ["t-drawer"]
  3673. },
  3674. {
  3675. "key": "subMenu-indexes",
  3676. "label": "Indexes 索引",
  3677. "components": ["t-indexes"]
  3678. },
  3679. {
  3680. "key": "subMenu-navbar",
  3681. "label": "Navbar 导航条",
  3682. "components": ["t-navbar"]
  3683. },
  3684. {
  3685. "key": "subMenu-steps",
  3686. "label": "Steps 步骤条",
  3687. "components": ["t-steps"]
  3688. },
  3689. {
  3690. "key": "subMenu-tabbar",
  3691. "label": "TabBar 标签栏",
  3692. "components": ["t-tab-bar"]
  3693. },
  3694. {
  3695. "key": "subMenu-tabs",
  3696. "label": "Tabs 选项卡",
  3697. "components": ["t-tabs"]
  3698. }
  3699. ]
  3700. },
  3701. {
  3702. "key": "menu-input",
  3703. "label": "输入",
  3704. "submenu": [
  3705. {
  3706. "key": "subMenu-checkbox",
  3707. "label": "CheckBox 复选框",
  3708. "components": ["t-checkbox"]
  3709. },
  3710. {
  3711. "key": "subMenu-dateTimePicker",
  3712. "label": "DateTimePicker 时间选择器",
  3713. "components": ["t-date-time-picker"]
  3714. },
  3715. {
  3716. "key": "subMenu-input",
  3717. "label": "Input 输入框",
  3718. "components": ["t-input"]
  3719. },
  3720. {
  3721. "key": "subMenu-picker",
  3722. "label": "Picker 选择器",
  3723. "components": ["t-picker"]
  3724. },
  3725. {
  3726. "key": "subMenu-radio",
  3727. "label": "Radio 单选框",
  3728. "components": ["t-radio"]
  3729. },
  3730. {
  3731. "key": "subMenu-rate",
  3732. "label": "Rate 评分",
  3733. "components": ["t-rate"]
  3734. },
  3735. {
  3736. "key": "subMenu-search",
  3737. "label": "Search 搜索框",
  3738. "components": ["t-search"]
  3739. },
  3740. {
  3741. "key": "subMenu-slider",
  3742. "label": "Slider 滑动选择器",
  3743. "components": ["t-slider"]
  3744. },
  3745. {
  3746. "key": "subMenu-stepper",
  3747. "label": "Stepper 步进器",
  3748. "components": ["t-stepper"]
  3749. },
  3750. {
  3751. "key": "subMenu-switch",
  3752. "label": "Switch 开关",
  3753. "components": ["t-switch"]
  3754. },
  3755. {
  3756. "key": "subMenu-textarea",
  3757. "label": "Textarea 多行文本框",
  3758. "components": ["t-textarea"]
  3759. },
  3760. {
  3761. "key": "subMenu-upload",
  3762. "label": "UpLoad 上传",
  3763. "components": ["t-upload"]
  3764. }
  3765. ]
  3766. },
  3767. {
  3768. "key": "menu-data",
  3769. "label": "数据展示",
  3770. "submenu": [
  3771. {
  3772. "key": "subMenu-avatar",
  3773. "label": "Avatar 头像",
  3774. "components": ["t-avatar"]
  3775. },
  3776. {
  3777. "key": "subMenu-badge",
  3778. "label": "Badge 徽标",
  3779. "components": ["t-badge"]
  3780. },
  3781. {
  3782. "key": "subMenu-cell",
  3783. "label": "Cell 单元格",
  3784. "components": ["t-cell"]
  3785. },
  3786. {
  3787. "key": "subMenu-collapse",
  3788. "label": "Collapse 折叠面板",
  3789. "components": ["t-collapse"]
  3790. },
  3791. {
  3792. "key": "subMenu-dropdown-menu",
  3793. "label": "DropdownMenu 下拉菜单",
  3794. "components": ["t-dropdown-menu"]
  3795. },
  3796. {
  3797. "key": "subMenu-empty",
  3798. "label": "Empty 空状态",
  3799. "components": ["t-empty"]
  3800. },
  3801. {
  3802. "key": "subMenu-footer",
  3803. "label": "Footer 页脚",
  3804. "components": ["t-footer"]
  3805. },
  3806. {
  3807. "key": "subMenu-grid",
  3808. "label": "Grid 宫格",
  3809. "components": ["t-grid"]
  3810. },
  3811. {
  3812. "key": "subMenu-image",
  3813. "label": "Image 图片",
  3814. "components": ["t-image"]
  3815. },
  3816. {
  3817. "key": "subMenu-skeleton",
  3818. "label": "Skeleton 骨架屏",
  3819. "components": ["t-skeleton"]
  3820. },
  3821. {
  3822. "key": "subMenu-sticky",
  3823. "label": "Sticky 吸顶容器",
  3824. "components": ["t-sticky"]
  3825. },
  3826. {
  3827. "key": "subMenu-swiper",
  3828. "label": "Swiper 轮播图",
  3829. "components": ["t-swiper"]
  3830. },
  3831. {
  3832. "key": "subMenu-tag",
  3833. "label": "Tag 标签",
  3834. "components": ["t-tag"]
  3835. }
  3836. ]
  3837. },
  3838. {
  3839. "key": "menu-info",
  3840. "label": "消息提醒",
  3841. "submenu": [
  3842. {
  3843. "key": "subMenu-actionsheet",
  3844. "label": "ActionSheet 动作面板",
  3845. "components": ["t-action-sheet"]
  3846. },
  3847. {
  3848. "key": "subMenu-back-top",
  3849. "label": "BackTop 返回顶部",
  3850. "components": ["t-back-top"]
  3851. },
  3852. {
  3853. "key": "subMenu-dialog",
  3854. "label": "Dialog 弹出框",
  3855. "components": ["t-dialog"]
  3856. },
  3857. {
  3858. "key": "subMenu-loading",
  3859. "label": "Loading 加载",
  3860. "components": ["t-loading"]
  3861. },
  3862. {
  3863. "key": "subMenu-message",
  3864. "label": "Message 消息通知",
  3865. "components": ["t-message"]
  3866. },
  3867. {
  3868. "key": "subMenu-popup",
  3869. "label": "Popup 弹出层",
  3870. "components": ["t-popup"]
  3871. },
  3872. {
  3873. "key": "subMenu-progress",
  3874. "label": "Progress 进度条",
  3875. "components": ["t-progress"]
  3876. },
  3877. {
  3878. "key": "subMenu-pullDownRefresh",
  3879. "label": "PullDownRefresh 下拉刷新",
  3880. "components": ["t-pull-down-refresh"]
  3881. },
  3882. {
  3883. "key": "subMenu-swipeCell",
  3884. "label": "SwipeCell 滑动操作",
  3885. "components": ["t-swipe-cell"]
  3886. },
  3887. {
  3888. "key": "subMenu-toast",
  3889. "label": "Toast 轻提示",
  3890. "components": ["t-toast"]
  3891. }
  3892. ]
  3893. }
  3894. ]
  3895. }