@easyv/react-components 0.0.21 → 0.0.23
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/dist/Modal/index.d.ts +2 -2
- package/dist/Modal/index.js +4 -2
- package/dist/Modal/index.less +23 -2
- package/dist/Modal/interface.d.ts +5 -1
- package/package.json +1 -1
package/dist/Modal/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ModalProps } from '@arco-design/web-react';
|
|
2
1
|
import { ConfirmProps } from '@arco-design/web-react/es/Modal/confirm';
|
|
2
|
+
import { ModalProps } from './interface';
|
|
3
3
|
import './index.less';
|
|
4
|
-
declare function XModal({ simple, className, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function XModal({ simple, className, size, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare namespace XModal {
|
|
6
6
|
var confirm: (props: ConfirmProps) => import("@arco-design/web-react/es/Modal/interface").ModalReturnProps;
|
|
7
7
|
var error: (props: ConfirmProps) => import("@arco-design/web-react/es/Modal/interface").ModalReturnProps;
|
package/dist/Modal/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
-
var _excluded = ["simple", "className"];
|
|
2
|
+
var _excluded = ["simple", "className", "size"];
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -16,9 +16,11 @@ var originModalConfirm = Modal.confirm;
|
|
|
16
16
|
export default function XModal(_ref) {
|
|
17
17
|
var simple = _ref.simple,
|
|
18
18
|
className = _ref.className,
|
|
19
|
+
_ref$size = _ref.size,
|
|
20
|
+
size = _ref$size === void 0 ? 'default' : _ref$size,
|
|
19
21
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
22
|
return /*#__PURE__*/_jsx(Modal, _objectSpread(_objectSpread({
|
|
21
|
-
className: classNames(className, {
|
|
23
|
+
className: classNames(className, "arco-modal-".concat(size), {
|
|
22
24
|
'arco-modal-simple': simple
|
|
23
25
|
})
|
|
24
26
|
}, props), {}, {
|
package/dist/Modal/index.less
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
.arco-modal {
|
|
2
|
+
// 320/480/560/720/1120
|
|
3
|
+
&.arco-modal-mini {
|
|
4
|
+
width: 320px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
&.arco-modal-small {
|
|
8
|
+
width: 480px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&.arco-modal-default {
|
|
12
|
+
width: 560px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.arco-modal-medium {
|
|
16
|
+
width: 720px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.arco-modal-large {
|
|
20
|
+
width: 1120px;
|
|
21
|
+
}
|
|
22
|
+
|
|
2
23
|
.arco-modal-header {
|
|
3
24
|
height: 56px;
|
|
4
25
|
padding: 0 24px;
|
|
@@ -33,12 +54,12 @@
|
|
|
33
54
|
|
|
34
55
|
.arco-modal-content {
|
|
35
56
|
padding-top: 8px;
|
|
36
|
-
padding-bottom: 0;
|
|
37
57
|
}
|
|
38
58
|
|
|
39
59
|
.arco-modal-footer {
|
|
40
60
|
margin-top: 0;
|
|
41
61
|
text-align: right;
|
|
42
|
-
padding: 24px;
|
|
62
|
+
padding-bottom: 24px;
|
|
63
|
+
padding-top: 0;
|
|
43
64
|
}
|
|
44
65
|
}
|