@cloud-app-dev/vidc 3.2.38 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dumirc.ts +7 -11
- package/.fatherrc.ts +0 -1
- package/es/CheckGroupFixed/demo.js +2 -3
- package/es/CheckGroupFixed/index.js +4 -7
- package/es/Config/index.js +10 -9
- package/es/Config/interface.d.ts +2 -3
- package/es/CustomRenderSelect/index.js +2 -3
- package/es/DynamicList/demo.js +3 -4
- package/es/DynamicList/index.js +2 -3
- package/es/ErrorFallback/index.js +3 -6
- package/es/FrontendPlayer/index.d.ts +4 -2
- package/es/List/index.d.ts +0 -13
- package/es/List/index.js +1 -19
- package/es/LoaderScript/utils.d.ts +0 -1
- package/es/LoaderScript/utils.js +1 -36
- package/es/Map/FindPio/index.js +2 -3
- package/es/Map/LevelCenter/demo.js +2 -4
- package/es/Map/ResetTools/index.js +4 -5
- package/es/Picture/component/Tools/index.js +6 -7
- package/es/Picture/demo.js +9 -13
- package/es/Picture/index.js +55 -64
- package/es/Picture/utils.js +0 -1
- package/es/Player/api/index.js +2 -1
- package/es/Player/contraller_bar/volume.js +3 -6
- package/es/Player/demo.js +28 -58
- package/es/Player/frontend_timeline.js +1 -1
- package/es/Player/segment_timeline.js +3 -5
- package/es/Player/single_player.js +1 -1
- package/es/Player/util.d.ts +0 -1
- package/es/Player/util.js +2 -40
- package/es/PlayerExt/demo.js +12 -20
- package/es/Progress/index.js +4 -6
- package/es/RefDrawer/Footer.d.ts +9 -0
- package/es/{Drawer → RefDrawer}/Footer.js +3 -5
- package/es/{Drawer/Demo.d.ts → RefDrawer/demo.d.ts} +0 -0
- package/es/RefDrawer/demo.js +35 -0
- package/es/RefDrawer/index.d.ts +26 -0
- package/es/{Input → RefDrawer}/index.js +54 -58
- package/es/{Input → RefModal}/demo.d.ts +0 -0
- package/es/RefModal/demo.js +35 -0
- package/es/RefModal/index.d.ts +17 -0
- package/es/RefModal/index.js +71 -0
- package/es/ScreenPlayer/PlayerWithExt.js +1 -1
- package/es/ScreenPlayer/RatePick.js +8 -9
- package/es/ScreenPlayer/ScreenSelect.js +2 -3
- package/es/ScreenPlayer/SegmentTimeLine.js +3 -11
- package/es/ScreenPlayer/TimeMode.js +3 -4
- package/es/ScreenPlayer/TimeSelect.js +14 -39
- package/es/ScreenPlayer/demo.js +2 -3
- package/es/ScreenPlayer/demo2.js +8 -28
- package/es/ScreenPlayer/useTimeSlider.js +1 -1
- package/es/Service/http.js +6 -8
- package/es/TableLayout/index.d.ts +0 -3
- package/es/TableLayout/index.js +8 -10
- package/es/ThemeAntd/demo.js +21 -40
- package/es/ThemeAntd/index.js +16 -2
- package/es/ThemeAntd/index.less +0 -12
- package/es/Timeout/index.js +2 -2
- package/es/core.d.ts +0 -149
- package/es/index.d.ts +2 -6
- package/es/index.js +2 -6
- package/es/useDrawROI/index.js +4 -4
- package/es/utils.d.ts +1 -12
- package/es/utils.js +0 -56
- package/package.json +24 -24
- package/theme-config.ts +3 -1
- package/typings/global.d.ts +4 -4
- package/es/Api/index.d.ts +0 -12
- package/es/Api/index.js +0 -267
- package/es/Box/BetweenBox/index.d.ts +0 -12
- package/es/Box/BetweenBox/index.js +0 -31
- package/es/Box/BetweenBox/index.less +0 -5
- package/es/Box/InfoBox/index.d.ts +0 -12
- package/es/Box/InfoBox/index.js +0 -30
- package/es/Box/InfoBox/index.less +0 -24
- package/es/Box/TwoColumnBox/index.d.ts +0 -10
- package/es/Box/TwoColumnBox/index.js +0 -54
- package/es/Box/TwoColumnBox/index.less +0 -80
- package/es/Box/deps/content-grid.d.ts +0 -9
- package/es/Box/deps/content-grid.js +0 -9
- package/es/Box/deps/grid-factory.d.ts +0 -10
- package/es/Box/deps/grid-factory.js +0 -72
- package/es/Box/deps/simple-grid.d.ts +0 -9
- package/es/Box/deps/simple-grid.js +0 -8
- package/es/Box/index.d.ts +0 -14
- package/es/Box/index.js +0 -39
- package/es/Box/index.less +0 -10
- package/es/Drawer/Demo.js +0 -109
- package/es/Drawer/Footer.d.ts +0 -5
- package/es/Drawer/index.d.ts +0 -38
- package/es/Drawer/index.js +0 -207
- package/es/Drawer/index.less +0 -42
- package/es/Drawer/interface.d.ts +0 -22
- package/es/Input/demo.js +0 -16
- package/es/Input/index.d.ts +0 -19
- package/es/Input/index.less +0 -12
- package/es/Modal/demo.d.ts +0 -3
- package/es/Modal/demo.js +0 -106
- package/es/Modal/index.d.ts +0 -44
- package/es/Modal/index.js +0 -197
- package/es/Modal/index.less +0 -44
- package/es/Modal/interface.d.ts +0 -23
- package/es/Service/fetch-adapter.d.ts +0 -12
- package/es/Service/fetch-adapter.js +0 -203
- package/es/ThemeAntd/style/button.less +0 -67
- package/es/ThemeAntd/style/checkbox.less +0 -72
- package/es/ThemeAntd/style/form.less +0 -12
- package/es/ThemeAntd/style/input.less +0 -83
- package/es/ThemeAntd/style/pagination.less +0 -96
- package/es/ThemeAntd/style/picker.less +0 -106
- package/es/ThemeAntd/style/popover.less +0 -5
- package/es/ThemeAntd/style/radio.less +0 -87
- package/es/ThemeAntd/style/scrollbar.less +0 -23
- package/es/ThemeAntd/style/select.less +0 -81
- package/es/ThemeAntd/style/table.less +0 -57
- package/es/ThemeAntd/style/tree.less +0 -18
- package/es/Tree/demo.d.ts +0 -3
- package/es/Tree/demo.js +0 -32
- package/es/Tree/index.d.ts +0 -24
- package/es/Tree/index.js +0 -100
- package/es/Tree/index.less +0 -60
package/es/Modal/index.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
import { IModalProps } from './interface';
|
|
4
|
-
declare function Modal({ children, className, style, getContainer, ...props }: IModalProps): JSX.Element;
|
|
5
|
-
declare namespace Modal {
|
|
6
|
-
var defaultProps: {
|
|
7
|
-
className: string;
|
|
8
|
-
getContainer: boolean;
|
|
9
|
-
};
|
|
10
|
-
var info: import("antd/lib/modal/confirm").ModalFunc;
|
|
11
|
-
var success: import("antd/lib/modal/confirm").ModalFunc;
|
|
12
|
-
var error: import("antd/lib/modal/confirm").ModalFunc;
|
|
13
|
-
var warn: import("antd/lib/modal/confirm").ModalFunc;
|
|
14
|
-
var warning: import("antd/lib/modal/confirm").ModalFunc;
|
|
15
|
-
var confirm: import("antd/lib/modal/confirm").ModalFunc;
|
|
16
|
-
var destroyAll: () => void;
|
|
17
|
-
var useModal: (prefixCls?: string) => {
|
|
18
|
-
open: (options: IUseModalHookState) => void;
|
|
19
|
-
close: () => void;
|
|
20
|
-
};
|
|
21
|
-
var useAntdModal: typeof import("antd/lib/modal/useModal").default;
|
|
22
|
-
var RefModal: React.ForwardRefExoticComponent<IModalProps & React.RefAttributes<IRefModalMethodsProps>>;
|
|
23
|
-
}
|
|
24
|
-
export interface IUseModalHookState {
|
|
25
|
-
content?: React.ReactNode;
|
|
26
|
-
visible?: boolean;
|
|
27
|
-
title?: React.ReactNode;
|
|
28
|
-
onOk?: () => void;
|
|
29
|
-
width?: number | string;
|
|
30
|
-
className?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface IUseModalHookState {
|
|
33
|
-
content?: React.ReactNode;
|
|
34
|
-
visible?: boolean;
|
|
35
|
-
title?: React.ReactNode;
|
|
36
|
-
onOk?: () => void;
|
|
37
|
-
width?: number | string;
|
|
38
|
-
className?: string;
|
|
39
|
-
}
|
|
40
|
-
export interface IRefModalMethodsProps {
|
|
41
|
-
open: (options: IUseModalHookState) => void;
|
|
42
|
-
close: () => void;
|
|
43
|
-
}
|
|
44
|
-
export default Modal;
|
package/es/Modal/index.js
DELETED
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import "antd/lib/config-provider/style";
|
|
2
|
-
import _ConfigProvider from "antd/lib/config-provider";
|
|
3
|
-
import "antd/lib/modal/style";
|
|
4
|
-
import _Modal from "antd/lib/modal";
|
|
5
|
-
var _excluded = ["children", "className", "style", "getContainer"];
|
|
6
|
-
|
|
7
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
-
|
|
9
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
|
-
|
|
11
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12
|
-
|
|
13
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
14
|
-
|
|
15
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
16
|
-
|
|
17
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
18
|
-
|
|
19
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
|
-
|
|
21
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
22
|
-
|
|
23
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
24
|
-
|
|
25
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
26
|
-
|
|
27
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
28
|
-
|
|
29
|
-
import React, { useContext, useEffect, useImperativeHandle, useMemo, useState } from 'react';
|
|
30
|
-
import * as ReactDOMClient from 'react-dom/client';
|
|
31
|
-
import CC from "../ConfigContext";
|
|
32
|
-
import "./index.less";
|
|
33
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
34
|
-
|
|
35
|
-
function Modal(_ref) {
|
|
36
|
-
var children = _ref.children,
|
|
37
|
-
className = _ref.className,
|
|
38
|
-
style = _ref.style,
|
|
39
|
-
getContainer = _ref.getContainer,
|
|
40
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
41
|
-
|
|
42
|
-
return /*#__PURE__*/_jsx(_Modal, _objectSpread(_objectSpread({
|
|
43
|
-
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
44
|
-
textAlign: 'left'
|
|
45
|
-
}),
|
|
46
|
-
getContainer: getContainer,
|
|
47
|
-
className: "lm-modal-container ".concat(className)
|
|
48
|
-
}, props), {}, {
|
|
49
|
-
children: children
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
Modal.defaultProps = {
|
|
54
|
-
className: '',
|
|
55
|
-
getContainer: false
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
function useModal() {
|
|
59
|
-
var prefixCls = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'cloudapp';
|
|
60
|
-
var context = useContext(CC.Context);
|
|
61
|
-
var container = useMemo(function () {
|
|
62
|
-
var _context$root;
|
|
63
|
-
|
|
64
|
-
return (_context$root = context === null || context === void 0 ? void 0 : context.root) !== null && _context$root !== void 0 ? _context$root : document.body;
|
|
65
|
-
}, [context === null || context === void 0 ? void 0 : context.root]);
|
|
66
|
-
var div = useMemo(function () {
|
|
67
|
-
return document.createElement('div');
|
|
68
|
-
}, []);
|
|
69
|
-
|
|
70
|
-
var _useState = useState({
|
|
71
|
-
content: null,
|
|
72
|
-
visible: false,
|
|
73
|
-
title: '',
|
|
74
|
-
onOk: undefined,
|
|
75
|
-
width: undefined,
|
|
76
|
-
className: undefined
|
|
77
|
-
}),
|
|
78
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
79
|
-
state = _useState2[0],
|
|
80
|
-
setState = _useState2[1];
|
|
81
|
-
|
|
82
|
-
var root = useMemo(function () {
|
|
83
|
-
return ReactDOMClient.createRoot(div);
|
|
84
|
-
}, [div]);
|
|
85
|
-
|
|
86
|
-
var open = function open(options) {
|
|
87
|
-
setState(function (old) {
|
|
88
|
-
return _objectSpread(_objectSpread(_objectSpread({}, old), options), {}, {
|
|
89
|
-
visible: true
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
var close = function close() {
|
|
95
|
-
setState(function (old) {
|
|
96
|
-
return _objectSpread(_objectSpread({}, old), {}, {
|
|
97
|
-
visible: false
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
useEffect(function () {
|
|
103
|
-
container.appendChild(div);
|
|
104
|
-
return function () {
|
|
105
|
-
// eslint-disable-next-line no-sequences
|
|
106
|
-
setTimeout(function () {
|
|
107
|
-
return root.unmount(), div.remove();
|
|
108
|
-
}, 100);
|
|
109
|
-
};
|
|
110
|
-
}, [container, div, root]);
|
|
111
|
-
useEffect(function () {
|
|
112
|
-
root.render( /*#__PURE__*/_jsx(_ConfigProvider, {
|
|
113
|
-
prefixCls: prefixCls,
|
|
114
|
-
getPopupContainer: function getPopupContainer() {
|
|
115
|
-
return container;
|
|
116
|
-
},
|
|
117
|
-
children: /*#__PURE__*/_jsx(Modal, {
|
|
118
|
-
okText: "\u786E\u5B9A",
|
|
119
|
-
cancelText: "\u53D6\u6D88",
|
|
120
|
-
open: state.visible,
|
|
121
|
-
onOk: state.onOk,
|
|
122
|
-
onCancel: close,
|
|
123
|
-
destroyOnClose: true,
|
|
124
|
-
title: state.title,
|
|
125
|
-
width: state.width,
|
|
126
|
-
className: state.className,
|
|
127
|
-
getContainer: false,
|
|
128
|
-
children: state.content
|
|
129
|
-
})
|
|
130
|
-
}));
|
|
131
|
-
}, [state.content, state.visible, state.title, state.onOk, state.width, state.className, root, prefixCls, container]);
|
|
132
|
-
return {
|
|
133
|
-
open: open,
|
|
134
|
-
close: close
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
var RefModal = /*#__PURE__*/React.forwardRef(function RefModal(props, ref) {
|
|
139
|
-
var _useState3 = useState({
|
|
140
|
-
content: null,
|
|
141
|
-
visible: false,
|
|
142
|
-
title: '',
|
|
143
|
-
onOk: undefined,
|
|
144
|
-
width: undefined,
|
|
145
|
-
className: undefined
|
|
146
|
-
}),
|
|
147
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
148
|
-
state = _useState4[0],
|
|
149
|
-
setState = _useState4[1];
|
|
150
|
-
|
|
151
|
-
var open = function open(options) {
|
|
152
|
-
setState(function (old) {
|
|
153
|
-
return _objectSpread(_objectSpread(_objectSpread({}, old), options), {}, {
|
|
154
|
-
visible: true
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
var close = function close() {
|
|
160
|
-
setState(function (old) {
|
|
161
|
-
return _objectSpread(_objectSpread({}, old), {}, {
|
|
162
|
-
visible: false
|
|
163
|
-
});
|
|
164
|
-
});
|
|
165
|
-
}; // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
useImperativeHandle(ref, function () {
|
|
169
|
-
return {
|
|
170
|
-
open: open,
|
|
171
|
-
close: close
|
|
172
|
-
};
|
|
173
|
-
}, [state]);
|
|
174
|
-
return /*#__PURE__*/_jsx(Modal, _objectSpread(_objectSpread({}, props), {}, {
|
|
175
|
-
okText: "\u786E\u5B9A",
|
|
176
|
-
cancelText: "\u53D6\u6D88",
|
|
177
|
-
open: state.visible,
|
|
178
|
-
onOk: state.onOk,
|
|
179
|
-
onCancel: close,
|
|
180
|
-
destroyOnClose: true,
|
|
181
|
-
title: state.title,
|
|
182
|
-
width: state.width,
|
|
183
|
-
className: state.className,
|
|
184
|
-
children: state.content
|
|
185
|
-
}));
|
|
186
|
-
});
|
|
187
|
-
Modal.info = _Modal.info;
|
|
188
|
-
Modal.success = _Modal.success;
|
|
189
|
-
Modal.error = _Modal.error;
|
|
190
|
-
Modal.warn = _Modal.warn;
|
|
191
|
-
Modal.warning = _Modal.warning;
|
|
192
|
-
Modal.confirm = _Modal.confirm;
|
|
193
|
-
Modal.destroyAll = _Modal.destroyAll;
|
|
194
|
-
Modal.useModal = useModal;
|
|
195
|
-
Modal.useAntdModal = _Modal.useModal;
|
|
196
|
-
Modal.RefModal = RefModal;
|
|
197
|
-
export default Modal;
|
package/es/Modal/index.less
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
.lm-modal-container.@{ant-prefix}-modal {
|
|
2
|
-
padding-bottom: 0;
|
|
3
|
-
color: inherit;
|
|
4
|
-
.@{ant-prefix}-modal-content {
|
|
5
|
-
display: flex;
|
|
6
|
-
height: 100%;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
background-color: transparent;
|
|
9
|
-
border-radius: var(--redius1);
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
}
|
|
12
|
-
.@{ant-prefix}-modal-close {
|
|
13
|
-
color: inherit;
|
|
14
|
-
.@{ant-prefix}-modal-close-x {
|
|
15
|
-
width: 48px;
|
|
16
|
-
height: 47px;
|
|
17
|
-
line-height: 48px;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
.@{ant-prefix}-modal-header {
|
|
21
|
-
padding: 12px 24px;
|
|
22
|
-
padding-right: 56px;
|
|
23
|
-
color: inherit;
|
|
24
|
-
background: var(--modal-title-bg);
|
|
25
|
-
border-radius: 0;
|
|
26
|
-
border-bottom-color: var(--modal-divider-color);
|
|
27
|
-
.@{ant-prefix}-modal-title {
|
|
28
|
-
font-size: var(--fs-large);
|
|
29
|
-
color: inherit;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.@{ant-prefix}-modal-body {
|
|
34
|
-
overflow: hidden;
|
|
35
|
-
background: var(--modal-content-bg);
|
|
36
|
-
flex: 1;
|
|
37
|
-
}
|
|
38
|
-
.@{ant-prefix}-modal-footer {
|
|
39
|
-
padding: 12px 24px;
|
|
40
|
-
background: var(--modal-footer-bg);
|
|
41
|
-
border-radius: 0;
|
|
42
|
-
border-top-color: var(--modal-divider-color);
|
|
43
|
-
}
|
|
44
|
-
}
|
package/es/Modal/interface.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ModalProps, ModalFuncProps } from 'antd/lib/modal/Modal';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
declare type getContainerFunc = () => HTMLElement;
|
|
5
|
-
|
|
6
|
-
export interface IModalProps extends ModalProps {}
|
|
7
|
-
export interface IModalFuncProps extends ModalFuncProps {}
|
|
8
|
-
export declare type ModalFunc = (props: ModalFuncProps) => {
|
|
9
|
-
destroy: () => void;
|
|
10
|
-
update: (newConfig: ModalFuncProps) => void;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export interface IModalStatic {
|
|
14
|
-
info: ModalFunc;
|
|
15
|
-
success: ModalFunc;
|
|
16
|
-
error: ModalFunc;
|
|
17
|
-
warn: ModalFunc;
|
|
18
|
-
warning: ModalFunc;
|
|
19
|
-
confirm: ModalFunc;
|
|
20
|
-
destroyAll: () => void;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export declare const ModalFuncProps: React.FC<ModalFuncProps>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="test/typings/global" />
|
|
2
|
-
import { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
3
|
-
export interface AxiosFetchRequestConfig extends AxiosRequestConfig<BodyInit> {
|
|
4
|
-
mode?: RequestMode;
|
|
5
|
-
body?: BodyInit;
|
|
6
|
-
cache?: RequestCache;
|
|
7
|
-
integrity?: string;
|
|
8
|
-
redirect?: RequestRedirect;
|
|
9
|
-
referrer?: string;
|
|
10
|
-
credentials?: RequestCredentials;
|
|
11
|
-
}
|
|
12
|
-
export default function fetchAdapter(config: AxiosFetchRequestConfig): AxiosPromise;
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
|
|
3
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
4
|
-
|
|
5
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
6
|
-
|
|
7
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
8
|
-
|
|
9
|
-
/* eslint-disable no-promise-executor-return */
|
|
10
|
-
|
|
11
|
-
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
12
|
-
|
|
13
|
-
/* eslint-disable @typescript-eslint/triple-slash-reference */
|
|
14
|
-
/// <reference path="../../typings/global.d.ts"/>
|
|
15
|
-
import { AxiosError } from 'axios';
|
|
16
|
-
import CanceledError from 'axios/lib/cancel/CanceledError';
|
|
17
|
-
import buildFullPath from 'axios/lib/core/buildFullPath';
|
|
18
|
-
import settle from 'axios/lib/core/settle';
|
|
19
|
-
import buildURL from 'axios/lib/helpers/buildURL';
|
|
20
|
-
import { isUndefined } from 'lodash-es';
|
|
21
|
-
export default function fetchAdapter(config) {
|
|
22
|
-
return new Promise(function (resolve, reject) {
|
|
23
|
-
var controller = new AbortController();
|
|
24
|
-
var signal = controller.signal;
|
|
25
|
-
var request = createRequest(config, signal);
|
|
26
|
-
var promises = [getResponse(request, config)];
|
|
27
|
-
|
|
28
|
-
if (config.timeout && config.timeout > 0) {
|
|
29
|
-
promises.push(timeoutHandle(request, controller, config));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
if (config.cancelToken) {
|
|
33
|
-
// Handle cancellation
|
|
34
|
-
config.cancelToken.promise.then(function onCanceled(cancel) {
|
|
35
|
-
if (!request) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
reject(!cancel ? new CanceledError(null, config, request) : cancel);
|
|
40
|
-
controller.abort();
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return Promise.race(promises).then(function (data) {
|
|
45
|
-
return settle(resolve, reject, data);
|
|
46
|
-
}).catch(reject);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function timeoutHandle(request, controller, config) {
|
|
51
|
-
return new Promise(function (resolve) {
|
|
52
|
-
setTimeout(function () {
|
|
53
|
-
var message = config.timeoutErrorMessage ? config.timeoutErrorMessage : 'timeout of ' + config.timeout + 'ms exceeded';
|
|
54
|
-
resolve(createError(message, config, 'ECONNABORTED', request));
|
|
55
|
-
controller.abort();
|
|
56
|
-
}, config.timeout);
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function getResponse(_x, _x2) {
|
|
61
|
-
return _getResponse.apply(this, arguments);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function _getResponse() {
|
|
65
|
-
_getResponse = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request, config) {
|
|
66
|
-
var stageOne, response;
|
|
67
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
68
|
-
while (1) {
|
|
69
|
-
switch (_context.prev = _context.next) {
|
|
70
|
-
case 0:
|
|
71
|
-
_context.prev = 0;
|
|
72
|
-
_context.next = 3;
|
|
73
|
-
return fetch(request);
|
|
74
|
-
|
|
75
|
-
case 3:
|
|
76
|
-
stageOne = _context.sent;
|
|
77
|
-
_context.next = 9;
|
|
78
|
-
break;
|
|
79
|
-
|
|
80
|
-
case 6:
|
|
81
|
-
_context.prev = 6;
|
|
82
|
-
_context.t0 = _context["catch"](0);
|
|
83
|
-
return _context.abrupt("return", createError('Network Error', config, 'ERR_NETWORK', request));
|
|
84
|
-
|
|
85
|
-
case 9:
|
|
86
|
-
response = {
|
|
87
|
-
ok: stageOne.ok,
|
|
88
|
-
status: stageOne.status,
|
|
89
|
-
statusText: stageOne.statusText,
|
|
90
|
-
headers: new Headers(stageOne.headers),
|
|
91
|
-
config: config,
|
|
92
|
-
request: request
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
if (!(stageOne.status >= 200 && stageOne.status !== 204)) {
|
|
96
|
-
_context.next = 30;
|
|
97
|
-
break;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
_context.t1 = config.responseType;
|
|
101
|
-
_context.next = _context.t1 === 'arraybuffer' ? 14 : _context.t1 === 'blob' ? 18 : _context.t1 === 'json' ? 22 : 26;
|
|
102
|
-
break;
|
|
103
|
-
|
|
104
|
-
case 14:
|
|
105
|
-
_context.next = 16;
|
|
106
|
-
return stageOne.arrayBuffer();
|
|
107
|
-
|
|
108
|
-
case 16:
|
|
109
|
-
response.data = _context.sent;
|
|
110
|
-
return _context.abrupt("break", 30);
|
|
111
|
-
|
|
112
|
-
case 18:
|
|
113
|
-
_context.next = 20;
|
|
114
|
-
return stageOne.blob();
|
|
115
|
-
|
|
116
|
-
case 20:
|
|
117
|
-
response.data = _context.sent;
|
|
118
|
-
return _context.abrupt("break", 30);
|
|
119
|
-
|
|
120
|
-
case 22:
|
|
121
|
-
_context.next = 24;
|
|
122
|
-
return stageOne.json();
|
|
123
|
-
|
|
124
|
-
case 24:
|
|
125
|
-
response.data = _context.sent;
|
|
126
|
-
return _context.abrupt("break", 30);
|
|
127
|
-
|
|
128
|
-
case 26:
|
|
129
|
-
_context.next = 28;
|
|
130
|
-
return stageOne.text();
|
|
131
|
-
|
|
132
|
-
case 28:
|
|
133
|
-
response.data = _context.sent;
|
|
134
|
-
return _context.abrupt("break", 30);
|
|
135
|
-
|
|
136
|
-
case 30:
|
|
137
|
-
return _context.abrupt("return", response);
|
|
138
|
-
|
|
139
|
-
case 31:
|
|
140
|
-
case "end":
|
|
141
|
-
return _context.stop();
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}, _callee, null, [[0, 6]]);
|
|
145
|
-
}));
|
|
146
|
-
return _getResponse.apply(this, arguments);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
function createRequest(config, signal) {
|
|
150
|
-
var _config$method;
|
|
151
|
-
|
|
152
|
-
var headers = new Headers(config.headers);
|
|
153
|
-
|
|
154
|
-
if (config.auth) {
|
|
155
|
-
var username = config.auth.username || '';
|
|
156
|
-
var password = config.auth.password ? decodeURI(encodeURIComponent(config.auth.password)) : '';
|
|
157
|
-
headers.set('Authorization', "Basic ".concat(btoa(username + ':' + password)));
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
var method = config === null || config === void 0 ? void 0 : (_config$method = config.method) === null || _config$method === void 0 ? void 0 : _config$method.toUpperCase();
|
|
161
|
-
var options = {
|
|
162
|
-
headers: headers,
|
|
163
|
-
method: method,
|
|
164
|
-
signal: signal
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
if (method !== 'GET' && method !== 'HEAD') {
|
|
168
|
-
options.body = config.data;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
if (config.mode) {
|
|
172
|
-
options.mode = config.mode;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
if (config.cache) {
|
|
176
|
-
options.cache = config.cache;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
if (config.integrity) {
|
|
180
|
-
options.integrity = config.integrity;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
if (config.redirect) {
|
|
184
|
-
options.redirect = config.redirect;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
if (config.referrer) {
|
|
188
|
-
options.referrer = config.referrer;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
if (!isUndefined(config.withCredentials)) {
|
|
192
|
-
options.credentials = config.withCredentials ? 'include' : 'omit';
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
var fullPath = buildFullPath(config.baseURL, config.url);
|
|
196
|
-
var url = buildURL(fullPath, config.params, config.paramsSerializer); // Expected browser to throw error if there is any wrong configuration value
|
|
197
|
-
|
|
198
|
-
return new Request(url, options);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
function createError(message, config, code, request, response) {
|
|
202
|
-
return new AxiosError(message, AxiosError[code], config, request, response);
|
|
203
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
div {
|
|
2
|
-
.@{ant-prefix}-btn {
|
|
3
|
-
border-radius: var(--radius1);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.@{ant-prefix}-btn:hover,
|
|
7
|
-
.@{ant-prefix}-btn:focus {
|
|
8
|
-
color: var(--primary-dark);
|
|
9
|
-
border-color: var(--primary-dark);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.@{ant-prefix}-btn-primary {
|
|
13
|
-
background: var(--primary);
|
|
14
|
-
border-color: var(--primary);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.@{ant-prefix}-btn-primary:hover,
|
|
18
|
-
.@{ant-prefix}-btn-primary:focus {
|
|
19
|
-
color: #fff;
|
|
20
|
-
background: var(--primary-dark);
|
|
21
|
-
border-color: var(--primary-dark);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.@{ant-prefix}-btn-primary[disabled],
|
|
25
|
-
.@{ant-prefix}-btn-primary[disabled]:hover,
|
|
26
|
-
.@{ant-prefix}-btn-primary[disabled]:focus,
|
|
27
|
-
.@{ant-prefix}-btn-primary[disabled]:active {
|
|
28
|
-
color: #fff;
|
|
29
|
-
background: var(--primary-dark);
|
|
30
|
-
opacity: .8;
|
|
31
|
-
border-color: var(--primary-dark);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.@{ant-prefix}-btn-background-ghost.@{ant-prefix}-btn-primary {
|
|
35
|
-
color: var(--primary);
|
|
36
|
-
border-color: var(--primary);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.@{ant-prefix}-btn-background-ghost.@{ant-prefix}-btn-primary:hover,
|
|
40
|
-
.@{ant-prefix}-btn-background-ghost.@{ant-prefix}-btn-primary:focus {
|
|
41
|
-
border-color: var(--primary-dark);
|
|
42
|
-
color: var(--primary-dark);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.@{ant-prefix}-btn-danger {
|
|
46
|
-
background: var(--danger);
|
|
47
|
-
border-color: var(--danger);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.@{ant-prefix}-btn-danger:hover,
|
|
51
|
-
.@{ant-prefix}-btn-danger:focus {
|
|
52
|
-
color: #fff;
|
|
53
|
-
background: var(--danger-dark);
|
|
54
|
-
border-color: var(--danger-dark);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.@{ant-prefix}-btn-background-ghost.@{ant-prefix}-btn-danger {
|
|
58
|
-
color: var(--danger);
|
|
59
|
-
border-color: var(--danger);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.@{ant-prefix}-btn-background-ghost.@{ant-prefix}-btn-danger:hover,
|
|
63
|
-
.@{ant-prefix}-btn-background-ghost.@{ant-prefix}-btn-danger:focus {
|
|
64
|
-
color: var(--danger-dark);
|
|
65
|
-
border-color: var(--danger-dark);
|
|
66
|
-
}
|
|
67
|
-
}
|