@lemon-fe/kits 1.1.4 → 1.1.5-alpha.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/es/init.js +5 -2
- package/package.json +2 -2
package/es/init.js
CHANGED
|
@@ -4,10 +4,10 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
4
4
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
5
5
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
6
|
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); }
|
|
7
|
+
import { message, Modal, Select, ConfigProvider, Result, Button, DatePicker, Cascader, TreeSelect, Empty, Menu, TimePicker, Tree } from 'antd';
|
|
7
8
|
import React from 'react';
|
|
8
9
|
import { Icons, PageLoading, PREFIX_CLS, EmptyImage } from '@lemon-fe/components';
|
|
9
10
|
import { config } from '@lemon-fe/hooks';
|
|
10
|
-
import { message, Modal, Select, ConfigProvider, Result, Button, DatePicker, Cascader, TreeSelect, Empty, Menu, TimePicker, Tree } from 'antd';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
var Tip = Icons.Tip,
|
|
13
13
|
Down = Icons.Down,
|
|
@@ -76,6 +76,7 @@ export default function init() {
|
|
|
76
76
|
}, args));
|
|
77
77
|
};
|
|
78
78
|
Modal.defaultProps = _objectSpread(_objectSpread({}, Modal.defaultProps), {}, {
|
|
79
|
+
maskClosable: false,
|
|
79
80
|
closeIcon: /*#__PURE__*/_jsx(CloseLight, {})
|
|
80
81
|
});
|
|
81
82
|
var node = /*#__PURE__*/_jsx(Down, {
|
|
@@ -179,7 +180,9 @@ export default function init() {
|
|
|
179
180
|
},
|
|
180
181
|
showError: function showError(err) {
|
|
181
182
|
console.error(err);
|
|
182
|
-
|
|
183
|
+
if (err && typeof err.message === 'string') {
|
|
184
|
+
message.error(err.message);
|
|
185
|
+
}
|
|
183
186
|
},
|
|
184
187
|
setPrimaryColor: function setPrimaryColor(color) {
|
|
185
188
|
ConfigProvider.config({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/kits",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5-alpha.0",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"registry": "https://registry.npmjs.org"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "f5967db03dbc83ad2a4377fd2accb05e3864868c"
|
|
48
48
|
}
|