tntd 2.8.0-beta.5 → 2.8.0-beta.7

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 (280) hide show
  1. package/es/check-card/index.js +2 -3
  2. package/es/check-card/index.js.map +1 -1
  3. package/es/color-picker/ColorPicker.js +4 -6
  4. package/es/color-picker/ColorPicker.js.map +1 -1
  5. package/es/index.js +2 -0
  6. package/es/index.js.map +1 -1
  7. package/es/locale/en_US.js +3 -0
  8. package/es/locale/en_US.js.map +1 -1
  9. package/es/locale/zh_CN.js +3 -0
  10. package/es/locale/zh_CN.js.map +1 -1
  11. package/es/page-container/index.js +13 -0
  12. package/es/page-container/index.js.map +1 -0
  13. package/es/page-container/index.less +38 -0
  14. package/es/page-loading/index.js +25 -0
  15. package/es/page-loading/index.js.map +1 -0
  16. package/es/page-loading/index.less +22 -0
  17. package/es/page-loading/loading.gif +0 -0
  18. package/es/table/table.js +1 -2
  19. package/es/table/table.js.map +1 -1
  20. package/es/table-container/index.less +1 -0
  21. package/es/tabs/tabs.js +4 -2
  22. package/es/tabs/tabs.js.map +1 -1
  23. package/es/tntd-cascader/AntdCascader/component/getIcons.js +7 -8
  24. package/es/tntd-cascader/AntdCascader/component/getIcons.js.map +1 -1
  25. package/es/tntd-cascader/AntdCascader/index.js +4 -5
  26. package/es/tntd-cascader/AntdCascader/index.js.map +1 -1
  27. package/es/tntd-rc-select/_util/getIcons.js +7 -8
  28. package/es/tntd-rc-select/_util/getIcons.js.map +1 -1
  29. package/lib/check-card/index.js +1 -2
  30. package/lib/check-card/index.js.map +1 -1
  31. package/lib/color-picker/ColorPicker.d.ts.map +1 -1
  32. package/lib/color-picker/ColorPicker.js +2 -4
  33. package/lib/color-picker/ColorPicker.js.map +1 -1
  34. package/lib/index.d.ts +2 -0
  35. package/lib/index.d.ts.map +1 -1
  36. package/lib/index.js +14 -0
  37. package/lib/index.js.map +1 -1
  38. package/lib/locale/default.d.ts +3 -0
  39. package/lib/locale/default.d.ts.map +1 -1
  40. package/lib/locale/en_US.d.ts +3 -0
  41. package/lib/locale/en_US.d.ts.map +1 -1
  42. package/lib/locale/en_US.js +3 -0
  43. package/lib/locale/en_US.js.map +1 -1
  44. package/lib/locale/zh_CN.d.ts +3 -0
  45. package/lib/locale/zh_CN.d.ts.map +1 -1
  46. package/lib/locale/zh_CN.js +3 -0
  47. package/lib/locale/zh_CN.js.map +1 -1
  48. package/lib/page-container/index.d.ts +4 -0
  49. package/lib/page-container/index.d.ts.map +1 -0
  50. package/lib/page-container/index.js +22 -0
  51. package/lib/page-container/index.js.map +1 -0
  52. package/lib/page-container/index.less +38 -0
  53. package/lib/{query-form/Field/Composition/Select.d.ts → page-loading/index.d.ts} +1 -1
  54. package/lib/page-loading/index.d.ts.map +1 -0
  55. package/lib/page-loading/index.js +30 -0
  56. package/lib/page-loading/index.js.map +1 -0
  57. package/lib/page-loading/index.less +22 -0
  58. package/lib/page-loading/loading.gif +0 -0
  59. package/lib/table/table.d.ts.map +1 -1
  60. package/lib/table/table.js +2 -3
  61. package/lib/table/table.js.map +1 -1
  62. package/lib/table-container/index.less +1 -0
  63. package/lib/tabs/tabs.d.ts.map +1 -1
  64. package/lib/tabs/tabs.js +3 -1
  65. package/lib/tabs/tabs.js.map +1 -1
  66. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +2 -3
  67. package/lib/tntd-cascader/AntdCascader/component/getIcons.js.map +1 -1
  68. package/lib/tntd-cascader/AntdCascader/index.d.ts.map +1 -1
  69. package/lib/tntd-cascader/AntdCascader/index.js +1 -2
  70. package/lib/tntd-cascader/AntdCascader/index.js.map +1 -1
  71. package/lib/tntd-rc-select/_util/getIcons.js +2 -3
  72. package/lib/tntd-rc-select/_util/getIcons.js.map +1 -1
  73. package/package.json +2 -2
  74. package/es/alert/alert.js +0 -70
  75. package/es/alert/alert.js.map +0 -1
  76. package/es/alert/alert.less +0 -128
  77. package/es/button/button.less +0 -72
  78. package/es/checkbox/check.png +0 -0
  79. package/es/checkbox/checkbox.js +0 -48
  80. package/es/checkbox/checkbox.js.map +0 -1
  81. package/es/checkbox/checkbox.less +0 -69
  82. package/es/date-picker/DatePicker.js +0 -101
  83. package/es/date-picker/DatePicker.js.map +0 -1
  84. package/es/date-picker/index.less +0 -294
  85. package/es/drawer/index.less +0 -154
  86. package/es/form/form.less +0 -36
  87. package/es/grid/RowContext.js +0 -3
  88. package/es/grid/RowContext.js.map +0 -1
  89. package/es/grid/col.js +0 -103
  90. package/es/grid/col.js.map +0 -1
  91. package/es/grid/hooks/useBreakpoint.js +0 -18
  92. package/es/grid/hooks/useBreakpoint.js.map +0 -1
  93. package/es/grid/row.js +0 -154
  94. package/es/grid/row.js.map +0 -1
  95. package/es/grid/style/rtl.less +0 -69
  96. package/es/input-number/inputNumber.js +0 -29
  97. package/es/input-number/inputNumber.js.map +0 -1
  98. package/es/input-number/inputNumber.less +0 -12
  99. package/es/modal/index.less +0 -36
  100. package/es/notification/assets/index.js +0 -2
  101. package/es/notification/assets/index.js.map +0 -1
  102. package/es/notification/assets/svg-error-tip.js +0 -145
  103. package/es/notification/assets/svg-error-tip.js.map +0 -1
  104. package/es/notification/assets/svg-success-tip.js +0 -162
  105. package/es/notification/assets/svg-success-tip.js.map +0 -1
  106. package/es/notification/notification.js +0 -80
  107. package/es/notification/notification.js.map +0 -1
  108. package/es/notification/notification.less +0 -59
  109. package/es/popconfirm/index.less +0 -32
  110. package/es/popconfirm/popconfirm.js +0 -43
  111. package/es/popconfirm/popconfirm.js.map +0 -1
  112. package/es/popover/index.less +0 -57
  113. package/es/popover/popover.js +0 -34
  114. package/es/popover/popover.js.map +0 -1
  115. package/es/progress/progress.js +0 -132
  116. package/es/progress/progress.js.map +0 -1
  117. package/es/progress/progress.less +0 -82
  118. package/es/query-form/Field/Composition/FieldPopover.js +0 -284
  119. package/es/query-form/Field/Composition/FieldPopover.js.map +0 -1
  120. package/es/query-form/Field/Composition/FieldPopover.less +0 -35
  121. package/es/query-form/Field/Composition/Select.js +0 -108
  122. package/es/query-form/Field/Composition/Select.js.map +0 -1
  123. package/es/query-form/Field/Composition/index.js +0 -275
  124. package/es/query-form/Field/Composition/index.js.map +0 -1
  125. package/es/query-form/Field/Composition/index.less +0 -106
  126. package/es/query-form/Field/Composition/utils.js +0 -19
  127. package/es/query-form/Field/Composition/utils.js.map +0 -1
  128. package/es/radio/radio.js +0 -57
  129. package/es/radio/radio.js.map +0 -1
  130. package/es/radio/radio.less +0 -43
  131. package/es/steps/assets/background_left.svg +0 -12
  132. package/es/steps/assets/background_right.svg +0 -12
  133. package/es/steps/assets/horizontal_line.svg +0 -3
  134. package/es/steps/assets/vertical_line.svg +0 -3
  135. package/es/steps/stepStyle/icon.less +0 -51
  136. package/es/steps/stepStyle/progress-dot.less +0 -10
  137. package/es/steps/stepStyle/variables.less +0 -8
  138. package/es/steps/stepStyle/vertical.less +0 -41
  139. package/es/switch/index.less +0 -46
  140. package/es/tabs/tabs.less +0 -116
  141. package/es/tag/color.less +0 -43
  142. package/es/tag/tag.js +0 -171
  143. package/es/tag/tag.js.map +0 -1
  144. package/es/tag/tag.less +0 -193
  145. package/es/time-picker/TimePicker.js +0 -36
  146. package/es/time-picker/TimePicker.js.map +0 -1
  147. package/es/time-picker/index.less +0 -38
  148. package/es/tntd-action/Action.js +0 -66
  149. package/es/tntd-action/Action.js.map +0 -1
  150. package/es/tntd-action/index.less +0 -53
  151. package/es/tooltip/index.less +0 -29
  152. package/es/tooltip/tooltip.js +0 -33
  153. package/es/tooltip/tooltip.js.map +0 -1
  154. package/lib/alert/alert.d.ts +0 -12
  155. package/lib/alert/alert.d.ts.map +0 -1
  156. package/lib/alert/alert.js +0 -92
  157. package/lib/alert/alert.js.map +0 -1
  158. package/lib/alert/alert.less +0 -128
  159. package/lib/button/button.less +0 -72
  160. package/lib/checkbox/check.png +0 -0
  161. package/lib/checkbox/checkbox.d.ts +0 -16
  162. package/lib/checkbox/checkbox.d.ts.map +0 -1
  163. package/lib/checkbox/checkbox.js +0 -65
  164. package/lib/checkbox/checkbox.js.map +0 -1
  165. package/lib/checkbox/checkbox.less +0 -69
  166. package/lib/date-picker/DatePicker.d.ts +0 -21
  167. package/lib/date-picker/DatePicker.d.ts.map +0 -1
  168. package/lib/date-picker/DatePicker.js +0 -128
  169. package/lib/date-picker/DatePicker.js.map +0 -1
  170. package/lib/date-picker/index.less +0 -294
  171. package/lib/drawer/index.less +0 -154
  172. package/lib/form/form.less +0 -36
  173. package/lib/grid/RowContext.d.ts +0 -9
  174. package/lib/grid/RowContext.d.ts.map +0 -1
  175. package/lib/grid/RowContext.js +0 -9
  176. package/lib/grid/RowContext.js.map +0 -1
  177. package/lib/grid/col.d.ts +0 -29
  178. package/lib/grid/col.d.ts.map +0 -1
  179. package/lib/grid/col.js +0 -100
  180. package/lib/grid/col.js.map +0 -1
  181. package/lib/grid/hooks/useBreakpoint.d.ts +0 -4
  182. package/lib/grid/hooks/useBreakpoint.d.ts.map +0 -1
  183. package/lib/grid/hooks/useBreakpoint.js +0 -28
  184. package/lib/grid/hooks/useBreakpoint.js.map +0 -1
  185. package/lib/grid/row.d.ts +0 -21
  186. package/lib/grid/row.d.ts.map +0 -1
  187. package/lib/grid/row.js +0 -183
  188. package/lib/grid/row.js.map +0 -1
  189. package/lib/grid/style/rtl.less +0 -69
  190. package/lib/input-number/inputNumber.d.ts +0 -10
  191. package/lib/input-number/inputNumber.d.ts.map +0 -1
  192. package/lib/input-number/inputNumber.js +0 -48
  193. package/lib/input-number/inputNumber.js.map +0 -1
  194. package/lib/input-number/inputNumber.less +0 -12
  195. package/lib/modal/index.less +0 -36
  196. package/lib/notification/assets/index.d.ts +0 -3
  197. package/lib/notification/assets/index.d.ts.map +0 -1
  198. package/lib/notification/assets/index.js +0 -20
  199. package/lib/notification/assets/index.js.map +0 -1
  200. package/lib/notification/assets/svg-error-tip.d.ts +0 -4
  201. package/lib/notification/assets/svg-error-tip.d.ts.map +0 -1
  202. package/lib/notification/assets/svg-error-tip.js +0 -154
  203. package/lib/notification/assets/svg-error-tip.js.map +0 -1
  204. package/lib/notification/assets/svg-success-tip.d.ts +0 -4
  205. package/lib/notification/assets/svg-success-tip.d.ts.map +0 -1
  206. package/lib/notification/assets/svg-success-tip.js +0 -171
  207. package/lib/notification/assets/svg-success-tip.js.map +0 -1
  208. package/lib/notification/notification.d.ts +0 -9
  209. package/lib/notification/notification.d.ts.map +0 -1
  210. package/lib/notification/notification.js +0 -105
  211. package/lib/notification/notification.js.map +0 -1
  212. package/lib/notification/notification.less +0 -59
  213. package/lib/popconfirm/index.less +0 -32
  214. package/lib/popconfirm/popconfirm.d.ts +0 -8
  215. package/lib/popconfirm/popconfirm.d.ts.map +0 -1
  216. package/lib/popconfirm/popconfirm.js +0 -61
  217. package/lib/popconfirm/popconfirm.js.map +0 -1
  218. package/lib/popover/index.less +0 -57
  219. package/lib/popover/popover.d.ts +0 -14
  220. package/lib/popover/popover.d.ts.map +0 -1
  221. package/lib/popover/popover.js +0 -55
  222. package/lib/popover/popover.js.map +0 -1
  223. package/lib/progress/progress.d.ts +0 -12
  224. package/lib/progress/progress.d.ts.map +0 -1
  225. package/lib/progress/progress.js +0 -148
  226. package/lib/progress/progress.js.map +0 -1
  227. package/lib/progress/progress.less +0 -82
  228. package/lib/query-form/Field/Composition/FieldPopover.d.ts +0 -17
  229. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +0 -1
  230. package/lib/query-form/Field/Composition/FieldPopover.js +0 -319
  231. package/lib/query-form/Field/Composition/FieldPopover.js.map +0 -1
  232. package/lib/query-form/Field/Composition/FieldPopover.less +0 -35
  233. package/lib/query-form/Field/Composition/Select.d.ts.map +0 -1
  234. package/lib/query-form/Field/Composition/Select.js +0 -132
  235. package/lib/query-form/Field/Composition/Select.js.map +0 -1
  236. package/lib/query-form/Field/Composition/index.d.ts +0 -14
  237. package/lib/query-form/Field/Composition/index.d.ts.map +0 -1
  238. package/lib/query-form/Field/Composition/index.js +0 -330
  239. package/lib/query-form/Field/Composition/index.js.map +0 -1
  240. package/lib/query-form/Field/Composition/index.less +0 -106
  241. package/lib/query-form/Field/Composition/utils.d.ts +0 -6
  242. package/lib/query-form/Field/Composition/utils.d.ts.map +0 -1
  243. package/lib/query-form/Field/Composition/utils.js +0 -27
  244. package/lib/query-form/Field/Composition/utils.js.map +0 -1
  245. package/lib/radio/radio.d.ts +0 -17
  246. package/lib/radio/radio.d.ts.map +0 -1
  247. package/lib/radio/radio.js +0 -75
  248. package/lib/radio/radio.js.map +0 -1
  249. package/lib/radio/radio.less +0 -43
  250. package/lib/steps/assets/background_left.svg +0 -12
  251. package/lib/steps/assets/background_right.svg +0 -12
  252. package/lib/steps/assets/horizontal_line.svg +0 -3
  253. package/lib/steps/assets/vertical_line.svg +0 -3
  254. package/lib/steps/stepStyle/icon.less +0 -51
  255. package/lib/steps/stepStyle/progress-dot.less +0 -10
  256. package/lib/steps/stepStyle/variables.less +0 -8
  257. package/lib/steps/stepStyle/vertical.less +0 -41
  258. package/lib/switch/index.less +0 -46
  259. package/lib/tabs/tabs.less +0 -116
  260. package/lib/tag/color.less +0 -43
  261. package/lib/tag/tag.d.ts +0 -41
  262. package/lib/tag/tag.d.ts.map +0 -1
  263. package/lib/tag/tag.js +0 -183
  264. package/lib/tag/tag.js.map +0 -1
  265. package/lib/tag/tag.less +0 -193
  266. package/lib/time-picker/TimePicker.d.ts +0 -9
  267. package/lib/time-picker/TimePicker.d.ts.map +0 -1
  268. package/lib/time-picker/TimePicker.js +0 -55
  269. package/lib/time-picker/TimePicker.js.map +0 -1
  270. package/lib/time-picker/index.less +0 -38
  271. package/lib/tntd-action/Action.d.ts +0 -6
  272. package/lib/tntd-action/Action.d.ts.map +0 -1
  273. package/lib/tntd-action/Action.js +0 -86
  274. package/lib/tntd-action/Action.js.map +0 -1
  275. package/lib/tntd-action/index.less +0 -53
  276. package/lib/tooltip/index.less +0 -29
  277. package/lib/tooltip/tooltip.d.ts +0 -9
  278. package/lib/tooltip/tooltip.d.ts.map +0 -1
  279. package/lib/tooltip/tooltip.js +0 -53
  280. package/lib/tooltip/tooltip.js.map +0 -1
@@ -1,106 +0,0 @@
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
- }
@@ -1,6 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/query-form/Field/Composition/utils.js"],"names":[],"mappings":"AAAA,kEAGC;AAED;;;QAkBC"}
@@ -1,27 +0,0 @@
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
- }
@@ -1 +0,0 @@
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"]}
@@ -1,17 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,75 +0,0 @@
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;
@@ -1 +0,0 @@
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"]}
@@ -1,43 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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>
@@ -1,12 +0,0 @@
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>
@@ -1,3 +0,0 @@
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>
@@ -1,3 +0,0 @@
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>
@@ -1,51 +0,0 @@
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
-
@@ -1,10 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
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
-
@@ -1,41 +0,0 @@
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
-
@@ -1,46 +0,0 @@
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
- }
@@ -1,116 +0,0 @@
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
- display: inline-block;
13
- vertical-align: bottom;
14
- position: relative;
15
- min-width: 106px;
16
- height: 40px;
17
- line-height: 40px;
18
- border-top-left-radius: @border-radius-lg;
19
- filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.10));
20
- box-shadow: 0px 0px 2px -5px rgba(0, 0, 0, 0.05);
21
- border: none;
22
- margin: 0px 30px 0px 0px;
23
- padding: 0px 12px 0;
24
- background: @fill-color-quaternary;
25
- text-align: right;
26
- color: @text-color-secondary;
27
-
28
- &::after {
29
- content: '';
30
- position: absolute;
31
- top: 0;
32
- right: -52px;
33
- height: 100%;
34
- width: 64px;
35
- z-index: 1;
36
- background: inherit;
37
- clip-path: path('M0 0H22.3875C28.4632 0 34.2094 2.76179 38.0049 7.5061L64 40H0V0Z');
38
- }
39
-
40
- }
41
-
42
- .@{tab-prefix-cls}-nav {
43
- margin-top: 12px;
44
- padding-left: 12px;
45
- }
46
-
47
- .@{tab-prefix-cls}-nav-container {
48
- height: auto;
49
- position: relative;
50
- left: -12px;
51
- width: calc(100% + 12px);
52
- }
53
-
54
- .@{tab-prefix-cls}-bar.@{tab-prefix-cls}-top-bar.@{tab-prefix-cls}-card-bar {
55
- border-bottom: none;
56
- margin-bottom: 0;
57
- }
58
-
59
-
60
- // 鼠标选中时,active状态在上层
61
- .@{tab-prefix-cls}-tab-active {
62
- z-index: 3;
63
- background: @tabs-active-background;
64
- }
65
-
66
- .@{tab-prefix-cls}-tabpane{
67
- background: @white;
68
- box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
69
- padding: 20px 12px 12px;
70
- border-bottom-right-radius: @border-radius-lg;
71
- border-bottom-left-radius: @border-radius-lg;
72
- border-top-right-radius: @border-radius-lg;
73
- }
74
- }
75
-
76
- // // Tabs top类型 全局样式修改
77
- .tnt-tabs.@{tab-prefix-cls}.@{tab-prefix-cls}-top.@{tab-prefix-cls}-line {
78
- .@{tab-prefix-cls}-bar {
79
- border-bottom: none !important;
80
- }
81
-
82
- .@{tab-prefix-cls}-nav-container {
83
- margin-bottom: none;
84
- }
85
-
86
- .@{tab-prefix-cls}-tab {
87
- border-bottom: 1px solid transparent;
88
- margin-bottom: 1px;
89
- height: 40px;
90
- line-height: 37px;
91
- padding: 2px 12px 0;
92
- }
93
-
94
- .@{tab-prefix-cls}-tab:hover{
95
- border-color: @border-color-secondary;
96
- }
97
- }
98
-
99
- .tnt-tabs.@{tab-prefix-cls} {
100
- .@{tab-prefix-cls}-nav {
101
- .@{tab-prefix-cls}-tab {
102
- color: @tabs-tab-color;
103
- // 自定义图标默认都是 16px
104
- i.anticon {
105
- font-size: @font-size-lg;
106
- margin-right: 4px;
107
- }
108
- }
109
- .@{tab-prefix-cls}-tab.@{tab-prefix-cls}-tab-active {
110
- color: @tabs-active-color;
111
- }
112
- .@{tab-prefix-cls}-tab.@{tab-prefix-cls}-tab:hover {
113
- color: @tabs-hover-color;
114
- }
115
- }
116
- }
@@ -1,43 +0,0 @@
1
- @preset-colors-custom: grey, blue, green, red, gold, lightblue, bluegrey, purplegrey, purple, lightpurple, lightgreen, pink, rose, orange, magenta, volcano, yellow, cyan, lime, geekblue, tnt-pink, tnt-orange, tnt-purple;
2
-
3
-
4
- @grey-7: @text-color-secondary;
5
- @grey-4: @border-color-base;
6
- @grey-1: @tag-default-bg;
7
-
8
- @rose-7:#D8395E;
9
- @rose-4: #FEA3B4;
10
- @rose-1: #FFF1F3;
11
-
12
- @lightblue-7: #1AA9E6;
13
- @lightblue-4: #8FE0FF;
14
- @lightblue-1: #F0F9FF;
15
-
16
- @bluegrey-7: #486FBB;
17
- @bluegrey-4: #A1BCEF;
18
- @bluegrey-1: #F4F8FF;
19
-
20
- @purplegrey-7: #4E5BA6;
21
- @purplegrey-4: #AFB5D9;
22
- @purplegrey-1: #F8F9FC;
23
-
24
- @tnt-purple-7: #6E54D4;
25
- @tnt-purple-4: #BDB4FE;
26
- @tnt-purple-1: #F4F3FF;
27
-
28
- @lightpurple-7: #5161D7;
29
- @lightpurple-4: #A4BCFD;
30
- @lightpurple-1: #EEF4FF;
31
-
32
- @lightgreen-7: #2E9C98;
33
- @lightgreen-4: #8CE0DD;
34
- @lightgreen-1: #F1FBFB;
35
-
36
- @tnt-pink-7: #D03E93;
37
- @tnt-pink-4: #FAA7E0;
38
- @tnt-pink-1: #FDF2FA;
39
-
40
- @tnt-orange-7:#DF5F28;
41
- @tnt-orange-4: #FEB173;
42
- @tnt-orange-1: #FFF6ED;
43
-