@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
@@ -92,6 +92,15 @@
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
  /** 浮层箭头样式 **/
@@ -104,20 +113,32 @@
104
113
  list-style: none;
105
114
  -webkit-font-feature-settings: 'tnum';
106
115
  font-feature-settings: 'tnum';
107
- color: #212121;
108
- border-radius: 2px;
109
- font-size: 12px;
110
- background-color: #fff;
111
- -webkit-box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.3);
112
- box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.3);
116
+ border-radius: var(--kd-c-popconfirm-radius-border, var(--kd-g-radius-border, 2px));
117
+ background-color: var(--kd-c-popconfirm-color-background, var(--kd-g-color-background, #fff));
113
118
  opacity: 1;
114
- z-index: 1050;
119
+ z-index: var(--kd-g-z-index-popper, 1050);
115
120
  visibility: visible;
116
121
  }
117
122
  .kd-popconfirm.hidden {
118
123
  opacity: 0;
119
124
  visibility: hidden;
120
125
  }
126
+ .kd-popconfirm[class*="top"] {
127
+ -webkit-box-shadow: 0 6px 16px 3px rgba(0, 0, 0, 0.08);
128
+ box-shadow: 0 6px 16px 3px rgba(0, 0, 0, 0.08);
129
+ }
130
+ .kd-popconfirm[class*="bottom"] {
131
+ -webkit-box-shadow: 0 -6px 16px 3px rgba(0, 0, 0, 0.08);
132
+ box-shadow: 0 -6px 16px 3px rgba(0, 0, 0, 0.08);
133
+ }
134
+ .kd-popconfirm[class*="left"] {
135
+ -webkit-box-shadow: 6px 0 16px 3px rgba(0, 0, 0, 0.08);
136
+ box-shadow: 6px 0 16px 3px rgba(0, 0, 0, 0.08);
137
+ }
138
+ .kd-popconfirm[class*="right"] {
139
+ -webkit-box-shadow: -6px 0 16px 3px rgba(0, 0, 0, 0.08);
140
+ box-shadow: -6px 0 16px 3px rgba(0, 0, 0, 0.08);
141
+ }
121
142
  .kd-popconfirm.arrow::before {
122
143
  position: absolute;
123
144
  z-index: -2;
@@ -136,44 +157,44 @@
136
157
  bottom: 0;
137
158
  left: 0;
138
159
  content: '';
139
- background: #fff;
140
- border-radius: 2px;
160
+ background: var(--kd-c-popconfirm-color-background, var(--kd-g-color-background, #fff));
161
+ border-radius: var(--kd-g-radius-border, 2px);
141
162
  }
142
163
  .kd-popconfirm.arrow.bottomLeft::before,
143
164
  .kd-popconfirm.arrow.bottom::before,
144
165
  .kd-popconfirm.arrow.bottomRight::before {
145
166
  left: var(--arrowLeft);
146
167
  top: var(--arrowSpill);
147
- -webkit-box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.1);
148
- box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.1);
149
- border-color: #fff transparent transparent #fff;
168
+ -webkit-box-shadow: -2px -2px calc(16px - 1px) rgba(0, 0, 0, 0.1);
169
+ box-shadow: -2px -2px calc(16px - 1px) rgba(0, 0, 0, 0.1);
170
+ border-color: var(--kd-g-color-white, #fff) transparent transparent var(--kd-g-color-white, #fff);
150
171
  }
151
172
  .kd-popconfirm.arrow.topLeft::before,
152
173
  .kd-popconfirm.arrow.top::before,
153
174
  .kd-popconfirm.arrow.topRight::before {
154
175
  left: var(--arrowLeft);
155
176
  bottom: var(--arrowSpill);
156
- -webkit-box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.15);
157
- box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.15);
158
- border-color: transparent #fff #fff transparent;
177
+ -webkit-box-shadow: 3px 3px calc(16px + 1px) rgba(0, 0, 0, 0.15);
178
+ box-shadow: 3px 3px calc(16px + 1px) rgba(0, 0, 0, 0.15);
179
+ border-color: transparent var(--kd-g-color-white, #fff) var(--kd-g-color-white, #fff) transparent;
159
180
  }
160
181
  .kd-popconfirm.arrow.leftTop::before,
161
182
  .kd-popconfirm.arrow.left::before,
162
183
  .kd-popconfirm.arrow.leftBottom::before {
163
184
  top: var(--arrowTop);
164
185
  right: var(--arrowSpill);
165
- -webkit-box-shadow: 3px 0 6px rgba(0, 0, 0, 0.12), 0 -2px 6px rgba(204, 149, 149, 0.12);
166
- box-shadow: 3px 0 6px rgba(0, 0, 0, 0.12), 0 -2px 6px rgba(204, 149, 149, 0.12);
167
- border-color: #fff #fff transparent transparent;
186
+ -webkit-box-shadow: 3px 0 16px rgba(0, 0, 0, 0.12), 0 -2px 16px rgba(204, 149, 149, 0.12);
187
+ box-shadow: 3px 0 16px rgba(0, 0, 0, 0.12), 0 -2px 16px rgba(204, 149, 149, 0.12);
188
+ border-color: var(--kd-g-color-white, #fff) var(--kd-g-color-white, #fff) transparent transparent;
168
189
  }
169
190
  .kd-popconfirm.arrow.rightTop::before,
170
191
  .kd-popconfirm.arrow.right::before,
171
192
  .kd-popconfirm.arrow.rightBottom::before {
172
193
  top: var(--arrowTop);
173
194
  left: var(--arrowSpill);
174
- -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), -2px 0 6px rgba(0, 0, 0, 0.1);
175
- box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), -2px 0 6px rgba(0, 0, 0, 0.1);
176
- border-color: transparent transparent #fff #fff;
195
+ -webkit-box-shadow: 0 3px 16px rgba(0, 0, 0, 0.1), -2px 0 16px rgba(0, 0, 0, 0.1);
196
+ box-shadow: 0 3px 16px rgba(0, 0, 0, 0.1), -2px 0 16px rgba(0, 0, 0, 0.1);
197
+ border-color: transparent transparent var(--kd-g-color-white, #fff) var(--kd-g-color-white, #fff);
177
198
  }
178
199
  .kd-popconfirm-content {
179
200
  -webkit-box-sizing: border-box;
@@ -184,30 +205,30 @@
184
205
  list-style: none;
185
206
  -webkit-font-feature-settings: 'tnum';
186
207
  font-feature-settings: 'tnum';
187
- min-width: 164px;
188
- max-width: 500px;
189
- min-height: 98px;
190
- max-height: 400px;
191
- padding: 16px 16px;
192
- overflow-y: auto;
208
+ width: var(--kd-c-popconfirm-sizing-min-width, 240px);
209
+ padding: var(--kd-c-popconfirm-spacing-padding-vertical, 16px) var(--kd-c-popconfirm-spacing-padding-horizontal, 16px);
193
210
  }
194
211
  .kd-popconfirm-title {
195
212
  line-height: 21px;
196
- font-size: 14px;
213
+ color: var(--kd-c-popconfirm-title-color-text, var(--kd-g-color-text-primary, #212121));
214
+ font-size: var(--kd-c-popconfirm-title-font-size, var(--kd-g-font-size-middle, 14px));
197
215
  }
198
216
  .kd-popconfirm-title i {
199
- margin-right: 8px;
217
+ margin-right: var(--kd-c-popconfirm-title-icon-spacing-margin-right, 6px);
200
218
  vertical-align: top;
201
- color: #ff991c;
202
- font-size: 17px;
203
219
  line-height: 21px;
220
+ color: var(--kd-c-popconfirm-icon-color-text, var(--kd-g-color-warning, #ff991c));
221
+ font-size: var(--kd-c-popconfirm-icon-sizing-square, 17px);
204
222
  }
205
223
  .kd-popconfirm-message {
206
- margin: 6px 0 20px;
224
+ color: var(--kd-c-popconfirm-message-color-text, var(--kd-g-color-text-primary, #212121));
225
+ font-size: var(--kd-c-popconfirm-message-font-size, var(--kd-g-font-size-small, 12px));
226
+ line-height: 18px;
227
+ margin: var(--kd-c-popconfirm-message-spacing-margin-top, 6px) 0 var(--kd-c-popconfirm-message-spacing-margin-bottom, 18px);
207
228
  }
208
229
  .kd-popconfirm-interaction {
209
230
  text-align: right;
210
231
  }
211
232
  .kd-popconfirm-interaction button:not(:last-child) {
212
- margin-right: 12px;
233
+ margin-right: var(--kd-c-popconfirm-button-spacing, 12px);
213
234
  }
@@ -1,59 +1,80 @@
1
1
  @import '../../style/themes/index';
2
2
  @import '../../style/mixins/index';
3
+ @import './token.less';
3
4
 
4
5
  @popconfirm-prefix-cls: ~'@{kd-prefix}-popconfirm';
5
6
 
7
+ @popconfirm-title-line-height: 21px;
8
+ @popconfirm-box-shadow-blur: 16px;
9
+
10
+ .showdow(@x, @y) {
11
+ box-shadow: @x @y @popconfirm-box-shadow-blur 3px rgba(0, 0, 0, 0.08);
12
+ }
13
+
6
14
  .@{popconfirm-prefix-cls} {
7
15
  .reset-component;
8
- color: @popconfirm-color;
9
- border-radius: @radius-size;
10
- font-size: @popconfirm-font-size;
16
+ border-radius: @popconfirm-border-radius;
11
17
  background-color: @popconfirm-background-color;
12
- box-shadow: 0 1px @popconfirm-box-shadow-blur 0 rgba(0, 0, 0, 0.3);
13
18
  opacity: 1;
14
- z-index: @zIndex-popper;
19
+ z-index: @z-index-popper;
15
20
  visibility: visible;
16
-
21
+
17
22
  &.hidden {
18
23
  opacity: 0;
19
24
  visibility: hidden;
20
25
  }
21
26
 
27
+ &[class*="top"] {
28
+ .showdow(0, 6px);
29
+ }
30
+
31
+ &[class*="bottom"] {
32
+ .showdow(0, -6px);
33
+ }
34
+
35
+ &[class*="left"] {
36
+ .showdow(6px, 0);
37
+ }
38
+
39
+ &[class*="right"] {
40
+ .showdow(-6px, 0);
41
+ }
42
+
22
43
  // 箭头样式
23
44
  .popperArrow(@popconfirm-background-color, @popconfirm-horizontal-gap, @popconfirm-box-shadow-blur);
24
-
45
+
25
46
  &-content {
26
47
  .reset-component;
27
- min-width: @popconfirm-min-width;
28
- max-width: @popconfirm-max-width;
29
- min-height: @popconfirm-min-height;
30
- max-height: @popconfirm-max-height;
48
+ width: @popconfirm-width;
31
49
  padding: @popconfirm-vertical-gap @popconfirm-horizontal-gap;
32
- overflow-y: auto;
33
50
  }
34
-
51
+
35
52
  &-title {
36
53
  line-height: @popconfirm-title-line-height;
54
+ color: @popconfirm-title-color;
37
55
  font-size: @popconfirm-title-font-size;
38
-
56
+
39
57
  i {
40
- margin-right: 8px;
58
+ margin-right: @popconfirm-title-icon-margin-right;
41
59
  vertical-align: top;
42
- color: @warning-color;
43
- font-size: @popconfirm-icon-size;
44
60
  line-height: @popconfirm-title-line-height;
61
+ color: @popconfirm-icon-color;
62
+ font-size: @popconfirm-icon-size;
45
63
  }
46
64
  }
47
-
65
+
48
66
  &-message {
49
- margin: 6px 0 20px;
67
+ color: @popconfirm-message-color;
68
+ font-size: @popconfirm-message-font-size;
69
+ line-height: 18px;
70
+ margin: @popconfirm-message-margin-top 0 @popconfirm-message-margin-bottom;
50
71
  }
51
72
 
52
73
  &-interaction {
53
74
  text-align: right;
54
75
 
55
76
  button:not(:last-child) {
56
- margin-right: 12px;
77
+ margin-right: @popconfirm-button-spacing;
57
78
  }
58
79
  }
59
80
  }
@@ -0,0 +1,28 @@
1
+ @import '../../style/themes/token.less';
2
+
3
+ @popconfirm-custom-prefix: ~'--@{kd-prefix}-c-popconfirm';
4
+
5
+ // spacing
6
+ @popconfirm-vertical-gap: var(~'@{popconfirm-custom-prefix}-spacing-padding-vertical', 16px);
7
+ @popconfirm-horizontal-gap: var(~'@{popconfirm-custom-prefix}-spacing-padding-horizontal', 16px);
8
+ @popconfirm-title-icon-margin-right: var(~'@{popconfirm-custom-prefix}-title-icon-spacing-margin-right', 6px);
9
+ @popconfirm-message-margin-top: var(~'@{popconfirm-custom-prefix}-message-spacing-margin-top', 6px);
10
+ @popconfirm-message-margin-bottom: var(~'@{popconfirm-custom-prefix}-message-spacing-margin-bottom', 18px);
11
+ @popconfirm-button-spacing: var(~'@{popconfirm-custom-prefix}-button-spacing', 12px);
12
+
13
+ // sizing
14
+ @popconfirm-width: var(~'@{popconfirm-custom-prefix}-sizing-min-width', 240px);
15
+ @popconfirm-icon-size: var(~'@{popconfirm-custom-prefix}-icon-sizing-square', 17px);
16
+
17
+ // color
18
+ @popconfirm-title-color: var(~'@{popconfirm-custom-prefix}-title-color-text', @color-text-primary);
19
+ @popconfirm-message-color: var(~'@{popconfirm-custom-prefix}-message-color-text', @color-text-primary);
20
+ @popconfirm-icon-color: var(~'@{popconfirm-custom-prefix}-icon-color-text', @color-warning);
21
+ @popconfirm-background-color: var(~'@{popconfirm-custom-prefix}-color-background', @color-background);
22
+
23
+ // font
24
+ @popconfirm-title-font-size: var(~'@{popconfirm-custom-prefix}-title-font-size', @font-size-middle);
25
+ @popconfirm-message-font-size: var(~'@{popconfirm-custom-prefix}-message-font-size', @font-size-small);
26
+
27
+ // radius
28
+ @popconfirm-border-radius: var(~'@{popconfirm-custom-prefix}-radius-border', @radius-border);
@@ -92,6 +92,15 @@
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
  .kd-progress {
96
105
  display: inline-block;
97
106
  font-variant: tabular-nums;
@@ -102,7 +111,7 @@
102
111
  vertical-align: top;
103
112
  }
104
113
  .kd-progress-show-info {
105
- font-size: 16px;
114
+ font-size: var(--kd-c-progress-line-text-font-size, 16px);
106
115
  }
107
116
  .kd-progress-type-line {
108
117
  width: 100%;
@@ -121,8 +130,8 @@
121
130
  font-size: 0;
122
131
  }
123
132
  .kd-progress-show-info .kd-progress-outer {
124
- margin-right: -56px;
125
- padding-right: 56px;
133
+ margin-right: calc(-1 * var(--kd-c-progress-line-text-font-size, 16px) * 3 - 8px);
134
+ padding-right: calc(var(--kd-c-progress-line-text-font-size, 16px) * 3 + 8px);
126
135
  }
127
136
  .kd-progress-inner {
128
137
  position: relative;
@@ -131,8 +140,8 @@
131
140
  overflow: hidden;
132
141
  vertical-align: middle;
133
142
  font-size: 0;
134
- border-radius: 100px;
135
- background-color: #e5e5e5;
143
+ border-radius: var(--kd-c-progress-radius-border, 100px);
144
+ background-color: var(--kd-c-progress-color-remaining, #e5e5e5);
136
145
  }
137
146
  .kd-progress-success-bg,
138
147
  .kd-progress-bg {
@@ -140,9 +149,9 @@
140
149
  display: inline-block;
141
150
  -webkit-box-sizing: border-box;
142
151
  box-sizing: border-box;
143
- border-radius: 100px;
144
- background-color: #276ff5;
145
- height: 8px;
152
+ border-radius: var(--kd-c-progress-radius-border, 100px);
153
+ background-color: var(--kd-c-progress-color-default, #5582f3);
154
+ height: var(--kd-c-progress-line-stroke-sizing-width, 8px);
146
155
  -webkit-transition: all 0.3s cubic-bezier(0.66, 0, 0.34, 1);
147
156
  transition: all 0.3s cubic-bezier(0.66, 0, 0.34, 1);
148
157
  }
@@ -150,59 +159,64 @@
150
159
  position: absolute;
151
160
  top: 0;
152
161
  left: 0;
153
- background-color: #1ba854;
162
+ background-color: var(--kd-c-progress-color-success, var(--kd-g-color-success, #1ba854));
154
163
  }
155
164
  .kd-progress-text {
156
165
  display: inline-block;
157
166
  -webkit-box-sizing: border-box;
158
167
  box-sizing: border-box;
159
- width: 48px;
160
- margin-left: 8px;
168
+ width: calc(var(--kd-c-progress-line-text-font-size, 16px)*3);
169
+ margin-left: var(--kd-c-progress-line-text-spacing-margin-left, 8px);
161
170
  white-space: nowrap;
162
171
  text-align: left;
163
172
  vertical-align: middle;
164
173
  word-break: normal;
165
174
  }
166
175
  .kd-progress-special-text {
167
- font-size: 16px;
176
+ font-size: var(--kd-c-progress-line-special-text-font-size, 16px);
168
177
  text-align: center;
169
178
  overflow: hidden;
170
- padding-right: 56px;
179
+ padding-right: calc(var(--kd-c-progress-line-text-font-size, 16px)*3 + 8px);
171
180
  }
172
181
  .kd-progress-status-success .kd-progress-bg {
173
- background-color: #1ba854;
182
+ background-color: var(--kd-c-progress-color-success, var(--kd-g-color-success, #1ba854));
174
183
  }
175
184
  .kd-progress-status-success .kd-progress-text,
176
185
  .kd-progress-status-success .kd-progress-special-text {
177
- color: #1ba854;
186
+ color: var(--kd-c-progress-color-success, var(--kd-g-color-success, #1ba854));
178
187
  }
179
188
  .kd-progress-status-success .kd-progress-text {
180
189
  font-size: 0;
181
190
  }
191
+ .kd-progress-status-success .kd-progress-icon {
192
+ font-size: var(--kd-c-progress-line-icon-font-size, 16px);
193
+ color: var(--kd-c-progress-color-success, var(--kd-g-color-success, #1ba854));
194
+ }
182
195
  .kd-progress-status-success .kd-progress-circle-box:not(.kd-progress-circle-gradient) .kd-progress-circle-path {
183
- stroke: #1ba854;
196
+ stroke: var(--kd-c-progress-color-success, var(--kd-g-color-success, #1ba854));
184
197
  }
185
198
  .kd-progress-status-failure .kd-progress-bg {
186
- background-color: #fb2323;
199
+ background-color: var(--kd-c-progress-color-failure, var(--kd-g-color-error, #fb2323));
187
200
  }
188
201
  .kd-progress-status-failure .kd-progress-text,
189
202
  .kd-progress-status-failure .kd-progress-special-text {
190
- color: #fb2323;
203
+ color: var(--kd-c-progress-color-failure, var(--kd-g-color-error, #fb2323));
191
204
  }
192
205
  .kd-progress-status-failure .kd-progress-text {
193
206
  font-size: 0;
194
207
  }
195
- .kd-progress-status-failure .kd-progress-circle-box:not(.kd-progress-circle-gradient) .kd-progress-circle-path {
196
- stroke: #fb2323;
208
+ .kd-progress-status-failure .kd-progress-icon {
209
+ font-size: var(--kd-c-progress-line-icon-font-size, 16px);
210
+ color: var(--kd-c-progress-color-failure, var(--kd-g-color-error, #fb2323));
197
211
  }
198
- .kd-progress .kd-progress-icon {
199
- font-size: 16px;
212
+ .kd-progress-status-failure .kd-progress-circle-box:not(.kd-progress-circle-gradient) .kd-progress-circle-path {
213
+ stroke: var(--kd-c-progress-color-failure, var(--kd-g-color-error, #fb2323));
200
214
  }
201
215
  .kd-progress-circle-box {
202
216
  position: relative;
203
217
  }
204
218
  .kd-progress-circle-box .kd-progress-circle-trail {
205
- stroke: #e5e5e5;
219
+ stroke: var(--kd-c-progress-color-remaining, #e5e5e5);
206
220
  }
207
221
  .kd-progress-circle-box .kd-progress-circle-path {
208
222
  -webkit-transition: stroke-dasharray 0.3s cubic-bezier(0.66, 0, 0.34, 1), stroke-dashoffset 0.3s cubic-bezier(0.66, 0, 0.34, 1);
@@ -225,18 +239,18 @@
225
239
  vertical-align: top;
226
240
  }
227
241
  .kd-progress-circle-box .kd-progress-text-percent {
228
- line-height: 48px;
242
+ line-height: var(--kd-c-progress-circle-percent-line-height, 48px);
229
243
  }
230
244
  .kd-progress-circle-box .kd-progress-text-unit {
231
- line-height: 18px;
245
+ line-height: var(--kd-c-progress-circle-unit-line-height, 18px);
232
246
  font-size: 12px;
233
- margin-top: 18px;
247
+ margin-top: var(--kd-c-progress-circle-unit-spacing-margin-top, 18px);
234
248
  }
235
249
  .kd-progress-circle-box .kd-progress-icon {
236
250
  font-size: 48px;
237
251
  }
238
252
  .kd-progress-circle-box:not(.kd-progress-circle-gradient) .kd-progress-circle-path {
239
- stroke: #276ff5;
253
+ stroke: var(--kd-c-progress-color-default, #5582f3);
240
254
  -webkit-transition: stroke-dasharray 0.3s cubic-bezier(0.66, 0, 0.34, 1), stroke-dashoffset 0.3s cubic-bezier(0.66, 0, 0.34, 1);
241
255
  transition: stroke-dasharray 0.3s cubic-bezier(0.66, 0, 0.34, 1), stroke-dashoffset 0.3s cubic-bezier(0.66, 0, 0.34, 1);
242
256
  }
@@ -1,6 +1,7 @@
1
1
  @import '../../style/themes/index';
2
2
  @import './mixin.less';
3
3
  @progress-prefix-cls: ~'@{kd-prefix}-progress';
4
+
4
5
  .@{progress-prefix-cls} {
5
6
  .progress;
6
7
  line-height: 1;
@@ -29,9 +30,10 @@
29
30
  margin-right: 0;
30
31
  padding-right: 0;
31
32
  font-size: 0;
33
+
32
34
  .@{progress-prefix-cls}-show-info & {
33
- margin-right: -@progress-line-text-width - 8px;
34
- padding-right: @progress-line-text-width + 8px;
35
+ margin-right: calc(-1 * @progress-line-text-font-size * 3 - 8px);
36
+ padding-right: calc(@progress-line-text-font-size * 3 + 8px);
35
37
  }
36
38
  }
37
39
 
@@ -69,7 +71,7 @@
69
71
  &-text {
70
72
  display: inline-block;
71
73
  box-sizing: border-box;
72
- width: @progress-line-text-width;
74
+ width: calc(@progress-line-text-font-size*3);
73
75
  margin-left: @progress-line-text-margin-left;
74
76
  // font-size: @progress-line-text-font-size;
75
77
  // line-height: 1;
@@ -83,13 +85,14 @@
83
85
  font-size: @progress-line-special-text-font-size;
84
86
  text-align: center;
85
87
  overflow: hidden;
86
- padding-right: @progress-line-text-width + 8px;
88
+ padding-right: calc(@progress-line-text-font-size*3 + 8px);
87
89
  }
88
90
 
89
91
  &-status-success {
90
92
  .@{progress-prefix-cls}-bg {
91
93
  background-color: @progress-success-color;
92
94
  }
95
+
93
96
  .@{progress-prefix-cls}-text,
94
97
  .@{progress-prefix-cls}-special-text {
95
98
  color: @progress-success-color;
@@ -98,6 +101,10 @@
98
101
  .@{progress-prefix-cls}-text {
99
102
  font-size: 0;
100
103
  }
104
+ .@{progress-prefix-cls}-icon {
105
+ font-size: @progress-line-icon-font-size;
106
+ color: @progress-success-color;
107
+ }
101
108
 
102
109
  .@{progress-prefix-cls}-circle-box:not(.@{progress-prefix-cls}-circle-gradient) {
103
110
  .@{progress-prefix-cls}-circle-path {
@@ -110,6 +117,7 @@
110
117
  .@{progress-prefix-cls}-bg {
111
118
  background-color: @progress-failure-color;
112
119
  }
120
+
113
121
  .@{progress-prefix-cls}-text,
114
122
  .@{progress-prefix-cls}-special-text {
115
123
  color: @progress-failure-color;
@@ -118,6 +126,10 @@
118
126
  .@{progress-prefix-cls}-text {
119
127
  font-size: 0;
120
128
  }
129
+ .@{progress-prefix-cls}-icon {
130
+ font-size: @progress-line-icon-font-size;
131
+ color: @progress-failure-color;
132
+ }
121
133
 
122
134
  .@{progress-prefix-cls}-circle-box:not(.@{progress-prefix-cls}-circle-gradient) {
123
135
  .@{progress-prefix-cls}-circle-path {
@@ -126,19 +138,19 @@
126
138
  }
127
139
  }
128
140
 
129
- .@{progress-prefix-cls}-icon {
130
- font-size: @progress-line-icon-font-size;
131
- }
141
+
132
142
 
133
143
  &-circle-box {
134
144
  position: relative;
145
+
135
146
  .@{progress-prefix-cls}-circle-trail {
136
147
  stroke: @progress-remaining-color;
137
148
  }
149
+
138
150
  .@{progress-prefix-cls}-circle-path {
139
151
  transition: stroke-dasharray @transition-duration @progress-transition-fn, stroke-dashoffset @transition-duration @progress-transition-fn;
140
152
  }
141
-
153
+
142
154
  .@{progress-prefix-cls}-text {
143
155
  position: absolute;
144
156
  width: auto;
@@ -148,14 +160,17 @@
148
160
  top: 50%;
149
161
  left: 50%;
150
162
  transform: translate(-50%, -50%);
163
+
151
164
  &-percent,
152
165
  &-unit {
153
166
  display: inline-block;
154
167
  vertical-align: top;
155
168
  }
169
+
156
170
  &-percent {
157
171
  line-height: @progress-circle-percent-line-height;
158
172
  }
173
+
159
174
  &-unit {
160
175
  line-height: @progress-circle-unit-line-height;
161
176
  font-size: @progress-circle-unit-font-size;
@@ -167,6 +182,7 @@
167
182
  font-size: @progress-circle-icon-font-size;
168
183
  }
169
184
  }
185
+
170
186
  &-circle-box:not(.@{progress-prefix-cls}-circle-gradient) {
171
187
  .@{progress-prefix-cls}-circle-path {
172
188
  stroke: @progress-default-color;
@@ -1,5 +1,6 @@
1
+ @import './token.less';
1
2
  .progress() {
2
3
  display: inline-block;
3
4
  font-variant: tabular-nums;
4
5
  box-sizing: border-box;
5
- }
6
+ }
@@ -0,0 +1,40 @@
1
+ @import '../../style/themes/token.less';
2
+ @progress-prefix: '--@{kd-prefix}-c-progress';
3
+
4
+
5
+
6
+ @progress-transition-fn: cubic-bezier(0.66, 0, 0.34, 1);
7
+
8
+
9
+
10
+
11
+
12
+ // color
13
+ @progress-remaining-color: var(~'@{progress-prefix}-color-remaining', #e5e5e5);//背景色
14
+ @progress-default-color: var(~'@{progress-prefix}-color-default', #5582f3);//进度条 默认色
15
+ @progress-success-color: var(~'@{progress-prefix}-color-success', @color-success);//进度条 成功
16
+ @progress-failure-color: var(~'@{progress-prefix}-color-failure', @color-error);//进度条 失败
17
+
18
+ // font
19
+ @progress-line-icon-font-size: var(~'@{progress-prefix}-line-icon-font-size', 16px); //线性进度条 icon 大小
20
+ @progress-line-text-font-size: var(~'@{progress-prefix}-line-text-font-size', 16px);//线性进度条 数值文本
21
+ @progress-line-special-text-font-size: var(~'@{progress-prefix}-line-special-text-font-size', 16px);// 圆形进度条 状态文本
22
+
23
+ // line-height
24
+ @progress-circle-percent-line-height: var(~'@{progress-prefix}-circle-percent-line-height', 48px);
25
+ @progress-circle-unit-line-height: var(~'@{progress-prefix}-circle-unit-line-height', 18px);
26
+
27
+ //radius
28
+ @progress-border-radius: var(~'@{progress-prefix}-radius-border', 100px);//线性进度条圆角
29
+
30
+
31
+
32
+ // sizing
33
+ @progress-line-stroke-width: var(~'@{progress-prefix}-line-stroke-sizing-width', 8px);
34
+ @progress-circle-stroke-width: var(~'@{progress-prefix}-circle-stroke-sizing-width', 4px);
35
+
36
+
37
+ // spacing
38
+ @progress-circle-unit-margin-top: var(~'@{progress-prefix}-circle-unit-spacing-margin-top', 18px);
39
+ @progress-line-text-margin-left: var(~'@{progress-prefix}-line-text-spacing-margin-left', 8px); //进度与文字或者图标的间距
40
+