linkmore-design 1.0.72 → 1.0.75
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/Approval/index.d.ts +1 -0
- package/dist/Approval/type.d.ts +1 -1
- package/dist/CardTable/utils.d.ts +1 -1
- package/dist/ConfigProvider/demos/basic.d.ts +2 -0
- package/dist/ConfigProvider/index.d.ts +2 -0
- package/dist/ConfigProvider/style/index.d.ts +1 -0
- package/dist/ImageViewer/components/Arrows.d.ts +4 -0
- package/dist/ImageViewer/components/Carousel.d.ts +4 -0
- package/dist/ImageViewer/components/Operate.d.ts +4 -0
- package/dist/ImageViewer/components/Thumb.d.ts +4 -0
- package/dist/ImageViewer/fns/index.d.ts +20 -0
- package/dist/ImageViewer/wrapeer/reducer.d.ts +10 -0
- package/dist/Locale/index.d.ts +6 -0
- package/dist/Locale/style/index.d.ts +1 -0
- package/dist/Row/index.d.ts +1 -1
- package/dist/index.d.ts +23 -2
- package/dist/index.umd.js +115051 -114155
- package/dist/index.umd.min.js +20 -20
- package/es/Approval/index.d.ts +1 -0
- package/es/ConfigProvider/index.js +15 -0
- package/es/ConfigProvider/style/index.css +141 -0
- package/es/ConfigProvider/style/index.js +3 -0
- package/es/ImageViewer/LmImageViewer.js +7 -8
- package/es/ImageViewer/components/Arrows.d.ts +4 -0
- package/es/ImageViewer/components/Arrows.js +38 -0
- package/es/ImageViewer/components/Carousel.d.ts +4 -0
- package/es/ImageViewer/components/Carousel.js +71 -0
- package/es/ImageViewer/components/Operate.d.ts +4 -0
- package/es/ImageViewer/components/Operate.js +40 -0
- package/es/ImageViewer/components/Thumb.d.ts +4 -0
- package/es/ImageViewer/components/Thumb.js +37 -0
- package/es/ImageViewer/fns/index.d.ts +20 -0
- package/es/ImageViewer/fns/index.js +100 -0
- package/es/ImageViewer/style/index.css +104 -2
- package/es/ImageViewer/wrapeer/Container.js +22 -4
- package/es/ImageViewer/wrapeer/Root.js +30 -3
- package/es/ImageViewer/wrapeer/Wrapper.js +16 -2
- package/es/ImageViewer/wrapeer/reducer.d.ts +10 -0
- package/es/ImageViewer/wrapeer/reducer.js +52 -0
- package/es/LmFilter/Controls/index.js +6 -5
- package/es/LmFilter/customFilter/index.js +1 -1
- package/es/LmFilter/customFilter/saveModal.js +1 -1
- package/es/LmFilter/customFilter/valueDrawer.js +7 -10
- package/es/Locale/index.d.ts +6 -0
- package/es/Locale/index.js +9 -0
- package/es/Locale/style/index.css +141 -0
- package/es/Locale/style/index.js +3 -0
- package/es/Pagination/index.js +18 -5
- package/es/Row/index.d.ts +1 -1
- package/es/Timeline/style/index.css +3 -0
- package/es/index.d.ts +23 -2
- package/es/index.js +13 -2
- package/lib/Approval/index.d.ts +1 -0
- package/lib/ConfigProvider/index.js +15 -0
- package/lib/ConfigProvider/style/index.css +141 -0
- package/lib/ConfigProvider/style/index.js +3 -0
- package/lib/ImageViewer/LmImageViewer.js +7 -8
- package/lib/ImageViewer/components/Arrows.d.ts +4 -0
- package/lib/ImageViewer/components/Arrows.js +49 -0
- package/lib/ImageViewer/components/Carousel.d.ts +4 -0
- package/lib/ImageViewer/components/Carousel.js +82 -0
- package/lib/ImageViewer/components/Operate.d.ts +4 -0
- package/lib/ImageViewer/components/Operate.js +51 -0
- package/lib/ImageViewer/components/Thumb.d.ts +4 -0
- package/lib/ImageViewer/components/Thumb.js +50 -0
- package/lib/ImageViewer/fns/index.d.ts +20 -0
- package/lib/ImageViewer/fns/index.js +108 -0
- package/lib/ImageViewer/style/index.css +104 -2
- package/lib/ImageViewer/wrapeer/Container.js +26 -4
- package/lib/ImageViewer/wrapeer/Root.js +34 -4
- package/lib/ImageViewer/wrapeer/Wrapper.js +16 -2
- package/lib/ImageViewer/wrapeer/reducer.d.ts +10 -0
- package/lib/ImageViewer/wrapeer/reducer.js +64 -0
- package/lib/LmFilter/Controls/index.js +6 -5
- package/lib/LmFilter/customFilter/index.js +1 -1
- package/lib/LmFilter/customFilter/saveModal.js +1 -1
- package/lib/LmFilter/customFilter/valueDrawer.js +7 -10
- package/lib/Locale/index.d.ts +6 -0
- package/lib/Locale/index.js +22 -0
- package/lib/Locale/style/index.css +141 -0
- package/lib/Locale/style/index.js +3 -0
- package/lib/Pagination/index.js +20 -5
- package/lib/Row/index.d.ts +1 -1
- package/lib/Timeline/style/index.css +3 -0
- package/lib/index.d.ts +23 -2
- package/lib/index.js +91 -3
- package/package.json +1 -1
|
@@ -1,10 +1,37 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
1
2
|
// 根文件 => 参数聚合
|
|
2
|
-
import React, { forwardRef, useImperativeHandle } from 'react';
|
|
3
|
+
import React, { useMemo, useRef, useReducer, forwardRef, useImperativeHandle } from 'react';
|
|
4
|
+
import reducer, { initialState as initReducerState } from './reducer';
|
|
5
|
+
import useCoreOptions from '../fns';
|
|
3
6
|
import LmImageViewerWrapper from './Wrapper';
|
|
4
7
|
|
|
5
8
|
var LmImageViewerRoot = function LmImageViewerRoot(props, ref) {
|
|
6
|
-
|
|
7
|
-
var
|
|
9
|
+
var previewRef = useRef(null);
|
|
10
|
+
var initialState = useMemo(function () {
|
|
11
|
+
return initReducerState(props);
|
|
12
|
+
}, []);
|
|
13
|
+
|
|
14
|
+
var _useReducer = useReducer(reducer, initialState),
|
|
15
|
+
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
16
|
+
state = _useReducer2[0],
|
|
17
|
+
dispatch = _useReducer2[1]; // 获取核心Methods
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
var _useCoreOptions = useCoreOptions({
|
|
21
|
+
state: state,
|
|
22
|
+
dispatch: dispatch,
|
|
23
|
+
props: props,
|
|
24
|
+
previewRef: previewRef
|
|
25
|
+
}),
|
|
26
|
+
CoreMethods = _useCoreOptions.CoreMethods,
|
|
27
|
+
RefMethods = _useCoreOptions.RefMethods; // 组件实例
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var instance = Object.assign(Object.assign(Object.assign(Object.assign({}, props), CoreMethods), RefMethods), {
|
|
31
|
+
previewRef: previewRef,
|
|
32
|
+
state: state,
|
|
33
|
+
dispatch: dispatch
|
|
34
|
+
}); // 向外暴露出的方法
|
|
8
35
|
|
|
9
36
|
useImperativeHandle(ref, function () {
|
|
10
37
|
return {};
|
|
@@ -4,9 +4,23 @@ import LmImageViewerContainer from './Container';
|
|
|
4
4
|
|
|
5
5
|
var LmImageViewerWrapper = function LmImageViewerWrapper(_ref) {
|
|
6
6
|
var instance = _ref.instance;
|
|
7
|
+
var getVisible = instance.getVisible,
|
|
8
|
+
zIndex = instance.zIndex;
|
|
9
|
+
|
|
10
|
+
var handleClose = function handleClose() {
|
|
11
|
+
console.log('handleClose');
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
if (!getVisible()) return null;
|
|
7
15
|
return /*#__PURE__*/React.createElement("div", {
|
|
8
|
-
className: "
|
|
9
|
-
|
|
16
|
+
className: "lm_image_viewer_wrapper",
|
|
17
|
+
style: {
|
|
18
|
+
zIndex: zIndex
|
|
19
|
+
}
|
|
20
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
21
|
+
className: "lm_image_viewer_mask",
|
|
22
|
+
onClick: handleClose
|
|
23
|
+
}), /*#__PURE__*/React.createElement(LmImageViewerContainer, {
|
|
10
24
|
instance: instance
|
|
11
25
|
}));
|
|
12
26
|
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// 初始化状态值
|
|
2
|
+
var defaultState = {
|
|
3
|
+
currentIndex: 0,
|
|
4
|
+
currentUrl: '',
|
|
5
|
+
transform: {
|
|
6
|
+
scale: 1,
|
|
7
|
+
rotateZ: 0 // Z轴旋转方向
|
|
8
|
+
|
|
9
|
+
} // 当前选中的图片变换
|
|
10
|
+
|
|
11
|
+
}; // 状态管理操作
|
|
12
|
+
|
|
13
|
+
export var reducer = function reducer(state, action) {
|
|
14
|
+
var transform = action.transform,
|
|
15
|
+
current = action.current,
|
|
16
|
+
visible = action.visible;
|
|
17
|
+
|
|
18
|
+
switch (action.type) {
|
|
19
|
+
case 'changeVisible':
|
|
20
|
+
// 控制显示隐藏
|
|
21
|
+
return Object.assign(Object.assign({}, state), {
|
|
22
|
+
visible: visible
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
case 'changeTransform':
|
|
26
|
+
// 改变转换
|
|
27
|
+
return Object.assign(Object.assign({}, state), {
|
|
28
|
+
transform: Object.assign(Object.assign({}, state.transform), transform)
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
case 'changeCurrent':
|
|
32
|
+
// 改变当前选中的图片
|
|
33
|
+
return Object.assign(Object.assign(Object.assign({}, state), current), {
|
|
34
|
+
transform: defaultState.transform
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
case 'init':
|
|
38
|
+
// 改变当前选中的图片
|
|
39
|
+
return Object.assign(Object.assign({}, state), defaultState);
|
|
40
|
+
|
|
41
|
+
default:
|
|
42
|
+
throw new Error();
|
|
43
|
+
}
|
|
44
|
+
}; // 仅在初始化时触发一次
|
|
45
|
+
|
|
46
|
+
export var initialState = function initialState(props) {
|
|
47
|
+
var initialIndex = props.initialIndex;
|
|
48
|
+
return Object.assign(Object.assign({}, defaultState), {
|
|
49
|
+
currentIndex: initialIndex
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
export default reducer;
|
|
@@ -29,6 +29,7 @@ var _DateFilter = _interopRequireDefault(require("../components/DateFilter"));
|
|
|
29
29
|
|
|
30
30
|
var _excluded = ["item", "options"];
|
|
31
31
|
|
|
32
|
+
// import Nested from './Nested';
|
|
32
33
|
var Controls = function Controls(props) {
|
|
33
34
|
var _props$item = props.item,
|
|
34
35
|
item = _props$item === void 0 ? {} : _props$item,
|
|
@@ -49,23 +50,23 @@ var Controls = function Controls(props) {
|
|
|
49
50
|
children: null
|
|
50
51
|
};
|
|
51
52
|
var obj = {
|
|
52
|
-
|
|
53
|
+
select: /*#__PURE__*/_react.default.createElement(_CheckboxTags.default, (0, _extends2.default)({
|
|
53
54
|
options: options
|
|
54
55
|
}, resetProps)),
|
|
55
|
-
|
|
56
|
+
checkbox: /*#__PURE__*/_react.default.createElement(_CheckboxTags.default, (0, _extends2.default)({
|
|
56
57
|
options: options
|
|
57
58
|
}, resetProps)),
|
|
58
|
-
|
|
59
|
+
cascader: /*#__PURE__*/_react.default.createElement(_CascaderFilter.default, {
|
|
59
60
|
instance: instance,
|
|
60
61
|
item: item,
|
|
61
62
|
options: options
|
|
62
63
|
}),
|
|
63
|
-
|
|
64
|
+
date: /*#__PURE__*/_react.default.createElement(_DateFilter.default, {
|
|
64
65
|
instance: instance,
|
|
65
66
|
item: item,
|
|
66
67
|
options: options
|
|
67
68
|
}),
|
|
68
|
-
|
|
69
|
+
input: /*#__PURE__*/_react.default.createElement(_input.default, (0, _extends2.default)({
|
|
69
70
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
70
71
|
}, resetProps)) // 'nested': <Nested options={options} {...resetProps} />,
|
|
71
72
|
|
|
@@ -75,7 +75,7 @@ var LmFilterCustom = function LmFilterCustom(_ref) {
|
|
|
75
75
|
});
|
|
76
76
|
setVisible(false);
|
|
77
77
|
},
|
|
78
|
-
setFilterValue: function setFilterValue(val
|
|
78
|
+
setFilterValue: function setFilterValue(val) {
|
|
79
79
|
setCustomFilter === null || setCustomFilter === void 0 ? void 0 : setCustomFilter(val);
|
|
80
80
|
setVisible(false);
|
|
81
81
|
},
|
|
@@ -27,8 +27,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
27
27
|
|
|
28
28
|
var _linkmoreDesign = require("linkmore-design");
|
|
29
29
|
|
|
30
|
-
var _utils = require("../utils");
|
|
31
|
-
|
|
32
30
|
var _Controls = _interopRequireDefault(require("../Controls"));
|
|
33
31
|
|
|
34
32
|
// 第二层抽屉,弹出数据选择
|
|
@@ -56,12 +54,12 @@ var ValueDrawer = function ValueDrawer(_ref) {
|
|
|
56
54
|
/*
|
|
57
55
|
* customModal.data.type === 'nested' 时,处理不同
|
|
58
56
|
*
|
|
59
|
-
|
|
57
|
+
*/
|
|
60
58
|
|
|
61
59
|
|
|
62
60
|
var onSave = /*#__PURE__*/function () {
|
|
63
61
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
64
|
-
var _yield$form$validateF,
|
|
62
|
+
var _yield$form$validateF, mode, value, filterValues, currentItem, isNested, nField, nValue, _value$subValue;
|
|
65
63
|
|
|
66
64
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
67
65
|
while (1) {
|
|
@@ -73,7 +71,6 @@ var ValueDrawer = function ValueDrawer(_ref) {
|
|
|
73
71
|
|
|
74
72
|
case 3:
|
|
75
73
|
_yield$form$validateF = _context.sent;
|
|
76
|
-
field = _yield$form$validateF.field;
|
|
77
74
|
mode = _yield$form$validateF.mode;
|
|
78
75
|
value = _yield$form$validateF.value;
|
|
79
76
|
// 选中的筛选数据
|
|
@@ -113,19 +110,19 @@ var ValueDrawer = function ValueDrawer(_ref) {
|
|
|
113
110
|
})
|
|
114
111
|
});
|
|
115
112
|
onClose();
|
|
116
|
-
_context.next =
|
|
113
|
+
_context.next = 19;
|
|
117
114
|
break;
|
|
118
115
|
|
|
119
|
-
case
|
|
120
|
-
_context.prev =
|
|
116
|
+
case 17:
|
|
117
|
+
_context.prev = 17;
|
|
121
118
|
_context.t0 = _context["catch"](0);
|
|
122
119
|
|
|
123
|
-
case
|
|
120
|
+
case 19:
|
|
124
121
|
case "end":
|
|
125
122
|
return _context.stop();
|
|
126
123
|
}
|
|
127
124
|
}
|
|
128
|
-
}, _callee, null, [[0,
|
|
125
|
+
}, _callee, null, [[0, 17]]);
|
|
129
126
|
}));
|
|
130
127
|
|
|
131
128
|
return function onSave() {
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
.lm-radio {
|
|
2
|
+
font-size: 12px;
|
|
3
|
+
line-height: 20px;
|
|
4
|
+
color: var(--font-color);
|
|
5
|
+
}
|
|
6
|
+
.lm-radio > span:last-child {
|
|
7
|
+
padding: 0;
|
|
8
|
+
margin: 0 8px;
|
|
9
|
+
max-width: 96px;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
}
|
|
13
|
+
.lm-radio .ant-radio .ant-radio-inner {
|
|
14
|
+
border-color: var(--stroke-color);
|
|
15
|
+
}
|
|
16
|
+
.lm-radio .ant-radio:hover .ant-radio-inner {
|
|
17
|
+
border-color: var(--primary-color);
|
|
18
|
+
}
|
|
19
|
+
.lm-radio .ant-radio-disabled.ant-radio-checked .ant-radio-inner:after {
|
|
20
|
+
background-color: var(--tip-text-color);
|
|
21
|
+
}
|
|
22
|
+
.lm-radio .ant-radio-disabled .ant-radio-inner {
|
|
23
|
+
background-color: var(--background-color);
|
|
24
|
+
border-color: var(--stroke-color) !important;
|
|
25
|
+
}
|
|
26
|
+
.lm-radio .ant-radio-disabled + span {
|
|
27
|
+
color: var(--disabled-font-color);
|
|
28
|
+
}
|
|
29
|
+
.lm-radio-group .ant-radio-button-wrapper {
|
|
30
|
+
font-size: 12px;
|
|
31
|
+
height: 32px;
|
|
32
|
+
padding: 0px 12px;
|
|
33
|
+
color: var(--font-color);
|
|
34
|
+
vertical-align: middle;
|
|
35
|
+
}
|
|
36
|
+
.lm-radio-group .ant-radio-button-wrapper .anticon {
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
vertical-align: middle;
|
|
39
|
+
line-height: 1;
|
|
40
|
+
}
|
|
41
|
+
.lm-radio-group .ant-radio-button-wrapper:hover {
|
|
42
|
+
color: var(--primary-color);
|
|
43
|
+
}
|
|
44
|
+
.lm-radio-group .ant-radio-button-wrapper > span:last-child {
|
|
45
|
+
display: inline-block;
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
max-width: 96px;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
}
|
|
51
|
+
.lm-radio-group .ant-radio-button-wrapper-checked:not([class*=' ant-radio-button-wrapper-disabled']) .ant-radio-button-wrapper:first-child {
|
|
52
|
+
border-right-color: var(--primary-hover-color);
|
|
53
|
+
}
|
|
54
|
+
.lm-radio-group .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
|
|
55
|
+
color: var(--primary-color);
|
|
56
|
+
border-color: var(--primary-color);
|
|
57
|
+
}
|
|
58
|
+
.lm-radio-group .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {
|
|
59
|
+
border-color: var(--primary-color);
|
|
60
|
+
}
|
|
61
|
+
.lm-radio-group .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {
|
|
62
|
+
color: var(--primary-hover-color);
|
|
63
|
+
border-color: var(--primary-hover-color);
|
|
64
|
+
}
|
|
65
|
+
.lm-radio-group.ant-radio-group-large .ant-radio-button-wrapper {
|
|
66
|
+
line-height: 38px;
|
|
67
|
+
height: 40px;
|
|
68
|
+
}
|
|
69
|
+
.lm-radio-group.ant-radio-group-large .ant-radio-button-wrapper > span:last-child {
|
|
70
|
+
line-height: 38px;
|
|
71
|
+
}
|
|
72
|
+
.lm-radio-group.ant-radio-group-small .ant-radio-button-wrapper {
|
|
73
|
+
line-height: 22px;
|
|
74
|
+
height: 24px;
|
|
75
|
+
padding: 0px 8px;
|
|
76
|
+
}
|
|
77
|
+
.lm-radio-group.ant-radio-group-small .ant-radio-button-wrapper > span:last-child {
|
|
78
|
+
line-height: 22px;
|
|
79
|
+
}
|
|
80
|
+
.lm-radio-group .ant-radio-wrapper {
|
|
81
|
+
font-size: 12px;
|
|
82
|
+
line-height: 20px;
|
|
83
|
+
color: var(--font-color);
|
|
84
|
+
}
|
|
85
|
+
.lm-radio-group .ant-radio-wrapper > span:last-child {
|
|
86
|
+
padding: 0;
|
|
87
|
+
margin: 0 8px;
|
|
88
|
+
max-width: 96px;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
}
|
|
92
|
+
.lm-radio-group .ant-radio-wrapper .ant-radio .ant-radio-inner {
|
|
93
|
+
border-color: var(--stroke-color);
|
|
94
|
+
}
|
|
95
|
+
.lm-radio-group .ant-radio-wrapper .ant-radio:hover .ant-radio-inner {
|
|
96
|
+
border-color: var(--primary-color);
|
|
97
|
+
}
|
|
98
|
+
.lm-radio-group .ant-radio-wrapper .ant-radio-disabled.ant-radio-checked .ant-radio-inner:after {
|
|
99
|
+
background-color: var(--tip-text-color);
|
|
100
|
+
}
|
|
101
|
+
.lm-radio-group .ant-radio-wrapper .ant-radio-disabled .ant-radio-inner {
|
|
102
|
+
background-color: var(--background-color);
|
|
103
|
+
border-color: var(--stroke-color) !important;
|
|
104
|
+
}
|
|
105
|
+
.lm-radio-group .ant-radio-wrapper .ant-radio-disabled + span {
|
|
106
|
+
color: var(--disabled-font-color);
|
|
107
|
+
}
|
|
108
|
+
.lm-radio-group .ant-radio-button-wrapper-disabled {
|
|
109
|
+
color: var(--disabled-font-color);
|
|
110
|
+
background-color: var(--disabled-bg-color);
|
|
111
|
+
border-color: var(--stroke-color);
|
|
112
|
+
}
|
|
113
|
+
.lm-radio-group .ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked {
|
|
114
|
+
color: #b8b8b8 !important;
|
|
115
|
+
background-color: var(--background-color-hover);
|
|
116
|
+
border-color: var(--stroke-color);
|
|
117
|
+
}
|
|
118
|
+
.lm-radio-group .ant-radio-button-wrapper-disabled:hover {
|
|
119
|
+
color: var(--disabled-font-color);
|
|
120
|
+
}
|
|
121
|
+
.lm-radio-group.lm-radio-group-row {
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-direction: row;
|
|
124
|
+
}
|
|
125
|
+
.lm-radio-group.lm-radio-group-column {
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
}
|
|
129
|
+
.lm-radio-group.lm-radio-group-column .lm-radio {
|
|
130
|
+
margin-bottom: 12px;
|
|
131
|
+
}
|
|
132
|
+
.lm-radio-group.lm-radio-group-column .lm-radio > span:last-child {
|
|
133
|
+
max-width: 216px;
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
white-space: nowrap;
|
|
136
|
+
padding: 0;
|
|
137
|
+
margin: 0 8px;
|
|
138
|
+
}
|
|
139
|
+
.lm-radio-group.lm-radio-group-column .lm-radio:last-child {
|
|
140
|
+
margin-bottom: 0;
|
|
141
|
+
}
|
package/es/Pagination/index.js
CHANGED
|
@@ -16,6 +16,8 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
16
16
|
|
|
17
17
|
import React from 'react';
|
|
18
18
|
import classNames from 'classnames';
|
|
19
|
+
import ConfigProvider from '../ConfigProvider';
|
|
20
|
+
var ConfigContext = ConfigProvider.ConfigContext;
|
|
19
21
|
var prefixCls = 'lm_pagination';
|
|
20
22
|
|
|
21
23
|
var LMPagination = function LMPagination(props) {
|
|
@@ -23,15 +25,26 @@ var LMPagination = function LMPagination(props) {
|
|
|
23
25
|
className = props.className,
|
|
24
26
|
others = __rest(props, ["children", "className"]);
|
|
25
27
|
|
|
28
|
+
var _React$useContext = React.useContext(ConfigContext),
|
|
29
|
+
locale = _React$useContext.locale; // 更改中文语言包内容显示
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
var paginationLocale = React.useMemo(function () {
|
|
33
|
+
if ((locale === null || locale === void 0 ? void 0 : locale.locale) === 'zh-cn') {
|
|
34
|
+
return {
|
|
35
|
+
items_per_page: '/条',
|
|
36
|
+
jump_to: '前往',
|
|
37
|
+
page: '页'
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return {};
|
|
42
|
+
}, [locale]);
|
|
26
43
|
return /*#__PURE__*/React.createElement(_Pagination, Object.assign({
|
|
27
44
|
className: classNames(className, prefixCls),
|
|
28
45
|
size: "small"
|
|
29
46
|
}, others, {
|
|
30
|
-
locale:
|
|
31
|
-
items_per_page: '/条',
|
|
32
|
-
jump_to: '前往',
|
|
33
|
-
page: '页'
|
|
34
|
-
}
|
|
47
|
+
locale: paginationLocale
|
|
35
48
|
}));
|
|
36
49
|
};
|
|
37
50
|
|
package/es/Row/index.d.ts
CHANGED
package/es/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { default as ConfigProvider } from './ConfigProvider';
|
|
2
|
+
export { default as Locale } from './Locale';
|
|
1
3
|
export { default as Button } from './Button';
|
|
2
4
|
export { default as ButtonTags } from './ButtonTags';
|
|
3
5
|
export { default as Card } from './Card';
|
|
@@ -34,7 +36,6 @@ export { default as Radio } from './Radio';
|
|
|
34
36
|
export { default as Select } from './Select';
|
|
35
37
|
export { default as Space } from './Space';
|
|
36
38
|
export { default as TableRender } from './TableRender';
|
|
37
|
-
export { default as Tree } from './Tree';
|
|
38
39
|
export { default as UploadOss } from './UploadOss';
|
|
39
40
|
export { default as VirtualList } from './VirtualList';
|
|
40
41
|
export { default as Tag } from './Tag';
|
|
@@ -66,7 +67,7 @@ export { default as Grid } from './Grid';
|
|
|
66
67
|
export { default as Row } from './Row';
|
|
67
68
|
export type { RowProps } from './Row';
|
|
68
69
|
export { default as Col } from './Col';
|
|
69
|
-
export type { ColProps } from './Col';
|
|
70
|
+
export type { ColProps, ColSize } from './Col';
|
|
70
71
|
export { default as Layout } from './Layout';
|
|
71
72
|
export type { LayoutProps, SiderProps } from './Layout';
|
|
72
73
|
export { default as Steps } from './Steps';
|
|
@@ -86,3 +87,23 @@ export { default as Carousel } from './Carousel';
|
|
|
86
87
|
export type { CarouselProps } from './Carousel';
|
|
87
88
|
export { default as Alert } from './Alert';
|
|
88
89
|
export type { AlertProps } from './Alert';
|
|
90
|
+
export { default as Segmented } from './Segmented';
|
|
91
|
+
export type { SegmentedProps } from './Segmented';
|
|
92
|
+
export { default as Approval } from './Approval';
|
|
93
|
+
export type { ApprovalType, StatusType, IApprovalItemProps, IApprovalProps } from './Approval';
|
|
94
|
+
export { default as TimePicker } from './TimePicker';
|
|
95
|
+
export type { TimeRangePickerProps, TimePickerProps } from './TimePicker';
|
|
96
|
+
export { default as Collapse } from './Collapse';
|
|
97
|
+
export type { CollapseProps } from './Collapse';
|
|
98
|
+
export { default as Comment } from './Comment';
|
|
99
|
+
export type { CommentProps } from './Comment';
|
|
100
|
+
export { default as Statistic } from './Statistic';
|
|
101
|
+
export type { StatisticProps } from './Statistic';
|
|
102
|
+
export { default as Timeline } from './Timeline';
|
|
103
|
+
export type { TimelineProps } from './Timeline';
|
|
104
|
+
export { default as Tree } from './Tree';
|
|
105
|
+
export type { ITreeProps } from './Tree';
|
|
106
|
+
export { default as Popconfirm } from './Popconfirm';
|
|
107
|
+
export type { PopconfirmProps } from './Popconfirm';
|
|
108
|
+
export { default as Progress } from './Progress';
|
|
109
|
+
export type { ProgressProps } from './Progress';
|
package/es/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { default as ConfigProvider } from './ConfigProvider';
|
|
2
|
+
export { default as Locale } from './Locale';
|
|
1
3
|
export { default as Button } from './Button';
|
|
2
4
|
export { default as ButtonTags } from './ButtonTags';
|
|
3
5
|
export { default as Card } from './Card';
|
|
@@ -33,7 +35,6 @@ export { default as Radio } from './Radio';
|
|
|
33
35
|
export { default as Select } from './Select';
|
|
34
36
|
export { default as Space } from './Space';
|
|
35
37
|
export { default as TableRender } from './TableRender';
|
|
36
|
-
export { default as Tree } from './Tree';
|
|
37
38
|
export { default as UploadOss } from './UploadOss';
|
|
38
39
|
export { default as VirtualList } from './VirtualList';
|
|
39
40
|
export { default as Tag } from './Tag';
|
|
@@ -66,4 +67,14 @@ export { default as Transfer } from './Transfer';
|
|
|
66
67
|
export { default as TreeSelect } from './TreeSelect';
|
|
67
68
|
export { default as Calendar } from './Calendar';
|
|
68
69
|
export { default as Carousel } from './Carousel';
|
|
69
|
-
export { default as Alert } from './Alert';
|
|
70
|
+
export { default as Alert } from './Alert';
|
|
71
|
+
export { default as Segmented } from './Segmented';
|
|
72
|
+
export { default as Approval } from './Approval';
|
|
73
|
+
export { default as TimePicker } from './TimePicker';
|
|
74
|
+
export { default as Collapse } from './Collapse';
|
|
75
|
+
export { default as Comment } from './Comment';
|
|
76
|
+
export { default as Statistic } from './Statistic';
|
|
77
|
+
export { default as Timeline } from './Timeline';
|
|
78
|
+
export { default as Tree } from './Tree';
|
|
79
|
+
export { default as Popconfirm } from './Popconfirm';
|
|
80
|
+
export { default as Progress } from './Progress';
|
package/lib/Approval/index.d.ts
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
require("antd/es/config-provider/style");
|
|
11
|
+
|
|
12
|
+
var _configProvider = _interopRequireDefault(require("antd/es/config-provider"));
|
|
13
|
+
|
|
14
|
+
var _default = _configProvider.default;
|
|
15
|
+
exports.default = _default;
|