yootd 0.0.96 → 0.1.9-6.1
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/Preview/components/icons/AdaptIcon.js +2 -3
- package/dist/Preview/components/icons/MagnifyIcon.js +2 -3
- package/dist/Preview/components/icons/ResetIcon.js +2 -3
- package/dist/Preview/components/icons/ShrinkIcon.js +2 -3
- package/dist/Preview/components/reactflow/Controls.js +2 -3
- package/dist/Preview/index.js +2 -12
- package/dist/affix/index.d.ts +1 -3
- package/dist/affix/index.js +2 -3
- package/dist/alert/index.js +2 -3
- package/dist/anchor/index.js +5 -7
- package/dist/app/index.js +2 -3
- package/dist/approval-process/components/Avatar.js +2 -3
- package/dist/approval-process/components/BackOut.js +2 -3
- package/dist/approval-process/components/Failed.js +2 -3
- package/dist/approval-process/components/Pending.js +2 -3
- package/dist/approval-process/components/StartIcon.js +2 -3
- package/dist/approval-process/components/Success.js +2 -3
- package/dist/areas/index.js +1 -6
- package/dist/areas-treeSelect/index.js +7 -17
- package/dist/aside/components/AddBtnIcon.js +2 -3
- package/dist/aside/components/DelBtnIcon.js +2 -3
- package/dist/aside/components/DragBtnIcon.js +2 -3
- package/dist/aside/components/EditBtnIcon.js +2 -3
- package/dist/aside/components/SortableItem.js +2 -7
- package/dist/aside/index.js +2 -12
- package/dist/auto-complete/index.js +2 -3
- package/dist/avatar/index.d.ts +1 -1
- package/dist/avatar/index.js +2 -3
- package/dist/badge/index.d.ts +3 -2
- package/dist/badge/index.js +6 -7
- package/dist/breadcrumb/index.js +5 -6
- package/dist/buildings/index.js +2 -3
- package/dist/business-tree/components/dept.js +2 -2
- package/dist/business-tree/components/space.js +2 -3
- package/dist/business-tree/index.js +2 -3
- package/dist/button/index.js +5 -7
- package/dist/calendar/index.js +2 -3
- package/dist/card/index.js +2 -3
- package/dist/carousel/index.js +2 -3
- package/dist/cascader/index.d.ts +1 -1
- package/dist/cascader/index.js +7 -9
- package/dist/checkbox/index.d.ts +1 -1
- package/dist/checkbox/index.js +5 -6
- package/dist/collapse/index.js +2 -3
- package/dist/color-picker/index.js +2 -3
- package/dist/config-provider/context.d.ts +1 -1
- package/dist/config-provider/index.js +8 -10
- package/dist/courses/index.js +2 -3
- package/dist/date-interval/index.d.ts +1 -1
- package/dist/date-interval/index.js +11 -20
- package/dist/date-picker/index.js +2 -3
- package/dist/date-range/index.d.ts +1 -1
- package/dist/date-range/index.js +11 -22
- package/dist/department/index.js +2 -2
- package/dist/description/index.js +4 -6
- package/dist/dictionary/index.js +2 -3
- package/dist/divider/index.js +2 -3
- package/dist/drawer/index.js +2 -3
- package/dist/drawer-modal/index.js +4 -6
- package/dist/dropdown/index.js +3 -4
- package/dist/dropdown-select/assets/ArrowDown.js +2 -3
- package/dist/dropdown-select/index.js +5 -12
- package/dist/empty/index.js +6 -8
- package/dist/export/components/DownIcon.js +2 -3
- package/dist/export/components/UpIcon.js +2 -3
- package/dist/export/index.js +3 -9
- package/dist/flex/index.js +2 -3
- package/dist/float-button/index.js +5 -6
- package/dist/form/index.js +2 -3
- package/dist/go-back/components/GoBackIcon.js +2 -3
- package/dist/grid/index.js +3 -6
- package/dist/group-title/index.js +2 -3
- package/dist/holiday/index.js +2 -3
- package/dist/hooks/useBem.js +3 -7
- package/dist/hooks/useRequest.d.ts +1 -1
- package/dist/image/index.js +6 -13
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -2
- package/dist/input/index.js +9 -11
- package/dist/input-number/index.js +2 -3
- package/dist/job-title/index.js +2 -3
- package/dist/layout/index.js +2 -3
- package/dist/list/index.js +2 -3
- package/dist/mentions/index.js +2 -3
- package/dist/menu/index.js +7 -8
- package/dist/message/index.js +2 -3
- package/dist/modal/index.d.ts +1 -1
- package/dist/modal/index.js +15 -17
- package/dist/notification/index.js +2 -3
- package/dist/pagination/index.js +4 -5
- package/dist/pop-confirm/index.js +2 -3
- package/dist/popover/index.js +2 -3
- package/dist/progress/index.js +2 -3
- package/dist/qrcode/index.js +2 -3
- package/dist/radio/index.d.ts +1 -0
- package/dist/radio/index.js +3 -3
- package/dist/rate/index.js +2 -3
- package/dist/result/index.js +2 -3
- package/dist/role/index.js +2 -3
- package/dist/school/index.js +5 -15
- package/dist/segmented/index.js +2 -3
- package/dist/select/index.js +2 -3
- package/dist/skeleton/index.js +2 -3
- package/dist/slider/index.js +2 -3
- package/dist/space/index.js +2 -3
- package/dist/spin/index.js +2 -3
- package/dist/splitter/index.js +2 -3
- package/dist/state/index.js +2 -3
- package/dist/statistic/index.js +2 -3
- package/dist/steps/index.js +5 -7
- package/dist/student-dropdown/index.js +3 -9
- package/dist/switch/index.js +2 -3
- package/dist/table/components/icons/DownOutlined.js +2 -3
- package/dist/table/components/icons/DragHandler.js +2 -3
- package/dist/table/components/icons/SettingFilled.js +2 -3
- package/dist/table/components/icons/UpOutlined.js +2 -3
- package/dist/table/components/primary-header-row/index.js +3 -9
- package/dist/table/components/primary-tbody-row/index.js +3 -9
- package/dist/table/index.d.ts +2 -2
- package/dist/table/index.js +17 -25
- package/dist/tabs/index.js +8 -17
- package/dist/tag/index.js +5 -6
- package/dist/teacher/index.js +3 -9
- package/dist/time-picker/index.js +2 -3
- package/dist/timeline/index.js +2 -3
- package/dist/tooltip/index.js +2 -3
- package/dist/tour/index.js +2 -3
- package/dist/transfer/index.js +2 -3
- package/dist/tree/components/BedIcon.js +2 -3
- package/dist/tree/components/CampusIcon.js +2 -3
- package/dist/tree/components/DeptIcon.js +2 -3
- package/dist/tree/components/FloorIcon.js +2 -3
- package/dist/tree/components/RoomIcon.js +2 -3
- package/dist/tree/components/SchoolIcon.js +2 -3
- package/dist/tree/components/TierlIcon.js +2 -3
- package/dist/tree/index.js +8 -23
- package/dist/tree-select/index.js +2 -3
- package/dist/typography/index.js +2 -3
- package/dist/upload/components/AgainIcon.js +2 -3
- package/dist/upload/components/DeleteIcon.js +2 -3
- package/dist/upload/components/DeleteImage.js +2 -3
- package/dist/upload/components/SuccessIcon.js +2 -3
- package/dist/upload/components/UpLoadIconAdd.js +2 -3
- package/dist/upload/components/UploadIcon.js +2 -3
- package/dist/upload/components/fileUpload.d.ts +1 -1
- package/dist/upload/components/fileUpload.js +8 -23
- package/dist/upload/components/imageUpload.d.ts +1 -1
- package/dist/upload/components/imageUpload.js +10 -26
- package/dist/upload/index.d.ts +1 -1
- package/dist/upload/index.js +4 -6
- package/dist/user-dropdown/index.js +4 -15
- package/dist/utils/utils.js +1 -6
- package/dist/video-player/index.js +6 -16
- package/dist/watermark/index.js +2 -3
- package/dist/year-options/index.js +4 -6
- package/dist/year-term/index.js +3 -9
- package/dist/zones/index.js +3 -16
- package/package.json +20 -17
package/dist/cascader/index.js
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
import "
|
2
|
-
import
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
var _excluded = ["popupClassName"];
|
4
|
-
|
5
|
-
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; }
|
6
|
-
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; }
|
4
|
+
import { Cascader as AntCascader } from 'antd';
|
7
5
|
import React, { forwardRef } from 'react';
|
8
6
|
import { useBem } from "../hooks/useBem";
|
9
7
|
import "./index.scss";
|
@@ -11,7 +9,7 @@ var CascaderComponent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
11
9
|
var popupClassName = _ref.popupClassName,
|
12
10
|
rest = _objectWithoutProperties(_ref, _excluded);
|
13
11
|
var mb = useBem('cascader');
|
14
|
-
return /*#__PURE__*/React.createElement(
|
12
|
+
return /*#__PURE__*/React.createElement(AntCascader, _extends({
|
15
13
|
ref: ref
|
16
14
|
}, rest, {
|
17
15
|
popupClassName: "".concat(mb, " ").concat(popupClassName !== null && popupClassName !== void 0 ? popupClassName : '')
|
@@ -19,6 +17,6 @@ var CascaderComponent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
19
17
|
});
|
20
18
|
export var Cascader = CascaderComponent;
|
21
19
|
Cascader.displayName = 'Cascader';
|
22
|
-
Cascader.Panel =
|
23
|
-
Cascader.SHOW_CHILD =
|
24
|
-
Cascader.SHOW_PARENT =
|
20
|
+
Cascader.Panel = AntCascader.Panel;
|
21
|
+
Cascader.SHOW_CHILD = AntCascader.SHOW_CHILD;
|
22
|
+
Cascader.SHOW_PARENT = AntCascader.SHOW_PARENT;
|
package/dist/checkbox/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { CheckboxProps as AntCheckboxProps } from 'antd';
|
2
2
|
import { Checkbox as AntCheckBox } from 'antd';
|
3
|
-
import
|
3
|
+
import { CheckboxRef } from 'antd/es/checkbox';
|
4
4
|
import React from 'react';
|
5
5
|
export type CheckboxProps = AntCheckboxProps;
|
6
6
|
type AntCheckBoxType = typeof AntCheckBox;
|
package/dist/checkbox/index.js
CHANGED
@@ -1,14 +1,13 @@
|
|
1
|
-
import "
|
2
|
-
import
|
3
|
-
|
4
|
-
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
|
3
|
+
import { Checkbox as AntCheckBox } from 'antd';
|
5
4
|
import React, { forwardRef } from 'react';
|
6
5
|
export var CheckboxComponent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
7
6
|
var rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
8
|
-
return /*#__PURE__*/React.createElement(
|
7
|
+
return /*#__PURE__*/React.createElement(AntCheckBox, _extends({
|
9
8
|
ref: ref
|
10
9
|
}, rest));
|
11
10
|
});
|
12
11
|
export var Checkbox = CheckboxComponent;
|
13
12
|
Checkbox.displayName = 'Checkbox';
|
14
|
-
Checkbox.Group =
|
13
|
+
Checkbox.Group = AntCheckBox.Group;
|
package/dist/collapse/index.js
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
export var Collapse = _Collapse;
|
1
|
+
import { Collapse as AntCollapse } from 'antd';
|
2
|
+
export var Collapse = AntCollapse;
|
@@ -1,3 +1,2 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
export var ColorPicker = _ColorPicker;
|
1
|
+
import { ColorPicker as AntColorPicker } from 'antd';
|
2
|
+
export var ColorPicker = AntColorPicker;
|
@@ -1,9 +1,7 @@
|
|
1
|
-
import "
|
2
|
-
import
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
var _excluded = ["request", "baseURL", "assetsURL", "ossURL"];
|
4
|
-
|
5
|
-
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; }
|
6
|
-
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; }
|
4
|
+
import { ConfigProvider as AntConfigProvider } from 'antd';
|
7
5
|
import zhCN from 'antd/locale/zh_CN';
|
8
6
|
import React, { useEffect } from 'react';
|
9
7
|
import { ConfigContext } from "./context";
|
@@ -40,11 +38,11 @@ export var ConfigProvider = function ConfigProvider(_ref) {
|
|
40
38
|
ossURL: ossURL,
|
41
39
|
assetsURL: assetsURL
|
42
40
|
}
|
43
|
-
}, /*#__PURE__*/React.createElement(
|
41
|
+
}, /*#__PURE__*/React.createElement(AntConfigProvider, _extends({}, props, {
|
44
42
|
locale: zhCN
|
45
43
|
})));
|
46
44
|
};
|
47
|
-
ConfigProvider.ConfigContext =
|
48
|
-
ConfigProvider.SizeContext =
|
49
|
-
ConfigProvider.config =
|
50
|
-
ConfigProvider.useConfig =
|
45
|
+
ConfigProvider.ConfigContext = AntConfigProvider.ConfigContext;
|
46
|
+
ConfigProvider.SizeContext = AntConfigProvider.SizeContext;
|
47
|
+
ConfigProvider.config = AntConfigProvider.config;
|
48
|
+
ConfigProvider.useConfig = AntConfigProvider.useConfig;
|
package/dist/courses/index.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
1
3
|
var _excluded = ["placeholder", "showSearch"];
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
|
-
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; }
|
4
|
-
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; }
|
5
4
|
import { useQuery } from '@tanstack/react-query';
|
6
5
|
import React, { useMemo } from 'react';
|
7
6
|
import { Select } from "./..";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { DatePickerProps as AntdDatePickerProps } from 'antd/es/date-picker';
|
2
2
|
import dayjs from 'dayjs';
|
3
3
|
import { FC } from 'react';
|
4
4
|
type PickerType = 'time' | 'date' | 'week' | 'month' | 'quarter' | 'year';
|
@@ -1,17 +1,8 @@
|
|
1
|
-
import "
|
2
|
-
import
|
3
|
-
import "
|
4
|
-
import _DatePicker from "antd/es/date-picker";
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
5
4
|
var _excluded = ["defaultType", "options", "onChange", "value"];
|
6
|
-
|
7
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
8
|
-
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."); }
|
9
|
-
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); }
|
10
|
-
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; }
|
11
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
12
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
13
|
-
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; }
|
14
|
-
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; }
|
5
|
+
import { DatePicker as AntdDatePicker, Select } from 'antd';
|
15
6
|
import React, { useEffect, useMemo, useState } from 'react';
|
16
7
|
var defaultOptions = [{
|
17
8
|
label: '时间',
|
@@ -64,21 +55,21 @@ export var DateInterval = function DateInterval(_ref) {
|
|
64
55
|
};
|
65
56
|
var datePickerMap = useMemo(function () {
|
66
57
|
return {
|
67
|
-
time: /*#__PURE__*/React.createElement(
|
58
|
+
time: /*#__PURE__*/React.createElement(AntdDatePicker.TimePicker, _extends({}, props, {
|
68
59
|
value: date,
|
69
60
|
style: {
|
70
61
|
width: 180
|
71
62
|
},
|
72
63
|
onChange: onChangeTime
|
73
64
|
})),
|
74
|
-
date: /*#__PURE__*/React.createElement(
|
65
|
+
date: /*#__PURE__*/React.createElement(AntdDatePicker, _extends({}, props, {
|
75
66
|
value: date,
|
76
67
|
style: {
|
77
68
|
width: 180
|
78
69
|
},
|
79
70
|
onChange: onChangeDate
|
80
71
|
})),
|
81
|
-
week: /*#__PURE__*/React.createElement(
|
72
|
+
week: /*#__PURE__*/React.createElement(AntdDatePicker, _extends({
|
82
73
|
picker: "week"
|
83
74
|
}, props, {
|
84
75
|
value: date,
|
@@ -87,7 +78,7 @@ export var DateInterval = function DateInterval(_ref) {
|
|
87
78
|
},
|
88
79
|
onChange: onChangeDate
|
89
80
|
})),
|
90
|
-
month: /*#__PURE__*/React.createElement(
|
81
|
+
month: /*#__PURE__*/React.createElement(AntdDatePicker, _extends({
|
91
82
|
picker: "month"
|
92
83
|
}, props, {
|
93
84
|
value: date,
|
@@ -96,7 +87,7 @@ export var DateInterval = function DateInterval(_ref) {
|
|
96
87
|
},
|
97
88
|
onChange: onChangeDate
|
98
89
|
})),
|
99
|
-
quarter: /*#__PURE__*/React.createElement(
|
90
|
+
quarter: /*#__PURE__*/React.createElement(AntdDatePicker, _extends({
|
100
91
|
picker: "quarter"
|
101
92
|
}, props, {
|
102
93
|
value: date,
|
@@ -105,7 +96,7 @@ export var DateInterval = function DateInterval(_ref) {
|
|
105
96
|
},
|
106
97
|
onChange: onChangeDate
|
107
98
|
})),
|
108
|
-
year: /*#__PURE__*/React.createElement(
|
99
|
+
year: /*#__PURE__*/React.createElement(AntdDatePicker, _extends({
|
109
100
|
picker: "year"
|
110
101
|
}, props, {
|
111
102
|
value: date,
|
@@ -137,7 +128,7 @@ export var DateInterval = function DateInterval(_ref) {
|
|
137
128
|
setDate(undefined);
|
138
129
|
}
|
139
130
|
}, [value, options]);
|
140
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(
|
131
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
|
141
132
|
value: type,
|
142
133
|
style: {
|
143
134
|
width: 92
|
@@ -1,3 +1,2 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
export var DatePicker = _DatePicker;
|
1
|
+
import { DatePicker as AntDatePicker } from 'antd';
|
2
|
+
export var DatePicker = AntDatePicker;
|
package/dist/date-range/index.js
CHANGED
@@ -1,19 +1,8 @@
|
|
1
|
-
import "
|
2
|
-
import
|
3
|
-
import "
|
4
|
-
import _DatePicker from "antd/es/date-picker";
|
5
|
-
import "antd/es/time-picker/style";
|
6
|
-
import _TimePicker from "antd/es/time-picker";
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
7
4
|
var _excluded = ["defaultType", "options", "value", "onChange"];
|
8
|
-
|
9
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
10
|
-
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."); }
|
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
|
-
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; }
|
13
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
14
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
15
|
-
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; }
|
16
|
-
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; }
|
5
|
+
import { DatePicker, Select, TimePicker } from 'antd';
|
17
6
|
import React, { useEffect, useMemo, useState } from 'react';
|
18
7
|
var defaultOptions = [{
|
19
8
|
label: '时间',
|
@@ -59,21 +48,21 @@ export var DateRange = function DateRange(_ref) {
|
|
59
48
|
};
|
60
49
|
var datePickerMap = useMemo(function () {
|
61
50
|
return {
|
62
|
-
time: /*#__PURE__*/React.createElement(
|
51
|
+
time: /*#__PURE__*/React.createElement(TimePicker.RangePicker, _extends({}, props, {
|
63
52
|
value: dates,
|
64
53
|
style: {
|
65
54
|
width: 244
|
66
55
|
},
|
67
56
|
onChange: onChangeDate
|
68
57
|
})),
|
69
|
-
date: /*#__PURE__*/React.createElement(
|
58
|
+
date: /*#__PURE__*/React.createElement(DatePicker.RangePicker, _extends({}, props, {
|
70
59
|
value: dates,
|
71
60
|
style: {
|
72
61
|
width: 244
|
73
62
|
},
|
74
63
|
onChange: onChangeDate
|
75
64
|
})),
|
76
|
-
week: /*#__PURE__*/React.createElement(
|
65
|
+
week: /*#__PURE__*/React.createElement(DatePicker.RangePicker, _extends({
|
77
66
|
picker: "week"
|
78
67
|
}, props, {
|
79
68
|
value: dates,
|
@@ -82,7 +71,7 @@ export var DateRange = function DateRange(_ref) {
|
|
82
71
|
},
|
83
72
|
onChange: onChangeDate
|
84
73
|
})),
|
85
|
-
month: /*#__PURE__*/React.createElement(
|
74
|
+
month: /*#__PURE__*/React.createElement(DatePicker.RangePicker, _extends({
|
86
75
|
picker: "month"
|
87
76
|
}, props, {
|
88
77
|
value: dates,
|
@@ -91,7 +80,7 @@ export var DateRange = function DateRange(_ref) {
|
|
91
80
|
},
|
92
81
|
onChange: onChangeDate
|
93
82
|
})),
|
94
|
-
quarter: /*#__PURE__*/React.createElement(
|
83
|
+
quarter: /*#__PURE__*/React.createElement(DatePicker.RangePicker, _extends({
|
95
84
|
picker: "quarter"
|
96
85
|
}, props, {
|
97
86
|
style: {
|
@@ -100,7 +89,7 @@ export var DateRange = function DateRange(_ref) {
|
|
100
89
|
onChange: onChangeDate,
|
101
90
|
value: dates
|
102
91
|
})),
|
103
|
-
year: /*#__PURE__*/React.createElement(
|
92
|
+
year: /*#__PURE__*/React.createElement(DatePicker.RangePicker, _extends({
|
104
93
|
picker: "year"
|
105
94
|
}, props, {
|
106
95
|
value: dates,
|
@@ -132,7 +121,7 @@ export var DateRange = function DateRange(_ref) {
|
|
132
121
|
setDates(undefined);
|
133
122
|
}
|
134
123
|
}, [value, options]);
|
135
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(
|
124
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
|
136
125
|
value: type,
|
137
126
|
style: {
|
138
127
|
width: 92
|
package/dist/department/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
|
3
3
|
import { useQuery } from '@tanstack/react-query';
|
4
4
|
import React, { useMemo } from 'react';
|
5
5
|
import { TreeSelect } from "./..";
|
@@ -1,9 +1,7 @@
|
|
1
|
-
import "
|
2
|
-
import
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
var _excluded = ["className"];
|
4
|
-
|
5
|
-
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; }
|
6
|
-
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; }
|
4
|
+
import { Descriptions as AntDescriptions } from 'antd';
|
7
5
|
import React from 'react';
|
8
6
|
import { useBem } from "../hooks/useBem";
|
9
7
|
import "./index.scss";
|
@@ -11,7 +9,7 @@ export var Descriptions = function Descriptions(_ref) {
|
|
11
9
|
var className = _ref.className,
|
12
10
|
rest = _objectWithoutProperties(_ref, _excluded);
|
13
11
|
var mb = useBem('descriptions');
|
14
|
-
return /*#__PURE__*/React.createElement(
|
12
|
+
return /*#__PURE__*/React.createElement(AntDescriptions, _extends({
|
15
13
|
className: "".concat(mb.b('content'), " ").concat(className)
|
16
14
|
}, rest));
|
17
15
|
};
|
package/dist/dictionary/index.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
1
3
|
var _excluded = ["dictType", "showSearch", "style"];
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
|
-
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; }
|
4
|
-
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; }
|
5
4
|
import { useQuery } from '@tanstack/react-query';
|
6
5
|
import React, { useMemo } from 'react';
|
7
6
|
import { Select } from "./..";
|
package/dist/divider/index.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import _Divider from "antd/es/divider";
|
1
|
+
import { Divider as AntDivider } from 'antd';
|
3
2
|
import React from 'react';
|
4
3
|
export var Divider = function Divider(props) {
|
5
|
-
return /*#__PURE__*/React.createElement(
|
4
|
+
return /*#__PURE__*/React.createElement(AntDivider, props);
|
6
5
|
};
|
package/dist/drawer/index.js
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
export var Drawer = _Drawer;
|
1
|
+
import { Drawer as AntDrawer } from 'antd';
|
2
|
+
export var Drawer = AntDrawer;
|
@@ -1,9 +1,7 @@
|
|
1
|
-
import "
|
2
|
-
import
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
var _excluded = ["rootClassName", "onClose", "onConfirm", "extra", "footer"];
|
4
|
-
|
5
|
-
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; }
|
6
|
-
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; }
|
4
|
+
import { Drawer as AntDrawer } from 'antd';
|
7
5
|
import React from 'react';
|
8
6
|
import { Button } from "./..";
|
9
7
|
import { CloseOutlined } from "./components/CloseOutlined";
|
@@ -17,7 +15,7 @@ export var DrawerModal = function DrawerModal(_ref) {
|
|
17
15
|
footer = _ref.footer,
|
18
16
|
rest = _objectWithoutProperties(_ref, _excluded);
|
19
17
|
var mb = useBem('drawer');
|
20
|
-
return /*#__PURE__*/React.createElement(
|
18
|
+
return /*#__PURE__*/React.createElement(AntDrawer, _extends({
|
21
19
|
rootClassName: "".concat(rootClassName !== null && rootClassName !== void 0 ? rootClassName : '', " ").concat(mb),
|
22
20
|
extra: extra != null ? extra : /*#__PURE__*/React.createElement(CloseOutlined, {
|
23
21
|
onClick: onClose,
|
package/dist/dropdown/index.js
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
import
|
2
|
-
import _Dropdown from "antd/es/dropdown";
|
1
|
+
import { Dropdown as AntDropdown } from 'antd';
|
3
2
|
import React from 'react';
|
4
3
|
export var DropdownComponent = function DropdownComponent(props) {
|
5
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
4
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AntDropdown, props));
|
6
5
|
};
|
7
6
|
export var Dropdown = DropdownComponent;
|
8
|
-
Dropdown.Button =
|
7
|
+
Dropdown.Button = AntDropdown.Button;
|
@@ -1,7 +1,6 @@
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
1
3
|
var _excluded = ["style", "className"];
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
|
-
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; }
|
4
|
-
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; }
|
5
4
|
import React, { forwardRef } from 'react';
|
6
5
|
export var ArrowDown = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
7
6
|
var style = _ref.style,
|
@@ -1,15 +1,8 @@
|
|
1
|
-
import "
|
2
|
-
import
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
4
|
var _excluded = ["items", "arrow", "defaultValue", "onChange"];
|
4
|
-
|
5
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
6
|
-
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."); }
|
7
|
-
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); }
|
8
|
-
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; }
|
9
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
10
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
11
|
-
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; }
|
12
|
-
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; }
|
5
|
+
import { Dropdown } from 'antd';
|
13
6
|
import React, { useEffect, useState } from 'react';
|
14
7
|
import { useBem } from "../hooks/useBem";
|
15
8
|
import { ArrowDown } from "./assets/ArrowDown";
|
@@ -46,7 +39,7 @@ export var DropdownSelect = function DropdownSelect(_ref) {
|
|
46
39
|
setSelected(key);
|
47
40
|
onChange === null || onChange === void 0 || onChange(key);
|
48
41
|
};
|
49
|
-
return /*#__PURE__*/React.createElement(
|
42
|
+
return /*#__PURE__*/React.createElement(Dropdown.Button, _extends({
|
50
43
|
menu: {
|
51
44
|
items: items,
|
52
45
|
onClick: onClick
|
package/dist/empty/index.js
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
import "
|
2
|
-
import
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
var _excluded = ["type", "description", "className"];
|
4
|
-
|
5
|
-
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; }
|
6
|
-
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; }
|
4
|
+
import { Empty as AntEmpty } from 'antd';
|
7
5
|
import React, { useMemo } from 'react';
|
8
6
|
import { useBem } from "../hooks/useBem";
|
9
7
|
import "./index.scss";
|
@@ -127,7 +125,7 @@ var EmptyComponent = function EmptyComponent(_ref) {
|
|
127
125
|
}, "\u63D0\u4EA4\u5931\u8D25\uFF0C\u8BF7\u8FD4\u56DE\u4E0A\u4E00\u9875"))
|
128
126
|
};
|
129
127
|
}, []);
|
130
|
-
return /*#__PURE__*/React.createElement(
|
128
|
+
return /*#__PURE__*/React.createElement(AntEmpty, _extends({
|
131
129
|
className: "".concat(className, " ").concat(mb),
|
132
130
|
image: /*#__PURE__*/React.createElement("img", {
|
133
131
|
src: imageMap[type]
|
@@ -136,5 +134,5 @@ var EmptyComponent = function EmptyComponent(_ref) {
|
|
136
134
|
}, props));
|
137
135
|
};
|
138
136
|
export var Empty = EmptyComponent;
|
139
|
-
Empty.PRESENTED_IMAGE_DEFAULT =
|
140
|
-
Empty.PRESENTED_IMAGE_SIMPLE =
|
137
|
+
Empty.PRESENTED_IMAGE_DEFAULT = AntEmpty.PRESENTED_IMAGE_DEFAULT;
|
138
|
+
Empty.PRESENTED_IMAGE_SIMPLE = AntEmpty.PRESENTED_IMAGE_SIMPLE;
|
@@ -1,7 +1,6 @@
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
1
3
|
var _excluded = ["style", "className"];
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
|
-
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; }
|
4
|
-
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; }
|
5
4
|
import React, { forwardRef } from 'react';
|
6
5
|
export var DownIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
7
6
|
var style = _ref.style,
|
@@ -1,7 +1,6 @@
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
1
3
|
var _excluded = ["style", "className"];
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
|
-
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; }
|
4
|
-
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; }
|
5
4
|
import React, { forwardRef } from 'react';
|
6
5
|
export var UpIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
7
6
|
var style = _ref.style,
|
package/dist/export/index.js
CHANGED
@@ -1,11 +1,5 @@
|
|
1
|
-
import "
|
2
|
-
import
|
3
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
4
|
-
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."); }
|
5
|
-
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); }
|
6
|
-
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; }
|
7
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
8
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
2
|
+
import { Dropdown } from 'antd';
|
9
3
|
import React, { useState } from 'react';
|
10
4
|
import { useBem } from "../hooks/useBem";
|
11
5
|
import "./index.scss";
|
@@ -29,7 +23,7 @@ export var Export = function Export(_ref) {
|
|
29
23
|
var menuProps = {
|
30
24
|
items: items
|
31
25
|
};
|
32
|
-
return /*#__PURE__*/React.createElement(
|
26
|
+
return /*#__PURE__*/React.createElement(Dropdown.Button, {
|
33
27
|
menu: menuProps,
|
34
28
|
icon: open ? /*#__PURE__*/React.createElement(UpIcon, null) : /*#__PURE__*/React.createElement(DownIcon, null),
|
35
29
|
overlayClassName: "".concat(mb),
|
package/dist/flex/index.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import _Flex from "antd/es/flex";
|
1
|
+
import { Flex as AntFlex } from 'antd';
|
3
2
|
import React from 'react';
|
4
3
|
export var Flex = function Flex(props) {
|
5
|
-
return /*#__PURE__*/React.createElement(
|
4
|
+
return /*#__PURE__*/React.createElement(AntFlex, props);
|
6
5
|
};
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import "
|
2
|
-
import
|
3
|
-
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
1
|
+
import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
|
2
|
+
import { FloatButton as AntFloatButton } from 'antd';
|
4
3
|
import React from 'react';
|
5
4
|
var FloatButtonComponent = function FloatButtonComponent(_ref) {
|
6
5
|
var rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
7
|
-
return /*#__PURE__*/React.createElement(
|
6
|
+
return /*#__PURE__*/React.createElement(AntFloatButton, rest);
|
8
7
|
};
|
9
8
|
export var FloatButton = FloatButtonComponent;
|
10
|
-
FloatButton.Group =
|
11
|
-
FloatButton.BackTop =
|
9
|
+
FloatButton.Group = AntFloatButton.Group;
|
10
|
+
FloatButton.BackTop = AntFloatButton.BackTop;
|
package/dist/form/index.js
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
export var Form = _Form;
|
1
|
+
import { Form as AntForm } from 'antd';
|
2
|
+
export var Form = AntForm;
|
@@ -1,7 +1,6 @@
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
1
3
|
var _excluded = ["style", "className"];
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
|
-
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; }
|
4
|
-
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; }
|
5
4
|
import React, { forwardRef } from 'react';
|
6
5
|
import { useBem } from "../../hooks/useBem";
|
7
6
|
import "./index.scss";
|