tntd 2.8.0-beta.3 → 2.8.0-beta.4

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 (257) hide show
  1. package/es/alert/alert.js +70 -0
  2. package/es/alert/alert.js.map +1 -0
  3. package/es/alert/alert.less +128 -0
  4. package/es/breadcrumb/style/index.less +2 -1
  5. package/es/button/button.less +72 -0
  6. package/es/cascader/style/index.less +2 -2
  7. package/es/checkbox/check.png +0 -0
  8. package/es/checkbox/checkbox.js +48 -0
  9. package/es/checkbox/checkbox.js.map +1 -0
  10. package/es/checkbox/checkbox.less +69 -0
  11. package/es/collapse/style/index.less +2 -1
  12. package/es/color-picker/index.less +4 -1
  13. package/es/date-picker/DatePicker.js +101 -0
  14. package/es/date-picker/DatePicker.js.map +1 -0
  15. package/es/date-picker/index.less +294 -0
  16. package/es/date-picker/style/Picker.less +2 -1
  17. package/es/drawer/index.less +154 -0
  18. package/es/drawer/style/drawer.less +4 -2
  19. package/es/dropdown/style/index.less +2 -1
  20. package/es/form/form.less +36 -0
  21. package/es/grid/RowContext.js +3 -0
  22. package/es/grid/RowContext.js.map +1 -0
  23. package/es/grid/col.js +103 -0
  24. package/es/grid/col.js.map +1 -0
  25. package/es/grid/hooks/useBreakpoint.js +18 -0
  26. package/es/grid/hooks/useBreakpoint.js.map +1 -0
  27. package/es/grid/row.js +154 -0
  28. package/es/grid/row.js.map +1 -0
  29. package/es/grid/style/rtl.less +69 -0
  30. package/es/icon/index.js +2 -1
  31. package/es/icon/index.js.map +1 -1
  32. package/es/icon/style/index.js +2 -1
  33. package/es/icon/style/index.js.map +1 -1
  34. package/es/icon/style/style.less +6 -0
  35. package/es/input/style/mixin.less +1 -1
  36. package/es/input-number/inputNumber.js +29 -0
  37. package/es/input-number/inputNumber.js.map +1 -0
  38. package/es/input-number/inputNumber.less +12 -0
  39. package/es/modal/index.less +36 -0
  40. package/es/modal/style/confirm.less +1 -1
  41. package/es/modal/style/modal.less +5 -1
  42. package/es/notification/assets/index.js +2 -0
  43. package/es/notification/assets/index.js.map +1 -0
  44. package/es/notification/assets/svg-error-tip.js +145 -0
  45. package/es/notification/assets/svg-error-tip.js.map +1 -0
  46. package/es/notification/assets/svg-success-tip.js +162 -0
  47. package/es/notification/assets/svg-success-tip.js.map +1 -0
  48. package/es/notification/notification.js +80 -0
  49. package/es/notification/notification.js.map +1 -0
  50. package/es/notification/notification.less +59 -0
  51. package/es/notification/style/index.less +4 -2
  52. package/es/popconfirm/index.less +32 -0
  53. package/es/popconfirm/popconfirm.js +43 -0
  54. package/es/popconfirm/popconfirm.js.map +1 -0
  55. package/es/popover/index.less +57 -0
  56. package/es/popover/popover.js +34 -0
  57. package/es/popover/popover.js.map +1 -0
  58. package/es/popover/style/index.less +2 -1
  59. package/es/progress/progress.js +132 -0
  60. package/es/progress/progress.js.map +1 -0
  61. package/es/progress/progress.less +82 -0
  62. package/es/query-form/Field/Composition/FieldPopover.js +284 -0
  63. package/es/query-form/Field/Composition/FieldPopover.js.map +1 -0
  64. package/es/query-form/Field/Composition/FieldPopover.less +35 -0
  65. package/es/query-form/Field/Composition/Select.js +108 -0
  66. package/es/query-form/Field/Composition/Select.js.map +1 -0
  67. package/es/query-form/Field/Composition/index.js +275 -0
  68. package/es/query-form/Field/Composition/index.js.map +1 -0
  69. package/es/query-form/Field/Composition/index.less +106 -0
  70. package/es/query-form/Field/Composition/utils.js +19 -0
  71. package/es/query-form/Field/Composition/utils.js.map +1 -0
  72. package/es/radio/radio.js +57 -0
  73. package/es/radio/radio.js.map +1 -0
  74. package/es/radio/radio.less +43 -0
  75. package/es/select/style/index.less +2 -1
  76. package/es/steps/assets/background_left.svg +12 -0
  77. package/es/steps/assets/background_right.svg +12 -0
  78. package/es/steps/assets/horizontal_line.svg +3 -0
  79. package/es/steps/assets/vertical_line.svg +3 -0
  80. package/es/steps/stepStyle/icon.less +51 -0
  81. package/es/steps/stepStyle/progress-dot.less +10 -0
  82. package/es/steps/stepStyle/variables.less +8 -0
  83. package/es/steps/stepStyle/vertical.less +41 -0
  84. package/es/style/mixins/iconfont.less +3 -2
  85. package/es/style/themes/default.less +3 -2
  86. package/es/switch/index.less +46 -0
  87. package/es/tabs/tabs.less +114 -0
  88. package/es/tag/color.less +43 -0
  89. package/es/tag/tag.js +171 -0
  90. package/es/tag/tag.js.map +1 -0
  91. package/es/tag/tag.less +193 -0
  92. package/es/time-picker/TimePicker.js +36 -0
  93. package/es/time-picker/TimePicker.js.map +1 -0
  94. package/es/time-picker/index.less +38 -0
  95. package/es/time-picker/style/index.less +2 -1
  96. package/es/timeline/style/index.less +1 -1
  97. package/es/tntd-action/Action.js +66 -0
  98. package/es/tntd-action/Action.js.map +1 -0
  99. package/es/tntd-action/index.less +53 -0
  100. package/es/tooltip/index.less +29 -0
  101. package/es/tooltip/tooltip.js +33 -0
  102. package/es/tooltip/tooltip.js.map +1 -0
  103. package/lib/alert/alert.d.ts +12 -0
  104. package/lib/alert/alert.d.ts.map +1 -0
  105. package/lib/alert/alert.js +92 -0
  106. package/lib/alert/alert.js.map +1 -0
  107. package/lib/alert/alert.less +128 -0
  108. package/lib/breadcrumb/style/index.less +2 -1
  109. package/lib/button/button.less +72 -0
  110. package/lib/cascader/style/index.less +2 -2
  111. package/lib/checkbox/check.png +0 -0
  112. package/lib/checkbox/checkbox.d.ts +16 -0
  113. package/lib/checkbox/checkbox.d.ts.map +1 -0
  114. package/lib/checkbox/checkbox.js +65 -0
  115. package/lib/checkbox/checkbox.js.map +1 -0
  116. package/lib/checkbox/checkbox.less +69 -0
  117. package/lib/collapse/style/index.less +2 -1
  118. package/lib/color-picker/index.less +4 -1
  119. package/lib/date-picker/DatePicker.d.ts +21 -0
  120. package/lib/date-picker/DatePicker.d.ts.map +1 -0
  121. package/lib/date-picker/DatePicker.js +128 -0
  122. package/lib/date-picker/DatePicker.js.map +1 -0
  123. package/lib/date-picker/index.less +294 -0
  124. package/lib/date-picker/style/Picker.less +2 -1
  125. package/lib/drawer/index.less +154 -0
  126. package/lib/drawer/style/drawer.less +4 -2
  127. package/lib/dropdown/style/index.less +2 -1
  128. package/lib/form/form.less +36 -0
  129. package/lib/grid/RowContext.d.ts +9 -0
  130. package/lib/grid/RowContext.d.ts.map +1 -0
  131. package/lib/grid/RowContext.js +9 -0
  132. package/lib/grid/RowContext.js.map +1 -0
  133. package/lib/grid/col.d.ts +29 -0
  134. package/lib/grid/col.d.ts.map +1 -0
  135. package/lib/grid/col.js +100 -0
  136. package/lib/grid/col.js.map +1 -0
  137. package/lib/grid/hooks/useBreakpoint.d.ts +4 -0
  138. package/lib/grid/hooks/useBreakpoint.d.ts.map +1 -0
  139. package/lib/grid/hooks/useBreakpoint.js +28 -0
  140. package/lib/grid/hooks/useBreakpoint.js.map +1 -0
  141. package/lib/grid/row.d.ts +21 -0
  142. package/lib/grid/row.d.ts.map +1 -0
  143. package/lib/grid/row.js +183 -0
  144. package/lib/grid/row.js.map +1 -0
  145. package/lib/grid/style/rtl.less +69 -0
  146. package/lib/icon/index.d.ts +1 -0
  147. package/lib/icon/index.d.ts.map +1 -1
  148. package/lib/icon/index.js +2 -1
  149. package/lib/icon/index.js.map +1 -1
  150. package/lib/icon/style/index.d.ts +1 -0
  151. package/lib/icon/style/index.d.ts.map +1 -1
  152. package/lib/icon/style/index.js +2 -1
  153. package/lib/icon/style/index.js.map +1 -1
  154. package/lib/icon/style/style.less +6 -0
  155. package/lib/input/style/mixin.less +1 -1
  156. package/lib/input-number/inputNumber.d.ts +10 -0
  157. package/lib/input-number/inputNumber.d.ts.map +1 -0
  158. package/lib/input-number/inputNumber.js +48 -0
  159. package/lib/input-number/inputNumber.js.map +1 -0
  160. package/lib/input-number/inputNumber.less +12 -0
  161. package/lib/modal/index.less +36 -0
  162. package/lib/modal/style/confirm.less +1 -1
  163. package/lib/modal/style/modal.less +5 -1
  164. package/lib/notification/assets/index.d.ts +3 -0
  165. package/lib/notification/assets/index.d.ts.map +1 -0
  166. package/lib/notification/assets/index.js +20 -0
  167. package/lib/notification/assets/index.js.map +1 -0
  168. package/lib/notification/assets/svg-error-tip.d.ts +4 -0
  169. package/lib/notification/assets/svg-error-tip.d.ts.map +1 -0
  170. package/lib/notification/assets/svg-error-tip.js +154 -0
  171. package/lib/notification/assets/svg-error-tip.js.map +1 -0
  172. package/lib/notification/assets/svg-success-tip.d.ts +4 -0
  173. package/lib/notification/assets/svg-success-tip.d.ts.map +1 -0
  174. package/lib/notification/assets/svg-success-tip.js +171 -0
  175. package/lib/notification/assets/svg-success-tip.js.map +1 -0
  176. package/lib/notification/notification.d.ts +9 -0
  177. package/lib/notification/notification.d.ts.map +1 -0
  178. package/lib/notification/notification.js +105 -0
  179. package/lib/notification/notification.js.map +1 -0
  180. package/lib/notification/notification.less +59 -0
  181. package/lib/notification/style/index.less +4 -2
  182. package/lib/popconfirm/index.less +32 -0
  183. package/lib/popconfirm/popconfirm.d.ts +8 -0
  184. package/lib/popconfirm/popconfirm.d.ts.map +1 -0
  185. package/lib/popconfirm/popconfirm.js +61 -0
  186. package/lib/popconfirm/popconfirm.js.map +1 -0
  187. package/lib/popover/index.less +57 -0
  188. package/lib/popover/popover.d.ts +14 -0
  189. package/lib/popover/popover.d.ts.map +1 -0
  190. package/lib/popover/popover.js +55 -0
  191. package/lib/popover/popover.js.map +1 -0
  192. package/lib/popover/style/index.less +2 -1
  193. package/lib/progress/progress.d.ts +12 -0
  194. package/lib/progress/progress.d.ts.map +1 -0
  195. package/lib/progress/progress.js +148 -0
  196. package/lib/progress/progress.js.map +1 -0
  197. package/lib/progress/progress.less +82 -0
  198. package/lib/query-form/Field/Composition/FieldPopover.d.ts +17 -0
  199. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +1 -0
  200. package/lib/query-form/Field/Composition/FieldPopover.js +319 -0
  201. package/lib/query-form/Field/Composition/FieldPopover.js.map +1 -0
  202. package/lib/query-form/Field/Composition/FieldPopover.less +35 -0
  203. package/lib/query-form/Field/Composition/Select.d.ts +4 -0
  204. package/lib/query-form/Field/Composition/Select.d.ts.map +1 -0
  205. package/lib/query-form/Field/Composition/Select.js +132 -0
  206. package/lib/query-form/Field/Composition/Select.js.map +1 -0
  207. package/lib/query-form/Field/Composition/index.d.ts +14 -0
  208. package/lib/query-form/Field/Composition/index.d.ts.map +1 -0
  209. package/lib/query-form/Field/Composition/index.js +330 -0
  210. package/lib/query-form/Field/Composition/index.js.map +1 -0
  211. package/lib/query-form/Field/Composition/index.less +106 -0
  212. package/lib/query-form/Field/Composition/utils.d.ts +6 -0
  213. package/lib/query-form/Field/Composition/utils.d.ts.map +1 -0
  214. package/lib/query-form/Field/Composition/utils.js +27 -0
  215. package/lib/query-form/Field/Composition/utils.js.map +1 -0
  216. package/lib/radio/radio.d.ts +17 -0
  217. package/lib/radio/radio.d.ts.map +1 -0
  218. package/lib/radio/radio.js +75 -0
  219. package/lib/radio/radio.js.map +1 -0
  220. package/lib/radio/radio.less +43 -0
  221. package/lib/select/style/index.less +2 -1
  222. package/lib/steps/assets/background_left.svg +12 -0
  223. package/lib/steps/assets/background_right.svg +12 -0
  224. package/lib/steps/assets/horizontal_line.svg +3 -0
  225. package/lib/steps/assets/vertical_line.svg +3 -0
  226. package/lib/steps/stepStyle/icon.less +51 -0
  227. package/lib/steps/stepStyle/progress-dot.less +10 -0
  228. package/lib/steps/stepStyle/variables.less +8 -0
  229. package/lib/steps/stepStyle/vertical.less +41 -0
  230. package/lib/style/mixins/iconfont.less +3 -2
  231. package/lib/style/themes/default.less +3 -2
  232. package/lib/switch/index.less +46 -0
  233. package/lib/tabs/tabs.less +114 -0
  234. package/lib/tag/color.less +43 -0
  235. package/lib/tag/tag.d.ts +41 -0
  236. package/lib/tag/tag.d.ts.map +1 -0
  237. package/lib/tag/tag.js +183 -0
  238. package/lib/tag/tag.js.map +1 -0
  239. package/lib/tag/tag.less +193 -0
  240. package/lib/time-picker/TimePicker.d.ts +9 -0
  241. package/lib/time-picker/TimePicker.d.ts.map +1 -0
  242. package/lib/time-picker/TimePicker.js +55 -0
  243. package/lib/time-picker/TimePicker.js.map +1 -0
  244. package/lib/time-picker/index.less +38 -0
  245. package/lib/time-picker/style/index.less +2 -1
  246. package/lib/timeline/style/index.less +1 -1
  247. package/lib/tntd-action/Action.d.ts +6 -0
  248. package/lib/tntd-action/Action.d.ts.map +1 -0
  249. package/lib/tntd-action/Action.js +86 -0
  250. package/lib/tntd-action/Action.js.map +1 -0
  251. package/lib/tntd-action/index.less +53 -0
  252. package/lib/tooltip/index.less +29 -0
  253. package/lib/tooltip/tooltip.d.ts +9 -0
  254. package/lib/tooltip/tooltip.d.ts.map +1 -0
  255. package/lib/tooltip/tooltip.js +53 -0
  256. package/lib/tooltip/tooltip.js.map +1 -0
  257. package/package.json +3 -3
@@ -0,0 +1,106 @@
1
+ @import '../../../style/themes/index';
2
+ @import '../../../style/mixins/index';
3
+ @import '../../../input/style/mixin';
4
+
5
+ .tnt-queryform-composition-input {
6
+ // width: 100%;
7
+ margin-right: @padding-md;
8
+ max-height: 162px;
9
+ overflow-x: hidden;
10
+ cursor: text;
11
+ padding: 2px @padding-xl;
12
+ position: relative;
13
+ box-sizing: border-box;
14
+ background-color: @select-background;
15
+ border: @border-width-base @border-style-base @select-border-color;
16
+ border-top-width: calc(@border-width-base + 0.02px);
17
+ border-radius: @border-radius-base;
18
+ outline: none;
19
+ transition: all 0.3s @ease-in-out;
20
+ user-select: none;
21
+
22
+ &-prefix {
23
+ position: absolute;
24
+ left: @padding-sm;
25
+ top: 50%;
26
+ transform: translateY(-50%);
27
+ i.anticon {
28
+ color: tint(@bg-color-spotilight, 50%);
29
+ }
30
+ }
31
+
32
+ &-width {
33
+ height: 0;
34
+ opacity: 0;
35
+ width: auto;
36
+ position: absolute;
37
+ max-width: 100%;
38
+ }
39
+
40
+ &-items {
41
+ float: left;
42
+ padding: 0;
43
+ list-style: none;
44
+ margin: 0;
45
+ width: 100%;
46
+ &-item {
47
+ padding: 3px 0;
48
+ }
49
+ li {
50
+ float: left;
51
+ line-height: 1;
52
+ }
53
+ &-input {
54
+ .inputClass {
55
+ background: none;
56
+ border: none;
57
+ outline: none;
58
+ box-shadow: none !important;
59
+ width: 150px;
60
+ height: 26px;
61
+ line-height: 26px;
62
+ padding: 0;
63
+ textarea {
64
+ padding: 0;
65
+ }
66
+ }
67
+ .inputClass-with-placeholder {
68
+ min-width: 398px !important;
69
+ }
70
+ }
71
+ }
72
+ &-clear {
73
+ position: absolute;
74
+ right: @margin-sm;
75
+ top: 50%;
76
+ transform: translateY(-50%);
77
+ display: none;
78
+ i.anticon {
79
+ color: tint(@bg-color-spotilight, 50%);
80
+ }
81
+ &:hover {
82
+ .anticon {
83
+ color: @text-color-secondary !important;
84
+ }
85
+ }
86
+ }
87
+ &:hover {
88
+ border-color: @blue-6;
89
+ outline: 0;
90
+ .tnt-queryform-composition-input-clear {
91
+ display: block;
92
+ }
93
+ // box-shadow: 0 0 0 2px rgb(18 107 251 / 20%);
94
+ }
95
+ &:focus,
96
+ &:active {
97
+ border-color: @blue-5;
98
+ outline: 0;
99
+ // box-shadow: 0 0 0 2px rgb(18 107 251 / 20%);
100
+ }
101
+ .ant-tag {
102
+ padding: 0 @padding-xs;
103
+ border: none;
104
+ background: @fill-color-tertiary;
105
+ }
106
+ }
@@ -0,0 +1,6 @@
1
+ export function highlightSubstring(str: any, substring: any): any;
2
+ export function getLabelFromOptions(key: any, options: any, fieldNames?: {
3
+ label: string;
4
+ value: string;
5
+ }): any;
6
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/query-form/Field/Composition/utils.js"],"names":[],"mappings":"AAAA,kEAGC;AAED;;;QAkBC"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getLabelFromOptions = getLabelFromOptions;
7
+ exports.highlightSubstring = highlightSubstring;
8
+ function highlightSubstring(str, substring) {
9
+ var highlighted = "<span class=\"tnt-highlight\">".concat(substring, "</span>");
10
+ return str.replace(new RegExp(substring, 'g'), highlighted);
11
+ }
12
+ function getLabelFromOptions(key, options) {
13
+ var fieldNames = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
14
+ label: 'label',
15
+ value: 'value'
16
+ };
17
+ var labelValue = key;
18
+ if (options) {
19
+ var target = options === null || options === void 0 ? void 0 : options.find(function (item) {
20
+ var valueKey = fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.value;
21
+ var itemValue = item instanceof Object ? item[valueKey] : item;
22
+ return itemValue === key;
23
+ });
24
+ labelValue = target instanceof Object ? target === null || target === void 0 ? void 0 : target[fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label] : target;
25
+ }
26
+ return labelValue;
27
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/query-form/Field/Composition/utils.js"],"names":[],"mappings":";;;AAAA,SAAgB,kBAAkB,CAAC,GAAG,EAAE,SAAS;IAC/C,MAAM,WAAW,GAAG,+BAA+B,SAAS,SAAS,CAAA;IACrE,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,SAAS,EAAE,GAAG,CAAC,EAAE,WAAW,CAAC,CAAA;AAC7D,CAAC;AAHD,gDAGC;AAED,SAAgB,mBAAmB,CACjC,GAAG,EACH,OAAO,EACP,UAAU,GAAG;IACX,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACf;IAED,IAAI,UAAU,GAAG,GAAG,CAAA;IACpB,IAAI,OAAO,EAAE;QACX,MAAM,MAAM,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;YACpC,MAAM,QAAQ,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,CAAA;YAClC,MAAM,SAAS,GAAG,IAAI,YAAY,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;YAChE,OAAO,SAAS,KAAK,GAAG,CAAA;QAC1B,CAAC,CAAC,CAAA;QACF,UAAU,GAAG,MAAM,YAAY,MAAM,CAAC,CAAC,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAA;KAC7E;IACD,OAAO,UAAU,CAAA;AACnB,CAAC;AAlBD,kDAkBC","sourcesContent":["export function highlightSubstring(str, substring) {\n const highlighted = `<span class=\"tnt-highlight\">${substring}</span>`\n return str.replace(new RegExp(substring, 'g'), highlighted)\n}\n\nexport function getLabelFromOptions(\n key,\n options,\n fieldNames = {\n label: 'label',\n value: 'value',\n }\n) {\n let labelValue = key\n if (options) {\n const target = options?.find((item) => {\n const valueKey = fieldNames?.value\n const itemValue = item instanceof Object ? item[valueKey] : item\n return itemValue === key\n })\n labelValue = target instanceof Object ? target?.[fieldNames?.label] : target\n }\n return labelValue\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import type { RadioProps as AntdRadioProps, RadioGroupProps as AntdRadioGroupProps } from 'antd/lib/radio';
3
+ import AntdRadio from 'antd/lib/radio';
4
+ export * from 'antd/lib/radio';
5
+ export declare type RadioProps = AntdRadioProps & {
6
+ desc?: string | React.ReactNode;
7
+ };
8
+ export declare type RadioGroupProps = AntdRadioGroupProps & {
9
+ readonly?: boolean;
10
+ };
11
+ interface RadioComponent extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<AntdRadio>> {
12
+ Group: React.FC<RadioGroupProps>;
13
+ Button: typeof AntdRadio.Button;
14
+ }
15
+ declare const Radio: RadioComponent;
16
+ export default Radio;
17
+ //# sourceMappingURL=radio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/radio/radio.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EACV,UAAU,IAAI,cAAc,EAC5B,eAAe,IAAI,mBAAmB,EACvC,MAAM,eAAe,CAAA;AAEtB,OAAO,SAAS,MAAM,eAAe,CAAA;AAMrC,cAAc,eAAe,CAAA;AAE7B,oBAAY,UAAU,GAAG,cAAc,GAAG;IACxC,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;CAChC,CAAA;AACD,oBAAY,eAAe,GAAG,mBAAmB,GAAG;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,UAAU,cACR,SAAQ,KAAK,CAAC,yBAAyB,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACpF,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAA;IAChC,MAAM,EAAE,OAAO,SAAS,CAAC,MAAM,CAAA;CAChC;AAID,QAAA,MAAM,KAAK,gBAeS,CAAA;AAqBpB,eAAe,KAAK,CAAA"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ var _exportNames = {};
8
+ exports["default"] = void 0;
9
+ var _react = _interopRequireWildcard(require("react"));
10
+ var _configProvider = require("antd/lib/config-provider");
11
+ var _radio = _interopRequireWildcard(require("antd/lib/radio"));
12
+ Object.keys(_radio).forEach(function (key) {
13
+ if (key === "default" || key === "__esModule") return;
14
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
15
+ if (key in exports && exports[key] === _radio[key]) return;
16
+ Object.defineProperty(exports, key, {
17
+ enumerable: true,
18
+ get: function get() {
19
+ return _radio[key];
20
+ }
21
+ });
22
+ });
23
+ var _connect = require("../connect");
24
+ var _previewText = require("../preview-text");
25
+ var _classnames = _interopRequireDefault(require("classnames"));
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
28
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
29
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
30
+ var t = {};
31
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
32
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
34
+ }
35
+ return t;
36
+ };
37
+ /*
38
+ * @Author: 周泽飞 zefei.zhou@tongdun.net
39
+ * @Date: 2024-03-14 16:55:05
40
+ * @LastEditors: 周泽飞 zefei.zhou@tongdun.net
41
+ * @LastEditTime: 2024-03-14 17:00:03
42
+ * @FilePath: /tntd/packages/tntd/src/radio/radio.tsx
43
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
44
+ */
45
+
46
+ var tntPrefixCls = 'tnt-radio';
47
+ var Radio = (0, _react.forwardRef)(function (_a, ref) {
48
+ var className = _a.className,
49
+ children = _a.children,
50
+ desc = _a.desc,
51
+ rest = __rest(_a, ["className", "children", "desc"]);
52
+ return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
53
+ return _react["default"].createElement(_radio["default"], Object.assign({}, rest, {
54
+ ref: ref,
55
+ className: (0, _classnames["default"])(className, tntPrefixCls)
56
+ }), _react["default"].createElement("span", {
57
+ className: "".concat(tntPrefixCls, "-children")
58
+ }, _react["default"].createElement("span", null, children), !!desc && _react["default"].createElement("span", {
59
+ className: "".concat(tntPrefixCls, "-desc")
60
+ }, desc)));
61
+ });
62
+ });
63
+ var RadioGroup = (0, _react.forwardRef)(function (_a, ref) {
64
+ var className = _a.className,
65
+ rest = __rest(_a, ["className"]);
66
+ return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
67
+ return _react["default"].createElement(_radio["default"].Group, Object.assign({}, rest, {
68
+ ref: ref,
69
+ className: (0, _classnames["default"])(className, "".concat(tntPrefixCls, "-group"))
70
+ }));
71
+ });
72
+ });
73
+ Radio.Group = (0, _connect.connectReadonlyComponent)(RadioGroup, _previewText.PreviewText.Select);
74
+ Radio.Button = _radio["default"].Button;
75
+ var _default = exports["default"] = Radio;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio.js","sourceRoot":"","sources":["../../src/radio/radio.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,+CAAyC;AAKzC,6DAAwD;AACxD,0DAAqC;AAErC,wCAAqD;AACrD,kDAA6C;AAC7C,4DAAmC;AAEnC,gDAA6B;AAe7B,MAAM,YAAY,GAAG,WAAW,CAAA;AAEhC,MAAM,KAAK,GAAG,IAAA,kBAAU,EAAwB,CAAC,EAAsC,EAAE,GAAG,EAAE,EAAE;QAA/C,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,OAAW,EAAN,IAAI,cAApC,iCAAsC,CAAF;IACnF,OAAO,CACL,8BAAC,gCAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,8BAAC,eAAS,oBAAK,IAAI,IAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,YAAY,CAAC;YAC3E,wCAAM,SAAS,EAAE,GAAG,YAAY,WAAW;gBACzC,4CAAO,QAAQ,CAAQ;gBACtB,CAAC,CAAC,IAAI,IAAI,wCAAM,SAAS,EAAE,GAAG,YAAY,OAAO,IAAG,IAAI,CAAQ,CAC5D,CACG,CACb,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAmB,CAAA;AAEpB,MAAM,UAAU,GAAG,IAAA,kBAAU,EAAkC,CAAC,EAAsB,EAAE,GAAG,EAAE,EAAE;QAA/B,EAAE,SAAS,OAAW,EAAN,IAAI,cAApB,aAAsB,CAAF;IAClF,OAAO,CACL,8BAAC,gCAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,8BAAC,eAAS,CAAC,KAAK,oBACV,IAAI,IACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,GAAG,YAAY,QAAQ,CAAC,IACzD,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,KAAK,CAAC,KAAK,GAAG,IAAA,kCAAwB,EAAC,UAAU,EAAE,0BAAW,CAAC,MAAM,CAAC,CAAA;AACtE,KAAK,CAAC,MAAM,GAAG,eAAS,CAAC,MAAM,CAAA;AAE/B,kBAAe,KAAK,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2024-03-14 16:55:05\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2024-03-14 17:00:03\n * @FilePath: /tntd/packages/tntd/src/radio/radio.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React, { forwardRef } from 'react'\nimport type {\n RadioProps as AntdRadioProps,\n RadioGroupProps as AntdRadioGroupProps,\n} from 'antd/lib/radio'\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport AntdRadio from 'antd/lib/radio'\nimport type AntdRadioGroup from 'antd/lib/radio/group'\nimport { connectReadonlyComponent } from '../connect'\nimport { PreviewText } from '../preview-text'\nimport classNames from 'classnames'\n\nexport * from 'antd/lib/radio'\n\nexport type RadioProps = AntdRadioProps & {\n desc?: string | React.ReactNode\n}\nexport type RadioGroupProps = AntdRadioGroupProps & {\n readonly?: boolean\n}\n\ninterface RadioComponent\n extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<AntdRadio>> {\n Group: React.FC<RadioGroupProps>\n Button: typeof AntdRadio.Button\n}\n\nconst tntPrefixCls = 'tnt-radio'\n\nconst Radio = forwardRef<AntdRadio, RadioProps>(({ className, children, desc, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdRadio {...rest} ref={ref} className={classNames(className, tntPrefixCls)}>\n <span className={`${tntPrefixCls}-children`}>\n <span>{children}</span>\n {!!desc && <span className={`${tntPrefixCls}-desc`}>{desc}</span>}\n </span>\n </AntdRadio>\n )\n }}\n </ConfigConsumer>\n )\n}) as RadioComponent\n\nconst RadioGroup = forwardRef<AntdRadioGroup, RadioGroupProps>(({ className, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdRadio.Group\n {...rest}\n ref={ref}\n className={classNames(className, `${tntPrefixCls}-group`)}\n />\n )\n }}\n </ConfigConsumer>\n )\n})\n\nRadio.Group = connectReadonlyComponent(RadioGroup, PreviewText.Select)\nRadio.Button = AntdRadio.Button\n\nexport default Radio\n"]}
@@ -0,0 +1,43 @@
1
+ @radio-prefix-cls: ~'@{ant-prefix}-radio';
2
+ @radio-inner-prefix-cls: ~'@{radio-prefix-cls}-inner';
3
+
4
+ // 选中状态
5
+ .tnt-radio,
6
+ .tnt-radio-group {
7
+ .@{radio-prefix-cls}-checked {
8
+ .@{radio-inner-prefix-cls} {
9
+ border-color: @radio-dot-color;
10
+ background-color: @radio-dot-color;
11
+ &::after {
12
+ @radio-dot-size: calc(@radio-size - 12px);
13
+
14
+ width: @radio-dot-size;
15
+ height: @radio-dot-size;
16
+ top: calc((@radio-size - @radio-dot-size) / 2 - 1px);
17
+ left: calc((@radio-size - @radio-dot-size) / 2 - 1px);
18
+ background-color: @radio-button-bg;
19
+ }
20
+ }
21
+
22
+ &.@{radio-prefix-cls}-disabled {
23
+ .@{radio-inner-prefix-cls} {
24
+ border-color: @checkbox-check-disabled-color !important;
25
+ background-color: @checkbox-check-disabled-color;
26
+ }
27
+ }
28
+ }
29
+ }
30
+
31
+ .tnt-radio {
32
+ & > span:nth-of-type(2) {
33
+ display: inline-block;
34
+ }
35
+ &-children {
36
+ display: flex;
37
+ flex-direction: column;
38
+ }
39
+ &-desc {
40
+ font-size: @font-size-sm;
41
+ color: @bg-color-spotilight-tint-50;
42
+ }
43
+ }
@@ -58,7 +58,8 @@
58
58
  position: absolute;
59
59
  top: 50%;
60
60
  right: calc(@control-padding-horizontal - 1px);
61
- margin-top: calc(-@font-size-sm / 2);
61
+ // margin-top: calc(-@font-size-sm / 2);
62
+ margin-top: -8px;
62
63
  color: @disabled-color;
63
64
  font-size: @font-size-sm;
64
65
  line-height: 1;
@@ -0,0 +1,12 @@
1
+ <svg width="162" height="77" viewBox="0 0 162 77" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="Ellipse 27" filter="url(#filter0_f_5274_1997)">
3
+ <ellipse class="test" cx="36.5" cy="-21.5" rx="78.5" ry="51.5" fill="#126BFB" fill-opacity="0.15"/>
4
+ </g>
5
+ <defs>
6
+ <filter id="filter0_f_5274_1997" x="-89" y="-120" width="251" height="197" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
7
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
8
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
9
+ <feGaussianBlur stdDeviation="23.5" result="effect1_foregroundBlur_5274_1997"/>
10
+ </filter>
11
+ </defs>
12
+ </svg>
@@ -0,0 +1,12 @@
1
+ <svg width="131" height="80" viewBox="0 0 131 80" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="Ellipse 28" filter="url(#filter0_f_5274_1888)">
3
+ <circle cx="118" cy="100" r="71" fill="#126BFB" fill-opacity="0.08"/>
4
+ </g>
5
+ <defs>
6
+ <filter id="filter0_f_5274_1888" x="0" y="-18" width="236" height="236" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
7
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
8
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
9
+ <feGaussianBlur stdDeviation="23.5" result="effect1_foregroundBlur_5274_1888"/>
10
+ </filter>
11
+ </defs>
12
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="8" height="2" viewBox="0 0 6 2" fill="none">
2
+ <path class="t1" d="M1.5 1H206" stroke="#C9D2DD" stroke-width="2" stroke-linecap="round" stroke-dasharray="2 7"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="2" height="10" viewBox="0 0 2 6" fill="none">
2
+ <path d="M1 1L0.999999 25" stroke="#C9D2DD" stroke-width="2" stroke-linecap="round" stroke-dasharray="4 6"/>
3
+ </svg>
@@ -0,0 +1,51 @@
1
+ .@{tnt-steps-cls}:not(.@{steps-prefix-cls}-dot).@{steps-prefix-cls}{
2
+ .@{steps-prefix-cls}-item{
3
+ &-icon{
4
+ border: none;
5
+ font-weight: 500;
6
+ margin: 2px 12px 2px 0;
7
+ width: @td-steps-icon-size;
8
+ height: @td-steps-icon-size;
9
+ line-height: @td-steps-icon-size;
10
+ border-radius:@td-steps-icon-size;
11
+ >.@{steps-prefix-cls}-icon{
12
+ top:0;
13
+ i{
14
+ font-size: @td-steps-icon-size;
15
+ font-weight: normal;
16
+ }
17
+ }
18
+ }
19
+ &-finish.@{step-prefix-cls}-default-icon,
20
+ &-error.@{step-prefix-cls}-default-icon {
21
+ .@{steps-prefix-cls}-item-icon {
22
+ background-color: transparent;
23
+ }
24
+ }
25
+
26
+ &-wait.@{step-prefix-cls}-default-icon {
27
+ .@{steps-prefix-cls}-item-icon {
28
+ background-color: @fill-color-tertiary;
29
+ }
30
+ }
31
+ }
32
+
33
+
34
+
35
+ &-small {
36
+ .@{steps-prefix-cls}-item{
37
+ &-icon{
38
+ width: @td-steps-small-icon-size;
39
+ height: @td-steps-small-icon-size;
40
+ line-height: @td-steps-small-icon-size;
41
+ border-radius:@td-steps-small-icon-size;
42
+ >.@{steps-prefix-cls}-icon{
43
+ i{
44
+ font-size: @td-steps-small-icon-size;
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+
@@ -0,0 +1,10 @@
1
+ .@{tnt-steps-cls}.@{steps-prefix-cls}-dot,
2
+ .@{tnt-steps-cls}.@{steps-prefix-cls}-dot.@{steps-prefix-cls}-small {
3
+ .@{steps-prefix-cls}-item {
4
+ &-tail {
5
+ &::after {
6
+ height: 2px;
7
+ }
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,8 @@
1
+ @td-steps-icon-size: 40px;
2
+ @td-steps-small-icon-size: 24px;
3
+ @td-steps-title-height: 24px;
4
+ @td-steps-desc-height: 20px;
5
+ @nav-min-height: 44px;
6
+ @nav-small-min-height: 28px;
7
+ @finish-border-color: @primary-color;
8
+
@@ -0,0 +1,41 @@
1
+ .@{tnt-steps-cls}.@{steps-prefix-cls}-vertical:not(.@{steps-prefix-cls}-dot):not(.@{steps-prefix-cls}-navigation):not(.@{steps-prefix-cls}-small).@{steps-prefix-cls}{
2
+ .@{steps-prefix-cls}-item{
3
+ &-icon >.@{steps-prefix-cls}-icon{
4
+ i{
5
+ vertical-align: middle;
6
+ }
7
+ }
8
+
9
+ &-content {
10
+ min-height: 94px;
11
+ }
12
+
13
+ > .@{steps-prefix-cls}-item-container > .@{steps-prefix-cls}-item-tail{
14
+ padding: calc(@td-steps-icon-size + 15px) 0 15px;
15
+ left: 18px;
16
+ &::after{
17
+ width:0;
18
+ border-radius: 2px;
19
+ background-color: transparent;
20
+ }
21
+ }
22
+
23
+ &-finish > .@{steps-prefix-cls}-item-container > .@{steps-prefix-cls}-item-tail {
24
+ &::after {
25
+ border-left: 2px solid @finish-border-color;
26
+ }
27
+ }
28
+
29
+ &-wait, &-error, &-process {
30
+ > .@{steps-prefix-cls}-item-container > .@{steps-prefix-cls}-item-tail {
31
+ &::after {
32
+ border-left: 2px solid transparent;
33
+ background-color: @border-color;
34
+ mask: url(../assets/vertical_line.svg) repeat-y 0 0;
35
+ -webkit-mask:url(../assets/vertical_line.svg) repeat-y 0 0;
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+
@@ -33,11 +33,12 @@
33
33
  display: inline-block;
34
34
  @font-scale: unit(@size / 12px);
35
35
 
36
- font-size: 12px;
36
+ font-size: 16px;
37
37
  // IE9
38
38
  font-size: ~'@{size} \9';
39
39
  transform: scale(@font-scale) rotate(@rotate);
40
40
  :root & {
41
- font-size: @font-size-sm; // reset IE9 and above
41
+ // font-size: @font-size-sm; // reset IE9 and above
42
+ font-size: 16px; // reset IE9 and above
42
43
  }
43
44
  }
@@ -418,7 +418,8 @@
418
418
  @menu-item-active-bg: @item-active-bg;
419
419
  @menu-item-active-border-width: 3px;
420
420
  @menu-item-group-title-color: @text-color-secondary;
421
- @menu-icon-size: @font-size-base;
421
+ // @menu-icon-size: @font-size-base;
422
+ @menu-icon-size: 16px;
422
423
  @menu-icon-size-lg: @font-size-lg;
423
424
 
424
425
  @menu-item-vertical-margin: 4px;
@@ -561,7 +562,7 @@
561
562
  // ---
562
563
  @switch-height: 22px;
563
564
  @switch-sm-height: 16px;
564
- @switch-sm-checked-margin-left: calc(-(@switch-sm-height - 3px));
565
+ @switch-sm-checked-margin-left: calc(3px - @switch-sm-height);
565
566
  @switch-disabled-opacity: 0.4;
566
567
  @switch-color: @primary-color;
567
568
  @switch-shadow-color: fade(#00230b, 20%);
@@ -0,0 +1,46 @@
1
+ @switch-prefix-cls: ~'@{ant-prefix}-switch';
2
+
3
+ .@{switch-prefix-cls} {
4
+ &-small{
5
+ min-width: 36px;
6
+ }
7
+
8
+ &-checked{
9
+ &:hover{
10
+ background-color:@blue-5;
11
+ }
12
+ }
13
+
14
+ &-disabled{
15
+ background-color: @blue-5;
16
+ }
17
+
18
+
19
+ &-wrap{
20
+ display: flex;
21
+ }
22
+
23
+ &-text-wrap{
24
+ margin-left: @margin-xs;
25
+ font-weight: 400;
26
+ }
27
+
28
+ &-text{
29
+ font-size: 14px;
30
+ color: @text-color;
31
+ }
32
+
33
+ &-text-disabled{
34
+ color: @text-color-tertiary;
35
+ }
36
+
37
+ &-subtext{
38
+ font-size: 12px;
39
+ color: tint(@text-color, 50%);
40
+ line-height: 20px;
41
+ }
42
+
43
+ &-subtext-disabled{
44
+ color: @text-color-tertiary;
45
+ }
46
+ }
@@ -0,0 +1,114 @@
1
+ // Tabs 自定义梯形页签样式
2
+ @tab-prefix-cls: ~'@{ant-prefix}-tabs';
3
+
4
+ .tnt-tabs.@{tab-prefix-cls}.@{tab-prefix-cls}-ladder-card.@{tab-prefix-cls}-top {
5
+
6
+ padding: 0 12px;
7
+ position: relative;
8
+ left: -12px;
9
+ padding-bottom: 20px;
10
+
11
+ .@{tab-prefix-cls}-tab {
12
+ position: relative;
13
+ min-width: 106px;
14
+ height: 40px;
15
+ line-height: 40px;
16
+ border-top-left-radius: @border-radius-lg;
17
+ filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.10));
18
+ box-shadow: 0px 0px 2px -5px rgba(0, 0, 0, 0.05);
19
+ border: none;
20
+ margin: 0px 30px 0px 0px;
21
+ padding: 0px 12px 0;
22
+ background: @fill-color-quaternary;
23
+ text-align: right;
24
+ color: @text-color-secondary;
25
+
26
+ &::after {
27
+ content: '';
28
+ position: absolute;
29
+ top: 0;
30
+ right: -52px;
31
+ height: 100%;
32
+ width: 64px;
33
+ z-index: 1;
34
+ background: inherit;
35
+ clip-path: path('M0 0H22.3875C28.4632 0 34.2094 2.76179 38.0049 7.5061L64 40H0V0Z');
36
+ }
37
+
38
+ }
39
+
40
+ .@{tab-prefix-cls}-nav {
41
+ margin-top: 12px;
42
+ padding-left: 12px;
43
+ }
44
+
45
+ .@{tab-prefix-cls}-nav-container {
46
+ height: auto;
47
+ position: relative;
48
+ left: -12px;
49
+ width: calc(100% + 12px);
50
+ }
51
+
52
+ .@{tab-prefix-cls}-bar.@{tab-prefix-cls}-top-bar.@{tab-prefix-cls}-card-bar {
53
+ border-bottom: none;
54
+ margin-bottom: 0;
55
+ }
56
+
57
+
58
+ // 鼠标选中时,active状态在上层
59
+ .@{tab-prefix-cls}-tab-active {
60
+ z-index: 3;
61
+ background: @tabs-active-background;
62
+ }
63
+
64
+ .@{tab-prefix-cls}-tabpane{
65
+ background: @white;
66
+ box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
67
+ padding: 20px 12px 12px;
68
+ border-bottom-right-radius: @border-radius-lg;
69
+ border-bottom-left-radius: @border-radius-lg;
70
+ border-top-right-radius: @border-radius-lg;
71
+ }
72
+ }
73
+
74
+ // // Tabs top类型 全局样式修改
75
+ .tnt-tabs.@{tab-prefix-cls}.@{tab-prefix-cls}-top.@{tab-prefix-cls}-line {
76
+ .@{tab-prefix-cls}-bar {
77
+ border-bottom: none !important;
78
+ }
79
+
80
+ .@{tab-prefix-cls}-nav-container {
81
+ margin-bottom: none;
82
+ }
83
+
84
+ .@{tab-prefix-cls}-tab {
85
+ border-bottom: 1px solid transparent;
86
+ margin-bottom: 1px;
87
+ height: 40px;
88
+ line-height: 37px;
89
+ padding: 2px 12px 0;
90
+ }
91
+
92
+ .@{tab-prefix-cls}-tab:hover{
93
+ border-color: @border-color-secondary;
94
+ }
95
+ }
96
+
97
+ .tnt-tabs.@{tab-prefix-cls} {
98
+ .@{tab-prefix-cls}-nav {
99
+ .@{tab-prefix-cls}-tab {
100
+ color: @tabs-tab-color;
101
+ // 自定义图标默认都是 16px
102
+ i.anticon {
103
+ font-size: @font-size-lg;
104
+ margin-right: 4px;
105
+ }
106
+ }
107
+ .@{tab-prefix-cls}-tab.@{tab-prefix-cls}-tab-active {
108
+ color: @tabs-active-color;
109
+ }
110
+ .@{tab-prefix-cls}-tab.@{tab-prefix-cls}-tab:hover {
111
+ color: @tabs-hover-color;
112
+ }
113
+ }
114
+ }