@kdcloudjs/kdesign 1.0.2 → 1.1.0

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 (452) hide show
  1. package/LICENSE +104 -105
  2. package/dist/default-theme.js +17 -12
  3. package/dist/kdesign-complete.less +3334 -1374
  4. package/dist/kdesign.css +2565 -1931
  5. package/dist/kdesign.css.map +1 -1
  6. package/dist/kdesign.js +783 -112
  7. package/dist/kdesign.js.map +1 -1
  8. package/dist/kdesign.min.css +4 -4
  9. package/dist/kdesign.min.js +6 -6
  10. package/dist/kdesign.min.js.map +1 -1
  11. package/es/alert/style/index.css +32 -30
  12. package/es/alert/style/index.less +36 -37
  13. package/es/alert/style/token.less +29 -0
  14. package/es/anchor/style/index.css +48 -34
  15. package/es/anchor/style/index.less +19 -16
  16. package/es/anchor/style/mixin.less +1 -0
  17. package/es/anchor/style/token.less +33 -0
  18. package/es/avatar/style/index.css +18 -18
  19. package/es/avatar/style/index.less +4 -25
  20. package/es/avatar/style/mixin.less +21 -4
  21. package/es/avatar/style/token.less +20 -0
  22. package/es/badge/style/index.css +38 -29
  23. package/es/badge/style/index.less +28 -30
  24. package/es/badge/style/mixin.less +1 -5
  25. package/es/badge/style/token.less +23 -0
  26. package/es/base-data/style/index.css +25 -16
  27. package/es/base-data/style/index.less +17 -17
  28. package/es/base-data/style/token.less +27 -0
  29. package/es/button/button.d.ts +1 -3
  30. package/es/button/button.js +3 -15
  31. package/es/button/style/index.css +80 -81
  32. package/es/button/style/index.less +43 -51
  33. package/es/button/style/mixin.less +6 -4
  34. package/es/button/style/token.less +88 -0
  35. package/es/card/card.d.ts +1 -0
  36. package/es/card/card.js +4 -1
  37. package/es/card/style/index.css +48 -23
  38. package/es/card/style/index.less +43 -23
  39. package/es/card/style/token.less +28 -0
  40. package/es/carousel/style/index.css +36 -30
  41. package/es/carousel/style/index.less +14 -6
  42. package/es/carousel/style/mixin.less +1 -4
  43. package/es/carousel/style/token.less +20 -0
  44. package/es/cascader/cascader.js +1 -1
  45. package/es/cascader/style/index.css +35 -26
  46. package/es/cascader/style/index.less +24 -23
  47. package/es/cascader/style/token.less +28 -0
  48. package/es/checkbox/style/index.css +86 -80
  49. package/es/checkbox/style/index.less +26 -27
  50. package/es/checkbox/style/token.less +48 -0
  51. package/es/city-picker/style/index.css +24 -14
  52. package/es/city-picker/style/index.less +16 -16
  53. package/es/city-picker/style/token.less +25 -0
  54. package/es/collapse/style/index.css +37 -26
  55. package/es/collapse/style/index.less +7 -5
  56. package/es/collapse/style/mixin.less +1 -5
  57. package/es/collapse/style/token.less +26 -0
  58. package/es/config-provider/compDefaultProps.d.ts +4 -1
  59. package/es/config-provider/compDefaultProps.js +5 -2
  60. package/es/date-picker/style/index.css +81 -72
  61. package/es/date-picker/style/index.less +36 -36
  62. package/es/date-picker/style/mixin.less +20 -18
  63. package/es/date-picker/style/token.less +71 -0
  64. package/es/drawer/drawer.d.ts +0 -1
  65. package/es/drawer/drawer.js +6 -26
  66. package/es/drawer/style/index.css +37 -31
  67. package/es/drawer/style/index.less +24 -39
  68. package/es/drawer/style/token.less +23 -0
  69. package/es/dropdown/dropdown.d.ts +1 -0
  70. package/es/dropdown/dropdown.js +13 -8
  71. package/es/dropdown/menu.d.ts +1 -1
  72. package/es/dropdown/menu.js +3 -3
  73. package/es/dropdown/style/index.css +57 -48
  74. package/es/dropdown/style/index.less +27 -24
  75. package/es/dropdown/style/token.less +26 -0
  76. package/es/empty/defaultEmptyImg.d.ts +2 -0
  77. package/es/empty/defaultEmptyImg.js +92 -0
  78. package/es/empty/empty.d.ts +5 -1
  79. package/es/empty/empty.js +10 -9
  80. package/es/empty/illustrationEmptyImg.d.ts +2 -0
  81. package/es/empty/illustrationEmptyImg.js +439 -0
  82. package/es/empty/style/index.css +12 -3
  83. package/es/empty/style/index.less +1 -1
  84. package/es/empty/style/token.less +12 -0
  85. package/es/filter/style/index.css +44 -32
  86. package/es/filter/style/index.less +34 -32
  87. package/es/filter/style/token.less +28 -0
  88. package/es/form/style/index.css +19 -10
  89. package/es/form/style/index.less +9 -6
  90. package/es/form/style/token.less +27 -0
  91. package/es/grid/style/index.css +9 -0
  92. package/es/image/style/index.css +32 -23
  93. package/es/image/style/index.less +23 -22
  94. package/es/image/style/token.less +45 -0
  95. package/es/image-cropper/style/index.css +9 -0
  96. package/es/image-cropper/style/index.less +1 -1
  97. package/es/index.d.ts +1 -0
  98. package/es/index.js +2 -1
  99. package/es/input/style/index.css +97 -88
  100. package/es/input/style/index.less +34 -31
  101. package/es/input/style/mixin.less +54 -47
  102. package/es/input/style/token.less +46 -0
  103. package/es/input-number/style/css.js +1 -0
  104. package/es/input-number/style/index.css +25 -16
  105. package/es/input-number/style/index.d.ts +1 -0
  106. package/es/input-number/style/index.js +1 -0
  107. package/es/input-number/style/index.less +12 -12
  108. package/es/input-number/style/mixin.less +4 -2
  109. package/es/input-number/style/token.less +20 -0
  110. package/es/layout/style/index.css +41 -32
  111. package/es/layout/style/index.less +9 -8
  112. package/es/layout/style/token.less +30 -0
  113. package/es/link/index.d.ts +3 -0
  114. package/es/link/index.js +3 -0
  115. package/es/link/link.d.ts +18 -0
  116. package/es/link/link.js +89 -0
  117. package/es/link/style/css.js +2 -0
  118. package/es/link/style/index.css +155 -0
  119. package/es/link/style/index.d.ts +2 -0
  120. package/es/link/style/index.js +2 -0
  121. package/es/link/style/index.less +61 -0
  122. package/es/link/style/mixin.less +7 -0
  123. package/es/link/style/token.less +24 -0
  124. package/es/menu/menuItem.js +1 -2
  125. package/es/menu/style/index.css +89 -80
  126. package/es/menu/style/index.less +51 -26
  127. package/es/menu/style/mixin.less +16 -19
  128. package/es/menu/style/token.less +32 -0
  129. package/es/message/style/index.css +23 -13
  130. package/es/message/style/index.less +15 -13
  131. package/es/message/style/token.less +21 -0
  132. package/es/modal/style/index.css +37 -28
  133. package/es/modal/style/index.less +16 -26
  134. package/es/modal/style/mixin.less +2 -0
  135. package/es/modal/style/token.less +46 -0
  136. package/es/notification/content.js +1 -1
  137. package/es/notification/style/index.css +34 -25
  138. package/es/notification/style/index.less +21 -20
  139. package/es/notification/style/token.less +28 -0
  140. package/es/pagination/pagination.js +2 -2
  141. package/es/pagination/style/index.css +159 -159
  142. package/es/pagination/style/index.less +104 -113
  143. package/es/pagination/style/token.less +28 -0
  144. package/es/popconfirm/style/index.css +54 -33
  145. package/es/popconfirm/style/index.less +41 -20
  146. package/es/popconfirm/style/token.less +28 -0
  147. package/es/progress/style/index.css +41 -27
  148. package/es/progress/style/index.less +24 -8
  149. package/es/progress/style/mixin.less +2 -1
  150. package/es/progress/style/token.less +40 -0
  151. package/es/radio/style/index.css +91 -76
  152. package/es/radio/style/index.less +76 -64
  153. package/es/radio/style/token.less +47 -0
  154. package/es/rate/style/index.css +26 -17
  155. package/es/rate/style/index.less +4 -3
  156. package/es/rate/style/token.less +18 -0
  157. package/es/search/style/index.css +103 -82
  158. package/es/search/style/index.less +49 -35
  159. package/es/search/style/mixin.less +4 -2
  160. package/es/search/style/token.less +60 -0
  161. package/es/select/select.js +3 -14
  162. package/es/select/style/index.css +46 -37
  163. package/es/select/style/index.less +10 -10
  164. package/es/select/style/mixin.less +4 -7
  165. package/es/select/style/token.less +43 -0
  166. package/es/slider/slider.js +5 -13
  167. package/es/slider/sliderTooltip.js +0 -1
  168. package/es/slider/style/index.css +21 -12
  169. package/es/slider/style/index.less +10 -10
  170. package/es/slider/style/mixin.less +3 -1
  171. package/es/slider/style/token.less +17 -0
  172. package/es/space/style/index.css +9 -0
  173. package/es/spin/style/index.css +23 -14
  174. package/es/spin/style/index.less +3 -2
  175. package/es/spin/style/mixin.less +1 -0
  176. package/es/spin/style/token.less +15 -0
  177. package/es/split-panel/style/index.css +35 -44
  178. package/es/split-panel/style/index.less +16 -34
  179. package/es/split-panel/style/token.less +23 -0
  180. package/es/stepper/style/index.css +50 -25
  181. package/es/stepper/style/index.less +45 -11
  182. package/es/stepper/style/mixin.less +7 -5
  183. package/es/stepper/style/token.less +28 -0
  184. package/es/steps/Steps.js +4 -1
  185. package/es/steps/style/index.css +74 -37
  186. package/es/steps/style/index.less +281 -189
  187. package/es/steps/style/token.less +31 -0
  188. package/es/style/mixins/index.less +10 -9
  189. package/es/style/mixins/overlay.less +2 -2
  190. package/es/style/themes/default.less +22 -12
  191. package/es/style/themes/token.less +128 -0
  192. package/es/switch/style/index.css +38 -29
  193. package/es/switch/style/index.less +17 -6
  194. package/es/switch/style/mixin.less +6 -5
  195. package/es/switch/style/token.less +45 -0
  196. package/es/tabs/style/index.css +59 -50
  197. package/es/tabs/style/index.less +3 -3
  198. package/es/tabs/style/mixin.less +2 -0
  199. package/es/tabs/style/token.less +32 -0
  200. package/es/tabs/tabs.js +3 -1
  201. package/es/tag/style/index.css +122 -113
  202. package/es/tag/style/index.less +19 -19
  203. package/es/tag/style/mixin.less +2 -1
  204. package/es/tag/style/token.less +42 -0
  205. package/es/timeline/style/index.css +40 -30
  206. package/es/timeline/style/index.less +33 -30
  207. package/es/timeline/style/token.less +45 -0
  208. package/es/tooltip/style/index.css +26 -17
  209. package/es/tooltip/style/index.less +6 -5
  210. package/es/tooltip/style/token.less +20 -0
  211. package/es/transfer/operation.js +2 -2
  212. package/es/transfer/style/index.css +37 -24
  213. package/es/transfer/style/index.less +4 -0
  214. package/es/transfer/style/mixins.less +2 -0
  215. package/es/transfer/style/token.less +29 -0
  216. package/es/tree/style/index.css +37 -37
  217. package/es/tree/style/index.less +8 -20
  218. package/es/tree/style/mixin.less +1 -5
  219. package/es/tree/style/token.less +27 -0
  220. package/es/typography/style/index.css +46 -53
  221. package/es/typography/style/index.less +15 -15
  222. package/es/typography/style/mixin.less +9 -11
  223. package/es/typography/style/token.less +38 -0
  224. package/es/upload/style/index.css +41 -31
  225. package/es/upload/style/index.less +27 -25
  226. package/es/upload/style/token.less +28 -0
  227. package/lib/alert/style/index.css +32 -30
  228. package/lib/alert/style/index.less +36 -37
  229. package/lib/alert/style/token.less +29 -0
  230. package/lib/anchor/style/index.css +48 -34
  231. package/lib/anchor/style/index.less +19 -16
  232. package/lib/anchor/style/mixin.less +1 -0
  233. package/lib/anchor/style/token.less +33 -0
  234. package/lib/avatar/style/index.css +18 -18
  235. package/lib/avatar/style/index.less +4 -25
  236. package/lib/avatar/style/mixin.less +21 -4
  237. package/lib/avatar/style/token.less +20 -0
  238. package/lib/badge/style/index.css +38 -29
  239. package/lib/badge/style/index.less +28 -30
  240. package/lib/badge/style/mixin.less +1 -5
  241. package/lib/badge/style/token.less +23 -0
  242. package/lib/base-data/style/index.css +25 -16
  243. package/lib/base-data/style/index.less +17 -17
  244. package/lib/base-data/style/token.less +27 -0
  245. package/lib/button/button.d.ts +1 -3
  246. package/lib/button/button.js +3 -15
  247. package/lib/button/style/index.css +80 -81
  248. package/lib/button/style/index.less +43 -51
  249. package/lib/button/style/mixin.less +6 -4
  250. package/lib/button/style/token.less +88 -0
  251. package/lib/card/card.d.ts +1 -0
  252. package/lib/card/card.js +4 -1
  253. package/lib/card/style/index.css +48 -23
  254. package/lib/card/style/index.less +43 -23
  255. package/lib/card/style/token.less +28 -0
  256. package/lib/carousel/style/index.css +36 -30
  257. package/lib/carousel/style/index.less +14 -6
  258. package/lib/carousel/style/mixin.less +1 -4
  259. package/lib/carousel/style/token.less +20 -0
  260. package/lib/cascader/cascader.js +1 -1
  261. package/lib/cascader/style/index.css +35 -26
  262. package/lib/cascader/style/index.less +24 -23
  263. package/lib/cascader/style/token.less +28 -0
  264. package/lib/checkbox/style/index.css +86 -80
  265. package/lib/checkbox/style/index.less +26 -27
  266. package/lib/checkbox/style/token.less +48 -0
  267. package/lib/city-picker/style/index.css +24 -14
  268. package/lib/city-picker/style/index.less +16 -16
  269. package/lib/city-picker/style/token.less +25 -0
  270. package/lib/collapse/style/index.css +37 -26
  271. package/lib/collapse/style/index.less +7 -5
  272. package/lib/collapse/style/mixin.less +1 -5
  273. package/lib/collapse/style/token.less +26 -0
  274. package/lib/config-provider/compDefaultProps.d.ts +4 -1
  275. package/lib/config-provider/compDefaultProps.js +5 -2
  276. package/lib/date-picker/style/index.css +81 -72
  277. package/lib/date-picker/style/index.less +36 -36
  278. package/lib/date-picker/style/mixin.less +20 -18
  279. package/lib/date-picker/style/token.less +71 -0
  280. package/lib/drawer/drawer.d.ts +0 -1
  281. package/lib/drawer/drawer.js +6 -26
  282. package/lib/drawer/style/index.css +37 -31
  283. package/lib/drawer/style/index.less +24 -39
  284. package/lib/drawer/style/token.less +23 -0
  285. package/lib/dropdown/dropdown.d.ts +1 -0
  286. package/lib/dropdown/dropdown.js +13 -8
  287. package/lib/dropdown/menu.d.ts +1 -1
  288. package/lib/dropdown/menu.js +3 -3
  289. package/lib/dropdown/style/index.css +57 -48
  290. package/lib/dropdown/style/index.less +27 -24
  291. package/lib/dropdown/style/token.less +26 -0
  292. package/lib/empty/defaultEmptyImg.d.ts +2 -0
  293. package/lib/empty/defaultEmptyImg.js +113 -0
  294. package/lib/empty/empty.d.ts +5 -1
  295. package/lib/empty/empty.js +13 -9
  296. package/lib/empty/illustrationEmptyImg.d.ts +2 -0
  297. package/lib/empty/illustrationEmptyImg.js +460 -0
  298. package/lib/empty/style/index.css +12 -3
  299. package/lib/empty/style/index.less +1 -1
  300. package/lib/empty/style/token.less +12 -0
  301. package/lib/filter/style/index.css +44 -32
  302. package/lib/filter/style/index.less +34 -32
  303. package/lib/filter/style/token.less +28 -0
  304. package/lib/form/style/index.css +19 -10
  305. package/lib/form/style/index.less +9 -6
  306. package/lib/form/style/token.less +27 -0
  307. package/lib/grid/style/index.css +9 -0
  308. package/lib/image/style/index.css +32 -23
  309. package/lib/image/style/index.less +23 -22
  310. package/lib/image/style/token.less +45 -0
  311. package/lib/image-cropper/style/index.css +9 -0
  312. package/lib/image-cropper/style/index.less +1 -1
  313. package/lib/index.d.ts +1 -0
  314. package/lib/index.js +8 -0
  315. package/lib/input/style/index.css +97 -88
  316. package/lib/input/style/index.less +34 -31
  317. package/lib/input/style/mixin.less +54 -47
  318. package/lib/input/style/token.less +46 -0
  319. package/lib/input-number/style/css.js +2 -0
  320. package/lib/input-number/style/index.css +25 -16
  321. package/lib/input-number/style/index.d.ts +1 -0
  322. package/lib/input-number/style/index.js +2 -0
  323. package/lib/input-number/style/index.less +12 -12
  324. package/lib/input-number/style/mixin.less +4 -2
  325. package/lib/input-number/style/token.less +20 -0
  326. package/lib/layout/style/index.css +41 -32
  327. package/lib/layout/style/index.less +9 -8
  328. package/lib/layout/style/token.less +30 -0
  329. package/lib/link/index.d.ts +3 -0
  330. package/lib/link/index.js +36 -0
  331. package/lib/link/link.d.ts +18 -0
  332. package/lib/link/link.js +120 -0
  333. package/lib/link/style/css.js +5 -0
  334. package/lib/link/style/index.css +155 -0
  335. package/lib/link/style/index.d.ts +2 -0
  336. package/lib/link/style/index.js +5 -0
  337. package/lib/link/style/index.less +61 -0
  338. package/lib/link/style/mixin.less +7 -0
  339. package/lib/link/style/token.less +24 -0
  340. package/lib/menu/menuItem.js +1 -2
  341. package/lib/menu/style/index.css +89 -80
  342. package/lib/menu/style/index.less +51 -26
  343. package/lib/menu/style/mixin.less +16 -19
  344. package/lib/menu/style/token.less +32 -0
  345. package/lib/message/style/index.css +23 -13
  346. package/lib/message/style/index.less +15 -13
  347. package/lib/message/style/token.less +21 -0
  348. package/lib/modal/style/index.css +37 -28
  349. package/lib/modal/style/index.less +16 -26
  350. package/lib/modal/style/mixin.less +2 -0
  351. package/lib/modal/style/token.less +46 -0
  352. package/lib/notification/content.js +1 -1
  353. package/lib/notification/style/index.css +34 -25
  354. package/lib/notification/style/index.less +21 -20
  355. package/lib/notification/style/token.less +28 -0
  356. package/lib/pagination/pagination.js +2 -2
  357. package/lib/pagination/style/index.css +159 -159
  358. package/lib/pagination/style/index.less +104 -113
  359. package/lib/pagination/style/token.less +28 -0
  360. package/lib/popconfirm/style/index.css +54 -33
  361. package/lib/popconfirm/style/index.less +41 -20
  362. package/lib/popconfirm/style/token.less +28 -0
  363. package/lib/progress/style/index.css +41 -27
  364. package/lib/progress/style/index.less +24 -8
  365. package/lib/progress/style/mixin.less +2 -1
  366. package/lib/progress/style/token.less +40 -0
  367. package/lib/radio/style/index.css +91 -76
  368. package/lib/radio/style/index.less +76 -64
  369. package/lib/radio/style/token.less +47 -0
  370. package/lib/rate/style/index.css +26 -17
  371. package/lib/rate/style/index.less +4 -3
  372. package/lib/rate/style/token.less +18 -0
  373. package/lib/search/style/index.css +103 -82
  374. package/lib/search/style/index.less +49 -35
  375. package/lib/search/style/mixin.less +4 -2
  376. package/lib/search/style/token.less +60 -0
  377. package/lib/select/select.js +3 -14
  378. package/lib/select/style/index.css +46 -37
  379. package/lib/select/style/index.less +10 -10
  380. package/lib/select/style/mixin.less +4 -7
  381. package/lib/select/style/token.less +43 -0
  382. package/lib/slider/slider.js +5 -13
  383. package/lib/slider/sliderTooltip.js +0 -1
  384. package/lib/slider/style/index.css +21 -12
  385. package/lib/slider/style/index.less +10 -10
  386. package/lib/slider/style/mixin.less +3 -1
  387. package/lib/slider/style/token.less +17 -0
  388. package/lib/space/style/index.css +9 -0
  389. package/lib/spin/style/index.css +23 -14
  390. package/lib/spin/style/index.less +3 -2
  391. package/lib/spin/style/mixin.less +1 -0
  392. package/lib/spin/style/token.less +15 -0
  393. package/lib/split-panel/style/index.css +35 -44
  394. package/lib/split-panel/style/index.less +16 -34
  395. package/lib/split-panel/style/token.less +23 -0
  396. package/lib/stepper/style/index.css +50 -25
  397. package/lib/stepper/style/index.less +45 -11
  398. package/lib/stepper/style/mixin.less +7 -5
  399. package/lib/stepper/style/token.less +28 -0
  400. package/lib/steps/Steps.js +4 -1
  401. package/lib/steps/style/index.css +74 -37
  402. package/lib/steps/style/index.less +281 -189
  403. package/lib/steps/style/token.less +31 -0
  404. package/lib/style/components.less +1 -0
  405. package/lib/style/mixins/index.less +10 -9
  406. package/lib/style/mixins/overlay.less +2 -2
  407. package/lib/style/themes/default.less +22 -12
  408. package/lib/style/themes/token.less +128 -0
  409. package/lib/switch/style/index.css +38 -29
  410. package/lib/switch/style/index.less +17 -6
  411. package/lib/switch/style/mixin.less +6 -5
  412. package/lib/switch/style/token.less +45 -0
  413. package/lib/tabs/style/index.css +59 -50
  414. package/lib/tabs/style/index.less +3 -3
  415. package/lib/tabs/style/mixin.less +2 -0
  416. package/lib/tabs/style/token.less +32 -0
  417. package/lib/tabs/tabs.js +3 -1
  418. package/lib/tag/style/index.css +122 -113
  419. package/lib/tag/style/index.less +19 -19
  420. package/lib/tag/style/mixin.less +2 -1
  421. package/lib/tag/style/token.less +42 -0
  422. package/lib/timeline/style/index.css +40 -30
  423. package/lib/timeline/style/index.less +33 -30
  424. package/lib/timeline/style/token.less +45 -0
  425. package/lib/tooltip/style/index.css +26 -17
  426. package/lib/tooltip/style/index.less +6 -5
  427. package/lib/tooltip/style/token.less +20 -0
  428. package/lib/transfer/operation.js +2 -2
  429. package/lib/transfer/style/index.css +37 -24
  430. package/lib/transfer/style/index.less +4 -0
  431. package/lib/transfer/style/mixins.less +2 -0
  432. package/lib/transfer/style/token.less +29 -0
  433. package/lib/tree/style/index.css +37 -37
  434. package/lib/tree/style/index.less +8 -20
  435. package/lib/tree/style/mixin.less +1 -5
  436. package/lib/tree/style/token.less +27 -0
  437. package/lib/typography/style/index.css +46 -53
  438. package/lib/typography/style/index.less +15 -15
  439. package/lib/typography/style/mixin.less +9 -11
  440. package/lib/typography/style/token.less +38 -0
  441. package/lib/upload/style/index.css +41 -31
  442. package/lib/upload/style/index.less +27 -25
  443. package/lib/upload/style/token.less +28 -0
  444. package/package.json +5 -4
  445. package/es/base-data/style/mixin.less +0 -5
  446. package/es/empty/style/mixin.less +0 -5
  447. package/es/form/style/mixin.less +0 -5
  448. package/es/steps/style/mixin.less +0 -41
  449. package/lib/base-data/style/mixin.less +0 -5
  450. package/lib/empty/style/mixin.less +0 -5
  451. package/lib/form/style/mixin.less +0 -5
  452. package/lib/steps/style/mixin.less +0 -41
@@ -1,3 +1,5 @@
1
+ @import './token.less';
2
+
1
3
  // 按钮默认样式Mixins
2
4
  .btn() {
3
5
  padding: 0;
@@ -5,10 +7,10 @@
5
7
  display: inline-block;
6
8
  vertical-align: middle;
7
9
  box-sizing: border-box;
8
- font-weight: @font-weight;
9
- border: @btn-border-width @btn-border-style transparent;
10
+ font-weight: @btn-g-font-weight;
11
+ border: @btn-border-width solid transparent;
10
12
  user-select: none;
11
- border-radius: @radius-size;
13
+ border-radius: @btn-g-radius-border;
12
14
  text-align: center;
13
15
  background-color: transparent;
14
16
  cursor: pointer;
@@ -28,7 +30,7 @@
28
30
  .btn-size(@height, @font-size, @padding-vertical, @padding-horizontal, @min-width) {
29
31
  height: @height;
30
32
  min-width: @min-width;
31
- line-height: @height - (@padding-vertical * 2) - (@btn-border-width * 2);
33
+ line-height: calc(@height - (@padding-vertical * 2) - (@btn-border-width * 2));
32
34
  font-size: @font-size;
33
35
  padding: @padding-vertical @padding-horizontal;
34
36
  }
@@ -0,0 +1,88 @@
1
+ @import '../../style/themes/token.less';
2
+
3
+ @button-custom-prefix: ~'--@{kd-prefix}-c-button';
4
+
5
+ // color
6
+ @btn-primary-background-color: var(~'@{button-custom-prefix}-primary-color-background', @color-theme); // 基础背景颜色
7
+ @btn-primary-border-color: var(~'@{button-custom-prefix}-primary-color-border', @color-theme); // 基础边框颜色
8
+ @btn-primary-font-color: var(~'@{button-custom-prefix}-primary-color-text', @color-white); // 基础文字颜色
9
+ @btn-primary-background-color-hover: var(~'@{button-custom-prefix}-primary-color-background-hover', @color-theme-hover); // 基础hover背景颜色
10
+ @btn-primary-border-color-hover: var(~'@{button-custom-prefix}-primary-color-border-hover', @color-theme-hover); // 基础hover边框颜色
11
+ @btn-primary-background-color-active: var(~'@{button-custom-prefix}-primary-color-background-active', @color-theme-click); // 基础active背景颜色
12
+ @btn-primary-border-color-active: var(~'@{button-custom-prefix}-primary-color-border-active', @color-theme); // 基础active边框颜色
13
+ @btn-primary-background-color-disabled: var(~'@{button-custom-prefix}-primary-color-background-disabled', @color-theme-disabled); // 基础disabled背景颜色 禁用状态
14
+ @btn-primary-border-color-disabled: var(~'@{button-custom-prefix}-primary-color-border-disabled', @color-theme-disabled); // 基础disabled边框颜色
15
+
16
+ @btn-ghost-background-color: var(~'@{button-custom-prefix}-ghost-color-background', transparent); // 幽灵背景颜色
17
+ @btn-ghost-border-color: var(~'@{button-custom-prefix}-ghost-color-border', @color-border-strong); //幽灵边框颜色
18
+ @btn-ghost-font-color: var(~'@{button-custom-prefix}-ghost-color-text', @color-text-secondary); // 幽灵按钮文字颜色
19
+ @btn-ghost-border-color-hover: var(~'@{button-custom-prefix}-ghost-color-border-hover', @color-theme); //幽灵hover边框颜色
20
+ @btn-ghost-font-color-hover: var(~'@{button-custom-prefix}-ghost-color-text-hover', @color-theme); // 幽灵hover按钮文字颜色
21
+ @btn-ghost-border-color-active: var(~'@{button-custom-prefix}-ghost-color-border-active', @color-theme-click); //幽灵active边框颜色
22
+ @btn-ghost-background-color-disabled: var(~'@{button-custom-prefix}-ghost-color-background-disabled', @color-background-contain-disabled); // 幽灵disabled背景颜色
23
+ @btn-ghost-font-color-active: var(~'@{button-custom-prefix}-ghost-color-text-active', @color-theme-click); // 幽灵active按钮文字颜色
24
+ @btn-ghost-border-color-disabled: var(~'@{button-custom-prefix}-ghost-color-border-disabled', @color-disabled); //幽灵disabled边框颜色
25
+ @btn-ghost-font-color-disabled: var(~'@{button-custom-prefix}-ghost-color-text-disabled', @color-disabled); // 幽灵disabled按钮文字颜色
26
+
27
+ @btn-second-background-color: var(~'@{button-custom-prefix}-second-color-background', @color-background-3); // 次要背景颜色
28
+ @btn-second-border-color: var(~'@{button-custom-prefix}-second-color-border', @color-border-strong-3); // 次要边框颜色
29
+ @btn-second-font-color: var(~'@{button-custom-prefix}-second-color-text', @color-text-secondary-3); // 次要文字颜色
30
+ @btn-second-background-color-hover: var(~'@{button-custom-prefix}-second-color-background-hover', @color-white); // 次要hover背景颜色
31
+ @btn-second-border-color-hover: var(~'@{button-custom-prefix}-second-color-border-hover', @color-border-strong); // 次要hover边框颜色
32
+ @btn-second-font-color-hover: var(~'@{button-custom-prefix}-second-color-text-hover', @color-text-secondary); // 次要hover文字颜色
33
+ @btn-second-background-color-active: var(~'@{button-custom-prefix}-second-color-background-active', @color-white); // 次要active背景颜色
34
+ @btn-second-border-color-active: var(~'@{button-custom-prefix}-second-color-border-active', @color-border-strong); // 次要active边框颜色
35
+ @btn-second-font-color-active: var(~'@{button-custom-prefix}-second-color-text-active', @color-text-secondary); // 次要active文字颜色
36
+ @btn-second-background-color-disabled: var(~'@{button-custom-prefix}-second-color-background-disabled', @color-background-3); // 次要disabled背景颜色
37
+ @btn-second-border-color-disabled: var(~'@{button-custom-prefix}-second-color-border-disabled', @color-text-secondary-3); // 次要disabled边框颜色
38
+ @btn-second-font-color-disabled: var(~'@{button-custom-prefix}-second-color-text-disabled', @color-text-secondary-3); // 次要disabled文字颜色
39
+
40
+ @btn-text-g-text-color: var(~'@{button-custom-prefix}-text-color-text', @color-theme);
41
+ @btn-text-g-text-color-hover: var(~'@{button-custom-prefix}-text-color-text-hover', @color-theme-hover);
42
+ @btn-text-g-text-color-active: var(~'@{button-custom-prefix}-text-color-text-active', @color-theme-click);
43
+ @btn-text-g-text-color-disabled: var(~'@{button-custom-prefix}-text-color-text-disabled', @color-disabled);
44
+
45
+ @btn-disabled-background-color: var(~'@{button-custom-prefix}-color-background-disabled', @color-background-contain-disabled); // 禁用状态 背景颜色
46
+ @btn-disabled-border-color: var(~'@{button-custom-prefix}-color-border-disabled', @color-border-strong); // 禁用状态 边框颜色
47
+ @btn-disabled-font-color: var(~'@{button-custom-prefix}-text-color-disabled', @color-white); // 禁用状态 文字颜色
48
+
49
+ @btn-danger-background-color: var(~'@{button-custom-prefix}-danger-color-background', @color-error); // 危险状态 背景颜色
50
+ @btn-danger-border-color: var(~'@{button-custom-prefix}-danger-color-border', @color-error); // 危险状态 边框颜色
51
+ @btn-danger-font-color: var(~'@{button-custom-prefix}-danger-color-text', @color-white); // 危险状态 文字颜色
52
+
53
+ @btn-g-text-color-loading: var(~'@{button-custom-prefix}-text-color-loading', @color-theme);
54
+ @btn-primary-g-text-color-loading: var(~'@{button-custom-prefix}-primary-color-text-loading', @color-white);
55
+
56
+ @btn-background-ghost-g-text-color: var(~'@{button-custom-prefix}-background-ghost-color-text', @color-theme);
57
+ @btn-background-ghost-g-text-color-hover: var(~'@{button-custom-prefix}-background-ghost-color-text-hover', @color-white);
58
+
59
+ // duration
60
+ @btn-transition-fn: var(~'@{button-custom-prefix}-motion-timing-function', cubic-bezier(0.075, 0.82, 0.165, 1));
61
+ @btn-duration-fade: var(~'@{button-custom-prefix}-motion-duration-fade', @duration-slowly);
62
+ @btn-duration-wave: var(~'@{button-custom-prefix}-motion-duration-wave', @duration-quickly);
63
+
64
+ // font
65
+ @btn-g-font-weight: var(~'@{button-custom-prefix}-font-weight', @font-weight-light);
66
+ @btn-small-font-size: var(~'@{button-custom-prefix}-font-size-small', @font-size-small); // 小号 文字大小
67
+ @btn-middle-font-size: var(~'@{button-custom-prefix}-font-size-middle', @font-size-small); // 中号 文字大小
68
+ @btn-large-font-size: var(~'@{button-custom-prefix}-font-size-large', @font-size-large); // 大号 文字大小
69
+
70
+ // radius
71
+ @btn-g-radius-border: var(~'@{button-custom-prefix}-radius-border', @radius-border); //圆角
72
+
73
+ // sizing
74
+ @btn-border-width: var(~'@{button-custom-prefix}-sizing-border', 1px);
75
+ @btn-small-height: var(~'@{button-custom-prefix}-sizing-height-small', 24px); // 小号 高度
76
+ @btn-small-min-width: var(~'@{button-custom-prefix}-sizing-min-width-small', 60px); // 小号 最小宽度
77
+ @btn-middle-height: var(~'@{button-custom-prefix}-sizing-height-middle', 28px); // 中号 高度 高度配置
78
+ @btn-middle-min-width: var(~'@{button-custom-prefix}-sizing-min-width-middle', 60px); // 中号 最小宽度
79
+ @btn-large-height: var(~'@{button-custom-prefix}-sizing-height-large', 32px); // 大号 高度
80
+ @btn-large-min-width: var(~'@{button-custom-prefix}-sizing-min-width-large', 80px); // 大号 最小宽度
81
+
82
+ // spacing
83
+ @btn-small-padding-vertical: var(~'@{button-custom-prefix}-spacing-padding-vertical-small', 3px); // 小号 内间距 纵向
84
+ @btn-small-padding-horizontal: var(~'@{button-custom-prefix}-spacing-padding-horizontal-small', 8px); // 小号 内间距 横向
85
+ @btn-middle-padding-vertical: var(~'@{button-custom-prefix}-spacing-padding-vertical-middle', 5px); // 中号 内间距 纵向
86
+ @btn-middle-padding-horizontal: var(~'@{button-custom-prefix}-spacing-padding-horizontal-middle', 8px); // 中号 内间距 纵向 宽度配置
87
+ @btn-large-padding-vertical: var(~'@{button-custom-prefix}-spacing-padding-vertical-large', 6px); // 大号 内间距 纵向
88
+ @btn-large-padding-horizontal: var(~'@{button-custom-prefix}-spacing-padding-horizontal-large', 8px); // 大号 内间距 横向
package/es/card/card.d.ts CHANGED
@@ -19,6 +19,7 @@ export interface CardProps {
19
19
  headStyle?: React.CSSProperties;
20
20
  bodyStyle?: React.CSSProperties;
21
21
  actions?: Array<React.ReactNode>;
22
+ extra?: Array<React.ReactNode>;
22
23
  }
23
24
  declare const Card: React.FC<CardProps>;
24
25
  export default Card;
package/es/card/card.js CHANGED
@@ -18,6 +18,7 @@ var Card = function Card(props) {
18
18
  title = _getCompProps.title,
19
19
  avatar = _getCompProps.avatar,
20
20
  actions = _getCompProps.actions,
21
+ extra = _getCompProps.extra,
21
22
  children = _getCompProps.children,
22
23
  className = _getCompProps.className,
23
24
  hoverable = _getCompProps.hoverable,
@@ -57,7 +58,9 @@ var Card = function Card(props) {
57
58
  style: bodyStyle
58
59
  }, children), actions && /*#__PURE__*/React.createElement("div", {
59
60
  className: "".concat(prefixCls, "-actions")
60
- }, actions));
61
+ }, actions), extra && /*#__PURE__*/React.createElement("div", {
62
+ className: "".concat(prefixCls, "-extra")
63
+ }, extra));
61
64
  };
62
65
 
63
66
  Card.displayName = 'Card';
@@ -92,12 +92,21 @@
92
92
  /* ----------- Avatar ——————---- end */
93
93
  /* ----------- AdvancedSelector ——————---- start */
94
94
  /* ----------- AdvancedSelector ——————---- end */
95
+ /* ----------- motion ——————---- start */
96
+ /* ----------- motion ——————---- end */
97
+ /* ----------- transition ——————---- start */
98
+ /* ----------- transition ——————---- end */
99
+ /* ----------- zIndex ——————---- start */
100
+ /*
101
+ 普通组件内部自身层级应设置在0-100间
102
+ */
103
+ /* ----------- zIndex ——————---- end */
95
104
  /* 多行显示省略号 */
96
105
  /* 单行显示省略号 */
97
106
  /** 浮层箭头样式 **/
98
107
  .kd-card {
99
108
  position: relative;
100
- background-color: #fff;
109
+ background-color: var(--kd-c-card-color-background, var(--kd-g-color-white, #fff));
101
110
  -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.2);
102
111
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.2);
103
112
  }
@@ -106,11 +115,11 @@
106
115
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
107
116
  }
108
117
  .kd-card .kd-card-header {
109
- height: 40px;
110
- padding: 0 58px 0 12px;
118
+ height: var(--kd-c-card-sizing-title-height, 40px);
119
+ padding: 0 58px 0 var(--kd-c-card-spacing-padding-horizontal, 12px);
111
120
  line-height: 40px;
112
- font-size: 14px;
113
- color: #212121;
121
+ font-size: var(--kd-c-card-title-font-size, var(--kd-g-font-size-middle, 14px));
122
+ color: var(--kd-c-card-title-color, var(--kd-g-color-text-primary, #212121));
114
123
  white-space: nowrap;
115
124
  overflow: hidden;
116
125
  text-overflow: ellipsis;
@@ -123,12 +132,12 @@
123
132
  -ms-flex-align: center;
124
133
  align-items: center;
125
134
  height: 64px;
126
- padding: 0 12px;
135
+ padding: 0 var(--kd-c-card-spacing-padding-horizontal, 12px);
127
136
  }
128
137
  .kd-card .kd-card-avatar .kd-card-avatar-img {
129
138
  width: 42px;
130
139
  height: 42px;
131
- margin-right: 8px;
140
+ margin-right: var(--kd-c-card-spacing-padding-vertical, 8px);
132
141
  overflow: hidden;
133
142
  }
134
143
  .kd-card .kd-card-avatar .kd-card-avatar-img.circle {
@@ -139,44 +148,60 @@
139
148
  height: 100%;
140
149
  }
141
150
  .kd-card .kd-card-avatar .kd-card-avatar-title {
142
- font-size: 14px;
143
- color: #212121;
151
+ font-size: var(--kd-c-card-title-font-size, var(--kd-g-font-size-middle, 14px));
152
+ color: var(--kd-c-card-title-color, var(--kd-g-color-text-primary, #212121));
144
153
  }
145
154
  .kd-card .kd-card-avatar .kd-card-avatar-desc {
146
- font-size: 12px;
147
- color: #666;
155
+ font-size: var(--kd-c-card-content-font-size, var(--kd-g-font-size-small, 12px));
156
+ color: var(--kd-c-card-content-color, var(--kd-g-color-text-secondary, #666));
148
157
  }
149
158
  .kd-card .kd-checkbox {
150
159
  position: absolute;
151
- top: 12px;
152
- right: 12px;
160
+ top: var(--kd-c-card-spacing-padding-horizontal, 12px);
161
+ right: var(--kd-c-card-spacing-padding-horizontal, 12px);
153
162
  }
154
163
  .kd-card .kd-card-tags {
155
- padding: 4px 12px;
164
+ padding: 4px var(--kd-c-card-spacing-padding-horizontal, 12px);
156
165
  }
157
166
  .kd-card .kd-card-tags .kd-tag:not(:last-child) {
158
- margin-right: 8px;
167
+ margin-right: var(--kd-c-card-spacing-padding-vertical, 8px);
159
168
  }
160
169
  .kd-card .kd-card-body {
161
- padding: 8px 12px;
162
- font-size: 12px;
163
- color: #666;
170
+ padding: var(--kd-c-card-spacing-padding-vertical, 8px) var(--kd-c-card-spacing-padding-horizontal, 12px);
171
+ font-size: var(--kd-c-card-content-font-size, var(--kd-g-font-size-small, 12px));
172
+ color: var(--kd-c-card-content-color, var(--kd-g-color-text-secondary, #666));
164
173
  }
165
174
  .kd-card .kd-card-actions {
166
175
  height: 32px;
167
- padding: 0 12px;
176
+ padding: 0 var(--kd-c-card-spacing-padding-horizontal, 12px);
168
177
  line-height: 32px;
169
178
  text-align: right;
170
179
  background-color: #fafafa;
171
180
  }
172
181
  .kd-card .kd-card-actions > a {
173
182
  margin-left: 16px;
174
- font-size: 12px;
175
- color: #5582f3;
183
+ font-size: var(--kd-c-card-content-font-size, var(--kd-g-font-size-small, 12px));
184
+ color: var(--kd-c-card-actions-color, var(--kd-g-color-theme, #5582f3));
176
185
  }
177
186
  .kd-card .kd-card-actions > a:hover {
178
- color: #87adff;
187
+ color: var(--kd-c-card-actions-color-hover, var(--kd-g-color-theme-5, #87adff));
179
188
  }
180
189
  .kd-card .kd-card-actions > a:active {
181
- color: #375cca;
190
+ color: var(--kd-c-card-actions-color-active, var(--kd-g-color-theme-7, #375cca));
191
+ }
192
+ .kd-card-extra {
193
+ position: absolute;
194
+ top: 6px;
195
+ right: 4px;
196
+ }
197
+ .kd-card-extra i {
198
+ font-size: 22px;
199
+ width: 32px;
200
+ cursor: pointer;
201
+ }
202
+ .kd-card-lists-icon {
203
+ font-size: 32px;
204
+ position: absolute;
205
+ top: 6px;
206
+ right: 40px;
182
207
  }
@@ -1,11 +1,12 @@
1
1
  @import '../../style/themes/index';
2
2
  @import '../../style/mixins/index';
3
+ @import './token.less';
3
4
 
4
5
  @card-prefix-cls: ~'@{kd-prefix}-card';
5
6
 
6
7
  .@{card-prefix-cls} {
7
8
  position: relative;
8
- background-color: @white;
9
+ background-color: @card-color-background;
9
10
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.2);
10
11
 
11
12
  &.hoverable:hover {
@@ -13,9 +14,9 @@
13
14
  }
14
15
 
15
16
  .@{card-prefix-cls}-header {
16
- height: @card-header-height;
17
- padding: 0 58px 0 @card-horizontal-padding;
18
- line-height: @card-header-height;
17
+ height: @card-sizing-title-height;
18
+ padding: 0 58px 0 @card-spacing-padding-horizontal;
19
+ line-height: 40px;
19
20
  font-size: @card-title-font-size;
20
21
  color: @card-title-color;
21
22
  .ellipsis;
@@ -24,13 +25,13 @@
24
25
  .@{card-prefix-cls}-avatar {
25
26
  display: flex;
26
27
  align-items: center;
27
- height: @card-avatar-header-height;
28
- padding: 0 @card-horizontal-padding;
28
+ height: 64px;
29
+ padding: 0 @card-spacing-padding-horizontal;
29
30
 
30
31
  .@{card-prefix-cls}-avatar-img {
31
- width: @card-avatar-size;
32
- height: @card-avatar-size;
33
- margin-right: 2 * @card-unit-space;
32
+ width: 42px;
33
+ height: 42px;
34
+ margin-right: @card-spacing-padding-vertical;
34
35
  overflow: hidden;
35
36
 
36
37
  &.circle {
@@ -56,43 +57,62 @@
56
57
 
57
58
  .@{kd-prefix}-checkbox {
58
59
  position: absolute;
59
- top: @card-horizontal-padding;
60
- right: @card-horizontal-padding;
60
+ top: @card-spacing-padding-horizontal;
61
+ right: @card-spacing-padding-horizontal;
61
62
  }
62
63
 
63
64
  .@{card-prefix-cls}-tags {
64
- padding: @card-unit-space @card-horizontal-padding;
65
+ padding: 4px @card-spacing-padding-horizontal;
65
66
 
66
67
  .@{kd-prefix}-tag:not(:last-child) {
67
- margin-right: 2 * @card-unit-space;
68
- }
68
+ margin-right: @card-spacing-padding-vertical;
69
+ }
69
70
  }
70
71
 
71
72
  .@{card-prefix-cls}-body {
72
- padding: 2 * @card-unit-space @card-horizontal-padding;
73
+ padding: @card-spacing-padding-vertical @card-spacing-padding-horizontal;
73
74
  font-size: @card-content-font-size;
74
75
  color: @card-content-color;
75
76
  }
76
77
 
77
78
  .@{card-prefix-cls}-actions {
78
- height: @card-actions-height;
79
- padding: 0 @card-horizontal-padding;
80
- line-height: @card-actions-height;
79
+ height: 32px;
80
+ padding: 0 @card-spacing-padding-horizontal;
81
+ line-height: 32px;
81
82
  text-align: right;
82
- background-color: @contain-bg;
83
+ background-color: #fafafa;
83
84
 
84
85
  > a {
85
- margin-left: 4 * @card-unit-space;
86
+ margin-left: 16px;
86
87
  font-size: @card-content-font-size;
87
- color: @theme-color;
88
+ color: @card-actions-color;
88
89
 
89
90
  &:hover {
90
- color: @theme-color-hover;
91
+ color: @card-actions-color-hover;
91
92
  }
92
93
 
93
94
  &:active {
94
- color: @theme-color-click;
95
+ color: @card-actions-color-active;
95
96
  }
96
97
  }
97
98
  }
98
99
  }
100
+
101
+
102
+ .@{card-prefix-cls}-extra {
103
+ position: absolute;
104
+ top: 6px;
105
+ right: 4px;
106
+ i {
107
+ font-size: 22px;
108
+ width: 32px;
109
+ cursor: pointer;
110
+ }
111
+ }
112
+
113
+ .@{card-prefix-cls}-lists-icon {
114
+ font-size: 32px;
115
+ position: absolute;
116
+ top: 6px;
117
+ right: 40px;
118
+ }
@@ -0,0 +1,28 @@
1
+ @import "../../style/themes/token.less";
2
+
3
+ @card-prefix: '--@{kd-prefix}-c-card';
4
+
5
+ // shadow
6
+ // color
7
+ @card-color-background: var(~'@{card-prefix}-color-background', @color-white);
8
+ @card-actions-color: var(~'@{card-prefix}-actions-color', @color-theme);
9
+ @card-actions-color-hover: var(~'@{card-prefix}-actions-color-hover', @color-theme-5);
10
+ @card-actions-color-active: var(~'@{card-prefix}-actions-color-active', @color-theme-7);
11
+ @card-title-color: var(~'@{card-prefix}-title-color', @color-text-primary);
12
+ @card-content-color: var(~'@{card-prefix}-content-color', @color-text-secondary);
13
+
14
+
15
+ // sizing
16
+ @card-sizing-title-height: var(~'@{card-prefix}-sizing-title-height', 40px);
17
+ // spacing
18
+ @card-spacing-padding-horizontal: var(~'@{card-prefix}-spacing-padding-horizontal', 12px);
19
+ @card-spacing-padding-vertical: var(~'@{card-prefix}-spacing-padding-vertical', 8px);
20
+
21
+ // motion
22
+ // font
23
+ @card-title-font-size: var(~'@{card-prefix}-title-font-size', @font-size-middle);
24
+ @card-content-font-size: var(~'@{card-prefix}-content-font-size', @font-size-small);
25
+
26
+ // radius
27
+ // line-height
28
+ // z-index
@@ -123,6 +123,8 @@
123
123
  flex-shrink: 0;
124
124
  height: 100%;
125
125
  width: 100%;
126
+ overflow: hidden;
127
+ border-radius: var(--kd-c-carousel-border-radius, 0px);
126
128
  }
127
129
  .kd-carousel-fadelist {
128
130
  list-style: none;
@@ -202,12 +204,12 @@
202
204
  top: 50%;
203
205
  -webkit-transform: translateY(-50%);
204
206
  transform: translateY(-50%);
205
- left: 15px;
207
+ left: var(--kd-c-carousel-spacing-margin-left, 15px);
206
208
  }
207
209
  .kd-carousel-slidebar-left > li {
208
- margin: 3px 0;
209
- width: 3px;
210
- height: 24px;
210
+ margin: var(--kd-c-carousel-dots-spacing-margin, 4px) 0;
211
+ width: var(--kd-c-carousel-dots-sizing-height, 4px);
212
+ height: var(--kd-c-carousel-dots-sizing-width, 12px);
211
213
  }
212
214
  .kd-carousel-slidebar-right {
213
215
  display: -webkit-box;
@@ -220,12 +222,12 @@
220
222
  top: 50%;
221
223
  -webkit-transform: translateY(-50%);
222
224
  transform: translateY(-50%);
223
- right: 15px;
225
+ right: var(--kd-c-carousel-spacing-margin-right, 15px);
224
226
  }
225
227
  .kd-carousel-slidebar-right > li {
226
- margin: 3px 0;
227
- width: 3px;
228
- height: 24px;
228
+ margin: var(--kd-c-carousel-dots-spacing-margin, 4px) 0;
229
+ width: var(--kd-c-carousel-dots-sizing-height, 4px);
230
+ height: var(--kd-c-carousel-dots-sizing-width, 12px);
229
231
  }
230
232
  .kd-carousel-slidebar-bottom {
231
233
  display: -webkit-box;
@@ -238,12 +240,12 @@
238
240
  left: 50%;
239
241
  -webkit-transform: translateX(-50%);
240
242
  transform: translateX(-50%);
241
- bottom: 15px;
243
+ bottom: var(--kd-c-carousel-spacing-margin-bottom, 15px);
242
244
  }
243
245
  .kd-carousel-slidebar-bottom > li {
244
- margin: 0 3px;
245
- height: 3px;
246
- width: 24px;
246
+ margin: 0 var(--kd-c-carousel-dots-spacing-margin, 4px);
247
+ height: var(--kd-c-carousel-dots-sizing-height, 4px);
248
+ width: var(--kd-c-carousel-dots-sizing-width, 12px);
247
249
  }
248
250
  .kd-carousel-slidebar-top {
249
251
  display: -webkit-box;
@@ -256,16 +258,16 @@
256
258
  left: 50%;
257
259
  -webkit-transform: translateX(-50%);
258
260
  transform: translateX(-50%);
259
- top: 15px;
261
+ top: var(--kd-c-carousel-spacing-margin-top, 15px);
260
262
  }
261
263
  .kd-carousel-slidebar-top > li {
262
- margin: 0 3px;
263
- height: 3px;
264
- width: 24px;
264
+ margin: 0 var(--kd-c-carousel-dots-spacing-margin, 4px);
265
+ height: var(--kd-c-carousel-dots-sizing-height, 4px);
266
+ width: var(--kd-c-carousel-dots-sizing-width, 12px);
265
267
  }
266
- .kd-carousel-slidebar-dot {
268
+ .kd-carousel-slidebar-dot > button {
267
269
  display: block;
268
- border-radius: 2px;
270
+ border-radius: var(--kd-c-carousel-dots-border-radius, 2px);
269
271
  -webkit-box-sizing: border-box;
270
272
  box-sizing: border-box;
271
273
  border: 0;
@@ -274,14 +276,11 @@
274
276
  width: 100%;
275
277
  cursor: pointer;
276
278
  outline: none;
277
- opacity: 0.3;
279
+ background-color: var(--kd-c-carousel-dots-color-background, #D8D8D8);
278
280
  }
279
- .kd-carousel-slidebar-dot-active {
280
- opacity: 1;
281
- }
282
- .kd-carousel-slidebar-dot > button {
281
+ .kd-carousel-slidebar-dot {
283
282
  display: block;
284
- border-radius: 2px;
283
+ border-radius: var(--kd-c-carousel-dots-border-radius, 2px);
285
284
  -webkit-box-sizing: border-box;
286
285
  box-sizing: border-box;
287
286
  border: 0;
@@ -291,6 +290,13 @@
291
290
  cursor: pointer;
292
291
  outline: none;
293
292
  }
293
+ .kd-carousel-slidebar-dot-active {
294
+ opacity: 1;
295
+ }
296
+ .kd-carousel-slidebar-dot-active > button {
297
+ background-color: var(--kd-c-carousel-dots-color-hover, #666666);
298
+ opacity: 1;
299
+ }
294
300
  .vertical {
295
301
  display: -webkit-box;
296
302
  display: -ms-flexbox;
@@ -304,9 +310,9 @@
304
310
  transform: translateY(-50%);
305
311
  }
306
312
  .vertical > li {
307
- margin: 3px 0;
308
- width: 3px;
309
- height: 24px;
313
+ margin: var(--kd-c-carousel-dots-spacing-margin, 4px) 0;
314
+ width: var(--kd-c-carousel-dots-sizing-height, 4px);
315
+ height: var(--kd-c-carousel-dots-sizing-width, 12px);
310
316
  }
311
317
  .horizontal {
312
318
  display: -webkit-box;
@@ -321,7 +327,7 @@
321
327
  transform: translateX(-50%);
322
328
  }
323
329
  .horizontal > li {
324
- margin: 0 3px;
325
- height: 3px;
326
- width: 24px;
330
+ margin: 0 var(--kd-c-carousel-dots-spacing-margin, 4px);
331
+ height: var(--kd-c-carousel-dots-sizing-height, 4px);
332
+ width: var(--kd-c-carousel-dots-sizing-width, 12px);
327
333
  }
@@ -19,6 +19,8 @@
19
19
  flex-shrink: 0;
20
20
  height: 100%;
21
21
  width: 100%;
22
+ overflow: hidden;
23
+ border-radius: @carousel-boder-radius;
22
24
  }
23
25
  }
24
26
  &-fadelist {
@@ -85,7 +87,8 @@
85
87
  .horizontal;
86
88
  top: @carousel-dots-margin-top;
87
89
  }
88
- &-dot {
90
+
91
+ &-dot > button {
89
92
  display: block;
90
93
  border-radius: @carousel-dots-boder-radius;
91
94
  box-sizing: border-box;
@@ -95,12 +98,10 @@
95
98
  width: 100%;
96
99
  cursor: pointer;
97
100
  outline: none;
98
- opacity: 0.3;
99
- &-active {
100
- opacity: 1;
101
- }
101
+ background-color: @carousel-dots-color-background;
102
102
  }
103
- &-dot > button {
103
+
104
+ &-dot {
104
105
  display: block;
105
106
  border-radius: @carousel-dots-boder-radius;
106
107
  box-sizing: border-box;
@@ -110,6 +111,13 @@
110
111
  width: 100%;
111
112
  cursor: pointer;
112
113
  outline: none;
114
+ &-active {
115
+ opacity: 1;
116
+ & > button {
117
+ background-color: @carousel-dots-color-background-active;
118
+ opacity: 1;
119
+ }
120
+ }
113
121
  }
114
122
  }
115
123
  }
@@ -1,5 +1,2 @@
1
1
 
2
- // code component mixin here
3
- .test() {
4
- display: inline;
5
- }
2
+ @import './token.less';
@@ -0,0 +1,20 @@
1
+ @carousel-prefix: '--@{kd-prefix}-c-carousel';
2
+
3
+ // spacing
4
+ @carousel-dots-margin-top: var(~'@{carousel-prefix}-spacing-margin-top', 15px); // 面板指示点到边界的边距
5
+ @carousel-dots-margin-bottom: var(~'@{carousel-prefix}-spacing-margin-bottom', 15px); // 面板指示点到边界的边距
6
+ @carousel-dots-margin-left: var(~'@{carousel-prefix}-spacing-margin-left', 15px); // 面板指示点到边界的边距
7
+ @carousel-dots-margin-right: var(~'@{carousel-prefix}-spacing-margin-right', 15px); // 面板指示点到边界的边距
8
+ @carousel-dots-marigin: var(~'@{carousel-prefix}-dots-spacing-margin', 4px); // 面板指示点的间距
9
+
10
+ // radius
11
+ @carousel-dots-boder-radius: var(~'@{carousel-prefix}-dots-border-radius', 2px); // 面板指示点的圆角
12
+ @carousel-boder-radius: var(~'@{carousel-prefix}-border-radius', 0px); // 轮播容器圆角
13
+
14
+ // sizing
15
+ @carousel-dots-width: var(~'@{carousel-prefix}-dots-sizing-width', 12px); // 面板指示点的宽度
16
+ @carousel-dots-height: var(~'@{carousel-prefix}-dots-sizing-height', 4px); // 面板指示点的高度
17
+
18
+ // color
19
+ @carousel-dots-color-background: var(~'@{carousel-prefix}-dots-color-background', #D8D8D8); // 面板指示点的背景色
20
+ @carousel-dots-color-background-active: var(~'@{carousel-prefix}-dots-color-hover', #666666); // 面板指示点的背景色
@@ -246,7 +246,7 @@ var Cascader = /*#__PURE__*/React.forwardRef(function (props, ref) {
246
246
  var cascaderPopper = dropdownRender(cascaderMenus);
247
247
 
248
248
  var popperProps = _extends(_extends({}, allProps), {
249
- gap: 1,
249
+ gap: 4,
250
250
  visible: visible,
251
251
  onVisibleChange: onVisibleChange,
252
252
  trigger: 'click',