@lemon-fe/kits 1.1.7 → 1.1.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.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from 'antd';
2
2
  export { default as zhCN } from 'antd/es/locale/zh_CN';
3
- export { Alert, Dropdown, InputNumber, Layout, Table } from '@lemon-fe/components';
3
+ export { Alert, Dropdown, InputNumber, Layout, Table, Modal, type ModalProps, } from '@lemon-fe/components';
4
4
  export * from '@lemon-fe/components';
5
5
  export * from '@lemon-fe/hooks';
6
6
  export * from '@lemon-fe/utils';
package/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from 'antd';
2
2
  export { default as zhCN } from 'antd/es/locale/zh_CN';
3
- export { Alert, Dropdown, InputNumber, Layout, Table } from '@lemon-fe/components';
3
+ export { Alert, Dropdown, InputNumber, Layout, Table, Modal } from '@lemon-fe/components';
4
4
  //@ts-ignore
5
5
  export * from '@lemon-fe/components';
6
6
  export * from '@lemon-fe/hooks';
package/es/init.js CHANGED
@@ -4,14 +4,13 @@ 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
+ import { message, Select, ConfigProvider, Result, Button, DatePicker, Cascader, TreeSelect, Empty, Menu, TimePicker, Tree } from 'antd';
8
8
  import React from 'react';
9
9
  import { Icons, PageLoading, PREFIX_CLS, EmptyImage } from '@lemon-fe/components';
10
10
  import { config } from '@lemon-fe/hooks';
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  var Tip = Icons.Tip,
13
13
  Down = Icons.Down,
14
- CloseLight = Icons.CloseLight,
15
14
  Clear = Icons.Clear;
16
15
  export default function init() {
17
16
  var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -31,7 +30,6 @@ export default function init() {
31
30
  var types = ['success', 'error', 'warning', 'info'];
32
31
  types.forEach(function (item) {
33
32
  var msgAPI = message[item].bind(message);
34
- var modalAPI = Modal[item].bind(Modal);
35
33
  message[item] = function () {
36
34
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
37
35
  args[_key] = arguments[_key];
@@ -55,29 +53,6 @@ export default function init() {
55
53
  })
56
54
  });
57
55
  };
58
- Modal[item] = function (args) {
59
- return modalAPI(_objectSpread({
60
- title: '提示',
61
- width: 400,
62
- icon: /*#__PURE__*/_jsx(Tip, {
63
- type: item
64
- })
65
- }, args));
66
- };
67
- });
68
- var modalConfirm = Modal.confirm.bind(Modal);
69
- Modal.confirm = function (args) {
70
- return modalConfirm(_objectSpread({
71
- icon: /*#__PURE__*/_jsx(Tip, {
72
- type: "info"
73
- }),
74
- width: 400,
75
- title: '提示'
76
- }, args));
77
- };
78
- Modal.defaultProps = _objectSpread(_objectSpread({}, Modal.defaultProps), {}, {
79
- maskClosable: false,
80
- closeIcon: /*#__PURE__*/_jsx(CloseLight, {})
81
56
  });
82
57
  var node = /*#__PURE__*/_jsx(Down, {
83
58
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/kits",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@ant-design/icons": "^4.7.0",
26
- "@lemon-fe/components": "^1.1.6",
26
+ "@lemon-fe/components": "^1.1.8",
27
27
  "@lemon-fe/hooks": "^1.1.0",
28
28
  "@lemon-fe/utils": "^1.1.0",
29
29
  "antd": "4.24.8",
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "registry": "https://registry.npmjs.org"
46
46
  },
47
- "gitHead": "3452fd6674ba79f67ebc3c0b4da2d5154bdb33b0"
47
+ "gitHead": "c1976880d7e69d49e8b2416734ca3a4a137f535d"
48
48
  }