wargerm 0.7.29 → 0.7.31
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.
@@ -30,6 +30,10 @@ export declare function initCalendar(date?: Dayjs): {
|
|
30
30
|
isCurrentMonth: boolean;
|
31
31
|
isCurrentDay: boolean;
|
32
32
|
}[];
|
33
|
+
/**
|
34
|
+
* 初始化日历 自定义前缀
|
35
|
+
*/
|
36
|
+
export declare function initCustomPrefixCalendar(date?: Dayjs, content?: any): any[];
|
33
37
|
/**
|
34
38
|
* 初始化日历
|
35
39
|
*/
|
package/dist/index.esm.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import 'antd/dist/reset.css';
|
2
2
|
import React, { useRef, useEffect, useMemo, useState, useCallback, useImperativeHandle, memo, forwardRef, createRef } from 'react';
|
3
|
-
import { cloneDeep, uniqBy, isEmpty } from 'lodash-es';
|
3
|
+
import { cloneDeep, uniqBy, chunk, isEmpty } from 'lodash-es';
|
4
4
|
import { useSyncExternalStore } from 'use-sync-external-store/shim';
|
5
5
|
import { Menu, Dropdown, Button, Input, Upload as Upload$1, Modal as Modal$2, message, InputNumber, DatePicker, Radio, Space, Checkbox, Select, Switch, Tooltip, TreeSelect as TreeSelect$1, Cascader, Form, Row, Col, Spin, Pagination, Breadcrumb, ConfigProvider, notification } from 'antd';
|
6
6
|
import { createFromIconfontCN, PlusOutlined, CloseCircleOutlined, SearchOutlined, ReloadOutlined, EllipsisOutlined, ExclamationCircleOutlined, EyeOutlined, EditOutlined, DeleteOutlined, LeftOutlined, RightOutlined, CloseOutlined } from '@ant-design/icons';
|
@@ -433,7 +433,13 @@ var EventEmitter = /*#__PURE__*/_createClass(function EventEmitter() {
|
|
433
433
|
}
|
434
434
|
}
|
435
435
|
|
436
|
-
_this.subscriptions.
|
436
|
+
if (_this.subscriptions.has(event)) {
|
437
|
+
var _this$subscriptions$g;
|
438
|
+
|
439
|
+
(_this$subscriptions$g = _this.subscriptions.get(event)) === null || _this$subscriptions$g === void 0 ? void 0 : _this$subscriptions$g.push(subscription);
|
440
|
+
} else {
|
441
|
+
_this.subscriptions.set(event, [subscription]);
|
442
|
+
}
|
437
443
|
|
438
444
|
return function () {
|
439
445
|
_this.subscriptions.delete(event);
|
@@ -445,14 +451,19 @@ var EventEmitter = /*#__PURE__*/_createClass(function EventEmitter() {
|
|
445
451
|
if (typeof event === 'string' || typeof event === 'number') {
|
446
452
|
var subscriptionValuesCallback = _this.subscriptions.get(event);
|
447
453
|
|
448
|
-
|
449
|
-
args
|
450
|
-
|
454
|
+
if (subscriptionValuesCallback) {
|
455
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
456
|
+
args[_key - 1] = arguments[_key];
|
457
|
+
}
|
451
458
|
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
459
|
+
for (var i = 0; i < subscriptionValuesCallback.length; i++) {
|
460
|
+
var item = subscriptionValuesCallback[i];
|
461
|
+
item === null || item === void 0 ? void 0 : item({
|
462
|
+
event: event,
|
463
|
+
params: cloneDeep(args)
|
464
|
+
});
|
465
|
+
}
|
466
|
+
}
|
456
467
|
} else throw new TypeError('event must be string or number !');
|
457
468
|
};
|
458
469
|
|
@@ -7934,6 +7945,73 @@ function initCalendar(date) {
|
|
7934
7945
|
|
7935
7946
|
return [].concat(_toConsumableArray(lastDays.reverse()), currentDays, nextDays);
|
7936
7947
|
}
|
7948
|
+
/**
|
7949
|
+
* 初始化日历 自定义前缀
|
7950
|
+
*/
|
7951
|
+
|
7952
|
+
function initCustomPrefixCalendar(date, content) {
|
7953
|
+
// 当前月天数
|
7954
|
+
var totalDaysInMonth = getMonthDays(date); // 上个月天数
|
7955
|
+
|
7956
|
+
var totalDaysInLastMonth = getMonthDays(getLastMonth(date)); // 下个月开始日期
|
7957
|
+
|
7958
|
+
var nextFirstDate = 1;
|
7959
|
+
var lastDays = [],
|
7960
|
+
currentDays = [],
|
7961
|
+
nextDays = []; // 当前月第一天是星期几(索引值)
|
7962
|
+
|
7963
|
+
/**
|
7964
|
+
* 这里的索引值刚刚好是需要填充的上月的天数
|
7965
|
+
*/
|
7966
|
+
|
7967
|
+
var currentWeekDay = getWeekDays(date);
|
7968
|
+
|
7969
|
+
for (var i = 0, len = 42; i < len; i++) {
|
7970
|
+
// 填充上个月的天数
|
7971
|
+
if (i < currentWeekDay) {
|
7972
|
+
// lastDays.push(totalDaysInLastMonth);
|
7973
|
+
var daySting = dayjs(dayjs(date).subtract(1, 'month').format(YEAER_MONTH_FORMAT_EN) + '-' + totalDaysInLastMonth).format('YYYY-MM-DD');
|
7974
|
+
lastDays.push({
|
7975
|
+
date: daySting,
|
7976
|
+
text: formatDayWithTwoWords(totalDaysInLastMonth),
|
7977
|
+
isCurrentMonth: false,
|
7978
|
+
isCurrentDay: dayjs().format('YYYY-MM-DD') == daySting
|
7979
|
+
});
|
7980
|
+
totalDaysInLastMonth--;
|
7981
|
+
} // 填充下个月的天数
|
7982
|
+
else if (i >= totalDaysInMonth + currentWeekDay) {
|
7983
|
+
// nextDays.push(nextFirstDate);
|
7984
|
+
var _daySting3 = dayjs(dayjs(date).add(1, 'month').format(YEAER_MONTH_FORMAT_EN) + '-' + nextFirstDate).format('YYYY-MM-DD');
|
7985
|
+
|
7986
|
+
nextDays.push({
|
7987
|
+
date: _daySting3,
|
7988
|
+
text: formatDayWithTwoWords(nextFirstDate),
|
7989
|
+
isCurrentMonth: false,
|
7990
|
+
isCurrentDay: dayjs().format('YYYY-MM-DD') == _daySting3
|
7991
|
+
});
|
7992
|
+
nextFirstDate++;
|
7993
|
+
} // 填充当前月天数
|
7994
|
+
else {
|
7995
|
+
// currentDays.push(i - currentWeekDay + 1);
|
7996
|
+
var _daySting4 = dayjs(dayjs(date).format(YEAER_MONTH_FORMAT_EN) + '-' + (i - currentWeekDay + 1)).format('YYYY-MM-DD');
|
7997
|
+
|
7998
|
+
currentDays.push({
|
7999
|
+
date: _daySting4,
|
8000
|
+
text: formatDayWithTwoWords(i - currentWeekDay + 1),
|
8001
|
+
isCurrentMonth: true,
|
8002
|
+
isCurrentDay: dayjs().format('YYYY-MM-DD') == _daySting4
|
8003
|
+
});
|
8004
|
+
}
|
8005
|
+
} // 上个月需要倒序显示
|
8006
|
+
|
8007
|
+
|
8008
|
+
var dayArr = [].concat(_toConsumableArray(lastDays.reverse()), currentDays, nextDays);
|
8009
|
+
return chunk(dayArr, 7).map(function (day) {
|
8010
|
+
return [{
|
8011
|
+
content: content
|
8012
|
+
}].concat(_toConsumableArray(day));
|
8013
|
+
}).flat();
|
8014
|
+
}
|
7937
8015
|
/**
|
7938
8016
|
* 初始化日历
|
7939
8017
|
*/
|
@@ -7975,7 +8053,8 @@ function Calendar(_ref, ref) {
|
|
7975
8053
|
onCell = _ref.onCell,
|
7976
8054
|
calendarBodyClassName = _ref.calendarBodyClassName,
|
7977
8055
|
hiddenWeekLabel = _ref.hiddenWeekLabel,
|
7978
|
-
dateString = _ref.dateString
|
8056
|
+
dateString = _ref.dateString,
|
8057
|
+
customPrefix = _ref.customPrefix;
|
7979
8058
|
|
7980
8059
|
var _useState = useState(initCalendar()),
|
7981
8060
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -7992,7 +8071,8 @@ function Calendar(_ref, ref) {
|
|
7992
8071
|
oneWeekDays = _useState6[0],
|
7993
8072
|
setOneWeekDays = _useState6[1];
|
7994
8073
|
|
7995
|
-
var
|
8074
|
+
var customHeader = customPrefix ? [customPrefix.header] : [];
|
8075
|
+
var weekLabelArray = [].concat(customHeader, ['周一', '周二', '周三', '周四', '周五', '周六', '周日']);
|
7996
8076
|
|
7997
8077
|
var getweekDay = function getweekDay(date) {
|
7998
8078
|
var index = dayjs(date).day();
|
@@ -8009,14 +8089,14 @@ function Calendar(_ref, ref) {
|
|
8009
8089
|
if (type == 'day') {
|
8010
8090
|
setOneWeekDays(['时间'].concat(_toConsumableArray(getweekDay(datevalue))));
|
8011
8091
|
} else {
|
8012
|
-
setOneWeekDays(getWeekList(datevalue));
|
8092
|
+
setOneWeekDays(_toConsumableArray(getWeekList(datevalue)));
|
8013
8093
|
}
|
8014
8094
|
|
8015
8095
|
setDays(initWeekCalendar(type, datevalue));
|
8016
8096
|
} else {
|
8017
|
-
setDays(initCalendar(dateString || datevalue));
|
8097
|
+
setDays((customPrefix === null || customPrefix === void 0 ? void 0 : customPrefix.content) ? initCustomPrefixCalendar(dateString || datevalue, customPrefix === null || customPrefix === void 0 ? void 0 : customPrefix.content) : initCalendar(dateString || datevalue));
|
8018
8098
|
}
|
8019
|
-
}, [type, datevalue, dateString]);
|
8099
|
+
}, [type, datevalue, dateString, customPrefix]);
|
8020
8100
|
useEffect(function () {
|
8021
8101
|
setDatevalue(value || dayjs());
|
8022
8102
|
}, [value]);
|
@@ -8161,14 +8241,20 @@ function Calendar(_ref, ref) {
|
|
8161
8241
|
key: index
|
8162
8242
|
}, dateCellRender ? dateCellRender(day) : day.text) : null;
|
8163
8243
|
}))) : /*#__PURE__*/React.createElement(React.Fragment, null, !hiddenWeekLabel && /*#__PURE__*/React.createElement("div", {
|
8164
|
-
className: "calendar_header_wrapper"
|
8244
|
+
className: "calendar_header_wrapper",
|
8245
|
+
style: {
|
8246
|
+
gridTemplateColumns: "repeat(".concat(weekLabelArray.length, ", 1fr)")
|
8247
|
+
}
|
8165
8248
|
}, weekLabelArray.map(function (weekLabel) {
|
8166
8249
|
return /*#__PURE__*/React.createElement("div", {
|
8167
8250
|
key: weekLabel,
|
8168
8251
|
className: "flex ai-c jc-c"
|
8169
8252
|
}, weekLabel);
|
8170
8253
|
})), /*#__PURE__*/React.createElement("div", {
|
8171
|
-
className: "content_wrapper ".concat(calendarBodyClassName)
|
8254
|
+
className: "content_wrapper ".concat(calendarBodyClassName),
|
8255
|
+
style: {
|
8256
|
+
gridTemplateColumns: "repeat(".concat(weekLabelArray.length, ", 1fr)")
|
8257
|
+
}
|
8172
8258
|
}, days === null || days === void 0 ? void 0 : days.map(function (day, index) {
|
8173
8259
|
return /*#__PURE__*/React.createElement("div", {
|
8174
8260
|
onClick: function onClick() {
|
@@ -8176,7 +8262,7 @@ function Calendar(_ref, ref) {
|
|
8176
8262
|
},
|
8177
8263
|
className: "day_container ".concat(day.isCurrentDay ? 'isCurrentDay' : '', " ").concat(day.isCurrentMonth ? 'isCurrentMonth' : ''),
|
8178
8264
|
key: index
|
8179
|
-
}, dateCellRender ? dateCellRender(day) : day.text);
|
8265
|
+
}, (day === null || day === void 0 ? void 0 : day.content) ? day.content : dateCellRender ? dateCellRender(day) : day.text);
|
8180
8266
|
})))));
|
8181
8267
|
}
|
8182
8268
|
|
package/dist/index.js
CHANGED
@@ -477,7 +477,13 @@ var EventEmitter = /*#__PURE__*/_createClass(function EventEmitter() {
|
|
477
477
|
}
|
478
478
|
}
|
479
479
|
|
480
|
-
_this.subscriptions.
|
480
|
+
if (_this.subscriptions.has(event)) {
|
481
|
+
var _this$subscriptions$g;
|
482
|
+
|
483
|
+
(_this$subscriptions$g = _this.subscriptions.get(event)) === null || _this$subscriptions$g === void 0 ? void 0 : _this$subscriptions$g.push(subscription);
|
484
|
+
} else {
|
485
|
+
_this.subscriptions.set(event, [subscription]);
|
486
|
+
}
|
481
487
|
|
482
488
|
return function () {
|
483
489
|
_this.subscriptions.delete(event);
|
@@ -489,14 +495,19 @@ var EventEmitter = /*#__PURE__*/_createClass(function EventEmitter() {
|
|
489
495
|
if (typeof event === 'string' || typeof event === 'number') {
|
490
496
|
var subscriptionValuesCallback = _this.subscriptions.get(event);
|
491
497
|
|
492
|
-
|
493
|
-
args
|
494
|
-
|
498
|
+
if (subscriptionValuesCallback) {
|
499
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
500
|
+
args[_key - 1] = arguments[_key];
|
501
|
+
}
|
495
502
|
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
503
|
+
for (var i = 0; i < subscriptionValuesCallback.length; i++) {
|
504
|
+
var item = subscriptionValuesCallback[i];
|
505
|
+
item === null || item === void 0 ? void 0 : item({
|
506
|
+
event: event,
|
507
|
+
params: lodashEs.cloneDeep(args)
|
508
|
+
});
|
509
|
+
}
|
510
|
+
}
|
500
511
|
} else throw new TypeError('event must be string or number !');
|
501
512
|
};
|
502
513
|
|
@@ -7978,6 +7989,73 @@ function initCalendar(date) {
|
|
7978
7989
|
|
7979
7990
|
return [].concat(_toConsumableArray(lastDays.reverse()), currentDays, nextDays);
|
7980
7991
|
}
|
7992
|
+
/**
|
7993
|
+
* 初始化日历 自定义前缀
|
7994
|
+
*/
|
7995
|
+
|
7996
|
+
function initCustomPrefixCalendar(date, content) {
|
7997
|
+
// 当前月天数
|
7998
|
+
var totalDaysInMonth = getMonthDays(date); // 上个月天数
|
7999
|
+
|
8000
|
+
var totalDaysInLastMonth = getMonthDays(getLastMonth(date)); // 下个月开始日期
|
8001
|
+
|
8002
|
+
var nextFirstDate = 1;
|
8003
|
+
var lastDays = [],
|
8004
|
+
currentDays = [],
|
8005
|
+
nextDays = []; // 当前月第一天是星期几(索引值)
|
8006
|
+
|
8007
|
+
/**
|
8008
|
+
* 这里的索引值刚刚好是需要填充的上月的天数
|
8009
|
+
*/
|
8010
|
+
|
8011
|
+
var currentWeekDay = getWeekDays(date);
|
8012
|
+
|
8013
|
+
for (var i = 0, len = 42; i < len; i++) {
|
8014
|
+
// 填充上个月的天数
|
8015
|
+
if (i < currentWeekDay) {
|
8016
|
+
// lastDays.push(totalDaysInLastMonth);
|
8017
|
+
var daySting = dayjs__default['default'](dayjs__default['default'](date).subtract(1, 'month').format(YEAER_MONTH_FORMAT_EN) + '-' + totalDaysInLastMonth).format('YYYY-MM-DD');
|
8018
|
+
lastDays.push({
|
8019
|
+
date: daySting,
|
8020
|
+
text: formatDayWithTwoWords(totalDaysInLastMonth),
|
8021
|
+
isCurrentMonth: false,
|
8022
|
+
isCurrentDay: dayjs__default['default']().format('YYYY-MM-DD') == daySting
|
8023
|
+
});
|
8024
|
+
totalDaysInLastMonth--;
|
8025
|
+
} // 填充下个月的天数
|
8026
|
+
else if (i >= totalDaysInMonth + currentWeekDay) {
|
8027
|
+
// nextDays.push(nextFirstDate);
|
8028
|
+
var _daySting3 = dayjs__default['default'](dayjs__default['default'](date).add(1, 'month').format(YEAER_MONTH_FORMAT_EN) + '-' + nextFirstDate).format('YYYY-MM-DD');
|
8029
|
+
|
8030
|
+
nextDays.push({
|
8031
|
+
date: _daySting3,
|
8032
|
+
text: formatDayWithTwoWords(nextFirstDate),
|
8033
|
+
isCurrentMonth: false,
|
8034
|
+
isCurrentDay: dayjs__default['default']().format('YYYY-MM-DD') == _daySting3
|
8035
|
+
});
|
8036
|
+
nextFirstDate++;
|
8037
|
+
} // 填充当前月天数
|
8038
|
+
else {
|
8039
|
+
// currentDays.push(i - currentWeekDay + 1);
|
8040
|
+
var _daySting4 = dayjs__default['default'](dayjs__default['default'](date).format(YEAER_MONTH_FORMAT_EN) + '-' + (i - currentWeekDay + 1)).format('YYYY-MM-DD');
|
8041
|
+
|
8042
|
+
currentDays.push({
|
8043
|
+
date: _daySting4,
|
8044
|
+
text: formatDayWithTwoWords(i - currentWeekDay + 1),
|
8045
|
+
isCurrentMonth: true,
|
8046
|
+
isCurrentDay: dayjs__default['default']().format('YYYY-MM-DD') == _daySting4
|
8047
|
+
});
|
8048
|
+
}
|
8049
|
+
} // 上个月需要倒序显示
|
8050
|
+
|
8051
|
+
|
8052
|
+
var dayArr = [].concat(_toConsumableArray(lastDays.reverse()), currentDays, nextDays);
|
8053
|
+
return lodashEs.chunk(dayArr, 7).map(function (day) {
|
8054
|
+
return [{
|
8055
|
+
content: content
|
8056
|
+
}].concat(_toConsumableArray(day));
|
8057
|
+
}).flat();
|
8058
|
+
}
|
7981
8059
|
/**
|
7982
8060
|
* 初始化日历
|
7983
8061
|
*/
|
@@ -8019,7 +8097,8 @@ function Calendar(_ref, ref) {
|
|
8019
8097
|
onCell = _ref.onCell,
|
8020
8098
|
calendarBodyClassName = _ref.calendarBodyClassName,
|
8021
8099
|
hiddenWeekLabel = _ref.hiddenWeekLabel,
|
8022
|
-
dateString = _ref.dateString
|
8100
|
+
dateString = _ref.dateString,
|
8101
|
+
customPrefix = _ref.customPrefix;
|
8023
8102
|
|
8024
8103
|
var _useState = React.useState(initCalendar()),
|
8025
8104
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -8036,7 +8115,8 @@ function Calendar(_ref, ref) {
|
|
8036
8115
|
oneWeekDays = _useState6[0],
|
8037
8116
|
setOneWeekDays = _useState6[1];
|
8038
8117
|
|
8039
|
-
var
|
8118
|
+
var customHeader = customPrefix ? [customPrefix.header] : [];
|
8119
|
+
var weekLabelArray = [].concat(customHeader, ['周一', '周二', '周三', '周四', '周五', '周六', '周日']);
|
8040
8120
|
|
8041
8121
|
var getweekDay = function getweekDay(date) {
|
8042
8122
|
var index = dayjs__default['default'](date).day();
|
@@ -8053,14 +8133,14 @@ function Calendar(_ref, ref) {
|
|
8053
8133
|
if (type == 'day') {
|
8054
8134
|
setOneWeekDays(['时间'].concat(_toConsumableArray(getweekDay(datevalue))));
|
8055
8135
|
} else {
|
8056
|
-
setOneWeekDays(getWeekList(datevalue));
|
8136
|
+
setOneWeekDays(_toConsumableArray(getWeekList(datevalue)));
|
8057
8137
|
}
|
8058
8138
|
|
8059
8139
|
setDays(initWeekCalendar(type, datevalue));
|
8060
8140
|
} else {
|
8061
|
-
setDays(initCalendar(dateString || datevalue));
|
8141
|
+
setDays((customPrefix === null || customPrefix === void 0 ? void 0 : customPrefix.content) ? initCustomPrefixCalendar(dateString || datevalue, customPrefix === null || customPrefix === void 0 ? void 0 : customPrefix.content) : initCalendar(dateString || datevalue));
|
8062
8142
|
}
|
8063
|
-
}, [type, datevalue, dateString]);
|
8143
|
+
}, [type, datevalue, dateString, customPrefix]);
|
8064
8144
|
React.useEffect(function () {
|
8065
8145
|
setDatevalue(value || dayjs__default['default']());
|
8066
8146
|
}, [value]);
|
@@ -8205,14 +8285,20 @@ function Calendar(_ref, ref) {
|
|
8205
8285
|
key: index
|
8206
8286
|
}, dateCellRender ? dateCellRender(day) : day.text) : null;
|
8207
8287
|
}))) : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, !hiddenWeekLabel && /*#__PURE__*/React__default['default'].createElement("div", {
|
8208
|
-
className: "calendar_header_wrapper"
|
8288
|
+
className: "calendar_header_wrapper",
|
8289
|
+
style: {
|
8290
|
+
gridTemplateColumns: "repeat(".concat(weekLabelArray.length, ", 1fr)")
|
8291
|
+
}
|
8209
8292
|
}, weekLabelArray.map(function (weekLabel) {
|
8210
8293
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
8211
8294
|
key: weekLabel,
|
8212
8295
|
className: "flex ai-c jc-c"
|
8213
8296
|
}, weekLabel);
|
8214
8297
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
8215
|
-
className: "content_wrapper ".concat(calendarBodyClassName)
|
8298
|
+
className: "content_wrapper ".concat(calendarBodyClassName),
|
8299
|
+
style: {
|
8300
|
+
gridTemplateColumns: "repeat(".concat(weekLabelArray.length, ", 1fr)")
|
8301
|
+
}
|
8216
8302
|
}, days === null || days === void 0 ? void 0 : days.map(function (day, index) {
|
8217
8303
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
8218
8304
|
onClick: function onClick() {
|
@@ -8220,7 +8306,7 @@ function Calendar(_ref, ref) {
|
|
8220
8306
|
},
|
8221
8307
|
className: "day_container ".concat(day.isCurrentDay ? 'isCurrentDay' : '', " ").concat(day.isCurrentMonth ? 'isCurrentMonth' : ''),
|
8222
8308
|
key: index
|
8223
|
-
}, dateCellRender ? dateCellRender(day) : day.text);
|
8309
|
+
}, (day === null || day === void 0 ? void 0 : day.content) ? day.content : dateCellRender ? dateCellRender(day) : day.text);
|
8224
8310
|
})))));
|
8225
8311
|
}
|
8226
8312
|
|
package/package.json
CHANGED
@@ -1,93 +1,93 @@
|
|
1
|
-
{
|
2
|
-
"private": false,
|
3
|
-
"name": "wargerm",
|
4
|
-
"version": "0.7.
|
5
|
-
"scripts": {
|
6
|
-
"dev": "dumi dev",
|
7
|
-
"docs:build": "dumi build",
|
8
|
-
"docs:deploy": "gh-pages -d docs-dist",
|
9
|
-
"build": "father-build",
|
10
|
-
"deploy": "npm run docs:build && npm run docs:deploy",
|
11
|
-
"release": "npm run build && npm publish",
|
12
|
-
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
13
|
-
"test": "umi-test",
|
14
|
-
"test:coverage": "umi-test --coverage"
|
15
|
-
},
|
16
|
-
"main": "dist/index.js",
|
17
|
-
"module": "dist/index.esm.js",
|
18
|
-
"unpkg": "dist/index.umd.min.js",
|
19
|
-
"typings": "dist/index.d.ts",
|
20
|
-
"author": "jinly2",
|
21
|
-
"license": "MIT",
|
22
|
-
"keywords": [
|
23
|
-
"React",
|
24
|
-
"Component"
|
25
|
-
],
|
26
|
-
"gitHooks": {
|
27
|
-
"pre-commit": "lint-staged"
|
28
|
-
},
|
29
|
-
"repository": {
|
30
|
-
"type": "git",
|
31
|
-
"url": "http://code.eblssmart.com/platform/web/wargerm-components.git",
|
32
|
-
"branch": "main"
|
33
|
-
},
|
34
|
-
"files": [
|
35
|
-
"dist",
|
36
|
-
"es",
|
37
|
-
"lib",
|
38
|
-
"index.css"
|
39
|
-
],
|
40
|
-
"lint-staged": {
|
41
|
-
"*.{js,jsx,less,md,json}": [
|
42
|
-
"prettier --write"
|
43
|
-
],
|
44
|
-
"*.ts?(x)": [
|
45
|
-
"prettier --parser=typescript --write"
|
46
|
-
]
|
47
|
-
},
|
48
|
-
"dependencies": {
|
49
|
-
"@ant-design/pro-table": "^3.3.1",
|
50
|
-
"animate.css": "^4.1.1",
|
51
|
-
"dayjs": "^1.11.7",
|
52
|
-
"echarts": "^5.2.2",
|
53
|
-
"echarts-for-react": "^3.0.2",
|
54
|
-
"lodash-es": "^4.17.21",
|
55
|
-
"react-countup": "^6.0.0",
|
56
|
-
"react-dom": "^17.0.2",
|
57
|
-
"react-file-viewer": "^1.2.1",
|
58
|
-
"swiper": "^6.7.0",
|
59
|
-
"use-sync-external-store": "^1.2.0",
|
60
|
-
"xgplayer": "^2.31.6",
|
61
|
-
"xgplayer-flv": "^2.5.1",
|
62
|
-
"xgplayer-flv.js": "^2.3.0",
|
63
|
-
"xgplayer-hls": "^2.5.2",
|
64
|
-
"xgplayer-hls.js": "^2.6.1"
|
65
|
-
},
|
66
|
-
"peerDependencies": {
|
67
|
-
"@ant-design/icons": ">=4.2.0",
|
68
|
-
"antd": ">=4.7.0",
|
69
|
-
"classnames": ">=2.2.0",
|
70
|
-
"echarts": "^5.2.2",
|
71
|
-
"echarts-for-react": "^3.0.2",
|
72
|
-
"lodash-es": ">=4.17.21",
|
73
|
-
"react": ">=17.0.0"
|
74
|
-
},
|
75
|
-
"devDependencies": {
|
76
|
-
"@ant-design/icons": "^4.6.4",
|
77
|
-
"@types/lodash-es": "^4.17.6",
|
78
|
-
"@types/react-dom": "^17.0.11",
|
79
|
-
"@types/use-sync-external-store": "^0.0.3",
|
80
|
-
"@umijs/test": "^3.0.5",
|
81
|
-
"antd": "^5.2.2",
|
82
|
-
"classnames": "^2.3.1",
|
83
|
-
"dumi": "^1.1.31",
|
84
|
-
"father-build": "^1.19.1",
|
85
|
-
"gh-pages": "^3.0.0",
|
86
|
-
"lint-staged": "^10.0.7",
|
87
|
-
"prettier": "^1.19.1",
|
88
|
-
"react": "^16.12.0",
|
89
|
-
"react-dnd": "^16.0.1",
|
90
|
-
"react-dnd-html5-backend": "^16.0.1",
|
91
|
-
"yorkie": "^2.0.0"
|
92
|
-
}
|
1
|
+
{
|
2
|
+
"private": false,
|
3
|
+
"name": "wargerm",
|
4
|
+
"version": "0.7.31",
|
5
|
+
"scripts": {
|
6
|
+
"dev": "dumi dev",
|
7
|
+
"docs:build": "dumi build",
|
8
|
+
"docs:deploy": "gh-pages -d docs-dist",
|
9
|
+
"build": "father-build",
|
10
|
+
"deploy": "npm run docs:build && npm run docs:deploy",
|
11
|
+
"release": "npm run build && npm publish",
|
12
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
13
|
+
"test": "umi-test",
|
14
|
+
"test:coverage": "umi-test --coverage"
|
15
|
+
},
|
16
|
+
"main": "dist/index.js",
|
17
|
+
"module": "dist/index.esm.js",
|
18
|
+
"unpkg": "dist/index.umd.min.js",
|
19
|
+
"typings": "dist/index.d.ts",
|
20
|
+
"author": "jinly2",
|
21
|
+
"license": "MIT",
|
22
|
+
"keywords": [
|
23
|
+
"React",
|
24
|
+
"Component"
|
25
|
+
],
|
26
|
+
"gitHooks": {
|
27
|
+
"pre-commit": "lint-staged"
|
28
|
+
},
|
29
|
+
"repository": {
|
30
|
+
"type": "git",
|
31
|
+
"url": "http://code.eblssmart.com/platform/web/wargerm-components.git",
|
32
|
+
"branch": "main"
|
33
|
+
},
|
34
|
+
"files": [
|
35
|
+
"dist",
|
36
|
+
"es",
|
37
|
+
"lib",
|
38
|
+
"index.css"
|
39
|
+
],
|
40
|
+
"lint-staged": {
|
41
|
+
"*.{js,jsx,less,md,json}": [
|
42
|
+
"prettier --write"
|
43
|
+
],
|
44
|
+
"*.ts?(x)": [
|
45
|
+
"prettier --parser=typescript --write"
|
46
|
+
]
|
47
|
+
},
|
48
|
+
"dependencies": {
|
49
|
+
"@ant-design/pro-table": "^3.3.1",
|
50
|
+
"animate.css": "^4.1.1",
|
51
|
+
"dayjs": "^1.11.7",
|
52
|
+
"echarts": "^5.2.2",
|
53
|
+
"echarts-for-react": "^3.0.2",
|
54
|
+
"lodash-es": "^4.17.21",
|
55
|
+
"react-countup": "^6.0.0",
|
56
|
+
"react-dom": "^17.0.2",
|
57
|
+
"react-file-viewer": "^1.2.1",
|
58
|
+
"swiper": "^6.7.0",
|
59
|
+
"use-sync-external-store": "^1.2.0",
|
60
|
+
"xgplayer": "^2.31.6",
|
61
|
+
"xgplayer-flv": "^2.5.1",
|
62
|
+
"xgplayer-flv.js": "^2.3.0",
|
63
|
+
"xgplayer-hls": "^2.5.2",
|
64
|
+
"xgplayer-hls.js": "^2.6.1"
|
65
|
+
},
|
66
|
+
"peerDependencies": {
|
67
|
+
"@ant-design/icons": ">=4.2.0",
|
68
|
+
"antd": ">=4.7.0",
|
69
|
+
"classnames": ">=2.2.0",
|
70
|
+
"echarts": "^5.2.2",
|
71
|
+
"echarts-for-react": "^3.0.2",
|
72
|
+
"lodash-es": ">=4.17.21",
|
73
|
+
"react": ">=17.0.0"
|
74
|
+
},
|
75
|
+
"devDependencies": {
|
76
|
+
"@ant-design/icons": "^4.6.4",
|
77
|
+
"@types/lodash-es": "^4.17.6",
|
78
|
+
"@types/react-dom": "^17.0.11",
|
79
|
+
"@types/use-sync-external-store": "^0.0.3",
|
80
|
+
"@umijs/test": "^3.0.5",
|
81
|
+
"antd": "^5.2.2",
|
82
|
+
"classnames": "^2.3.1",
|
83
|
+
"dumi": "^1.1.31",
|
84
|
+
"father-build": "^1.19.1",
|
85
|
+
"gh-pages": "^3.0.0",
|
86
|
+
"lint-staged": "^10.0.7",
|
87
|
+
"prettier": "^1.19.1",
|
88
|
+
"react": "^16.12.0",
|
89
|
+
"react-dnd": "^16.0.1",
|
90
|
+
"react-dnd-html5-backend": "^16.0.1",
|
91
|
+
"yorkie": "^2.0.0"
|
92
|
+
}
|
93
93
|
}
|