tntd 2.8.53 → 2.8.54
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/alert/alert.js +59 -0
- package/es/alert/alert.js.map +1 -0
- package/es/alert/alert.less +128 -0
- package/es/cascader/cascader.js +27 -0
- package/es/cascader/cascader.js.map +1 -0
- package/es/cascader/cascader.less +16 -0
- package/es/checkbox/check.png +0 -0
- package/es/checkbox/checkbox.js +36 -0
- package/es/checkbox/checkbox.js.map +1 -0
- package/es/checkbox/checkbox.less +69 -0
- package/es/date-picker/DatePicker.js +53 -0
- package/es/date-picker/DatePicker.js.map +1 -0
- package/es/date-picker/index.less +294 -0
- package/es/input-number/inputNumber.js +29 -0
- package/es/input-number/inputNumber.js.map +1 -0
- package/es/input-number/inputNumber.less +12 -0
- package/es/modal/index.less +36 -0
- package/es/page-loading/loading.gif +0 -0
- package/es/popconfirm/index.less +32 -0
- package/es/popconfirm/popconfirm.js +31 -0
- package/es/popconfirm/popconfirm.js.map +1 -0
- package/es/popover/index.less +57 -0
- package/es/popover/popover.js +28 -0
- package/es/popover/popover.js.map +1 -0
- package/es/progress/progress.js +88 -0
- package/es/progress/progress.js.map +1 -0
- package/es/progress/progress.less +82 -0
- package/es/query-form-backup/Field/Composition/FieldPopover.less +35 -0
- package/es/query-form-backup/Field/Composition/index.less +114 -0
- package/es/query-form-backup/index.less +90 -0
- package/es/radio/radio.js +45 -0
- package/es/radio/radio.js.map +1 -0
- package/es/radio/radio.less +43 -0
- package/es/spin/spin.js +31 -0
- package/es/spin/spin.js.map +1 -0
- package/es/spin/spin.less +9 -0
- package/es/steps/assets/background_left.svg +12 -0
- package/es/steps/assets/background_right.svg +12 -0
- package/es/steps/assets/horizontal_line.svg +3 -0
- package/es/steps/assets/vertical_line.svg +3 -0
- package/es/steps/stepStyle/icon.less +51 -0
- package/es/steps/stepStyle/progress-dot.less +10 -0
- package/es/steps/stepStyle/variables.less +8 -0
- package/es/steps/stepStyle/vertical.less +41 -0
- package/es/switch/index.less +45 -0
- package/es/tabs/tabs.less +125 -0
- package/es/time-picker/TimePicker.js +28 -0
- package/es/time-picker/TimePicker.js.map +1 -0
- package/es/time-picker/index.less +38 -0
- package/es/tntd-action/index.less +114 -0
- package/es/tntd-select/index.less +7 -0
- package/lib/alert/alert.d.ts +12 -0
- package/lib/alert/alert.d.ts.map +1 -0
- package/lib/alert/alert.js +91 -0
- package/lib/alert/alert.js.map +1 -0
- package/lib/alert/alert.less +128 -0
- package/lib/cascader/cascader.d.ts +10 -0
- package/lib/cascader/cascader.d.ts.map +1 -0
- package/lib/cascader/cascader.js +58 -0
- package/lib/cascader/cascader.js.map +1 -0
- package/lib/cascader/cascader.less +16 -0
- package/lib/checkbox/check.png +0 -0
- package/lib/checkbox/checkbox.d.ts +16 -0
- package/lib/checkbox/checkbox.d.ts.map +1 -0
- package/lib/checkbox/checkbox.js +67 -0
- package/lib/checkbox/checkbox.js.map +1 -0
- package/lib/checkbox/checkbox.less +69 -0
- package/lib/date-picker/DatePicker.d.ts +21 -0
- package/lib/date-picker/DatePicker.d.ts.map +1 -0
- package/lib/date-picker/DatePicker.js +77 -0
- package/lib/date-picker/DatePicker.js.map +1 -0
- package/lib/date-picker/index.less +294 -0
- package/lib/input-number/inputNumber.d.ts +10 -0
- package/lib/input-number/inputNumber.d.ts.map +1 -0
- package/lib/input-number/inputNumber.js +60 -0
- package/lib/input-number/inputNumber.js.map +1 -0
- package/lib/input-number/inputNumber.less +12 -0
- package/lib/modal/index.less +36 -0
- package/lib/page-loading/loading.gif +0 -0
- package/lib/popconfirm/index.less +32 -0
- package/lib/popconfirm/popconfirm.d.ts +8 -0
- package/lib/popconfirm/popconfirm.d.ts.map +1 -0
- package/lib/popconfirm/popconfirm.js +50 -0
- package/lib/popconfirm/popconfirm.js.map +1 -0
- package/lib/popover/index.less +57 -0
- package/lib/popover/popover.d.ts +14 -0
- package/lib/popover/popover.d.ts.map +1 -0
- package/lib/popover/popover.js +47 -0
- package/lib/popover/popover.js.map +1 -0
- package/lib/progress/progress.d.ts +12 -0
- package/lib/progress/progress.d.ts.map +1 -0
- package/lib/progress/progress.js +107 -0
- package/lib/progress/progress.js.map +1 -0
- package/lib/progress/progress.less +82 -0
- package/lib/query-form-backup/Field/Composition/FieldPopover.less +35 -0
- package/lib/query-form-backup/Field/Composition/index.less +114 -0
- package/lib/query-form-backup/index.less +90 -0
- package/lib/radio/radio.d.ts +17 -0
- package/lib/radio/radio.d.ts.map +1 -0
- package/lib/radio/radio.js +76 -0
- package/lib/radio/radio.js.map +1 -0
- package/lib/radio/radio.less +43 -0
- package/lib/spin/spin.d.ts +9 -0
- package/lib/spin/spin.d.ts.map +1 -0
- package/lib/spin/spin.js +60 -0
- package/lib/spin/spin.js.map +1 -0
- package/lib/spin/spin.less +9 -0
- package/lib/steps/assets/background_left.svg +12 -0
- package/lib/steps/assets/background_right.svg +12 -0
- package/lib/steps/assets/horizontal_line.svg +3 -0
- package/lib/steps/assets/vertical_line.svg +3 -0
- package/lib/steps/stepStyle/icon.less +51 -0
- package/lib/steps/stepStyle/progress-dot.less +10 -0
- package/lib/steps/stepStyle/variables.less +8 -0
- package/lib/steps/stepStyle/vertical.less +41 -0
- package/lib/switch/index.less +45 -0
- package/lib/tabs/tabs.less +125 -0
- package/lib/time-picker/TimePicker.d.ts +9 -0
- package/lib/time-picker/TimePicker.d.ts.map +1 -0
- package/lib/time-picker/TimePicker.js +47 -0
- package/lib/time-picker/TimePicker.js.map +1 -0
- package/lib/time-picker/index.less +38 -0
- package/lib/tntd-action/index.less +114 -0
- package/lib/tntd-select/index.less +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
padding: 0 12px;
|
|
6
|
+
position: relative;
|
|
7
|
+
left: -12px;
|
|
8
|
+
padding-bottom: 20px;
|
|
9
|
+
|
|
10
|
+
> .@{tab-prefix-cls}-top-bar {
|
|
11
|
+
border-bottom: none;
|
|
12
|
+
margin-bottom: 0;
|
|
13
|
+
.@{tab-prefix-cls}-tab {
|
|
14
|
+
// display: inline-block;
|
|
15
|
+
vertical-align: bottom;
|
|
16
|
+
// position: relative;
|
|
17
|
+
min-width: 106px;
|
|
18
|
+
height: 40px;
|
|
19
|
+
line-height: 40px;
|
|
20
|
+
border-top-left-radius: @border-radius-lg;
|
|
21
|
+
filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.1));
|
|
22
|
+
box-shadow: 0px 0px 2px -5px rgba(0, 0, 0, 0.05);
|
|
23
|
+
border: none;
|
|
24
|
+
margin: 0px 30px 0px 0px;
|
|
25
|
+
padding: 0px 12px 0 48px;
|
|
26
|
+
// background: @fill-color-quaternary;
|
|
27
|
+
text-align: right;
|
|
28
|
+
// color: @text-color-secondary;
|
|
29
|
+
|
|
30
|
+
&::after {
|
|
31
|
+
content: '';
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 0;
|
|
34
|
+
right: -52px;
|
|
35
|
+
height: 100%;
|
|
36
|
+
width: 64px;
|
|
37
|
+
z-index: 1;
|
|
38
|
+
background: inherit;
|
|
39
|
+
clip-path: path('M0 0H22.3875C28.4632 0 34.2094 2.76179 38.0049 7.5061L64 40H0V0Z');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// 兼容clip-path 属性
|
|
43
|
+
@supports not (clip-path: path('M0 0H22.3875C28.4632 0 34.2094 2.76179 38.0049 7.5061L64 40H0V0Z')) {
|
|
44
|
+
& {
|
|
45
|
+
padding: 0px 22px 0 48px !important;
|
|
46
|
+
margin-right: 12px;
|
|
47
|
+
}
|
|
48
|
+
&::after {
|
|
49
|
+
top: 17px !important;
|
|
50
|
+
right: -54px !important;
|
|
51
|
+
width: 93px !important;
|
|
52
|
+
z-index: -1 !important;
|
|
53
|
+
height: 45px !important;
|
|
54
|
+
border-top-right-radius: 24px !important;
|
|
55
|
+
border-top-left-radius: 26px !important;
|
|
56
|
+
transform: rotate(50deg) !important;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
@supports (clip-path: path('M0 0H22.3875C28.4632 0 34.2094 2.76179 38.0049 7.5061L64 40H0V0Z')) {
|
|
60
|
+
&::after {
|
|
61
|
+
clip-path: path('M0 0H22.3875C28.4632 0 34.2094 2.76179 38.0049 7.5061L64 40H0V0Z');
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.@{tab-prefix-cls}-nav {
|
|
66
|
+
margin-top: 12px;
|
|
67
|
+
padding-left: 12px;
|
|
68
|
+
}
|
|
69
|
+
.@{tab-prefix-cls}-nav-container {
|
|
70
|
+
height: auto;
|
|
71
|
+
position: relative;
|
|
72
|
+
left: -12px;
|
|
73
|
+
}
|
|
74
|
+
// 鼠标选中时,active状态在上层
|
|
75
|
+
.@{tab-prefix-cls}-tab-active {
|
|
76
|
+
z-index: 99 !important;
|
|
77
|
+
background: @tabs-active-background;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
& > .@{tab-prefix-cls}-content {
|
|
82
|
+
& > .@{tab-prefix-cls}-tabpane {
|
|
83
|
+
background: @white;
|
|
84
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
|
|
85
|
+
padding: 20px 12px 12px;
|
|
86
|
+
border-bottom-right-radius: @border-radius-lg;
|
|
87
|
+
border-bottom-left-radius: @border-radius-lg;
|
|
88
|
+
border-top-right-radius: @border-radius-lg;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// // Tabs top类型 全局样式修改
|
|
94
|
+
.tnt-tabs.@{tab-prefix-cls}.@{tab-prefix-cls}-top.@{tab-prefix-cls}-line {
|
|
95
|
+
.@{tab-prefix-cls}-nav-container {
|
|
96
|
+
margin-bottom: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.@{tab-prefix-cls}-tab {
|
|
100
|
+
border-bottom: 1px solid transparent;
|
|
101
|
+
margin-bottom: 1px;
|
|
102
|
+
height: 40px;
|
|
103
|
+
line-height: 37px;
|
|
104
|
+
padding: 2px 12px 0;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.tnt-tabs.@{tab-prefix-cls} {
|
|
109
|
+
.@{tab-prefix-cls}-nav {
|
|
110
|
+
.@{tab-prefix-cls}-tab {
|
|
111
|
+
color: @tabs-tab-color;
|
|
112
|
+
// 自定义图标默认都是 16px
|
|
113
|
+
i.anticon {
|
|
114
|
+
font-size: @font-size-lg;
|
|
115
|
+
margin-right: 4px;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
.@{tab-prefix-cls}-tab.@{tab-prefix-cls}-tab-active {
|
|
119
|
+
color: @tabs-active-color;
|
|
120
|
+
}
|
|
121
|
+
.@{tab-prefix-cls}-tab.@{tab-prefix-cls}-tab:hover {
|
|
122
|
+
color: @tabs-hover-color;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TimePickerProps as AntdTimePickerProps } from 'antd/es/time-picker';
|
|
3
|
+
export * from 'antd/es/time-picker';
|
|
4
|
+
declare const TimePicker: React.FC<AntdTimePickerProps & {
|
|
5
|
+
theme?: string;
|
|
6
|
+
readonly?: boolean;
|
|
7
|
+
}>;
|
|
8
|
+
export default TimePicker;
|
|
9
|
+
//# sourceMappingURL=TimePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../src/time-picker/TimePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,OAAO,KAAK,EAAE,eAAe,IAAI,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAIjF,cAAc,qBAAqB,CAAA;AACnC,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAqBtF,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
+
var t = {};
|
|
18
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
+
t[p] = s[p];
|
|
20
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
+
t[p[i]] = s[p[i]];
|
|
24
|
+
}
|
|
25
|
+
return t;
|
|
26
|
+
};
|
|
27
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
28
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
const react_1 = __importDefault(require("react"));
|
|
32
|
+
const icon_1 = __importDefault(require("../icon"));
|
|
33
|
+
const config_provider_1 = require("antd/es/config-provider");
|
|
34
|
+
const time_picker_1 = __importDefault(require("antd/es/time-picker"));
|
|
35
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
36
|
+
__exportStar(require("antd/es/time-picker"), exports);
|
|
37
|
+
const TimePicker = (props) => {
|
|
38
|
+
//theme样式类型 outline | fill 默认 outline
|
|
39
|
+
const { theme = 'outline', className, suffixIcon } = props, restProps = __rest(props, ["theme", "className", "suffixIcon"]);
|
|
40
|
+
const defaultIcon = react_1.default.createElement(icon_1.default, { type: "clock-circle" });
|
|
41
|
+
return (react_1.default.createElement(config_provider_1.ConfigConsumer, null, ({ getPrefixCls }) => {
|
|
42
|
+
const prefixCls = getPrefixCls('time-picker');
|
|
43
|
+
return (react_1.default.createElement(time_picker_1.default, Object.assign({ suffixIcon: suffixIcon || defaultIcon, className: (0, classnames_1.default)(className, `${prefixCls}-${theme}`) }, restProps)));
|
|
44
|
+
}));
|
|
45
|
+
};
|
|
46
|
+
exports.default = TimePicker;
|
|
47
|
+
//# sourceMappingURL=TimePicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimePicker.js","sourceRoot":"","sources":["../../src/time-picker/TimePicker.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAuC;AACvC,mDAA0B;AAE1B,6DAAwD;AACxD,sEAA+C;AAC/C,4DAAmC;AACnC,sDAAmC;AACnC,MAAM,UAAU,GAA2E,CACzF,KAAK,EACL,EAAE;IACF,sCAAsC;IACtC,MAAM,EAAE,KAAK,GAAG,SAAS,EAAE,SAAS,EAAE,UAAU,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAAlE,oCAA0D,CAAQ,CAAA;IACxE,MAAM,WAAW,GAAG,8BAAC,cAAI,IAAC,IAAI,EAAC,cAAc,GAAG,CAAA;IAEhD,OAAO,CACL,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,CAAC,CAAA;QAC7C,OAAO,CACL,8BAAC,qBAAa,kBACZ,UAAU,EAAE,UAAU,IAAI,WAAW,EACrC,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,GAAG,SAAS,IAAI,KAAK,EAAE,CAAC,IACrD,SAAS,EACb,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,UAAU,CAAA","sourcesContent":["import React, { useState } from 'react'\nimport Icon from '../icon'\nimport type { TimePickerProps as AntdTimePickerProps } from 'antd/es/time-picker'\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport AntTimePicker from 'antd/es/time-picker'\nimport classNames from 'classnames'\nexport * from 'antd/es/time-picker'\nconst TimePicker: React.FC<AntdTimePickerProps & { theme?: string; readonly?: boolean }> = (\n props\n) => {\n //theme样式类型 outline | fill 默认 outline\n const { theme = 'outline', className, suffixIcon, ...restProps } = props\n const defaultIcon = <Icon type=\"clock-circle\" />\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('time-picker')\n return (\n <AntTimePicker\n suffixIcon={suffixIcon || defaultIcon}\n className={classNames(className, `${prefixCls}-${theme}`)}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport default TimePicker\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@import '../style/themes/index';
|
|
2
|
+
|
|
3
|
+
@timepicker-prefix-cls: ~'@{ant-prefix}-time-picker';
|
|
4
|
+
.@{timepicker-prefix-cls} {
|
|
5
|
+
input{
|
|
6
|
+
border-color: @border-color-secondary;
|
|
7
|
+
}
|
|
8
|
+
&:has(input:not([value=''])),&:hover {
|
|
9
|
+
.@{timepicker-prefix-cls}-icon{
|
|
10
|
+
i{
|
|
11
|
+
color: @text-color-secondary;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
&:has(input[disabled]){
|
|
16
|
+
.@{timepicker-prefix-cls}-icon{
|
|
17
|
+
i{
|
|
18
|
+
color: @disabled-color;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
&-fill{
|
|
23
|
+
input {
|
|
24
|
+
background-color: @fill-color-quaternary;
|
|
25
|
+
border-color: @fill-color-quaternary;
|
|
26
|
+
&[disabled] {
|
|
27
|
+
border: none;
|
|
28
|
+
}
|
|
29
|
+
&:focus{
|
|
30
|
+
background-color: @white;
|
|
31
|
+
}
|
|
32
|
+
&:not([value='']):hover {
|
|
33
|
+
background-color: @white;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
.tnt-action {
|
|
2
|
+
position: fixed;
|
|
3
|
+
// bottom: 100px;
|
|
4
|
+
// width: @tnt-action-width;
|
|
5
|
+
// left: calc(50vw - @tnt-action-width / 2);
|
|
6
|
+
padding: 10px 16px;
|
|
7
|
+
background-color: @text-color;
|
|
8
|
+
border-radius: @border-radius-base;
|
|
9
|
+
z-index: 200;
|
|
10
|
+
cursor: grab;
|
|
11
|
+
box-shadow: 0px 4px 7px 0px rgba(0, 0, 0, 0.25), 0px 1px 1px 0px #263354 inset;
|
|
12
|
+
|
|
13
|
+
&-text {
|
|
14
|
+
color: @white;
|
|
15
|
+
margin-left: 20px;
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
user-select: none;
|
|
18
|
+
|
|
19
|
+
.num {
|
|
20
|
+
display: inline-block;
|
|
21
|
+
width: 16px;
|
|
22
|
+
height: 16px;
|
|
23
|
+
background: #454f64;
|
|
24
|
+
border-radius: 8px;
|
|
25
|
+
font-size: 10px;
|
|
26
|
+
margin-right: 4px;
|
|
27
|
+
vertical-align: text-bottom;
|
|
28
|
+
text-align: center;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
>.tnt-btn-tertiary {
|
|
33
|
+
opacity: 0.5;
|
|
34
|
+
background: #454f64;
|
|
35
|
+
color: @white;
|
|
36
|
+
border-width: 0;
|
|
37
|
+
width: @tnt-action-close-width;
|
|
38
|
+
height: @tnt-action-close-width;
|
|
39
|
+
min-width: @tnt-action-close-width;
|
|
40
|
+
line-height: @tnt-action-close-width;
|
|
41
|
+
margin-top: 4px;
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
|
|
44
|
+
&:hover {
|
|
45
|
+
opacity: 0.8;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.fr {
|
|
50
|
+
float: right;
|
|
51
|
+
|
|
52
|
+
.ant-btn {
|
|
53
|
+
margin-left: 10px;
|
|
54
|
+
|
|
55
|
+
.tntd-anticon {
|
|
56
|
+
margin-right: 4px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ant-btn:not(.ant-btn-danger) {
|
|
61
|
+
background: rgba(69, 79, 100, 0.5);
|
|
62
|
+
color: @white;
|
|
63
|
+
border-width: 0;
|
|
64
|
+
|
|
65
|
+
&:hover {
|
|
66
|
+
background: rgba(69, 79, 100, 0.8);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&-dropdown {
|
|
72
|
+
&-btn {
|
|
73
|
+
margin-left: 8px !important;
|
|
74
|
+
border-radius: @border-radius-base !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ant-dropdown-menu-item {
|
|
78
|
+
.ant-btn {
|
|
79
|
+
display: block;
|
|
80
|
+
padding: 0;
|
|
81
|
+
height: auto;
|
|
82
|
+
border: none;
|
|
83
|
+
background-color: transparent;
|
|
84
|
+
color: inherit;
|
|
85
|
+
width: calc(100% + 24px);
|
|
86
|
+
text-align: left;
|
|
87
|
+
padding: 5px 12px;
|
|
88
|
+
margin: -5px -12px;
|
|
89
|
+
|
|
90
|
+
&:hover,
|
|
91
|
+
&:active {
|
|
92
|
+
color: inherit;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&[disabled] {
|
|
96
|
+
color: @disabled-color;
|
|
97
|
+
|
|
98
|
+
&:hover,
|
|
99
|
+
&:active {
|
|
100
|
+
color: @disabled-color;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// 全局设置
|
|
109
|
+
.ant-btn-group:has(.tnt-action-dropdown-btn) {
|
|
110
|
+
&>.ant-btn:nth-last-child(2) {
|
|
111
|
+
border-top-right-radius: @border-radius-base;
|
|
112
|
+
border-bottom-right-radius: @border-radius-base;
|
|
113
|
+
}
|
|
114
|
+
}
|