tntd 2.8.0-beta.6 → 2.8.0-beta.8
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.
- package/es/index.js +1 -0
- package/es/index.js.map +1 -1
- package/es/input/style/mixin.less +1 -2
- package/es/locale/en_US.js +3 -0
- package/es/locale/en_US.js.map +1 -1
- package/es/locale/zh_CN.js +3 -0
- package/es/locale/zh_CN.js.map +1 -1
- package/es/page-container/index.less +3 -5
- package/es/page-loading/index.js +29 -0
- package/es/page-loading/index.js.map +1 -0
- package/es/page-loading/index.less +38 -0
- package/es/page-loading/loading.gif +0 -0
- package/es/table-container/index.less +2 -1
- package/es/tabs-container/index.js +1 -0
- package/es/tabs-container/index.js.map +1 -1
- package/es/tabs-container/index.less +3 -3
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -0
- package/lib/index.js.map +1 -1
- package/lib/input/style/mixin.less +1 -2
- package/lib/locale/default.d.ts +3 -0
- package/lib/locale/default.d.ts.map +1 -1
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.d.ts.map +1 -1
- package/lib/locale/en_US.js +3 -0
- package/lib/locale/en_US.js.map +1 -1
- package/lib/locale/zh_CN.d.ts +3 -0
- package/lib/locale/zh_CN.d.ts.map +1 -1
- package/lib/locale/zh_CN.js +3 -0
- package/lib/locale/zh_CN.js.map +1 -1
- package/lib/page-container/index.less +3 -5
- package/lib/{query-form/Field/Composition/Select.d.ts → page-loading/index.d.ts} +1 -1
- package/lib/page-loading/index.d.ts.map +1 -0
- package/lib/page-loading/index.js +34 -0
- package/lib/page-loading/index.js.map +1 -0
- package/lib/page-loading/index.less +38 -0
- package/lib/page-loading/loading.gif +0 -0
- package/lib/table-container/index.less +2 -1
- package/lib/tabs-container/index.d.ts +2 -1
- package/lib/tabs-container/index.d.ts.map +1 -1
- package/lib/tabs-container/index.js +3 -2
- package/lib/tabs-container/index.js.map +1 -1
- package/lib/tabs-container/index.less +3 -3
- package/package.json +1 -1
- package/es/alert/alert.js +0 -70
- package/es/alert/alert.js.map +0 -1
- package/es/alert/alert.less +0 -128
- package/es/button/button.less +0 -72
- package/es/checkbox/check.png +0 -0
- package/es/checkbox/checkbox.js +0 -48
- package/es/checkbox/checkbox.js.map +0 -1
- package/es/checkbox/checkbox.less +0 -69
- package/es/date-picker/DatePicker.js +0 -101
- package/es/date-picker/DatePicker.js.map +0 -1
- package/es/date-picker/index.less +0 -294
- package/es/drawer/index.less +0 -154
- package/es/form/form.less +0 -36
- package/es/grid/RowContext.js +0 -3
- package/es/grid/RowContext.js.map +0 -1
- package/es/grid/col.js +0 -103
- package/es/grid/col.js.map +0 -1
- package/es/grid/hooks/useBreakpoint.js +0 -18
- package/es/grid/hooks/useBreakpoint.js.map +0 -1
- package/es/grid/row.js +0 -154
- package/es/grid/row.js.map +0 -1
- package/es/grid/style/rtl.less +0 -69
- package/es/input-number/inputNumber.js +0 -29
- package/es/input-number/inputNumber.js.map +0 -1
- package/es/input-number/inputNumber.less +0 -12
- package/es/modal/index.less +0 -36
- package/es/notification/assets/index.js +0 -2
- package/es/notification/assets/index.js.map +0 -1
- package/es/notification/assets/svg-error-tip.js +0 -145
- package/es/notification/assets/svg-error-tip.js.map +0 -1
- package/es/notification/assets/svg-success-tip.js +0 -162
- package/es/notification/assets/svg-success-tip.js.map +0 -1
- package/es/notification/notification.js +0 -80
- package/es/notification/notification.js.map +0 -1
- package/es/notification/notification.less +0 -59
- package/es/popconfirm/index.less +0 -32
- package/es/popconfirm/popconfirm.js +0 -43
- package/es/popconfirm/popconfirm.js.map +0 -1
- package/es/popover/index.less +0 -57
- package/es/popover/popover.js +0 -34
- package/es/popover/popover.js.map +0 -1
- package/es/progress/progress.js +0 -132
- package/es/progress/progress.js.map +0 -1
- package/es/progress/progress.less +0 -82
- package/es/query-form/Field/Composition/FieldPopover.js +0 -284
- package/es/query-form/Field/Composition/FieldPopover.js.map +0 -1
- package/es/query-form/Field/Composition/FieldPopover.less +0 -35
- package/es/query-form/Field/Composition/Select.js +0 -108
- package/es/query-form/Field/Composition/Select.js.map +0 -1
- package/es/query-form/Field/Composition/index.js +0 -275
- package/es/query-form/Field/Composition/index.js.map +0 -1
- package/es/query-form/Field/Composition/index.less +0 -106
- package/es/query-form/Field/Composition/utils.js +0 -19
- package/es/query-form/Field/Composition/utils.js.map +0 -1
- package/es/radio/radio.js +0 -57
- package/es/radio/radio.js.map +0 -1
- package/es/radio/radio.less +0 -43
- package/es/steps/assets/background_left.svg +0 -12
- package/es/steps/assets/background_right.svg +0 -12
- package/es/steps/assets/horizontal_line.svg +0 -3
- package/es/steps/assets/vertical_line.svg +0 -3
- package/es/steps/stepStyle/icon.less +0 -51
- package/es/steps/stepStyle/progress-dot.less +0 -10
- package/es/steps/stepStyle/variables.less +0 -8
- package/es/steps/stepStyle/vertical.less +0 -41
- package/es/switch/index.less +0 -46
- package/es/tabs/tabs.less +0 -116
- package/es/tag/color.less +0 -43
- package/es/tag/tag.js +0 -171
- package/es/tag/tag.js.map +0 -1
- package/es/tag/tag.less +0 -193
- package/es/time-picker/TimePicker.js +0 -36
- package/es/time-picker/TimePicker.js.map +0 -1
- package/es/time-picker/index.less +0 -38
- package/es/tntd-action/Action.js +0 -66
- package/es/tntd-action/Action.js.map +0 -1
- package/es/tntd-action/index.less +0 -53
- package/es/tooltip/index.less +0 -29
- package/es/tooltip/tooltip.js +0 -33
- package/es/tooltip/tooltip.js.map +0 -1
- package/lib/alert/alert.d.ts +0 -12
- package/lib/alert/alert.d.ts.map +0 -1
- package/lib/alert/alert.js +0 -92
- package/lib/alert/alert.js.map +0 -1
- package/lib/alert/alert.less +0 -128
- package/lib/button/button.less +0 -72
- package/lib/checkbox/check.png +0 -0
- package/lib/checkbox/checkbox.d.ts +0 -16
- package/lib/checkbox/checkbox.d.ts.map +0 -1
- package/lib/checkbox/checkbox.js +0 -65
- package/lib/checkbox/checkbox.js.map +0 -1
- package/lib/checkbox/checkbox.less +0 -69
- package/lib/date-picker/DatePicker.d.ts +0 -21
- package/lib/date-picker/DatePicker.d.ts.map +0 -1
- package/lib/date-picker/DatePicker.js +0 -128
- package/lib/date-picker/DatePicker.js.map +0 -1
- package/lib/date-picker/index.less +0 -294
- package/lib/drawer/index.less +0 -154
- package/lib/form/form.less +0 -36
- package/lib/grid/RowContext.d.ts +0 -9
- package/lib/grid/RowContext.d.ts.map +0 -1
- package/lib/grid/RowContext.js +0 -9
- package/lib/grid/RowContext.js.map +0 -1
- package/lib/grid/col.d.ts +0 -29
- package/lib/grid/col.d.ts.map +0 -1
- package/lib/grid/col.js +0 -100
- package/lib/grid/col.js.map +0 -1
- package/lib/grid/hooks/useBreakpoint.d.ts +0 -4
- package/lib/grid/hooks/useBreakpoint.d.ts.map +0 -1
- package/lib/grid/hooks/useBreakpoint.js +0 -28
- package/lib/grid/hooks/useBreakpoint.js.map +0 -1
- package/lib/grid/row.d.ts +0 -21
- package/lib/grid/row.d.ts.map +0 -1
- package/lib/grid/row.js +0 -183
- package/lib/grid/row.js.map +0 -1
- package/lib/grid/style/rtl.less +0 -69
- package/lib/input-number/inputNumber.d.ts +0 -10
- package/lib/input-number/inputNumber.d.ts.map +0 -1
- package/lib/input-number/inputNumber.js +0 -48
- package/lib/input-number/inputNumber.js.map +0 -1
- package/lib/input-number/inputNumber.less +0 -12
- package/lib/modal/index.less +0 -36
- package/lib/notification/assets/index.d.ts +0 -3
- package/lib/notification/assets/index.d.ts.map +0 -1
- package/lib/notification/assets/index.js +0 -20
- package/lib/notification/assets/index.js.map +0 -1
- package/lib/notification/assets/svg-error-tip.d.ts +0 -4
- package/lib/notification/assets/svg-error-tip.d.ts.map +0 -1
- package/lib/notification/assets/svg-error-tip.js +0 -154
- package/lib/notification/assets/svg-error-tip.js.map +0 -1
- package/lib/notification/assets/svg-success-tip.d.ts +0 -4
- package/lib/notification/assets/svg-success-tip.d.ts.map +0 -1
- package/lib/notification/assets/svg-success-tip.js +0 -171
- package/lib/notification/assets/svg-success-tip.js.map +0 -1
- package/lib/notification/notification.d.ts +0 -9
- package/lib/notification/notification.d.ts.map +0 -1
- package/lib/notification/notification.js +0 -105
- package/lib/notification/notification.js.map +0 -1
- package/lib/notification/notification.less +0 -59
- package/lib/popconfirm/index.less +0 -32
- package/lib/popconfirm/popconfirm.d.ts +0 -8
- package/lib/popconfirm/popconfirm.d.ts.map +0 -1
- package/lib/popconfirm/popconfirm.js +0 -61
- package/lib/popconfirm/popconfirm.js.map +0 -1
- package/lib/popover/index.less +0 -57
- package/lib/popover/popover.d.ts +0 -14
- package/lib/popover/popover.d.ts.map +0 -1
- package/lib/popover/popover.js +0 -55
- package/lib/popover/popover.js.map +0 -1
- package/lib/progress/progress.d.ts +0 -12
- package/lib/progress/progress.d.ts.map +0 -1
- package/lib/progress/progress.js +0 -148
- package/lib/progress/progress.js.map +0 -1
- package/lib/progress/progress.less +0 -82
- package/lib/query-form/Field/Composition/FieldPopover.d.ts +0 -17
- package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/FieldPopover.js +0 -319
- package/lib/query-form/Field/Composition/FieldPopover.js.map +0 -1
- package/lib/query-form/Field/Composition/FieldPopover.less +0 -35
- package/lib/query-form/Field/Composition/Select.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/Select.js +0 -132
- package/lib/query-form/Field/Composition/Select.js.map +0 -1
- package/lib/query-form/Field/Composition/index.d.ts +0 -14
- package/lib/query-form/Field/Composition/index.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/index.js +0 -330
- package/lib/query-form/Field/Composition/index.js.map +0 -1
- package/lib/query-form/Field/Composition/index.less +0 -106
- package/lib/query-form/Field/Composition/utils.d.ts +0 -6
- package/lib/query-form/Field/Composition/utils.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/utils.js +0 -27
- package/lib/query-form/Field/Composition/utils.js.map +0 -1
- package/lib/radio/radio.d.ts +0 -17
- package/lib/radio/radio.d.ts.map +0 -1
- package/lib/radio/radio.js +0 -75
- package/lib/radio/radio.js.map +0 -1
- package/lib/radio/radio.less +0 -43
- package/lib/steps/assets/background_left.svg +0 -12
- package/lib/steps/assets/background_right.svg +0 -12
- package/lib/steps/assets/horizontal_line.svg +0 -3
- package/lib/steps/assets/vertical_line.svg +0 -3
- package/lib/steps/stepStyle/icon.less +0 -51
- package/lib/steps/stepStyle/progress-dot.less +0 -10
- package/lib/steps/stepStyle/variables.less +0 -8
- package/lib/steps/stepStyle/vertical.less +0 -41
- package/lib/switch/index.less +0 -46
- package/lib/tabs/tabs.less +0 -116
- package/lib/tag/color.less +0 -43
- package/lib/tag/tag.d.ts +0 -41
- package/lib/tag/tag.d.ts.map +0 -1
- package/lib/tag/tag.js +0 -183
- package/lib/tag/tag.js.map +0 -1
- package/lib/tag/tag.less +0 -193
- package/lib/time-picker/TimePicker.d.ts +0 -9
- package/lib/time-picker/TimePicker.d.ts.map +0 -1
- package/lib/time-picker/TimePicker.js +0 -55
- package/lib/time-picker/TimePicker.js.map +0 -1
- package/lib/time-picker/index.less +0 -38
- package/lib/tntd-action/Action.d.ts +0 -6
- package/lib/tntd-action/Action.d.ts.map +0 -1
- package/lib/tntd-action/Action.js +0 -86
- package/lib/tntd-action/Action.js.map +0 -1
- package/lib/tntd-action/index.less +0 -53
- package/lib/tooltip/index.less +0 -29
- package/lib/tooltip/tooltip.d.ts +0 -9
- package/lib/tooltip/tooltip.d.ts.map +0 -1
- package/lib/tooltip/tooltip.js +0 -53
- 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 +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"]}
|
package/lib/radio/radio.d.ts
DELETED
|
@@ -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
|
package/lib/radio/radio.d.ts.map
DELETED
|
@@ -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"}
|
package/lib/radio/radio.js
DELETED
|
@@ -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;
|
package/lib/radio/radio.js.map
DELETED
|
@@ -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"]}
|
package/lib/radio/radio.less
DELETED
|
@@ -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,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,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
|
-
|
package/lib/switch/index.less
DELETED
|
@@ -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
|
-
}
|
package/lib/tabs/tabs.less
DELETED
|
@@ -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
|
-
}
|
package/lib/tag/color.less
DELETED
|
@@ -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
|
-
|