neko-ui 2.8.21 → 2.8.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. package/es/avatar/README.mdx +10 -0
  2. package/es/avatar/examples/basic.md +14 -0
  3. package/es/avatar/examples/group.md +57 -0
  4. package/es/avatar/examples/size.md +21 -0
  5. package/es/avatar/style.js +2 -2
  6. package/es/avatar/style.js.map +1 -1
  7. package/es/back-top/README.mdx +10 -0
  8. package/es/back-top/examples/basic.md +19 -0
  9. package/es/back-top/examples/mount.md +36 -0
  10. package/es/back-top/examples/target.md +46 -0
  11. package/es/basic-config/README.mdx +11 -0
  12. package/es/button/README.mdx +10 -0
  13. package/es/button/examples/basic.md +21 -0
  14. package/es/button/examples/block.md +33 -0
  15. package/es/button/examples/circle.md +21 -0
  16. package/es/button/examples/danger.md +23 -0
  17. package/es/button/examples/dashed.md +21 -0
  18. package/es/button/examples/disabled.md +35 -0
  19. package/es/button/examples/fill.md +21 -0
  20. package/es/button/examples/flat.md +21 -0
  21. package/es/button/examples/ghost.md +21 -0
  22. package/es/button/examples/icon.md +30 -0
  23. package/es/button/examples/link.md +21 -0
  24. package/es/button/examples/size.md +23 -0
  25. package/es/capture-screen/README.mdx +10 -0
  26. package/es/capture-screen/examples/basic.md +13 -0
  27. package/es/capture-screen/examples/custom-save.md +30 -0
  28. package/es/capture-screen/examples/preview.md +13 -0
  29. package/es/capture-screen/examples/recorder-save.md +13 -0
  30. package/es/carousel/README.mdx +10 -0
  31. package/es/carousel/examples/autoplay.md +21 -0
  32. package/es/carousel/examples/basic.md +23 -0
  33. package/es/carousel/examples/dots.md +23 -0
  34. package/es/carousel/examples/header.md +38 -0
  35. package/es/checkbox/README.mdx +10 -0
  36. package/es/checkbox/examples/basic.md +31 -0
  37. package/es/checkbox/examples/check-all.md +37 -0
  38. package/es/checkbox/examples/disabled-all.md +28 -0
  39. package/es/checkbox/examples/disabled-option.md +35 -0
  40. package/es/checkbox/examples/field-names.md +40 -0
  41. package/es/checkbox/examples/status.md +37 -0
  42. package/es/checkbox/examples/vertical.md +36 -0
  43. package/es/code/README.mdx +10 -0
  44. package/es/code/examples/basic.md +19 -0
  45. package/es/code/examples/diff.md +45 -0
  46. package/es/code/examples/line-number.md +18 -0
  47. package/es/code/examples/live-edit.md +20 -0
  48. package/es/code/examples/toolbar.md +18 -0
  49. package/es/code/index.js +2 -2
  50. package/es/code/index.js.map +1 -1
  51. package/es/color-palette/README.mdx +10 -0
  52. package/es/color-palette/examples/default-value.md +25 -0
  53. package/es/color-palette/examples/hexa.md +13 -0
  54. package/es/color-palette/examples/hsla.md +13 -0
  55. package/es/color-palette/examples/rgba.md +13 -0
  56. package/es/color-picker/README.mdx +10 -0
  57. package/es/color-picker/examples/basic.md +12 -0
  58. package/es/color-picker/examples/default-value.md +20 -0
  59. package/es/color-picker/examples/size.md +17 -0
  60. package/es/cron/README.mdx +10 -0
  61. package/es/cron/examples/basic.md +19 -0
  62. package/es/cron/examples/card.md +12 -0
  63. package/es/cron/examples/show-cron.md +12 -0
  64. package/es/date-picker/README.mdx +10 -0
  65. package/es/date-picker/examples/basic.md +24 -0
  66. package/es/date-picker/examples/date.md +13 -0
  67. package/es/date-picker/examples/disbaled.md +13 -0
  68. package/es/date-picker/examples/header.md +13 -0
  69. package/es/date-picker/examples/month.md +13 -0
  70. package/es/date-picker/examples/time.md +15 -0
  71. package/es/date-picker/examples/today.md +13 -0
  72. package/es/date-picker/examples/year.md +13 -0
  73. package/es/dropdown/README.mdx +10 -0
  74. package/es/dropdown/examples/arrow.md +59 -0
  75. package/es/dropdown/examples/basic.md +17 -0
  76. package/es/dropdown/examples/click.md +45 -0
  77. package/es/dropdown/examples/context-menu.md +66 -0
  78. package/es/dropdown/examples/field-names.md +44 -0
  79. package/es/dropdown/examples/icon.md +30 -0
  80. package/es/dropdown/examples/multiple.md +45 -0
  81. package/es/dropdown/examples/no-data.md +16 -0
  82. package/es/dropdown/examples/placement.md +59 -0
  83. package/es/dropdown/examples/toggle.md +36 -0
  84. package/es/highlight-text/README.mdx +10 -0
  85. package/es/highlight-text/examples/basic.md +19 -0
  86. package/es/highlight-text/examples/mut.md +47 -0
  87. package/es/highlight-text/examples/not-hightlight.md +19 -0
  88. package/es/img/README.mdx +10 -0
  89. package/es/img/examples/basic.md +17 -0
  90. package/es/img/examples/close-mask.md +21 -0
  91. package/es/img/examples/disabled.md +16 -0
  92. package/es/img/examples/error.md +13 -0
  93. package/es/img/examples/esc.md +21 -0
  94. package/es/img/examples/open-change.md +25 -0
  95. package/es/input/README.mdx +10 -0
  96. package/es/input/examples/basic.md +31 -0
  97. package/es/input/examples/prefix&suffix.md +33 -0
  98. package/es/input/examples/size.md +21 -0
  99. package/es/input/examples/status.md +23 -0
  100. package/es/input-number/README.mdx +10 -0
  101. package/es/input-number/examples/basic.md +26 -0
  102. package/es/input-number/examples/formatter.md +36 -0
  103. package/es/input-number/examples/max-min.md +13 -0
  104. package/es/katex/README.mdx +42 -0
  105. package/es/katex/examples/block.md +25 -0
  106. package/es/katex/examples/inline.md +19 -0
  107. package/es/md/README.mdx +10 -0
  108. package/es/md/examples/in-children.md +23 -0
  109. package/es/md/examples/in-text.md +32 -0
  110. package/es/md/examples/math.md +36 -0
  111. package/es/menu/README.mdx +10 -0
  112. package/es/menu/examples/basic.md +17 -0
  113. package/es/menu/examples/field-names.md +42 -0
  114. package/es/menu/examples/icon.md +125 -0
  115. package/es/menu/examples/multiple.md +42 -0
  116. package/es/modal/README.mdx +10 -0
  117. package/es/modal/examples/basic.md +56 -0
  118. package/es/modal/examples/close-icon.md +57 -0
  119. package/es/modal/examples/esc-closable.md +64 -0
  120. package/es/modal/examples/mask-blur.md +56 -0
  121. package/es/modal/examples/mask-closable.md +64 -0
  122. package/es/notification/README.mdx +11 -0
  123. package/es/notification/examples/basic.md +35 -0
  124. package/es/notification/examples/close.md +35 -0
  125. package/es/notification/examples/type.md +84 -0
  126. package/es/notification/examples/update.md +52 -0
  127. package/es/pagination/README.mdx +10 -0
  128. package/es/pagination/examples/basic.md +13 -0
  129. package/es/pagination/examples/onchange.md +29 -0
  130. package/es/pagination/examples/size.md +23 -0
  131. package/es/pagination/examples/total-text.md +42 -0
  132. package/es/popover/README.mdx +10 -0
  133. package/es/popover/examples/basic.md +35 -0
  134. package/es/popover/examples/click.md +15 -0
  135. package/es/popover/examples/context-menu.md +58 -0
  136. package/es/popover/examples/controlled.md +47 -0
  137. package/es/provider/README.mdx +10 -0
  138. package/es/provider/examples/scheme.md +14 -0
  139. package/es/radio/README.mdx +10 -0
  140. package/es/radio/examples/basic.md +19 -0
  141. package/es/radio/examples/disabled-option.md +19 -0
  142. package/es/radio/examples/disabled.md +19 -0
  143. package/es/radio/examples/field-names.md +39 -0
  144. package/es/radio/examples/layout-vertical.md +19 -0
  145. package/es/radio/examples/status.md +31 -0
  146. package/es/segmented/README.mdx +10 -0
  147. package/es/segmented/examples/basic.md +18 -0
  148. package/es/segmented/examples/custom-field-names.md +43 -0
  149. package/es/segmented/examples/disabled-option.md +29 -0
  150. package/es/segmented/examples/disabled.md +18 -0
  151. package/es/segmented/examples/icon.md +28 -0
  152. package/es/segmented/examples/options.md +21 -0
  153. package/es/select/README.mdx +10 -0
  154. package/es/select/examples/basic.md +44 -0
  155. package/es/select/examples/disabled-option.md +21 -0
  156. package/es/select/examples/disabled.md +24 -0
  157. package/es/select/examples/field-names.md +40 -0
  158. package/es/select/examples/item-suffix.md +84 -0
  159. package/es/select/examples/multiple.md +61 -0
  160. package/es/select/examples/no-data.md +12 -0
  161. package/es/select/examples/prefix-icon.md +74 -0
  162. package/es/skeleton/README.mdx +10 -0
  163. package/es/skeleton/examples/animation.md +13 -0
  164. package/es/skeleton/examples/avatar.md +13 -0
  165. package/es/skeleton/examples/basic.md +12 -0
  166. package/es/skeleton/examples/rows.md +13 -0
  167. package/es/skeleton/examples/title.md +12 -0
  168. package/es/spin/README.mdx +10 -0
  169. package/es/spin/examples/basic.md +67 -0
  170. package/es/switch/README.mdx +10 -0
  171. package/es/switch/examples/basic.md +24 -0
  172. package/es/switch/examples/checked-text.md +17 -0
  173. package/es/switch/examples/disabled.md +15 -0
  174. package/es/switch/examples/loading.md +17 -0
  175. package/es/table/README.mdx +10 -0
  176. package/es/table/examples/basic.md +29 -0
  177. package/es/table/examples/key.md +29 -0
  178. package/es/table/examples/order.md +29 -0
  179. package/es/table/examples/pagination.md +67 -0
  180. package/es/table/examples/render.md +92 -0
  181. package/es/table/examples/size.md +52 -0
  182. package/es/table/examples/summary.md +40 -0
  183. package/es/tabs/README.mdx +10 -0
  184. package/es/tabs/examples/add-remove.md +115 -0
  185. package/es/tabs/examples/animated.md +33 -0
  186. package/es/tabs/examples/basic.md +32 -0
  187. package/es/tabs/examples/card.md +33 -0
  188. package/es/tabs/examples/center.md +33 -0
  189. package/es/tabs/examples/disabled-tab.md +34 -0
  190. package/es/tabs/examples/disabled.md +33 -0
  191. package/es/tabs/examples/extra.md +65 -0
  192. package/es/tag/README.mdx +10 -0
  193. package/es/tag/examples/basic.md +28 -0
  194. package/es/tag/examples/bordered.md +19 -0
  195. package/es/tag/examples/color.md +25 -0
  196. package/es/tag/examples/icon.md +21 -0
  197. package/es/tag/examples/type.md +19 -0
  198. package/es/theme/README.mdx +10 -0
  199. package/es/theme/examples/colors.md +123 -0
  200. package/es/theme/examples/theme.md +19 -0
  201. package/es/theme/index.js.map +1 -1
  202. package/es/tree/README.mdx +10 -0
  203. package/es/tree/examples/basic.md +108 -0
  204. package/es/tree/examples/custom-render.md +115 -0
  205. package/es/tree/examples/direction.md +100 -0
  206. package/es/tree/examples/field-names.md +114 -0
  207. package/es/tree/examples/multiple.md +117 -0
  208. package/es/tree/examples/readonly.md +90 -0
  209. package/es/tree/examples/render-tree-string1.md +70 -0
  210. package/es/tree/examples/render-tree-string2.md +52 -0
  211. package/es/tree/examples/schema.md +130 -0
  212. package/es/tree/examples/size.md +125 -0
  213. package/es/tree/examples/toggle.md +71 -0
  214. package/es/typography/README.mdx +10 -0
  215. package/es/typography/examples/basic.md +27 -0
  216. package/es/typography/examples/tag.md +25 -0
  217. package/es/typography/examples/truncated.md +17 -0
  218. package/lib/avatar/README.mdx +10 -0
  219. package/lib/avatar/examples/basic.md +14 -0
  220. package/lib/avatar/examples/group.md +57 -0
  221. package/lib/avatar/examples/size.md +21 -0
  222. package/lib/avatar/style.js +2 -2
  223. package/lib/avatar/style.js.map +1 -1
  224. package/lib/back-top/README.mdx +10 -0
  225. package/lib/back-top/examples/basic.md +19 -0
  226. package/lib/back-top/examples/mount.md +36 -0
  227. package/lib/back-top/examples/target.md +46 -0
  228. package/lib/basic-config/README.mdx +11 -0
  229. package/lib/button/README.mdx +10 -0
  230. package/lib/button/examples/basic.md +21 -0
  231. package/lib/button/examples/block.md +33 -0
  232. package/lib/button/examples/circle.md +21 -0
  233. package/lib/button/examples/danger.md +23 -0
  234. package/lib/button/examples/dashed.md +21 -0
  235. package/lib/button/examples/disabled.md +35 -0
  236. package/lib/button/examples/fill.md +21 -0
  237. package/lib/button/examples/flat.md +21 -0
  238. package/lib/button/examples/ghost.md +21 -0
  239. package/lib/button/examples/icon.md +30 -0
  240. package/lib/button/examples/link.md +21 -0
  241. package/lib/button/examples/size.md +23 -0
  242. package/lib/capture-screen/README.mdx +10 -0
  243. package/lib/capture-screen/examples/basic.md +13 -0
  244. package/lib/capture-screen/examples/custom-save.md +30 -0
  245. package/lib/capture-screen/examples/preview.md +13 -0
  246. package/lib/capture-screen/examples/recorder-save.md +13 -0
  247. package/lib/carousel/README.mdx +10 -0
  248. package/lib/carousel/examples/autoplay.md +21 -0
  249. package/lib/carousel/examples/basic.md +23 -0
  250. package/lib/carousel/examples/dots.md +23 -0
  251. package/lib/carousel/examples/header.md +38 -0
  252. package/lib/checkbox/README.mdx +10 -0
  253. package/lib/checkbox/examples/basic.md +31 -0
  254. package/lib/checkbox/examples/check-all.md +37 -0
  255. package/lib/checkbox/examples/disabled-all.md +28 -0
  256. package/lib/checkbox/examples/disabled-option.md +35 -0
  257. package/lib/checkbox/examples/field-names.md +40 -0
  258. package/lib/checkbox/examples/status.md +37 -0
  259. package/lib/checkbox/examples/vertical.md +36 -0
  260. package/lib/code/README.mdx +10 -0
  261. package/lib/code/examples/basic.md +19 -0
  262. package/lib/code/examples/diff.md +45 -0
  263. package/lib/code/examples/line-number.md +18 -0
  264. package/lib/code/examples/live-edit.md +20 -0
  265. package/lib/code/examples/toolbar.md +18 -0
  266. package/lib/code/index.js +2 -2
  267. package/lib/code/index.js.map +1 -1
  268. package/lib/color-palette/README.mdx +10 -0
  269. package/lib/color-palette/examples/default-value.md +25 -0
  270. package/lib/color-palette/examples/hexa.md +13 -0
  271. package/lib/color-palette/examples/hsla.md +13 -0
  272. package/lib/color-palette/examples/rgba.md +13 -0
  273. package/lib/color-picker/README.mdx +10 -0
  274. package/lib/color-picker/examples/basic.md +12 -0
  275. package/lib/color-picker/examples/default-value.md +20 -0
  276. package/lib/color-picker/examples/size.md +17 -0
  277. package/lib/cron/README.mdx +10 -0
  278. package/lib/cron/examples/basic.md +19 -0
  279. package/lib/cron/examples/card.md +12 -0
  280. package/lib/cron/examples/show-cron.md +12 -0
  281. package/lib/date-picker/README.mdx +10 -0
  282. package/lib/date-picker/examples/basic.md +24 -0
  283. package/lib/date-picker/examples/date.md +13 -0
  284. package/lib/date-picker/examples/disbaled.md +13 -0
  285. package/lib/date-picker/examples/header.md +13 -0
  286. package/lib/date-picker/examples/month.md +13 -0
  287. package/lib/date-picker/examples/time.md +15 -0
  288. package/lib/date-picker/examples/today.md +13 -0
  289. package/lib/date-picker/examples/year.md +13 -0
  290. package/lib/dropdown/README.mdx +10 -0
  291. package/lib/dropdown/examples/arrow.md +59 -0
  292. package/lib/dropdown/examples/basic.md +17 -0
  293. package/lib/dropdown/examples/click.md +45 -0
  294. package/lib/dropdown/examples/context-menu.md +66 -0
  295. package/lib/dropdown/examples/field-names.md +44 -0
  296. package/lib/dropdown/examples/icon.md +30 -0
  297. package/lib/dropdown/examples/multiple.md +45 -0
  298. package/lib/dropdown/examples/no-data.md +16 -0
  299. package/lib/dropdown/examples/placement.md +59 -0
  300. package/lib/dropdown/examples/toggle.md +36 -0
  301. package/lib/highlight-text/README.mdx +10 -0
  302. package/lib/highlight-text/examples/basic.md +19 -0
  303. package/lib/highlight-text/examples/mut.md +47 -0
  304. package/lib/highlight-text/examples/not-hightlight.md +19 -0
  305. package/lib/img/README.mdx +10 -0
  306. package/lib/img/examples/basic.md +17 -0
  307. package/lib/img/examples/close-mask.md +21 -0
  308. package/lib/img/examples/disabled.md +16 -0
  309. package/lib/img/examples/error.md +13 -0
  310. package/lib/img/examples/esc.md +21 -0
  311. package/lib/img/examples/open-change.md +25 -0
  312. package/lib/input/README.mdx +10 -0
  313. package/lib/input/examples/basic.md +31 -0
  314. package/lib/input/examples/prefix&suffix.md +33 -0
  315. package/lib/input/examples/size.md +21 -0
  316. package/lib/input/examples/status.md +23 -0
  317. package/lib/input-number/README.mdx +10 -0
  318. package/lib/input-number/examples/basic.md +26 -0
  319. package/lib/input-number/examples/formatter.md +36 -0
  320. package/lib/input-number/examples/max-min.md +13 -0
  321. package/lib/katex/README.mdx +42 -0
  322. package/lib/katex/examples/block.md +25 -0
  323. package/lib/katex/examples/inline.md +19 -0
  324. package/lib/md/README.mdx +10 -0
  325. package/lib/md/examples/in-children.md +23 -0
  326. package/lib/md/examples/in-text.md +32 -0
  327. package/lib/md/examples/math.md +36 -0
  328. package/lib/menu/README.mdx +10 -0
  329. package/lib/menu/examples/basic.md +17 -0
  330. package/lib/menu/examples/field-names.md +42 -0
  331. package/lib/menu/examples/icon.md +125 -0
  332. package/lib/menu/examples/multiple.md +42 -0
  333. package/lib/modal/README.mdx +10 -0
  334. package/lib/modal/examples/basic.md +56 -0
  335. package/lib/modal/examples/close-icon.md +57 -0
  336. package/lib/modal/examples/esc-closable.md +64 -0
  337. package/lib/modal/examples/mask-blur.md +56 -0
  338. package/lib/modal/examples/mask-closable.md +64 -0
  339. package/lib/notification/README.mdx +11 -0
  340. package/lib/notification/examples/basic.md +35 -0
  341. package/lib/notification/examples/close.md +35 -0
  342. package/lib/notification/examples/type.md +84 -0
  343. package/lib/notification/examples/update.md +52 -0
  344. package/lib/pagination/README.mdx +10 -0
  345. package/lib/pagination/examples/basic.md +13 -0
  346. package/lib/pagination/examples/onchange.md +29 -0
  347. package/lib/pagination/examples/size.md +23 -0
  348. package/lib/pagination/examples/total-text.md +42 -0
  349. package/lib/popover/README.mdx +10 -0
  350. package/lib/popover/examples/basic.md +35 -0
  351. package/lib/popover/examples/click.md +15 -0
  352. package/lib/popover/examples/context-menu.md +58 -0
  353. package/lib/popover/examples/controlled.md +47 -0
  354. package/lib/provider/README.mdx +10 -0
  355. package/lib/provider/examples/scheme.md +14 -0
  356. package/lib/radio/README.mdx +10 -0
  357. package/lib/radio/examples/basic.md +19 -0
  358. package/lib/radio/examples/disabled-option.md +19 -0
  359. package/lib/radio/examples/disabled.md +19 -0
  360. package/lib/radio/examples/field-names.md +39 -0
  361. package/lib/radio/examples/layout-vertical.md +19 -0
  362. package/lib/radio/examples/status.md +31 -0
  363. package/lib/segmented/README.mdx +10 -0
  364. package/lib/segmented/examples/basic.md +18 -0
  365. package/lib/segmented/examples/custom-field-names.md +43 -0
  366. package/lib/segmented/examples/disabled-option.md +29 -0
  367. package/lib/segmented/examples/disabled.md +18 -0
  368. package/lib/segmented/examples/icon.md +28 -0
  369. package/lib/segmented/examples/options.md +21 -0
  370. package/lib/select/README.mdx +10 -0
  371. package/lib/select/examples/basic.md +44 -0
  372. package/lib/select/examples/disabled-option.md +21 -0
  373. package/lib/select/examples/disabled.md +24 -0
  374. package/lib/select/examples/field-names.md +40 -0
  375. package/lib/select/examples/item-suffix.md +84 -0
  376. package/lib/select/examples/multiple.md +61 -0
  377. package/lib/select/examples/no-data.md +12 -0
  378. package/lib/select/examples/prefix-icon.md +74 -0
  379. package/lib/skeleton/README.mdx +10 -0
  380. package/lib/skeleton/examples/animation.md +13 -0
  381. package/lib/skeleton/examples/avatar.md +13 -0
  382. package/lib/skeleton/examples/basic.md +12 -0
  383. package/lib/skeleton/examples/rows.md +13 -0
  384. package/lib/skeleton/examples/title.md +12 -0
  385. package/lib/spin/README.mdx +10 -0
  386. package/lib/spin/examples/basic.md +67 -0
  387. package/lib/switch/README.mdx +10 -0
  388. package/lib/switch/examples/basic.md +24 -0
  389. package/lib/switch/examples/checked-text.md +17 -0
  390. package/lib/switch/examples/disabled.md +15 -0
  391. package/lib/switch/examples/loading.md +17 -0
  392. package/lib/table/README.mdx +10 -0
  393. package/lib/table/examples/basic.md +29 -0
  394. package/lib/table/examples/key.md +29 -0
  395. package/lib/table/examples/order.md +29 -0
  396. package/lib/table/examples/pagination.md +67 -0
  397. package/lib/table/examples/render.md +92 -0
  398. package/lib/table/examples/size.md +52 -0
  399. package/lib/table/examples/summary.md +40 -0
  400. package/lib/tabs/README.mdx +10 -0
  401. package/lib/tabs/examples/add-remove.md +115 -0
  402. package/lib/tabs/examples/animated.md +33 -0
  403. package/lib/tabs/examples/basic.md +32 -0
  404. package/lib/tabs/examples/card.md +33 -0
  405. package/lib/tabs/examples/center.md +33 -0
  406. package/lib/tabs/examples/disabled-tab.md +34 -0
  407. package/lib/tabs/examples/disabled.md +33 -0
  408. package/lib/tabs/examples/extra.md +65 -0
  409. package/lib/tag/README.mdx +10 -0
  410. package/lib/tag/examples/basic.md +28 -0
  411. package/lib/tag/examples/bordered.md +19 -0
  412. package/lib/tag/examples/color.md +25 -0
  413. package/lib/tag/examples/icon.md +21 -0
  414. package/lib/tag/examples/type.md +19 -0
  415. package/lib/theme/README.mdx +10 -0
  416. package/lib/theme/examples/colors.md +123 -0
  417. package/lib/theme/examples/theme.md +19 -0
  418. package/lib/theme/index.js.map +1 -1
  419. package/lib/tree/README.mdx +10 -0
  420. package/lib/tree/examples/basic.md +108 -0
  421. package/lib/tree/examples/custom-render.md +115 -0
  422. package/lib/tree/examples/direction.md +100 -0
  423. package/lib/tree/examples/field-names.md +114 -0
  424. package/lib/tree/examples/multiple.md +117 -0
  425. package/lib/tree/examples/readonly.md +90 -0
  426. package/lib/tree/examples/render-tree-string1.md +70 -0
  427. package/lib/tree/examples/render-tree-string2.md +52 -0
  428. package/lib/tree/examples/schema.md +130 -0
  429. package/lib/tree/examples/size.md +125 -0
  430. package/lib/tree/examples/toggle.md +71 -0
  431. package/lib/typography/README.mdx +10 -0
  432. package/lib/typography/examples/basic.md +27 -0
  433. package/lib/typography/examples/tag.md +25 -0
  434. package/lib/typography/examples/truncated.md +17 -0
  435. package/package.json +13 -13
  436. package/umd/assets/svg/favicon.svg +1 -0
  437. package/umd/index.js +2 -2
  438. package/umd/js/523fd5cd0ae65592.js +1 -0
@@ -0,0 +1,117 @@
1
+ ---
2
+ title: 多选模式
3
+ description: 将 `multiple` 属性设置为 `true` 来开启多选模式; 重复点击同一项时,如果已选中则取消选中。
4
+ order: 3
5
+ ---
6
+
7
+ ```html
8
+ <n-tree multiple="true"></n-tree>
9
+ <script>
10
+ const el = container.querySelector('n-tree');
11
+
12
+ el.onchange = function (e) {
13
+ const [key, item] = e.detail;
14
+ el.value = key;
15
+ console.log('html', item);
16
+ };
17
+ el.data = [
18
+ {
19
+ title: '文件名称',
20
+ subTitle: 'object',
21
+ key: 'a',
22
+ children: [
23
+ {
24
+ title: '备注',
25
+ subTitle: 'object',
26
+ key: 'a.b',
27
+ children: [
28
+ {
29
+ title: '备注',
30
+ subTitle: 'string',
31
+ key: 'a.b.x',
32
+ },
33
+ ],
34
+ },
35
+ ],
36
+ },
37
+ {
38
+ title: '编号',
39
+ subTitle: 'object',
40
+ key: 'b',
41
+ children: [
42
+ {
43
+ title: '备注',
44
+ subTitle: 'string',
45
+ key: 'b2',
46
+ },
47
+ {
48
+ title: '是否有效',
49
+ subTitle: 'boolean',
50
+ key: 'c2',
51
+ },
52
+ ],
53
+ },
54
+ ];
55
+ </script>
56
+ ```
57
+
58
+ ```jsx
59
+ function Demo() {
60
+ let el;
61
+ const data = [
62
+ {
63
+ title: '文件名称',
64
+ subTitle: 'object',
65
+ key: 'a',
66
+ children: [
67
+ {
68
+ title: '备注',
69
+ subTitle: 'object',
70
+ key: 'a.b',
71
+ children: [
72
+ {
73
+ title: '备注',
74
+ subTitle: 'string',
75
+ key: 'a.b.x',
76
+ },
77
+ ],
78
+ },
79
+ ],
80
+ },
81
+ {
82
+ title: '编号',
83
+ subTitle: 'object',
84
+ key: 'b',
85
+ children: [
86
+ {
87
+ title: '备注',
88
+ subTitle: 'string',
89
+ key: 'b2',
90
+ },
91
+ {
92
+ title: '是否有效',
93
+ subTitle: 'boolean',
94
+ key: 'c2',
95
+ },
96
+ ],
97
+ },
98
+ ];
99
+
100
+ return (
101
+ <n-tree
102
+ ref={(e) => (el = e)}
103
+ data={data}
104
+ multiple
105
+ // 或者使用数据绑定
106
+ value={[]}
107
+ onChange={(e) => {
108
+ if (el) {
109
+ const [key, item] = e.detail;
110
+ el.value = key;
111
+ console.log('jsx', item);
112
+ }
113
+ }}
114
+ />
115
+ );
116
+ }
117
+ ```
@@ -0,0 +1,90 @@
1
+ ---
2
+ title: 只读模式
3
+ description: 通过设置 `readonly` 属性来开启只读模式, 不会触发 `onchange` 事件
4
+ order: 7
5
+ ---
6
+
7
+ ```html
8
+ <n-tree readonly="true" value="fileName.code"></n-tree>
9
+ <script>
10
+ const el = container.querySelector('n-tree');
11
+
12
+ el.onchange = function (e) {
13
+ // 不会触发
14
+ console.log(e);
15
+ };
16
+ el.data = [
17
+ {
18
+ title: '文件地址',
19
+ subTitle: 'fileAddr',
20
+ key: 'fileAddr',
21
+ },
22
+ {
23
+ subTitle: 'fileName',
24
+ title: '文件名称',
25
+ key: 'fileName',
26
+ children: [
27
+ {
28
+ title: '编号',
29
+ subTitle: 'fileName.code',
30
+ key: 'fileName.code',
31
+ },
32
+ ],
33
+ },
34
+ {
35
+ title: '编号',
36
+ subTitle: 'code',
37
+ key: 'code',
38
+ children: [
39
+ {
40
+ title: '是否有效',
41
+ subTitle: 'valid',
42
+ key: 'valid',
43
+ },
44
+ ],
45
+ },
46
+ ];
47
+ </script>
48
+ ```
49
+
50
+ ```jsx
51
+ <n-tree
52
+ data={[
53
+ {
54
+ title: '文件地址',
55
+ subTitle: 'fileAddr',
56
+ key: 'fileAddr',
57
+ },
58
+ {
59
+ subTitle: 'fileName',
60
+ title: '文件名称',
61
+ key: 'fileName',
62
+ children: [
63
+ {
64
+ title: '编号',
65
+ subTitle: 'fileName.code',
66
+ key: 'fileName.code',
67
+ },
68
+ ],
69
+ },
70
+ {
71
+ title: '编号',
72
+ subTitle: 'code',
73
+ key: 'code',
74
+ children: [
75
+ {
76
+ title: '是否有效',
77
+ subTitle: 'valid',
78
+ key: 'valid',
79
+ },
80
+ ],
81
+ },
82
+ ]}
83
+ value="fileName.code"
84
+ readonly
85
+ onChange={(e) => {
86
+ // 不会触发
87
+ console.log(e);
88
+ }}
89
+ />
90
+ ```
@@ -0,0 +1,70 @@
1
+ ---
2
+ title: 渲染树状字符串
3
+ description: 渲染 tree 命令输出的树状字符串
4
+ order: 9
5
+ ---
6
+
7
+ ```html
8
+ <n-tree></n-tree>
9
+ <script>
10
+ const el = container.querySelector('n-tree');
11
+
12
+ el.data = `.
13
+ |-- components
14
+ | |-- index.ts
15
+ | \`-- wave-circle
16
+ | |-- examples
17
+ | | |-- api.md
18
+ | | \`-- demo.mdx
19
+ | |-- index.tsx
20
+ | \`-- README.mdx
21
+ |-- config
22
+ | |-- index.ts
23
+ | \`-- prod.ts
24
+ |-- docs
25
+ | |-- index.js
26
+ | \`-- index.html
27
+ |-- es
28
+ | |-- index.js
29
+ | \`-- wave-circle
30
+ | \`-- index.js
31
+ |-- .eslintrc.yaml
32
+ |-- .gitattributes
33
+ |-- .prettierrc.yaml
34
+ |-- .stylelintrc.yaml
35
+ |-- package.json
36
+ |-- README.md
37
+ \`-- tsconfig.json`;
38
+ </script>
39
+ ```
40
+
41
+ ```jsx
42
+ <n-tree
43
+ data={`.
44
+ |-- components
45
+ | |-- index.ts
46
+ | \`-- wave-circle
47
+ | |-- examples
48
+ | | |-- api.md
49
+ | | \`-- demo.mdx
50
+ | |-- index.tsx
51
+ | \`-- README.mdx
52
+ |-- config
53
+ | |-- index.ts
54
+ | \`-- prod.ts
55
+ |-- docs
56
+ | |-- index.js
57
+ | \`-- index.html
58
+ |-- es
59
+ | |-- index.js
60
+ | \`-- wave-circle
61
+ | \`-- index.js
62
+ |-- .eslintrc.yaml
63
+ |-- .gitattributes
64
+ |-- .prettierrc.yaml
65
+ |-- .stylelintrc.yaml
66
+ |-- package.json
67
+ |-- README.md
68
+ \`-- tsconfig.json`}
69
+ />
70
+ ```
@@ -0,0 +1,52 @@
1
+ ---
2
+ title: 渲染 tree 命令输出的树状字符串
3
+ description: 渲染另一种格式的树状字符串
4
+ order: 10
5
+ ---
6
+
7
+ ```html
8
+ <n-tree></n-tree>
9
+ <script>
10
+ const el = container.querySelector('n-tree');
11
+
12
+ el.data = `.
13
+ ├── components
14
+ │ ├── @moneko
15
+ │ │ ├── README.mdx
16
+ │ │ └── 🕸sso
17
+ │ │ ├── README.mdx
18
+ │ │ └── examples
19
+ │ │ └── readme.md
20
+ │ └── index.ts
21
+ ├── config
22
+ │ ├── deploy.ts
23
+ │ └── index.ts
24
+ ├── jest.config.ts
25
+ ├── package.json
26
+ ├── tsconfig.json
27
+ └── typings
28
+ └── typings.d.ts`;
29
+ </script>
30
+ ```
31
+
32
+ ```jsx
33
+ <n-tree
34
+ data={`.
35
+ ├── components
36
+ │ ├── @moneko
37
+ │ │ ├── README.mdx
38
+ │ │ └── 🕸sso
39
+ │ │ ├── README.mdx
40
+ │ │ └── examples
41
+ │ │ └── readme.md
42
+ │ └── index.ts
43
+ ├── config
44
+ │ ├── deploy.ts
45
+ │ └── index.ts
46
+ ├── jest.config.ts
47
+ ├── package.json
48
+ ├── tsconfig.json
49
+ └── typings
50
+ └── typings.d.ts`}
51
+ />
52
+ ```
@@ -0,0 +1,130 @@
1
+ ---
2
+ title: 渲染JSON Schema结构
3
+ description: 通过设置 `fromSchema` 属性渲染来支持 `JSONSchema` 的数据源。
4
+ order: 5
5
+ ---
6
+
7
+ ```html
8
+ <n-tree from-schema="true"></n-tree>
9
+ <script>
10
+ const el = container.querySelector('n-tree');
11
+ el.onchange = function (e) {
12
+ const [key, item] = e.detail;
13
+
14
+ el.value = key;
15
+ console.log(item);
16
+ };
17
+ el.data = {
18
+ $schema: 'http://json-schema.org/draft-07/schema',
19
+ $id: 'http://example.com/example.json',
20
+ type: 'object',
21
+ additionalProperties: true,
22
+ properties: {
23
+ user: {
24
+ type: 'object',
25
+ title: '用户信息',
26
+ propertyOrder: 12,
27
+ required: ['name', 'email'],
28
+ properties: {
29
+ name: {
30
+ type: 'string',
31
+ title: '姓名',
32
+ description: '',
33
+ default: '',
34
+ },
35
+ works: {
36
+ type: 'object',
37
+ title: '履历',
38
+ description: '',
39
+ required: ['desgin'],
40
+ properties: {
41
+ desgin: {
42
+ type: 'string',
43
+ title: '设计',
44
+ description: '',
45
+ },
46
+ },
47
+ },
48
+ },
49
+ },
50
+ tags: {
51
+ type: 'array',
52
+ title: '标签',
53
+ description: '',
54
+ items: {
55
+ type: 'object',
56
+ title: 'items',
57
+ description: '',
58
+ additionalProperties: true,
59
+ properties: {
60
+ s: {
61
+ type: 'string',
62
+ title: 's',
63
+ description: '',
64
+ },
65
+ },
66
+ },
67
+ },
68
+ },
69
+ };
70
+ </script>
71
+ ```
72
+
73
+ ```jsx
74
+ <n-tree
75
+ data={{
76
+ $schema: 'http://json-schema.org/draft-07/schema',
77
+ $id: 'http://example.com/example.json',
78
+ type: 'object',
79
+ additionalProperties: true,
80
+ properties: {
81
+ user: {
82
+ type: 'object',
83
+ title: '用户信息',
84
+ propertyOrder: 12,
85
+ required: ['name', 'email'],
86
+ properties: {
87
+ name: {
88
+ type: 'string',
89
+ title: '姓名',
90
+ description: '',
91
+ default: '',
92
+ },
93
+ works: {
94
+ type: 'object',
95
+ title: '履历',
96
+ description: '',
97
+ required: ['desgin'],
98
+ properties: {
99
+ desgin: {
100
+ type: 'string',
101
+ title: '设计',
102
+ description: '',
103
+ },
104
+ },
105
+ },
106
+ },
107
+ },
108
+ tags: {
109
+ type: 'array',
110
+ title: '标签',
111
+ description: '',
112
+ items: {
113
+ type: 'object',
114
+ title: 'items',
115
+ description: '',
116
+ additionalProperties: true,
117
+ properties: {
118
+ s: {
119
+ type: 'string',
120
+ title: 's',
121
+ description: '',
122
+ },
123
+ },
124
+ },
125
+ },
126
+ },
127
+ }}
128
+ from-schema
129
+ />
130
+ ```
@@ -0,0 +1,125 @@
1
+ ---
2
+ title: 不同的尺寸
3
+ description: Tree 内置有大、中、小三种尺寸。通过 `size` 设置尺寸; 默认为 'normal'。
4
+ order: 7
5
+ ---
6
+
7
+ ```html
8
+ <n-segmented default-value="normal"></n-segmented>
9
+ <n-tree></n-tree>
10
+ <script>
11
+ const segmented = container.querySelector('n-segmented');
12
+ const tree = container.querySelector('n-tree');
13
+
14
+ segmented.options = [
15
+ { label: '小', value: 'small' },
16
+ { label: '默认:中', value: 'normal' },
17
+ { label: '大', value: 'large' },
18
+ ];
19
+ segmented.onchange = function (e) {
20
+ tree.size = e.detail;
21
+ };
22
+ tree.data = [
23
+ {
24
+ title: '文件名称',
25
+ subTitle: 'object',
26
+ key: 'a',
27
+ children: [
28
+ {
29
+ title: '备注',
30
+ subTitle: 'object',
31
+ key: 'a.b',
32
+ children: [
33
+ {
34
+ title: '备注',
35
+ subTitle: 'string',
36
+ key: 'a.b.x',
37
+ },
38
+ ],
39
+ },
40
+ ],
41
+ },
42
+ {
43
+ title: '编号',
44
+ subTitle: 'object',
45
+ key: 'b',
46
+ children: [
47
+ {
48
+ title: '备注',
49
+ subTitle: 'string',
50
+ key: 'b2',
51
+ },
52
+ {
53
+ title: '是否有效',
54
+ subTitle: 'boolean',
55
+ key: 'c2',
56
+ },
57
+ ],
58
+ },
59
+ ];
60
+ </script>
61
+ ```
62
+
63
+ ```jsx
64
+ function Demo() {
65
+ let el;
66
+
67
+ return (
68
+ <>
69
+ <n-segmented
70
+ default-value="normal"
71
+ options={[
72
+ { label: '小', value: 'small' },
73
+ { label: '默认:中', value: 'normal' },
74
+ { label: '大', value: 'large' },
75
+ ]}
76
+ onChange={(e) => {
77
+ el.size = e.detail;
78
+ }}
79
+ />
80
+ <n-tree
81
+ ref={(e) => (el = e)}
82
+ size="normal"
83
+ data={[
84
+ {
85
+ title: '文件名称',
86
+ subTitle: 'object',
87
+ key: 'a',
88
+ children: [
89
+ {
90
+ title: '备注',
91
+ subTitle: 'object',
92
+ key: 'a.b',
93
+ children: [
94
+ {
95
+ title: '备注',
96
+ subTitle: 'string',
97
+ key: 'a.b.x',
98
+ },
99
+ ],
100
+ },
101
+ ],
102
+ },
103
+ {
104
+ title: '编号',
105
+ subTitle: 'object',
106
+ key: 'b',
107
+ children: [
108
+ {
109
+ title: '备注',
110
+ subTitle: 'string',
111
+ key: 'b2',
112
+ },
113
+ {
114
+ title: '是否有效',
115
+ subTitle: 'boolean',
116
+ key: 'c2',
117
+ },
118
+ ],
119
+ },
120
+ ]}
121
+ />
122
+ </>
123
+ );
124
+ }
125
+ ```
@@ -0,0 +1,71 @@
1
+ ---
2
+ title: 重复点击取消选中
3
+ description: 通过设置`toggle`属性来开启取消选中, 仅支持单选模式; 重复点击同一项时,如果已选中则取消选中。
4
+ order: 6
5
+ ---
6
+
7
+ ```html
8
+ <n-tree toggle="true"></n-tree>
9
+ <script>
10
+ const el = container.querySelector('n-tree');
11
+
12
+ el.onchange = function (e) {
13
+ const [key, item] = e.detail;
14
+
15
+ el.value = key;
16
+ console.log(item);
17
+ };
18
+ el.data = [
19
+ {
20
+ title: '文件地址',
21
+ subTitle: 'fileAddr',
22
+ key: 'fileAddr',
23
+ },
24
+ {
25
+ title: '编号',
26
+ subTitle: 'channelCustNum',
27
+ key: 'channelCustNum',
28
+ },
29
+ {
30
+ title: '编号2',
31
+ subTitle: 'string',
32
+ key: 'string',
33
+ },
34
+ ];
35
+ </script>
36
+ ```
37
+
38
+ ```jsx
39
+ function Demo() {
40
+ let el;
41
+ return (
42
+ <n-tree
43
+ ref={(e) => (el = e)}
44
+ toggle
45
+ onChange={(e) => {
46
+ const [key, item] = e.detail;
47
+
48
+ el.value = key;
49
+ console.log(item);
50
+ }}
51
+ data={[
52
+ {
53
+ title: '文件地址',
54
+ subTitle: 'fileAddr',
55
+ key: 'fileAddr',
56
+ },
57
+ {
58
+ title: '编号',
59
+ subTitle: 'channelCustNum',
60
+ key: 'channelCustNum',
61
+ },
62
+ {
63
+ title: '编号2',
64
+ subTitle: 'string',
65
+ key: 'string',
66
+ },
67
+ ]}
68
+ />
69
+ );
70
+ }
71
+ ```
@@ -0,0 +1,10 @@
1
+ ---
2
+ type: 通用
3
+ title: 文字排版
4
+ subtitle: n-typography
5
+ icon: 🦟
6
+ ---
7
+
8
+ # Typography 排版
9
+
10
+ > 文本的基本格式
@@ -0,0 +1,27 @@
1
+ ---
2
+ title: 基本使用
3
+ description: 文本的基本格式
4
+ order: 1
5
+ ---
6
+
7
+ ```html
8
+ <n-typography>normal text</n-typography>
9
+ <n-typography type="secondary">secondary text</n-typography>
10
+ <n-typography type="success">success text</n-typography>
11
+ <n-typography type="error">danger text</n-typography>
12
+ <n-typography type="warning">warning text</n-typography>
13
+ <n-typography type="primary">primary text</n-typography>
14
+ <n-typography type="primary" disabled="true"> disabled text </n-typography>
15
+ ```
16
+
17
+ ```jsx
18
+ <n-typography>normal text</n-typography>
19
+ <n-typography type="secondary">secondary text</n-typography>
20
+ <n-typography type="success">success text</n-typography>
21
+ <n-typography type="error">danger text</n-typography>
22
+ <n-typography type="warning">warning text</n-typography>
23
+ <n-typography type="primary">primary text</n-typography>
24
+ <n-typography type="primary" disabled>
25
+ disabled text
26
+ </n-typography>
27
+ ```